New modules uniname/base and uniname/uniname.
[gnulib.git] / ChangeLog
1 2007-07-07  Bruno Haible  <bruno@clisp.org>
2
3         * lib/uniname.h: New file, from GNU gettext.
4         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
5         * lib/uniname/uninames.h: New file, from GNU gettext.
6         * lib/uniname/uniname.c: New file, from GNU gettext.
7         * tests/uniname/test-uninames.sh: New file.
8         * tests/uniname/test-uninames.c: New file, from GNU gettext.
9         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
10         * modules/uniname/base: New file.
11         * modules/uniname/uniname: New file.
12         * modules/uniname/uniname-tests: New file.
13         * MODULES.html.sh (Unicode string functions): Add the new modules.
14
15 2007-07-06  Bruno Haible  <bruno@clisp.org>
16
17         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
18
19 2007-07-06  Bruno Haible  <bruno@clisp.org>
20
21         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
22         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
23         includes <cygwin/sys_time.h> which includes <sys/select.h> which
24         include <sys/time.h>.
25         Reported by Eric Blake.
26
27 2007-07-06  Eric Blake  <ebb9@byu.net>
28
29         Fix testing canonicalize on cygwin.
30         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
31         Revert patch from 2007-06-19.
32         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
33         canonicalize module is also in use.
34         * tests/test-canonicalize.c: New file.
35         * tests/test-canonicalize.sh: Likewise.
36         * modules/canonicalize-tests: Likewise.
37
38 2007-07-06  Jim Meyering  <jim@meyering.net>
39
40         * lib/getugroups.c (getugroups): Detect getgrent failure.
41         Adjust comment to reflect reality: this function may return -1.
42
43 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
44
45         * build-aux/bootstrap (TP_URL,get_translations): Update to use
46         the new TP address.
47         (usage): Fix typo
48         (gnulib_mk): New variable.
49
50 2007-07-05  Jim Meyering  <jim@meyering.net>
51
52         Don't let endgrent clobber errno, no matter how improbable.
53         * lib/getugroups.c (getugroups): Save and restore errno around
54         endgrent call.
55
56         Close the group DB even when failing with 2^31 or more members.
57         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
58
59 2007-07-04  Jim Meyering  <jim@meyering.net>
60
61         * lib/getugroups.h: New file.
62         * lib/getugroups.c: Include "getugroups.h".
63         Remove uses of "register" keyword.
64         Move local variable, "cp", down into scope where used.
65         Give "username" parameter the "const" attribute.
66         * modules/getugroups (Files): Add lib/getugroups.h
67
68 2007-07-04  Karl Berry  <karl@gnu.org>
69
70         * MODULES.html.sh (func_all_modules): Complete rename of
71         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
72
73 2007-07-02  Bruno Haible  <bruno@clisp.org>
74
75         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
76         mode, when inttypes.h comes from gnulib.
77         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
78
79 2007-07-02  Simon Josefsson  <simon@josefsson.org>
80
81         * NEWS: Mention lgpl module name change.
82
83         * modules/lgpl-2.1: Renamed from lgpl.
84
85         * NEWS: Mention gpl module name change.
86
87         * modules/gpl-3.0: New file, based on gpl-2.0.
88
89         * modules/gpl-2.0: Renamed from gpl.
90
91         * modules/gpl: Fix filename, doc/gpl.texi is now found at
92         doc/gpl-2.0.texi.
93
94 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
95
96         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
97         #define __STDC_LIMIT_MACROS temporarily while including
98         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
99         Problem reported by Joel E. Denny in
100         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
101
102 2007-07-01  Bruno Haible  <bruno@clisp.org>
103
104         * lib/unistdio.h: New file.
105         * lib/unistdio/u-asnprintf.h: New file.
106         * lib/unistdio/u-asprintf.h: New file.
107         * lib/unistdio/u-printf-args.c: New file.
108         * lib/unistdio/u-printf-args.h: New file.
109         * lib/unistdio/u-printf-parse.h: New file.
110         * lib/unistdio/u-snprintf.h: New file.
111         * lib/unistdio/u-sprintf.h: New file.
112         * lib/unistdio/u-vasprintf.h: New file.
113         * lib/unistdio/u-vsnprintf.h: New file.
114         * lib/unistdio/u-vsprintf.h: New file.
115         * lib/unistdio/ulc-asnprintf.c: New file.
116         * lib/unistdio/ulc-asprintf.c: New file.
117         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
118         * lib/unistdio/ulc-printf-parse.c: New file.
119         * lib/unistdio/ulc-snprintf.c: New file.
120         * lib/unistdio/ulc-sprintf.c: New file.
121         * lib/unistdio/ulc-vasnprintf.c: New file.
122         * lib/unistdio/ulc-vasprintf.c: New file.
123         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
124         * lib/unistdio/ulc-vsnprintf.c: New file.
125         * lib/unistdio/ulc-vsprintf.c: New file.
126         * lib/unistdio/u8-asnprintf.c: New file.
127         * lib/unistdio/u8-asprintf.c: New file.
128         * lib/unistdio/u8-printf-parse.c: New file.
129         * lib/unistdio/u8-snprintf.c: New file.
130         * lib/unistdio/u8-sprintf.c: New file.
131         * lib/unistdio/u8-vasnprintf.c: New file.
132         * lib/unistdio/u8-vasprintf.c: New file.
133         * lib/unistdio/u8-vsnprintf.c: New file.
134         * lib/unistdio/u8-vsprintf.c: New file.
135         * lib/unistdio/u8-u8-asnprintf.c: New file.
136         * lib/unistdio/u8-u8-asprintf.c: New file.
137         * lib/unistdio/u8-u8-snprintf.c: New file.
138         * lib/unistdio/u8-u8-sprintf.c: New file.
139         * lib/unistdio/u8-u8-vasnprintf.c: New file.
140         * lib/unistdio/u8-u8-vasprintf.c: New file.
141         * lib/unistdio/u8-u8-vsnprintf.c: New file.
142         * lib/unistdio/u8-u8-vsprintf.c: New file.
143         * lib/unistdio/u16-asnprintf.c: New file.
144         * lib/unistdio/u16-asprintf.c: New file.
145         * lib/unistdio/u16-printf-parse.c: New file.
146         * lib/unistdio/u16-snprintf.c: New file.
147         * lib/unistdio/u16-sprintf.c: New file.
148         * lib/unistdio/u16-vasnprintf.c: New file.
149         * lib/unistdio/u16-vasprintf.c: New file.
150         * lib/unistdio/u16-vsnprintf.c: New file.
151         * lib/unistdio/u16-vsprintf.c: New file.
152         * lib/unistdio/u16-u16-asnprintf.c: New file.
153         * lib/unistdio/u16-u16-asprintf.c: New file.
154         * lib/unistdio/u16-u16-snprintf.c: New file.
155         * lib/unistdio/u16-u16-sprintf.c: New file.
156         * lib/unistdio/u16-u16-vasnprintf.c: New file.
157         * lib/unistdio/u16-u16-vasprintf.c: New file.
158         * lib/unistdio/u16-u16-vsnprintf.c: New file.
159         * lib/unistdio/u16-u16-vsprintf.c: New file.
160         * lib/unistdio/u32-asnprintf.c: New file.
161         * lib/unistdio/u32-asprintf.c: New file.
162         * lib/unistdio/u32-printf-parse.c: New file.
163         * lib/unistdio/u32-snprintf.c: New file.
164         * lib/unistdio/u32-sprintf.c: New file.
165         * lib/unistdio/u32-vasnprintf.c: New file.
166         * lib/unistdio/u32-vasprintf.c: New file.
167         * lib/unistdio/u32-vsnprintf.c: New file.
168         * lib/unistdio/u32-vsprintf.c: New file.
169         * lib/unistdio/u32-u32-asnprintf.c: New file.
170         * lib/unistdio/u32-u32-asprintf.c: New file.
171         * lib/unistdio/u32-u32-snprintf.c: New file.
172         * lib/unistdio/u32-u32-sprintf.c: New file.
173         * lib/unistdio/u32-u32-vasnprintf.c: New file.
174         * lib/unistdio/u32-u32-vasprintf.c: New file.
175         * lib/unistdio/u32-u32-vsnprintf.c: New file.
176         * lib/unistdio/u32-u32-vsprintf.c: New file.
177         * tests/unistdio/test-ulc-asnprintf1.c: New file.
178         * tests/unistdio/test-ulc-asnprintf1.h: New file.
179         * tests/unistdio/test-ulc-printf1.h: New file.
180         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
181         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
182         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
183         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
184         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
185         * tests/unistdio/test-ulc-vasprintf1.c: New file.
186         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
187         * tests/unistdio/test-ulc-vsprintf1.c: New file.
188         * tests/unistdio/test-u8-asnprintf1.c: New file.
189         * tests/unistdio/test-u8-asnprintf1.h: New file.
190         * tests/unistdio/test-u8-printf1.h: New file.
191         * tests/unistdio/test-u8-vasnprintf1.c: New file.
192         * tests/unistdio/test-u8-vasnprintf2.c: New file.
193         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
194         * tests/unistdio/test-u8-vasnprintf3.c: New file.
195         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
196         * tests/unistdio/test-u8-vasprintf1.c: New file.
197         * tests/unistdio/test-u8-vsnprintf1.c: New file.
198         * tests/unistdio/test-u8-vsprintf1.c: New file.
199         * tests/unistdio/test-u16-asnprintf1.c: New file.
200         * tests/unistdio/test-u16-asnprintf1.h: New file.
201         * tests/unistdio/test-u16-printf1.h: New file.
202         * tests/unistdio/test-u16-vasnprintf1.c: New file.
203         * tests/unistdio/test-u16-vasnprintf2.c: New file.
204         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
205         * tests/unistdio/test-u16-vasnprintf3.c: New file.
206         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
207         * tests/unistdio/test-u16-vasprintf1.c: New file.
208         * tests/unistdio/test-u16-vsnprintf1.c: New file.
209         * tests/unistdio/test-u16-vsprintf1.c: New file.
210         * tests/unistdio/test-u32-asnprintf1.c: New file.
211         * tests/unistdio/test-u32-asnprintf1.h: New file.
212         * tests/unistdio/test-u32-printf1.h: New file.
213         * tests/unistdio/test-u32-vasnprintf1.c: New file.
214         * tests/unistdio/test-u32-vasnprintf2.c: New file.
215         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
216         * tests/unistdio/test-u32-vasnprintf3.c: New file.
217         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
218         * tests/unistdio/test-u32-vasprintf1.c: New file.
219         * tests/unistdio/test-u32-vsnprintf1.c: New file.
220         * tests/unistdio/test-u32-vsprintf1.c: New file.
221         * modules/unistdio/base: New file.
222         * modules/unistdio/u-printf-args: New file.
223         * modules/unistdio/ulc-asnprintf: New file.
224         * modules/unistdio/ulc-asprintf: New file.
225         * modules/unistdio/ulc-fprintf: New file.
226         * modules/unistdio/ulc-printf-parse: New file.
227         * modules/unistdio/ulc-snprintf: New file.
228         * modules/unistdio/ulc-sprintf: New file.
229         * modules/unistdio/ulc-vasnprintf: New file.
230         * modules/unistdio/ulc-vasprintf: New file.
231         * modules/unistdio/ulc-vfprintf: New file.
232         * modules/unistdio/ulc-vsnprintf: New file.
233         * modules/unistdio/ulc-vsprintf: New file.
234         * modules/unistdio/u8-asnprintf: New file.
235         * modules/unistdio/u8-asprintf: New file.
236         * modules/unistdio/u8-printf-parse: New file.
237         * modules/unistdio/u8-snprintf: New file.
238         * modules/unistdio/u8-sprintf: New file.
239         * modules/unistdio/u8-vasnprintf: New file.
240         * modules/unistdio/u8-vasprintf: New file.
241         * modules/unistdio/u8-vsnprintf: New file.
242         * modules/unistdio/u8-vsprintf: New file.
243         * modules/unistdio/u8-u8-asnprintf: New file.
244         * modules/unistdio/u8-u8-asprintf: New file.
245         * modules/unistdio/u8-u8-snprintf: New file.
246         * modules/unistdio/u8-u8-sprintf: New file.
247         * modules/unistdio/u8-u8-vasnprintf: New file.
248         * modules/unistdio/u8-u8-vasprintf: New file.
249         * modules/unistdio/u8-u8-vsnprintf: New file.
250         * modules/unistdio/u8-u8-vsprintf: New file.
251         * modules/unistdio/u16-asnprintf: New file.
252         * modules/unistdio/u16-asprintf: New file.
253         * modules/unistdio/u16-printf-parse: New file.
254         * modules/unistdio/u16-snprintf: New file.
255         * modules/unistdio/u16-sprintf: New file.
256         * modules/unistdio/u16-vasnprintf: New file.
257         * modules/unistdio/u16-vasprintf: New file.
258         * modules/unistdio/u16-vsnprintf: New file.
259         * modules/unistdio/u16-vsprintf: New file.
260         * modules/unistdio/u16-u16-asnprintf: New file.
261         * modules/unistdio/u16-u16-asprintf: New file.
262         * modules/unistdio/u16-u16-snprintf: New file.
263         * modules/unistdio/u16-u16-sprintf: New file.
264         * modules/unistdio/u16-u16-vasnprintf: New file.
265         * modules/unistdio/u16-u16-vasprintf: New file.
266         * modules/unistdio/u16-u16-vsnprintf: New file.
267         * modules/unistdio/u16-u16-vsprintf: New file.
268         * modules/unistdio/u32-asnprintf: New file.
269         * modules/unistdio/u32-asprintf: New file.
270         * modules/unistdio/u32-printf-parse: New file.
271         * modules/unistdio/u32-snprintf: New file.
272         * modules/unistdio/u32-sprintf: New file.
273         * modules/unistdio/u32-vasnprintf: New file.
274         * modules/unistdio/u32-vasprintf: New file.
275         * modules/unistdio/u32-vsnprintf: New file.
276         * modules/unistdio/u32-vsprintf: New file.
277         * modules/unistdio/u32-u32-asnprintf: New file.
278         * modules/unistdio/u32-u32-asprintf: New file.
279         * modules/unistdio/u32-u32-snprintf: New file.
280         * modules/unistdio/u32-u32-sprintf: New file.
281         * modules/unistdio/u32-u32-vasnprintf: New file.
282         * modules/unistdio/u32-u32-vasprintf: New file.
283         * modules/unistdio/u32-u32-vsnprintf: New file.
284         * modules/unistdio/u32-u32-vsprintf: New file.
285         * modules/unistdio/ulc-asnprintf-tests: New file.
286         * modules/unistdio/ulc-vasnprintf-tests: New file.
287         * modules/unistdio/ulc-vasprintf-tests: New file.
288         * modules/unistdio/ulc-vsnprintf-tests: New file.
289         * modules/unistdio/ulc-vsprintf-tests: New file.
290         * modules/unistdio/u8-asnprintf-tests: New file.
291         * modules/unistdio/u8-vasnprintf-tests: New file.
292         * modules/unistdio/u8-vasprintf-tests: New file.
293         * modules/unistdio/u8-vsnprintf-tests: New file.
294         * modules/unistdio/u8-vsprintf-tests: New file.
295         * modules/unistdio/u16-asnprintf-tests: New file.
296         * modules/unistdio/u16-vasnprintf-tests: New file.
297         * modules/unistdio/u16-vasprintf-tests: New file.
298         * modules/unistdio/u16-vsnprintf-tests: New file.
299         * modules/unistdio/u16-vsprintf-tests: New file.
300         * modules/unistdio/u32-asnprintf-tests: New file.
301         * modules/unistdio/u32-vasnprintf-tests: New file.
302         * modules/unistdio/u32-vasprintf-tests: New file.
303         * modules/unistdio/u32-vsnprintf-tests: New file.
304         * modules/unistdio/u32-vsprintf-tests: New file.
305         * MODULES.html.sh (Unicode string functions): Add the new modules.
306
307 2007-07-01  Bruno Haible  <bruno@clisp.org>
308
309         * lib/sprintf.c (sprintf): Limit the available length estimation,
310         to avoid address wraparound.
311         * lib/vsprintf.c (vsprintf): Likewise.
312         * modules/sprintf-posix (Dependencies): Add stdint.
313         * modules/vsprintf-posix (Dependencies): Likewise.
314
315 2007-07-01  Bruno Haible <bruno@clisp.org>
316
317         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
318         Windows PATH as well. Conservative double-quoting. Comments.
319
320 2007-07-01  Bruno Haible <bruno@clisp.org>
321             Eric Blake  <ebb9@byu.net>
322             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
323
324         * gnulib-tool (self_abspathname): Fix algorithm to cope with
325         empty components in $PATH, denoting '.'.
326
327 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
328
329         * gnulib-tool: Fix indentation.
330         (func_create_megatestdir): Likewise.
331         Report by Bruno Haible.
332
333 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
334
335         Sync from Automake.
336         * build-aux/gnupload: Fix shell portability issues with for loops.
337         Report by Karl Berry.
338
339 2007-06-29  Simon Josefsson  <simon@josefsson.org>
340
341         * build-aux/maint.mk (POURL): Use translationproject.org.
342
343 2007-06-27  Simon Josefsson  <simon@josefsson.org>
344             Bruno Haible  <bruno@clisp.org>
345
346         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
347         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
348         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
349         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
350         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
351
352 2007-06-27  Bruno Haible  <bruno@clisp.org>
353
354         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
355         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
356
357 2007-06-26  Karl Berry  <karl@gnu.org>
358
359         * MODULES.html.sh: remove xreadlink-with-size.
360
361 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
362
363         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
364         method that I hope also handles the double-include problem noted
365         by Bruno Haible in
366         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
367
368 2007-06-23  Bruno Haible  <bruno@clisp.org>
369
370         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
371         Don't let the 'mostlyclean' target fail if the last subdirectory could
372         not be removed.
373         Reported by Karl Berry.
374
375 2007-06-23  Bruno Haible  <bruno@clisp.org>
376
377         * gnulib-tool (echo): Add a speedier workaround for ksh.
378         * tests/test-echo.sh: Likewise.
379
380 2007-06-23  Bruno Haible  <bruno@clisp.org>
381
382         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
383         * tests/test-echo.sh: Likewise.
384
385 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
386
387         * gnulib-tool (IFS): Initialize early, so we don't set it to
388         empty later.
389         (self_abspathname): Rewrite algorithm to set it, reindent.
390         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
391         (func_create_megatestdir): Merge some sed scripts.
392
393 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
394
395         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
396         exposed by Sun Studio 11 cc on Solaris 8.
397
398 2007-06-22  Bruno Haible  <bruno@clisp.org>
399
400         * gnulib-tool (echo): Ensure the echo primitive does not interpret
401         backslashes.
402         * tests/test-echo.sh: New file.
403
404 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
405
406         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
407         simplify `sed_replace_build_aux' scripts, they are portable but
408         echoing them with `echo' is not.
409         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
410
411 2007-06-21  Karl Berry  <karl@gnu.org>
412
413         * config/srclist.txt: guess we can't handle the licenses via
414         srclist at the moment.
415
416 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
417
418         * MODULES.html.sh: Add include_next.
419         * modules/include_next: New file.
420
421 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
422
423         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
424         INCLUDE_NEXT.
425         (gl_CHECK_NEXT_HEADERS): New macro.
426         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
427         the obsolescent gl_ABSOLUTE_HEADER.
428         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
429         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
430         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
431         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
432         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
433         * m4/math_h.m4 (gl_MATH_H): Likewise.
434         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
435         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
436         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
437         * m4/stdint.m4 (gl_STDINT_H): Likewise.
438         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
439         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
440         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
441         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
442         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
443         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
444         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
445         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
446         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
447         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
448         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
449         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
450         * m4/inttypes.m4 (gl_INTTYPES_H): Define
451         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
452         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
453         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
454         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
455         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
456         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
457         * lib/float_.h: Likewise.
458         * lib/inttypes_.h: Likewise.
459         * lib/math_.h: Likewise.
460         * lib/search_.h: Likewise.
461         * lib/signal_.h: Likewise.
462         * lib/stdint_.h: Likewise.
463         * lib/stdio_.h: Likewise.
464         * lib/stdlib_.h: Likewise.
465         * lib/string_.h: Likewise.
466         * lib/sys_stat_.h: Likewise.
467         * lib/sys_time_.h: Likewise.
468         * lib/time_.h: Likewise.
469         * lib/unistd_.h: Likewise.
470         * lib/wchar_.h: Likewise.
471         * lib/wctype_.h: Likewise.
472         * lib/dirent_.h: Likewise.
473         * lib/iconv_.h: Likewise.
474         * lib/locale_.h: Likewise.
475         * lib/netinet_in_.h: Likewise.
476         * lib/sys_select_.h: Likewise.
477         * lib/sys_socket_.h: Likewise.
478         * lib/sysexits_.h: Likewise.
479         * modules/fcntl (Depends-on): Depend on include_next, not
480         absolute_header.
481         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
482         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
483         * modules/fchdir: Likewise.
484         * modules/float: Likewise.
485         * modules/iconv_open: Likewise.
486         * modules/inttypes: Likewise.
487         * modules/locale: Likewise.
488         * modules/math: Likewise.
489         * modules/netinet_in: Likewise.
490         * modules/search: Likewise.
491         * modules/signal: Likewise.
492         * modules/stdint: Likewise.
493         * modules/stdio: Likewise.
494         * modules/stdlib: Likewise.
495         * modules/string: Likewise.
496         * modules/sys_select: Likewise.
497         * modules/sys_socket: Likewise.
498         * modules/sys_stat: Likewise.
499         * modules/sys_time: Likewise.
500         * modules/sysexits: Likewise.
501         * modules/time: Likewise.
502         * modules/unistd: Likewise.
503         * modules/wchar: Likewise.
504         * modules/wctype: Likewise.
505         * modules/sys_stat: Change maintainer to "all".
506         * modules/unistd: Likewise.
507
508 2007-06-20  Karl Berry  <karl@gnu.org>
509
510         * config/srclist.txt: track www changes in license files.
511
512 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
513
514         * build-aux/bootstrap: Remove stray dot.
515         Make sure build_aux settings are honored when linking
516         gnulib_extra_files.
517
518 2007-06-19  Eric Blake  <ebb9@byu.net>
519
520         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
521         Allow compilation on cygwin.
522
523 2007-06-19  Jim Meyering  <jim@meyering.net>
524
525         xreadlink-with-size: Remove module.  No longer used.
526         Ex-callers now use xreadlink or mreadlink-with-size.
527         * modules/xreadlink-with-size: Remove module.
528         * lib/xreadlink-with-size.c: Remove file.
529         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
530         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
531         just before the function definition *is* accurate.
532
533         Eliminate one way canonicalize_filename_mode could exit.
534         * lib/canonicalize.c (canonicalize_filename_mode):
535         Use mreadlink_with_size, not xreadlink_with_size.
536
537 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
538
539         Detect porting problems to FreeBSD/arm, which has time_t wider than
540         long int.  Original problem reported for GNU diff by Xin Li in
541         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
542         * modules/getdate (Depends-on): Add intprops, verify.
543         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
544         is an integer type no wider than long int.
545
546 2007-06-18  Jim Meyering  <jim@meyering.net>
547
548         New module: mreadlink-with-size.
549         * MODULES.html.sh: Add mreadlink-with-size.
550         * modules/mreadlink-with-size: New module
551         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
552         not xreadlink-with-size.
553         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
554
555 2007-06-16  Bruno Haible  <bruno@clisp.org>
556
557         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
558         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
559         Reported by Gary V. Vaughan <gary@gnu.org>.
560
561 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
562
563         Revamp lchown so that it lives in unistd.h where it belongs.
564         * lib/lchown.h: Remove.
565         * lib/dirchownmod.c: Don't include lib/lchown.h.
566         * lib/fchownat.c: Likewise.
567         * lib/openat.c: Likewise.
568         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
569         does not follow symlinks.
570         (EOPNOTSUPP): Define if not defined.
571         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
572         is defined to 0.
573         (lchown): New decl.
574         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
575         Do not check for lchown decl.
576         Set REPLACE_LCHOWN.
577         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
578         REPLACE_LCHOWN.
579         * modules/chown: Make it clear it follows symlinks.
580         * modules/lchown: Make it clear it doesn't follow symlinks.
581         (Files): Remove lib/lchown.h
582         (Depends-on): Add unistd.
583         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
584         (Include): Include <unistd.h>, not "lchown.h".
585         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
586         REPLACE_LCHOWN.
587
588 2007-06-15  Jim Meyering  <jim@meyering.net>
589
590         Change license (GPL to LGPL) of fsusage and dependents.
591         * modules/fsusage (License): Change to LGPL.
592         * modules/full-read (License): Likewise.
593         * modules/full-write (License): Likewise.
594         * modules/safe-read (License): Likewise.
595         * modules/safe-write (License): Likewise.
596
597 2007-06-14  Ben Pfaff  <blp@gnu.org>
598
599         Missing part of allocsa -> malloca transition.
600         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
601         gl_MALLOCA.
602
603 2007-06-12  Bruno Haible  <bruno@clisp.org>
604
605         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
606         to ia64, x86_64, i386.
607         Reported by Eric Blake.
608
609 2007-06-12  Bruno Haible  <bruno@clisp.org>
610
611         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
612         cross-compiling to x86_64.
613
614 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
615
616         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
617         glitch reported by Ralf Wildenhues in
618         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
619
620         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
621         Vin Shelton.
622
623 2007-06-11  Bruno Haible  <bruno@clisp.org>
624
625         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
626         replacement string.
627         Reported by Eric Blake.
628
629 2007-06-10  Bruno Haible  <bruno@clisp.org>
630
631         Prepare vasnprintf code for use with Unicode strings.
632         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
633         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
634         TYPE_U32_STRING.
635         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
636         a_u32_string variants.
637         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
638         * lib/printf-args.c: Don't include config.h and the specification
639         header if PRINTF_FETCHARGS is already defined.
640         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
641         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
642         TYPE_U16_STRING, TYPE_U32_STRING.
643         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
644         u16_directive, u16_directives, u32_directive, u32_directives): New
645         types.
646         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
647         New declarations.
648         * lib/printf-parse.c: Don't include config.h and the specification
649         header if PRINTF_PARSE is already defined. Eliminate the set of
650         parameters for WIDE_CHAR_VERSION; the user of this file must provide
651         them now. Include c-ctype.h.
652         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
653         directive and CHAR_T_ONLY_ASCII.
654         * lib/vasnprintf.c: Don't include config.h and the specification header
655         if VASNPRINTF is already defined.
656         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
657         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
658         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
659         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
660         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
661         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
662         code accordingly.
663         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
664         pad_ourselves also in this case, with the 'c' and 's' directives, and
665         with a different notion of "width".
666         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
667
668 2007-06-10  Bruno Haible  <bruno@clisp.org>
669
670         * modules/unistr/u32-mbsnlen: New file.
671         * lib/unistr/u32-mbsnlen.c: New file.
672
673         * modules/unistr/u16-mbsnlen: New file.
674         * lib/unistr/u16-mbsnlen.c: New file.
675
676         * modules/unistr/u8-mbsnlen: New file.
677         * lib/unistr/u8-mbsnlen.c: New file.
678
679         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
680         declarations.
681
682 2007-06-10  Bruno Haible  <bruno@clisp.org>
683
684         * lib/string_.h (mbsnlen): New declaration.
685         * lib/mbsnlen.c: New file.
686         * m4/mbsnlen.m4: New file.
687         * modules/mbsnlen: New file.
688         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
689         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
690         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
691
692 2007-06-10  Bruno Haible  <bruno@clisp.org>
693
694         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
695
696 2007-06-10  Bruno Haible  <bruno@clisp.org>
697
698         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
699         * lib/mbuiter.h: Likewise.
700
701 2007-06-10  Bruno Haible  <bruno@clisp.org>
702
703         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
704         declaration.
705
706 2007-06-10  Karl Berry  <karl@gnu.org>
707
708         * config/srclist.txt: remove gettext entries, Bruno prefers
709         to update individually.
710
711 2007-06-10  Bruno Haible  <bruno@clisp.org>
712
713         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
714         'maxlen'. Ensure only length + width bytes are allocated, not
715         length + 1 + width.
716
717 2007-06-09  Bruno Haible  <bruno@clisp.org>
718
719         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
720         (CHAR_T): Remove macro.
721         (VASNPRINTF): Update.
722
723 2007-06-09  Bruno Haible  <bruno@clisp.org>
724
725         * MODULES.html.sh (Unicode string functions): Add the new modules.
726
727         * modules/uniconv/u32-conv-to-enc: New file.
728         * lib/uniconv/u32-conv-to-enc.c: New file.
729         * modules/uniconv/u32-conv-to-enc-tests: New file.
730         * tests/uniconv/test-u32-conv-to-enc.c: New file.
731
732         * modules/uniconv/u16-conv-to-enc: New file.
733         * lib/uniconv/u16-conv-to-enc.c: New file.
734         * lib/uniconv/u-conv-to-enc.h: New file.
735         * modules/uniconv/u16-conv-to-enc-tests: New file.
736         * tests/uniconv/test-u16-conv-to-enc.c: New file.
737
738         * modules/uniconv/u8-conv-to-enc: New file.
739         * lib/uniconv/u8-conv-to-enc.c: New file.
740         * modules/uniconv/u8-conv-to-enc-tests: New file.
741         * tests/uniconv/test-u8-conv-to-enc.c: New file.
742
743         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
744         u32_conv_to_encoding): New declarations.
745
746 2007-06-09  Bruno Haible  <bruno@clisp.org>
747
748         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
749
750 2007-06-09  Bruno Haible  <bruno@clisp.org>
751
752         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
753         * modules/malloca: Renamed from modules/allocsa, updated.
754         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
755         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
756         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
757         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
758         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
759         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
760         * modules/xmalloca: Renamed from modules/xallocsa, updated.
761         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
762         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
763         * modules/c-strcasestr (Depends-on): Update.
764         * lib/c-strcasestr.c: Update.
765         * modules/c-strstr (Depends-on): Update.
766         * lib/c-strstr.c: Update.
767         * modules/canonicalize-lgpl (Depends-on): Update.
768         * lib/canonicalize-lgpl.c: Update.
769         * modules/clean-temp (Depends-on): Update.
770         * lib/clean-temp.c: Update.
771         * modules/csharpcomp (Depends-on): Update.
772         * lib/csharpcomp.c: Update.
773         * modules/csharpexec (Depends-on): Update.
774         * lib/csharpexec.c: Update.
775         * modules/javacomp (Depends-on): Update.
776         * lib/javacomp.c: Update.
777         * modules/javaexec (Depends-on): Update.
778         * lib/javaexec.c: Update.
779         * modules/mbscasestr (Depends-on): Update.
780         * lib/mbscasestr.c: Update.
781         * modules/mbsstr (Depends-on): Update.
782         * lib/mbsstr.c: Update.
783         * modules/setenv (Depends-on): Update.
784         * lib/setenv.c: Update.
785         * modules/strcasestr (Depends-on): Update.
786         * lib/strcasestr.c: Update.
787         * modules/striconveha (Depends-on): Update.
788         * lib/striconveha.c: Update.
789         * modules/relocatable-prog-wrapper (Files): Update.
790         * lib/relocwrapper.c: Update.
791         * build-aux/install-reloc: Update.
792         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
793
794 2007-06-08  Bruno Haible  <bruno@clisp.org>
795
796         Port to uClibc.
797         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
798         * lib/fpurge.c (fpurge): Likewise.
799         * lib/freading.c (freading): Likewise.
800         * lib/fseeko.c (rpl_fseeko): Likewise.
801         * lib/fseterr.c (fseterr): Likewise.
802         * lib/fwriting.c (fwriting): Likewise.
803         * tests/test-fflush.c (main): Avoid a failure on uClibc.
804
805 2007-06-08  Bruno Haible  <bruno@clisp.org>
806
807         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
808         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
809         * modules/gettext (Files): Add m4/intlmacosx.m4.
810
811 2007-06-07  Bruno Haible  <bruno@clisp.org>
812
813         * modules/localename-tests: New file.
814         * tests/test-localename.c: New file.
815
816         New module 'localename'.
817         * lib/localename.h: New file.
818         * lib/localename.c: New file, from GNU gettext.
819         * m4/localename.m4: New file.
820         * modules/localename: New file.
821
822 2007-06-07  Bruno Haible  <bruno@clisp.org>
823
824         Work around the lack of <wchar.h> on some builds of uClibc.
825         * doc/headers/wchar.texi: Update.
826         * lib/wchar_.h: Include <wchar.h> only if it exists.
827         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
828         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
829         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
830         doesn't exist.
831         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
832         * modules/mbfile (Depends-on): Add wchar.
833         * modules/mbiter (Depends-on): Likewise.
834         * modules/mbuiter (Depends-on): Likewise.
835         Reported by Simon Josefsson.
836
837 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
838
839         Work around problem reported by Steven M. Schweda in
840         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
841         Tru64 5.1B with the Compaq compiler environment installed declares
842         an 'isblank' function but does not define it in the C library.
843         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
844         * lib/regex_internal.h (isblank): Likewise.
845         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
846         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
847
848 2007-06-05  Bruno Haible  <bruno@clisp.org>
849
850         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
851         ia64.
852         * modules/printf-safe: New file.
853         * modules/fprintf-posix (Depends-on): Add printf-safe.
854         * modules/printf-posix (Depends-on): Likewise.
855         * modules/snprintf-posix (Depends-on): Likewise.
856         * modules/sprintf-posix (Depends-on): Likewise.
857         * modules/vasnprintf-posix (Depends-on): Likewise.
858         * modules/vasprintf-posix (Depends-on): Likewise.
859         * modules/vfprintf-posix (Depends-on): Likewise.
860         * modules/vprintf-posix (Depends-on): Likewise.
861         * modules/vsnprintf-posix (Depends-on): Likewise.
862         * modules/vsprintf-posix (Depends-on): Likewise.
863         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
864         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
865         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
866         "no" on i386, x86_64, ia64.
867         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
868         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
869         on i386, x86_64, ia64.
870         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
871         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
872         on i386, x86_64, ia64.
873         * tests/test-vasnprintf-posix.c: Include float.h.
874         (LDBL80_WORDS): New macro.
875         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
876         on i386, x86_64, ia64.
877         * tests/test-vasprintf-posix.c: Include float.h.
878         (LDBL80_WORDS): New macro.
879         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
880         on i386, x86_64, ia64.
881         * tests/test-snprintf-posix.c: Include float.h.
882         * tests/test-sprintf-posix.c: Likewise.
883         * tests/test-vsnprintf-posix.c: Likewise.
884         * tests/test-vsprintf-posix.c: Likewise.
885
886 2007-06-05  Bruno Haible  <bruno@clisp.org>
887
888         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
889         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
890         non-IEEE numbers on i386, x86_64, ia64.
891         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
892         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
893         * tests/test-isnanl.h: Include float.h.
894         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
895
896 2007-06-05  Bruno Haible  <bruno@clisp.org>
897
898         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
899         also the %a / %A. Handle the %a / %A code before this extra handling.
900
901 2007-06-05  Bruno Haible  <bruno@clisp.org>
902
903         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
904         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
905
906 2007-06-05  Bruno Haible  <bruno@clisp.org>
907
908         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
909         typo in variable name.
910
911 2007-06-05  Eric Blake  <ebb9@byu.net>
912
913         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
914         Reported by Simon Josefsson.
915
916 2007-06-04  Bruno Haible  <bruno@clisp.org>
917
918         Avoid test failures on some PowerPC platforms.
919         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
920         Define differently for PowerPC.
921         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
922         Reported by Gary V. Vaughan <gary@gnu.org>.
923
924 2007-06-02  Bruno Haible  <bruno@clisp.org>
925
926         Fix test-stdint failure on FreeBSD/ia64.
927         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
928         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
929         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
930         * doc/headers/stdint.texi: Update.
931
932 2007-06-01  Bruno Haible  <bruno@clisp.org>
933
934         * tests/test-binary-io.c (main): Pass a third argument to open().
935         Reported by Gary V. Vaughan <gary@gnu.org>.
936
937 2007-06-01  Bruno Haible  <bruno@clisp.org>
938
939         * doc/functions/frexpl.texi: Update for mingw.
940
941 2007-06-01  Bruno Haible  <bruno@clisp.org>
942
943         * tests/test-lseek.c (main): Disable test of errno for invalid third
944         argument.
945         * doc/functions/lseek.texi: Update.
946         Reported by Gary V. Vaughan <gary@gnu.org>.
947
948 2007-05-28  Bruno Haible  <bruno@clisp.org>
949
950         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
951
952 2007-05-31  Eric Blake  <ebb9@byu.net>
953
954         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
955         cross compiling.
956
957 2007-05-30  Eric Blake  <ebb9@byu.net>
958         and Bruno Haible  <bruno@clisp.org>
959
960         Work around mingw test failures exposed by m4-1.4.9b.
961         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
962         * tests/test-unistd.c: Disable uid_t and git_t tests for the
963         moment.
964
965 2007-05-30  Bruno Haible  <bruno@clisp.org>
966
967         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
968         assuming that they are closed. Needed on HP-UX 11.
969
970 2007-05-29  Bruno Haible  <bruno@clisp.org>
971
972         Fix a problem with #include_next.
973         * lib/dirent_.h: Split the double-inclusion guard.
974         * lib/fcntl_.h: Likewise.
975         * lib/float_.h: Likewise.
976         * lib/iconv_.h: Likewise.
977         * lib/inttypes_.h: Likewise.
978         * lib/locale_.h: Likewise.
979         * lib/math_.h: Likewise.
980         * lib/netinet_in_.h: Likewise.
981         * lib/search_.h: Likewise.
982         * lib/signal_.h: Likewise.
983         * lib/stdint_.h: Likewise.
984         * lib/stdio_.h: Likewise.
985         * lib/stdlib_.h: Likewise.
986         * lib/string_.h: Likewise.
987         * lib/sys_select_.h: Likewise.
988         * lib/sys_socket_.h: Likewise.
989         * lib/sys_stat_.h: Likewise.
990         * lib/sys_time_.h: Likewise.
991         * lib/sysexits_.h: Likewise.
992         * lib/time_.h: Likewise.
993         * lib/unistd_.h: Likewise.
994         * lib/wchar_.h: Likewise.
995         * lib/wctype_.h: Likewise.
996
997 2007-05-29  Bruno Haible  <bruno@clisp.org>
998
999         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
1000         for the moment.
1001
1002 2007-05-29  Bruno Haible  <bruno@clisp.org>
1003
1004         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
1005         invocation.
1006         Reported by Eric Blake.
1007
1008 2007-05-29  Bruno Haible  <bruno@clisp.org>
1009
1010         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
1011         compiling case.
1012
1013 2007-05-29  Eric Blake  <ebb9@byu.net>
1014             Bruno Haible  <bruno@clisp.org>
1015
1016         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
1017         cross compiles.
1018
1019 2007-05-28  Eric Blake  <ebb9@byu.net>
1020
1021         * modules/closein-tests (test_closein_LDADD): Support test on
1022         cygwin with libtool.
1023
1024 2007-05-28  Bruno Haible  <bruno@clisp.org>
1025
1026         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
1027         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
1028         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
1029         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
1030         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
1031         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
1032         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
1033         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
1034         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
1035
1036 2007-05-28  Eric Blake  <ebb9@byu.net>
1037
1038         Unconditionally include <config.h> in unit tests.
1039         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
1040         * tests/test-allocsa.c, tests/test-arcfour.c,
1041         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
1042         tests/test-array_list.c, tests/test-array_oset.c,
1043         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
1044         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
1045         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
1046         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
1047         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
1048         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
1049         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
1050         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
1051         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
1052         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
1053         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
1054         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
1055         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
1056         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
1057         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
1058         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
1059         test-md5.c, test-memmem.c, test-printf-posix.c,
1060         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
1061         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
1062         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
1063         test-strcasestr.c, test-striconv.c, test-striconveh.c,
1064         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
1065         test-vasnprintf-posix2.c, test-vasnprintf.c,
1066         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
1067         test-vfprintf-posix.c, test-vprintf-posix.c,
1068         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
1069         test-xvasprintf.c: Likewise.
1070
1071 2007-05-28  Bruno Haible  <bruno@clisp.org>
1072
1073         * gnulib-tool (func_import): Remember the --with-tests command-line
1074         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
1075         Reported by Eric Blake.
1076
1077 2007-05-28  Bruno Haible  <bruno@clisp.org>
1078
1079         * modules/ftell-tests: New file.
1080         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
1081         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
1082
1083         * lib/ftell.c: New file.
1084         * modules/ftell: New file.
1085         * m4/ftell.m4: New file.
1086         * doc/functions/ftell.texi: Update.
1087         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
1088         REPLACE_FTELL.
1089         * lib/stdio_.h (rpl_ftell): New declaration.
1090         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
1091         REPLACE_FTELL.
1092
1093 2007-05-28  Eric Blake  <ebb9@byu.net>
1094
1095         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
1096
1097 2007-05-28  Bruno Haible  <bruno@clisp.org>
1098
1099         * modules/fseek-tests: New file.
1100         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
1101         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
1102
1103         * lib/fseek.c: New file.
1104         * modules/fseek: New file.
1105         * m4/fseek.m4: New file.
1106         * doc/functions/fseek.texi: Update.
1107         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
1108         REPLACE_FSEEK.
1109         * lib/stdio_.h (rpl_fseek): New declaration.
1110         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
1111         REPLACE_FSEEK.
1112
1113 2007-05-28  Bruno Haible  <bruno@clisp.org>
1114
1115         * lib/stdio_.h (fflush): More comments.
1116
1117 2007-05-28  Bruno Haible  <bruno@clisp.org>
1118
1119         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
1120         runtime test.
1121
1122 2007-05-28  Eric Blake  <ebb9@byu.net>
1123
1124         Improve lseek module.
1125         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
1126         * lib/unistd_.h (lseek): Scale back link warning message.
1127         * tests/test-lseek.c: Beef up test.
1128         * tests/test-lseek.sh: Exercise more facets of lseek.
1129         Reported by Bruno Haible.
1130
1131 2007-05-28  Bruno Haible  <bruno@clisp.org>
1132
1133         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
1134         to define.
1135
1136 2007-05-27  Bruno Haible  <bruno@clisp.org>
1137
1138         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
1139
1140 2007-05-27  Bruno Haible  <bruno@clisp.org>
1141
1142         * modules/openmp: New file.
1143         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
1144         Noah Misch.
1145
1146 2007-05-26  Bruno Haible  <bruno@clisp.org>
1147
1148         * modules/chdir-long (Depends-on): Add fchdir.
1149         * modules/chdir-safer (Depends-on): Likewise.
1150         * modules/fts (Depends-on): Likewise.
1151         * modules/fts-lgpl (Depends-on): Likewise.
1152         * modules/openat (Depends-on): Likewise.
1153         * modules/savewd (Depends-on): Likewise.
1154
1155 2007-05-24  Eric Blake  <ebb9@byu.net>
1156
1157         Fix lseek on mingw.
1158         * modules/lseek: New module.
1159         * m4/lseek.m4: New file.
1160         * lib/lseek.c: New file.
1161         * modules/lseek-tests: New file.
1162         * tests/test-lseek.c: New file.
1163         * tests/test-lseek.sh: New file.
1164         * MODULES.html.sh: Document lseek module.
1165         * modules/fflush (Depends-on): Add lseek, fseeko.
1166         * modules/fseeko (Depends-on): Likewise.
1167         * modules/ftello (Depends-on): Likewise.
1168         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
1169         broken.
1170         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
1171         broken.
1172         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
1173         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
1174         * lib/ftello.c (rpl_ftello): Likewise.
1175         * tests/test-fseeko.c (main): Test this.
1176         * tests/test-fseeko.sh: Likewise.
1177         * tests/test-ftello.c (main): Likewise.
1178         * tests/test-ftello.sh: Likewise.
1179         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
1180         implies replacing fseek.
1181         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
1182         HAVE_FTELLO.
1183         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
1184         * modules/unistd (Makefile.am): Likewise.
1185         * lib/unistd_.h (lseek): Declare a replacement.
1186         * doc/functions/lseek.texi (lseek): Document this fix.
1187         * doc/functions/fseek.texi (fseek): Likewise.
1188         * doc/functions/ftell.texi (ftell): Likewise.
1189
1190 2007-05-24  Bruno Haible  <bruno@clisp.org>
1191
1192         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
1193         in the printed representation of a NaN.
1194         * tests/test-vasprintf-posix.c (test_function): Likewise.
1195         * tests/test-snprintf-posix.h (test_function): Likewise.
1196         * tests/test-sprintf-posix.h (test_function): Likewise.
1197         Reported by Eric Blake.
1198
1199 2007-05-23  Eric Blake  <ebb9@byu.net>
1200
1201         Fix fseeko/ftello on cygwin 1.5.24.
1202         * doc/functions/fseeko.texi (fseeko): Document the fix.
1203         * doc/functions/ftello.texi (ftello): Document the fix.
1204         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
1205         * doc/functions/stdout.text (stdout): New file.
1206         * doc/functions/stderr.text (stderr): New file.
1207         * doc/gnulib.texi (Function Substitutes): Use new files.
1208         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
1209         prior to 1.7.0.
1210         * tests/test-ftello.c (main): Likewise for ftello.
1211         * tests/test-fseeko.sh: New file.
1212         * tests/test-ftello.sh: New file.
1213         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
1214         with seekable stdin.
1215         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
1216         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
1217         (gl_REPLACE_FSEEKO): New macro.
1218         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
1219         * modules/fseeko (Files): Distribute fseeko.c.
1220         * modules/ftello (Files): Distribute ftello.c.
1221         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
1222         mode.
1223         * lib/ftello.c (rpl_ftello): New file.
1224         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
1225         fseeko, ftello.
1226         (gl_STDIN_LARGE_OFFSET): New macro.
1227         * modules/stdio (Makefile.am): Perform the replacement.
1228         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
1229
1230 2007-05-23  Bruno Haible  <bruno@clisp.org>
1231
1232         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
1233         GNULIB_POSIXCHECK is defined.
1234
1235 2007-05-21  Bruno Haible  <bruno@clisp.org>
1236
1237         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
1238         Check also the output for NaN arguments. When cross-compiling, guess
1239         no on IRIX.
1240         * lib/vasnprintf.c: Update comments.
1241         * tests/test-vasnprintf-posix.c (strisnan): New function.
1242         (test_function): Use it.
1243         * tests/test-vasprintf-posix.c (strisnan): New function.
1244         (test_function): Use it.
1245         * tests/test-snprintf-posix.h (strisnan): New function.
1246         (test_function): Use it.
1247         * tests/test-sprintf-posix.h (strisnan): New function.
1248         (test_function): Use it.
1249         Reported by Eric Blake.
1250
1251 2007-05-20  Bruno Haible  <bruno@clisp.org>
1252
1253         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
1254         numbers that fails on BeOS.
1255         * doc/functions/frexpl.texi: Update.
1256
1257 2007-05-20  Jim Meyering  <jim@meyering.net>
1258
1259         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
1260         forced upon us by glibc-2.6.
1261
1262 2007-05-20  Bruno Haible  <bruno@clisp.org>
1263
1264         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
1265         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
1266         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
1267         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
1268         NEED_PRINTF_INFINITE.
1269         (is_infinitel): New function.
1270         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
1271         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
1272         gl_PREREQ_VASNPRINTF_INFINITE.
1273         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
1274         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
1275         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
1276         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
1277         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
1278         gl_PREREQ_VASNPRINTF_INFINITE.
1279         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
1280         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
1281         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
1282         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
1283         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
1284         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
1285         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
1286         * doc/functions/fprintf.texi: Update.
1287         * doc/functions/printf.texi: Update.
1288         * doc/functions/snprintf.texi: Update.
1289         * doc/functions/sprintf.texi: Update.
1290         * doc/functions/vfprintf.texi: Update.
1291         * doc/functions/vprintf.texi: Update.
1292         * doc/functions/vsnprintf.texi: Update.
1293         * doc/functions/vsprintf.texi: Update.
1294
1295 2007-05-20  Bruno Haible  <bruno@clisp.org>
1296
1297         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
1298         was not found in libc.
1299         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
1300
1301 2007-05-20  Bruno Haible  <bruno@clisp.org>
1302
1303         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
1304         printed as "-nan" instead of "nan".
1305         * tests/test-vasprintf-posix.c (test_function): Likewise.
1306         * tests/test-snprintf-posix.h (test_function): Likewise.
1307         * tests/test-sprintf-posix.h (test_function): Likewise.
1308         Needed for HP-UX 11.
1309
1310 2007-05-20  Jim Meyering  <jim@meyering.net>
1311
1312         Fix buggy test for the fchownat-deref bug.
1313         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
1314         symlink required for the run-test.  Without it, this test would
1315         always declare that fchownat doesn't work, and client code would
1316         unnecessarily use the replacement function with fixed libc.
1317         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
1318         Reported by Greg Schafer.
1319
1320 2007-05-19  Bruno Haible  <bruno@clisp.org>
1321
1322         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
1323         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
1324         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
1325         Needed for IRIX 6.5 and Solaris 2.5.1.
1326
1327 2007-05-19  Bruno Haible  <bruno@clisp.org>
1328
1329         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
1330         (test_function): Skip tests involving -0.0 on platforms where
1331         -0.0 = 0.0.
1332         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
1333         (test_function): Skip tests involving -0.0 on platforms where
1334         -0.0 = 0.0.
1335         * tests/test-snprintf-posix.h (have_minus_zero): New function.
1336         (test_function): Skip tests involving -0.0 on platforms where
1337         -0.0 = 0.0.
1338         * tests/test-sprintf-posix.h (have_minus_zero): New function.
1339         (test_function): Skip tests involving -0.0 on platforms where
1340         -0.0 = 0.0.
1341         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
1342         tests.
1343         * tests/test-printf-posix.h (test_function): Likewise.
1344         * tests/test-printf-posix.output: Remove all -0.0 related results.
1345         Needed for IRIX 6.5.
1346
1347 2007-05-19  Bruno Haible  <bruno@clisp.org>
1348
1349         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
1350         printed as "nan0x7fffffff" instead of "nan".
1351         * tests/test-vasprintf-posix.c (test_function): Likewise.
1352         * tests/test-snprintf-posix.h (test_function): Likewise.
1353         * tests/test-sprintf-posix.h (test_function): Likewise.
1354         * tests/test-fprintf-posix.h (NaN): Remove macro.
1355         (test_function): Remove all NaN related tests.
1356         * tests/test-printf-posix.h (NaN): Remove macro.
1357         (test_function): Remove all NaN related tests.
1358         * tests/test-printf-posix.output: Remove all NaN related results.
1359         Needed for IRIX 6.5.
1360
1361 2007-05-19  Bruno Haible  <bruno@clisp.org>
1362
1363         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
1364         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
1365
1366 2007-05-19  Bruno Haible  <bruno@clisp.org>
1367
1368         * lib/float_.h: New file.
1369         * m4/float_h.m4: New file.
1370         * modules/float: New file.
1371         * modules/isnanl (Dependencies): Add float.
1372         * modules/isnanl-nolibm (Dependencies): Likewise.
1373         * modules/mathl (Dependencies): Likewise.
1374         * modules/printf-frexpl (Dependencies): Likewise.
1375         * modules/signbit (Dependencies): Likewise.
1376         * modules/vasnprintf (Dependencies): Likewise.
1377         * doc/headers/float.texi: Update.
1378
1379 2007-05-19  Jim Meyering  <jim@meyering.net>
1380
1381         * lib/utimens.c (gl_futimens): Rename from futimens,
1382         now that glibc-2.6 declares futimens.
1383         * lib/utimens.h: Likewise.
1384
1385 2007-05-19  Bruno Haible  <bruno@clisp.org>
1386
1387         Avoid test failures on mingw.
1388         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
1389         * tests/test-printf-posix.sh: Likewise.
1390         * tests/test-vfprintf-posix.sh: Likewise.
1391         * tests/test-vprintf-posix.sh: Likewise.
1392
1393 2007-05-19  Bruno Haible  <bruno@clisp.org>
1394
1395         Fix *printf result for NaN, Inf, -0.0 on mingw.
1396         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
1397         * lib/vasnprintf.c: Include math.h and isnan.h.
1398         (is_infinite_or_zero): New function.
1399         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
1400         values in the %f, %F, %e, %E, %g, %G directives.
1401         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
1402         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
1403         gl_PRINTF_INFINITE and test its result. Invoke
1404         gl_PREREQ_VASNPRINTF_INFINITE.
1405         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
1406         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
1407         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
1408         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
1409         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
1410         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
1411         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
1412         * doc/functions/fprintf.texi: Update.
1413         * doc/functions/printf.texi: Update.
1414         * doc/functions/snprintf.texi: Update.
1415         * doc/functions/sprintf.texi: Update.
1416         * doc/functions/vfprintf.texi: Update.
1417         * doc/functions/vprintf.texi: Update.
1418         * doc/functions/vsnprintf.texi: Update.
1419         * doc/functions/vsprintf.texi: Update.
1420
1421 2007-05-19  Bruno Haible  <bruno@clisp.org>
1422
1423         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
1424         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
1425         Instead of multiplying with 10^k, set extra_zeroes to k.
1426         (scale10_round_long_double): Remove function.
1427
1428 2007-05-18  Bruno Haible  <bruno@clisp.org>
1429
1430         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
1431         introduced on 2007-05-06.
1432
1433 2007-05-18  Bruno Haible  <bruno@clisp.org>
1434
1435         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
1436         %g directives.
1437         * tests/test-vasprintf-posix.c (test_function): Likewise.
1438         * tests/test-snprintf-posix.h (test_function): Likewise.
1439         * tests/test-sprintf-posix.h (test_function): Likewise.
1440
1441 2007-05-18  Bruno Haible  <bruno@clisp.org>
1442
1443         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
1444         (strmatch): New function.
1445         (test_function): Test the %f directive on numbers of various exponents.
1446         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
1447         (strmatch): New function.
1448         (test_function): Test the %f directive on numbers of various exponents.
1449         * tests/test-snprintf-posix.h (strmatch): New function.
1450         (test_function): Test the %f directive on numbers of various exponents.
1451         * tests/test-sprintf-posix.h (strmatch): New function.
1452         (test_function): Test the %f directive on numbers of various exponents.
1453         * tests/test-snprintf-posix.c (SIZEOF): New macro.
1454         * tests/test-sprintf-posix.c (SIZEOF): New macro.
1455         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
1456         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
1457
1458 2007-05-18  Bruno Haible  <bruno@clisp.org>
1459
1460         Add support for 'long double' number output.
1461         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
1462         * lib/vasnprintf.c: Include math.h and float+.h.
1463         (mp_limb_t): New type.
1464         (GMP_LIMB_BITS): New macro.
1465         (mp_twolimb_t): New type.
1466         (GMP_TWOLIMB_BITS): New macro.
1467         (mpn_t): New type.
1468         (multiply, divide, convert_to_decimal, decode_long_double,
1469         scale10_round_long_double, scale10_round_decimal_long_double,
1470         floorlog10l): New functions.
1471         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
1472         for the %f, %F, %e, %E, %g, %G directives.
1473         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
1474         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
1475         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
1476         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
1477         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
1478         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
1479         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
1480         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
1481         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
1482         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
1483         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
1484         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
1485         * modules/snprintf-posix (Depends-on): Likewise.
1486         * modules/sprintf-posix (Depends-on): Likewise.
1487         * modules/vasnprintf-posix (Depends-on): Likewise.
1488         * modules/vasprintf-posix (Depends-on): Likewise.
1489         * modules/vfprintf-posix (Depends-on): Likewise.
1490         * modules/vsnprintf-posix (Depends-on): Likewise.
1491         * modules/vsprintf-posix (Depends-on): Likewise.
1492         * modules/vasnprintf (Files): Add lib/float+.h.
1493         * doc/functions/fprintf.texi: Update.
1494         * doc/functions/printf.texi: Update.
1495         * doc/functions/snprintf.texi: Update.
1496         * doc/functions/sprintf.texi: Update.
1497         * doc/functions/vfprintf.texi: Update.
1498         * doc/functions/vprintf.texi: Update.
1499         * doc/functions/vsnprintf.texi: Update.
1500         * doc/functions/vsprintf.texi: Update.
1501
1502 2007-05-18  Bruno Haible  <bruno@clisp.org>
1503
1504         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
1505
1506 2007-05-18  Bruno Haible  <bruno@clisp.org>
1507
1508         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
1509         for printing 64-bit integers. Needed for mingw.
1510
1511 2007-05-18  Bruno Haible  <bruno@clisp.org>
1512
1513         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
1514         gl_FUNC_FREXPL_WORKS.
1515         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
1516
1517 2007-05-18  Bruno Haible  <bruno@clisp.org>
1518
1519         * modules/frexpl-nolibm-tests: New file.
1520
1521         * modules/frexpl-nolibm: New file.
1522         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
1523
1524 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
1525
1526         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
1527         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
1528         GCC 4.2, which otherwise issues a lot of warnings.
1529         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
1530         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
1531         Likewise.
1532         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
1533         * modules/iconv_open (iconv.h): Likewise.
1534         * modules/locale (locale.h): Likewise.
1535         * modules/netinet_in (netinet/in.h): Likewise.
1536         * modules/sys_select (sys_select.h): Likewise.
1537         * modules/sys_socket (sys/socket.h): Likewise.
1538         * modules/sys_stat (sys/stat.h): Likewise.
1539         * modules/sysexits (sysexits.h): Likewise.
1540         * modules/unistd (unistd.h): Likewise.
1541
1542 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1543
1544         * modules/closein-tests (Makefile.am): Distribute
1545         `test-closein.sh'.
1546
1547 2007-05-17  Bruno Haible  <bruno@clisp.org>
1548
1549         * tests/test-printf-posix.output: Renamed from
1550         tests/test-fprintf-posix.out.
1551         * modules/fprintf-posix-tests: Update.
1552         * modules/printf-posix-tests: Update.
1553         * modules/vfprintf-posix-tests: Update.
1554         * modules/vprintf-posix-tests: Update.
1555         * tests/test-fprintf-posix.sh: Update.
1556         * tests/test-printf-posix.sh: Update.
1557         * tests/test-vfprintf-posix.sh: Update.
1558         * tests/test-vprintf-posix.sh: Update.
1559         Reported by Ralf Wildenhues.
1560
1561 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
1562
1563         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
1564         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
1565         GCC 4.2, which otherwise issues a lot of warnings.
1566         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
1567         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
1568         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
1569         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
1570         it should no longer be needed.
1571         * lib/string_.h: Likewise.
1572         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
1573         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
1574         * modules/inttypes (inttypes.h): Likewise.
1575         * modules/math (math.h): Likewise.
1576         * modules/search (search.h): Likewise.
1577         * modules/signal (signal.h): Likewise.
1578         * modules/stdint (stdint.h): Likewise.
1579         * modules/stdio (stdio.h): Likewise.
1580         * modules/stdlib (stdlib.h): Likewise.
1581         * modules/string (string.h): Likewise.
1582         * modules/sys_time (sys/time.h): Likewise.
1583         * modules/time (time.h): Likewise.
1584         * modules/wchar (wchar.h): Likewise.
1585         * modules/wctype (wtype.h): Likewise.
1586
1587 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
1588
1589         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
1590
1591 2007-05-13  Bruno Haible  <bruno@clisp.org>
1592
1593         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
1594         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
1595         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
1596         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
1597         (gl_PREREQ_STRTOK_R): Don't require it here.
1598
1599 2007-05-13  Bruno Haible  <bruno@clisp.org>
1600
1601         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
1602         when used in C++ mode.
1603
1604 2007-05-12  Bruno Haible  <bruno@clisp.org>
1605
1606         * lib/linebuffer.h: Tweak doc.
1607         * lib/linebuffer.c: Likewise.
1608
1609 2007-05-12  James Youngman  <jay@gnu.org>
1610
1611         * lib/linebuffer.c (readlinebuffer_delim): New function,
1612         like readlinebuffer, but use a caller-specified delimiter.
1613         (readlinebuffer): Just call readlinebuffer_delim with '\n'
1614         as the delimiter.
1615         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
1616
1617 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
1618
1619         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
1620         * modules/openat (Files): Remove openat-die.c.
1621         (Depends-on): Add openat-die.
1622         * modules/openat-die: New module.
1623
1624 2007-05-06  Bruno Haible  <bruno@clisp.org>
1625
1626         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
1627         Update with info about Cygwin.
1628         * doc/functions/fprintf.texi: Update.
1629         * doc/functions/printf.texi: Update.
1630         * doc/functions/snprintf.texi: Update.
1631         * doc/functions/sprintf.texi: Update.
1632         * doc/functions/vfprintf.texi: Update.
1633         * doc/functions/vprintf.texi: Update.
1634         * doc/functions/vsnprintf.texi: Update.
1635         * doc/functions/vsprintf.texi: Update.
1636         Reported by Eric Blake.
1637
1638 2007-05-06  Bruno Haible  <bruno@clisp.org>
1639
1640         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
1641         padding ourselves for the floating-point directives.
1642         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
1643         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
1644         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
1645         gl_PRINTF_FLAG_ZERO and test its result. Invoke
1646         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
1647         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
1648         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
1649         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
1650         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
1651         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
1652         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
1653         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
1654         * tests/test-snprintf-posix.h (test_function): Also check the width
1655         and some flags in the %f directive.
1656         * tests/test-sprintf-posix.h (test_function): Likewise.
1657         * tests/test-vasnprintf-posix.c (test_function): Likewise.
1658         * tests/test-vasprintf-posix.c (test_function): Likewise.
1659         * doc/functions/fprintf.texi: Update.
1660         * doc/functions/printf.texi: Update.
1661         * doc/functions/snprintf.texi: Update.
1662         * doc/functions/sprintf.texi: Update.
1663         * doc/functions/vfprintf.texi: Update.
1664         * doc/functions/vprintf.texi: Update.
1665         * doc/functions/vsnprintf.texi: Update.
1666         * doc/functions/vsprintf.texi: Update.
1667
1668 2007-05-06  Bruno Haible  <bruno@clisp.org>
1669
1670         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
1671         pass the ' flag character to sprintf or snprintf.
1672         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
1673         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
1674         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
1675         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
1676         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
1677         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
1678         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
1679         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
1680         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
1681         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
1682         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
1683         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
1684         * tests/test-snprintf-posix.h (test_function): Also check the grouping
1685         flag.
1686         * tests/test-sprintf-posix.h (test_function): Likewise.
1687         * tests/test-vasnprintf-posix.c (test_function): Likewise.
1688         * tests/test-vasprintf-posix.c (test_function): Likewise.
1689         * doc/functions/fprintf.texi: Update.
1690         * doc/functions/printf.texi: Update.
1691         * doc/functions/snprintf.texi: Update.
1692         * doc/functions/sprintf.texi: Update.
1693         * doc/functions/vfprintf.texi: Update.
1694         * doc/functions/vprintf.texi: Update.
1695         * doc/functions/vsnprintf.texi: Update.
1696         * doc/functions/vsprintf.texi: Update.
1697
1698 2007-05-01  Bruno Haible  <bruno@clisp.org>
1699
1700         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
1701
1702 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
1703
1704         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
1705         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
1706
1707 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
1708
1709         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
1710         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
1711         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
1712
1713 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
1714
1715         * lib/argp-help.c (struct hol_entry): New member `ord'.
1716         (HOL_ENTRY_PTRCMP): Use ord for comparison
1717         (hol_sort): Initialize ord.
1718
1719 2007-05-01  Bruno Haible  <bruno@clisp.org>
1720
1721         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
1722         Reported by Eric Blake.
1723         * doc/gnulib.texi (Function Substitutes): Update.
1724
1725 2007-05-01  Bruno Haible  <bruno@clisp.org>
1726
1727         * doc/functions.texi: Remove file, now redundant through
1728         doc/functions/*.texi.
1729
1730 2007-05-01  Bruno Haible  <bruno@clisp.org>
1731
1732         * modules/argp (Depends-on): Add sleep.
1733
1734 2007-05-01  Bruno Haible  <bruno@clisp.org>
1735
1736         * modules/sleep-tests: New file.
1737         * tests/test-sleep.c: New file.
1738
1739         * modules/sleep: New file.
1740         * lib/sleep.c: New file.
1741         * m4/sleep.m4: New file.
1742         * lib/unistd_.h (sleep): New declaration.
1743         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
1744         HAVE_SLEEP.
1745         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
1746         * doc/functions/sleep.texi: Document the sleep module.
1747
1748 2007-05-01  Bruno Haible  <bruno@clisp.org>
1749
1750         * lib/sigprocmask.h: Remove file.
1751         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
1752         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
1753         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
1754         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
1755         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
1756         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
1757         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
1758         HAVE_SIGSET_T as a shell variable.
1759         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
1760         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
1761         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
1762         (Depends-on): Add signal. Remove verify.
1763         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
1764         (Include): Mention <signal.h> instead of sigprocmask.h.
1765         * NEWS: Mention the change.
1766         * lib/fatal-signal.c: Don't include sigprocmask.h.
1767
1768 2007-05-01  Bruno Haible  <bruno@clisp.org>
1769
1770         * modules/signal: New file.
1771         * lib/signal_.h: New file.
1772         * m4/signal_h.m4: New file.
1773
1774 2007-05-01  Bruno Haible  <bruno@clisp.org>
1775
1776         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
1777         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
1778         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
1779         HAVE_WCTYPE_CTMP_BUG into wctype.h.
1780
1781 2007-05-01  Bruno Haible  <bruno@clisp.org>
1782
1783         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
1784         configure time.
1785         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
1786         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
1787         * modules/sys_stat (Makefile.am): Substitute their values into
1788         sys/stat.h.
1789
1790 2007-05-01  Bruno Haible  <bruno@clisp.org>
1791
1792         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
1793         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
1794         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
1795
1796 2007-05-01  Bruno Haible  <bruno@clisp.org>
1797
1798         * doc/header/assert.texi: Undo last change: don't mention the gnulib
1799         'assert' module here.
1800
1801 2007-05-01  Bruno Haible  <bruno@clisp.org>
1802
1803         * doc/functions/*.texi: New files.
1804         * doc/functions/google-ranking.txt: New file.
1805         * doc/gnulib.texi (Function Substitutes): New chapter.
1806         (ctime, inet_ntoa): Remove sections.
1807         * doc/ctime.texi: Remove file.
1808         * doc/inet_ntoa.texi: Remove file.
1809         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
1810         dependencies.
1811         (%.info): New rule, specifying a --reference-limit.
1812
1813 2007-05-01  Bruno Haible  <bruno@clisp.org>
1814
1815         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
1816
1817 2007-05-01  Bruno Haible  <bruno@clisp.org>
1818
1819         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
1820         the portability of 'mkdir' to mingw systems.
1821
1822 2007-05-01  Bruno Haible  <bruno@clisp.org>
1823
1824         * doc/headers/google-ranking.txt: New file.
1825
1826 2007-04-30  Eric Blake  <ebb9@byu.net>
1827
1828         Prefer fseeko to fseek.
1829         * modules/getpass (Depends-on): Add fseeko.
1830         * lib/getpass.c (getpass): Use fseeko, not fseek.
1831
1832 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
1833
1834         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
1835         assumes the sorting is stable, while most qsort implementations
1836         are not.  Use argument addresses to ensure they never compare as
1837         equal.
1838
1839         * tests/test-argp-2.sh (usage-indent test): Fix output
1840         (func_compare): Restore diff options
1841         * tests/test-argp.c: Restore #include "progname.h"
1842
1843 2007-04-29  Bruno Haible  <bruno@clisp.org>
1844
1845         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
1846         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
1847         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
1848         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
1849         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
1850         (configure.ac): Define CHECK_SNPRINTF_POSIX.
1851         (TESTS, check_PROGRAMS): Add test-snprintf.
1852         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
1853         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
1854         (TESTS, check_PROGRAMS): Add test-vsnprintf.
1855         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
1856         assertions that fail on HP-UX, OSF/1, or IRIX.
1857         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
1858
1859 2007-04-29  Bruno Haible  <bruno@clisp.org>
1860
1861         * MODULES.html.sh (posix_functions): Remove 'contents'.
1862
1863 2007-04-29  Karl Berry  <karl@gnu.org>
1864
1865         * config/srclist.txt (gendocs_template_min): new entry.
1866
1867 2007-04-29  Bruno Haible  <bruno@clisp.org>
1868
1869         Work around fpurge bug on BSD systems.
1870         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
1871         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
1872         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
1873         fpurge to rpl_fpurge if the system already has this function.
1874         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
1875         the case where the system already has this function. Correct invariants
1876         on BSD systems.
1877         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
1878         BSD systems.
1879
1880 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
1881
1882         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
1883         proposed by Sven Verdoolaege.
1884
1885         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
1886         options.
1887         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
1888         (usage and help tests): Update
1889
1890 2007-04-29  Bruno Haible  <bruno@clisp.org>
1891
1892         * tests/test-fflush.c (main): Use a file of size 17, not 10.
1893         Print more information in case of failure. Disable a test on BeOS.
1894
1895 2007-04-29  Bruno Haible  <bruno@clisp.org>
1896
1897         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
1898         This helps debugging on systems on which no gdb is available.
1899
1900 2007-04-29  Bruno Haible  <bruno@clisp.org>
1901
1902         * lib/freading.h: Improve comments.
1903         * lib/fwriting.h: Likewise.
1904         * tests/test-freading.c (main): Don't check freading immediately after
1905         repositioning. Needed for glibc.
1906
1907 2007-04-29  Bruno Haible  <bruno@clisp.org>
1908
1909         * lib/freading.c (freading): Trivial simplification.
1910
1911 2007-04-28  Bruno Haible  <bruno@clisp.org>
1912
1913         * tests/test-fwriting.c (main): Also test the interaction between
1914         fflush and fwriting.
1915         * modules/fwriting-tests (Depends-on): Add fflush.
1916
1917         * tests/test-freading.c (main): Also test the interaction between
1918         fflush and freading.
1919         * modules/freading-tests (Depends-on): Add fflush.
1920
1921 2007-04-28  Bruno Haible  <bruno@clisp.org>
1922
1923         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
1924         fseeko and ftello.
1925         Suggested by Eric Blake.
1926
1927 2007-04-28  Jim Meyering  <jim@meyering.net>
1928
1929         Avoid false-negative in gl_STDINT_H's C99 conformance test.
1930         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
1931         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
1932
1933 2007-04-27  Eric Blake  <ebb9@byu.net>
1934
1935         * doc/headers/assert.texi (assert.h): Document assert module use.
1936
1937 2007-04-27  Bruno Haible  <bruno@clisp.org>
1938
1939         * doc/headers/*.texi: New files.
1940         * doc/gnulib.texi (Header File Substitutes): New chapter.
1941         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
1942         dependencies.
1943         (standards.info ,standards.html, standards.dvi): Update dependencies.
1944         (mostlyclean, clean): New targets.
1945
1946 2007-04-27  Bruno Haible  <bruno@clisp.org>
1947
1948         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
1949         * modules/sysexits (Files, Makefile.am): Update.
1950
1951         * lib/sys_socket_.h: Renamed from lib/socket_.h.
1952         * modules/sys_socket (Files, Makefile.am): Update.
1953
1954         * lib/sys_stat_.h: Renamed from lib/stat_.h.
1955         * modules/sys_stat (Files, Makefile.am): Update.
1956
1957 2007-04-27  Eric Blake  <ebb9@byu.net>
1958
1959         * lib/freading.h: Improve comments.
1960         * lib/fwriting.h: Likewise.
1961         * lib/fflush.c: Likewise.
1962
1963         Fix closein for mingw.
1964         * modules/closein-tests: Add tests for closein.
1965         * tests/test-closein.c: New file.
1966         * tests/test-closein.sh: Likewise.
1967         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
1968         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
1969
1970 2007-04-27  Bruno Haible  <bruno@clisp.org>
1971
1972         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
1973         version is < 6.
1974         * lib/math_.h [__DECC]: Likewise.
1975         * lib/stdio_.h [__DECC]: Likewise.
1976         * lib/stdlib_.h [__DECC]: Likewise.
1977         * lib/string_.h [__DECC]: Likewise.
1978         * lib/time_.h [__DECC]: Likewise.
1979         * lib/wchar_.h [__DECC]: Likewise.
1980         * lib/wctype_.h [__DECC]: Likewise.
1981
1982 2007-04-27  Bruno Haible  <bruno@clisp.org>
1983
1984         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
1985
1986 2007-04-27  Bruno Haible  <bruno@clisp.org>
1987
1988         * lib/fflush.c: Add comments.
1989         * modules/fpurge-tests (Depends-on): Add fflush.
1990         * modules/freadable-tests (Depends-on): Likewise.
1991         * modules/fwritable-tests (Depends-on): Likewise.
1992
1993 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
1994
1995         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
1996         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
1997         Report by Bruno Haible <bruno@clisp.org>.
1998
1999 2007-04-26  Eric Blake  <ebb9@byu.net>
2000
2001         Fix fflush on mingw.
2002         * modules/fflush (Depends-on): Add freading.
2003         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
2004         but unread data.
2005
2006 2007-04-26  Eric Blake  <ebb9@byu.net>
2007         and Bruno Haible  <bruno@clisp.org>
2008
2009         Implement freading and fwriting.
2010         * lib/freading.c: New file.
2011         * lib/freading.h: Likewise.
2012         * m4/freading.m4: Likewise.
2013         * modules/freading: Likewise.
2014         * modules/freading-tests: Likewise.
2015         * tests/test-freading.c: Likewise.
2016         * lib/fwriting.c: New file.
2017         * lib/fwriting.h: Likewise.
2018         * m4/fwriting.m4: Likewise.
2019         * modules/fwriting: Likewise.
2020         * modules/fwriting-tests: Likewise.
2021         * tests/test-fwriting.c: Likewise.
2022         * MODULES.html.sh (File stream based Input/Output): Mention them.
2023
2024 2007-04-26  Bruno Haible  <bruno@clisp.org>
2025
2026         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
2027         'long' when we assume it.
2028         Suggested by Eric Blake.
2029
2030 2007-04-26  Bruno Haible  <bruno@clisp.org>
2031
2032         Ensure fseeko, ftello are declared on glibc systems.
2033         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
2034         * modules/fseeko (configure.ac-early): Likewise.
2035         * modules/ftello (configure.ac-early): Likewise.
2036         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
2037         AC_FUNC_FSEEKO for this.
2038         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
2039         (gl_CHECK_FSEEKO): Remove macro.
2040
2041 2007-04-26  Bruno Haible  <bruno@clisp.org>
2042
2043         * tests/test-fflush.c (main): Also check the ftell result after
2044         fflush and fseek/fseeko.
2045         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
2046         file descriptor position cache in the stream.
2047         * lib/fseeko.c (rpl_fseeko): Likewise.
2048
2049 2007-04-26  Bruno Haible  <bruno@clisp.org>
2050
2051         * modules/fflush-tests (Depends-on): Add fseeko.
2052
2053 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
2054             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2055
2056         * lib/argz_.h: ensure error_t definition is obtained in same
2057         mechanism system argz.h would have.
2058         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
2059         argz facilities are known bad.  Err on the side of caution if
2060         cross-compiling.
2061
2062 2007-04-25  Eric Blake  <ebb9@byu.net>
2063
2064         * lib/fpurge.c (includes): Use stdlib.h for free.
2065         * tests/test-fflush.c (main): Also test fflush-fseeko.
2066
2067 2007-04-25  Bruno Haible  <bruno@clisp.org>
2068
2069         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
2070         * lib/fseeko.c: New file.
2071         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
2072         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
2073         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
2074         gl_FUNC_FSEEKO.
2075         (gl_FUNC_FSEEKO): Invoke it.
2076         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
2077         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
2078         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
2079
2080 2007-04-25  Bruno Haible  <bruno@clisp.org>
2081
2082         * modules/fflush (Depends-on): Add ftello.
2083
2084 2007-04-25  Bruno Haible  <bruno@clisp.org>
2085
2086         * modules/ftello-tests: New file.
2087         * tests/test-ftello.c: New file.
2088
2089         * modules/ftello: New file.
2090         * m4/ftello.m4: New file.
2091         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
2092         HAVE_FTELLO.
2093         * lib/stdio_.h (ftello): New declaration.
2094         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
2095         HAVE_FTELLO.
2096
2097 2007-04-25  Bruno Haible  <bruno@clisp.org>
2098
2099         * modules/fseeko-tests: New file.
2100         * tests/test-fseeko.c: New file.
2101
2102         * modules/fseeko: New file.
2103         * m4/fseeko.m4: New file.
2104         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
2105         HAVE_FSEEKO.
2106         * lib/stdio_.h (fseeko): New declaration.
2107         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
2108         HAVE_FSEEKO.
2109
2110 2007-04-25  Bruno Haible  <bruno@clisp.org>
2111
2112         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
2113
2114 2007-04-25  Bruno Haible  <bruno@clisp.org>
2115
2116         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
2117         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
2118         * tests/test-unistd.c: Likewise.
2119         * tests/test-fcntl.c: Likewise.
2120
2121 2007-04-23  Eric Blake  <ebb9@byu.net>
2122
2123         * lib/fflush.c: Fix missing include.
2124         Reported by Bruno Haible.
2125
2126 2007-04-23  Bruno Haible  <bruno@clisp.org>
2127
2128         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
2129         Reported by Eric Blake.
2130
2131 2007-04-23  Bruno Haible  <bruno@clisp.org>
2132
2133         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
2134
2135 2007-04-23  Bruno Haible  <bruno@clisp.org>
2136
2137         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
2138
2139 2007-04-23  Bruno Haible  <bruno@clisp.org>
2140
2141         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
2142         Needed on HP-UX 11.
2143
2144 2007-04-16  Eric Blake  <ebb9@byu.net>
2145
2146         Make fflush rely on fpurge.
2147         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
2148         open coding all variants.
2149         * modules/fflush (Depends-on): Add fpurge and unistd.
2150         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
2151         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
2152
2153         Fix --with-tests compilation on cygwin.
2154         * modules/argmatch-tests (Makefile.am): List gnulib library first
2155         in LDADD.
2156         * modules/argp-tests (Makefile.am): Likewise.
2157         * modules/array-list-tests (Makefile.am): Likewise.
2158         * modules/array-oset-tests (Makefile.am): Likewise.
2159         * modules/avltree-list-tests (Makefile.am): Likewise.
2160         * modules/avltree-oset-tests (Makefile.am): Likewise.
2161         * modules/avltreehash-list-tests (Makefile.am): Likewise.
2162         * modules/carray-list-tests (Makefile.am): Likewise.
2163         * modules/dirname-tests (Makefile.am): Likewise.
2164         * modules/frexp-tests (Makefile.am): Likewise.
2165         * modules/isnanl-tests (Makefile.am): Likewise.
2166         * modules/linked-list-tests (Makefile.am): Likewise.
2167         * modules/linkedhash-list-tests (Makefile.am): Likewise.
2168         * modules/lock-tests (Makefile.am): Likewise.
2169         * modules/rbtree-list-tests (Makefile.am): Likewise.
2170         * modules/rbtree-oset-tests (Makefile.am): Likewise.
2171         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
2172         * modules/tls-tests (Makefile.am): Likewise.
2173         * modules/tsearch-tests (Makefile.am): Likewise.
2174         * modules/xvasprintf-tests (Makefile.am): Likewise.
2175
2176         Fix fpurge for cygwin.
2177         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
2178         value.
2179         * modules/fpurge-tests (Depends-on): Clean up trash.
2180
2181 2007-04-16  Simon Josefsson  <simon@josefsson.org>
2182
2183         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
2184
2185         * m4/autobuild.m4: Re-indent.
2186
2187 2007-04-13  Bruno Haible  <bruno@clisp.org>
2188
2189         * modules/fpurge-tests: New file.
2190         * tests/test-fpurge.c: New file.
2191
2192         * modules/fpurge: New file.
2193         * lib/fpurge.h: New file.
2194         * lib/fpurge.c: New file.
2195         * m4/fpurge.m4: New file.
2196
2197 2007-04-13  Bruno Haible  <bruno@clisp.org>
2198
2199         * modules/fbufmode-tests: New file.
2200         * tests/test-fbufmode.c: New file.
2201
2202         * modules/fbufmode: New file.
2203         * lib/fbufmode.h: New file.
2204         * lib/fbufmode.c: New file.
2205         * m4/fbufmode.m4: New file.
2206
2207 2007-04-13  Bruno Haible  <bruno@clisp.org>
2208
2209         * modules/fwritable-tests: New file.
2210         * tests/test-fwritable.c: New file.
2211
2212         * modules/fwritable: New file.
2213         * lib/fwritable.h: New file.
2214         * lib/fwritable.c: New file.
2215         * m4/fwritable.m4: New file.
2216
2217 2007-04-13  Bruno Haible  <bruno@clisp.org>
2218
2219         * modules/freadable-tests: New file.
2220         * tests/test-freadable.c: New file.
2221
2222         * modules/freadable: New file.
2223         * lib/freadable.h: New file.
2224         * lib/freadable.c: New file.
2225         * m4/freadable.m4: New file.
2226
2227 2007-04-13  Bruno Haible  <bruno@clisp.org>
2228
2229         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
2230         MOSTLYCLEANFILES.
2231
2232 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
2233
2234         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
2235         gzip bootstrap.conf to avoid dragging in i18n machinery.
2236         (gnulib_tool_option): Use it.
2237
2238 2007-04-13  Bruno Haible  <bruno@clisp.org>
2239
2240         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
2241         %F directives.
2242         * tests/test-vasprintf-posix.c (test_function): Likewise.
2243         * tests/test-snprintf-posix.h (test_function): Likewise.
2244         * tests/test-sprintf-posix.h (test_function): Likewise.
2245         * tests/test-fprintf-posix.h (test_function): Likewise.
2246         * tests/test-printf-posix.h (test_function): Likewise.
2247         * tests/test-fprintf-posix.out: Likewise.
2248
2249 2007-04-13  Bruno Haible  <bruno@clisp.org>
2250
2251         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
2252         * modules/tls-tests (configure.ac): Likewise.
2253         Reported by Arto C. Nirkko <anirkko@insel.ch>.
2254
2255 2007-04-13  Bruno Haible  <bruno@clisp.org>
2256
2257         * lib/tls.c (glthread_tls_get): Fix return type.
2258         Patch by Arto C. Nirkko <anirkko@insel.ch>.
2259
2260 2007-04-12  Eric Blake  <ebb9@byu.net>
2261
2262         * modules/gettime (Depends-on): Remove gettime.
2263         Reported by Dmitry V. Levin.
2264
2265 2007-04-12  Bruno Haible  <bruno@clisp.org>
2266
2267         * modules/fflush (Include): Mention <stdio.h>.
2268         * modules/strtoimax (Include): Mention <inttypes.h>.
2269         * modules/strtoumax (Include): Likewise.
2270
2271 2007-04-12  Eric Blake  <ebb9@byu.net>
2272
2273         * .cvsignore: New file.
2274         * .gitignore: Likewise.
2275
2276 2007-04-12  Bruno Haible  <bruno@clisp.org>
2277
2278         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
2279         not before, since $(LDADD) often contains libgnu.a.
2280         * modules/striconv-tests (test_striconv_LDADD): Likewise.
2281         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
2282         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
2283         Needed on Cygwin.
2284
2285 2007-04-12  Eric Blake  <ebb9@byu.net>
2286
2287         Work around glibc's failure to flush stdin on fclose.
2288         * lib/closein.c (close_stdin): Flush stdin before closing.
2289
2290         Work around glibc's failure to reset seekable stdin on exit.
2291         * modules/closein: New module.
2292         * lib/closein.c: New file.
2293         * lib/closein.h: Likewise.
2294         * m4/closein.m4: Likewise.
2295         * MODULES.html.sh (File stream based Input/Output): Document it.
2296
2297 2007-04-12  Simon Josefsson  <simon@josefsson.org>
2298
2299         * gnulib-tool: Rename generated 'autobuild' script to
2300         'do-autobuild' in --create-megatestdir output.
2301
2302         * doc/gnulib.texi (Build robot for gnulib): Fix.
2303
2304 2007-04-12  Simon Josefsson  <simon@josefsson.org>
2305
2306         * modules/sysexits (Depends-on): Add absolute-header.
2307
2308 2007-04-12  Eric Blake  <ebb9@byu.net>
2309
2310         No need to preserve errno on success.
2311         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
2312         Reported by Bruno Haible.
2313
2314 2007-04-12  Simon Josefsson  <simon@josefsson.org>
2315
2316         * MODULES.html.sh (Support for maintaining and releasing
2317         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
2318
2319 2007-04-12  Simon Josefsson  <simon@josefsson.org>
2320
2321         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
2322
2323 2007-04-12  Simon Josefsson  <simon@josefsson.org>
2324
2325         * modules/autobuild: New module.
2326
2327         * m4/autobuild.m4: New file.
2328
2329 2007-04-11  Bruno Haible  <bruno@clisp.org>
2330
2331         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
2332         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
2333         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
2334         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
2335         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
2336         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
2337         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
2338         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
2339         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
2340         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
2341         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
2342         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
2343         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
2344         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
2345         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
2346         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
2347         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
2348         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
2349         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
2350         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
2351         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
2352         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
2353         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
2354         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
2355         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
2356         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
2357         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
2358         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
2359         Reported by Eric Blake.
2360
2361 2007-04-11  Bruno Haible  <bruno@clisp.org>
2362
2363         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
2364
2365 2007-04-10  Bruno Haible  <bruno@clisp.org>
2366
2367         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
2368         for NaN and Infinity. Needed on FreeBSD 6.1.
2369         * tests/test-vasnprintf-posix.c (test_function): Undo last change
2370         regarding results for "%010a" of Infinity and NaN.
2371         * tests/test-vasprintf-posix.c (test_function): Likewise.
2372         * tests/test-snprintf-posix.h (test_function): Likewise.
2373         * tests/test-sprintf-posix.h (test_function): Likewise.
2374         * tests/test-fprintf-posix.h (test_function): Likewise.
2375         * tests/test-printf-posix.h (test_function): Likewise.
2376         * tests/test-fprintf-posix.out: Likewise.
2377
2378 2007-04-10  Bruno Haible  <bruno@clisp.org>
2379
2380         * modules/locale-tests: New file.
2381         * tests/test-locale.c: New file.
2382
2383         * modules/locale: New file.
2384         * lib/locale_.h: New file.
2385         * m4/locale_h.m4: New file.
2386
2387 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
2388             Bruno Haible  <bruno@clisp.org>
2389
2390         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
2391         be determined, test for availability of the copysignf, copysign,
2392         copysignl functions.
2393         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
2394         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
2395         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
2396
2397 2007-04-09  Eric Blake  <ebb9@byu.net>
2398
2399         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
2400         * modules/stdio (Makefile.am): Support fflush.
2401         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
2402         * modules/fflush: New file.
2403         * lib/fflush.c: Likewise.
2404         * m4/fflush.m4: Likewise.
2405         * modules/fflush-tests: New test.
2406         * tests/test-fflush.c: Likewise.
2407         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
2408
2409 2007-04-06  Bruno Haible  <bruno@clisp.org>
2410
2411         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
2412         (VASNPRINTF): Use signbit for faster determination whether to print a
2413         minus sign.
2414         * modules/vasnprintf (Files): Remove lib/float+.h.
2415         * modules/fprintf-posix (Depends-on): Add signbit.
2416         * modules/snprintf-posix (Depends-on): Likewise.
2417         * modules/sprintf-posix (Depends-on): Likewise.
2418         * modules/vasnprintf-posix (Depends-on): Likewise.
2419         * modules/vasprintf-posix (Depends-on): Likewise.
2420         * modules/vfprintf-posix (Depends-on): Likewise.
2421         * modules/vsnprintf-posix (Depends-on): Likewise.
2422         * modules/vsprintf-posix (Depends-on): Likewise.
2423
2424 2007-04-06  Bruno Haible  <bruno@clisp.org>
2425
2426         * tests/test-frexp.c (main): Test also the sign bit of zero results.
2427         * tests/test-frexpl.c (main): Likewise.
2428         * tests/test-ldexpl.c (main): Likewise.
2429         * modules/frexp-tests (Depends-on): Add signbit.
2430         * modules/frexpl-tests (Depdends-on): Likewise.
2431         * modules/ldexpl-tests (Depdends-on): Likewise.
2432
2433 2007-04-06  Bruno Haible  <bruno@clisp.org>
2434
2435         * modules/signbit-tests: New file.
2436         * tests/test-signbit.c: New file.
2437
2438         * modules/signbit: New file.
2439         * lib/signbitf.c: New file.
2440         * lib/signbitd.c: New file.
2441         * lib/signbitl.c: New file.
2442         * m4/signbit.m4: New file.
2443         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
2444         (signbit): New macro.
2445         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
2446         REPLACE_SIGNBIT.
2447         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
2448         REPLACE_FREXPL into math.h.
2449
2450 2007-04-06  Bruno Haible  <bruno@clisp.org>
2451
2452         * modules/isnanf-nolibm-tests: New file.
2453         * tests/test-isnanf.c: New file.
2454
2455         * modules/isnanf-nolibm: New file.
2456         * lib/isnanf.h: New file.
2457         * lib/isnanf.c: New file.
2458         * lib/isnan.c: Consider the USE_FLOAT macro.
2459         * m4/isnanf.m4: New file.
2460
2461 2007-04-06  Bruno Haible  <bruno@clisp.org>
2462
2463         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
2464         (Link): New section.
2465
2466         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
2467
2468 2007-04-06  Bruno Haible  <bruno@clisp.org>
2469
2470         Assume the 'long double' type.
2471         * m4/longdouble.m4: Remove file.
2472         * config/srclist.txt: Don't mention longdouble.m4.
2473         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
2474         * lib/float+.h: Likewise.
2475         * lib/frexp.c: Likewise.
2476         * lib/printf-args.h: Likewise.
2477         * lib/printf-args.c: Likewise.
2478         * lib/printf-frexp.c: Likewise.
2479         * lib/printf-parse.c: Likewise.
2480         * lib/vasnprintf.c: Likewise.
2481         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
2482         * m4/intl.m4: Likewise.
2483         * m4/isnanl.m4: Likewise.
2484         * m4/printf.m4: Likewise.
2485         * m4/printf-frexpl.m4: Likewise.
2486         * m4/vasnprintf.m4: Likewise.
2487         * modules/allocsa (Files): Remove m4/longdouble.m4.
2488         * modules/gettext (Files): Likewise.
2489         * modules/relocatable-prog-wrapper (Files): Likewise.
2490         * modules/vasnprintf (Files): Likewise.
2491         * modules/isnanl (Files): Likewise.
2492         (Include): Simplify.
2493         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
2494         (Include): Simplify.
2495         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
2496         (Include): Simplify.
2497         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
2498         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
2499         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
2500         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
2501         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
2502         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
2503         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
2504         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
2505         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
2506         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
2507         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
2508         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
2509         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
2510         * tests/test-isnanl.c: Likewise.
2511         * tests/test-snprintf-posix.h: Likewise.
2512         * tests/test-sprintf-posix.h: Likewise.
2513         * tests/test-vasnprintf-posix.c: Likewise.
2514         * tests/test-vasnprintf-posix2.c: Likewise.
2515         * tests/test-vasprintf-posix.c: Likewise.
2516
2517 2007-04-06  Bruno Haible  <bruno@clisp.org>
2518
2519         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
2520         * lib/math_.h [__DECC]: Include the overridden include file through
2521         #include_next, outside the double-inclusion guard.
2522         * lib/stdio_.h [__DECC]: Likewise.
2523         * lib/stdlib_.h [__DECC]: Likewise.
2524         * lib/string_.h [__DECC]: Likewise.
2525         * lib/time_.h [__DECC]: Likewise.
2526         * lib/wchar_.h [__DECC]: Likewise.
2527         * lib/wctype_.h [__DECC]: Likewise.
2528         * lib/inttypes_.h [__DECC]: Likewise.
2529         Reported by Albert Chin <china@thewrittenword.com> in
2530         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
2531
2532 2007-04-04  Eric Blake  <ebb9@byu.net>
2533
2534         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
2535         1.5.x.
2536
2537 2007-04-04  Bruno Haible  <bruno@clisp.org>
2538
2539         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
2540         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
2541
2542 2007-04-04  Bruno Haible  <bruno@clisp.org>
2543
2544         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
2545         results for "%010a" of Infinity and NaN.
2546         * tests/test-vasprintf-posix.c (test_function): Likewise.
2547         * tests/test-snprintf-posix.h (test_function): Likewise.
2548         * tests/test-sprintf-posix.h (test_function): Likewise.
2549         * tests/test-fprintf-posix.h (test_function): Remove these tests.
2550         * tests/test-printf-posix.h (test_function): Likewise.
2551         * tests/test-fprintf-posix.out: Update.
2552         Needed for FreeBSD 6.1.
2553
2554 2007-04-04  Bruno Haible  <bruno@clisp.org>
2555
2556         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
2557         directly used by the gnulib modules nor by gnulib-tool.
2558
2559 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
2560
2561         * DEPENDENCIES: Give overall description of version dependency
2562         desirability.  Use more-typical names for apps.
2563         Add shell, coreutils, diffutils, grep, tar, gzip.
2564
2565 2007-04-04  Simon Josefsson  <simon@josefsson.org>
2566
2567         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
2568
2569 2007-04-04  Karl Berry  <karl@gnu.org>
2570
2571         * MODULES.html.sh (func_module): missing '.
2572
2573 2007-04-03  Bruno Haible  <bruno@clisp.org>
2574
2575         * modules/argmatch-tests (Makefile.am): New variable
2576         test_argmatch_LDADD.
2577         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
2578         * modules/array-list-tests (Makefile.am): New variable
2579         test_array_list_LDADD.
2580         * modules/array-oset-tests (Makefile.am): New variable
2581         test_array_oset_LDADD.
2582         * modules/avltree-list-tests (Makefile.am): New variable
2583         test_avltree_list_LDADD.
2584         * modules/avltree-oset-tests (Makefile.am): New variable
2585         test_avltree_oset_LDADD.
2586         * modules/avltreehash-list-tests (Makefile.am): New variable
2587         test_avltreehash_list_LDADD.
2588         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
2589         test_canonicalize_lgpl_LDADD.
2590         * modules/carray-list-tests (Makefile.am): New variable
2591         test_carray_list_LDADD.
2592         * modules/dirname-tests (Makefile.am): New variable
2593         test_dirname_LDADD.
2594         * modules/linked-list-tests (Makefile.am): New variable
2595         test_linked_list_LDADD.
2596         * modules/linkedhash-list-tests (Makefile.am): New variable
2597         test_linkedhash_list_LDADD.
2598         * modules/rbtree-list-tests (Makefile.am): New variable
2599         test_rbtree_list_LDADD.
2600         * modules/rbtree-oset-tests (Makefile.am): New variable
2601         test_rbtree_oset_LDADD.
2602         * modules/rbtreehash-list-tests (Makefile.am): New variable
2603         test_rbtreehash_list_LDADD.
2604         * modules/xvasprintf-tests (Makefile.am): New variable
2605         test_xvasprintf_LDADD.
2606         Reported by Eric Blake.
2607
2608 2007-04-03  Eric Blake  <ebb9@byu.net>
2609
2610         * DEPENDENCIES: Weaken m4 requirements.
2611
2612 2007-04-03  Bruno Haible  <bruno@clisp.org>
2613
2614         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
2615         * modules/isnanl-tests (configure.ac): Likewise.
2616
2617 2007-04-03  Ben Pfaff  <blp@gnu.org>
2618
2619         * modules/iconv_open: Add $(srcdir)/ to source directory
2620         references in Makefile fragments that call gperf, to fix VPATH
2621         builds.
2622
2623 2007-04-03  Bruno Haible  <bruno@clisp.org>
2624
2625         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
2626         * lib/ldexpl.c: Undo last change.
2627
2628 2007-04-03  Bruno Haible  <bruno@clisp.org>
2629
2630         * modules/printf-frexpl (Depends-on): Undo last change.
2631         (Files): Add m4/ldexpl.m4.
2632
2633 2007-04-03  Bruno Haible  <bruno@clisp.org>
2634
2635         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
2636         * modules/isnanl (Link): New section.
2637
2638         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
2639         * modules/frexp (Link): New section.
2640
2641         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
2642         * modules/frexpl (Link): New section.
2643
2644         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
2645         * modules/ldexpl (Link): New section.
2646
2647 2007-04-03  Bruno Haible  <bruno@clisp.org>
2648
2649         * modules/TEMPLATE-EXTENDED: New file.
2650         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
2651
2652 2007-04-03  Bruno Haible  <bruno@clisp.org>
2653
2654         * DEPENDENCIES: New file.
2655         Suggested by Simon Josefsson.
2656
2657 2007-04-03  Bruno Haible  <bruno@clisp.org>
2658
2659         * doc/gnulib.texi: Escape @.
2660
2661 2007-04-03  James Youngman  <jay@gnu.org>
2662         and Paul Eggert  <eggert@cs.ucla.edu>
2663
2664         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
2665         birthtime on all systems that have birthtime, not just those which
2666         use st_birthtimensec rather than st_birthtim.  Putting zero in
2667         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
2668         that the birth time is not available for files on an NFS mount.
2669
2670 2007-04-03  Simon Josefsson  <simon@josefsson.org>
2671
2672         * modules/memxor: Move back from crypto/, suggested by Bruno.
2673         * modules/crypto/hmac-sha1: Fix memxor dependency.
2674
2675         * modules/crypto/gc: Moved from ../.
2676
2677 2007-04-02  Eric Blake  <ebb9@byu.net>
2678
2679         * lib/ldexpl.c (includes): Avoid libm.
2680
2681         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
2682
2683 2007-04-02  Bruno Haible  <bruno@clisp.org>
2684
2685         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
2686         on IRIX.
2687
2688 2007-04-02  Bruno Haible  <bruno@clisp.org>
2689
2690         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
2691         x86 or x86_64 platforms running MacOS X.
2692         Reported by Ryan Schmidt <@ryandesign.com>.
2693
2694 2007-04-02  Bruno Haible  <bruno@clisp.org>
2695
2696         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
2697         i386.
2698
2699 2007-04-01  Simon Josefsson  <simon@josefsson.org>
2700
2701         * modules/crypto/arcfour: Moved from ../.
2702         * modules/crypto/arcfour-tests: Moved from ../.
2703         * modules/crypto/arctwo: Moved from ../.
2704         * modules/crypto/arctwo-tests: Moved from ../.
2705         * modules/crypto/des: Moved from ../.
2706         * modules/crypto/des-tests: Moved from ../.
2707         * modules/crypto/gc-arcfour: Moved from ../.
2708         * modules/crypto/gc-arcfour-tests: Moved from ../.
2709         * modules/crypto/gc-arctwo: Moved from ../.
2710         * modules/crypto/gc-arctwo-tests: Moved from ../.
2711         * modules/crypto/gc-des: Moved from ../.
2712         * modules/crypto/gc-des-tests: Moved from ../.
2713         * modules/crypto/gc-hmac-md5: Moved from ../.
2714         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
2715         * modules/crypto/gc-hmac-sha1: Moved from ../.
2716         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
2717         * modules/crypto/gc-md2: Moved from ../.
2718         * modules/crypto/gc-md2-tests: Moved from ../.
2719         * modules/crypto/gc-md4: Moved from ../.
2720         * modules/crypto/gc-md4-tests: Moved from ../.
2721         * modules/crypto/gc-md5: Moved from ../.
2722         * modules/crypto/gc-md5-tests: Moved from ../.
2723         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
2724         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
2725         * modules/crypto/gc-random: Moved from ../.
2726         * modules/crypto/gc-rijndael: Moved from ../.
2727         * modules/crypto/gc-rijndael-tests: Moved from ../.
2728         * modules/crypto/gc-sha1: Moved from ../.
2729         * modules/crypto/gc-sha1-tests: Moved from ../.
2730         * modules/crypto/gc-tests: Moved from ../.
2731         * modules/crypto/hmac-md5: Moved from ../.
2732         * modules/crypto/hmac-md5-tests: Moved from ../.
2733         * modules/crypto/hmac-sha1: Moved from ../.
2734         * modules/crypto/hmac-sha1-tests: Moved from ../.
2735         * modules/crypto/md2: Moved from ../.
2736         * modules/crypto/md2-tests: Moved from ../.
2737         * modules/crypto/md4: Moved from ../.
2738         * modules/crypto/md4-tests: Moved from ../.
2739         * modules/crypto/md5: Moved from ../.
2740         * modules/crypto/md5-tests: Moved from ../.
2741         * modules/crypto/memxor: Moved from ../.
2742         * modules/crypto/rijndael: Moved from ../.
2743         * modules/crypto/rijndael-tests: Moved from ../.
2744         * modules/crypto/sha1: Moved from ../.
2745
2746 2007-03-30  James Youngman  <jay@gnu.org>
2747
2748         * tests/test-stat-time.c (prepare_test): use chmod() rather than
2749         rename() to change the ctime of a file (because ctime is unaffected
2750         by rename on jfs2 on AIX 5.1).
2751         (main): Start by doing cleanup, in case a previous run failed leaving
2752         test files behind.
2753
2754 2007-03-31  Bruno Haible  <bruno@clisp.org>
2755
2756         Support old proprietary implementations of iconv.
2757         * modules/iconv_open: New file.
2758         * lib/iconv_.h: New file.
2759         * m4/iconv_h.m4: New file.
2760         * lib/iconv_open.c: New file.
2761         * lib/iconv_open-aix.gperf: New file.
2762         * lib/iconv_open-hpux.gperf: New file.
2763         * lib/iconv_open-irix.gperf: New file.
2764         * lib/iconv_open-osf.gperf: New file.
2765         * m4/iconv_open.m4: New file.
2766         * modules/linebreak (Depends-on): Add iconv_open.
2767         * modules/striconv (Depends-on): Likewise.
2768         * modules/striconveh (Depends-on): Likewise.
2769         * modules/unicodeio (Depends-on): Likewise.
2770         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
2771         (iconv_t)(-1).
2772         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
2773         conversion if cd is (iconv_t)(-1).
2774         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
2775         is not possible.
2776
2777 2007-03-31  Bruno Haible  <bruno@clisp.org>
2778
2779         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
2780         work on Solaris either. Protect also second use of "autodetect_jp".
2781
2782 2007-03-31  Bruno Haible  <bruno@clisp.org>
2783
2784         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
2785         the function is not present.
2786
2787 2007-03-31  Bruno Haible  <bruno@clisp.org>
2788
2789         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
2790         the function is not present.
2791
2792 2007-03-31  Bruno Haible  <bruno@clisp.org>
2793
2794         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
2795         a bug in HP-UX iconv_open().
2796
2797 2007-03-31  Bruno Haible  <bruno@clisp.org>
2798
2799         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
2800         (Mathematics <math.h>): New section, add fpieee.
2801         (Input/output <stdio.h>): Add fseterr.
2802         (Mathematics <math.h>): New section, add printf-frexp.
2803         (Container data structures): Add sublist.
2804         (Core language properties): Add fpucw, inline.
2805         (Functions for greatest-width integer types <inttypes.h>): Add
2806         imaxabs, imaxdiv, inttypes.
2807         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
2808         isnanl-nolibm, ldexp.
2809         (Mathematics <math.h>): New section, add printf-frexpl.
2810         (Support for systems lacking POSIX:2001): Add fprintf-posix,
2811         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
2812         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
2813         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
2814         (Unicode string functions): Add unistr/u*-mbtoucr.
2815         (Java): Add javacomp-script, javaexec-script.
2816         (C#): Add csharpcomp-script, csharpexec-script.
2817         (Support for building libraries and executables): Add havelib,
2818         relocatable-*.
2819         (Support for maintaining and releasing projects): Renamed from
2820         'Support for maintaining and release projects'. Add announce-gen.
2821
2822 2007-03-31  Bruno Haible  <bruno@clisp.org>
2823
2824         * README: Talk primarily about git.
2825         (git and CVS): Renamed from CVS.
2826         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
2827         gnulib is available through git.
2828         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
2829
2830 2007-03-30  Bruno Haible  <bruno@clisp.org>
2831
2832         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
2833         * lib/poll_.h: Likewise.
2834         * lib/stat_.h: Likewise.
2835         * lib/sys_time_.h: Likewise.
2836         * lib/sysexit_.h: Likewise.
2837         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
2838         * lib/stdbool_.h: Likewise.
2839         * lib/byteswap_.h: Add double-inclusion guard.
2840
2841 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
2842
2843         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
2844
2845 2007-03-30  Karl Berry  <karl@gnu.org>
2846
2847         * config/srclist-update: double space after USA in the license
2848         substitution, since that's how it's usually (?) written.
2849
2850 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
2851
2852         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
2853         reported by Bruno Haible.
2854
2855 2007-03-29  Bruno Haible  <bruno@clisp.org>
2856
2857         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
2858         a bug in AIX iconv().
2859
2860 2007-03-29  Bruno Haible  <bruno@clisp.org>
2861
2862         * modules/ldexpl-tests: New file.
2863         * tests/test-ldexpl.c: New file.
2864
2865 2007-03-29  Bruno Haible  <bruno@clisp.org>
2866
2867         * lib/ldexpl.c: Include fpucw.h.
2868         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
2869         multiplication.
2870         * modules/ldexpl (Depends-on): Add fpucw.
2871
2872 2007-03-29  Bruno Haible  <bruno@clisp.org>
2873
2874         * modules/ldexpl: New file.
2875         * m4/ldexpl.m4: New file.
2876         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
2877         set.
2878         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
2879         REPLACE_LDEXPL.
2880         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
2881         REPLACE_LDEXPL.
2882         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
2883         gl_FUNC_LDEXPL_WORKS.
2884         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
2885         * modules/mathl (Files): Remove lib/ldexpl.c.
2886         (Depends-on): Add ldexpl.
2887
2888 2007-03-29  Bruno Haible  <bruno@clisp.org>
2889
2890         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
2891
2892 2007-03-29  Bruno Haible  <bruno@clisp.org>
2893
2894         * tests/test-striconveh.c (main): Don't assume that a direct conversion
2895         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
2896         and possibly also HP-UX.
2897         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
2898         work on AIX, IRIX, HP-UX, OSF/1.
2899         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
2900         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
2901         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
2902         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
2903         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
2904         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
2905
2906 2007-03-29  Bruno Haible  <bruno@clisp.org>
2907
2908         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
2909
2910 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
2911
2912         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
2913         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
2914
2915 2007-03-29  Eric Blake  <ebb9@byu.net>
2916
2917         * lib/acl-internal.h: Remove redundant include.
2918         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
2919         Cygwin when a file is locked.
2920
2921 2007-03-29  Bruno Haible  <bruno@clisp.org>
2922
2923         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
2924         file.
2925         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
2926
2927 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
2928
2929         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
2930         try to remove a parent directory if the child couldn't be removed
2931         (except for the first rmdir, which could fail because the child
2932         doesn't exist).  Problem reported by Jeff Blaine in
2933         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
2934
2935 2007-03-28  Bruno Haible  <bruno@clisp.org>
2936
2937         * lib/striconveh.c (utf8conv_carefully): New function.
2938         (mem_cd_iconveh_internal): Invoke it.
2939
2940 2007-03-28  Bruno Haible  <bruno@clisp.org>
2941
2942         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
2943         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
2944         input.
2945         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
2946         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
2947         unistr/u8-uctomb.
2948
2949 2007-03-28  Bruno Haible  <bruno@clisp.org>
2950
2951         * modules/unistr/u8-mbtoucr: New file.
2952         * lib/unistr/u8-mbtoucr.c: New file.
2953         * modules/unistr/u16-mbtoucr: New file.
2954         * lib/unistr/u16-mbtoucr.c: New file.
2955         * modules/unistr/u16-mbtoucr: New file.
2956         * lib/unistr/u16-mbtoucr.c: New file.
2957         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
2958
2959 2007-03-27  Simon Josefsson  <simon@josefsson.org>
2960             Bruno Haible  <bruno@clisp.org>
2961
2962         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
2963         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
2964         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
2965
2966         * m4/stdio_h.m4: Add stubs for vasprintf too.
2967
2968         * modules/stdio: Support vasprintf in sed command.
2969
2970         * modules/vasprintf: Depend on stdio for prototypes.  Remove
2971         vasprintf.h.  Add stdio module indicator.
2972
2973         * lib/stdio_.h: Declare asprintf and vasprintf, based on
2974         vasprintf.h.
2975
2976         * lib/vasprintf.h: File removed.
2977
2978         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
2979         * lib/vasprintf.c: Ditto.
2980         * lib/xvasprintf.c: Ditto.
2981         * tests/test-vasprintf-posix.c: Ditto.
2982         * tests/test-vasprintf.c: Ditto.
2983
2984 2007-03-27  Bruno Haible  <bruno@clisp.org>
2985
2986         Make vasnprintf multithread-safe.
2987         * lib/vasnprintf.c (decimal_point_char): New function.
2988         (VASNPRINTF): Use it.
2989         Suggested by Simon Josefsson.
2990
2991 2007-03-27  Eric Blake  <ebb9@byu.net>
2992
2993         Support sub-second birthtime on cygwin.
2994         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
2995         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
2996         (get_stat_birthtime): Also work with st_birthtim.
2997
2998 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
2999
3000         * lib/stat-time.h (USE_BIRTHTIME): Remove.
3001         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
3002         (get_stat_birthtime_ns): Do not try to use "spare" fields.
3003         (get_stat_birthtime_ns): Simplify compile-time tests.
3004         (get_stat_birthtime): Change the API to look like
3005         get_stat_mtime etc., except return a negative tv_nsec on error.
3006         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
3007         Don't check for "spare" fields.
3008         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
3009         or for struct stat.st_birthtime, as these tests aren't used.
3010         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
3011
3012 2007-03-27  Bruno Haible  <bruno@clisp.org>
3013
3014         * lib/stat-time.h: Include <sys/stat.h>.
3015
3016 2007-03-27  James Youngman  <jay@gnu.org>
3017
3018         * lib/stat-time.h (get_stat_birthtime): New function for
3019           retrieving st_birthtime as provided by UFS2 (hence *BSD).
3020         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
3021           and its variants.
3022         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
3023         * modules/stat-time-test: New file.
3024         * tests/test-stat-time.c: New test, devised by Bruno Haible.
3025
3026 2007-03-26  Bruno Haible  <bruno@clisp.org>
3027
3028         Better support of signalling NaNs.
3029         * lib/atanl.c: Include isnanl.h.
3030         (atanl): Perform test for NaN at the beginning of the function and
3031         through a call to isnanl.
3032         * lib/cosl.c: Include isnanl.h.
3033         (cosl): Perform test for NaN at the beginning of the function and
3034         through a call to isnanl.
3035         * lib/ldexpl.c: Include isnanl.h.
3036         (ldexpl): Perform test for NaN through a call to isnanl.
3037         * lib/logl.c: Include isnanl.h.
3038         (logl): Perform test for NaN at the beginning of the function and
3039         through a call to isnanl.
3040         * lib/sinl.c: Include isnanl.h.
3041         (sinl): Perform test for NaN at the beginning of the function and
3042         through a call to isnanl.
3043         * lib/sqrtl.c: Include isnanl.h.
3044         (sqrtl): Perform test for NaN at the beginning of the function and
3045         through a call to isnanl.
3046         * lib/tanl.c: Include isnanl.h.
3047         (tanl): Perform test for NaN at the beginning of the function and
3048         through a call to isnanl.
3049         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
3050         * modules/mathl (Depends-on): Add isnanl.
3051
3052 2007-03-26  Eric Blake  <ebb9@byu.net>
3053
3054         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
3055         regression in logic sense of previous patch.
3056
3057 2007-03-26  Bruno Haible  <bruno@clisp.org>
3058
3059         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
3060         unportable shell command "if ! ...".
3061         Reported by Ralf Wildenhues.
3062
3063 2007-03-25  Bruno Haible  <bruno@clisp.org>
3064
3065         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
3066         <sysexits.h> file, and only add EX_CONFIG.
3067         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
3068         absolute file name and whether it is sufficient. Substitute also
3069         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
3070         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
3071         ABSOLUTE_SYSEXITS_H into sysexits.h.
3072
3073 2007-03-25  Bruno Haible  <bruno@clisp.org>
3074
3075         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
3076         hints is NULL.
3077
3078 2007-03-25  Bruno Haible  <bruno@clisp.org>
3079
3080         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
3081         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
3082
3083 2007-03-25  Bruno Haible  <bruno@clisp.org>
3084
3085         * lib/vasnprintf.c: Include langinfo.h.
3086         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
3087         multithread-safe.
3088         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
3089         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
3090         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
3091         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
3092         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
3093         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
3094         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
3095         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
3096         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
3097         Reported by Simon Josefsson.
3098
3099 2007-03-25  Bruno Haible  <bruno@clisp.org>
3100
3101         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
3102         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
3103         * modules/vasnprintf (Depends-on): Add stdint.
3104
3105 2007-03-25  Bruno Haible  <bruno@clisp.org>
3106
3107         * modules/fpieee: New file.
3108         * m4/fpieee.m4: New file.
3109         * modules/isnan-nolibm (Depends-on): Add fpieee.
3110         * modules/isnanl-nolibm (Depends-on): Add fpieee.
3111         * modules/isnanl (Depends-on): Add fpieee.
3112
3113 2007-03-25  Bruno Haible  <bruno@clisp.org>
3114
3115         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
3116
3117 2007-03-25  Bruno Haible  <bruno@clisp.org>
3118
3119         Avoid test failures on IRIX 6.5.
3120         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
3121         (main): Use it.
3122         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
3123         macros.
3124         (main): Use them.
3125
3126 2007-03-25  Bruno Haible  <bruno@clisp.org>
3127
3128         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
3129         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
3130         exists but doesn't work.
3131         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
3132         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
3133         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
3134         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
3135
3136 2007-03-25  Bruno Haible  <bruno@clisp.org>
3137
3138         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
3139         returns inf. Needed on IRIX 6.5.
3140
3141 2007-03-25  Bruno Haible  <bruno@clisp.org>
3142
3143         * tests/test-frexpl.c: Include isnanl-nolibm.h.
3144         (main): Use isnanl instead of x != x idiom.
3145         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
3146
3147         * tests/test-frexp.c: Include isnan.h.
3148         (main): Use isnan instead of x != x idiom.
3149         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
3150
3151 2007-03-25  Bruno Haible  <bruno@clisp.org>
3152
3153         * tests/test-frexp.c (NaN): New function/macro.
3154         (main): Use it instead of 0.0 / 0.0.
3155         * tests/test-isnan.c (NaN): New function/macro.
3156         (main): Use it instead of 0.0 / 0.0.
3157         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
3158         (test_function): Use it instead of 0.0 / 0.0.
3159         * tests/test-vasprintf-posix.c (NaN): New function/macro.
3160         (test_function): Use it instead of 0.0 / 0.0.
3161         * tests/test-snprintf-posix.h (NaN): New function/macro.
3162         (test_function): Use it instead of 0.0 / 0.0.
3163         * tests/test-sprintf-posix.h (NaN): New function/macro.
3164         (test_function): Use it instead of 0.0 / 0.0.
3165         * tests/test-fprintf-posix.h (NaN): New function/macro.
3166         (test_function): Use it instead of 0.0 / 0.0.
3167         * tests/test-printf-posix.h (NaN): New function/macro.
3168         (test_function): Use it instead of 0.0 / 0.0.
3169
3170         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
3171
3172 2007-03-25  Bruno Haible  <bruno@clisp.org>
3173
3174         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
3175
3176 2007-03-25  Bruno Haible  <bruno@clisp.org>
3177
3178         * lib/regexec.c (merge_state_with_log): Make static.
3179
3180 2007-03-25  Bruno Haible  <bruno@clisp.org>
3181
3182         * lib/trigl.c (kernel_rem_pio2): Make static.
3183
3184 2007-03-25  Bruno Haible  <bruno@clisp.org>
3185
3186         * lib/sincosl.c (sincosl_table): Make static.
3187
3188 2007-03-25  Bruno Haible  <bruno@clisp.org>
3189
3190         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
3191         if the compiler does not support C99.
3192
3193 2007-03-25  Bruno Haible  <bruno@clisp.org>
3194
3195         * modules/time (Makefile.am): Ensure all rule action lines start with a
3196         tab.
3197
3198 2007-03-24  Bruno Haible  <bruno@clisp.org>
3199
3200         * modules/tsearch-tests: New file.
3201         * tests/test-tsearch.sh: New file.
3202         * tests/test-tsearch.c: New file, mostly copied from glibc.
3203
3204         * modules/search-tests: New file.
3205         * tests/test-search.c: New file.
3206
3207         * modules/search: New file.
3208         * lib/search_.h: New file, incorporating lib/tsearch.h.
3209         * m4/search_h.m4: New file.
3210         * lib/tsearch.h: Remove file.
3211         * lib/tsearch.c: Include search.h instead of tsearch.h.
3212         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
3213         HAVE_TSEARCH.
3214         * modules/tsearch (Files): Remove lib/tsearch.h.
3215         (Depends-on): Add search.
3216         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
3217         (Include): Change tsearch.h into search.h.
3218
3219 2007-03-24  Bruno Haible  <bruno@clisp.org>
3220
3221         * modules/fpucw: New file.
3222         * lib/fpucw.h: New file.
3223         * lib/frexp.c: Include fpucw.h.
3224         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
3225         (FUNC): Use them.
3226         * lib/printf-frexp.c: Include fpucw.h.
3227         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
3228         (FUNC): Use them.
3229         * lib/vasnprintf.c: Include fpucw.h.
3230         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
3231         'long double' calculations.
3232         * tests/test-frexpl.c: Include fpucw.h.
3233         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
3234         * tests/test-printf-frexpl.c: Include fpucw.h.
3235         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
3236         * modules/frexpl (Depends-on): Add fpucw.
3237         * modules/printf-frexpl (Depends-on): Likewise.
3238         * modules/fprintf-posix (Depends-on): Likewise.
3239         * modules/snprintf-posix (Depends-on): Likewise.
3240         * modules/sprintf-posix (Depends-on): Likewise.
3241         * modules/vasnprintf-posix (Depends-on): Likewise.
3242         * modules/vasprintf-posix (Depends-on): Likewise.
3243         * modules/vfprintf-posix (Depends-on): Likewise.
3244         * modules/vsnprintf-posix (Depends-on): Likewise.
3245         * modules/vsprintf-posix (Depends-on): Likewise.
3246         * modules/frexpl-tests (Depends-on): Likewise.
3247         * modules/printf-frexpl-tests (Depends-on): Likewise.
3248
3249 2007-03-24  Bruno Haible  <bruno@clisp.org>
3250
3251         * lib/float+.h: New file.
3252         * lib/isnan.c: Include float+.h.
3253         (SIZE): New macro.
3254         (FUNC): Compare only SIZE bytes of the value.
3255         * lib/vasnprintf.c: Include float+.h.
3256         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
3257         SIZEOF_LDBL or SIZEOF_DBL bytes.
3258         * modules/isnan-nolibm (Files): Add lib/float+.h.
3259         * modules/isnanl-nolibm (Files): Add lib/float+.h.
3260         * modules/isnanl (Files): Add lib/float+.h.
3261         * modules/vasnprintf (Files): Add lib/float+.h.
3262
3263 2007-03-24  Bruno Haible  <bruno@clisp.org>
3264
3265         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
3266         include isnanl-nolibm.h.
3267
3268 2007-03-24  Bruno Haible  <bruno@clisp.org>
3269
3270         * tests/test-read-file.c (main): Don't produce spurious output for
3271         expected situations. Make the test fail if it encountered unexpected
3272         results.
3273
3274 2007-03-24  Bruno Haible  <bruno@clisp.org>
3275
3276         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
3277         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
3278
3279 2007-03-24  Bruno Haible  <bruno@clisp.org>
3280
3281         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
3282
3283 2007-03-24  Bruno Haible  <bruno@clisp.org>
3284
3285         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
3286         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
3287
3288         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
3289         * modules/utf8-ucs4: Turn into a symbolic link to module
3290         unistr/u8-mbtouc.
3291
3292         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
3293         utf8-ucs4-unsafe.
3294         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
3295         unistr/u8-mbtouc-unsafe.
3296
3297         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
3298         * modules/utf16-ucs4: Turn into a symbolic link to module
3299         unistr/u16-mbtouc.
3300
3301         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
3302         utf16-ucs4-unsafe.
3303         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
3304         unistr/u16-mbtouc-unsafe.
3305
3306         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
3307         * modules/ucs4-utf8: Turn into a symbolic link to module
3308         unistr/u8-ubtomb.
3309
3310         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
3311         * modules/ucs4-utf16: Turn into a symbolic link to module
3312         unistr/u16-ubtomb.
3313
3314 2007-03-24  Bruno Haible  <bruno@clisp.org>
3315
3316         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
3317         Enable the function only if HAVE_INLINE.
3318         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
3319         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
3320         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
3321         Enable the function only if HAVE_INLINE.
3322         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
3323         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
3324         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
3325         Enable the function only if HAVE_INLINE.
3326         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
3327         Enable the function only if HAVE_INLINE.
3328         * modules/utf8-ucs4: Update.
3329         * modules/utf8-ucs4-unsafe: Update.
3330         * modules/utf16-ucs4: Update.
3331         * modules/utf16-ucs4-unsafe: Update.
3332         * modules/ucs4-utf8: Update.
3333         * modules/ucs4-utf16: Update.
3334
3335 2007-03-24  Bruno Haible  <bruno@clisp.org>
3336
3337         * lib/utf8-ucs4.h: Remove file.
3338         * lib/utf8-ucs4-unsafe.h: Remove file.
3339         * lib/utf16-ucs4.h: Remove file.
3340         * lib/utf16-ucs4-unsafe.h: Remove file.
3341         * lib/ucs4-utf8.h: Remove file.
3342         * lib/ucs4-utf16.h: Remove file.
3343         * lib/unistr.h: Include their previous contents.
3344         * m4/utf-ucs4.m4: Remove file.
3345         * m4/ucs4-utf.m4: Remove file.
3346         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
3347         (Depends-on): Add unistr/base.
3348         (configure.ac): Remove gl_UTF_UCS4.
3349         (Makefile.am): Update.
3350         (Include): Change to unistr.h.
3351         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
3352         (Depends-on): Add unistr/base.
3353         (configure.ac): Remove gl_UTF_UCS4.
3354         (Makefile.am): Update.
3355         (Include): Change to unistr.h.
3356         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
3357         (Depends-on): Add unistr/base.
3358         (configure.ac): Remove gl_UTF_UCS4.
3359         (Makefile.am): Update.
3360         (Include): Change to unistr.h.
3361         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
3362         (Depends-on): Add unistr/base.
3363         (configure.ac): Remove gl_UTF_UCS4.
3364         (Makefile.am): Update.
3365         (Include): Change to unistr.h.
3366         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
3367         (Depends-on): Add unistr/base.
3368         (configure.ac): Remove gl_UCS4_UTF.
3369         (Makefile.am): Update.
3370         (Include): Change to unistr.h.
3371         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
3372         (Depends-on): Add unistr/base.
3373         (configure.ac): Remove gl_UCS4_UTF.
3374         (Makefile.am): Update.
3375         (Include): Change to unistr.h.
3376         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
3377         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
3378         utf8-ucs4-unsafe.h.
3379         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
3380         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
3381         utf16-ucs4-unsafe.h.
3382         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
3383         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
3384         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
3385         * lib/unistr/u8-strchr.c: Likewise.
3386         * lib/unistr/u8-strrchr.c: Likewise.
3387         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
3388         * lib/unistr/u16-strchr.c: Likewise.
3389         * lib/unistr/u16-strrchr.c: Likewise.
3390         * lib/striconveh.c: Update.
3391         * lib/linebreak.c: Update.
3392
3393 2007-03-24  Bruno Haible  <bruno@clisp.org>
3394
3395         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
3396         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
3397
3398 2007-03-22  Bruno Haible  <bruno@clisp.org>
3399
3400         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
3401
3402 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
3403
3404         * MODULES.html.sh (File system functions): New module write-any-file.
3405         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
3406         * m4/write-any-file.m4: New files.
3407
3408 2007-03-23  Eric Blake  <ebb9@byu.net>
3409
3410         * gnulib-tool: Rearrange space-tab sequences, since some editors
3411         like to eat them.
3412
3413 2007-03-23  Eric Blake  <ebb9@byu.net>
3414
3415         * lib/version-etc.c (version_etc_va): Update license wording to
3416         be more concise.  Recommended by Richard Stallman.
3417
3418 2007-03-22  Bruno Haible  <bruno@clisp.org>
3419
3420         * lib/poll.c (MSG_PEEK): New fallback definition.
3421
3422 2007-03-22  Bruno Haible  <bruno@clisp.org>
3423
3424         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
3425         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
3426         (main): Update.
3427         Fixes a compilation error on BeOS.
3428
3429 2007-03-22  Bruno Haible  <bruno@clisp.org>
3430
3431         * modules/frexpl-tests: New file.
3432         * tests/test-frexpl.c: New file.
3433
3434         * modules/frexpl: New file.
3435         * m4/frexpl.m4: New file.
3436         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
3437         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
3438         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
3439         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
3440         (Depends-on): Add frexpl. Remove isnanl-nolibm.
3441         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
3442
3443 2007-03-22  Bruno Haible  <bruno@clisp.org>
3444
3445         * lib/frexpl.c: Share code with lib/frexp.c.
3446         * modules/mathl (Files): Add lib/frexp.c.
3447         (Depends-on): Add isnanl-nolibm.
3448
3449 2007-03-22  Bruno Haible  <bruno@clisp.org>
3450
3451         * modules/printf-frexp (Files): Add m4/frexp.m4.
3452         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
3453         only if the found frexp function actually works.
3454
3455 2007-03-22  Bruno Haible  <bruno@clisp.org>
3456
3457         * lib/frexp.c: Remove older implementation that uses divisions.
3458
3459 2007-03-21  Bruno Haible  <bruno@clisp.org>
3460
3461         * modules/frexp-tests: New file.
3462         * tests/test-frexp.c: New file.
3463
3464         * modules/frexp: New file.
3465         * lib/frexp.c: New file.
3466         * m4/frexp.m4: New file.
3467         * lib/math_.h (frexp): New declaration.
3468         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
3469         REPLACE_FREXP.
3470         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
3471
3472 2007-03-21  Bruno Haible  <bruno@clisp.org>
3473
3474         * modules/isnanl-tests: New file.
3475         * tests/test-isnanl.c: New file.
3476
3477         * modules/isnanl: New file.
3478         * lib/isnanl.h: New file.
3479         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
3480         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
3481         gl_FUNC_ISNANL_WORKS.
3482         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
3483         New macros.
3484
3485 2007-03-21  Bruno Haible  <bruno@clisp.org>
3486
3487         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
3488         lib/isnanl.h.
3489         (Include): Update.
3490         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
3491         * lib/vasnprintf.c: Update.
3492         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
3493         tests/test-isnanl.h, remove tests/test-isnanl.c.
3494         (Makefile.am): Update.
3495         * tests/test-isnanl-nolibm.c: New file.
3496         * tests/test-isnanl.h: New file.
3497         * tests/test-isnanl.c: Remove file.
3498
3499 2007-03-21  Jim Meyering  <jim@meyering.net>
3500
3501         When trying to open ".", treat ESTALE like EACCES.
3502         * lib/savewd.c (savewd_save): Resort to forking not just upon
3503         failure with EACCES, but also when errno is ESTALE.
3504
3505 2007-03-20  Bruno Haible  <bruno@clisp.org>
3506
3507         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
3508         Needed on AIX 5.1. Reported by Matthew Woehlke.
3509
3510 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
3511
3512         Suggestions by Bruno Haible:
3513         * lib/acl-internal.h: Include "gettext.h" rather than rolling
3514         our own.
3515         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
3516         * modules/acl (Depends-on): Add gettext.
3517
3518 2007-03-19  Bruno Haible  <bruno@clisp.org>
3519
3520         * modules/iconvme: Remove file.
3521         * lib/iconvme.h: Remove file.
3522         * lib/iconvme.c: Remove file.
3523         * m4/iconvme.m4: Remove file.
3524
3525 2007-03-19  Bruno Haible  <bruno@clisp.org>
3526
3527         * doc/relocatable-maint.texi: Break long shell script line.
3528         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
3529
3530 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
3531
3532         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
3533         handle file_has_acl.
3534         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
3535         * lib/acl.c: Move header inclusions and related macro defns into
3536         lib/acl-internal.h.
3537         (S_ISLNK): Remove defn, since that's now done for us.
3538         (file_has_acl): Move to lib/file-has-acl.c.
3539         Call acl_trivial if available.  This is the crucial part of the fix.
3540         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
3541         shared within the library.  Rewrite a bit, partly to make it compatible
3542         with the GNU coding style.
3543         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
3544         Remove unnecessary double-quotes.
3545         Don't test for acl_to_text; the build will catch that.
3546         Replace acl_entries if it doesn't exist and it is needed.
3547         Check for -lsec and acl_trivial (as used on Solaris 10).
3548         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
3549         lib/file-has-acl.c.
3550         (Depends-on): Add sys_stat, for S_ISLNK.
3551
3552 2007-03-19  Ben Pfaff  <blp@gnu.org>
3553
3554         * doc/gnulib.texi: Fix typos.
3555         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
3556
3557 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
3558
3559         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
3560         If size is zero here, buf must be zero.
3561
3562 2007-03-19  Simon Josefsson  <simon@josefsson.org>
3563
3564         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
3565         <bruno@clisp.org>.
3566
3567 2007-03-18  Bruno Haible  <bruno@clisp.org>
3568
3569         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
3570         Suggested by Eric Blake.
3571
3572 2007-03-18  Ben Pfaff  <blp@gnu.org>
3573
3574         * doc/relocatable.texi: Recommend using as prefix a directory
3575         that does not exist and will never be created.  Based on
3576         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
3577         and others.
3578
3579 2007-03-17  Bruno Haible  <bruno@clisp.org>
3580
3581         * lib/fchownat.c: Include lchown.h.
3582
3583 2007-03-17  Bruno Haible  <bruno@clisp.org>
3584
3585         Fix endless loop when the given allocated size was > INT_MAX.
3586         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
3587         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
3588         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
3589         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
3590         * lib/sprintf.c (sprintf): Likewise.
3591
3592 2007-03-17  Bruno Haible  <bruno@clisp.org>
3593
3594         * tests/test-argp-2.sh (func_compare): Output a context diff.
3595
3596 2007-03-17  Bruno Haible  <bruno@clisp.org>
3597
3598         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
3599         locale's decimal-point character.
3600
3601 2007-03-17  Bruno Haible  <bruno@clisp.org>
3602
3603         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
3604         before comparing it. Needed because on some platforms (e.g. x86) a
3605         'long double' occupies less bytes than sizeof (long double).
3606
3607 2007-03-17  Bruno Haible  <bruno@clisp.org>
3608
3609         * tests/test-crc.c (main): Make printf statements 64-bit clean.
3610         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
3611         * tests/test-getaddrinfo.c (simple): Likewise.
3612         * tests/test-read-file.c (main): Likewise.
3613
3614 2007-03-17  Bruno Haible  <bruno@clisp.org>
3615
3616         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
3617
3618 2007-03-17  Bruno Haible  <bruno@clisp.org>
3619
3620         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
3621         unused variable.
3622
3623 2007-03-17  Bruno Haible  <bruno@clisp.org>
3624
3625         * tests/test-c-strcasecmp.c: Include c-strcase.h.
3626         * tests/test-c-strncasecmp.c: Likewise.
3627
3628 2007-03-17  Bruno Haible  <bruno@clisp.org>
3629
3630         * modules/stdlib (Depends-on): Add unistd.
3631         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
3632         Needed for MacOS X 10.3.
3633
3634 2007-03-17  Bruno Haible  <bruno@clisp.org>
3635
3636         * lib/unistr/u-strdup.h: Include <stdlib.h>.
3637
3638 2007-03-17  Bruno Haible  <bruno@clisp.org>
3639
3640         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
3641
3642 2007-03-17  Bruno Haible  <bruno@clisp.org>
3643
3644         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
3645         to reflect files copied from gnulib (with or without modifications).
3646         Suggested by Jim Meyering.
3647
3648 2007-03-17  Eric Blake  <ebb9@byu.net>
3649
3650         * NEWS: Document stdlib change from 2007-02-18.
3651
3652 2007-03-17  Jim Meyering  <jim@meyering.net>
3653
3654         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
3655         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
3656         someone uses a name containing shell meta-characters.
3657         Reported by Alfred M. Szmidt.
3658
3659         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
3660
3661 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
3662
3663         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
3664         and copy gettext configuration files only if configure.ac contains
3665         a use of AM_GNU_GETTEXT_VERSION.
3666
3667 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
3668
3669         * build-aux/bootstrap (gnulib_name): New variable.
3670         (gnulib_tool_options): Use it.
3671
3672 2007-03-13  Simon Josefsson  <simon@josefsson.org>
3673
3674         * tests/test-des.c: Use new namespace.
3675
3676 2007-03-15  Bruno Haible  <bruno@clisp.org>
3677
3678         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
3679         Reported by James Youngman <jay@gnu.org>.
3680
3681 2007-03-15  Bruno Haible  <bruno@clisp.org>
3682
3683         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
3684         declared prototype. Needed with cc on OSF/1 5.1.
3685
3686 2007-03-15  Bruno Haible  <bruno@clisp.org>
3687
3688         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
3689         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
3690         (struct gl_list_implementation): Add dispose_fn argument to the
3691         'create_empty', 'create' methods.
3692         (struct gl_list_impl_base): Add field 'dispose_fn'.
3693         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
3694         argument.
3695         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
3696         dispose_fn argument.
3697         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
3698         dispose_fn on the dropped values.
3699         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
3700         dispose_fn argument.
3701         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
3702         dropped values.
3703         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
3704         (gl_tree_remove_node): Call dispose_fn on the dropped value.
3705         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
3706         (gl_tree_remove_node): Call dispose_fn on the dropped value.
3707         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
3708         argument.
3709         (gl_tree_list_free): Call dispose_fn on the dropped values.
3710         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
3711         the dropped values.
3712         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
3713         Add dispose_fn argument.
3714         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
3715         Call dispose_fn on the dropped values.
3716         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
3717         Add dispose_fn argument.
3718         (gl_sublist_create): Initialize the 'dispose_fn' field.
3719         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
3720         * tests/test-array_list.c (main): Update.
3721         * tests/test-carray_list.c (main): Update.
3722         * tests/test-avltree_list.c (main): Update.
3723         * tests/test-rbtree_list.c (main): Update.
3724         * tests/test-avltreehash_list.c (main): Update.
3725         * tests/test-rbtreehash_list.c (main): Update.
3726         * tests/test-linked_list.c (main): Update.
3727         * tests/test-linkedhash_list.c (main): Update.
3728         * tests/test-array_oset.c (main): Update.
3729
3730 2007-03-15  Bruno Haible  <bruno@clisp.org>
3731
3732         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
3733         (gl_oset_create_empty): Add dispose_fn argument.
3734         (struct gl_oset_implementation): Add dispose_fn argument to
3735         'create_empty' method.
3736         (struct gl_oset_impl_base): Add dispose_fn field.
3737         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
3738         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
3739         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
3740         values.
3741         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
3742         (gl_tree_oset_free): Call dispose_fn on the dropped values.
3743         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
3744         dropped value.
3745         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
3746         dropped value.
3747         * tests/test-array_oset.c (main): Update.
3748         * tests/test-avltree_oset.c (main): Update.
3749         * tests/test-rbtree_oset.c (main): Update.
3750         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
3751
3752 2007-03-13  Bruno Haible  <bruno@clisp.org>
3753
3754         * tests/test-stdbool.c (i): Update after last patch.
3755
3756 2007-03-12  Bruno Haible  <bruno@clisp.org>
3757
3758         * lib/quotearg.c: Include <wctype.h> early, before the definition of
3759         the iswprint macro. Needed on Solaris 2.5.1.
3760
3761 2007-03-12  Bruno Haible  <bruno@clisp.org>
3762
3763         * tests/test-printf-frexp.c (main): Declare x as volatile.
3764
3765 2007-03-12  Simon Josefsson  <simon@josefsson.org>
3766
3767         * doc/gnulib.texi (Build robot for gnulib): New section.
3768
3769 2007-03-12  Jim Meyering  <jim@meyering.net>
3770
3771         * build-aux/bootstrap: New file.
3772         * build-aux/bootstrap.conf: New file, from coreutils.
3773
3774 2007-03-11  Bruno Haible  <bruno@clisp.org>
3775
3776         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
3777
3778 2007-03-12  Simon Josefsson  <simon@josefsson.org>
3779
3780         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
3781         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
3782         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
3783
3784 2007-03-11  Bruno Haible  <bruno@clisp.org>
3785
3786         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
3787         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
3788
3789 2007-03-11  Bruno Haible  <bruno@clisp.org>
3790
3791         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
3792         formula. Needed for SunPRO C 5.0.
3793
3794 2007-03-11  Bruno Haible  <bruno@clisp.org>
3795
3796         * modules/long-options (Depends-on): Add getopt.
3797
3798 2007-03-11  Bruno Haible  <bruno@clisp.org>
3799
3800         * modules/modechange (Depends-on): Add stdbool.
3801
3802 2007-03-11  Bruno Haible  <bruno@clisp.org>
3803
3804         * modules/i-ring (Depends-on): Add stdbool.
3805
3806 2007-03-11  Bruno Haible  <bruno@clisp.org>
3807
3808         * modules/gc-des (Depends-on): Add stdbool.
3809
3810 2007-03-11  Bruno Haible  <bruno@clisp.org>
3811
3812         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
3813
3814 2007-03-11  Bruno Haible  <bruno@clisp.org>
3815
3816         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
3817
3818 2007-03-11  Bruno Haible  <bruno@clisp.org>
3819
3820         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
3821
3822 2007-03-11  Bruno Haible  <bruno@clisp.org>
3823
3824         * lib/vasnprintf.c (sprintf): Undefine.
3825
3826 2007-03-11  Bruno Haible  <bruno@clisp.org>
3827
3828         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
3829         initializers in SunPRO C and Compaq C compilers.
3830
3831 2007-03-11  Bruno Haible  <bruno@clisp.org>
3832
3833         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
3834         decrementing code ANSI C compliant.
3835
3836 2007-03-11  Bruno Haible  <bruno@clisp.org>
3837
3838         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
3839         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
3840
3841 2007-03-11  Bruno Haible  <bruno@clisp.org>
3842
3843         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
3844         <stdbool.h> substitute doesn't pass.
3845
3846 2007-03-11  Bruno Haible  <bruno@clisp.org>
3847
3848         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
3849
3850 2007-03-11  Bruno Haible  <bruno@clisp.org>
3851
3852         * gnulib-tool (func_create_megatestdir): Create also an autobuild
3853         script, for submission to autobuild.josefsson.org.
3854
3855 2007-03-10  Bruno Haible  <bruno@clisp.org>
3856
3857         * modules/canonicalize-lgpl-tests: New file.
3858         * tests/test-canonicalize-lgpl.sh: New file.
3859         * tests/test-canonicalize-lgpl.c: New file.
3860
3861         * modules/c-strcase-tests: New file.
3862         * tests/test-c-strcase.sh: New file.
3863         * tests/test-c-strcasecmp.c: New file.
3864         * tests/test-c-strncasecmp.c: New file.
3865
3866         * modules/atexit-tests: New file.
3867         * tests/test-atexit.sh: New file.
3868         * tests/test-atexit.c: New file.
3869
3870 2007-03-10  Bruno Haible  <bruno@clisp.org>
3871
3872         * tests/test-binary-io.sh: Use temporary filenames that are not so
3873         likely to clash with those of other tests (in a parallel make).
3874         * tests/test-binary-io.c: Likewise.
3875
3876 2007-03-10  Bruno Haible  <bruno@clisp.org>
3877
3878         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
3879         fallback; use #error instead.
3880         Suggested by Simon Josefsson.
3881
3882 2007-03-10  Bruno Haible  <bruno@clisp.org>
3883
3884         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
3885         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
3886         first and the last.
3887
3888 2007-03-10  Bruno Haible  <bruno@clisp.org>
3889
3890         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
3891
3892 2007-03-10  Bruno Haible  <bruno@clisp.org>
3893
3894         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
3895         "make distcheck".
3896         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
3897         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
3898         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
3899
3900 2007-03-10  Bruno Haible  <bruno@clisp.org>
3901
3902         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
3903         variable.
3904         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
3905         variable.
3906
3907 2007-03-09  Eric Blake  <ebb9@byu.net>
3908         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
3909
3910         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
3911         types are not being provided by gnulib.
3912         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
3913         types are supported.
3914
3915 2007-03-10  Bruno Haible  <bruno@clisp.org>
3916
3917         * lib/stdio_.h (__attribute__): New macro.
3918         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
3919         vsprintf): Specify __attribute__ __format__ for GCC.
3920         Suggested by Eric Blake.
3921
3922 2007-03-09  Bruno Haible  <bruno@clisp.org>
3923
3924         * modules/printf-posix-tests: New file.
3925         * tests/test-printf-posix.sh: New file.
3926         * tests/test-printf-posix.c: New file.
3927
3928         * modules/printf-posix: New file.
3929         * lib/printf.c: New file.
3930         * m4/printf-posix-rpl.m4: New file.
3931         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
3932         REPLACE_PRINTF.
3933         * lib/stdio_.h (printf): New declaration.
3934         (format, __format__, ____printf____, ____scanf____, ____strftime____,
3935         ____strfmon____): New macros.
3936         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
3937         REPLACE_PRINTF.
3938
3939 2007-03-09  Bruno Haible  <bruno@clisp.org>
3940
3941         * tests/test-vasnprintf-posix2.sh: New file.
3942         * tests/test-vasnprintf-posix2.c: New file.
3943         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
3944         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
3945         (Makefile.am): Activate test-vasnprintf-posix2.sh.
3946
3947         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
3948         a locale dependent decimal point, rather than always '.'.
3949
3950 2007-03-09  Eric Blake  <ebb9@byu.net>
3951
3952         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
3953         spite of platforms like Tandem/NSK that define it to -1.
3954
3955 2007-03-08  Bruno Haible  <bruno@clisp.org>
3956
3957         * modules/vprintf-posix-tests: New file.
3958         * tests/test-vprintf-posix.sh: New file.
3959         * tests/test-vprintf-posix.c: New file.
3960         * tests/test-printf-posix.h: New file.
3961
3962         * modules/vprintf-posix: New file.
3963         * lib/vprintf.c: New file.
3964         * m4/vprintf-posix.m4: New file.
3965         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
3966         REPLACE_VPRINTF.
3967         * lib/stdio_.h (vprintf): New declaration.
3968         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
3969         REPLACE_VPRINTF.
3970
3971 2007-03-08  Bruno Haible  <bruno@clisp.org>
3972
3973         * modules/fprintf-posix-tests: New file.
3974         * tests/test-fprintf-posix.sh: New file.
3975         * tests/test-fprintf-posix.c: New file.
3976
3977         * modules/fprintf-posix: New file.
3978         * lib/fprintf.c: New file.
3979         * m4/fprintf-posix.m4: New file.
3980         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
3981         REPLACE_FPRINTF.
3982         * lib/stdio_.h (fprintf): New declaration.
3983         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
3984         REPLACE_FPRINTF.
3985
3986 2007-03-08  Bruno Haible  <bruno@clisp.org>
3987
3988         * modules/vfprintf-posix-tests: New file.
3989         * tests/test-vfprintf-posix.sh: New file.
3990         * tests/test-vfprintf-posix.c: New file.
3991         * tests/test-fprintf-posix.h: New file.
3992         * tests/test-fprintf-posix.out: New file.
3993
3994         * modules/vfprintf-posix: New file.
3995         * lib/vfprintf.c: New file.
3996         * m4/vfprintf-posix.m4: New file.
3997         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
3998         REPLACE_VFPRINTF.
3999         * lib/stdio_.h (vfprintf): New declaration.
4000         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
4001         REPLACE_VFPRINTF.
4002
4003 2007-03-08  Bruno Haible  <bruno@clisp.org>
4004
4005         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
4006
4007 2007-03-08  Bruno Haible  <bruno@clisp.org>
4008
4009         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
4010         instead of 'expr' invocations.
4011         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
4012         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
4013         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
4014         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
4015         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
4016         Suggested by Paul Eggert.
4017
4018 2007-03-08  Bruno Haible  <bruno@clisp.org>
4019
4020         * modules/fseterr-tests: New file.
4021         * tests/test-fseterr.c: New file.
4022
4023         * modules/fseterr: New file.
4024         * lib/fseterr.h: New file.
4025         * lib/fseterr.c: New file.
4026
4027 2007-03-08  Bruno Haible  <bruno@clisp.org>
4028
4029         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
4030         * lib/getopt_.h: Likewise.
4031         * lib/mbswidth.h: Likewise.
4032         * lib/setenv.h: Likewise.
4033         * lib/vasnprintf.h: Likewise.
4034         * lib/vasprintf.h: Likewise.
4035         * lib/verror.h: Likewise.
4036         * lib/xsetenv.h: Likewise.
4037         * lib/xvasprintf.h: Likewise.
4038
4039 2007-03-08  Jim Meyering  <jim@meyering.net>
4040
4041         * users.txt: Add parted.
4042
4043         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
4044
4045 2007-03-07  Bruno Haible  <bruno@clisp.org>
4046
4047         * m4/printf.m4: Make the shell script snippets copy&pastable.
4048
4049 2007-03-02  Bruno Haible  <bruno@clisp.org>
4050
4051         * lib/netinet_in_.h: New file.
4052         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
4053         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
4054         * modules/netinet_in (Files): Add lib/netinet_in_.h.
4055         (Depends-on): Add absolute-header.
4056         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
4057         into netinet/in.h.
4058
4059 2007-03-03  Bruno Haible  <bruno@clisp.org>
4060
4061         * lib/sys_select_.h: New file.
4062         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
4063         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
4064         * modules/sys_select (Files): Add lib/sys_select_.h.
4065         (Depends-on): Add absolute-header.
4066         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
4067         into sys/select.h.
4068
4069 2007-03-02  Bruno Haible  <bruno@clisp.org>
4070
4071         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
4072         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
4073         values.
4074         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
4075         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
4076         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
4077         * modules/sys_socket (Depends-on): Add absolute-header.
4078         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
4079         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
4080         (Include): Remove requirement of inclusion of <sys/types.h>.
4081
4082 2007-03-02  Bruno Haible  <bruno@clisp.org>
4083
4084         * lib/byteswap_.h (bswap_32): Fix formula.
4085
4086 2007-03-06  Bruno Haible  <bruno@clisp.org>
4087
4088         * modules/sprintf-posix-tests: New file.
4089         * tests/test-sprintf-posix.c: New file.
4090
4091         * modules/sprintf-posix: New file.
4092         * lib/sprintf.c: New file.
4093         * m4/sprintf-posix.m4: New file.
4094         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
4095         REPLACE_SPRINTF.
4096         * lib/stdio_.h (sprintf): New declaration.
4097         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
4098         REPLACE_SPRINTF.
4099
4100 2007-03-06  Bruno Haible  <bruno@clisp.org>
4101
4102         * modules/vsprintf-posix-tests: New file.
4103         * tests/test-vsprintf-posix.c: New file.
4104         * tests/test-sprintf-posix.h: New file.
4105
4106         * modules/vsprintf-posix: New file.
4107         * lib/vsprintf.c: New file.
4108         * m4/vsprintf-posix.m4: New file.
4109         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
4110         REPLACE_VSPRINTF.
4111         * lib/stdio_.h (vsprintf): New declaration.
4112         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
4113         REPLACE_VSPRINTF.
4114
4115 2007-03-06  Bruno Haible  <bruno@clisp.org>
4116
4117         * modules/vsnprintf (Depend-on): Remove minmax.
4118
4119 2007-03-06  Bruno Haible  <bruno@clisp.org>
4120
4121         * modules/snprintf-posix-tests: New file.
4122         * tests/test-snprintf-posix.c: New file.
4123
4124         * modules/snprintf-posix: New file.
4125         * m4/snprintf-posix.m4: New file.
4126         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
4127         gl_FUNC_SNPRINTF.
4128         (gl_FUNC_SNPRINTF): Invoke it.
4129         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
4130         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
4131         is set.
4132         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
4133
4134 2007-03-06  Bruno Haible  <bruno@clisp.org>
4135
4136         * modules/vsnprintf-posix-tests: New file.
4137         * tests/test-vsnprintf-posix.c: New file.
4138         * tests/test-snprintf-posix.h: New file.
4139
4140         * modules/vsnprintf-posix: New file.
4141         * m4/vsnprintf-posix.m4: New file.
4142         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
4143         gl_FUNC_VSNPRINTF.
4144         (gl_FUNC_VSNPRINTF): Invoke it.
4145         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
4146         * lib/stdio_.h (vsnprintf): Define as a replacement if
4147         REPLACE_VSNPRINTF is set.
4148         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
4149
4150 2007-03-06  Bruno Haible  <bruno@clisp.org>
4151
4152         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
4153         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
4154
4155 2007-03-06  Bruno Haible  <bruno@clisp.org>
4156
4157         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
4158         (asinl): Declare also if HAVE_DECL_ASINL is set.
4159         (atanl): Declare also if HAVE_DECL_ATANL is set.
4160         (ceill): Declare also if HAVE_DECL_CEILL is set.
4161         (cosl): Declare also if HAVE_DECL_COSL is set.
4162         (expl): Declare also if HAVE_DECL_EXPL is set.
4163         (floorl): Declare also if HAVE_DECL_FLOORL is set.
4164         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
4165         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
4166         (logl): Declare also if HAVE_DECL_LOGL is set.
4167         (sinl): Declare also if HAVE_DECL_SINL is set.
4168         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
4169         (tanl): Declare also if HAVE_DECL_TANL is set.
4170         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
4171         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
4172         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
4173         declaration of frexpl, ldexpl.
4174         * modules/printf-frexpl (Depends-on): Add math.
4175         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
4176
4177 2007-03-05  Bruno Haible  <bruno@clisp.org>
4178
4179         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
4180         frexpl and ldexpl are declared.
4181         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
4182
4183 2007-03-05  Bruno Haible  <bruno@clisp.org>
4184
4185         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
4186         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
4187
4188 2007-03-05  Bruno Haible  <bruno@clisp.org>
4189
4190         * lib/stdio_.h: Include <stddef.h>.
4191
4192 2007-03-05  Bruno Haible  <bruno@clisp.org>
4193
4194         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
4195
4196 2007-03-05  Bruno Haible  <bruno@clisp.org>
4197
4198         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
4199         NetBSD 4, from Ralf Wildenhues.
4200
4201 2007-03-04  Bruno Haible  <bruno@clisp.org>
4202
4203         * lib/vasprintf.h: Update #if logic for the case when the functions
4204         exist but are overridden.
4205
4206 2007-03-04  Bruno Haible  <bruno@clisp.org>
4207
4208         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
4209         implementations: glibc-2.4 and MacOS X 10.3.
4210         * tests/test-vasnprintf-posix.c (test_function): Test also the case
4211         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
4212         * tests/test-vasprintf-posix.c (test_function): Likewise.
4213
4214 2007-03-04  Bruno Haible  <bruno@clisp.org>
4215
4216         * modules/vasprintf-posix-tests: New file.
4217         * tests/test-vasprintf-posix.c: New file.
4218
4219         * modules/vasprintf-posix: New file.
4220         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
4221         defined.
4222         * m4/vasprintf-posix.m4: New file.
4223         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
4224         gl_FUNC_VASPRINTF.
4225         (gl_FUNC_VASPRINTF): Invoke it.
4226         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
4227         here.
4228         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
4229
4230 2007-03-04  Bruno Haible  <bruno@clisp.org>
4231
4232         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
4233         REPLACE_GETTIMEOFDAY.
4234         * modules/sys_time (Makefile.am): Likewise.
4235         * m4/sys_time_h.m4: Likewise.
4236         * m4/gettimeofday.m4: Likewise.
4237
4238 2007-03-04  Bruno Haible  <bruno@clisp.org>
4239
4240         * modules/vasnprintf-posix-tests: New file.
4241         * tests/test-vasnprintf-posix.c: New file.
4242
4243         * modules/vasnprintf-posix: New file.
4244         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
4245         printf-frexpl.h.
4246         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
4247         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
4248         REPLACE_VASNPRINTF is defined.
4249         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
4250         gl_FUNC_VASNPRINTF.
4251         (gl_FUNC_VASNPRINTF): Invoke it.
4252         * m4/vasnprintf-posix.m4: New file.
4253         * m4/printf.m4: New file.
4254
4255 2007-03-04  Bruno Haible  <bruno@clisp.org>
4256
4257         Compile progreloc.c only if --enable-relocatable is specified.
4258         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
4259         if --enable-relocatable was specified.
4260         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
4261         lib_SOURCES.
4262
4263 2007-03-04  Jim Meyering  <jim@meyering.net>
4264
4265         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
4266         Use it consistently, rather than enumerating errno constants.
4267
4268 2007-03-04  Bruno Haible  <bruno@clisp.org>
4269
4270         * modules/xvasprintf-tests: New file.
4271         * tests/test-xvasprintf.c: New file.
4272
4273         * modules/vasprintf-tests: New file.
4274         * tests/test-vasprintf.c: New file.
4275
4276         * modules/vasnprintf-tests: New file.
4277         * tests/test-vasnprintf.c: New file.
4278
4279         * modules/vsnprintf-tests: New file.
4280         * tests/test-vsnprintf.c: New file.
4281
4282         * modules/snprintf-tests: New file.
4283         * tests/test-snprintf.c: New file.
4284
4285 2007-03-04  Bruno Haible  <bruno@clisp.org>
4286
4287         Compile relocatable.c only if --enable-relocatable is specified.
4288         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
4289         gl_RELOCATABLE_LIBRARY.
4290         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
4291         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
4292         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
4293         gl_RELOCATABLE_LIBRARY.
4294         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
4295         (Makefile.am): Remove lib_SOURCES.
4296         * modules/relocatable-lib-lgpl (configure.ac): Invoke
4297         gl_RELOCATABLE_LIBRARY.
4298         (Makefile.am): Remove lib_SOURCES.
4299         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
4300         always.
4301         * modules/relocatable-prog-wrapper (configure.ac): Invoke
4302         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
4303
4304 2007-03-04  Bruno Haible  <bruno@clisp.org>
4305
4306         * modules/argmatch-tests: New file.
4307         * tests/test-argmatch.c: New file.
4308
4309         * tests/test-allocsa.c (main): Halve the number of loop runs.
4310
4311         * modules/alloca-opt-tests: New file.
4312         * tests/test-alloca-opt.c: New file.
4313
4314 2007-03-04  Jim Meyering  <jim@meyering.net>
4315
4316         Work around difference between Linux ACLs and Solaris 10 ZFS.
4317         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
4318         for EINVAL.
4319
4320 2007-03-03  Bruno Haible  <bruno@clisp.org>
4321
4322         * modules/relocatable-prog (Depends-on): Add back progreloc's
4323         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
4324
4325 2007-03-03  Bruno Haible  <bruno@clisp.org>
4326
4327         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
4328         * modules/relocatable-lib: New file.
4329
4330 2007-03-03  Bruno Haible  <bruno@clisp.org>
4331
4332         * modules/relocatable-prog: Renamed from modules/relocatable.
4333         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
4334
4335 2007-03-03  Bruno Haible  <bruno@clisp.org>
4336
4337         * modules/relocatable-script (Files): Add doc/relocatable.texi,
4338         m4/relocatable-lib.m4.
4339         (Depends-on): Remove 'relocatable'.
4340         (configure.ac): Add gl_RELOCATABLE_NOP.
4341
4342 2007-03-03  Bruno Haible  <bruno@clisp.org>
4343
4344         * modules/relocatable-prog-wrapper: New file.
4345         * modules/relocatable (Depends-on): Add it. Remove all other
4346         dependencies except progname.
4347         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
4348
4349         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
4350         (gl_FUNC_STRERROR): Nop.
4351         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
4352
4353         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
4354         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
4355
4356         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
4357         (gl_FUNC_READLINK): Update.
4358
4359         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
4360
4361 2007-03-03  Bruno Haible  <bruno@clisp.org>
4362
4363         * lib/xreadlink.c: Include <unistd.h> unconditionally.
4364         * modules/xreadlink (Depends-on): Add unistd.
4365         * modules/xreadlink-with-size (Depends-on): Likewise.
4366
4367 2007-03-03  Bruno Haible  <bruno@clisp.org>
4368
4369         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
4370         extracted from gt_FUNC_SETENV.
4371         (gt_FUNC_SETENV): Remove macro.
4372         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
4373         remove gt_FUNC_SETENV.
4374
4375 2007-03-03  Bruno Haible  <bruno@clisp.org>
4376
4377         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
4378         ENABLE_RELOCATABLE here.
4379         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
4380
4381 2007-03-03  Bruno Haible  <bruno@clisp.org>
4382
4383         * modules/rbtreehash-list-tests (Depends-on): Add progname.
4384         * tests/test-rbtreehash_list.c: Include progname.h.
4385         (main): Call set_program_name.
4386
4387         * modules/rbtree-oset-tests (Depends-on): Add progname.
4388         * tests/test-rbtree_oset.c: Include progname.h.
4389         (main): Call set_program_name.
4390
4391         * modules/rbtree-list-tests (Depends-on): Add progname.
4392         * tests/test-rbtree_list.c: Include progname.h.
4393         (main): Call set_program_name.
4394
4395         * modules/linked-list-tests (Depends-on): Add progname.
4396         * tests/test-linked_list.c: Include progname.h.
4397         (main): Call set_program_name.
4398
4399 2007-03-03  Bruno Haible  <bruno@clisp.org>
4400
4401         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
4402         All uses of __restrict changed to _Restrict_.
4403         * lib/glob_.h (__restrict): Remove macro.
4404
4405 2007-03-02  Bruno Haible  <bruno@clisp.org>
4406
4407         * modules/gettext (configure.ac): Require gettext infrastructure
4408         from version 0.16.1.
4409
4410 2007-03-02  Bruno Haible  <bruno@clisp.org>
4411
4412         * modules/linkedhash-list-tests (Depends-on): Add progname.
4413         * tests/test-linkedhash_list.c: Include progname.h.
4414         (main): Call set_program_name.
4415
4416         * modules/carray-list-tests (Depends-on): Add progname.
4417         * tests/test-carray_list.c: Include progname.h.
4418         (main): Call set_program_name.
4419
4420         * modules/avltreehash-list-tests (Depends-on): Add progname.
4421         * tests/test-avltreehash_list.c: Include progname.h.
4422         (main): Call set_program_name.
4423
4424         * modules/avltree-oset-tests (Depends-on): Add progname.
4425         * tests/test-avltree_oset.c: Include progname.h.
4426         (main): Call set_program_name.
4427
4428         * modules/avltree-list-tests (Depends-on): Add progname.
4429         * tests/test-avltree_list.c: Include progname.h.
4430         (main): Call set_program_name.
4431
4432         * modules/array-oset-tests (Depends-on): Add progname.
4433         * tests/test-array_oset.c: Include progname.h.
4434         (main): Call set_program_name.
4435
4436         * modules/array-list-tests (Depends-on): Add progname.
4437         * tests/test-array_list.c: Include progname.h.
4438         (main): Call set_program_name.
4439
4440         * modules/argp-tests (Depends-on): Add progname.
4441         * tests/test-argp.c: Include argp.h first. Include progname.h.
4442         (main): Call set_program_name.
4443
4444 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
4445
4446         * doc/gnulib-tool.texi (Initial import): Reword description of
4447         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
4448         limited effect even if defined after the first system include.
4449
4450 2007-03-01  Bruno Haible  <bruno@clisp.org>
4451
4452         * build-aux/config.libpath: Update to libtool-1.5.22.
4453         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
4454
4455 2007-03-01  Bruno Haible  <bruno@clisp.org>
4456
4457         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
4458         foo_CFLAGS.
4459         Reported by Ralf Wildenhues.
4460
4461 2007-03-01  Bruno Haible  <bruno@clisp.org>
4462
4463         * build-aux/install-reloc: Remove object files left over by some
4464         compilers.
4465         Reported by Ralf Wildenhues.
4466
4467 2007-03-01  Bruno Haible  <bruno@clisp.org>
4468
4469         * build-aux/install-reloc: Break long lines.
4470
4471 2007-03-01  Bruno Haible  <bruno@clisp.org>
4472
4473         * doc/relocatable.texi: Document that it may not work on OpenBSD.
4474         Reported by Ralf Wildenhues.
4475
4476 2007-03-01  Bruno Haible  <bruno@clisp.org>
4477
4478         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
4479         include ordering constraints.
4480
4481 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
4482
4483         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
4484         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
4485         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
4486         as another example.
4487         * lib/time_.h: Fix misspelling.
4488         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
4489         Require gl_HEADER_TIME_H_DEFAULTS.
4490         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
4491         * m4/time_r.m4 (gl_TIME_R): Likewise.
4492         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
4493
4494 2007-03-01  Bruno Haible  <bruno@clisp.org>
4495
4496         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
4497         * m4/utimens.m4 (gl_UTIMENS): Likewise.
4498
4499 2007-03-01  Jim Meyering  <jim@meyering.net>
4500
4501         * modules/xreadlink (Maintainer): Add my name.
4502         * modules/xreadlink-with-size (Depends-on): Alphabetize.
4503
4504 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
4505             Bruno Haible  <bruno@clisp.org>
4506
4507         * build-aux/install-reloc: Compile also c-ctype.c.
4508         * build-aux/relocatable.sh.in: New file.
4509         * doc/relocatable.texi: New file.
4510         * doc/relocatable-maint.texi: New file.
4511         * doc/gnulib.texi: Include relocatable-maint.texi.
4512         * lib/progreloc.c: Include unistd.h unconditionally.
4513         * lib/relocwrapper.c: Include unistd.h unconditionally.
4514         Include c-ctype.h.
4515         (add_dotbin): Use c_tolower.
4516         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
4517         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
4518         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
4519         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
4520         to m4/relocatable-lib.m4.
4521         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
4522         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
4523         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
4524         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
4525         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
4526         * modules/relocatable: New file.
4527         * modules/relocatable-lib: New file.
4528         * modules/relocatable-script: New file.
4529
4530 2007-02-28  Bruno Haible  <bruno@clisp.org>
4531
4532         Import --enable-relocatable infrastructure.
4533         * build-aux/config.libpath: New file, from GNU gettext.
4534         * build-aux/install-reloc: New file, from GNU gettext.
4535         * build-aux/reloc-ldflags: New file, from GNU gettext.
4536         * lib/relocatable.h: New file, from GNU gettext.
4537         * lib/relocatable.c: New file, from GNU gettext.
4538         * lib/relocwrapper.c: New file, from GNU gettext.
4539         * m4/relocatable.m4: New file, from GNU gettext.
4540
4541 2007-02-28  Bruno Haible  <bruno@clisp.org>
4542
4543         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
4544
4545         * modules/xreadlink: New file, from GNU gettext with modifications.
4546         * lib/xreadlink.c: New file, from GNU gettext.
4547         * lib/xreadlink.h: Add comments.
4548         (xreadlink): New declaration.
4549
4550         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
4551         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
4552         lib/xreadlink-with-size.c.
4553         (configure.ac): Remove gl_XREADLINK invocation.
4554         (Makefile.am): Augment lib_SOURCES.
4555         * m4/xreadlink.m4: Remove file.
4556         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
4557         (xreadlink_with_size): Renamed from xreadink.
4558         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
4559         * modules/canonicalize (Depends-on): Replace xreadlink with
4560         xreadlink-with-size.
4561         * lib/canonicalize.c (canonicalize_filename_mode): Update.
4562
4563 2007-02-25  Jim Meyering  <jim@meyering.net>
4564
4565         * build-aux/announce-gen: When complaining about excess arguments,
4566         list them.
4567
4568 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
4569
4570         * README: Document signed integer overflow situation more
4571         accurately.
4572
4573 2007-02-25  Bruno Haible  <bruno@clisp.org>
4574
4575         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
4576         'a' or 'A' conversion.
4577
4578 2007-02-25  Bruno Haible  <bruno@clisp.org>
4579
4580         * modules/filename: Renamed from modules/pathname.
4581         (Files): Replace lib/pathname.h with lib/filename.h. Replace
4582         lib/concatpath.c with lib/concat-filename.c.
4583         (Makefile.am): Update.
4584         (Include): Replace pathname.h with filename.h.
4585         * lib/filename.h: Renamed from lib/pathname.h.
4586         (concatenated_filename): Renamed from concatenated_pathname.
4587         * lib/concat-filename.c: Renamed from lib/concatpath.c.
4588         (concatenated_filename): Renamed from concatenated_pathname.
4589         * lib/findprog.c: Include filename.h instead of pathname.h.
4590         (find_in_path): Update.
4591         * lib/javacomp.c: Include filename.h instead of pathname.h.
4592         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
4593         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
4594         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
4595         is_oldgcj_14_13_usable, is_javac_usable): Update.
4596         * lib/javaexec.c: Include filename.h instead of pathname.h.
4597         (execute_java_class): Update.
4598         * modules/findprog: Update.
4599         * modules/javacomp: Update.
4600         * modules/javaexec: Update.
4601         * MODULES.html.sh (File system functions): Add 'filename', remove
4602         'pathname'.
4603
4604 2007-02-25  Bruno Haible  <bruno@clisp.org>
4605
4606         * modules/printf-frexpl-tests: New file.
4607         * tests/test-printf-frexpl.c: New file.
4608
4609         * modules/printf-frexpl: New file.
4610         * lib/printf-frexpl.h: New file.
4611         * lib/printf-frexpl.c: New file.
4612         * m4/printf-frexpl.m4: New file.
4613
4614 2007-02-25  Bruno Haible  <bruno@clisp.org>
4615
4616         * modules/printf-frexp-tests: New file.
4617         * tests/test-printf-frexp.c: New file.
4618
4619         * modules/printf-frexp: New file.
4620         * lib/printf-frexp.h: New file.
4621         * lib/printf-frexp.c: New file.
4622         * m4/printf-frexp.m4: New file.
4623
4624 2007-02-25  Bruno Haible  <bruno@clisp.org>
4625
4626         Assume automake >= 1.10 for the tests.
4627         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
4628         * modules/arctwo-tests: Likewise.
4629         * modules/argp-tests: Likewise.
4630         * modules/avltree-list-tests: Likewise.
4631         * modules/avltree-oset-tests: Likewise.
4632         * modules/avltreehash-list-tests: Likewise.
4633         * modules/carray-list-tests: Likewise.
4634         * modules/crc-tests: Likewise.
4635         * modules/des-tests: Likewise.
4636         * modules/gc-arcfour-tests: Likewise.
4637         * modules/gc-arctwo-tests: Likewise.
4638         * modules/gc-des-tests: Likewise.
4639         * modules/gc-hmac-md5-tests: Likewise.
4640         * modules/gc-hmac-sha1-tests: Likewise.
4641         * modules/gc-md2-tests: Likewise.
4642         * modules/gc-md4-tests: Likewise.
4643         * modules/gc-md5-tests: Likewise.
4644         * modules/gc-pbkdf2-sha1-tests: Likewise.
4645         * modules/gc-rijndael-tests: Likewise.
4646         * modules/gc-sha1-tests: Likewise.
4647         * modules/gc-tests: Likewise.
4648         * modules/getaddrinfo-tests: Likewise.
4649         * modules/hmac-md5-tests: Likewise.
4650         * modules/hmac-sha1-tests: Likewise.
4651         * modules/linked-list-tests: Likewise.
4652         * modules/linkedhash-list-tests: Likewise.
4653         * modules/lock-tests: Likewise.
4654         * modules/md2-tests: Likewise.
4655         * modules/md4-tests: Likewise.
4656         * modules/md5-tests: Likewise.
4657         * modules/rbtree-list-tests: Likewise.
4658         * modules/rbtree-oset-tests: Likewise.
4659         * modules/rbtreehash-list-tests: Likewise.
4660         * modules/read-file-tests: Likewise.
4661         * modules/rijndael-tests: Likewise.
4662         * modules/stdint-tests: Likewise.
4663         * modules/tls-tests: Likewise.
4664
4665 2007-02-24  Bruno Haible  <bruno@clisp.org>
4666
4667         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
4668         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
4669         function; instead check whether isnan with a double argument links.
4670         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
4671         function; instead check whether isnan with a 'long double' argument
4672         links.
4673         Reported by Eric Blake <ebb9@byu.net>.
4674
4675 2007-02-24  Bruno Haible  <bruno@clisp.org>
4676
4677         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
4678         defined.
4679         * lib/isnanl.c: Remove all code. Just include isnan.c.
4680         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
4681
4682 2007-02-25  Jim Meyering  <jim@meyering.net>
4683
4684         Avoid conflicting types for 'unsetenv' on FreeBSD.
4685         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
4686         conflicting with FreeBSD's (5.0 and 6.1) function declaration
4687         in stdlib.h.
4688
4689 2007-02-24  Bruno Haible  <bruno@clisp.org>
4690
4691         * modules/isnanl-nolibm-tests: New file.
4692         * tests/test-isnanl.c: New file.
4693
4694         * modules/isnanl-nolibm: New file.
4695         * lib/isnanl.h: New file.
4696         * lib/isnanl.c: New file.
4697         * m4/isnanl.m4: New file.
4698
4699 2007-02-24  Bruno Haible  <bruno@clisp.org>
4700
4701         * modules/isnan-nolibm-tests: New file.
4702         * tests/test-isnan.c: New file.
4703
4704         * modules/isnan-nolibm: New file.
4705         * lib/isnan.h: New file.
4706         * lib/isnan.c: New file.
4707         * m4/isnan.m4: New file.
4708
4709 2007-02-24  Bruno Haible  <bruno@clisp.org>
4710
4711         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
4712         assume that an exponent fits in 20 bits.
4713
4714 2007-02-24  Jim Meyering  <jim@meyering.net>
4715
4716         * m4/regex.m4: Update the description of the configure-time option,
4717         --without-included-regex, to state accurately what the defaults are,
4718         and perhaps to give people an idea why using this option is risky.
4719
4720 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
4721
4722         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
4723         loops on small arguments.  This attempts to avoid the problem
4724         Bruno Haible reported for AIX 4.3.2 in
4725         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
4726
4727 2007-02-23  Bruno Haible  <bruno@clisp.org>
4728
4729         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
4730         Needed for help2man.
4731
4732 2007-02-23  Karl Berry  <karl@gnu.org>
4733
4734         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
4735         exists, foo.h should be cvs-ignored, not committed.
4736
4737 2007-02-23  Eric Blake  <ebb9@byu.net>
4738
4739         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
4740         * lib/stat-time.h (includes): Likewise.
4741         * lib/utimecmp.c (includes): Likewise.
4742         * lib/utimens.h (includes): Likewise.
4743         * lib/getdate.y (includes): Also include "timespec.h" for use
4744         internal to the module.
4745         * modules/utimens (Depends-on): Revert yesterday's patch.
4746         * modules/nanosleep (Depends-on): Add missing dependency.
4747
4748 2007-02-22  Bruno Haible  <bruno@clisp.org>
4749
4750         * lib/glob.c: Don't include getlogin_r.h.
4751
4752 2007-02-22  Jim Meyering  <jim@meyering.net>
4753
4754         * modules/utimens (Depends-on): Add timespec, required for
4755         utimens.h's inclusion of timespec.h.
4756
4757 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
4758
4759         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
4760         long unreadable paths in GNU/Linux.  Problem reported by Andreas
4761         Schwab in
4762         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
4763         I'll try to think of a better way to fix the Solaris problem.
4764
4765         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
4766         like glibc; on Solaris 10, it fails with errno == EINVAL.
4767         POSIX says the behavior is unspecified if the first argument is NULL,
4768         so play it safe and never pass NULL to the system getcwd.
4769
4770 2007-02-21  Jim Meyering  <jim@meyering.net>
4771
4772         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
4773         of gettimeofday.  It would conflict with the one now always
4774         provided via sys_time_.h.  Reported by Matthew Woehlke, as
4775         an IRIX 6.5 build failure.
4776
4777 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
4778
4779         Minor fixups to port to Solaris 10 with Sun C 5.8.
4780         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
4781         * modules/getcwd (Depends-on): Add dirfd.
4782         * lib/putenv.c (putenv): #undef it.
4783         (rpl_putenv): New decl.
4784         (malloc, free): Include <stdlib.h> rather than prototyping separately.
4785
4786 2007-02-20  Bruno Haible  <bruno@clisp.org>
4787
4788         * modules/stdio-tests: New file.
4789         * tests/test-stdio.c: New file.
4790
4791         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
4792         (Depends-on): Add stdio.
4793         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
4794         (Include): Use <stdio.h> instead of vsnprintf.h.
4795         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
4796         HAVE_DECL_VSNPRINTF.
4797         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
4798
4799         * modules/snprintf (Files): Remove lib/snprintf.h.
4800         (Depends-on): Add stdio.
4801         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
4802         (Include): Use <stdio.h> instead of snprintf.h.
4803         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
4804         HAVE_DECL_SNPRINTF.
4805         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
4806         * lib/getaddrinfo.c: Likewise.
4807
4808         * modules/stdio: New file.
4809         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
4810         * lib/snprintf.h: Remove file.
4811         * lib/vsnprintf.h: Remove file.
4812         * lib/.cppi-disable: Remove snprintf.h.
4813         * m4/stdio_h.m4: New file.
4814         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
4815
4816 2007-02-20  Jim Meyering  <jim@meyering.net>
4817
4818         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
4819         used by e.g., mingw.  From Bruno Haible.
4820
4821 2007-02-19  Bruno Haible  <bruno@clisp.org>
4822
4823         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
4824         warnings.
4825         Reported by Ben Pfaff <blp@cs.stanford.edu>.
4826
4827 2007-02-19  Bruno Haible  <bruno@clisp.org>
4828
4829         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
4830         from mingw users.
4831
4832 2007-02-19  Bruno Haible  <bruno@clisp.org>
4833
4834         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
4835         warnings.
4836         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
4837
4838 2007-02-19  Jim Meyering  <jim@meyering.net>
4839
4840         Don't use FD after a successful "fdopendir (fd)".
4841         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
4842         Reset it by calling dirfd on the just-obtained DIR*.
4843
4844         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
4845         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
4846
4847 2007-02-18  Bruno Haible  <bruno@clisp.org>
4848
4849         * lib/readlink.c: Include <unistd.h>.
4850         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
4851         HAVE_READLINK.
4852         * modules/readlink (Depends-on): Add unistd.
4853         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
4854         (Include): Add <unistd.h>.
4855
4856         * lib/getlogin_r.h: Remove file.
4857         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
4858         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
4859         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
4860         HAVE_DECL_GETLOGIN_R.
4861         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
4862         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
4863         (Include): Use <unistd.h> instead of getlogin_r.h.
4864
4865         * lib/getcwd.h: Remove file.
4866         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
4867         * lib/xgetcwd.c: Likewise.
4868         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
4869         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
4870         * modules/getcwd (Files): Remove lib/getcwd.h.
4871         (Depends-on): Add unistd.
4872         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
4873         (Include): Use <unistd.h> instad of getcwd.h.
4874
4875         * lib/ftruncate.c: Include <unistd.h> first.
4876         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
4877         Set HAVE_FTRUNCATE.
4878         * modules/ftruncate (Depends-on): Add unistd.
4879         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
4880
4881         * lib/fchdir.c: Include <unistd.h> first.
4882         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
4883         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
4884         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
4885         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
4886         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
4887
4888         * lib/dup2.c: Include <unistd.h> first.
4889         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
4890         HAVE_DUP2.
4891         * modules/dup2 (Depends-on): Add unistd.
4892         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
4893
4894         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
4895         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
4896         REPLACE_CHOWN. Don't define chown as a macro here.
4897         * modules/chown (Depends-on): Add unistd.
4898         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
4899
4900         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
4901         Add definition for GL_LINK_WARNING.
4902         (chown, dup2): New declarations.
4903         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
4904         link warning.
4905         (ftruncate): New declaration.
4906         (getcwd): New declaration, taken from old getcwd.h.
4907         (getlogin_r): New declaration, taken from old getlogin_r.h.
4908         (readlink): New declaration.
4909         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
4910         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
4911         (gl_PREREQ_UNISTD): Remove macro.
4912         (gl_UNISTD_MODULE_INDICATOR): New macro.
4913         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
4914         many new variables. Don't set UNISTD_H.
4915         * modules/unistd (Description): Change.
4916         (Depends-on): Add link-warning.
4917         (configure.ac): Update.
4918         (Makefile.am): Create unistd.h always. Substitute many new variables
4919         into it.
4920
4921 2007-02-18  Bruno Haible  <bruno@clisp.org>
4922
4923         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
4924         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
4925         HAVE_GETSUBOPT.
4926         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
4927         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
4928         * lib/getsubopt.h: Remove file.
4929         * modules/getsubopt (Files): Remove lib/getsubopt.h.
4930         (Depends-on): Add stdlib.
4931         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
4932         (Includes): Use <stdlib.h> instead of getsubopt.h.
4933         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
4934         Set HAVE_GETSUBOPT.
4935         * lib/getsubopt.c: Don't include getsubopt.h.
4936
4937 2007-02-18  Bruno Haible  <bruno@clisp.org>
4938
4939         * modules/fchdir (Depends-on): Add dup2.
4940
4941 2007-02-18  Bruno Haible  <bruno@clisp.org>
4942
4943         * lib/stdlib_.h: Handle glibc's special invocation convention
4944         specially.
4945
4946 2007-02-18  Bruno Haible  <bruno@clisp.org>
4947
4948         * modules/stdlib-tests: New file.
4949         * tests/test-stdlib.c: New file.
4950
4951         * modules/mkstemp (Files): Remove lib/mkstemp.h.
4952         (Depends-on): Add stdlib.
4953         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
4954         (Includes): Use <stdlib.h> instead of mkstemp.h.
4955         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
4956         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
4957         * lib/mkstemp.c: Don't include mkstemp.h.
4958         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
4959         * lib/stdlib--.h: Don't include mkstemp.h.
4960
4961         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
4962         (Depends-on): Add stdlib.
4963         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
4964         (Includes): Use <stdlib.h> instead of mkdtemp.h.
4965         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
4966         HAVE_MKDTEMP.
4967         * lib/mkdtemp.c: Don't include mkdtemp.h.
4968         * lib/clean-temp.c: Don't include mkdtemp.h.
4969
4970         * modules/exit (Files): Remove lib/exit.h.
4971         (Depends-on): Add stdlib.
4972         (Makefile.am): Remove lib_SOURCES.
4973         (Include): Use <stdlib.h> instead of exit.h.
4974         * lib/argmatch.c: Don't include exit.h.
4975         * lib/execute.c: Likewise.
4976         * lib/pagealign_alloc.c: Likewise.
4977         * lib/pipe.c: Likewise.
4978         * lib/wait-process.c: Likewise.
4979         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
4980         * lib/exitfail.c: Likewise.
4981         * lib/savewd.c: Likewise.
4982         * lib/xsetenv.c: Likewise.
4983
4984         * modules/stdlib: New file.
4985         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
4986         and extra comments about mkstemp().
4987         * lib/exit.h: Remove file.
4988         * lib/mkdtemp.h: Remove file.
4989         * lib/mkstemp.h: Remove file.
4990         * m4/stdlib_h.m4: New file.
4991         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
4992
4993 2007-02-18  Bruno Haible  <bruno@clisp.org>
4994
4995         * modules/math-tests: New file.
4996         * tests/test-math.c: New file.
4997
4998         * modules/math: New file.
4999         * modules/mathl (Files): Remove lib/mathl.h.
5000         (Depends-on): Add math.
5001         (Makefile.am): Don't mention mathl.h.
5002         (Include): Use <math.h> instead of mathl.h.
5003         * lib/math_.h: New file.
5004         * lib/mathl.h: Remove file.
5005         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
5006         mathl.h.
5007         * lib/asinl.c: Likewise.
5008         * lib/atanl.c: Likewise.
5009         * lib/ceill.c: Likewise.
5010         * lib/cosl.c: Likewise.
5011         * lib/expl.c: Likewise.
5012         * lib/floorl.c: Likewise.
5013         * lib/frexpl.c: Likewise.
5014         * lib/ldexpl.c: Likewise.
5015         * lib/logl.c: Likewise.
5016         * lib/sincosl.c: Likewise.
5017         * lib/sinl.c: Likewise.
5018         * lib/sqrtl.c: Likewise.
5019         * lib/tanl.c: Likewise.
5020         * lib/trigl.c: Likewise.
5021         * m4/math_h.m4: New file.
5022         * MODULES.html.sh (Mathematics): Add math.
5023
5024 2007-02-17  Bruno Haible  <bruno@clisp.org>
5025
5026         * modules/wctype-tests: New file.
5027         * tests/test-wctype.c: New file.
5028
5029         * modules/wchar-tests: New file.
5030         * tests/test-wchar.c: New file.
5031
5032         * modules/unistd-tests: New file.
5033         * tests/test-unistd.c: New file.
5034
5035         * modules/time-tests: New file.
5036         * tests/test-time.c: New file.
5037
5038         * modules/sysexits-tests: New file.
5039         * tests/test-sysexits.c: New file.
5040
5041         * modules/sys_time-tests: New file.
5042         * tests/test-sys_time.c: New file.
5043
5044         * modules/sys_stat-tests: New file.
5045         * tests/test-sys_stat.c: New file.
5046
5047         * modules/sys_socket-tests: New file.
5048         * tests/test-sys_socket.c: New file.
5049
5050         * modules/sys_select-tests: New file.
5051         * tests/test-sys_select.c: New file.
5052
5053         * modules/string-tests: New file.
5054         * tests/test-string.c: New file.
5055
5056         * modules/stdbool-tests: New file.
5057         * tests/test-stdbool.c: New file.
5058
5059         * modules/netinet_in-tests: New file.
5060         * tests/test-netinet_in.c: New file.
5061
5062         * modules/inttypes-tests: New file.
5063         * tests/test-inttypes.c: New file.
5064
5065         * modules/fcntl-tests: New file.
5066         * tests/test-fcntl.c: New file.
5067
5068         * modules/byteswap-tests: New file.
5069         * tests/test-byteswap.c: New file.
5070
5071         * modules/arpa_inet-tests: New file.
5072         * tests/test-arpa_inet.c: New file.
5073
5074 2007-02-17  Bruno Haible  <bruno@clisp.org>
5075
5076         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
5077         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
5078         if the corresponding module is not enabled. Emit link warnings if
5079         the function is used nevertheless.
5080         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
5081         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
5082         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
5083         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
5084         * modules/inttypes (Depends-on): Add link-warning.
5085         (Makefile.am): Copy the contents of build-aux/link-warning.h into
5086         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
5087         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
5088         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
5089         * modules/imaxdiv (configure.ac): Likewise.
5090         * modules/strtoimax (configure.ac): Likewise.
5091         * modules/strtoumax (configure.ac): Likewise.
5092
5093 2007-02-17  Bruno Haible  <bruno@clisp.org>
5094
5095         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
5096         gl_STRING_MODULE_INDICATOR_DEFAULTS.
5097         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
5098         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
5099
5100 2007-02-17  Bruno Haible  <bruno@clisp.org>
5101
5102         * modules/link-warning: New file.
5103         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
5104         * lib/string_.h (GL_LINK_WARNING): Remove definition.
5105         * modules/string (Depends-on): Add link-warning.
5106         (Makefile.am): Copy the contents of build-aux/link-warning.h into
5107         string.h.
5108         * MODULES.html.sh (Support for building libraries and executables): Add
5109         link-warning.
5110
5111 2007-02-17  Bruno Haible  <bruno@clisp.org>
5112
5113         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
5114         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
5115         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
5116         long lines.
5117
5118 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
5119             Bruno Haible  <bruno@clisp.org>
5120
5121         * modules/tmpfile: New file.
5122         * lib/tmpfile.c: New file.
5123         * m4/tmpfile.m4: New file.
5124         * MODULES.html.sh (func_all_modules): New section "Input/output".
5125
5126 2007-02-15  Bruno Haible  <bruno@clisp.org>
5127
5128         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
5129         (supports_delete_on_close): New function.
5130         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
5131
5132 2007-02-14  Bruno Haible  <bruno@clisp.org>
5133
5134         * modules/mbspcasecmp-tests: New file.
5135         * tests/test-mbspcasecmp.sh: New file.
5136         * tests/test-mbspcasecmp.c: New file.
5137
5138         New module mbspcasecmp.
5139         * modules/mbspcasecmp: New file.
5140         * lib/mbspcasecmp.c: New file.
5141         * lib/string_.h (strncasecmp): Change warning message.
5142         (mbspcasecmp): New declaration.
5143         * m4/mbspcasecmp.m4: New file.
5144         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
5145         GNULIB_MBSPCASECMP.
5146         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
5147         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
5148
5149 2007-02-14  Bruno Haible  <bruno@clisp.org>
5150
5151         * modules/mbsncasecmp-tests: New file.
5152         * tests/test-mbsncasecmp.sh: New file.
5153         * tests/test-mbsncasecmp.c: New file.
5154
5155         New module mbsncasecmp.
5156         * modules/mbsncasecmp: New file.
5157         * lib/mbsncasecmp.c: New file.
5158         * lib/string_.h (mbsncasecmp): New declaration.
5159         * m4/mbsncasecmp.m4: New file.
5160         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
5161         GNULIB_MBSNCASECMP.
5162         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
5163         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
5164
5165 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
5166
5167         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
5168         Verify that it doesn't overlap with our flags.
5169         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
5170         do not have the desired effect in multibyte locales; instead, use
5171         mbscasecmp.
5172         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
5173         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
5174         we don't require GNU fnmatch ourselves (if our users require it, they
5175         should do so explicitly).
5176
5177         Fix regex code so it doesn't rely on strcasecmp.
5178         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
5179         Otherwise, include gnulib's langinfo.h.
5180         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
5181         undesirable behavior in non-C locales.  Instead, rely on localecharset.
5182         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
5183         * modules/regex (FILES): Remove m4/codeset.m4.
5184         (Depends-on): Add localcharset.  Remove strcase.
5185
5186 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5187
5188         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
5189         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
5190
5191 2007-02-13  Bruno Haible  <bruno@clisp.org>
5192
5193         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
5194         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
5195
5196 2007-02-12  Bruno Haible  <bruno@clisp.org>
5197
5198         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
5199         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
5200         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
5201         time warning rather than a link error.
5202
5203 2007-02-12  Bruno Haible  <bruno@clisp.org>
5204
5205         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
5206         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
5207         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
5208
5209 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
5210
5211         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
5212         args, not 2.
5213
5214 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
5215
5216         New module 'time', so that apps can include <time.h> as per
5217         POSIX and GNU instead of separate include files like time_r.h
5218         and timegm.h.  This implementation tries out a simpler approach
5219         for replacing decls in standard include files (as compared to
5220         the string module), somewhat as an experiment.
5221
5222         * config/srclist.txt: Comment out mktime.c for now.
5223         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
5224         since it doesn't apply any more.  Use generic wording instead.
5225         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
5226         'time'.
5227         * lib/time_.h, m4/time_h.m4, modules/time: New files.
5228         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
5229         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
5230         Don't include <sys/types.h>; no longer needed since we assume C89.
5231         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
5232         * lib/strftime.c: Likewise.
5233         * lib/time_r.c: Likewise.
5234         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
5235         * lib/nanosleep.c: Include <time.h> first, to check interface.
5236         * lib/strptime.c: Likewise.
5237         * lib/time_r.c: Likewise.
5238         * lib/timegm.c: Likewise.
5239         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
5240         needed.
5241         * lib/timegm.c: Don't include timegm.h; no longer needed.
5242         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
5243         time.h now handles any problems in that area.
5244         (struct timespec, nanosleep): Remove; time.h now arranges for these.
5245         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
5246         that time.h defines struct timespec.
5247         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
5248         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
5249         handles that.
5250         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
5251         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
5252         needed.  Set REPLACE_LOCALTIME.
5253         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
5254         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
5255         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
5256         nanosleep; time_h.m4 now does that.  Don't require
5257         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
5258         module handles this now.
5259         * modules/getdate (Depends-on): Remove timespec.  Add time.
5260         * modules/nanosleep (Depends-on): Likewise.
5261         * modules/stat-time (Depends-on): Likewise.
5262         * modules/nanosleep (Include): Include time.h, not timespec.h.
5263         * modules/strptime (Files): Remove lib/strptime.h.
5264         (Depends-on): Add extensions, time.
5265         (Include): Include time.h, not strptime.h.
5266         * modules/time_r (Files): Remove lib/time_r.h.
5267         (Depends-on): Add time.
5268         (Include): Include time.h, not time_r.h.
5269         * modules/timegm: Likewise.
5270         * modules/timespec (Description): Now does timespec-related decls
5271         of our own, instead of struct timespec itself.
5272         (Depends-on): Add time; remove extensions.
5273         (Maintainer): Add self.
5274         * modules/utimecmp (Depends-on): Add time; remove timespec.
5275         * modules/utimens (Depends-on): Likewise.
5276         * modules/xnanosleep (Depends-on): Likewise.
5277
5278 2007-02-11  Bruno Haible  <bruno@clisp.org>
5279
5280         * lib/c-strstr.c: Include allocsa.h.
5281         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
5282         * lib/c-strcasestr.c: Include allocsa.h.
5283         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
5284         * lib/strcasestr.c: Include allocsa.h.
5285         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
5286         * lib/mbsstr.c: Include allocsa.h.
5287         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
5288         allocsa/freesa instead of malloc/free.
5289         * lib/mbscasestr.c: Include allocsa.h.
5290         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
5291         allocsa/freesa instead of malloc/free.
5292         * modules/c-strstr (Depends-on): Add allocsa.
5293         * modules/c-strcasestr (Depends-on): Likewise.
5294         * modules/strcasestr (Depends-on): Likewise.
5295         * modules/mbsstr (Depends-on): Likewise.
5296         * modules/mbscasestr (Depends-on): Likewise.
5297
5298 2007-02-11  Bruno Haible  <bruno@clisp.org>
5299
5300         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
5301
5302         * modules/mbsspn-tests: New file.
5303         * tests/test-mbsspn.sh: New file.
5304         * tests/test-mbsspn.c: New file.
5305
5306 2007-02-11  Bruno Haible  <bruno@clisp.org>
5307
5308         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
5309
5310         * modules/mbspbrk-tests: New file.
5311         * tests/test-mbspbrk.sh: New file.
5312         * tests/test-mbspbrk.c: New file.
5313
5314 2007-02-11  Bruno Haible  <bruno@clisp.org>
5315
5316         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
5317         unneeded cast.
5318
5319         * modules/mbscspn-tests: New file.
5320         * tests/test-mbscspn.sh: New file.
5321         * tests/test-mbscspn.c: New file.
5322
5323 2007-02-11  Bruno Haible  <bruno@clisp.org>
5324
5325         * modules/mbscasecmp-tests: New file.
5326         * tests/test-mbscasecmp.sh: New file.
5327         * tests/test-mbscasecmp.c: New file.
5328
5329 2007-02-11  Bruno Haible  <bruno@clisp.org>
5330
5331         Ensure O(n) worst-case complexity of mbscasestr.
5332         * lib/mbscasestr.c: Include stdbool.h.
5333         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
5334         functions.
5335         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
5336         the bookkeeping indicates that it's worth it.
5337         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
5338
5339         * modules/mbscasestr-tests: New file.
5340         * tests/test-mbscasestr1.c: New file.
5341         * tests/test-mbscasestr2.sh: New file.
5342         * tests/test-mbscasestr2.c: New file.
5343         * tests/test-mbscasestr3.sh: New file.
5344         * tests/test-mbscasestr3.c: New file.
5345         * tests/test-mbscasestr4.sh: New file.
5346         * tests/test-mbscasestr4.c: New file.
5347         * m4/locale-tr.m4: New file.
5348
5349 2007-02-11  Bruno Haible  <bruno@clisp.org>
5350
5351         Ensure O(n) worst-case complexity of mbsstr.
5352         * lib/mbsstr.c: Include stdbool.h.
5353         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
5354         functions.
5355         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
5356         bookkeeping indicates that it's worth it.
5357         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
5358
5359         * modules/mbsstr-tests: New file.
5360         * tests/test-mbsstr1.c: New file.
5361         * tests/test-mbsstr2.sh: New file.
5362         * tests/test-mbsstr2.c: New file.
5363         * tests/test-mbsstr3.sh: New file.
5364         * tests/test-mbsstr3.c: New file.
5365         * m4/locale-fr.m4: New file.
5366
5367 2007-02-11  Bruno Haible  <bruno@clisp.org>
5368
5369         * lib/mbsrchr.c (mbsrchr): Fix bug.
5370
5371         * modules/mbsrchr-tests: New file.
5372         * tests/test-mbsrchr.sh: New file.
5373         * tests/test-mbsrchr.c: New file.
5374
5375 2007-02-11  Bruno Haible  <bruno@clisp.org>
5376
5377         * lib/mbschr.c (mbschr): Fix bug.
5378
5379         * modules/mbschr-tests: New file.
5380         * tests/test-mbschr.sh: New file.
5381         * tests/test-mbschr.c: New file.
5382         * m4/locale-zh.m4: New file.
5383
5384 2007-02-11  Bruno Haible  <bruno@clisp.org>
5385
5386         Support for copying multibyte string iterators.
5387         * lib/mbiter.h: Include <string.h>.
5388         (mbiter_multi_copy): New function.
5389         (mbi_copy): New macro.
5390         * lib/mbuiter.h: Include <string.h>.
5391         (mbuiter_multi_copy): New function.
5392         (mbui_copy): New macro.
5393
5394 2007-02-11  Bruno Haible  <bruno@clisp.org>
5395
5396         New module mbslen.
5397         * modules/mbslen: New file.
5398         * lib/mbslen.c: New file.
5399         * lib/string_.h (mbslen): New declaration.
5400         * m4/mbslen.m4: New file.
5401         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
5402         GNULIB_MBSLEN.
5403         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
5404         * MODULES.html.sh (Internationalization functions): Add mbslen.
5405
5406 2007-02-11  Bruno Haible  <bruno@clisp.org>
5407
5408         Ensure O(n) worst-case complexity of strcasestr substitute.
5409         * lib/strcasestr.c: Include stdbool.h.
5410         (knuth_morris_pratt): New function.
5411         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
5412         bookkeeping indicates that it's worth it.
5413         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
5414
5415         * modules/strcasestr-tests: New file.
5416         * tests/test-strcasestr.c: New file.
5417
5418 2007-02-11  Bruno Haible  <bruno@clisp.org>
5419
5420         Ensure O(n) worst-case complexity of c_strcasestr.
5421         * lib/c-strcasestr.c: Include stdbool.h, string.h.
5422         (knuth_morris_pratt): New function.
5423         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
5424         the bookkeeping indicates that it's worth it.
5425         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
5426
5427         * modules/c-strcasestr-tests: New file.
5428         * tests/test-c-strcasestr.c: New file.
5429
5430 2007-02-11  Bruno Haible  <bruno@clisp.org>
5431
5432         Ensure O(n) worst-case complexity of c_strstr.
5433         * lib/c-strstr.c: Include stdbool.h, string.h.
5434         (knuth_morris_pratt): New function.
5435         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
5436         bookkeeping indicates that it's worth it.
5437         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
5438
5439         * lib/c-strstr.c: Complete rewrite for maintainability.
5440
5441         * modules/c-strstr-tests: New file.
5442         * tests/test-c-strstr.c: New file.
5443
5444 2007-02-11  Bruno Haible  <bruno@clisp.org>
5445
5446         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
5447         5.2.1 and earlier, whereby \055 was treated just like the range
5448         delimiter '-'.
5449         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
5450
5451 2007-02-08  Bruno Haible  <bruno@clisp.org>
5452
5453         * modules/regex (Depends-on): Add stdbool.
5454         Reported by Dalibor Topic <robilad@kaffe.org>.
5455
5456 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
5457
5458         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
5459         Prefer returning from main to exiting from it.
5460         Remove unnecessary parens after sizeof.
5461
5462 2007-02-05  Bruno Haible  <bruno@clisp.org>
5463
5464         New module mbssep.
5465         * modules/mbssep: New file.
5466         * lib/mbssep.c: New file.
5467         * lib/string_.h (strsep): Add a conditional link warning.
5468         (mbssep): New declaration.
5469         * m4/mbssep.m4: New file.
5470         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
5471         GNULIB_MBSSEP.
5472         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
5473         * MODULES.html.sh (Internationalization functions): Add mbssep.
5474
5475 2007-02-05  Bruno Haible  <bruno@clisp.org>
5476
5477         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
5478         Optimize search in case of 1 delimiter.
5479
5480 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
5481
5482         * lib/acl.h: Include sys/types.h before sys/acl.h.
5483
5484 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
5485
5486         Merge upstream fix for glibc bugzilla #3957:
5487
5488         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
5489
5490         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
5491         bit for RE_HAT_LISTS_NOT_NEWLINE.
5492         (build_charclass_op): Remove bogus comment.
5493
5494 2007-02-05  Simon Josefsson  <simon@josefsson.org>
5495
5496         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
5497
5498 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
5499
5500         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
5501         * lib/memmem.c [!defined _LIBC]: Include config.h.
5502
5503 2007-02-04  Bruno Haible  <bruno@clisp.org>
5504
5505         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
5506         warning message.
5507
5508 2007-02-04  Bruno Haible  <bruno@clisp.org>
5509
5510         New module mbstok_r.
5511         * modules/mbstok_r: New file.
5512         * lib/mbstok_r.c: New file.
5513         * lib/string_.h (strtok_r): Change argument names to match the
5514         comments. Add a conditional link warning.
5515         (mbstok_r): New declaration.
5516         * m4/mbstok_r.m4: New file.
5517         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
5518         GNULIB_MBSTOK_R.
5519         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
5520         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
5521
5522 2007-02-04  Bruno Haible  <bruno@clisp.org>
5523
5524         New module mbsspn.
5525         * modules/mbsspn: New file.
5526         * lib/mbsspn.c: New file.
5527         * lib/string_.h (strspn): Add a conditional link warning.
5528         (mbsspn): New declaration.
5529         * m4/mbsspn.m4: New file.
5530         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
5531         GNULIB_MBSSPN.
5532         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
5533         * MODULES.html.sh (Internationalization functions): Add mbsspn.
5534
5535 2007-02-04  Bruno Haible  <bruno@clisp.org>
5536
5537         New module mbspbrk.
5538         * modules/mbspbrk: New file.
5539         * lib/mbspbrk.c: New file.
5540         * lib/string_.h (strpbrk): Add a conditional link warning.
5541         (mbspbrk): New declaration.
5542         * m4/mbspbrk.m4: New file.
5543         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
5544         GNULIB_MBSPBRK.
5545         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
5546         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
5547
5548 2007-02-04  Bruno Haible  <bruno@clisp.org>
5549
5550         New module mbscspn.
5551         * modules/mbscspn: New file.
5552         * lib/mbscspn.c: New file.
5553         * lib/string_.h (strcspn): Add a conditional link warning.
5554         (mbscspn): New declaration.
5555         * m4/mbscspn.m4: New file.
5556         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
5557         GNULIB_MBSCSPN.
5558         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
5559         * MODULES.html.sh (Internationalization functions): Add mbscspn.
5560
5561 2007-02-04  Bruno Haible  <bruno@clisp.org>
5562
5563         New module mbscasestr, reduced goal of strcasestr.
5564         * modules/mbscasestr: New file.
5565         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
5566         (mbscasestr): Renamed from strcasestr.
5567         * lib/strcasestr.c: Don't include mbuiter.h.
5568         (strcasestr): Remove support for multibyte locales.
5569         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
5570         Change the conditional link warning.
5571         (mbscasestr): New declaration.
5572         * m4/mbscasestr.m4: New file.
5573         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
5574         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
5575         REPLACE_STRCASESTR.
5576         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
5577         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
5578         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
5579         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
5580         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
5581         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
5582         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
5583         (Depends-on): Remove mbuiter.
5584         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
5585
5586 2007-02-04  Bruno Haible  <bruno@clisp.org>
5587
5588         Simplify handling of strncasecmp.
5589         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
5590         the conditional link warning.
5591         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
5592         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
5593         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
5594         * modules/strcase (configure.ac): Don't invoke
5595         gl_STRING_MODULE_INDICATOR.
5596         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
5597
5598 2007-02-04  Bruno Haible  <bruno@clisp.org>
5599
5600         New module mbscasecmp, reduced goal of strcasecmp.
5601         * modules/mbscasecmp: New file.
5602         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
5603         (mbscasecmp): Renamed from strcasecmp.
5604         * lib/strcasecmp.c: Don't include mbuiter.h.
5605         (strcasecmp): Remove support for multibyte locales.
5606         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
5607         Change the conditional link warning.
5608         (mbscasecmp): New declaration.
5609         * m4/mbscasecmp.m4: New file.
5610         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
5611         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
5612         REPLACE_STRCASECMP.
5613         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
5614         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
5615         GNULIB_MBSCASECMP.
5616         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
5617         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
5618         * modules/strcase (Files): Remove m4/mbrtowc.m4.
5619         (Depends-on): Remove mbuiter.
5620         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
5621
5622 2007-02-04  Bruno Haible  <bruno@clisp.org>
5623
5624         New module mbsstr. Remove module strstr.
5625         * modules/mbsstr: New file.
5626         * modules/strstr: Remove file.
5627         * lib/mbsstr.c: Renamed from lib/strstr.c.
5628         (mbsstr): Renamed from strstr.
5629         * lib/string_.h (strstr): Remove declaration. Change the conditional
5630         link warning.
5631         (mbsstr): New declaration.
5632         * m4/mbsstr.m4: New file.
5633         * m4/strstr.m4: Remove file.
5634         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
5635         REPLACE_STRSTR.
5636         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
5637         Don't initialize GNULIB_STRSTR.
5638         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
5639         substitute GNULIB_STRSTR and REPLACE_STRSTR.
5640         * MODULES.html.sh (Internationalization functions): Add mbsstr.
5641         (Support for systems lacking ANSI C 89): Remove strstr.
5642
5643 2007-02-04  Bruno Haible  <bruno@clisp.org>
5644
5645         New module mbsrchr.
5646         * modules/mbsrchr: New file.
5647         * lib/mbsrchr.c: New file.
5648         * lib/string_.h (strrchr): Add a conditional link warning.
5649         (mbsrchr): New declaration.
5650         * m4/mbsrchr.m4: New file.
5651         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
5652         GNULIB_MBSRCHR.
5653         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
5654         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
5655
5656 2007-02-04  Bruno Haible  <bruno@clisp.org>
5657
5658         New module mbschr.
5659         * modules/mbschr: New file.
5660         * lib/mbschr.c: New file.
5661         * lib/string_.h (strchr): Add a conditional link warning.
5662         (mbschr): New declaration.
5663         * m4/mbschr.m4: New file.
5664         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
5665         GNULIB_MBSCHR.
5666         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
5667         * MODULES.html.sh (Internationalization functions): Add mbschr.
5668
5669 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
5670
5671         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
5672
5673         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
5674
5675 2007-02-04  Bruno Haible  <bruno@clisp.org>
5676
5677         New module description section 'configure.ac-early'.
5678         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
5679         (func_get_autoconf_early_snippet): New function.
5680         (func_import, func_create_testdir): Use it. Remove special cases for
5681         modules 'extensions' and 'lock'.
5682         * modules/extensions (configure.ac-early): Require
5683         gl_USE_SYSTEM_EXTENSIONS.
5684         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
5685
5686 2007-02-04  Bruno Haible  <bruno@clisp.org>
5687
5688         Make use of gcj-4.3's -fsource and -ftarget option.
5689         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
5690         and if so try the options -fsource and -ftarget.
5691         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
5692         source_version, ftarget_option, target_version arguments.
5693         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
5694         (is_envjavac_oldgcj_14_14_usable): Renamed from
5695         is_envjavac_gcj_14_14_usable.
5696         (is_envjavac_oldgcj_14_13_usable): Renamed from
5697         is_envjavac_gcj_14_13_usable.
5698         (is_gcj_present): Update.
5699         (is_gcj_43, is_gcj43_usable): New functions.
5700         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
5701         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
5702         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
5703         try the options -fsource and -ftarget.
5704
5705 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
5706
5707         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
5708         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
5709         larger value.
5710
5711 2007-02-03  Jim Meyering  <jim@meyering.net>
5712
5713         Give tools a better chance to allocate space for very large buffers.
5714         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
5715
5716         Make pwd and readlink work also when run with an unreadable parent dir
5717         on systems with openat support.
5718         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
5719         provided getcwd function, even when we have openat support.
5720         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
5721
5722 2007-02-02  Bruno Haible  <bruno@clisp.org>
5723
5724         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
5725         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
5726         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
5727         portability problems if one of these functions is only used on specific
5728         platforms.
5729         Reported by Paul Eggert.
5730
5731 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
5732
5733         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
5734         is causing more trouble than it's curing.
5735         * lib/regex_internal.h (__mempcpy): Remove.
5736         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
5737         (and make the code a tad smaller to boot).
5738         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
5739
5740 2007-02-02  Jim Meyering  <jim@meyering.net>
5741
5742         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
5743         section, not in the Makefile.am: one.
5744
5745 2007-02-02  Eric Blake  <ebb9@byu.net>
5746
5747         * lib/strchrnul.c: Always include config.h first.
5748
5749         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
5750         gnulib strstr is not necessary here.
5751
5752 2007-02-02  Simon Josefsson  <simon@josefsson.org>
5753
5754         * m4/socklen.m4: Fix typo.
5755
5756 2007-02-02  Eric Blake  <ebb9@byu.net>
5757
5758         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
5759         * modules/netinet_in (Makefile.am): Likewise.
5760
5761 2007-02-01  Bruno Haible  <bruno@clisp.org>
5762
5763         * lib/string_.h (GL_LINK_WARNING): New macro.
5764         (strcasecmp, strstr, strcasestr): If provided by the system,
5765         conditionally define as a macro that leads to a warning instead of to
5766         an error.
5767         (strncasecmp): Conditionally define as a macro that leads to a warning.
5768
5769 2007-02-01  Karl Berry  <karl@gnu.org>
5770
5771         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
5772
5773 2007-02-01  Bruno Haible  <bruno@clisp.org>
5774
5775         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
5776         renamings.
5777
5778 2007-02-01  Eric Blake  <ebb9@byu.net>
5779
5780         * modules/regex (Depends-on): Revert dependence on mempcpy.
5781         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
5782         module's definition of mempcpy.
5783         Reported by Paul Eggert.
5784
5785 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
5786
5787         * lib/string_.h: If the gnulib module XYZ is not present, undefine
5788         the symbol XYZ before redefining it.  This fixes a problem with
5789         programs that don't use XYZ, when compiled on systems that define
5790         XYZ to something else.
5791
5792 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
5793
5794         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
5795         occurs when "mkdir -m foo" creates a setgid directory that is (1)
5796         writeable to group or other and (2) is intended to have a special
5797         mode bit that is set or cleared.  In such a case, the directory
5798         should be neither group- nor other-writeable until the special
5799         mode bits are right.
5800
5801 2007-01-31  Eric Blake  <ebb9@byu.net>
5802
5803         * modules/mountlist (Depends-on): Add strstr.
5804
5805         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
5806         bug.
5807         * modules/string (Makefile.am): Remove redundant replacement.
5808         * modules/regex (Depends-on): Add mempcpy.
5809
5810 2007-01-31  Bruno Haible  <bruno@clisp.org>
5811
5812         New module description field 'Link'.
5813         * gnulib-tool (func_usage): Document --extract-link-directive.
5814         (sed_extract_prog): Recognize 'Link' directive.
5815         (func_get_link_directive): New function.
5816         (func_import): Show summary of link directives.
5817         Handle --extract-link-directive option.
5818         * modules/acl (Link): New section.
5819         * modules/clock-time (Link): New section.
5820         * modules/euidaccess (Link): New section.
5821         * modules/gettext (Link): New section.
5822         * modules/iconv (Link): New section.
5823         * modules/lock (Link): New section.
5824         * modules/nanosleep (Link): New section.
5825         * modules/readline (Link): New section.
5826
5827 2007-01-27  Bruno Haible  <bruno@clisp.org>
5828
5829         Enforce the use of gnulib modules for unportable <string.h> functions.
5830         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
5831         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
5832         (gl_HEADER_STRING_H_BODY): Require it.
5833         * lib/string_.h: If the gnulib module XYZ is not present, redefine
5834         the symbol XYZ to one that gives a link error.
5835         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
5836         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
5837         * modules/mempcpy (configure.ac): Likewise.
5838         * modules/memrchr (configure.ac): Likewise.
5839         * modules/stpcpy (configure.ac): Likewise.
5840         * modules/stpncpy (configure.ac): Likewise.
5841         * modules/strcase (configure.ac): Likewise.
5842         * modules/strcasestr (configure.ac): Likewise.
5843         * modules/strchrnul (configure.ac): Likewise.
5844         * modules/strdup (configure.ac): Likewise.
5845         * modules/strndup (configure.ac): Likewise.
5846         * modules/strnlen (configure.ac): Likewise.
5847         * modules/strpbrk (configure.ac): Likewise.
5848         * modules/strsep (configure.ac): Likewise.
5849         * modules/strstr (configure.ac): Likewise.
5850         * modules/strtok_r (configure.ac): Likewise.
5851
5852 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
5853
5854         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
5855
5856 2007-01-30  Jim Meyering  <jim@meyering.net>
5857
5858         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
5859
5860 2007-01-29  Bruno Haible  <bruno@clisp.org>
5861
5862         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
5863         * lib/execute.c: Likewise.
5864         * lib/pipe.c: Likewise.
5865         * lib/printf-args.h: Likewise.
5866         * lib/printf-args.c: Likewise.
5867         * lib/printf-parse.c: Likewise.
5868         * lib/vasnprintf.c: Likewise.
5869
5870 2007-01-29  Eric Blake  <ebb9@byu.net>
5871
5872         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
5873         declaration.
5874
5875 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
5876
5877         * lib/strptime.h (strptime): Use 'restrict' for args where
5878         POSIX requires this.
5879         * lib/strptime.c (strptime): Likewise.
5880         Change license notice from LGPL to GPL, since gnulib-tool will
5881         change this as needed.
5882         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
5883         defined.
5884         Include "strptime.h" first, to check interface.
5885         Do not #undef _LIBC and _NL_CURRENT.
5886         Do not include <stdlib.h>; no longer needed.
5887         Include "time_r.h" and declare ptime_locale_status
5888         only if _LIBC is not defined.
5889         (__P): Remove unused macro.
5890         (match_string): Bring back glibc version, but use it only if _LIBC
5891         is defined.
5892         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
5893         Remove unnecessary assertion and abort() call.
5894         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
5895         * m4/strptime.m4: Fix serial number comment.
5896         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
5897         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
5898         (Depends-on): Add time_r.
5899
5900 2007-01-29  Bruno Haible  <bruno@clisp.org>
5901
5902         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
5903         strptime.
5904         * modules/strptime (Depends-on): Add stdbool.
5905         * lib/strptime.h: Include <time.h> always. Add comments.
5906
5907 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
5908
5909         * modules/strptime: New file.
5910         * lib/strptime.h: New file.
5911         * lib/strptime.c: New file.
5912         * m4/strptime.m4: New file.
5913
5914 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
5915
5916         * MODULES.html.sh: New module mpsort.
5917         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
5918
5919         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
5920         a circularity problem with HP-UX ia64 reported by Bob Proulx in
5921         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
5922         All uses changed.
5923         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
5924         All uses changed.
5925         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
5926         to _Restrict_.
5927         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
5928         the parameter matches the prototype.
5929
5930 2007-01-28  Jim Meyering  <jim@meyering.net>
5931
5932         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
5933         sys/time.h here, reverting that part of the previous patch:
5934         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
5935
5936 2007-01-28  Bruno Haible  <bruno@clisp.org>
5937
5938         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
5939         value of $(SYS_TIME_H).
5940         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
5941         remove it conditionally, too. [added by Jim Meyering]
5942         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
5943         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
5944         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
5945         GETTIMEOFDAY_REPLACEMENT to 1.
5946
5947 2007-01-28  Bruno Haible  <bruno@clisp.org>
5948
5949         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
5950         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
5951         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
5952         Set UNISTD_H instead of UNISTD_H2.
5953         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
5954
5955 2007-01-28  Bruno Haible  <bruno@clisp.org>
5956
5957         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
5958         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
5959
5960 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5961
5962         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
5963         (func_create_testdir): Ensure C locale for `grep' and `tr'
5964         character ranges.
5965         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
5966         ACLOCAL_AMFLAGS parsing state machine.
5967
5968 2007-01-27  Bruno Haible  <bruno@clisp.org>
5969
5970         * modules/unistr/base: Update.
5971
5972 2007-01-27  Bruno Haible  <bruno@clisp.org>
5973
5974         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
5975         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
5976         * modules/unistr/u32-mbtouc-unsafe: Renamed from
5977         modules/unistr/u32-mbtouc.
5978         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
5979         * lib/unistr.h: Update.
5980         * lib/linebreak.c: Update.
5981         * modules/unistr/u32-mbtouc: Renamed from
5982         modules/unistr/u32-mbtouc-safe.
5983         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
5984         * lib/unistr.h: Update.
5985         * lib/unistr/u32-to-u8.c: Update.
5986         * lib/unistr/u32-to-u16.c: Update.
5987
5988 2007-01-27  Bruno Haible  <bruno@clisp.org>
5989
5990         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
5991         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
5992         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
5993         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
5994         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
5995         * modules/unistr/u16-mbtouc-unsafe: Renamed from
5996         modules/unistr/u16-mbtouc.
5997         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
5998         * lib/unistr.h: Update.
5999         * lib/linebreak.c: Update.
6000         * modules/linebreak: Update.
6001         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
6002         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
6003         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
6004         * modules/unistr/u16-mbtouc: Renamed from
6005         modules/unistr/u16-mbtouc-safe.
6006         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
6007         * lib/unistr.h: Update.
6008         * lib/unistr/u16-to-u8.c: Update.
6009         * modules/unistr/u16-to-u8: Update.
6010         * lib/unistr/u16-to-u32.c: Update.
6011         * modules/unistr/u16-to-u32: Update.
6012
6013 2007-01-27  Bruno Haible  <bruno@clisp.org>
6014
6015         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
6016         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
6017         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
6018         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
6019         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
6020         * modules/unistr/u8-mbtouc-unsafe: Renamed from
6021         modules/unistr/u8-mbtouc.
6022         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
6023         * lib/unistr.h: Update.
6024         * lib/striconveh.c: Update.
6025         * modules/striconveh: Update.
6026         * lib/linebreak.c: Update.
6027         * modules/linebreak: Update.
6028         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
6029         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
6030         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
6031         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
6032         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
6033         * lib/unistr.h: Update.
6034         * lib/striconveh.c: Update.
6035         * modules/striconveh: Update.
6036         * lib/unistr/u8-to-u16.c: Update.
6037         * modules/unistr/u8-to-u16: Update.
6038         * lib/unistr/u8-to-u32.c: Update.
6039         * modules/unistr/u8-to-u32: Update.
6040
6041 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6042
6043         Sync from Libtool.
6044         * lib/argz.c: Do not include strings.h nor memory.h, include
6045         string.h unconditionally.  Patch by Simon Josefsson.
6046
6047 2007-01-27  Bruno Haible  <bruno@clisp.org>
6048
6049         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
6050         from gl_HEADER_STRING_H_BODY.
6051         (gl_HEADER_STRING_H_BODY): Require it.
6052         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
6053         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
6054         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
6055         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
6056         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
6057         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
6058         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
6059         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
6060         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
6061         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
6062         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
6063         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
6064         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
6065         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
6066         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
6067
6068 2007-01-27  Bruno Haible  <bruno@clisp.org>
6069
6070         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
6071         check_PROGRAMS into noinst_PROGRAMS.
6072         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
6073         check_PROGRAMS in this case.
6074         (func_import): Set for_test to false.
6075         (func_create_testdir): Set for_test to true.
6076
6077 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
6078             Bruno Haible  <bruno@clisp.org>
6079
6080         * modules/strcasestr (Files): Remove lib/strcasestr.h.
6081         (Depends-on): Add string.
6082         (Includes): Use <string.h> instead of strcasestr.h.
6083         * modules/string (Makefile.am): Also substitute the value of
6084         REPLACE_STRCASESTR.
6085         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
6086         assume strcasestr is declared in <string.h> not <strings.h>. Also
6087         set REPLACE_STRCASESTR.
6088         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
6089         REPLACE_STRCASESTR.
6090         * lib/strcasestr.h: Remove file.
6091         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
6092         * lib/string_.h (strcasestr): New declaration.
6093
6094 2007-01-27  Bruno Haible  <bruno@clisp.org>
6095
6096         * lib/string_.h: Use 'extern'.
6097
6098 2007-01-27  Jim Meyering  <jim@meyering.net>
6099
6100         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
6101         of set-but-not-used local, "q".
6102
6103         * lib/mempcpy.c: Include <config.h> before <string.h>.
6104         This fixes a compilation error on HP-UX, due to the system's
6105         "restrict"-using mempcpy prototype.
6106
6107 2007-01-26  Bruno Haible  <bruno@clisp.org>
6108
6109         Small optimization.
6110         * lib/javacomp.c: Include c-strstr.h.
6111          (is_envjavac_gcj): Use c_strstr instead of strstr.
6112         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
6113
6114 2007-01-26  Bruno Haible  <bruno@clisp.org>
6115
6116         * MODULES.html.sh (Unicode string functions): Add the new modules.
6117
6118         * modules/uniconv/u32-strconv-to-locale: New file.
6119         * lib/uniconv/u32-strconv-to-locale.c: New file.
6120
6121         * modules/uniconv/u16-strconv-to-locale: New file.
6122         * lib/uniconv/u16-strconv-to-locale.c: New file.
6123
6124         * modules/uniconv/u8-strconv-to-locale: New file.
6125         * lib/uniconv/u8-strconv-to-locale.c: New file.
6126
6127         * modules/uniconv/u32-strconv-from-locale: New file.
6128         * lib/uniconv/u32-strconv-from-locale.c: New file.
6129
6130         * modules/uniconv/u16-strconv-from-locale: New file.
6131         * lib/uniconv/u16-strconv-from-locale.c: New file.
6132
6133         * modules/uniconv/u8-strconv-from-locale: New file.
6134         * lib/uniconv/u8-strconv-from-locale.c: New file.
6135
6136         * modules/uniconv/u32-strconv-to-enc: New file.
6137         * lib/uniconv/u32-strconv-to-enc.c: New file.
6138         * modules/uniconv/u32-strconv-to-enc-tests: New file.
6139         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
6140
6141         * modules/uniconv/u16-strconv-to-enc: New file.
6142         * lib/uniconv/u16-strconv-to-enc.c: New file.
6143         * lib/uniconv/u-strconv-to-enc.h: New file.
6144         * modules/uniconv/u16-strconv-to-enc-tests: New file.
6145         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
6146
6147         * modules/uniconv/u8-strconv-to-enc: New file.
6148         * lib/uniconv/u8-strconv-to-enc.c: New file.
6149         * modules/uniconv/u8-strconv-to-enc-tests: New file.
6150         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
6151
6152         * modules/uniconv/u32-strconv-from-enc: New file.
6153         * lib/uniconv/u32-strconv-from-enc.c: New file.
6154         * modules/uniconv/u32-strconv-from-enc-tests: New file.
6155         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
6156
6157         * modules/uniconv/u16-strconv-from-enc: New file.
6158         * lib/uniconv/u16-strconv-from-enc.c: New file.
6159         * modules/uniconv/u16-strconv-from-enc-tests: New file.
6160         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
6161
6162         * modules/uniconv/u8-strconv-from-enc: New file.
6163         * lib/uniconv/u8-strconv-from-enc.c: New file.
6164         * lib/uniconv/u-strconv-from-enc.h: New file.
6165         * modules/uniconv/u8-strconv-from-enc-tests: New file.
6166         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
6167
6168         * modules/uniconv/u32-conv-from-enc: New file.
6169         * lib/uniconv/u32-conv-from-enc.c: New file.
6170         * modules/uniconv/u32-conv-from-enc-tests: New file.
6171         * tests/uniconv/test-u32-conv-from-enc.c: New file.
6172
6173         * modules/uniconv/u16-conv-from-enc: New file.
6174         * lib/uniconv/u16-conv-from-enc.c: New file.
6175         * lib/uniconv/u-conv-from-enc.h: New file.
6176         * modules/uniconv/u16-conv-from-enc-tests: New file.
6177         * tests/uniconv/test-u16-conv-from-enc.c: New file.
6178
6179         * modules/uniconv/u8-conv-from-enc: New file.
6180         * lib/uniconv/u8-conv-from-enc.c: New file.
6181         * modules/uniconv/u8-conv-from-enc-tests: New file.
6182         * tests/uniconv/test-u8-conv-from-enc.c: New file.
6183
6184         * modules/uniconv/base: New file.
6185         * lib/uniconv.h: New file.
6186
6187 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
6188
6189         * doc/gnulib-tool.texi (Initial import): Update to match current
6190         behavior with strdup module.
6191         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
6192         * lib/memmem.h: Remove; all uses removed.  This is now done
6193         by <string.h>.
6194         * lib/mempcpy.h: Likewise.
6195         * lib/memrchr.h: Likewise.
6196         * lib/stpcpy.h: Likewise.
6197         * lib/stpncpy.h: Likewise.
6198         * lib/strcase.h: Likewise.
6199         * lib/strchrnul.h: Likewise.
6200         * lib/strdup.h: Likewise.
6201         * lib/strndup.h: Likewise.
6202         * lib/strnlen.h: Likewise.
6203         * lib/strpbrk.h: Likewise.
6204         * lib/strsep.h: Likewise.
6205         * lib/strstr.h: Likewise.
6206         * lib/strtok_r.h: Likewise.
6207         * lib/string_.h: New file.
6208         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
6209         Rely on <string.h> instead.
6210         * lib/canon-host.c: Likewise.
6211         * lib/chdir-long.c: Likewise.
6212         * lib/concatpath.c: Likewise.
6213         * lib/exclude.c: Likewise.
6214         * lib/fchdir.c: Likewise.
6215         * lib/getaddrinfo.c: Likewise.
6216         * lib/getcwd.c: Likewise.
6217         * lib/getsubopt.c: Likewise.
6218         * lib/glob.c: Likewise.
6219         * lib/hard-locale.c: Likewise.
6220         * lib/iconvme.c: Likewise.
6221         * lib/javacomp.c: Likewise.
6222         * lib/mempcpy.c: Likewise.
6223         * lib/memrchr.c: Likewise.
6224         * lib/regex_internal.h: Likewise.
6225         * lib/stpncpy.c: Likewise.
6226         * lib/strcasecmp.c: Likewise.
6227         * lib/strchrnul.c: Likewise.
6228         * lib/strdup.c: Likewise.
6229         * lib/striconv.c: Likewise.
6230         * lib/striconveh.c: Likewise.
6231         * lib/striconveha.c: Likewise.
6232         * lib/strncasecmp.c: Likewise.
6233         * lib/strndup.c: Likewise.
6234         * lib/strnlen.c: Likewise.
6235         * lib/strsep.c: Likewise.
6236         * lib/strstr.c: Likewise.
6237         * lib/strtok_r.c: Likewise.
6238         * lib/userspec.c: Likewise.
6239         * lib/w32spawn.h: Likewise.
6240         * lib/xstrndup.c: Likewise.
6241         * lib/mountlist.c (strstr): Remove decl.
6242         * m4/string_h.m4: New file.
6243         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
6244         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
6245         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
6246         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
6247         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
6248         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
6249         Set REPLACE_STRCASECMP if necessary.
6250         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
6251         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
6252         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
6253         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
6254         HAVE_DECL_STRDUP if necessary.
6255         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
6256         since gl_FUNC_STRNDUP does that now.
6257         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
6258         Check for decl here...
6259         (gl_PREREQ_STRNLEN): ... not here.
6260         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
6261         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
6262         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
6263         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
6264         necessary.
6265         * modules/string: New file.
6266         * modules/memmem (Files): Remove special-purpose include file.
6267         (Depends-on): Add string.
6268         (Include): Include <string.h>, not the removed file.
6269         * modules/mempcpy: Likewise.
6270         * modules/memrchr: Likewise.
6271         * modules/stpcpy: Likewise.
6272         * modules/stpncpy: Likewise.
6273         * modules/strcase: Likewise.
6274         * modules/strchrnul: Likewise.
6275         * modules/strdup: Likewise.
6276         * modules/strndup: Likewise.
6277         * modules/strnlen: Likewise.
6278         * modules/strpbrk: Likewise.
6279         * modules/strsep: Likewise.
6280         * modules/strstr: Likewise.
6281         * modules/strtok_r: Likewise.
6282         * tests/test-dirname.c: Don't include "strdup.h", since
6283         <string.h> now suffices.
6284         * tests/test-memmem.c: Don't include "memmem.h", since
6285         <string.h> now suffices.
6286
6287 2007-01-25  Bruno Haible  <bruno@clisp.org>
6288
6289         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
6290         *resultp is 0.
6291
6292         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
6293         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
6294         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
6295         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
6296
6297         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
6298         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
6299         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
6300         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
6301         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
6302         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
6303
6304 2007-01-24  Bruno Haible  <bruno@clisp.org>
6305
6306         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
6307         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
6308         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
6309         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
6310         gl_FUNC_FTS_CORE.
6311         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
6312         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
6313         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
6314         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
6315         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
6316         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
6317         gl_FUNC_FCHOWNAT.
6318         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
6319         gl_FUNC_STRFTIME.
6320         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
6321         Reported by Ralf Wildenhues.
6322
6323 2007-01-24  Bruno Haible  <bruno@clisp.org>
6324
6325         Drop AC_REQUIRE calls that are redundant with the module dependencies.
6326         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
6327         gl_GETADDRINFO.
6328         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
6329         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
6330         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
6331
6332 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
6333
6334         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
6335         Don't use 'exit'; just return from 'main'.
6336         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
6337
6338         * lib/fnmatch_.h: Readjust white space and comments to match
6339         glibc, to avoid spurious diffs.
6340
6341 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
6342
6343         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
6344         2004-12-01 change by Jakub Jelinek, since this code won't compile
6345         if !LIBC.  Problem reported by Bob Proulx.
6346
6347 2007-01-23  Bruno Haible  <bruno@clisp.org>
6348
6349         * lib/striconveh.c: Include c-strcaseeq.h.
6350         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
6351         * modules/striconveh (Depends-on): Add c-strcaseeq.
6352
6353 2007-01-23  Bruno Haible  <bruno@clisp.org>
6354
6355         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
6356
6357         * modules/c-strcaseeq: New file.
6358         * lib/c-strcaseeq.h: New file.
6359
6360         * modules/streq: New file.
6361         * lib/streq.h: New file.
6362
6363 2007-01-23  Bruno Haible  <bruno@clisp.org>
6364
6365         * modules/striconveha-tests: New file.
6366         * tests/test-striconveha.c: New file.
6367
6368         * lib/striconveha.h: Include <stdbool.h>.
6369         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
6370         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
6371         (mem_iconveha_notranslit): Renamed from mem_iconveha.
6372         (mem_iconveha): New function.
6373         (str_iconveha_notranslit): Renamed from str_iconveha.
6374         (str_iconveha): New function.
6375         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
6376         c-strcase.
6377
6378 2007-01-23  Bruno Haible  <bruno@clisp.org>
6379
6380         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
6381         encodings without forgiving before trying any encoding with handler.
6382         (str_iconveha): Try all encodings without forgiving before trying any
6383         encoding with handler.
6384
6385 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
6386
6387         Import the following changes from libc.
6388
6389         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
6390
6391         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
6392
6393         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
6394
6395         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
6396         normal_bracket label.
6397
6398         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
6399
6400         [BZ #361]
6401         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
6402         to normal_bracket after fetching the next character.
6403
6404 2007-01-22  Bruno Haible  <bruno@clisp.org>
6405
6406         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
6407         argument.
6408         * lib/striconveh.c (iconv_carefully_1): New function.
6409         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
6410         argument.
6411         (str_cd_iconveh): Update.
6412         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
6413         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
6414         * tests/test-striconveh.c (MAGIC): New macro.
6415         (new_offsets): New function.
6416         (main): Test call with and without offsets.
6417
6418 2007-01-22  Bruno Haible  <bruno@clisp.org>
6419
6420         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
6421         * modules/sys_select (Makefile.am): Likewise.
6422         * modules/sys_socket (Makefile.am): Likewise.
6423         * modules/sys_time (Makefile.am): Likewise.
6424
6425 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
6426
6427         * modules/gettimeofday (License): Change from GPL to LGPL, since
6428         gettimeofday is a library function.
6429
6430 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
6431
6432         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
6433
6434 2007-01-21  Bruno Haible  <bruno@clisp.org>
6435
6436         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
6437
6438 2007-01-21  Bruno Haible  <bruno@clisp.org>
6439
6440         * modules/striconveha: New file.
6441         * lib/striconveha.h: New file.
6442         * lib/striconveha.c: New file.
6443         * MODULES.html.sh (Internationalization functions): Add striconveha.
6444         * lib/striconv.c (str_iconv): Optimize the case of an empty input
6445         string.
6446         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
6447
6448 2007-01-21  Bruno Haible  <bruno@clisp.org>
6449
6450         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
6451         * lib/striconveh.c (str_iconveh): Likewise.
6452
6453 2007-01-21  Bruno Haible  <bruno@clisp.org>
6454
6455         * lib/striconveh.h (mem_iconveh): New declaration.
6456         * lib/striconveh.c (mem_iconveh): New function.
6457         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
6458
6459 2007-01-21  Bruno Haible  <bruno@clisp.org>
6460
6461         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
6462
6463         * lib/striconveh.h (mem_cd_iconveh): Change specification.
6464         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
6465         original result buffer.
6466         (str_cd_iconveh): Update.
6467         * tests/test-striconveh.c (main): Update.
6468
6469         * lib/striconv.h (mem_cd_iconv): Change specification.
6470         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
6471         result buffer.
6472         (str_cd_iconv): Update.
6473         * tests/test-striconv.c (main): Update.
6474
6475 2007-01-21  Bruno Haible  <bruno@clisp.org>
6476
6477         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
6478
6479 2007-01-20  Jim Meyering  <jim@meyering.net>
6480
6481         * lib/userspec.c (parse_with_separator): If a user or group string
6482         starts with "+", skip the corresponding name-to-ID look-up, since
6483         such a look-up must fail: user and group names may not include "+".
6484
6485 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
6486
6487         * lib/poll.c: Include sys/time.h and time.h unconditionally,
6488         since we now assume the sys_time module.
6489         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
6490         check for sys/time.h; no longer needed.
6491         * modules/poll (Depends-on): Depend on sys_time.
6492
6493 2007-01-18  Bruno Haible  <bruno@clisp.org>
6494
6495         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
6496         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
6497
6498         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
6499         gettimeofday.
6500
6501         * tests/test-gettimeofday.c: Include <time.h>.
6502         (dummy): Remove variable.
6503
6504         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
6505         gl_HEADER_SYS_TIME_H.
6506         (gl_HEADER_SYS_TIME_H): New macro.
6507
6508         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
6509         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
6510         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
6511         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
6512         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
6513         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
6514         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
6515         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
6516         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
6517         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
6518         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
6519
6520         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
6521         last change; it caused a compilation error when cross-compiling to
6522         Cygwin.
6523
6524 2007-01-18  Jim Meyering  <jim@meyering.net>
6525
6526         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
6527         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
6528         than the race-prone "test -d sys || mkdir sys".
6529         (configure.ac): Use AC_PROG_MKDIR_P.
6530         * modules/sys_select: Likewise.
6531         * modules/sys_socket: Likewise.
6532         * modules/sys_time: Likewise.
6533
6534 2007-01-18  Eric Blake  <ebb9@byu.net>
6535
6536         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
6537         replace gettimeofday.
6538         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
6539         name, to avoid infinite recursion.
6540
6541 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
6542
6543         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
6544         module sys_time.
6545         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
6546         assume timespec.h defines struct timeval.
6547         * lib/settime.c: Likewise.
6548         * lib/utimens.c: Likewise.
6549         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
6550         since we now assume the gettimeofday module.
6551         * lib/tempname.c (__gen_tempname): Likewise.
6552         * lib/gettimeofday.h: Remove.
6553         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
6554         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
6555         Include <time.h>, for 'time()'.
6556         (localtime_buffer_addr): Also use this workaround if
6557         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
6558         to simplify the uses.  All uses changed.
6559         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
6560         that #undef is inside {}, and 'const' follows type name consistently.
6561         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
6562         (gettimeofday): Do not use the maximum possible value for
6563         tv->tv_usec, since that might break usages other than ls.c.
6564         Instead, we'll leave ls.c alone.  This undoes today's patch
6565         by Bruno.  Add a compile-time warning for 1s-clock resolution;
6566         we've never observed the problem but might as well keep the
6567         canary.
6568         * lib/nanosleep.c: Include timespec.h first, for interface check.
6569         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
6570         now assume the sys_time module.
6571         * lib/tempname.c: Likewise.
6572         * lib/timespec.h: Likewise.
6573         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
6574         needed.
6575         * lib/strftime.c: Likewise.
6576         * lib/timespec.h: Likewise.
6577         * lib/posixtm.c: Include posixtm.h first, for interface check.
6578         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
6579         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
6580         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
6581         * lib/sys_time_.h: New file.
6582         * lib/timespec.h (struct timespec): Use long int, not long.
6583         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
6584         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
6585         Remove obsolescent call to AC_HEADER_TIME.
6586         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
6587         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
6588         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
6589         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
6590         Likewise.
6591         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
6592         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
6593         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
6594         into the sys_time module.  Check for gettimeofday just once.
6595         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
6596         for gettimeofday signature to just check the signature.  Merely
6597         compile it, since linking doesn't test signature.  Improve test for
6598         whether gettimeofday.o is actually needed.
6599         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
6600         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
6601         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
6602         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
6603         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
6604         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
6605         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
6606         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
6607         than worrying about sys/time.h.
6608         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
6609         Don't bother worrying about TIME_WITH_SYS_TIME.
6610         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
6611         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
6612         * m4/sys_time_h.m4: New file.
6613         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
6614         Don't include sys/time.h.  Return from main rather than exiting.
6615         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
6616         all uses changed.
6617         * modules/gethrxtime (Depends-on): Add sys_time.
6618         * modules/gettime (Depends-on): Likewise.
6619         * modules/gettimeofday (Depends-on): Likewise.
6620         * modules/nanosleep (Depends-on): Likewise.
6621         * modules/settime (Depends-on): Likewise.
6622         * modules/tempname (Depends-on): Likewise.
6623         * modules/utimens (Depends-on): Likewise.
6624         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
6625         (Include:) Change back to <sys/time.h>.
6626         (Maintainer:) Add self.
6627         * modules/sys_time: New file.
6628         * modules/tempname (Depends-on): Add gettimeofday.
6629         * tests/test-gettimeofday.c: Include <sys/time.h>
6630         rather than gettimeofday.h.
6631
6632 2007-01-17  Bruno Haible  <bruno@clisp.org>
6633
6634         * gnulib-tool (func_get_license): Revert last patch. Instead, let
6635         the license default to GPL.
6636         (func_create_testdir): Don't complain if a module is LGPL and its
6637         tests module depends on GPLed modules.
6638
6639 2007-01-17  Bruno Haible  <bruno@clisp.org>
6640
6641         * lib/gettimeofday.c (gettimeofday): Add code for the case
6642         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
6643         maximum possible value for tv->tv_usec, rather than the minimum one.
6644
6645 2005-10-08  Martin Lambers  <marlam@marlam.de>
6646 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
6647 2007-01-16  Bruno Haible  <bruno@clisp.org>
6648
6649         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
6650         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
6651         gl_FUNC_GETTIMEOFDAY.
6652         (Include): Add gettimeofday.h.
6653         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
6654         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
6655         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
6656         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
6657         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
6658         * lib/gettimeofday.h: New file.
6659         * lib/gettimeofday.c: Include <sys/timeb.h>.
6660         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
6661         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
6662         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
6663         fall back on time().
6664
6665         * tests/test-gettimeofday.c: New file.
6666         * modules/gettimeofday-tests: New file.
6667
6668 2007-01-16  Eric Blake  <ebb9@byu.net>
6669
6670         * modules/fnmatch (Depends-on): Depend on wchar.
6671         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
6672         * m4/fnmatch.m4: Likewise.
6673         * modules/mbchar (Makefile.am): Assume <wchar.h>.
6674         * m4/mbchar.m4: Likewise.
6675         * modules/mbswidth (Depends-on): Depend on wchar.
6676         * lib/mbswidth.c: Assume <wchar.h>.
6677         * m4/mbswidth.m4: Likewise.
6678         * modules/quotearg (Depends-on): Depend on wchar.
6679         * lib/quotearg.c: Assume <wchar.h>.
6680         * m4/quotearg.m4: Likewise.
6681         * modules/regex (Depends-on): Depend on wchar.
6682         * lib/regex_internal.h: Assume <wchar.h>.
6683         * m4/regex.m4: Likewise.
6684         * modules/stdint (Depends-on): Depend on wchar.
6685         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
6686         * m4/stdint.m4: Likewise.
6687         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
6688         * modules/strftime (Depends-on): Depend on wchar.
6689         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
6690         * modules/strtol (Depends-on): Depend on wchar.
6691         * lib/strtol.c: Assume <wchar.h>.
6692         * modules/wcwidth (Depends-on): Depend on wchar.
6693         * lib/wcwidth.h: Assume <wchar.h>.
6694         * m4/wcwidth.m4: Likewise.
6695
6696 2007-01-16  Bruno Haible  <bruno@clisp.org>
6697
6698         * modules/csharpexec-script: New, created from...
6699         * modules/csharpexec: ... this.
6700
6701 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
6702
6703         * modules/javaexec-script: New, created from...
6704         * modules/javaexec: ... this.
6705
6706 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
6707
6708         * modules/poll (Dependencies): Add sys_select.
6709
6710 2007-01-15  Jim Meyering  <jim@meyering.net>
6711
6712         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
6713         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
6714         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
6715         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
6716
6717 2007-01-15  Bruno Haible  <bruno@clisp.org>
6718
6719         * modules/striconveh: New file.
6720         * lib/striconveh.h: New file.
6721         * lib/striconveh.c: New file.
6722         * MODULES.html.sh (Internationalization functions): Add striconveh.
6723
6724         * modules/striconveh-tests: New file.
6725         * tests/test-striconveh.c: New file.
6726
6727 2007-01-15  Bruno Haible  <bruno@clisp.org>
6728
6729         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
6730         not from GNU libiconv or GNU libc.
6731
6732 2007-01-15  Bruno Haible  <bruno@clisp.org>
6733
6734         * doc/gnulib-intro.texi (Copyright): Explain the different license
6735         terms for module descriptions, autoconf macros, tests, documentation.
6736
6737 2007-01-14  Bruno Haible  <bruno@clisp.org>
6738
6739         * modules/striconv-tests: New file.
6740         * tests/test-striconv.c: New file.
6741
6742 2007-01-14  Bruno Haible  <bruno@clisp.org>
6743
6744         * modules/iconv-tests: New file.
6745         * tests/test-iconv.c: New file.
6746
6747 2007-01-14  Bruno Haible  <bruno@clisp.org>
6748
6749         * gnulib-tool (func_get_license): For test modules, use the license of
6750         the main module.
6751
6752 2007-01-14  Bruno Haible  <bruno@clisp.org>
6753
6754         * modules/iconv (Include): Clarify that <iconv.h> can only be included
6755         if iconv is found to exist.
6756
6757 2007-01-14  Bruno Haible  <bruno@clisp.org>
6758
6759         * modules/c-ctype-tests: New file.
6760         * tests/test-c-ctype.c: New file.
6761
6762 2007-01-14  Bruno Haible  <bruno@clisp.org>
6763
6764         * modules/binary-io-tests: New file.
6765         * tests/test-binary-io.sh: New file.
6766         * tests/test-binary-io.c: New file.
6767
6768 2007-01-14  Bruno Haible  <bruno@clisp.org>
6769
6770         * modules/array-oset-tests: New file.
6771         * tests/test-array_oset.c: New file.
6772
6773 2007-01-14  Bruno Haible  <bruno@clisp.org>
6774
6775         * modules/array-list-tests: New file.
6776         * tests/test-array_list.c: New file.
6777
6778 2007-01-14  Bruno Haible  <bruno@clisp.org>
6779
6780         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
6781         and make.
6782         Reported by Simon Josefsson in
6783         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
6784
6785 2007-01-14  Bruno Haible  <bruno@clisp.org>
6786
6787         * modules/allocsa-tests: New file.
6788         * tests/test-allocsa.c: New file.
6789
6790 2007-01-14  Bruno Haible  <bruno@clisp.org>
6791
6792         * modules/fchdir (Depends-on): Add absolute-header.
6793         * modules/unistd (Depends-on): Likewise.
6794
6795 2006-12-30  Bruno Haible  <bruno@clisp.org>
6796
6797         * modules/fchdir: New file.
6798         * modules/unistd (Files): Add lib/unistd_.h.
6799         (Makefile.am): Generate unistd.h from unistd_.h.
6800         * lib/fchdir.c: New file.
6801         * lib/dirent_.h: New file.
6802         * lib/unistd_.h: New file.
6803         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
6804         * m4/fchdir.m4: New file.
6805         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
6806         (gl_HEADER_UNISTD): Invoke it.
6807         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
6808         function.
6809         * lib/backupfile.c (opendir, closedir): Undefine.
6810         * lib/chown.c (open, close): Undefine.
6811         * lib/clean-temp.c (open, close): Undefine.
6812         * lib/copy-file.c (open, close): Undefine.
6813         * lib/execute.c (open, close): Undefine.
6814         * lib/fsusage.c (open, close): Undefine.
6815         * lib/gc-gnulib.c (open, close): Undefine.
6816         * lib/getcwd.c (opendir, closedir): Undefine.
6817         * lib/glob.c (opendir, closedir): Undefine.
6818         * lib/javacomp.c (open, close): Undefine.
6819         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
6820         * lib/openat-proc.c (open, close): Undefine.
6821         * lib/pagealign_alloc.c (open, close): Undefine.
6822         * lib/pipe.c (open, close): Undefine.
6823         * lib/progreloc.c (open, close): Undefine.
6824         * lib/savedir.c (opendir, closedir): Undefine.
6825         * lib/utime.c (open, close): Undefine.
6826         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
6827
6828 2007-01-10  Bruno Haible  <bruno@clisp.org>
6829
6830         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
6831
6832 2007-01-12  Eric Blake  <ebb9@byu.net>
6833
6834         Provide a robust <wchar.h>.  Further simplifications are now
6835         possible in other modules, but not included here.
6836         * modules/wchar: New module.
6837         * m4/wchar.m4: New file.
6838         * lib/wchar_.h: Likewise.
6839         * modules/mbchar (Depends-on): Depend on wchar, as the first use
6840         of the new module.
6841         * MODULES.html.sh (Extended multibyte and wide character utilities):
6842         New section.
6843
6844 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
6845
6846         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
6847         to a reasonable default for memory allocation.
6848         (xreadlink): Don't allocate a huge buffer, to work around a buggy
6849         file system that reports garbage st_size values for symlinks.
6850         Problem reported by Liyang Hu.
6851
6852 2007-01-11  Simon Josefsson  <simon@josefsson.org>
6853
6854         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
6855         Emacs .#* auto-save files).
6856
6857 2007-01-11  Bruno Haible  <bruno@clisp.org>
6858
6859         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
6860         directory.
6861
6862 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
6863
6864         Use @...@ consistently in lib/wctype_.h.
6865         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
6866         on it being set to 1 or 0.
6867         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
6868         go back to AC_SUBSTing it.
6869         * modules/wctype (Makefile.am): Undo previous change.
6870
6871 2007-01-10  Eric Blake  <ebb9@byu.net>
6872
6873         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
6874         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
6875         * modules/wctype (Makefile.am): Likewise.
6876         Reported by Chris McGuire.
6877
6878 2007-01-10  Jim Meyering  <jim@meyering.net>
6879
6880         fts.c: a small readability/maintainability improvement
6881         * lib/fts.c (fts_read): Make this code slightly more readable and
6882         maintainable by hoisting the "sp->fts_cur = p" assignments to
6883         immediately follow the statements that set P.  Derived from
6884         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
6885
6886 2007-01-10  Eric Blake  <ebb9@byu.net>
6887
6888         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
6889         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
6890         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
6891         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
6892         Reported by Chris McGuire.
6893
6894 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6895
6896         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
6897         in sed script.
6898
6899 2007-01-09  Bruno Haible  <bruno@clisp.org>
6900
6901         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
6902         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
6903         variables.
6904         (func_module): Use them.
6905
6906 2007-01-09  Bruno Haible  <bruno@clisp.org>
6907
6908         * modules/unistr/base: New file.
6909         * lib/unistr.h: New file.
6910
6911         * modules/unistr/u8-to-u16: New file.
6912         * lib/unistr/u8-to-u16.c: New file.
6913
6914         * modules/unistr/u8-to-u32: New file.
6915         * lib/unistr/u8-to-u32.c: New file.
6916
6917         * modules/unistr/u16-to-u8: New file.
6918         * lib/unistr/u16-to-u8.c: New file.
6919
6920         * modules/unistr/u16-to-u32: New file.
6921         * lib/unistr/u16-to-u32.c: New file.
6922
6923         * modules/unistr/u32-to-u8: New file.
6924         * lib/unistr/u32-to-u8.c: New file.
6925
6926         * modules/unistr/u32-to-u16: New file.
6927         * lib/unistr/u32-to-u16.c: New file.
6928
6929         * modules/unistr/u8-check: New file.
6930         * modules/unistr/u16-check: New file.
6931         * modules/unistr/u32-check: New file.
6932         * lib/unistr/u8-check.c: New file.
6933         * lib/unistr/u16-check.c: New file.
6934         * lib/unistr/u32-check.c: New file.
6935
6936         * modules/unistr/u8-chr: New file.
6937         * modules/unistr/u16-chr: New file.
6938         * modules/unistr/u32-chr: New file.
6939         * lib/unistr/u8-chr.c: New file.
6940         * lib/unistr/u16-chr.c: New file.
6941         * lib/unistr/u32-chr.c: New file.
6942
6943         * modules/unistr/u8-cmp: New file.
6944         * modules/unistr/u16-cmp: New file.
6945         * modules/unistr/u32-cmp: New file.
6946         * lib/unistr/u8-cmp.c: New file.
6947         * lib/unistr/u16-cmp.c: New file.
6948         * lib/unistr/u32-cmp.c: New file.
6949
6950         * modules/unistr/u8-cpy: New file.
6951         * modules/unistr/u16-cpy: New file.
6952         * modules/unistr/u32-cpy: New file.
6953         * lib/unistr/u8-cpy.c: New file.
6954         * lib/unistr/u16-cpy.c: New file.
6955         * lib/unistr/u32-cpy.c: New file.
6956         * lib/unistr/u-cpy.h: New file.
6957
6958         * modules/unistr/u8-cpy-alloc: New file.
6959         * modules/unistr/u16-cpy-alloc: New file.
6960         * modules/unistr/u32-cpy-alloc: New file.
6961         * lib/unistr/u8-cpy-alloc.c: New file.
6962         * lib/unistr/u16-cpy-alloc.c: New file.
6963         * lib/unistr/u32-cpy-alloc.c: New file.
6964         * lib/unistr/u-cpy-alloc.h: New file.
6965
6966         * modules/unistr/u8-endswith: New file.
6967         * modules/unistr/u16-endswith: New file.
6968         * modules/unistr/u32-endswith: New file.
6969         * lib/unistr/u8-endswith.c: New file.
6970         * lib/unistr/u16-endswith.c: New file.
6971         * lib/unistr/u32-endswith.c: New file.
6972         * lib/unistr/u-endswith.h: New file.
6973
6974         * modules/unistr/u8-mblen: New file.
6975         * modules/unistr/u16-mblen: New file.
6976         * modules/unistr/u32-mblen: New file.
6977         * lib/unistr/u8-mblen.c: New file.
6978         * lib/unistr/u16-mblen.c: New file.
6979         * lib/unistr/u32-mblen.c: New file.
6980
6981         * modules/unistr/u8-mbtouc: New file.
6982         * modules/unistr/u16-mbtouc: New file.
6983         * modules/unistr/u32-mbtouc: New file.
6984         * lib/unistr/u8-mbtouc.c: New file.
6985         * lib/unistr/u16-mbtouc.c: New file.
6986         * lib/unistr/u32-mbtouc.c: New file.
6987
6988         * modules/unistr/u8-mbtouc-safe: New file.
6989         * modules/unistr/u16-mbtouc-safe: New file.
6990         * modules/unistr/u32-mbtouc-safe: New file.
6991         * lib/unistr/u8-mbtouc-safe.c: New file.
6992         * lib/unistr/u16-mbtouc-safe.c: New file.
6993         * lib/unistr/u32-mbtouc-safe.c: New file.
6994
6995         * modules/unistr/u8-move: New file.
6996         * modules/unistr/u16-move: New file.
6997         * modules/unistr/u32-move: New file.
6998         * lib/unistr/u8-move.c: New file.
6999         * lib/unistr/u16-move.c: New file.
7000         * lib/unistr/u32-move.c: New file.
7001         * lib/unistr/u-move.h: New file.
7002
7003         * modules/unistr/u8-next: New file.
7004         * modules/unistr/u16-next: New file.
7005         * modules/unistr/u32-next: New file.
7006         * lib/unistr/u8-next.c: New file.
7007         * lib/unistr/u16-next.c: New file.
7008         * lib/unistr/u32-next.c: New file.
7009
7010         * modules/unistr/u8-prev: New file.
7011         * modules/unistr/u16-prev: New file.
7012         * modules/unistr/u32-prev: New file.
7013         * lib/unistr/u8-prev.c: New file.
7014         * lib/unistr/u16-prev.c: New file.
7015         * lib/unistr/u32-prev.c: New file.
7016
7017         * modules/unistr/u8-set: New file.
7018         * modules/unistr/u16-set: New file.
7019         * modules/unistr/u32-set: New file.
7020         * lib/unistr/u8-set.c: New file.
7021         * lib/unistr/u16-set.c: New file.
7022         * lib/unistr/u32-set.c: New file.
7023         * lib/unistr/u-set.h: New file.
7024
7025         * modules/unistr/u8-startswith: New file.
7026         * modules/unistr/u16-startswith: New file.
7027         * modules/unistr/u32-startswith: New file.
7028         * lib/unistr/u8-startswith.c: New file.
7029         * lib/unistr/u16-startswith.c: New file.
7030         * lib/unistr/u32-startswith.c: New file.
7031         * lib/unistr/u-startswith.h: New file.
7032
7033         * modules/unistr/u8-stpcpy: New file.
7034         * modules/unistr/u16-stpcpy: New file.
7035         * modules/unistr/u32-stpcpy: New file.
7036         * lib/unistr/u8-stpcpy.c: New file.
7037         * lib/unistr/u16-stpcpy.c: New file.
7038         * lib/unistr/u32-stpcpy.c: New file.
7039         * lib/unistr/u-stpcpy.h: New file.
7040
7041         * modules/unistr/u8-stpncpy: New file.
7042         * modules/unistr/u16-stpncpy: New file.
7043         * modules/unistr/u32-stpncpy: New file.
7044         * lib/unistr/u8-stpncpy.c: New file.
7045         * lib/unistr/u16-stpncpy.c: New file.
7046         * lib/unistr/u32-stpncpy.c: New file.
7047         * lib/unistr/u-stpncpy.h: New file.
7048
7049         * modules/unistr/u8-strcat: New file.
7050         * modules/unistr/u16-strcat: New file.
7051         * modules/unistr/u32-strcat: New file.
7052         * lib/unistr/u8-strcat.c: New file.
7053         * lib/unistr/u16-strcat.c: New file.
7054         * lib/unistr/u32-strcat.c: New file.
7055         * lib/unistr/u-strcat.h: New file.
7056
7057         * modules/unistr/u8-strchr: New file.
7058         * modules/unistr/u16-strchr: New file.
7059         * modules/unistr/u32-strchr: New file.
7060         * lib/unistr/u8-strchr.c: New file.
7061         * lib/unistr/u16-strchr.c: New file.
7062         * lib/unistr/u32-strchr.c: New file.
7063
7064         * modules/unistr/u8-strcmp: New file.
7065         * modules/unistr/u16-strcmp: New file.
7066         * modules/unistr/u32-strcmp: New file.
7067         * lib/unistr/u8-strcmp.c: New file.
7068         * lib/unistr/u16-strcmp.c: New file.
7069         * lib/unistr/u32-strcmp.c: New file.
7070
7071         * modules/unistr/u8-strcpy: New file.
7072         * modules/unistr/u16-strcpy: New file.
7073         * modules/unistr/u32-strcpy: New file.
7074         * lib/unistr/u8-strcpy.c: New file.
7075         * lib/unistr/u16-strcpy.c: New file.
7076         * lib/unistr/u32-strcpy.c: New file.
7077         * lib/unistr/u-strcpy.h: New file.
7078
7079         * modules/unistr/u8-strcspn: New file.
7080         * modules/unistr/u16-strcspn: New file.
7081         * modules/unistr/u32-strcspn: New file.
7082         * lib/unistr/u8-strcspn.c: New file.
7083         * lib/unistr/u16-strcspn.c: New file.
7084         * lib/unistr/u32-strcspn.c: New file.
7085         * lib/unistr/u-strcspn.h: New file.
7086
7087         * modules/unistr/u8-strdup: New file.
7088         * modules/unistr/u16-strdup: New file.
7089         * modules/unistr/u32-strdup: New file.
7090         * lib/unistr/u8-strdup.c: New file.
7091         * lib/unistr/u16-strdup.c: New file.
7092         * lib/unistr/u32-strdup.c: New file.
7093         * lib/unistr/u-strdup.h: New file.
7094
7095         * modules/unistr/u8-strlen: New file.
7096         * modules/unistr/u16-strlen: New file.
7097         * modules/unistr/u32-strlen: New file.
7098         * lib/unistr/u8-strlen.c: New file.
7099         * lib/unistr/u16-strlen.c: New file.
7100         * lib/unistr/u32-strlen.c: New file.
7101         * lib/unistr/u-strlen.h: New file.
7102
7103         * modules/unistr/u8-strmblen: New file.
7104         * modules/unistr/u16-strmblen: New file.
7105         * modules/unistr/u32-strmblen: New file.
7106         * lib/unistr/u8-strmblen.c: New file.
7107         * lib/unistr/u16-strmblen.c: New file.
7108         * lib/unistr/u32-strmblen.c: New file.
7109
7110         * modules/unistr/u8-strmbtouc: New file.
7111         * modules/unistr/u16-strmbtouc: New file.
7112         * modules/unistr/u32-strmbtouc: New file.
7113         * lib/unistr/u8-strmbtouc.c: New file.
7114         * lib/unistr/u16-strmbtouc.c: New file.
7115         * lib/unistr/u32-strmbtouc.c: New file.
7116
7117         * modules/unistr/u8-strncat: New file.
7118         * modules/unistr/u16-strncat: New file.
7119         * modules/unistr/u32-strncat: New file.
7120         * lib/unistr/u8-strncat.c: New file.
7121         * lib/unistr/u16-strncat.c: New file.
7122         * lib/unistr/u32-strncat.c: New file.
7123         * lib/unistr/u-strncat.h: New file.
7124
7125         * modules/unistr/u8-strncmp: New file.
7126         * modules/unistr/u16-strncmp: New file.
7127         * modules/unistr/u32-strncmp: New file.
7128         * lib/unistr/u8-strncmp.c: New file.
7129         * lib/unistr/u16-strncmp.c: New file.
7130         * lib/unistr/u32-strncmp.c: New file.
7131
7132         * modules/unistr/u8-strncpy: New file.
7133         * modules/unistr/u16-strncpy: New file.
7134         * modules/unistr/u32-strncpy: New file.
7135         * lib/unistr/u8-strncpy.c: New file.
7136         * lib/unistr/u16-strncpy.c: New file.
7137         * lib/unistr/u32-strncpy.c: New file.
7138         * lib/unistr/u-strncpy.h: New file.
7139
7140         * modules/unistr/u8-strnlen: New file.
7141         * modules/unistr/u16-strnlen: New file.
7142         * modules/unistr/u32-strnlen: New file.
7143         * lib/unistr/u8-strnlen.c: New file.
7144         * lib/unistr/u16-strnlen.c: New file.
7145         * lib/unistr/u32-strnlen.c: New file.
7146         * lib/unistr/u-strnlen.h: New file.
7147
7148         * modules/unistr/u8-strpbrk: New file.
7149         * modules/unistr/u16-strpbrk: New file.
7150         * modules/unistr/u32-strpbrk: New file.
7151         * lib/unistr/u8-strpbrk.c: New file.
7152         * lib/unistr/u16-strpbrk.c: New file.
7153         * lib/unistr/u32-strpbrk.c: New file.
7154         * lib/unistr/u-strpbrk.h: New file.
7155
7156         * modules/unistr/u8-strrchr: New file.
7157         * modules/unistr/u16-strrchr: New file.
7158         * modules/unistr/u32-strrchr: New file.
7159         * lib/unistr/u8-strrchr.c: New file.
7160         * lib/unistr/u16-strrchr.c: New file.
7161         * lib/unistr/u32-strrchr.c: New file.
7162
7163         * modules/unistr/u8-strspn: New file.
7164         * modules/unistr/u16-strspn: New file.
7165         * modules/unistr/u32-strspn: New file.
7166         * lib/unistr/u8-strspn.c: New file.
7167         * lib/unistr/u16-strspn.c: New file.
7168         * lib/unistr/u32-strspn.c: New file.
7169         * lib/unistr/u-strspn.h: New file.
7170
7171         * modules/unistr/u8-strstr: New file.
7172         * modules/unistr/u16-strstr: New file.
7173         * modules/unistr/u32-strstr: New file.
7174         * lib/unistr/u8-strstr.c: New file.
7175         * lib/unistr/u16-strstr.c: New file.
7176         * lib/unistr/u32-strstr.c: New file.
7177         * lib/unistr/u-strstr.h: New file.
7178
7179         * modules/unistr/u8-strtok: New file.
7180         * modules/unistr/u16-strtok: New file.
7181         * modules/unistr/u32-strtok: New file.
7182         * lib/unistr/u8-strtok.c: New file.
7183         * lib/unistr/u16-strtok.c: New file.
7184         * lib/unistr/u32-strtok.c: New file.
7185         * lib/unistr/u-strtok.h: New file.
7186
7187         * modules/unistr/u8-uctomb: New file.
7188         * modules/unistr/u16-uctomb: New file.
7189         * modules/unistr/u32-uctomb: New file.
7190         * lib/unistr/u8-uctomb.c: New file.
7191         * lib/unistr/u16-uctomb.c: New file.
7192         * lib/unistr/u32-uctomb.c: New file.
7193
7194         * MODULES.html.sh (Unicode string functions): Add the new modules.
7195
7196 2007-01-08  Bruno Haible  <bruno@clisp.org>
7197
7198         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
7199         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
7200         subdirectories.
7201
7202 2007-01-08  Karl Berry  <karl@gnu.org>
7203
7204         * doc/error.texi: mention that main() fns must set program_name
7205         when progname is used.
7206
7207 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
7208
7209         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
7210         WCTYPE_H is empty, for the benefit of builds from non-distclean
7211         directories.  Problem reported by Eric Blake in
7212         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
7213
7214 2007-01-08  Bruno Haible  <bruno@clisp.org>
7215
7216         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
7217         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
7218         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
7219         PROVIDE_CANONICALIZE_FILENAME_MODE.
7220         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
7221
7222 2007-01-08  Bruno Haible  <bruno@clisp.org>
7223
7224         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
7225         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
7226         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
7227         * lib/fts.c: Likewise.
7228         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
7229
7230 2006-12-25  Bruno Haible  <bruno@clisp.org>
7231
7232         * modules/utf8-ucs4-safe: New file.
7233         * lib/utf8-ucs4-safe.h: New file.
7234         * lib/unistr/utf8-ucs4-safe.c: New file.
7235
7236         * modules/utf16-ucs4-safe: New file.
7237         * lib/utf16-ucs4-safe.h: New file.
7238         * lib/unistr/utf16-ucs4-safe.c: New file.
7239
7240         * MODULES.html.sh (Unicode string functions): Add the new modules.
7241
7242 2007-01-08  Bruno Haible  <bruno@clisp.org>
7243
7244         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
7245         (Depends-on): Add unitypes.
7246         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
7247         (u8_mbtouc_aux): Move out to separate file.
7248         (u8_mbtouc): Use ucs4_t, uint8_t types.
7249         * lib/unistr/utf8-ucs4.c: New file.
7250
7251         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
7252         (Depends-on): Add unitypes.
7253         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
7254         (u16_mbtouc_aux): Move out to separate file.
7255         (u16_mbtouc): Use ucs4_t, uint16_t types.
7256         * lib/unistr/utf16-ucs4.c: New file.
7257
7258         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
7259         (Depends-on): Add unitypes.
7260         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
7261         (u8_uctomb_aux): Move out to separate file.
7262         (u8_uctomb): Use ucs4_t, uint8_t types.
7263         * lib/unistr/ucs4-utf8.c: New file.
7264
7265         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
7266         (Depends-on): Add unitypes.
7267         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
7268         (u16_uctomb_aux): Move out to separate file.
7269         (u16_uctomb): Use ucs4_t, uint16_t types.
7270         * lib/unistr/ucs4-utf16.c: New file.
7271
7272 2006-12-25  Bruno Haible  <bruno@clisp.org>
7273
7274         * modules/unitypes: New file.
7275         * lib/unitypes.h: New file.
7276         * MODULES.html.sh (func_all_modules): New section "Unicode string
7277         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
7278         this section. Add unitypes.
7279
7280 2007-01-08  Bruno Haible  <bruno@clisp.org>
7281
7282         Avoid variable names that conflict with those from libtool.
7283         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
7284         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
7285         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
7286         library_names_spec to acl_library_names_spec, hardcode_* to
7287         acl_hardcode_*.
7288         Reported by Ralf Wildenhues.
7289
7290 2007-01-08  Bruno Haible  <bruno@clisp.org>
7291
7292         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
7293         definition.
7294         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
7295         definition.
7296         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
7297         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
7298         definition.
7299         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
7300         definition.
7301         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
7302         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
7303         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
7304         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
7305         definition.
7306         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
7307         definition.
7308         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
7309         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
7310         GC_USE_<algorithm>.
7311         * lib/gc-libgcrypt.c: Likewise.
7312         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
7313         * modules/gc-arctwo (configure.ac): Likewise.
7314         * modules/gc-des (configure.ac): Likewise.
7315         * modules/gc-hmac-md5 (configure.ac): Likewise.
7316         * modules/gc-hmac-sha1 (configure.ac): Likewise.
7317         * modules/gc-md2 (configure.ac): Likewise.
7318         * modules/gc-md4 (configure.ac): Likewise.
7319         * modules/gc-md5 (configure.ac): Likewise.
7320         * modules/gc-random (configure.ac): Likewise.
7321         * modules/gc-rijndael (configure.ac): Likewise.
7322         * modules/gc-sha1 (configure.ac): Likewise.
7323
7324 2007-01-08  Bruno Haible  <bruno@clisp.org>
7325
7326         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
7327         macro definition.
7328         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
7329         definition.
7330         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
7331         definition.
7332         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
7333         * modules/fcntl-safer (configure.ac): Likewise.
7334         * modules/fopen-safer (configure.ac): Likewise.
7335         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
7336         GNULIB_FWRITEERROR macro definition.
7337
7338 2007-01-08  Bruno Haible  <bruno@clisp.org>
7339
7340         * m4/gnulib-common.m4: New file.
7341         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
7342         (func_get_filelist): Add m4/gnulib-common.m4.
7343
7344 2007-01-08  Bruno Haible  <bruno@clisp.org>
7345
7346         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
7347         command.
7348
7349 2007-01-08  Jim Meyering  <jim@meyering.net>
7350
7351         Use a more robust test for a "can't happen" condition.
7352         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
7353         narrowed the st_size value.  Presuming the "can't happen" condition
7354         is true, that narrowing could conceivably convert an invalid st_size
7355         value into a valid one.  Instead, use a change based on Matthew
7356         Woehlke's original patch.
7357
7358         Slight readability improvement: use an assert-like macro
7359         in place of literal "abort ()" uses.
7360         * lib/fts.c (fts_assert): Define.
7361         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
7362         Use this macro instead of a bare 'abort'.
7363
7364 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
7365
7366         Don't worry about using IRIX 5.3's wctype.h broken definitions;
7367         simply work around them.
7368         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
7369         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
7370         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
7371         declaring.
7372         Don't bother to define as macros, since the standard doesn't require it.
7373         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
7374         longer worry about IRIX 5.3.
7375         (HAVE_WCTYPE_CTMP_BUG): Remove.
7376
7377 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
7378
7379         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
7380         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
7381         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
7382         Problems reported by Georg Schwarz for IRIX 5.3.
7383
7384         * gnulib-tool (autoconf_minversion): Take the maximum version number
7385         found, not the minimum.  Problem reported by James Youngman.
7386
7387 2007-01-03  Karl Berry  <karl@gnu.org>
7388
7389         * doc/error.texi: new file, explaining interaction with progname.
7390         * doc/gnulib.texi: include it.  Update copyright.
7391
7392 2007-01-03  Simon Josefsson  <simon@josefsson.org>
7393
7394         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
7395         AC_CANONICAL_HOST, to improve autobuild outputs.
7396
7397 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
7398             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
7399
7400         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
7401         sockets, server sockets, and other file descriptors.  Count errors
7402         to compute the return value.  Reorder the code a bit to be easier
7403         to follow.  Don't set event bits that were not requested (except
7404         POLLERR and POLLHUP).
7405
7406 2007-01-01  Bruno Haible  <bruno@clisp.org>
7407
7408         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
7409
7410 2007-01-03  Jim Meyering  <jim@meyering.net>
7411
7412         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
7413
7414 2007-01-02  Bruno Haible  <bruno@clisp.org>
7415
7416         * modules/settime (Include): Require timespec.h.
7417         * modules/nanosleep (Include): Likewise.
7418
7419 2007-01-01  Bruno Haible  <bruno@clisp.org>
7420
7421         * gnulib-tool (func_emit_copyright_notice): Bump year.
7422         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
7423
7424 2007-01-01  Bruno Haible  <bruno@clisp.org>
7425
7426         Improve support for OpenBSD.
7427         * build-aux/config.rpath (libname_spec): Export.
7428         (library_names_spec): New variable. Export.
7429         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
7430         library_names_spec from the config.rpath output. Locate shared library
7431         through the name pattern in library_names_spec.
7432
7433 2007-01-01  Eric Blake  <ebb9@byu.net>
7434
7435         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
7436
7437 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
7438
7439         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
7440         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
7441         assume the C locale, and avoid an "eval" that could cause trouble.
7442         Problem with SORT reported by Bob Proulx.
7443
7444         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
7445         Define.  Trivial patch from Henning Nielsen Lund, originally
7446         sent to bug-grep@gnu.org today.
7447
7448 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
7449
7450         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
7451         struct stat.  Problem reported by Henning Nielsen Lund.
7452         * lib/acl.c: Include acl.h first, to check interface.  Don't
7453         bother to include sys/types.h and sys/stat.h again.
7454
7455 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
7456
7457         Import the following change from libc; problem reported by
7458         Sven Verdoolaege.
7459
7460         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
7461
7462         [BZ #1373]
7463         * lib/argp.h: Remove __NTH for __argp_usage inline function.
7464
7465 2006-12-28  Jim Meyering  <jim@meyering.net>
7466
7467         * build-aux/announce-gen: Do not assume that the package
7468         builds any of tar.gz, tar.bz2, and .xdelta files.
7469         Suggestion from Simon Josefsson.
7470
7471 2006-12-28  Simon Josefsson  <simon@josefsson.org>
7472
7473         * modules/announce-gen: New file.
7474
7475 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
7476
7477         * lib/mbchar.h: Just include <wctype.h>; the wctype module
7478         handles its gotchas now.
7479         * lib/mbswidth.c: Likewise.
7480         * lib/wcwidth.h: Likewise.
7481         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
7482         and iswcntrl; the wctype module does this stuff now.
7483         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
7484         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
7485         * modules/mbchar (Depends-on): Add wctype.
7486         * modules/mbswidth (Depends-on): Likewise.
7487         * modules/wcwidth (Depends-on): Likewise.
7488
7489 2006-12-27  Eric Blake  <ebb9@byu.net>
7490
7491         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
7492         module uses more than what <wctype.h> is required to provide.
7493
7494 2006-12-26  Eric Blake  <ebb9@byu.net>
7495
7496         * gnulib-tool (sed_extract_prog): Avoid space-tab.
7497
7498 2006-12-26  Eric Blake  <ebb9@byu.net>
7499
7500         * modules/absolute-header: New module.
7501         * modules/fcntl (Depends-on): Depend on it.
7502         * modules/inttypes (Depends-on): Likewise.
7503         * modules/stdint (Depends-on): Likewise.
7504         * modules/sys_stat (Depends-on): Likewise.
7505         * modules/wctype (Depends-on): Likewise.
7506         * MODULES.html.sh (Support for building libraries and
7507         executables): Document it.
7508
7509 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
7510
7511         * gnulib-tool (SED): Remove, undoing previous change.
7512         The problem was that it broke coreutils on Solaris, because
7513         "sed --posix" leaked into a makefile.
7514         (sed): New alias, if 'alias' and GNU sed.
7515
7516 2006-12-24  Jim Meyering  <jim@meyering.net>
7517
7518         Work around an fchownat bug in glibc-2.4:
7519         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
7520         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
7521         in spite of the -P option.
7522         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
7523         New macros.
7524         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
7525         * modules/openat (Files): Add lib/fchownat.c.
7526         * lib/openat.c (fchownat): Don't define here.  Move to...
7527         * lib/fchownat.c: ...this new file.
7528
7529 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
7530
7531         Fix bug reported by Bruno Haible in
7532         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
7533         where quotearg.c didn't compile on Mac OS X 10.2 because it
7534         lacks <wchar.h> and wint_t.
7535         * lib/wctype_.h (__wctype_wint_t): New type.
7536         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
7537         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
7538         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
7539         Arg is now of type __wctype_wint_t, not wint_t.
7540         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
7541         substitute HAVE_WINT_T.
7542         * modules/wctype (Files): Add m4/wint_t.m4.
7543         (wctype.h): Substitute HAVE_WINT_T.
7544
7545 2006-12-23  Bruno Haible  <bruno@clisp.org>
7546
7547         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
7548
7549 2006-12-23  Bruno Haible  <bruno@clisp.org>
7550
7551         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
7552         S_ISLNK.
7553         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
7554         mingw.
7555
7556 2006-12-22  Bruno Haible  <bruno@clisp.org>
7557
7558         * lib/copy-file.c: Include acl.h.
7559         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
7560         Close the file descriptors only after being done with copy_acl.
7561         * modules/copy-file (Depends-on): Add acl.
7562
7563 2006-12-22  Bruno Haible  <bruno@clisp.org>
7564
7565         * gnulib-tool (SED): New variable.
7566         Use $SED instead of sed everywhere.
7567
7568 2006-12-22  Bruno Haible  <bruno@clisp.org>
7569
7570         * modules/no-c++: New file.
7571         * m4/no-c++.m4: New file.
7572         * MODULES.html.sh (Support for building libraries and executables):
7573         Add no-c++.
7574
7575 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
7576
7577         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
7578         Include <limits.h>, and use its INT_MAX to rewrite the
7579         j loop so that it does not overflow 'int'.  Problem reported by
7580         Ralf Wildenhues in
7581         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
7582         Play it safe by shifting left by 1 rather than multiplying by 2,
7583         as GCC is less likely to optimize this away when the value
7584         is signed (when it assumes overflow leads to undefined behavior).
7585         Also, don't assume time_t uses two's complement.
7586
7587 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
7588
7589         * MODULES.html.sh: New module wctype.
7590         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
7591         * lib/fnmatch.c: Don't bother to include <wchar.h> before
7592         <wctype.h>, since the new wctype module should fix this.
7593         * lib/quotearg.c: Include <wctype.h> unconditionally, since
7594         the wctype module should arrange for it.
7595         * lib/regex_internal.h: Likewise.
7596         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
7597         since the wctype module should handle this now.
7598         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
7599         * modules/fnmatch (Depends-on): Add wctype.
7600         * modules/quotearg (Depends-on): Likewise.
7601         * modules/regex (Depends-on): Likewise.
7602
7603 2006-12-19  Bruno Haible  <bruno@clisp.org>
7604
7605         * lib/strdup.h [C++]: Wrap definitions in extern "C".
7606         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
7607
7608 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7609
7610         * modules/savewd (Depends-on): Fix dependency on fcntl.
7611
7612 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
7613
7614         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
7615         conforms to C99, rather than relying on the user's environment
7616         setting of STDINT_H.
7617
7618 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
7619         and Eric Blake  <ebb9@byu.net>
7620
7621         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
7622         This is more consistent with the other defines here.
7623         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
7624         Port to z/OS.  Problem reported by Paul Gilmartin.
7625         Change local vars to use gl_ prefix rather than ac_.
7626         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
7627         with other defines.
7628         * modules/double-slash-root: New module.
7629         * modules/dirname (Files): Remove m4/double-slash-root.m4.
7630         (Depends-on): Add double-slash-root.
7631         * MODULES.html.sh (File system functions): Mention new module.
7632
7633 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
7634
7635         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
7636         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
7637         This is for the benefit of gzip, which doesn't do i18n.
7638
7639 2006-12-12  Jim Meyering  <jim@meyering.net>
7640
7641         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
7642         Reported by Andreas Schwab <schwab@suse.de>.
7643
7644 2006-12-12  Bruno Haible  <bruno@clisp.org>
7645
7646         Merge these changes.
7647         2006-09-05  Bruno Haible  <bruno@clisp.org>
7648         * lib/iconvme.c (iconv_string): No need to save and restore errno when
7649         iconv_alloc succeeded.
7650         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
7651         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
7652         test for " && dest " at the end - dest is always != NULL there. Call
7653         iconv with 4xNULL arguments initially, to reset the state. Call iconv
7654         with 2xNULL arguments, also to flush the state storage. Handle the
7655         IRIX iconv behaviour. Realloc the final result, to throw away unused
7656         memory.
7657
7658 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
7659
7660         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
7661         and fchmodat unconditionally, since glibc 2.4 has them.
7662         Problem reported by Arkadiusz Miskiewicz.
7663
7664 2006-12-10  Bruno Haible  <bruno@clisp.org>
7665
7666         * gnulib-tool (func_import): Show the include files only for those
7667         modules that are copied and specified.
7668         Reported by Karl Berry.
7669
7670 2006-12-08  Jim Meyering  <jim@meyering.net>
7671
7672         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
7673         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
7674
7675         * build-aux/announce-gen: Add two new options, both optional:
7676         --bootstrap-tools=TOOL_LIST
7677               a comma-separated list of tools, e.g.,
7678               autoconf,automake,bison,gnulib
7679         --gnulib-snapshot-date=DATE
7680               if gnulib is in the bootstrap tool list,
7681               then report this as the snapshot date.
7682               If not specified, use the current date/time.
7683               If you specify a date here, be sure it's UTC.
7684
7685 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7686
7687         * tests/test-argp-2.sh: Fix test to match actual output.
7688         (func_compare): Fix sed script to be portable.
7689
7690 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
7691
7692         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
7693         workaround for this case.  It is not autoconfigured now; offhand
7694         it's hard to see how to autoconfigure it.
7695
7696 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
7697
7698         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
7699         a directory that is about to be chowned.  Such a directory's
7700         initial file permissions should permit the owner only and this
7701         should not be changed until after the chown, since the group and
7702         other bits would be incorrect if they granted permission before
7703         the chown.
7704
7705         Fix porting problem for iswctype reported by Georg Schwarz in:
7706         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
7707         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
7708         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
7709         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
7710         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
7711
7712 2006-12-03  Jim Meyering  <jim@meyering.net>
7713
7714         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
7715         p->fts_statp may not yet be defined.
7716         (fts_read): Instead, set it in the caller, once p->fts_statp is
7717         sure to be defined, and corresponds to a top-level directory.
7718         This bug made du -x fail.  Here's the coreutils test case:
7719         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
7720         Reported by Mike Frysinger.
7721
7722 2006-12-01  Jim Meyering  <jim@meyering.net>
7723
7724         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
7725         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
7726         Reported by Simon Josefsson.
7727
7728 2006-11-30  Jim Meyering  <jim@meyering.net>
7729
7730         * m4/warning.m4: Use the all-permissive copyright notice
7731         recommended by RMS (rather than LGPL).
7732         * m4/vararrays.m4: Likewise.
7733         * m4/flexmember.m4: Likewise.
7734
7735 2006-11-29  Bruno Haible  <bruno@clisp.org>
7736
7737         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
7738         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
7739         using +=.
7740         Reported by Simon Josefsson <simon@josefsson.org>.
7741
7742 2006-11-28  James Youngman <jay@gnu.org>
7743
7744         * README: Advise users that they might find the bug-gnulib@gnu.org
7745         and autotools-announce@gnu.org mailing lists useful.
7746
7747 2006-11-28  Bruno Haible  <bruno@clisp.org>
7748
7749         * m4/ptrdiff_max.m4: Remove file.
7750
7751 2006-11-21  Bruno Haible  <bruno@clisp.org>
7752
7753         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
7754         _AC_COMPUTE_INT.
7755         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
7756         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
7757         _AC_COMPUTE_INT.
7758         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
7759         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
7760         _AC_COMPUTE_INT.
7761         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
7762
7763 2006-11-28  Jim Meyering  <jim@meyering.net>
7764
7765         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
7766         warning from "gcc -Wshadow" about shadowing the builtin.
7767
7768 2006-11-27  Bruno Haible  <bruno@clisp.org>
7769
7770         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
7771         _AC_COMPUTE_INT.
7772         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
7773
7774 2006-11-27  Bruno Haible  <bruno@clisp.org>
7775             Paul Eggert  <eggert@cs.ucla.edu>
7776
7777         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
7778
7779 2006-11-26  Bruno Haible  <bruno@clisp.org>
7780
7781         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
7782         noinst_LTLIBRARIES.
7783
7784 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
7785             Bruno Haible  <bruno@clisp.org>
7786
7787         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
7788         if compiling with "gcc -ansi".
7789
7790 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
7791
7792         Fix some incompatibilities with gcc -ansi -pedantic.
7793         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
7794         if compiling pedantically with GCC, unless it's C99 or later.
7795         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
7796         it mishandles gcc -ansi -pedantic as well.
7797         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
7798         if gcc -pedantic.
7799         * lib/regexec.c (check_node_accept_bytes): Don't use auto
7800         initializers for struct if -pedantic, unless it's C99 or later.
7801
7802 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
7803
7804         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
7805         Don't close an fd more than once. Identical atimes indicate
7806         success, not failure.
7807
7808 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
7809
7810         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
7811
7812 2006-11-23  Jim Meyering  <jim@meyering.net>
7813
7814         * build-aux/announce-gen: New file.  From coreutils.
7815
7816 2006-11-22  Jim Meyering  <jim@meyering.net>
7817
7818         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
7819         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
7820         (fts_read): Use a temporary to narrow the overused st_size member
7821         before using it in a switch statement.  Reported by Matthew Woehlke.
7822
7823         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
7824         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
7825
7826 2006-11-20  Bruno Haible  <bruno@clisp.org>
7827
7828         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
7829         changequote instead of pairs of brackets.
7830         Reported by Andreas Schwab <schwab@suse.de>.
7831
7832 2006-11-21  Jim Meyering  <jim@meyering.net>
7833
7834         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
7835         so as to remain compatible with older compilers.
7836         Patch from Michael Deutschmann.
7837
7838 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
7839
7840         * MODULES.html.sh (File system functions): Add openat.
7841
7842         * lib/openat.h (rpl_fstatat): New macro, if
7843         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
7844         (fstatat): Define to rpl_fstatat under the same conditions,
7845         unless COMPILING_FSTATAT.
7846         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
7847         seems to have the bug.
7848         * lib/fstatat.c: New file.
7849         * modules/openat (Files): Add it.
7850
7851 2006-11-20  Bruno Haible  <bruno@clisp.org>
7852
7853         * Makefile: New file.
7854
7855 2006-11-20  Jim Meyering  <jim@meyering.net>
7856
7857         The beginnings of syntax-related checks for gnulib.
7858         * lib/Makefile: New file.
7859         * lib/t-idcache: New script.  Ensure that the two halves of
7860         idcache.c stay in sync.
7861
7862         * lib/idcache.c: Adjust comments in user- and group- portions to
7863         be more accurate, and to be consistent with one another.
7864
7865 2006-11-20  Jim Meyering  <jim@meyering.net>
7866
7867         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
7868         continue using the flexible array member (thus, this module performs
7869         half as many malloc calls), with the addition that...
7870         (getgroup, getuser): Consistently record a non-match via an empty
7871         "name" string, and map an empty string match to a NULL return value.
7872         * modules/idcache (Depends-on): Re-add flexmember.
7873
7874         * lib/idcache.c (getuser): Remove all uses of the register keyword.
7875         (getuidbyname, getgroup, getgidbyname): Likewise.
7876
7877         Use cleaner syntax: NULL rather than 0.
7878         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
7879
7880 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
7881
7882         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
7883         It mishandled the case where the group was missing.
7884         Problem reported by Greg Schafer.
7885         * modules/idcache: Likewise.
7886
7887 2006-11-18  Jim Meyering  <jim@meyering.net>
7888
7889         * check-module (%exempt_header): Add exception for some
7890         conditionally-included headers.
7891
7892         * modules/i-ring (Depends-on): Add verify.
7893         (License): Change to LGPL.
7894
7895 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
7896
7897         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
7898         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
7899         and inttostr.h.  Use snprintf rather than uinttostr, so that
7900         LGPLed code doesn't depend on GPLed.
7901
7902 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
7903
7904         * modules/inline (License): Change from GPL to LGPL.
7905
7906 2006-11-17  Jim Meyering  <jim@meyering.net>
7907
7908         * modules/d-type (License): Switch to LGPL.
7909
7910 2006-11-15  Bruno Haible  <bruno@clisp.org>
7911
7912         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
7913
7914 2006-11-15  Eric Blake  <ebb9@byu.net>
7915
7916         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
7917         the module dependency.
7918
7919 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
7920             Bruno Haible  <bruno@clisp.org>
7921
7922         * gnulib-tool (func_create_testdir): Add license consistency check.
7923
7924 2006-11-15  Eric Blake  <ebb9@byu.net>
7925
7926         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
7927         random "(cached)" in configure output.
7928
7929 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7930
7931         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
7932         test for conforming inttypes.h is both announced and cached.
7933
7934         * MODULES.html.sh (seen_modules, seen_files): New variables.
7935         (func_module): Rewrite to use a few less gnulib-tool and sed
7936         invocations.  Avoid a couple of quadratic algorithms for ...
7937         (missed_modules, missed_files): ... these, with ...
7938         (func_append, func_tmpdir): ... these new functions, from
7939         gnulib-tool.  Analogously, install traps for cleanup.
7940
7941         * tests/test-gc.c (main): Remove unused variables.
7942         * tests/test-read-file.c: Include stdlib.h, for 'free'.
7943
7944 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
7945
7946         * modules/inttostr (License): Change to LGPL.
7947
7948 2006-11-14  Eric Blake  <ebb9@byu.net>
7949
7950         * modules/tempname (License): Change to LGPL.
7951
7952 2006-11-14  Eric Blake  <ebb9@byu.net>
7953
7954         * doc/functions.texi (Function Portability): *printf functions on
7955         Cygwin now understand all POSIX size specifiers.
7956
7957 2006-11-14  Bruno Haible  <bruno@clisp.org>
7958
7959         * modules/c-ctype (License): Change to LGPL.
7960
7961 2006-11-12  Bruno Haible  <bruno@clisp.org>
7962
7963         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
7964         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
7965         for GNOME libraries, for which the include files are installed in
7966         subdirectories of $prefix/include.
7967
7968 2006-11-12  Bruno Haible  <bruno@clisp.org>
7969
7970         * m4/lib-link.m4: Require at least autoconf-2.54.
7971         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
7972         name to underscores for the --with option.
7973
7974 2006-11-13  Bruno Haible  <bruno@clisp.org>
7975
7976         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
7977         the tests directory.
7978         Reported by Ralf Wildenhues.
7979
7980 2006-11-13  Bruno Haible  <bruno@clisp.org>
7981
7982         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
7983         (func_emit_initmacro_end): Undo the override here.
7984         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
7985         Works around the famous automake error in coreutils.
7986
7987 2006-11-13  Eric Blake  <ebb9@byu.net>
7988
7989         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
7990         element, not its node.
7991
7992 2006-11-12  Bruno Haible  <bruno@clisp.org>
7993
7994         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
7995         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
7996
7997 2006-11-12  Bruno Haible  <bruno@clisp.org>
7998
7999         * gnulib-tool: New option --local-symlink.
8000         (func_usage): Document it.
8001         (lsymbolic): New variable.
8002         (func_import, func_create_testdir): If --symlink was not specified,
8003         test whether --local-symlink was specified and the file comes from
8004         the local_gnulib_dir.
8005
8006 2006-11-12  Bruno Haible  <bruno@clisp.org>
8007
8008         * gnulib-tool (func_ln): New function.
8009         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
8010
8011 2006-11-12  Bruno Haible  <bruno@clisp.org>
8012
8013         Finish support for source files in subdirectories.
8014         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
8015         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
8016         AUTOMAKE_OPTIONS.
8017         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
8018
8019 2006-11-12  Bruno Haible  <bruno@clisp.org>
8020
8021         * gnulib-tool (func_get_automake_snippet): Synthesize also an
8022         EXTRA_lib_SOURCES augmentation.
8023         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
8024
8025 2006-11-12  Jim Meyering  <jim@meyering.net>
8026
8027         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
8028         file descriptors.  This also averts a failure on systems with
8029         native openat support when a traversed directory lacks "x" access.
8030         * lib/fts_.h: Include "i-ring.h"
8031         (struct FTS) [fts_fd_ring]: New member.
8032         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
8033         (FCHDIR): Add parentheses.
8034         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
8035         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
8036         When descending, rather than simply closing the previous
8037         fts_cwd_fd value, push that file descriptor onto the ring.
8038         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
8039         (fts_open): Initialize the new fd_ring member.
8040         (fts_close): Clear the ring.
8041         (fts_safe_changedir): When possible, use our new fd_ring to skip
8042         the diropen and fstat and dev/ino comparison that would normally
8043         accompany a virtual `chdir ("..")'.
8044
8045         * modules/fts (Depends-on): Add i-ring.
8046         * modules/i-ring: New module.
8047         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
8048         * m4/i-ring.m4: New file.
8049
8050 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8051
8052         * gnulib-tool (func_create_testdir): Fix replacement of
8053         `build-aux' in configure.ac.  Run autotools in gltests
8054         subdirectory.
8055         (func_create_testdir, func_create_megatestdir, test): There is
8056         no need for '--force' in most autotool invocations in a new
8057         tree.  Actually fail the whole test if any of the tools, or the
8058         configure or make stages fail.
8059
8060         Sync from Automake.
8061         * build-aux/gnupload: Revert last change.  Add pointer to upload
8062         instructions of the GNU Maintenance Instructions.
8063         Suggestion by Karl Berry.
8064
8065 2006-11-10  Jim Meyering  <jim@meyering.net>
8066
8067         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
8068
8069 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
8070
8071         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
8072         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
8073         (bind_textdomain_codeset) [! ENABLE_NLS]:
8074         Evaluate all the arguments.  That way, callers get compatible behavior
8075         if the arguments have side effects.  Also, it avoids some GCC
8076         diagnostics in some cases; Joel E. Denny reported problems when Bison
8077         was configured with --enable-gcc-warnigs.
8078
8079 2006-11-10  Jim Meyering  <jim@meyering.net>
8080
8081         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
8082         relevant options in CFLAGS (like -O, -fno-inline) are taken into
8083         account.
8084
8085 2006-11-10  Jim Meyering  <jim@meyering.net>
8086
8087         * modules/inline: New file/module.
8088         * modules/xalloc (Files): Remove m4/inline.m4.
8089         (Depends-on): Add inline, instead.
8090         * modules/oset: Likewise.
8091         * modules/list: Likewise.
8092
8093 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
8094
8095         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
8096         Problem reported by Matthew Woehlke.
8097
8098 2006-11-09  Bruno Haible  <bruno@clisp.org>
8099
8100         * lib/tempname.c (gen_tempname): Remove variant that invokes
8101         __gen_tempname.
8102         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
8103         __gen_tempname.
8104
8105 2006-11-08  Bruno Haible  <bruno@clisp.org>
8106
8107         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
8108         to 'yes' instead of 'cross-compiling'.
8109
8110 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
8111
8112         * lib/quotearg.h (quotearg_free): New decl.
8113         * lib/quotearg.c (quotearg_free): New function.
8114         (slot0, nslots, slotvec0, slotvec):
8115         Now file-scope so that quotearg_free can get at them.
8116
8117 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8118
8119         Sync from Automake.
8120         * build-aux/gnupload: Add missing 'gnu' to example URL.
8121         Report by Karl Berry.
8122
8123 2006-11-08  Bruno Haible  <bruno@clisp.org>
8124
8125         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
8126         Suggested by Paul Eggert.
8127
8128 2006-11-08  Jim Meyering  <jim@meyering.net>
8129
8130         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
8131         It's already included if !_LIBC.
8132         (fts_safe_changedir): Add a comment.
8133
8134 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
8135
8136         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
8137         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
8138         Matthew Woehlke.
8139
8140         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
8141         definitions up, to avoid colliding with change below.
8142         (static_inline) [HAVE_INLINE]: New macro.
8143         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
8144         Provide extern decls when !HAVE_INLINE.  Do not define unless
8145         static_inline is defined, either by us or by xmalloc.c.  Use
8146         static_inline rather than static inline.
8147         (XCALLOC): Optimize sizeof(T) = 1 case.
8148         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
8149
8150 2006-11-07  Bruno Haible  <bruno@clisp.org>
8151
8152         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
8153         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
8154         AC_C_INLINE.
8155         * modules/xalloc (Files): Add m4/inline.m4.
8156
8157 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8158
8159         * README: Fix typo.
8160         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
8161         (Miscellanous Notes): ...from this.
8162
8163 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
8164
8165         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
8166         Mention that offsetof should be used instead of sizeof.
8167         From Bruno Haible.
8168
8169 2006-11-07  Bruno Haible  <bruno@clisp.org>
8170
8171         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
8172
8173 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
8174
8175         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
8176         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
8177         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
8178         (gl_tree_add_before, gl_tree_add_after):
8179         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
8180         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
8181         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
8182         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
8183         (gl_linked_add_after, gl_linked_add_at): Likewise.
8184         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
8185         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
8186         (gl_tree_add_before, gl_tree_add_after): Likewise.
8187         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
8188         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
8189         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
8190
8191 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8192
8193         * lib/gl_oset.h: Use C comment style, not C++ comment style.
8194
8195 2006-11-06  Bruno Haible  <bruno@clisp.org>
8196
8197         * m4/inline.m4: New file.
8198         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
8199         * modules/list (Files): Add m4/inline.m4.
8200         * modules/oset (Files): Likewise.
8201
8202 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
8203
8204         * lib/idcache.c: Include <stddef.h>, for offsetof.
8205         (struct userid.name): Change from char * to a flexible array member.
8206         All uses changed.
8207         * modules/idcache (Depends-on): Add flexmember.
8208
8209         * MODULES.html.sh (Core language properties): New module flexmember.
8210         * modules/flexmember, m4/flexmember.m4: New files.
8211
8212         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
8213         inline functions that are identical with the old xnmalloc_inline,
8214         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
8215         that we can avoid some unnecessary integer multiplications and
8216         divisions in the common case where the element size is known at
8217         compile time.
8218         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
8219         needed.
8220         (xnboundedmalloc): Remove.
8221         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
8222         arguments, for consistency with rest of this header.
8223         (xcharalloc): Rewrite using XNMALLOC.
8224         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
8225         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
8226         versions have been moved to lib/xalloc.h and renamed to be the
8227         non-*_inline versions.
8228         (xmalloc, xrealloc): Implement without reference to the xnmalloc
8229         and xnrealloc functions, since those functions are now inline and
8230         now call us.
8231         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
8232         renaming described above.
8233         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
8234         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
8235         captures the dependency in AC_C_INLINE.
8236
8237         New module canonicalize-lgpl, proposed by Charles Wilson in
8238         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
8239         with a few small changes afterwards.
8240         * MODULES.html.sh (File system functions): New module
8241         canonicalize-lgpl.
8242         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
8243         and canonicalize_file_name.
8244         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
8245         * modules/canonicalize-lgpl: New files.
8246
8247 2006-11-05  Bruno Haible  <bruno@clisp.org>
8248
8249         * gnulib-tool (func_import, func_create_testdir): Create directories
8250         also for files in subdirectories of lib/.
8251
8252 2006-11-05  Bruno Haible  <bruno@clisp.org>
8253
8254         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
8255         ANSI C compliant.
8256
8257 2006-11-03  Bruno Haible  <bruno@clisp.org>
8258
8259         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
8260         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
8261         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
8262         (xnboundedmalloc): New inline function.
8263         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
8264         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
8265         xmalloc.
8266         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
8267         xmalloc.
8268         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
8269         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
8270         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
8271         xmalloc.
8272         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
8273         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
8274         xmalloc.
8275         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
8276         gl_tree_add_after): Use XMALLOC instead of xmalloc.
8277         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
8278         xmalloc.
8279         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
8280         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
8281         gl_tree_add_after): Use XMALLOC instead of xmalloc.
8282         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
8283         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
8284         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
8285         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
8286
8287 2006-11-03  Bruno Haible  <bruno@clisp.org>
8288
8289         * lib/c-ctype.h [C++]: Define functions without name mangling.
8290         * lib/fwriteerror.h [C++]: Likewise.
8291         * lib/gcd.h [C++]: Likewise.
8292         * lib/linebreak.h [C++]: Likewise.
8293
8294 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
8295
8296         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
8297         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
8298         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
8299         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
8300         Check for functions and headers just once.
8301         Check for declaration of canonicalize_file_name.
8302         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
8303
8304 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
8305
8306         * gnulib-tool (func_import): Fix typo in actioncmd.
8307
8308 2006-11-02  Bruno Haible  <bruno@clisp.org>
8309
8310         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
8311         newline sequence in the Makefile.am snippet as a space, like "make"
8312         does.
8313         Reported by Roger Persson <perrog@gmail.com>.
8314
8315 2006-11-01  Bruno Haible  <bruno@clisp.org>
8316
8317         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
8318         already declared in <string.h>.
8319         * lib/strcase.h (strncasecmp): Don't declare it if yes.
8320
8321 2006-11-01  Bruno Haible  <bruno@clisp.org>
8322
8323         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
8324         * lib/strcase.h: Include <string.h>.
8325         (strcasecmp): Define to rpl_strcasecmp here.
8326
8327 2006-11-01  Bruno Haible  <bruno@clisp.org>
8328
8329         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
8330
8331 2006-11-01  Eric Blake  <ebb9@byu.net>
8332
8333         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
8334
8335         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
8336
8337 2006-10-29  Bruno Haible  <bruno@clisp.org>
8338
8339         Make it compile in C++ mode.
8340         * lib/full-write.c (full_rw): Add a cast.
8341
8342 2006-11-01  Bruno Haible  <bruno@clisp.org>
8343
8344         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
8345         be POSIX compliant.
8346         Reported by Roger Persson <perrog@gmail.com>.
8347
8348 2006-11-01  Eric Blake  <ebb9@byu.net>
8349
8350         * lib/getopt_.h: Fix comments.
8351
8352 2006-10-31  Eric Blake  <ebb9@byu.net>
8353
8354         * modules/tmpdir (Depends-on): Add sys_stat.
8355         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
8356         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
8357         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
8358         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
8359         tempname.
8360
8361 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
8362
8363         Avoid some C++ diagnostics reported by Bruno Haible.
8364         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
8365         xmalloc.
8366         (quotearg_alloc): Use xcharalloc rather than xmalloc.
8367         (struct slotvec): Move to top level.
8368         (quotearg_n_options): Rewrite to avoid xmalloc.
8369         * lib/xalloc.h (xcharalloc): New function.
8370         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
8371         [defined __cplusplus]: Add function template that provides result
8372         type propagation.  This part of the change is from Bruno Haible.
8373
8374 2006-10-29  Bruno Haible  <bruno@clisp.org>
8375
8376         Make it compile in C++ mode.
8377         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
8378         * lib/strnlen1.c (strnlen1): Cast memchr result.
8379         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
8380         * lib/clean-temp.c (string_equals, string_hash): Add casts.
8381         (create_temp_dir): Rename local variable 'template'.
8382         (compile_csharp_using_sscli): Add cast.
8383         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
8384         * lib/findprog.c (find_in_path): Likewise.
8385         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
8386         * lib/wait-process.c (register_slave_subprocess): Likewise.
8387
8388 2006-10-22  Bruno Haible  <bruno@clisp.org>
8389
8390         * modules/tsearch: New file.
8391         * lib/tsearch.h: New file.
8392         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
8393         * m4/tsearch.m4: New file.
8394         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
8395
8396 2006-10-29  Eric Blake  <ebb9@byu.net>
8397
8398         * lib/arcfour.c: Assume config.h.
8399         * lib/arctwo.c: Likewise.
8400         * lib/base64.c: Likewise.
8401         * lib/check-version.c: Likewise.
8402         * lib/crc.c: Likewise.
8403         * lib/des.c: Likewise.
8404         * lib/gc-gnulib.c: Likewise.
8405         * lib/gc-libgcrypt.c: Likewise.
8406         * lib/gc-pbkdf2-sha1.c: Likewise.
8407         * lib/getaddrinfo.c: Likewise.
8408         * lib/getdelim.c: Likewise.
8409         * lib/getline.c: Likewise.
8410         * lib/hmac-md5.c: Likewise.
8411         * lib/hmac-sha1.c: Likewise.
8412         * lib/iconvme.c: Likewise.
8413         * lib/md2.c: Likewise.
8414         * lib/md4.c: Likewise.
8415         * lib/memxor.c: Likewise.
8416         * lib/read-file.c: Likewise.
8417         * lib/readline.c: Likewise.
8418         * lib/rijndael-alg-fst.c: Likewise.
8419         * lib/rijndael-api-fst.c: Likewise.
8420         * lib/xgetdomainname.c: Likewise.
8421
8422 2006-10-28  Eric Blake  <ebb9@byu.net>
8423
8424         * lib/xstrndup.c: Assume config.h.
8425
8426 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
8427
8428         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
8429         stat-macros.h is now for our own macros, whereas stat_h is for
8430         macros in the <sys/stat.h> name space.
8431         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
8432         (STAT_MACROS_H): Remove.
8433         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
8434         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
8435         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
8436         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
8437         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
8438         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
8439         Move these macros to ...
8440         * lib/stat_.h: here.  Don't include stat-macros.h.
8441         * lib/canonicalize.c: Don't include stat-macros.h.
8442         * lib/chown.c: Likewise.
8443         * lib/euidaccess.c: Likewise.
8444         * lib/file-type.c: Likewise.
8445         * lib/filemode.c: Likewise.
8446         * lib/glob.c: Likewise.
8447         * lib/isapipe.c: Likewise.
8448         * lib/lchown.c: Likewise.
8449         * lib/lstat.c: Likewise.
8450         * lib/mkdir-p.c: Likewise.
8451         * lib/rmdir.c: Likewise.
8452         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
8453         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
8454         unless mkdir isn't declared, to speed up 'configure'.
8455         Always create sys/stat.h, since it's unlikely any real sys/stat.h
8456         would define all the S_* symbols.
8457         * modules/canonicalize (Depends-on):
8458         Depend on sys_stat, not stat-macros.
8459         * modules/chown: Likewise.
8460         * modules/euidaccess: Likewise.
8461         * modules/filemode: Likewise.
8462         * modules/file-type: Likewise.
8463         * modules/glob: Likewise.
8464         * modules/isapipe: Likewise.
8465         * modules/lchown: Likewise.
8466         * modules/lstat: Likewise.
8467         * modules/mkancesdirs: Likewise.
8468         * modules/rmdir: Likewise.
8469         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
8470         * modules/modechange: Likewise.
8471         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
8472         (configure.ac): Remove gl_STAT_MACROS.
8473         * modules/sys_stat (Depends-on): Remove stat-macros.
8474
8475 2006-10-27  Bruno Haible  <bruno@clisp.org>
8476
8477         * m4/signed.m4: Remove file.
8478         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
8479         invocation.
8480         * modules/vasnprintf (Files): Remove m4/signed.m4.
8481
8482 2006-10-27  Bruno Haible  <bruno@clisp.org>
8483
8484         Update to GNU gettext 0.16.
8485         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
8486         m4/inttypes-h.m4, m4/signed.m4.
8487         * m4/gettext.m4: Update to GNU gettext 0.16.
8488         * m4/intl.m4: New file, from GNU gettext.
8489         * m4/intldir.m4: New file, from GNU gettext.
8490         * config/srclist.txt: Update
8491
8492 2006-10-27  Eric Blake  <ebb9@byu.net>
8493
8494         * MODULES.html.sh: Document tempname.
8495         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
8496         dependencies.
8497         (Files): Move lib/tempname.c...
8498         * modules/tempname: ...to this new module.
8499         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
8500         (gl_PREREQ_TEMPNAME): Move...
8501         * m4/tempname.m4: ...to this new file.
8502         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
8503         * modules/sys_stat (Depends-on): Add stat-macros.
8504         * lib/stat_.h (includes): Pick up stat macros.
8505         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
8506         if stat macros are broken.
8507         * lib/tempname.c (includes): No need to include "stat-macros.h".
8508         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
8509         (direxists, __path_search) [!_LIBC]: Don't compile these in
8510         gnulib; the tmpdir module covers that.
8511         * lib/tempname.h: New file.
8512
8513 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
8514
8515         * COPYING: Explain how gnulib-tool converts licence headers.
8516         Almost all wording by Eric Blake.
8517
8518 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
8519
8520         * lib/mbchar.h (is_basic_table): Make read-only.
8521         * lib/mbchar.c (is_basic_table): Likewise.
8522         Reported by John Darrington.
8523
8524 2006-10-25  Bruno Haible  <bruno@clisp.org>
8525
8526         * lib/progname.h (set_program_name): Undefine before defining.
8527
8528 2006-10-25  Bruno Haible  <bruno@clisp.org>
8529
8530         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
8531         false for non-gcc C++ compilers.
8532         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
8533
8534 2006-10-24  Bruno Haible  <bruno@clisp.org>
8535
8536         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
8537         iconv implementations like Irix iconv.
8538
8539 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
8540
8541         * modules/vararrays: New file.
8542         * m4/vararrays.m4: New file, taken from diffutils.
8543         * MODULES.html.sh: New module vararrays.
8544
8545 2006-10-24  Karl Berry  <karl@gnu.org>
8546
8547         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
8548         Don't call GNU Unix.
8549
8550 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8551
8552         * users.txt: Add Libtool.
8553
8554         Sync from Libtool:
8555
8556         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
8557
8558         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
8559         to gnulib's policy of including config.h unconditionally.
8560
8561 2006-10-24  Bruno Haible  <bruno@clisp.org>
8562
8563         * modules/wcwidth (Files): Add m4/wint_t.m4.
8564         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
8565         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
8566
8567 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
8568
8569         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
8570         to pacify GCC with some -W flags enabled.  Problem reported by
8571         Bruno Haible.
8572
8573 2006-10-24  Jim Meyering  <jim@meyering.net>
8574
8575         * MODULES.html.sh: Remove uinttostr.  It's not a module.
8576         Reported by Karl Berry.
8577
8578 2006-10-23  Bruno Haible  <bruno@clisp.org>
8579
8580         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
8581
8582 2006-10-24  Bruno Haible  <bruno@clisp.org>
8583
8584         * lib/gl_list.h: Use C comment style, not C++ comment style.
8585
8586 2006-10-23  Eric Blake  <ebb9@byu.net>
8587
8588         * lib/getaddrinfo.c (includes): Add missing include.
8589
8590 2006-10-23  Bruno Haible  <bruno@clisp.org>
8591             Paul Eggert  <eggert@cs.ucla.edu>
8592
8593         Ability to rename obstack_free.
8594         * lib/obstack.h (__obstack_free): New macro. Declare instead of
8595         obstack_free.
8596         (obstack_free): Invoke the __obstack_free macro.
8597         * lib/obstack.c (obstack_free): Use __obstack_free macro.
8598
8599 2006-10-23  Bruno Haible  <bruno@clisp.org>
8600             Paul Eggert  <eggert@cs.ucla.edu>
8601
8602         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
8603         __argc, __argv from the declaration. (They are defined as macros on
8604         mingw.)
8605
8606 2006-10-22  Bruno Haible  <bruno@clisp.org>
8607
8608         * doc/gnulib-intro.texi: New file.
8609         * doc/gnulib.texi: Include it.
8610
8611 2006-10-21  Bruno Haible  <bruno@clisp.org>
8612
8613         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
8614         "Introduction", "Miscellanous Notes", "Particular Modules".
8615
8616 2006-10-21  Bruno Haible  <bruno@clisp.org>
8617
8618         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
8619         Change mostlyclean-local rule to avoid sh syntax error from bash
8620         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
8621
8622 2006-10-23  Jim Meyering  <jim@meyering.net>
8623
8624         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
8625         in place of snprintf.
8626
8627         * modules/inttostr (Files): Add lib/uinttostr.c.
8628         * lib/uinttostr.c (inttostr): New file/function.
8629         * lib/inttostr.h (uinttostr): Declare.
8630         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
8631         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
8632         Add uinttostr.
8633         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
8634
8635 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
8636
8637         * lib/canonicalize.c (ELOOP): Define if not already defined.
8638         Problem reported by Bruno Haible in
8639         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
8640
8641 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
8642
8643         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
8644         Problem reported by Perry Smith and Ville Laurikari.
8645
8646         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
8647         uses.
8648
8649 2006-10-19  Bruno Haible  <bruno@clisp.org>
8650
8651         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
8652         for mingw.
8653
8654 2006-10-19  Bruno Haible  <bruno@clisp.org>
8655
8656         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
8657         Needed for mingw.
8658
8659 2006-10-19  Bruno Haible  <bruno@clisp.org>
8660
8661         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
8662
8663 2006-10-19  Bruno Haible  <bruno@clisp.org>
8664
8665         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
8666         it.
8667
8668 2006-10-19  Bruno Haible  <bruno@clisp.org>
8669
8670         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
8671         invocation.
8672
8673 2006-10-19  Bruno Haible  <bruno@clisp.org>
8674
8675         * gnulib-tool (func_create_testdir): Don't include ftruncate and
8676         mountlist by default.
8677
8678 2006-10-16  Bruno Haible  <bruno@clisp.org>
8679
8680         * lib/c-strstr.c: Include c-strstr.h.
8681
8682 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
8683
8684         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
8685         in a slash.
8686
8687 2006-10-18  Bruno Haible  <bruno@clisp.org>
8688
8689         * lib/lock.h [C++]: Wrap definitions in extern "C".
8690
8691 2006-10-18  Bruno Haible  <bruno@clisp.org>
8692
8693         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
8694         gl_LIBOBJS list.
8695
8696 2006-10-18  Bruno Haible  <bruno@clisp.org>
8697
8698         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
8699
8700 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
8701
8702         * lib/xstrtol.h: Include gettext.h.
8703         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
8704         Problem reported by Eric Blake.
8705         * modules/xstrtol (Depends-on): Add gettext-h.
8706
8707 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
8708
8709         * lib/strftime.c (advance): New macro.
8710         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
8711         incomplete type, so you can't add 0 to it.  Problem and patch
8712         reported by Eelco Dolstra for dietlibc.
8713
8714 2006-10-18  Jim Meyering  <jim@meyering.net>
8715
8716         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
8717         type for a local, and rename it: s/up/user_proc/.
8718
8719 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
8720
8721         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
8722         READ_UTMP_USER_PROCESS.
8723         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
8724
8725 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
8726
8727         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
8728         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
8729
8730 2006-10-17  Eric Blake  <ebb9@byu.net>
8731
8732         * lib/sigprocmask.c (sigprocmask): Fix typo.
8733
8734         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
8735
8736         * modules/clean-temp (Makefile.am): Don't add to make output...
8737         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
8738         config.h.
8739
8740 2006-10-17  Bruno Haible  <bruno@clisp.org>
8741
8742         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
8743         differently if DEFAULT_TEXT_DOMAIN is set.
8744
8745 2006-10-16  Bruno Haible  <bruno@clisp.org>
8746
8747         * lib/clean-temp.c: Include fwriteerror.h.
8748
8749 2006-10-16  Bruno Haible  <bruno@clisp.org>
8750
8751         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
8752
8753 2006-10-16  Bruno Haible  <bruno@clisp.org>
8754
8755         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
8756         * lib/sigprocmask.h: Include <sys/types.h>.
8757         (sigset_t): Use the system's definition if present.
8758
8759 2006-10-17  Eric Blake  <ebb9@byu.net>
8760
8761         * lib/xvasprintf.c (includes): Assume config.h.
8762         * lib/xasprintf.c (includes): Likewise.
8763
8764 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
8765
8766         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
8767         at least as wide as intmax_t.
8768
8769 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
8770
8771         (Imported from Automake.)
8772         * build-aux/gnupload: Update to version 1.1 of directive file.
8773
8774 2006-10-16  Eric Blake  <ebb9@byu.net>
8775
8776         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
8777         match Automake 1.10a.
8778
8779 2006-10-14  Bruno Haible  <bruno@clisp.org>
8780
8781         * modules/sigprocmask: New file.
8782         * lib/sigprocmask.h: New file.
8783         * lib/sigprocmask.c: New file.
8784         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
8785         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
8786         request sigprocmask.o.
8787         (gl_PREREQ_SIGPROCMASK): New macro.
8788         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
8789         (Depends-on): Add sigprocmask.
8790         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
8791         gt_SIGNALBLOCKING. Test for 'raise' only once.
8792         * lib/fatal-signal.c: Include sigprocmask.h.
8793         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
8794         unblock_fatal_signals): Define always.
8795         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
8796         sigprocmask.
8797
8798 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
8799
8800         Sync from Automake.
8801         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
8802         which incorrectly sets the mode of an existing destination
8803         directory.  In some cases the unpatched install-sh could do the
8804         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
8805         system.  We hope this is rare in practice, but it's clearly worth
8806         fixing.  Problem reported by Alex Unleashed in
8807         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
8808         Also, don't bother to check for -m bugs unless we're using -m;
8809         suggested by Stepan Kasal.
8810
8811 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8812
8813         Sync from Automake.
8814         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
8815         `-c' flag, so they appear at the same position as in %FASTDEP%
8816         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
8817         which ignores unknown options only after the first non-option.
8818         Bug report against M4 by Nelson H. F. Beebe.
8819
8820 2006-10-13  Jim Meyering  <jim@meyering.net>
8821
8822         Fix a bug in yesterday's change.
8823         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
8824         p->fts_statp->st_dev would be used uninitialized.
8825         Ensures that we always call fts_stat on the very first entry.
8826         Miklos Szeredi reported that find -xdev stopped working.
8827
8828 2006-10-12  Bruno Haible  <bruno@clisp.org>
8829
8830         * gnulib-tool (func_get_automake_snippet): Append an automatically
8831         computed EXTRA_DIST augmentation.
8832         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
8833         * modules/alloca-opt (Makefile.am): Likewise.
8834         * modules/allocsa (Makefile.am): Likewise.
8835         * modules/arcfour (Makefile.am): Likewise.
8836         * modules/arctwo (Makefile.am): Likewise.
8837         * modules/argmatch (Makefile.am): Likewise.
8838         * modules/argz (Makefile.am): Likewise.
8839         * modules/atexit (Makefile.am): Likewise.
8840         * modules/backupfile (Makefile.am): Likewise.
8841         * modules/byteswap (Makefile.am): Likewise.
8842         * modules/c-strtod (Makefile.am): Likewise.
8843         * modules/c-strtold (Makefile.am): Likewise.
8844         * modules/calloc (Makefile.am): Likewise.
8845         * modules/canon-host (Makefile.am): Likewise.
8846         * modules/canonicalize (Makefile.am): Likewise.
8847         * modules/chdir-long (Makefile.am): Likewise.
8848         * modules/chdir-safer (Makefile.am): Likewise.
8849         * modules/check-version (Makefile.am): Likewise.
8850         * modules/chown (Makefile.am): Likewise.
8851         * modules/cloexec (Makefile.am): Likewise.
8852         * modules/close-stream (Makefile.am): Likewise.
8853         * modules/closeout (Makefile.am): Likewise.
8854         * modules/crc (Makefile.am): Likewise.
8855         * modules/csharpexec (Makefile.am): Likewise.
8856         * modules/cycle-check (Makefile.am): Likewise.
8857         * modules/des (Makefile.am): Likewise.
8858         * modules/dev-ino (Makefile.am): Likewise.
8859         * modules/dirfd (Makefile.am): Likewise.
8860         * modules/dirname (Makefile.am): Likewise.
8861         * modules/dup2 (Makefile.am): Likewise.
8862         * modules/eealloc (Makefile.am): Likewise.
8863         * modules/error (Makefile.am): Likewise.
8864         * modules/euidaccess (Makefile.am): Likewise.
8865         * modules/exclude (Makefile.am): Likewise.
8866         * modules/exitfail (Makefile.am): Likewise.
8867         * modules/fcntl-safer (Makefile.am): Likewise.
8868         * modules/fcntl (Makefile.am): Likewise.
8869         * modules/file-type (Makefile.am): Likewise.
8870         * modules/fileblocks (Makefile.am): Likewise.
8871         * modules/filemode (Makefile.am): Likewise.
8872         * modules/filenamecat (Makefile.am): Likewise.
8873         * modules/fnmatch (Makefile.am): Likewise.
8874         * modules/fopen-safer (Makefile.am): Likewise.
8875         * modules/fpending (Makefile.am): Likewise.
8876         * modules/fprintftime (Makefile.am): Likewise.
8877         * modules/free (Makefile.am): Likewise.
8878         * modules/fsusage (Makefile.am): Likewise.
8879         * modules/ftruncate (Makefile.am): Likewise.
8880         * modules/fts (Makefile.am): Likewise.
8881         * modules/gc-arcfour (Makefile.am): Likewise.
8882         * modules/gc-des (Makefile.am): Likewise.
8883         * modules/gc-hmac-md5 (Makefile.am): Likewise.
8884         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
8885         * modules/gc-md4 (Makefile.am): Likewise.
8886         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
8887         * modules/gc-sha1 (Makefile.am): Likewise.
8888         * modules/gc (Makefile.am): Likewise.
8889         * modules/getaddrinfo (Makefile.am): Likewise.
8890         * modules/getcwd (Makefile.am): Likewise.
8891         * modules/getdelim (Makefile.am): Likewise.
8892         * modules/getdomainname (Makefile.am): Likewise.
8893         * modules/getgroups (Makefile.am): Likewise.
8894         * modules/gethostname (Makefile.am): Likewise.
8895         * modules/gethrxtime (Makefile.am): Likewise.
8896         * modules/getline (Makefile.am): Likewise.
8897         * modules/getloadavg (Makefile.am): Likewise.
8898         * modules/getlogin_r (Makefile.am): Likewise.
8899         * modules/getndelim2 (Makefile.am): Likewise.
8900         * modules/getopt (Makefile.am): Likewise.
8901         * modules/getpagesize (Makefile.am): Likewise.
8902         * modules/getpass-gnu (Makefile.am): Likewise.
8903         * modules/getpass (Makefile.am): Likewise.
8904         * modules/getsubopt (Makefile.am): Likewise.
8905         * modules/gettime (Makefile.am): Likewise.
8906         * modules/gettimeofday (Makefile.am): Likewise.
8907         * modules/getugroups (Makefile.am): Likewise.
8908         * modules/getusershell (Makefile.am): Likewise.
8909         * modules/glob (Makefile.am): Likewise.
8910         * modules/group-member (Makefile.am): Likewise.
8911         * modules/hard-locale (Makefile.am): Likewise.
8912         * modules/hash (Makefile.am): Likewise.
8913         * modules/hmac-md5 (Makefile.am): Likewise.
8914         * modules/hmac-sha1 (Makefile.am): Likewise.
8915         * modules/human (Makefile.am): Likewise.
8916         * modules/idcache (Makefile.am): Likewise.
8917         * modules/imaxabs (Makefile.am): Likewise.
8918         * modules/imaxdiv (Makefile.am): Likewise.
8919         * modules/inet_ntop (Makefile.am): Likewise.
8920         * modules/inet_pton (Makefile.am): Likewise.
8921         * modules/intprops (Makefile.am): Likewise.
8922         * modules/inttostr (Makefile.am): Likewise.
8923         * modules/inttypes (Makefile.am): Likewise.
8924         * modules/isapipe (Makefile.am): Likewise.
8925         * modules/javaversion (Makefile.am): Likewise.
8926         * modules/lchmod (Makefile.am): Likewise.
8927         * modules/lchown (Makefile.am): Likewise.
8928         * modules/localcharset (Makefile.am): Likewise.
8929         * modules/long-options (Makefile.am): Likewise.
8930         * modules/lstat (Makefile.am): Likewise.
8931         * modules/malloc (Makefile.am): Likewise.
8932         * modules/mathl (Makefile.am): Likewise.
8933         * modules/mbchar (Makefile.am): Likewise.
8934         * modules/md2 (Makefile.am): Likewise.
8935         * modules/md4 (Makefile.am): Likewise.
8936         * modules/md5 (Makefile.am): Likewise.
8937         * modules/memcasecmp (Makefile.am): Likewise.
8938         * modules/memchr (Makefile.am): Likewise.
8939         * modules/memcmp (Makefile.am): Likewise.
8940         * modules/memcoll (Makefile.am): Likewise.
8941         * modules/memcpy (Makefile.am): Likewise.
8942         * modules/memmem (Makefile.am): Likewise.
8943         * modules/memmove (Makefile.am): Likewise.
8944         * modules/mempcpy (Makefile.am): Likewise.
8945         * modules/memrchr (Makefile.am): Likewise.
8946         * modules/memset (Makefile.am): Likewise.
8947         * modules/memxor (Makefile.am): Likewise.
8948         * modules/mkancesdirs (Makefile.am): Likewise.
8949         * modules/mkdir-p (Makefile.am): Likewise.
8950         * modules/mkdir (Makefile.am): Likewise.
8951         * modules/mkdtemp (Makefile.am): Likewise.
8952         * modules/mkstemp (Makefile.am): Likewise.
8953         * modules/mktime (Makefile.am): Likewise.
8954         * modules/modechange (Makefile.am): Likewise.
8955         * modules/mountlist (Makefile.am): Likewise.
8956         * modules/nanosleep (Makefile.am): Likewise.
8957         * modules/obstack (Makefile.am): Likewise.
8958         * modules/openat (Makefile.am): Likewise.
8959         * modules/pagealign_alloc (Makefile.am): Likewise.
8960         * modules/pathmax (Makefile.am): Likewise.
8961         * modules/physmem (Makefile.am): Likewise.
8962         * modules/poll (Makefile.am): Likewise.
8963         * modules/posixtm (Makefile.am): Likewise.
8964         * modules/posixver (Makefile.am): Likewise.
8965         * modules/putenv (Makefile.am): Likewise.
8966         * modules/quote (Makefile.am): Likewise.
8967         * modules/quotearg (Makefile.am): Likewise.
8968         * modules/raise (Makefile.am): Likewise.
8969         * modules/read-file (Makefile.am): Likewise.
8970         * modules/readline (Makefile.am): Likewise.
8971         * modules/readlink (Makefile.am): Likewise.
8972         * modules/readtokens (Makefile.am): Likewise.
8973         * modules/readutmp (Makefile.am): Likewise.
8974         * modules/realloc (Makefile.am): Likewise.
8975         * modules/regex (Makefile.am): Likewise.
8976         * modules/rename-dest-slash (Makefile.am): Likewise.
8977         * modules/rename (Makefile.am): Likewise.
8978         * modules/rijndael (Makefile.am): Likewise.
8979         * modules/rmdir (Makefile.am): Likewise.
8980         * modules/rpmatch (Makefile.am): Likewise.
8981         * modules/safe-read (Makefile.am): Likewise.
8982         * modules/safe-write (Makefile.am): Likewise.
8983         * modules/same-inode (Makefile.am): Likewise.
8984         * modules/same (Makefile.am): Likewise.
8985         * modules/save-cwd (Makefile.am): Likewise.
8986         * modules/savedir (Makefile.am): Likewise.
8987         * modules/setenv (Makefile.am): Likewise.
8988         * modules/settime (Makefile.am): Likewise.
8989         * modules/sha1 (Makefile.am): Likewise.
8990         * modules/sig2str (Makefile.am): Likewise.
8991         * modules/snprintf (Makefile.am): Likewise.
8992         * modules/stat-macros (Makefile.am): Likewise.
8993         * modules/stat-time (Makefile.am): Likewise.
8994         * modules/stdbool (Makefile.am): Likewise.
8995         * modules/stdint (Makefile.am): Likewise.
8996         * modules/stdlib-safer (Makefile.am): Likewise.
8997         * modules/stpcpy (Makefile.am): Likewise.
8998         * modules/stpncpy (Makefile.am): Likewise.
8999         * modules/strcase (Makefile.am): Likewise.
9000         * modules/strcasestr (Makefile.am): Likewise.
9001         * modules/strchrnul (Makefile.am): Likewise.
9002         * modules/strcspn (Makefile.am): Likewise.
9003         * modules/strdup (Makefile.am): Likewise.
9004         * modules/strerror (Makefile.am): Likewise.
9005         * modules/strftime (Makefile.am): Likewise.
9006         * modules/strndup (Makefile.am): Likewise.
9007         * modules/strnlen (Makefile.am): Likewise.
9008         * modules/strpbrk (Makefile.am): Likewise.
9009         * modules/strsep (Makefile.am): Likewise.
9010         * modules/strstr (Makefile.am): Likewise.
9011         * modules/strtod (Makefile.am): Likewise.
9012         * modules/strtoimax (Makefile.am): Likewise.
9013         * modules/strtok_r (Makefile.am): Likewise.
9014         * modules/strtol (Makefile.am): Likewise.
9015         * modules/strtoll (Makefile.am): Likewise.
9016         * modules/strtoul (Makefile.am): Likewise.
9017         * modules/strtoull (Makefile.am): Likewise.
9018         * modules/strtoumax (Makefile.am): Likewise.
9019         * modules/strverscmp (Makefile.am): Likewise.
9020         * modules/sys_socket (Makefile.am): Likewise.
9021         * modules/sys_stat (Makefile.am): Likewise.
9022         * modules/sysexits (Makefile.am): Likewise.
9023         * modules/time_r (Makefile.am): Likewise.
9024         * modules/timegm (Makefile.am): Likewise.
9025         * modules/timespec (Makefile.am): Likewise.
9026         * modules/tmpfile-safer (Makefile.am): Likewise.
9027         * modules/trim (Makefile.am): Likewise.
9028         * modules/unistd-safer (Makefile.am): Likewise.
9029         * modules/unlinkdir (Makefile.am): Likewise.
9030         * modules/unlocked-io (Makefile.am): Likewise.
9031         * modules/userspec (Makefile.am): Likewise.
9032         * modules/utime (Makefile.am): Likewise.
9033         * modules/utimecmp (Makefile.am): Likewise.
9034         * modules/utimens (Makefile.am): Likewise.
9035         * modules/vasnprintf (Makefile.am): Likewise.
9036         * modules/vasprintf (Makefile.am): Likewise.
9037         * modules/vsnprintf (Makefile.am): Likewise.
9038         * modules/xalloc (Makefile.am): Likewise.
9039         * modules/xgetcwd (Makefile.am): Likewise.
9040         * modules/xnanosleep (Makefile.am): Likewise.
9041         * modules/xreadlink (Makefile.am): Likewise.
9042         * modules/xstrtod (Makefile.am): Likewise.
9043         * modules/xstrtol (Makefile.am): Likewise.
9044         * modules/xstrtold (Makefile.am): Likewise.
9045         * modules/yesno (Makefile.am): Likewise.
9046         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
9047
9048 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
9049
9050         * modules/error (Makefile.am): Distribute files through
9051         EXTRA_DIST, not lib_SOURCES.
9052
9053 2006-10-12  Eric Blake  <ebb9@byu.net>
9054
9055         * modules/error (Makefile.am): Distribute files in /lib.
9056         * modules/obstack (Makefile.am): Likewise.
9057
9058 2006-10-12  Bruno Haible  <bruno@clisp.org>
9059
9060         * modules/acl (Makefile.am): Distribute all files in lib/ through
9061         EXTRA_DIST.
9062         * modules/arcfour (Makefile.am): Likewise.
9063         * modules/arctwo (Makefile.am): Likewise.
9064         * modules/argmatch (Makefile.am): Likewise.
9065         * modules/argz (Makefile.am): Likewise.
9066         * modules/atexit (Makefile.am): Likewise.
9067         * modules/backupfile (Makefile.am): Likewise.
9068         * modules/c-strtod (Makefile.am): Likewise.
9069         * modules/c-strtold (Makefile.am): Likewise.
9070         * modules/calloc (Makefile.am): Likewise.
9071         * modules/canon-host (Makefile.am): Likewise.
9072         * modules/canonicalize (Makefile.am): Likewise.
9073         * modules/chdir-long (Makefile.am): Likewise.
9074         * modules/chdir-safer (Makefile.am): Likewise.
9075         * modules/check-version (Makefile.am): Likewise.
9076         * modules/chown (Makefile.am): Likewise.
9077         * modules/cloexec (Makefile.am): Likewise.
9078         * modules/close-stream (Makefile.am): Likewise.
9079         * modules/closeout (Makefile.am): Likewise.
9080         * modules/crc (Makefile.am): Likewise.
9081         * modules/cycle-check (Makefile.am): Likewise.
9082         * modules/des (Makefile.am): Likewise.
9083         * modules/dirfd (Makefile.am): Likewise.
9084         * modules/dirname (Makefile.am): Likewise.
9085         * modules/dup2 (Makefile.am): Likewise.
9086         * modules/euidaccess (Makefile.am): Likewise.
9087         * modules/exclude (Makefile.am): Likewise.
9088         * modules/exitfail (Makefile.am): Likewise.
9089         * modules/fcntl-safer (Makefile.am): Likewise.
9090         * modules/file-type (Makefile.am): Likewise.
9091         * modules/fileblocks (Makefile.am): Likewise.
9092         * modules/filemode (Makefile.am): Likewise.
9093         * modules/filenamecat (Makefile.am): Likewise.
9094         * modules/fnmatch (Makefile.am): Likewise.
9095         * modules/fopen-safer (Makefile.am): Likewise.
9096         * modules/fpending (Makefile.am): Likewise.
9097         * modules/fprintftime (Makefile.am): Likewise.
9098         * modules/free (Makefile.am): Likewise.
9099         * modules/fsusage (Makefile.am): Likewise.
9100         * modules/ftruncate (Makefile.am): Likewise.
9101         * modules/fts (Makefile.am): Likewise.
9102         * modules/gc (Makefile.am): Likewise.
9103         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
9104         * modules/getaddrinfo (Makefile.am): Likewise.
9105         * modules/getcwd (Makefile.am): Likewise.
9106         * modules/getdelim (Makefile.am): Likewise.
9107         * modules/getdomainname (Makefile.am): Likewise.
9108         * modules/getgroups (Makefile.am): Likewise.
9109         * modules/gethostname (Makefile.am): Likewise.
9110         * modules/gethrxtime (Makefile.am): Likewise.
9111         * modules/getline (Makefile.am): Likewise.
9112         * modules/getloadavg (Makefile.am): Likewise.
9113         * modules/getlogin_r (Makefile.am): Likewise.
9114         * modules/getopt (Makefile.am): Likewise.
9115         * modules/getpass (Makefile.am): Likewise.
9116         * modules/getpass-gnu (Makefile.am): Likewise.
9117         * modules/getsubopt (Makefile.am): Likewise.
9118         * modules/gettime (Makefile.am): Likewise.
9119         * modules/gettimeofday (Makefile.am): Likewise.
9120         * modules/getugroups (Makefile.am): Likewise.
9121         * modules/getusershell (Makefile.am): Likewise.
9122         * modules/glob (Makefile.am): Likewise.
9123         * modules/group-member (Makefile.am): Likewise.
9124         * modules/hard-locale (Makefile.am): Likewise.
9125         * modules/hash (Makefile.am): Likewise.
9126         * modules/hmac-md5 (Makefile.am): Likewise.
9127         * modules/hmac-sha1 (Makefile.am): Likewise.
9128         * modules/human (Makefile.am): Likewise.
9129         * modules/idcache (Makefile.am): Likewise.
9130         * modules/imaxabs (Makefile.am): Likewise.
9131         * modules/imaxdiv (Makefile.am): Likewise.
9132         * modules/inet_ntop (Makefile.am): Likewise.
9133         * modules/inet_pton (Makefile.am): Likewise.
9134         * modules/inttostr (Makefile.am): Likewise.
9135         * modules/isapipe (Makefile.am): Likewise.
9136         * modules/lchown (Makefile.am): Likewise.
9137         * modules/long-options (Makefile.am): Likewise.
9138         * modules/lstat (Makefile.am): Likewise.
9139         * modules/malloc (Makefile.am): Likewise.
9140         * modules/mathl (Makefile.am): Likewise.
9141         * modules/mbchar (Makefile.am): Likewise.
9142         * modules/md2 (Makefile.am): Likewise.
9143         * modules/md4 (Makefile.am): Likewise.
9144         * modules/md5 (Makefile.am): Likewise.
9145         * modules/memcasecmp (Makefile.am): Likewise.
9146         * modules/memchr (Makefile.am): Likewise.
9147         * modules/memcmp (Makefile.am): Likewise.
9148         * modules/memcoll (Makefile.am): Likewise.
9149         * modules/memcpy (Makefile.am): Likewise.
9150         * modules/memmem (Makefile.am): Likewise.
9151         * modules/memmove (Makefile.am): Likewise.
9152         * modules/mempcpy (Makefile.am): Likewise.
9153         * modules/memrchr (Makefile.am): Likewise.
9154         * modules/memset (Makefile.am): Likewise.
9155         * modules/memxor (Makefile.am): Likewise.
9156         * modules/mkancesdirs (Makefile.am): Likewise.
9157         * modules/mkdir (Makefile.am): Likewise.
9158         * modules/mkdir-p (Makefile.am): Likewise.
9159         * modules/mkdtemp (Makefile.am): Likewise.
9160         * modules/mkstemp (Makefile.am): Likewise.
9161         * modules/mktime (Makefile.am): Likewise.
9162         * modules/modechange (Makefile.am): Likewise.
9163         * modules/mountlist (Makefile.am): Likewise.
9164         * modules/nanosleep (Makefile.am): Likewise.
9165         * modules/openat (Makefile.am): Likewise.
9166         * modules/pagealign_alloc (Makefile.am): Likewise.
9167         * modules/physmem (Makefile.am): Likewise.
9168         * modules/poll (Makefile.am): Likewise.
9169         * modules/posixtm (Makefile.am): Likewise.
9170         * modules/posixver (Makefile.am): Likewise.
9171         * modules/putenv (Makefile.am): Likewise.
9172         * modules/quote (Makefile.am): Likewise.
9173         * modules/quotearg (Makefile.am): Likewise.
9174         * modules/raise (Makefile.am): Likewise.
9175         * modules/read-file (Makefile.am): Likewise.
9176         * modules/readline (Makefile.am): Likewise.
9177         * modules/readlink (Makefile.am): Likewise.
9178         * modules/readtokens (Makefile.am): Likewise.
9179         * modules/readutmp (Makefile.am): Likewise.
9180         * modules/realloc (Makefile.am): Likewise.
9181         * modules/regex (Makefile.am): Likewise.
9182         * modules/rename (Makefile.am): Likewise.
9183         * modules/rename-dest-slash (Makefile.am): Likewise.
9184         * modules/rijndael (Makefile.am): Likewise.
9185         * modules/rmdir (Makefile.am): Likewise.
9186         * modules/rpmatch (Makefile.am): Likewise.
9187         * modules/safe-read (Makefile.am): Likewise.
9188         * modules/safe-write (Makefile.am): Likewise.
9189         * modules/same (Makefile.am): Likewise.
9190         * modules/save-cwd (Makefile.am): Likewise.
9191         * modules/savedir (Makefile.am): Likewise.
9192         * modules/setenv (Makefile.am): Likewise.
9193         * modules/settime (Makefile.am): Likewise.
9194         * modules/sha1 (Makefile.am): Likewise.
9195         * modules/sig2str (Makefile.am): Likewise.
9196         * modules/snprintf (Makefile.am): Likewise.
9197         * modules/stdlib-safer (Makefile.am): Likewise.
9198         * modules/stpcpy (Makefile.am): Likewise.
9199         * modules/stpncpy (Makefile.am): Likewise.
9200         * modules/strcase (Makefile.am): Likewise.
9201         * modules/strcasestr (Makefile.am): Likewise.
9202         * modules/strchrnul (Makefile.am): Likewise.
9203         * modules/strcspn (Makefile.am): Likewise.
9204         * modules/strdup (Makefile.am): Likewise.
9205         * modules/strerror (Makefile.am): Likewise.
9206         * modules/strftime (Makefile.am): Likewise.
9207         * modules/strndup (Makefile.am): Likewise.
9208         * modules/strnlen (Makefile.am): Likewise.
9209         * modules/strpbrk (Makefile.am): Likewise.
9210         * modules/strsep (Makefile.am): Likewise.
9211         * modules/strstr (Makefile.am): Likewise.
9212         * modules/strtod (Makefile.am): Likewise.
9213         * modules/strtoimax (Makefile.am): Likewise.
9214         * modules/strtok_r (Makefile.am): Likewise.
9215         * modules/strtol (Makefile.am): Likewise.
9216         * modules/strtoll (Makefile.am): Likewise.
9217         * modules/strtoul (Makefile.am): Likewise.
9218         * modules/strtoull (Makefile.am): Likewise.
9219         * modules/strtoumax (Makefile.am): Likewise.
9220         * modules/strverscmp (Makefile.am): Likewise.
9221         * modules/time_r (Makefile.am): Likewise.
9222         * modules/timegm (Makefile.am): Likewise.
9223         * modules/tmpfile-safer (Makefile.am): Likewise.
9224         * modules/unistd-safer (Makefile.am): Likewise.
9225         * modules/unlinkdir (Makefile.am): Likewise.
9226         * modules/userspec (Makefile.am): Likewise.
9227         * modules/utime (Makefile.am): Likewise.
9228         * modules/utimecmp (Makefile.am): Likewise.
9229         * modules/utimens (Makefile.am): Likewise.
9230         * modules/vasnprintf (Makefile.am): Likewise.
9231         * modules/vasprintf (Makefile.am): Likewise.
9232         * modules/vsnprintf (Makefile.am): Likewise.
9233         * modules/xalloc (Makefile.am): Likewise.
9234         * modules/xgetcwd (Makefile.am): Likewise.
9235         * modules/xnanosleep (Makefile.am): Likewise.
9236         * modules/xreadlink (Makefile.am): Likewise.
9237         * modules/xstrtod (Makefile.am): Likewise.
9238         * modules/xstrtol (Makefile.am): Likewise.
9239         * modules/xstrtold (Makefile.am): Likewise.
9240         * modules/yesno (Makefile.am): Likewise.
9241
9242 2006-10-12  Jim Meyering  <jim@meyering.net>
9243
9244         * m4/getloadavg.m4: Revert the change below.
9245
9246         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
9247         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
9248         fail with a symlink, which is what coreutils' ./bootstrap now
9249         creates by default.
9250
9251 2006-10-12  Bruno Haible  <bruno@clisp.org>
9252
9253         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
9254         mingw.
9255         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
9256         MSVC and mingw explicitly.
9257
9258 2006-10-11  Simon Josefsson  <jas@extundo.com>
9259             Bruno Haible  <bruno@clisp.org>
9260
9261         Add support for multiple gnulib-tool invocations in the scope of a
9262         single configure.ac file.
9263         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
9264         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
9265         with the same contents as the _LIBADD variable.
9266         (func_emit_initmacro_start, func_emit_initmacro_end,
9267         func_emit_initmacro_done): New functions.
9268         (func_import, func_create_testdir): Invoke them. Allow the identifiers
9269         gl_LIBOBJS and gl_LTLIBOBJS.
9270
9271 2006-10-11  Bruno Haible  <bruno@clisp.org>
9272
9273         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
9274         (func_create_testdir): Don't create po/Makefile.am, don't invoke
9275         autoreconf. Instead, invoke autopoint explicitly but move back the
9276         *.m4 files from gnulib.
9277
9278 2006-10-11  Bruno Haible  <bruno@clisp.org>
9279
9280         * gnulib-tool (func_usage): Make module names after --create-testdir
9281         optional.
9282         (func_create_testdir): If no module was specified, use nearly all
9283         modules.
9284
9285 2006-10-12  Jim Meyering  <jim@meyering.net>
9286
9287         Big performance improvement for fts-based tools that use FTS_NOSTAT.
9288         Avoid spurious inode-mismatch problems on non-POSIX file systems.
9289         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
9290         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
9291         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
9292         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
9293         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
9294         (fts_set_stat_required): New function.
9295         (fts_open): Defer the calls to fts_stat, if possible or requested.
9296         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
9297         into fts_stat itself.
9298         (fts_read): Perform any required (deferred) fts_stat call.
9299         (fts_build): Likewise, for the directory we're about to open and read.
9300         In the readdir loop, carefully decide whether each entry will require
9301         an eventual call to fts_stat, using dirent.d_type info if available.
9302         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
9303         a command line argument into this function.  Update all callers.
9304         Map a return value of FTS_DOT to FTS_D for a command line argument.
9305         * modules/fts (Depends-on): Add d-type.  Alphabetize.
9306         Thanks to Miklos Szeredi for his tenacity and for the initial
9307         bug report about "find" failing on a FUSE-based file system.
9308
9309         * lib/fts.c (fts_open): Use consistent indentation.
9310
9311 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
9312
9313         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
9314         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
9315         reported by Jim Meyering.  All uses of cache variables renamed
9316         to match Autoconf's.
9317         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
9318         the other one.
9319
9320         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
9321         Fix misspelling in diagnostic.
9322
9323 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
9324
9325         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
9326         defined.  Problem reported by Matthew Woehlke.
9327
9328         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
9329         Add support for Tandem NonStop R series.
9330         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
9331         Use new macro.
9332
9333         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
9334         (has_trailing_slash): Omit size arg; all callers changed.
9335         Omit 'inline', since it doesn't help performance and we'd
9336         need to configure it.
9337         Don't count //, ///, etc. as having a trailing slash.
9338         As a side effect, this removes a C99ism reported by Matthew Woehlke.
9339         (rpl_rename_dest_slash): On failure, use rename's errno rather
9340         than (in some cases) an incorrect or junk errno.
9341         Simplify code by removing need to compute length; this does
9342         cause it to make two passes instead of one over the file name,
9343         but it's worth it.
9344
9345         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
9346         change, since Autoconf's version may no longer be appropriate now
9347         that we are using CVS Autoconf's version.  Add support for Tandem.
9348
9349 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
9350             Bruno Haible  <bruno@clisp.org>
9351
9352         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
9353         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
9354         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
9355         gl_AC_TYPE_LONG_LONG.
9356
9357         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
9358         instead of HAVE_LONG_LONG.
9359         * lib/printf-args.c (printf_fetchargs): Likewise.
9360         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
9361         * lib/vasnprintf.c (VASNPRINTF): Likewise.
9362         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
9363         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
9364         gl_AC_TYPE_LONG_LONG.
9365
9366 2006-10-11  Bruno Haible  <bruno@clisp.org>
9367
9368         * m4/longlong.m4: Add comments.
9369         * m4/ulonglong.m4: Likewise.
9370
9371 2006-10-10  Bruno Haible  <bruno@clisp.org>
9372
9373         Make it possible to #define stpcpy, strdup to aliases.
9374         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
9375         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
9376
9377 2006-10-10  Bruno Haible  <bruno@clisp.org>
9378
9379         Make it possible to #define gcd to an alias.
9380         * lib/gcd.c: Include config.h.
9381
9382 2006-10-10  Bruno Haible  <bruno@clisp.org>
9383
9384         Make it possible to #define c_isascii to an alias.
9385         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
9386         defined. Undefine the macros before defining them, to avoid gcc
9387         warnings.
9388         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
9389         define NO_C_CTYPE_MACROS early.
9390
9391 2006-10-10  Bruno Haible  <bruno@clisp.org>
9392
9393         Make it possible to #define set_program_name to an alias.
9394         * lib/progname.c: Don't undefine set_program_name; instead, undefine
9395         ENABLE_RELOCATABLE early.
9396
9397 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
9398
9399         Port to Tandem NSK OSS, which has 64-bit signed int but at most
9400         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
9401         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
9402         More generally, don't assume that 64-bit signed int is available
9403         if unsigned int is, and vice versa.
9404         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
9405         unsigned symbols, not on their signed counterparts.
9406         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
9407         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
9408         (UINT64_C, UINTMAX_C):
9409         Likewise.
9410         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
9411         unsigned counterparts.
9412         (Have_long_long, Unsigned): New macros.
9413         (Int): Renamed from INT.
9414         (strtoimax): Use the new macros.
9415         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
9416         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
9417         * modules/inttypes (inttypes.h): Substitute
9418         HAVE_UNSIGNED_LONG_LONG_INT.
9419         * modules/stdint (stdint.h): Likewise.
9420         (Files): Add m4/ulonglong.m4.
9421
9422 2006-10-10  Bruno Haible  <bruno@clisp.org>
9423
9424         Fix a gcc -Wshadow warning.
9425         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
9426         to 'bucket'.
9427         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
9428         gl_linked_indexof_from_to): Likewise.
9429         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
9430         Likewise.
9431         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
9432         Likewise.
9433         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
9434         Reported by Eric Blake.
9435
9436 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
9437
9438         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
9439         for NetBSD.  Problem reported by Bruno Haible.
9440
9441 2006-10-09  Jim Meyering  <jim@meyering.net>
9442
9443         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
9444         Patch from Bruno Haible.
9445
9446 2006-10-09  Jim Meyering  <jim@meyering.net>
9447
9448         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
9449         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
9450         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
9451
9452 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
9453
9454         Don't include <config.h> twice; this doesn't work in some cases,
9455         e.g., when config.h has "#define intmax_t long long int" and
9456         we include <config.h>, <inttypes.h>, <config.h> in that order.
9457         Problem reported by Matthew Woehlke in:
9458         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
9459         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
9460         * lib/fts-cycle.c: Don't include config.h.
9461         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
9462         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
9463         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
9464         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
9465         inttypes.h.
9466         * lib/xstrtoumax.c: Likewise.
9467         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
9468         __strtol and the like, so that this module is more like its siblings.
9469         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
9470         Remove; no longer needed now that we assume gnulib inttypes.h.
9471
9472 2006-10-08  Bruno Haible  <bruno@clisp.org>
9473
9474         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
9475         option.
9476
9477 2006-10-07  Jim Meyering  <jim@meyering.net>
9478
9479         * modules/inttypes (inttypes.h): Revert what seems to have been
9480         an inadvertent part of today's change: use "|", not "/" in the
9481         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
9482
9483 2006-10-07  Bruno Haible  <bruno@clisp.org>
9484
9485         * modules/sublist: New file.
9486
9487 2006-10-07  Bruno Haible  <bruno@clisp.org>
9488
9489         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
9490         * modules/argz (argz.h): Likewise.
9491         * modules/arpa_inet (arpa/inet.h): Likewise.
9492         * modules/byteswap (byteswap.h): Likewise.
9493         * modules/configmake (configmake.h): Likewise.
9494         * modules/fcntl (fcntl.h): Likewise.
9495         * modules/fnmatch (fnmatch.h): Likewise.
9496         * modules/getopt (getopt.h): Likewise.
9497         * modules/glob (glob.h): Likewise.
9498         * modules/inttypes (inttypes.h): Likewise.
9499         * modules/netinet_in (netinet/in.h): Likewise.
9500         * modules/poll (poll.h): Likewise.
9501         * modules/stdbool (stdbool.h): Likewise.
9502         * modules/stdint (stdint.h): Likewise.
9503         * modules/sys_select (sys/select.h): Likewise.
9504         * modules/sys_socket (sys/socket.h): Likewise.
9505         * modules/sys_stat (sys/stat.h): Likewise.
9506         * modules/sysexits (sysexits.h): Likewise.
9507         * modules/unistd (unistd.h): Likewise.
9508         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
9509         Add a "DO NOT EDIT" comment to the generated file.
9510         (func_import): Likewise for gnulib-comp.m4.
9511
9512 2006-10-07  Bruno Haible  <bruno@clisp.org>
9513
9514         * lib/gl_sublist.h: New file.
9515         * lib/gl_sublist.c: New file.
9516
9517 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
9518
9519         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
9520         name (relative to the original working directory) and the file
9521         name component (relative to the temporary working directory).  All
9522         callers changed.
9523         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
9524         * lib/mkdir-p.c (make_dir_parents): Likewise.
9525         * lib/mkdir-p.h (make_dir_parents): Likewise.
9526
9527 2006-10-06  Eric Blake  <ebb9@byu.net>
9528
9529         Define several macros for use by the clean-temp module.
9530         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
9531         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
9532         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
9533
9534         * lib/clean-temp.h (close_stream_temp): New declaration.
9535         * lib/clean-temp.c (includes): Pull in headers according to what
9536         other modules are in use.
9537         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
9538
9539 2006-10-06  Bruno Haible  <bruno@clisp.org>
9540
9541         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
9542         instead of fopen, fwriteerror.
9543
9544 2006-10-06  Bruno Haible  <bruno@clisp.org>
9545
9546         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
9547         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
9548         int.
9549         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
9550         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
9551         Return an error indicator.
9552         Suggested by Eric Blake.
9553
9554 2006-10-06  Bruno Haible  <bruno@clisp.org>
9555
9556         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
9557         Reported by Eric Blake.
9558
9559 2006-10-06  Bruno Haible  <bruno@clisp.org>
9560
9561         * modules/closeout (Description): Mention stderr too.
9562
9563 2006-10-06  Bruno Haible  <bruno@clisp.org>
9564         and Paul Eggert  <eggert@cs.ucla.edu>
9565
9566         * lib/closeout.c (close_stdout): Also close stderr.
9567         * lib/closeout.h: Update comment.
9568
9569 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
9570
9571         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
9572         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
9573         * lib/dirchownmod.c: Include lchown.h.
9574         * lib/lchown.c: Don't include files that lchown.h now includes.
9575         Don't declare chown, since lchown.h now does that.
9576         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
9577         (lchown): Define to rpl_chown if lchown is declared but
9578         does not exist.  Declare using a prototype if lchown is not
9579         declared.  Add a copyright notice.
9580         * lib/mkstemp.h: Include <unistd.h>.
9581         * lib/openat.c: Include lchown.h.
9582
9583         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
9584         we now test for that separately.
9585         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
9586         rather than O_NOFOLLOW, when testing whether it's possible to
9587         avoid a race condition reliably.
9588         * lib/savewd.c (savewd_chdir): Likewise.
9589
9590         Remove macros that are no longer needed now that stdint.h is
9591         reliable.
9592         * lib/fsusage.c (UINTMAX_MAX): Remove.
9593         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
9594         * lib/utimecmp.c (SIZE_MAX): Remove.
9595
9596         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
9597
9598         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
9599         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
9600         O_NOATIME works.
9601
9602 2006-10-05  Bruno Haible  <bruno@clisp.org>
9603
9604         * lib/gl_list.h (gl_sortedlist_search_from_to,
9605         gl_sortedlist_indexof_from_to): New declarations.
9606         (gl_list_implementation): New fields sortedlist_search_from_to,
9607         sortedlist_indexof_from_to.
9608         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
9609         inline functions.
9610         * lib/gl_list.c (gl_sortedlist_search_from_to,
9611         gl_sortedlist_indexof_from_to): New functions.
9612         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
9613         function.
9614         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
9615         (gl_array_sortedlist_search_from_to): New function.
9616         (gl_array_list_implementation): Update.
9617         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
9618         function.
9619         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
9620         (gl_carray_sortedlist_search_from_to): New function.
9621         (gl_carray_list_implementation): Update.
9622         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
9623         gl_linked_sortedlist_indexof_from_to): New functions.
9624         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
9625         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
9626         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
9627         gl_tree_sortedlist_indexof_from_to): New functions.
9628         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
9629         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
9630         Update.
9631         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
9632         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
9633         Update.
9634
9635 2006-10-05  Bruno Haible  <bruno@clisp.org>
9636
9637         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
9638         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
9639         (struct gl_list_implementation): Add fields search_from_to,
9640         indexof_from_to. Remove fields search, indexof.
9641         (gl_list_search): Use the search_from_to method.
9642         (gl_list_search_from, gl_list_search_from_to): New functions.
9643         (gl_list_indexof): Use the indexof_from_to method.
9644         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
9645         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
9646         (gl_list_search_from, gl_list_search_from_to): New functions.
9647         (gl_list_indexof): Use the indexof_from_to method.
9648         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
9649         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
9650         gl_array_indexof. Add start_index, end_index arguments.
9651         (gl_array_search_from_to): Renamed from gl_array_search. Add
9652         start_index, end_index arguments.
9653         (gl_array_remove, gl_array_list_implementation): Update.
9654         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
9655         gl_carray_indexof. Add start_index, end_index arguments.
9656         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
9657         start_index, end_index arguments.
9658         (gl_carray_remove, gl_carray_list_implementation): Update.
9659         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
9660         gl_linked_search. Add start_index, end_index arguments.
9661         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
9662         start_index, end_index arguments.
9663         (gl_linked_remove): Update.
9664         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
9665         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
9666         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
9667         field to 'size_t'.
9668         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
9669         gl_tree_search. Add start_index, end_index arguments.
9670         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
9671         start_index, end_index arguments.
9672         (gl_tree_remove): Update.
9673         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
9674         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
9675         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
9676         function.
9677         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
9678         gl_tree_search. Add start_index, end_index arguments.
9679         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
9680         start_index, end_index arguments.
9681         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
9682         Update.
9683         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
9684
9685 2006-10-05  Bruno Haible  <bruno@clisp.org>
9686
9687         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
9688
9689         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
9690         fwriteerror_temp): New declarations.
9691         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
9692         (descriptors): New variable.
9693         (cleanup): First, close the descriptors.
9694         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
9695         fclose_temp, fwriteerror_temp): New functions.
9696
9697 2006-10-04  Jim Meyering  <jim@meyering.net>
9698
9699         * lib/fts.c (fts_open): Tiny comment change.
9700
9701 2006-10-04  Bruno Haible  <bruno@clisp.org>
9702
9703         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
9704         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
9705         gl_LOCK_BODY.
9706         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
9707         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
9708         gl_LOCK_EARLY_BODY.
9709         (gl_LOCK): Require gl_LOCK_BODY.
9710
9711 2006-10-04  Bruno Haible  <bruno@clisp.org>
9712
9713         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
9714         (gl_oset_search_atleast): New declaration.
9715         (struct gl_oset_implementation): Add field 'search_atleast'.
9716         (gl_oset_search_atleast): New inline function.
9717         * lib/gl_oset.c (gl_oset_search_atleast): New function.
9718         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
9719         (gl_array_oset_implementation): Update.
9720         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
9721         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
9722         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
9723
9724 2006-10-04  Bruno Haible  <bruno@clisp.org>
9725
9726         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
9727
9728 2006-10-03  Bruno Haible  <bruno@clisp.org>
9729
9730         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
9731         from gl_avltreehash_list_implementation.
9732
9733 2006-10-03  Bruno Haible  <bruno@clisp.org>
9734
9735         * lib/gl_oset.c (gl_oset_add): Fix return type.
9736
9737 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
9738
9739         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
9740
9741 2006-10-02  Eric Blake  <ebb9@byu.net>
9742
9743         * modules/strnlen (Depends-on): Add extensions.
9744
9745 2006-10-02  Eric Blake  <ebb9@byu.net>
9746
9747         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
9748         definition in 2.60+.
9749
9750 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
9751
9752         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
9753         checks.
9754
9755 2006-10-02  Bruno Haible  <bruno@clisp.org>
9756
9757         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
9758         to the AUTOMAKE_OPTIONS.
9759         Reported by Jim Meyering.
9760
9761 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
9762
9763         Work around bug in Solaris 10 /proc file system:
9764         /proc/self/fd/NNN/.. isn't the parent directory of
9765         the directory whose file descriptor is NNN.  This needs to
9766         be worked around at run time, not compile time, since a
9767         program might be built on Solaris 8, where things work, and
9768         run on Solaris 10.
9769         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
9770         to use the following interface instead:
9771         (OPENAT_BUFFER_SIZE): New macro.
9772         (openat_proc_name): New function.
9773         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
9774         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
9775         Likewise.
9776         * lib/openat-proc.c: New file.
9777         * modules/openat (Files): Add lib/openat-proc.c.
9778         (Depends-on): Add same-inode, stdbool.
9779         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
9780
9781 2006-09-29  Bruno Haible  <bruno@clisp.org>
9782
9783         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
9784         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
9785         argument. Set stdout_closed before testing for ferror, not after.
9786         (fwriteerror, fwriteerror_no_ebadf): New functions.
9787
9788 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9789
9790         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
9791
9792 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
9793
9794         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
9795         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
9796
9797 2006-09-28  Jim Meyering  <jim@meyering.net>
9798
9799         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
9800         Include <unistd.h>.
9801
9802 2006-09-28  Bruno Haible  <bruno@clisp.org>
9803
9804         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
9805         * modules/linkedhash-list (Depends-on): Likewise.
9806         * modules/rbtreehash-list (Depends-on): Likewise.
9807
9808 2006-09-28  Bruno Haible  <bruno@clisp.org>
9809
9810         * lib/strndup.h: Simplify the redefinition of strndup.
9811         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
9812         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
9813
9814 2006-09-28  Bruno Haible  <bruno@clisp.org>
9815
9816         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
9817         * lib/gl_linkedhash_list.c: Likewise.
9818         * lib/gl_rbtreehash_list.c: Likewise.
9819
9820 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
9821
9822         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
9823         getaddrinfo.
9824
9825         * lib/__fpending.h: Don't include <stdio_ext.h> unless
9826         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
9827         it causes <stdio_ext.h> to cause a compile-time error.
9828         Problem reported by Nelson H. F. Beebe.
9829         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
9830         of HAVE_DECL___PENDING.
9831
9832         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
9833         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
9834         declaration.
9835
9836 2006-09-27  Jim Meyering  <jim@meyering.net>
9837
9838         This file could end up with a definition for a function
9839         named __strndup, rather than rpl_strndup on a system with
9840         incomplete weak_alias support.
9841         * lib/strndup.c (strndup): Rename from __strndup.
9842         Remove #defines that used to map __strndup to strndup.
9843         Don't use K&R prototypes.
9844         Remove LIBC-related code, since this file is not sync'd with glibc.
9845         * lib/strndup.h: Revamp, accordingly.
9846         * m4/strndup.m4: Modernize.
9847
9848 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
9849
9850         * modules/savewd (Depends-on): Add 'raise'.
9851         * lib/savewd.c: Include <signal.h>, for 'raise'.
9852
9853 2006-09-26  Jim Meyering  <jim@meyering.net>
9854
9855         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
9856         when we detect Darwin 8.7.0's acl_get_file bug.
9857         Rearrange to perform the new (below) run-test while $LIBS
9858         contains any acl-related library.  Set USE_ACL at the end.
9859         (gl_ACL_GET_FILE): New function.
9860
9861 2006-09-26  Eric Blake  <ebb9@byu.net>
9862
9863         * lib/verror.c: Include <config.h> unconditionally.
9864
9865 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
9866
9867         * modules/clock-time (Maintainer): Add self.
9868         * modules/getlogin_r (Depends-on): Add extensions.
9869
9870 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9871
9872         * modules/clock-time: New module.
9873         * modules/nanosleep (Depends-on): Add clock-time.
9874         * modules/gethrxtime (Depends-on): Likewise.
9875         * modules/gettime (Depends-on): Likewise.
9876         * modules/settime (Depends-on): Likewise.
9877
9878         * modules/fts-lgpl: Depend on openat.
9879         * modules/mkancesdirs: Depend on savewd.
9880         * modules/mkdir-p: Likewise.
9881
9882 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9883
9884         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
9885
9886         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
9887         `gl_have_arbitrary_file_name_length_limit' to
9888         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
9889         actually works between configure runs.
9890
9891 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9892             Bruno Haible  <bruno@clisp.org>
9893
9894         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
9895
9896 2006-09-25  Jim Meyering  <jim@meyering.net>
9897
9898         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
9899         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
9900
9901 2006-09-25  Eric Blake  <ebb9@byu.net>
9902
9903         * gnulib-tool (func_import, func_create_testdir): Fix typos in
9904         exec's in 2006-09-18 patch when shuffling fds.
9905
9906 2006-09-25  Bruno Haible  <bruno@clisp.org>
9907
9908         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
9909         Reported by Jim Meyering.
9910
9911 2006-09-24  Jim Meyering  <jim@meyering.net>
9912
9913         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
9914         compare a pointer against a literal "0".  That caused failures with
9915         at least HP-UX's hpcc.
9916
9917 2006-09-22  Simon Josefsson  <jas@extundo.com>
9918
9919         * modules/gc-sha1:
9920         * modules/gc-md4:
9921         * modules/gc-hmac-sha1:
9922         * modules/gc-hmac-md5:
9923         * modules/gc-des:
9924         * modules/gc-arcfour: Distribute more files.
9925
9926 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9927
9928         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
9929         (gl_linked_iterator_from_to): Initialize struct completely.
9930         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
9931         (gl_tree_iterator_from_to): Likewise
9932         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
9933         * lib/gl_array_list.c [lint] (gl_array_iterator)
9934         (gl_array_iterator_from_to): Likewise.
9935         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
9936         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
9937         (gl_carray_iterator_from_to): Likewise.
9938
9939         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
9940         * lib/md4.c (md4_process_block): Remove unused variable.
9941         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
9942         parentheses for clarity.
9943
9944 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9945
9946         * modules/bison-i18n (Depends-on): Add gettext.
9947
9948 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9949
9950         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
9951         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
9952         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
9953         also add missing comma that caused broken test.
9954         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
9955         stdlib.h, for `abort'.
9956         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
9957         variables.
9958         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
9959         include unistd.h if present, for `rmdir'.
9960         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
9961         variables.
9962         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
9963         in the process include standard headers for prototypes.
9964         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
9965         gets declared on GNU/Linux.
9966         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
9967         unistd.h, for `rmdir'.
9968         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
9969
9970         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
9971         always true.
9972         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
9973
9974         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
9975
9976 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9977
9978         * gnulib-tool (func_version): Create output all at once.  This
9979         may help avoid triggering unnecessary SIGPIPEs, and at any
9980         rate it doesn't hurt.
9981
9982 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9983             Bruno Haible  <bruno@clisp.org>
9984
9985         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
9986         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
9987         * m4/signed.m4 (bh_C_SIGNED): Likewise.
9988
9989         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
9990         (gl_FUNC_VASPRINTF): Invoke it.
9991
9992 2006-09-22  Bruno Haible  <bruno@clisp.org>
9993
9994         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
9995         getloadavg.c as first argument.
9996
9997 2006-09-22  Bruno Haible  <bruno@clisp.org>
9998
9999         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
10000         at the beginning of the gl_INIT macro.
10001         * modules/getloadavg (configure.ac): Pass $gl_source_base to
10002         gl_GETLOADAVG.
10003
10004 2006-09-22  Bruno Haible  <bruno@clisp.org>
10005
10006         * gnulib-tool (func_create_megatestdir): Don't include the config-h
10007         module.
10008         Suggested by Ralf Wildenhues.
10009
10010 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
10011
10012         Import this patch from libc:
10013
10014         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
10015
10016         * lib/regex_internal.c (re_string_reconstruct): Handle
10017         offset < pstr->valid_raw_len && pstr->offsets_needed case.
10018         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
10019         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
10020         re_string_context_at.
10021
10022         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
10023         now requires it.
10024         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
10025         gl_REGEX now does it for us.
10026         (gl_REGEX): Add test taken from
10027         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
10028
10029         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
10030         Check that large offsets work.  Modernize Autoconf usages.
10031         Prefer "yes" to mean a good thing rather than a bad.
10032         Don't put "#define mkstemp" in config.h, as this might interfere
10033         with standard system headers that "#define mkstemp mkstemp64".
10034
10035         * modules/mkstemp (Depends-on): Add extensions, so that
10036         mkstemp is visible on some platforms.
10037         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
10038         (Include): Change to "mkstemp.h" from <stdlib.h>.
10039         (Files): Add mkstemp.h.
10040
10041         * lib/mkstemp.h: New file, since some standard headers
10042         #define mkstemp.
10043         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
10044         Include "mkstemp.h".
10045         Make the _LIBC code resemble glibc original more,
10046         e.g., use K&R style.
10047         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
10048         (mkstemp): Remove, since mkstemp.h does this for us.
10049         * lib/stdlib--.h: Include mkstemp.h.
10050
10051         Import this patch from libc:
10052
10053         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
10054
10055         * lib/tempname.c (__gen_tempname): Change attempts_min
10056         into a macro.  Use preprocessor to decide how to initialize
10057         attempts [Coverity CID 67].
10058
10059 2006-09-20  Bruno Haible  <bruno@clisp.org>
10060
10061         * lib/mkdtemp.c: Import from libc.
10062         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
10063                 * sysdeps/posix/tempname.c (__gen_tempname): Change
10064                 attempts_min into a macro.  Use preprocessor to decide how to
10065                 initialize attempts [Coverity CID 67].
10066         2001-11-27  Paul Eggert  <eggert@twinsun.com>
10067                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
10068                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
10069
10070 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10071
10072         * gnulib-tool (func_exit): New function, to allow to pass the
10073         exit status portably through the trap.  Use everywhere.
10074         (--help, --version): Signal a write error.
10075         (trap): catch SIGPIPE, for write errors.
10076         Exit at the end of the trap, with the correct exit status.
10077
10078 2006-09-19  Karl Berry  <karl@gnu.org>
10079
10080         * doc/gnulib.texi: note about the license texinfo files.
10081
10082 2006-09-19  Eric Blake  <ebb9@byu.net>
10083
10084         * gnulib-tool: Avoid space-tab.
10085
10086 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
10087
10088         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
10089         that prevented coreutils 6.1 from building.  Problem reported
10090         by Petter Reinholdtsen.
10091
10092 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
10093
10094         * gnulib-tool (avoidlist): Fix typo that broke options like
10095         --avoid=lock that are used by coreutils bootstrap.
10096
10097 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
10098
10099         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
10100         more systematically.
10101
10102 2006-09-18  Jim Meyering  <jim@meyering.net>
10103
10104         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
10105
10106 2006-09-18  Bruno Haible  <bruno@clisp.org>
10107
10108         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
10109
10110 2006-09-18  Bruno Haible  <bruno@clisp.org>
10111
10112         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
10113         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
10114         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
10115         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
10116         * m4/gettext.m4: Require autoconf >= 2.52.
10117         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
10118         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
10119         of gl_cv_header_inttypes_h.
10120
10121 2006-09-18  Bruno Haible  <bruno@clisp.org>
10122
10123         * lib/javaversion.c: Include configmake.h.
10124
10125 2006-09-18  Bruno Haible  <bruno@clisp.org>
10126
10127         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
10128         avoid that the while loops be executed in a subshell.
10129
10130 2006-09-18  Bruno Haible  <bruno@clisp.org>
10131
10132         * MODULES.html.sh (func_module): Break long lines.
10133         Suggested by Bruce Korb <bkorb@gnu.org>.
10134
10135 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10136
10137         Speed up by a factor of 1.12.
10138         * gnulib-tool (nl): New variable.
10139         (func_import): Rewrite include directive extraction to only read each
10140         directive once.
10141
10142 2006-09-17  Bruno Haible  <bruno@clisp.org>
10143
10144         * modules/javaversion (Makefile.am): Remove DEFS setting.
10145         (Depends-on): Add configmake, for PKGDATADIR definition.
10146
10147 2006-09-17  Bruno Haible  <bruno@clisp.org>
10148
10149         * gnulib-tool (func_create_testdir): Rewrite all files at once.
10150
10151 2006-09-17  Bruno Haible  <bruno@clisp.org>
10152
10153         * gnulib-tool (func_append): New function, stolen from libtool.m4.
10154         (func_modules_transitive_closure, func_modules_add_dummy,
10155         func_modules_to_filelist, func_import, func_create_testdir,
10156         func_create_megatestdir, ...): Use it wherever possible.
10157         Suggested by Ralf Wildenhues.
10158
10159 2006-09-16  Karl Berry  <karl@gnu.org>
10160
10161         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
10162         to avoid sectioning errors.
10163         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
10164         [ifinfo]: blank line after @center-ed titles.
10165         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
10166         Spell FSF address consistently with others.
10167         (These changes approved by rms.)
10168
10169 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10170
10171         Speed up by a factor of 1.61.
10172         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
10173         already checked module names again.
10174
10175 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10176
10177         Speed up by a factor of 1.13.
10178         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
10179         for new_files, and the input to func_add_or_update.
10180
10181 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10182
10183         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
10184         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
10185
10186 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
10187
10188         * modules/mkancesdirs (Depends-on): Add fcntl.
10189         * modules/savewd: New file.
10190         * MODULES.html.sh (File system functions): Add savewd.
10191
10192         * modules/configmake (Makefile.am): Add support for the
10193         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
10194
10195 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
10196
10197         * m4/savewd.m4: New file.
10198
10199 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
10200
10201         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
10202         (dirchownmod): New arg FD.  All callers changed.
10203         Use FD rather than opening the directory ourself, as opening is
10204         now the caller's responsibility.
10205         * lib/dirchownmod.h: Likewise.
10206         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
10207         hosts that require <sys/types.h> before <sys/stat.h>.  Include
10208         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
10209         (test_dir): Remove.
10210         (mkancesdirs): Return length of prefix of FILE that has already
10211         been made, or -2 if there is a child doing the work.  Redo
10212         algorithm so that it is O(N) rather than O(N**2).  Optimize away
10213         ".", and treat ".." specially since it might stray back into
10214         already-created areas.  Use a subprocess if necessary.  New arg
10215         WD; all users changed.  MAKE_DIR function should now return 1
10216         if it creates a directory that is not readable.  Return -2 if
10217         a child process is spun off.
10218         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
10219         Adjust signature to match code.
10220         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
10221         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
10222         all users changed.
10223         * lib/savewd.c, lib/savewd.h: New files.
10224
10225 2006-09-15  Jim Meyering  <jim@meyering.net>
10226
10227         * modules/rename-dest-slash: New module.
10228         * MODULES.html.sh (posix_compat): Add it here.
10229
10230         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
10231
10232 2006-09-15  Jim Meyering  <jim@meyering.net>
10233
10234         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
10235         file.
10236
10237         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
10238
10239 2006-09-15  Jim Meyering  <jim@meyering.net>
10240
10241         * lib/rename-dest-slash.c (has_trailing_slash): Use
10242         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
10243         (rpl_rename_dest_slash): Perform the cheaper trailing slash
10244         test before testing whether SRC is a directory.
10245         Suggestions from Bruno Haible.
10246
10247         Avoid a warning about an unused variable.
10248         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
10249         into the #ifdef block where it's used.
10250
10251         * lib/rename-dest-slash.c: New file.
10252
10253 2006-09-14  Bruno Haible  <bruno@clisp.org>
10254
10255         * lib/allocsa.c: Include <config.h> unconditionally.
10256         * lib/asnprintf.c: Likewise.
10257         * lib/asprintf.c: Likewise.
10258         * lib/c-strcasecmp.c: Likewise.
10259         * lib/c-strcasestr.c: Likewise.
10260         * lib/c-strncasecmp.c: Likewise.
10261         * lib/c-strstr.c: Likewise.
10262         * lib/classpath.c: Likewise.
10263         * lib/clean-temp.c: Likewise.
10264         * lib/concatpath.c: Likewise.
10265         * lib/copy-file.c: Likewise.
10266         * lib/csharpcomp.c: Likewise.
10267         * lib/csharpexec.c: Likewise.
10268         * lib/execute.c: Likewise.
10269         * lib/fatal-signal.c: Likewise.
10270         * lib/findprog.c: Likewise.
10271         * lib/fwriteerror.c: Likewise.
10272         * lib/gl_array_list.c: Likewise.
10273         * lib/gl_array_oset.c: Likewise.
10274         * lib/gl_avltree_list.c: Likewise.
10275         * lib/gl_avltree_oset.c: Likewise.
10276         * lib/gl_avltreehash_list.c: Likewise.
10277         * lib/gl_carray_list.c: Likewise.
10278         * lib/gl_linked_list.c: Likewise.
10279         * lib/gl_linkedhash_list.c: Likewise.
10280         * lib/gl_list.c: Likewise.
10281         * lib/gl_oset.c: Likewise.
10282         * lib/gl_rbtree_list.c: Likewise.
10283         * lib/gl_rbtree_oset.c: Likewise.
10284         * lib/gl_rbtreehash_list.c: Likewise.
10285         * lib/imaxabs.c: Likewise.
10286         * lib/imaxdiv.c: Likewise.
10287         * lib/javacomp.c: Likewise.
10288         * lib/javaexec.c: Likewise.
10289         * lib/javaversion.c: Likewise.
10290         * lib/linebreak.c: Likewise.
10291         * lib/localcharset.c: Likewise.
10292         * lib/lock.c: Likewise.
10293         * lib/mbchar.c: Likewise.
10294         * lib/mbswidth.c: Likewise.
10295         * lib/mkdtemp.c: Likewise.
10296         * lib/pipe.c: Likewise.
10297         * lib/printf-args.c: Likewise.
10298         * lib/printf-parse.c: Likewise.
10299         * lib/progname.c: Likewise.
10300         * lib/progreloc.c: Likewise.
10301         * lib/readlink.c: Likewise.
10302         * lib/sh-quote.c: Likewise.
10303         * lib/stpcpy.c: Likewise.
10304         * lib/stpncpy.c: Likewise.
10305         * lib/strcasecmp.c: Likewise.
10306         * lib/strcasestr.c: Likewise.
10307         * lib/strcspn.c: Likewise.
10308         * lib/striconv.c: Likewise.
10309         * lib/strncasecmp.c: Likewise.
10310         * lib/strnlen1.c: Likewise.
10311         * lib/strstr.c: Likewise.
10312         * lib/strtok_r.c: Likewise.
10313         * lib/tls.c: Likewise.
10314         * lib/tmpdir.c: Likewise.
10315         * lib/unicodeio.c: Likewise.
10316         * lib/unsetenv.c: Likewise.
10317         * lib/vasnprintf.c: Likewise.
10318         * lib/vasprintf.c: Likewise.
10319         * lib/wait-process.c: Likewise.
10320         * lib/xallocsa.c: Likewise.
10321         * lib/xsetenv.c: Likewise.
10322         * lib/xstriconv.c: Likewise.
10323
10324 2006-09-13  Simon Josefsson  <jas@extundo.com>
10325
10326         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
10327         that internally, suggested by Ralf Wildenhues
10328         <Ralf.Wildenhues@gmx.de>.
10329
10330 2006-09-13  Simon Josefsson  <jas@extundo.com>
10331
10332         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
10333         @LIBOBJS@.
10334         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10335
10336 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
10337
10338         * lib/_fpending.c: Include <config.h> unconditionally, since we no
10339         longer worry about uses that don't define HAVE_CONFIG_H.
10340         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
10341         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
10342         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
10343         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
10344         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
10345         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
10346         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
10347         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
10348         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
10349         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
10350         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
10351         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
10352         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
10353         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
10354         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
10355         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
10356         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
10357         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
10358         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
10359         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
10360         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
10361         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
10362         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
10363         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
10364         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
10365         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
10366         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
10367         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
10368         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
10369         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
10370         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
10371         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
10372         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
10373         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
10374         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
10375         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
10376         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
10377         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
10378         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
10379         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
10380         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
10381         Likewise.
10382
10383 2006-09-13  Eric Blake  <ebb9@byu.net>
10384
10385         * lib/getopt.c: Fix typo in last commit.
10386
10387 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
10388
10389         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
10390         dgettext.
10391
10392 2006-09-12  Jim Meyering  <jim@meyering.net>
10393
10394         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
10395         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
10396         Reported by Nelson H. F. Beebe.
10397
10398 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
10399
10400         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
10401         program_invocation_name and program_invocation_short_name are
10402         initialized.
10403         * lib/argp-namefrob.h: Move declarations of program_invocation_name
10404         and program_invocation_short_name to argp.h, so they are visible
10405         to user programs.
10406         * lib/argp.h: Likewise
10407
10408 2006-09-10  Bruno Haible  <bruno@clisp.org>
10409
10410         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
10411         m4/inttypes_h.m4, m4/uintmax_t.m4.
10412
10413 2006-09-10  Bruno Haible  <bruno@clisp.org>
10414
10415         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
10416         gl_AC_TYPE_UINTMAX_T.
10417
10418 2006-09-10  Bruno Haible  <bruno@clisp.org>
10419
10420         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
10421
10422 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
10423
10424         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
10425         convention.  Text proposed by Bruno Haible.
10426         (struct argp_option): Document the use of N_() wrappers.
10427
10428         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
10429         '\v', and translate the two parts separately, instead of feeding
10430         the whole string to gettext.  This allows to exclude
10431         '\v' from the strings visible to the translator by writing doc
10432         strings as N_("..") "\v" N_("..").
10433
10434 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
10435
10436         * config/srclist.txt: Undo latest change; the bug was fixed.
10437
10438 2006-09-09  Bruno Haible  <bruno@clisp.org>
10439
10440         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
10441         assignments if building a library without libtool.
10442         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
10443         in func_emit_lib_Makefile_am.
10444         (func_import): When building a static library libfoo.a, arrange to
10445         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
10446         (func_create_testdir): Likewise.
10447         * modules/gc (configure.ac, Makefile.am): If building statically,
10448         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
10449         * modules/iconvme (configure.ac, Makefile.am): Likewise.
10450         * modules/striconv (configure.ac, Makefile.am): Likewise.
10451         Based on a suggestion by Ralf Wildenhues.
10452
10453 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
10454
10455         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
10456         Check for unistd.h too, since Autoconf doesn't assume POSIX.
10457         Also:
10458
10459         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
10460         Add year_2050_test to catch glibc bug 2821
10461         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
10462
10463         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
10464         Prefer #ifdef to #if.
10465
10466         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
10467         Return from 'main' instead of calling 'exit'.
10468
10469 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
10470
10471         * lib/mktime.c (guess_time_tm): Fix bug where mktime
10472         returned the maximum time_t value rather than (time_t) -1.
10473         Problem originally reported by William Bardwell
10474         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
10475
10476         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
10477         Moved to here ...
10478         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
10479         ... from here.
10480
10481 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
10482
10483         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
10484         2821 is fixed.
10485
10486 2006-09-08  Jim Meyering  <jim@meyering.net>
10487
10488         Don't make generated files read-only.  That would bother too many
10489         people.  However, do retain the ability to work when targets are
10490         read-only: remove the destination and temporary files before writing
10491         them (when generated via sed or echo), or by using the -f option for
10492         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
10493         * modules/alloca-opt, modules/argz, modules/arpa_inet:
10494         * modules/byteswap, modules/configmake, modules/fcntl:
10495         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
10496         * modules/localcharset, modules/netinet_in, modules/poll:
10497         * modules/stdbool, modules/stdint, modules/sys_select:
10498         * modules/sys_socket, modules/sys_stat, modules/sysexits:
10499
10500 2006-09-08  Jim Meyering  <jim@meyering.net>
10501
10502         Avoid new build failure on FreeBSD 6.0.
10503         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
10504         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
10505         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
10506
10507 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10508
10509         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
10510
10511 2006-09-07  Jim Meyering  <jim@meyering.net>
10512
10513         Fix global typo in last change: use chmod u-w, not chmod u-x.
10514         Spotted by Paul Eggert and Bruce Korb.
10515         * modules/alloca-opt, modules/argz, modules/arpa_inet:
10516         * modules/byteswap, modules/configmake, modules/fcntl:
10517         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
10518         * modules/localcharset, modules/netinet_in, modules/poll:
10519         * modules/stdbool, modules/stdint, modules/sys_select:
10520         * modules/sys_socket, modules/sys_stat, modules/sysexits:
10521
10522 2006-09-06  Jim Meyering  <jim@meyering.net>
10523
10524         Make generated files be read-only.
10525         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
10526         Ensure that each generated file is now read-only.
10527         * modules/argz: Likewise.
10528         * modules/arpa_inet: Likewise.
10529         * modules/byteswap: Likewise.
10530         * modules/configmake: Likewise.
10531         * modules/fcntl: Likewise.
10532         * modules/fnmatch: Likewise.
10533         * modules/getopt: Likewise.
10534         * modules/glob: Likewise.
10535         * modules/inttypes: Likewise.
10536         * modules/netinet_in: Likewise.
10537         * modules/poll: Likewise.
10538         * modules/stdbool: Likewise.
10539         * modules/stdint: Likewise.
10540         * modules/sys_select: Likewise.
10541         * modules/sys_socket: Likewise.
10542         * modules/sys_stat: Likewise.
10543         * modules/sysexits: Likewise.
10544         * modules/localcharset: Same as above, but continue using temporary
10545         file named "t-$@" (why different?) rather than the "$@-t" used
10546         everywhere else.
10547
10548         * modules/sysexits (Makefile.am): Replace literal occurrences
10549         of "sysexit.h" more readable, and more consistent, "$@".
10550
10551 2006-09-06  Bruno Haible  <bruno@clisp.org>
10552
10553         * modules/striconv: New file.
10554         * modules/xstriconv: New file.
10555         * MODULES.html.sh (Internationalization functions): Add striconv,
10556         xstriconv.
10557
10558 2006-09-06  Bruno Haible  <bruno@clisp.org>
10559
10560         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
10561         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
10562         not using libtool correctly.
10563
10564 2006-09-06  Bruno Haible  <bruno@clisp.org>
10565
10566         * lib/striconv.h: New file.
10567         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
10568         iconvstring.c.
10569         * lib/xstriconv.h: New file.
10570         * lib/xstriconv.c: New file.
10571
10572 2006-09-06  Bruno Haible  <bruno@clisp.org>
10573
10574         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
10575         lib_..._LDFLAGS.
10576
10577 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10578
10579         * lib/argz_.h: Sync from Libtool.
10580
10581         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
10582                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10583
10584         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
10585
10586 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
10587
10588         * modules/trim: New file.
10589
10590 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
10591
10592         * lib/trim.h: New file.
10593         * lib/trim.c: New file.
10594
10595 2006-09-05  Bruno Haible  <bruno@clisp.org>
10596
10597         * MODULES.html.sh (String handling): Add trim.
10598
10599 2006-09-04  Karl Berry  <karl@gnu.org>
10600
10601         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
10602         until next release.
10603
10604 2006-09-03  Bruno Haible  <bruno@clisp.org>
10605
10606         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
10607         correctly.
10608
10609 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
10610
10611         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
10612         not gl_GETLOADAVG.  Omit unneeded semicolons.
10613         Problems reported by Ralf Wildenhues in
10614         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
10615         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
10616         at the end, which is the usual gnulib style.
10617
10618         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
10619         of doing all the work ourselves.
10620         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
10621         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
10622
10623 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
10624
10625         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
10626         Problem reported by Ralf Wildenhues in
10627         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
10628
10629         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
10630         HAVE_STRUCT_STATFS_F_FSTYPENAME.
10631
10632 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
10633
10634         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
10635         yesterday's patch by changing test -n to test -z.
10636
10637 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
10638
10639         * modules/getloadavg (Files): Add m4/getloadavg.m4.
10640         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
10641         the former is now obsolescent.
10642
10643         * modules/chdir-long (Depends-on): Add fcntl.
10644
10645 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
10646
10647         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
10648         obsolescent, and programs should use gnulib instead.
10649         * m4/getloadavg.m4: New file, with contents taken from Autoconf
10650         but with prefixes changed.
10651
10652 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
10653
10654         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
10655         or stdbool.h, because they might not exist while configuring.
10656
10657         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
10658         Don't include unistd.h or limits.h; not needed, since chdir-long.h
10659         does that for us.
10660         (O_DIRECTORY): Remove.
10661
10662 2006-08-31  Eric Blake  <ebb9@byu.net>
10663
10664         * gnulib-tool: Don't let emacs change spaces to TAB.
10665
10666 2006-08-31  Bruno Haible  <bruno@clisp.org>
10667
10668         * gnulib-tool: When calling func_import more than once, do it in a
10669         subshell.
10670         Reported by Eric Blake <ebb9@byu.net>.
10671
10672 2006-08-31  Bruno Haible  <bruno@clisp.org>
10673
10674         * gnulib-tool (nl): Remove variable.
10675         (sed_transform_lib_file): Use more robust test for config-h module.
10676         (func_import): Fix typo in 2006-08-25 patch.
10677
10678 2006-08-31  Bruno Haible  <bruno@clisp.org>
10679
10680         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
10681         specified, augment Makefile.am variables instead of assigning them.
10682
10683 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
10684
10685         Work around a bug in both the Linux and SunOS 64-bit kernels:
10686         nanosleep mishandles sleeps for longer than 2**31 seconds.
10687         Problem reported by Frank v Waveren in
10688         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
10689         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
10690         Check for nanosleep bug.
10691         (LIB_NANOSLEEP): Append clock_gettime library if needed.
10692
10693 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
10694
10695         Work around a bug in both the Linux and SunOS 64-bit kernels:
10696         nanosleep mishandles sleeps for longer than 2**31 seconds.
10697         Problem reported by Frank v Waveren in
10698         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
10699         * lib/nanosleep.c (BILLION): New constant.
10700         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
10701         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
10702         implementation.
10703
10704 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
10705
10706         * modules/nanosleep (Depends-on): Add gettime.
10707
10708 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
10709         and Simon Josefsson  <jas@extundo.com>
10710         and Oskar Liljeblad  <oskar@osk.mine.nu>
10711
10712         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
10713         * gnulib-tool (func_import): New license type 'unmodifiable license
10714         text'.
10715         * modules/fdl: Use it.  Longer description.
10716         * module/gpl, module/lgpl: New files.
10717
10718 2006-08-30  Jim Meyering  <jim@meyering.net>
10719
10720         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
10721         shadowing the parameter.
10722
10723 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10724
10725         Sync from Libtool:
10726
10727         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10728
10729         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
10730         sharing with gnulib.  Report by Eric Blake.
10731
10732 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
10733
10734         * modules/isapipe: New file.
10735         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
10736
10737 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
10738
10739         * modules/configmake (Makefile.am): Add a comment, and omit
10740         the CONFIGMAKE_ prefix from generated macro names.  Suggested
10741         by Bruno Haible.
10742
10743 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
10744
10745         * m4/isapipe.m4: New file.
10746
10747 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
10748
10749         * lib/isapipe.c, lib/isapipe.h: New files.
10750
10751 2006-08-29  Jim Meyering  <jim@meyering.net>
10752
10753         * modules/configmake (Makefile.am): Make configmake.h depend on
10754         Makefile.  Otherwise, a stale configmake.h could hang around.
10755
10756 2006-08-29  Eric Blake  <ebb9@byu.net>
10757
10758         * lib/error.c (error_at_line, print_errno_message): Match libc, after
10759         resolution of upstream bug 3044.
10760
10761 2006-08-29  Bruno Haible  <bruno@clisp.org>
10762
10763         * modules/localcharset (Depends-on): Add configmake.
10764         (Makefile.am): Remove setting of LIBDIR through DEFS.
10765
10766 2006-08-29  Bruno Haible  <bruno@clisp.org>
10767
10768         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
10769         defined.
10770
10771 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
10772
10773         * modules/fcntl: New file.
10774         * modules/chdir-safer (Depends-on): Add fcntl.
10775         * modules/fts: Likewise.
10776         * modules/mkdir-p: Likewise.
10777
10778         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
10779         This undoes the most recent change, since we're now addressing the
10780         problem in a different way.
10781
10782         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
10783         into output, since the output might be called Makefile.am even
10784         if $makefile_name is something different.
10785         (func_import): Use $makefile_am rather than
10786         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
10787         empty.
10788
10789         * modules/inttypes (Files): Add m4/inttypes-h.m4.
10790
10791 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
10792
10793         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
10794         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
10795         recent change to stdint.m4, since we're now addressing the problem in a
10796         different way.
10797
10798 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
10799
10800         * m4/fcntl_h.m4: New file.
10801
10802 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
10803
10804         * lib/fcntl_.h: New file.
10805         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
10806         the fcntl module.
10807         * lib/dirchownmod.c: Likewise.
10808         * lib/fts.c: Likewise.
10809
10810         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
10811         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
10812         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
10813         just before including <inttypes.h>, to avoid circular inclusion.
10814
10815 2006-08-28  Jim Meyering  <jim@meyering.net>
10816
10817         * doc/visibility.texi: Actually read and correct the grammar of the
10818         sentence affected by yesterday's change.
10819
10820 2006-08-28  Eric Blake  <ebb9@byu.net>
10821
10822         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
10823         needs wrapper.
10824
10825 2006-08-28  Eric Blake  <ebb9@byu.net>
10826
10827         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
10828
10829 2006-08-28  Eric Blake  <ebb9@byu.net>
10830
10831         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
10832
10833 2006-08-28  Bruno Haible  <bruno@clisp.org>
10834
10835         * modules/c-strstr: New file, from GNU gettext.
10836         * MODULES.html.sh (String handling): Add c-strstr.
10837
10838 2006-08-28  Bruno Haible  <bruno@clisp.org>
10839
10840         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
10841         macros.
10842         Reported by Eric Blake.
10843
10844 2006-08-28  Bruno Haible  <bruno@clisp.org>
10845
10846         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
10847         (VASNPRINTF): Return a string of length > INT_MAX without failing.
10848         * lib/vasprintf.c: Include errno.h, limits.h.
10849         (EOVERFLOW): New fallback definition.
10850         (vasprintf): Test here whether the string length is > INT_MAX.
10851         * lib/vsnprintf.c: Include errno.h, limits.h.
10852         (EOVERFLOW): New fallback definition.
10853         (vsnprintf): Fix bug when generated string was too long for the buffer.
10854         Test here whether the string length is > INT_MAX.
10855
10856 2006-08-28  Bruno Haible  <bruno@clisp.org>
10857
10858         * lib/inttypes_.h (SCNX*): Remove definitions.
10859         Reported by Eric Blake.
10860
10861 2006-08-28  Bruno Haible  <bruno@clisp.org>
10862
10863         * lib/c-strstr.h: New file, from GNU gettext.
10864         * lib/c-strstr.c: New file, from GNU gettext.
10865
10866 2006-08-28  Bruno Haible  <bruno@clisp.org>
10867
10868         * gnulib-tool: Reorder some statements.
10869
10870 2006-08-28  Bruno Haible  <bruno@clisp.org>
10871
10872         * gnulib-tool: New option --makefile-name.
10873         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
10874         $makefile_name.
10875         (func_import): Write $makefile_name to the cache file, and read it from
10876         there unless explicitly specified. Use $makefile_name as file name
10877         instead of Makefile.am. Adjust the recommendations accordingly.
10878
10879 2006-08-28  Bruno Haible  <bruno@clisp.org>
10880
10881         * gnulib-tool (func_verify_module): Check against misapplying patch.
10882
10883 2006-08-28  Bruno Haible  <bruno@clisp.org>
10884
10885         * gnulib-tool (func_relativize, func_relconcat): New functions.
10886         Give an error if --local-dir is given with --update.
10887         Remove trailing slashes from $local_gnulib_dir.
10888         (func_import): Store the relativized $local_gnulib_dir in
10889         gnulib-cache.m4, and read it from there if not specified explicitly.
10890
10891 2006-08-28  Bruno Haible  <bruno@clisp.org>
10892
10893         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
10894         is the current directory. Respect also $local_gnulib_dir.
10895
10896 2006-08-28  Bruno Haible  <bruno@clisp.org>
10897             Simon Josefsson  <jas@extundo.com>
10898
10899         BeOS portability.
10900         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
10901
10902 2006-08-27  Jim Meyering  <jim@meyering.net>
10903
10904         * doc/visibility.texi: Remove duplicate word: "pointer".
10905
10906 2006-08-26  Bruno Haible  <bruno@clisp.org>
10907
10908         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
10909         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
10910         (Makefile.am): Create inttypes.h from inttypes_.h.
10911         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
10912
10913         * modules/imaxabs: New file.
10914
10915         * modules/imaxdiv: New file.
10916
10917 2006-08-26  Bruno Haible  <bruno@clisp.org>
10918
10919         * m4/inttypes.m4: New file.
10920         * m4/_inttypes_h.m4: Remove file.
10921         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
10922         PRI_MACROS_BROKEN.
10923         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
10924
10925         * m4/imaxabs.m4: New file.
10926
10927         * m4/imaxdiv.m4: New file.
10928
10929 2006-08-26  Bruno Haible  <bruno@clisp.org>
10930
10931         * lib/inttypes_.h: New file.
10932         * lib/inttypes.h: Remove file.
10933         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
10934
10935         * lib/imaxabs.c: New file.
10936
10937         * lib/imaxdiv.c: New file.
10938
10939 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
10940
10941         New config-h module, so that "make" output needn't be cluttered
10942         by -DHAVE_CONFIG_H.
10943         * MODULES.html.sh (Support for building libraries and executables):
10944         Add config-h.
10945         * modules/config-h: New file.
10946         * gnulib-tool (nl, sed_transform_lib_file): New vars.
10947         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
10948         the config-h module is used.
10949
10950         New configmake module, so that "make" output needn't be cluttered
10951         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
10952         * MODULES.html.sh (Support for building libraries and executables):
10953         Add configmake.
10954         * modules/configmake: New file.
10955
10956 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
10957
10958         * m4/config-h.m4: New file.
10959
10960 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
10961
10962         * config/srclist.txt: Add elisp-comp.
10963
10964 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
10965
10966         * MODULES.html.sh (Support for building libraries and executables):
10967         Add elisp-comp.
10968         * build-aux/elisp-comp: New file.
10969         * modules/elisp-comp: New file.
10970
10971 2006-08-24  Bruno Haible  <bruno@clisp.org>
10972
10973         * gnulib-tool (func_create_testdir): Use non-default values of
10974         sourcebase and m4base.
10975
10976 2006-08-24  Bruno Haible  <bruno@clisp.org>
10977
10978         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
10979         HTML structure.
10980
10981 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
10982
10983         * modules/openat (Depends-on): Add lchown.
10984
10985 2006-08-23  Bruno Haible  <bruno@clisp.org>
10986
10987         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
10988         of gl_LOCK_EARLY instead of gl_LOCK.
10989
10990 2006-08-23  Bruno Haible  <bruno@clisp.org>
10991
10992         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
10993         on OSF/1 to no.
10994         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
10995
10996 2006-08-23  Bruno Haible  <bruno@clisp.org>
10997
10998         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
10999         as unusable.
11000
11001         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
11002         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
11003         (gl_LOCK): New macro.
11004
11005 2006-08-22  Simon Josefsson  <jas@extundo.com>
11006
11007         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
11008         to md5 module.
11009
11010 2006-08-22  Simon Josefsson  <jas@extundo.com>
11011
11012         * MODULES.html.sh: Add "Support for maintaining and release
11013         projects".
11014
11015         * build-aux/gnupload: New file, from coreutils.
11016
11017 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
11018
11019         Avoid the need for AC_LIBSOURCES in m4 macros.
11020         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
11021         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
11022         * modules/check-version (EXTRA_DIST): Add check-version.h.
11023         * modules/crc (EXTRA_DIST): Add crc.h.
11024         * modules/des (EXTRA_DIST): Add des.h.
11025         * modules/gc (EXTRA_DIST): Add gc.h.
11026         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
11027         * modules/getline (EXTRA_DIST): Add getline.h.
11028         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
11029         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
11030         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
11031         * modules/md2 (EXTRA_DIST): Add md2.h.
11032         * modules/md4 (EXTRA_DIST): Add md4.h.
11033         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
11034         * modules/read-file (EXTRA_DIST): Add read-file.h.
11035         * modules/readline (EXTRA_DIST): Add readline.h.
11036         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
11037         rijndael-api-fst.h.
11038
11039 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
11040
11041         * m4/rijndael.m4 (gl_ARCFOUR):
11042         * m4/arctwo.m4 (gl_ARCTWO):
11043         * m4/check-version.m4 (gl_CHECK_VERSION):
11044         * m4/crc.m4 (gl_CRC):
11045         * m4/des.m4 (gl_DES):
11046         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
11047         * m4/gc.m4 (gl_GC):
11048         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
11049         * m4/getline.m4 (gl_FUNC_GETLINE):
11050         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
11051         * m4/hmac-md5.m4 (gl_HMAC_MD5):
11052         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
11053         * m4/md2.m4 (gl_MD2):
11054         * m4/md4.m4 (gl_MD4):
11055         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
11056         * m4/read-file.m4 (gl_FUNC_READ_FILE):
11057         * m4/readline.m4 (gl_FUNC_READLINE):
11058         * m4/rijndael.m4 (gl_RIJNDAEL):
11059         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
11060         to get the necessary .h files and whatnot.
11061
11062 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
11063
11064         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
11065         gnulib rather than the other way around.
11066         * config/srclistvars.sh (COREUTILS): Remove.
11067
11068 2006-08-22  Jim Meyering  <jim@meyering.net>
11069
11070         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
11071
11072         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
11073
11074 2006-08-22  Eric Blake  <ebb9@byu.net>
11075
11076         * modules/regexprops-generic: New file.
11077         * MODULES.html.sh (Support for building documentation): List it.
11078
11079 2006-08-22  Eric Blake  <ebb9@byu.net>
11080
11081         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
11082         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
11083         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
11084         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
11085
11086 2006-08-22  Bruno Haible  <bruno@clisp.org>
11087
11088         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
11089         and lib_LTLIBRARIES like the other lib_* variables.
11090
11091 2006-08-22  Bruno Haible  <bruno@clisp.org>
11092
11093         * build-aux/x-to-1.in: New file, from GNU gettext.
11094
11095 2006-08-22  Bruno Haible  <bruno@clisp.org>
11096
11097         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
11098         <utmpx.h> exists.
11099
11100 2006-08-22  Bruno Haible  <bruno@clisp.org>
11101
11102         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
11103         <utmpx.h> exists.
11104
11105 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
11106
11107         BeOS portability.
11108         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
11109         exist.
11110         Problem reported by Bruno Haible.
11111
11112 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
11113
11114         Avoid the need for AC_LIBSOURCES in m4 macros.
11115         * modules/acl (EXTRA_DIST): Add acl.h.
11116         * modules/argmatch (Files): Add m4/argmatch.m4.
11117         (configure.ac): Add gl_ARGMATCH.
11118         (EXTRA_DIST): Renamed from lib_SOURCES, for
11119         consistency with the other modules.  Remove argmatch.c.
11120         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
11121         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
11122         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
11123         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
11124         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
11125         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
11126         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
11127         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
11128         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
11129         * modules/closeout (EXTRA_DIST): Add closeout.h.
11130         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
11131         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
11132         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
11133         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
11134         dirname.h; remove basename.c and stripslash.c.
11135         * modules/exclude (EXTRA_DIST): Add exclude.h.
11136         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
11137         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
11138         * modules/file-type (EXTRA_DIST): Add file-type.h.
11139         * modules/filemode (EXTRA_DIST): Add filemode.h.
11140         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
11141         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
11142         * modules/fpending (EXTRA_DIST): Add __fpending.h.
11143         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
11144         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
11145         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
11146         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
11147         * modules/getdate (EXTRA_DIST): Add getdate.c.
11148         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
11149         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
11150         * modules/getpass (EXTRA_DIST): Add getpass.h.
11151         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
11152         * modules/group-member (EXTRA_DIST): Add group-member.h.
11153         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
11154         * modules/hash (EXTRA_DIST): Add hash.h.
11155         * modules/human (EXTRA_DIST): Add human.h.
11156         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
11157         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
11158         * modules/lchown (EXTRA_DIST): Add lchown.h.
11159         * modules/long-options (EXTRA_DIST): Add long-options.h.
11160         * modules/lstat (EXTRA_DIST): Add lstat.h.
11161         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
11162         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
11163         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
11164         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
11165         * modules/memxor (EXTRA_DIST): Add memxor.h.
11166         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
11167         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
11168         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
11169         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
11170         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
11171         * modules/physmem (EXTRA_DIST): Add physmem.h.
11172         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
11173         * modules/posixver (EXTRA_DIST): Add posixver.h.
11174         * modules/quote (EXTRA_DIST): Add quote.h.
11175         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
11176         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
11177         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
11178         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
11179         regex_internal.h regexec.c.
11180         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
11181         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
11182         * modules/same (EXTRA_DIST): Add same.h.
11183         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
11184         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
11185         * modules/savedir (EXTRA_DIST): Add savedir.h.
11186         * modules/sha1 (EXTRA_DIST): Add sha1.h.
11187         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
11188         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
11189         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
11190         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
11191         * modules/strdup (EXTRA_DIST): Add strdup.h.
11192         * modules/strftime (EXTRA_DIST): Add strftime.h.
11193         * modules/strndup (EXTRA_DIST): Add strndup.h.
11194         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
11195         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
11196         * modules/time_r (EXTRA_DIST): Add time_r.h.
11197         * modules/timespec (EXTRA_DIST): Add timespec.h.
11198         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
11199         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
11200         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
11201         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
11202         * modules/userspec (EXTRA_DIST): Add userspec.h.
11203         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
11204         * modules/utimens (EXTRA_DIST): Add utimens.h.
11205         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
11206         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
11207         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
11208         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
11209         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
11210         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
11211         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
11212         * modules/yesno (EXTRA_DIST): Add yesno.h.
11213
11214 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
11215
11216         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
11217
11218         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
11219         * m4/dev-ino.m4, same-inode.m4: Remove.
11220
11221         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
11222         * m4/acl.m4 (AC_FUNC_ACL):
11223         * m4/backupfile.m4 (gl_BACKUPFILE):
11224         * m4/c-strtod.m4 (gl_C99_STRTOLD):
11225         * m4/canon-host.m4 (gl_CANON_HOST):
11226         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
11227         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
11228         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
11229         * m4/cloexec.m4 (gl_CLOEXEC):
11230         * m4/close-stream.m4 (gl_CLOSE_STREAM):
11231         * m4/closeout.m4 (gl_CLOSEOUT):
11232         * m4/dirfd.m4 (gl_FUNC_DIRFD):
11233         * m4/dirname.m4 (gl_DIRNAME):
11234         * m4/exclude.m4 (gl_EXCLUDE):
11235         * m4/exitfail.m4 (gl_EXITFAIL):
11236         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
11237         * m4/file-type.m4 (gl_FILE_TYPE):
11238         * m4/filemode.m4 (gl_FILEMODE):
11239         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
11240         * m4/fpending.m4 (gl_FUNC_FPENDING):
11241         * m4/fprintftime.m4 (gl_FPRINTFTIME):
11242         * m4/fts.m4 (gl_FUNC_FTS):
11243         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
11244         * m4/getdate.m4 (gl_GETDATE):
11245         * m4/gethrxtime.m4 (gl_GETHRXTIME):
11246         * m4/getpagesize.m4 (gl_GETPAGESIZE):
11247         * m4/getpass.m4 (gl_FUNC_GETPASS):
11248         * m4/gettime.m4 (gl_GETTIME):
11249         * m4/getugroups.m4 (gl_GETUGROUPS):
11250         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
11251         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
11252         * m4/hard-locale.m4 (gl_HARD_LOCALE):
11253         * m4/hash.m4 (gl_HASH):
11254         * m4/idcache.m4 (gl_IDCACHE):
11255         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
11256         * m4/lchown.m4 (gl_FUNC_LCHOWN):
11257         * m4/long-options.m4 (gl_LONG_OPTIONS):
11258         * m4/lstat.m4 (gl_FUNC_LSTAT):
11259         * m4/md5.m4 (gl_MD5):
11260         * m4/memcasecmp.m4 (gl_MEMCASECMP):
11261         * m4/memcoll.m4 (gl_MEMCOLL):
11262         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
11263         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
11264         * m4/memxor.m4 (gl_MEMXOR):
11265         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
11266         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
11267         * m4/modechange.m4 (gl_MODECHANGE):
11268         * m4/mountlist.m4 (gl_MOUNTLIST):
11269         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
11270         * m4/openat.m4 (gl_FUNC_OPENAT):
11271         * m4/pathmax.m4 (gl_PATHMAX):
11272         * m4/physmem.m4 (gl_PHYSMEM):
11273         * m4/posixtm.m4 (gl_POSIXTM):
11274         * m4/posixver.m4 (gl_POSIXVER):
11275         * m4/quote.m4 (gl_QUOTE):
11276         * m4/quotearg.m4 (gl_QUOTEARG):
11277         * m4/readtokens.m4 (gl_READTOKENS):
11278         * m4/readutmp.m4 (gl_READUTMP):
11279         * m4/regex.m4 (gl_REGEX):
11280         * m4/safe-read.m4 (gl_SAFE_READ):
11281         * m4/safe-write.m4 (gl_SAFE_WRITE):
11282         * m4/same.m4 (gl_SAME):
11283         * m4/save-cwd.m4 (gl_SAVE_CWD):
11284         * m4/savedir.m4 (gl_SAVEDIR):
11285         * m4/settime.m4 (gl_SETTIME):
11286         * m4/sha1.m4 (gl_SHA1):
11287         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
11288         * m4/stat-macros.m4 (gl_STAT_MACROS):
11289         * m4/stat-time.m4 (gl_STAT_TIME):
11290         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
11291         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
11292         * m4/strdup.m4 (gl_FUNC_STRDUP):
11293         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
11294         * m4/strndup.m4 (gl_FUNC_STRNDUP):
11295         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
11296         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
11297         * m4/time_r.m4 (gl_TIME_R):
11298         * m4/timespec.m4 (gl_TIMESPEC):
11299         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
11300         * m4/unlinkdir.m4 (gl_UNLINKDIR):
11301         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
11302         * m4/userspec.m4 (gl_USERSPEC):
11303         * m4/utimecmp.m4 (gl_UTIMECMP):
11304         * m4/utimens.m4 (gl_UTIMENS):
11305         * m4/xalloc.m4 (gl_XALLOC):
11306         * m4/xgetcwd.m4 (gl_XGETCWD):
11307         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
11308         * m4/xreadlink.m4 (gl_XREADLINK):
11309         * m4/xstrtod.m4 (gl_XSTRTOD):
11310         * m4/yesno.m4 (gl_YESNO):
11311         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
11312         to get the necessary .h files and whatnot.
11313
11314 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
11315             Bruno Haible  <bruno@clisp.org>
11316
11317         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
11318         /bin/sh understanding of '!' conditional negation.
11319
11320 2006-08-21  Jim Meyering  <jim@meyering.net>
11321
11322         * modules/openat (Depends-on): Really alphabetize.
11323
11324         * modules/acl (Depends-on): Add error and quote.
11325
11326         * check-module (find_included_lib_files): Add at-func.c to the
11327         ok-to-include-more-than-once white list.
11328
11329         * modules/openat (Depends-on): Add lstat.  Alphabetize.
11330
11331 2006-08-21  Bruno Haible  <bruno@clisp.org>
11332
11333         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
11334         Emit a pkgdata_DATA variable only if some snippets add contents to it.
11335         Reported by Martin Lambers <marlam@marlam.de>.
11336
11337 2006-08-21  Bruno Haible  <bruno@clisp.org>
11338
11339         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
11340         specify an installation location, don't emit a noinst_LIBRARIES or
11341         noinst_LTLIBRARIES assignment.
11342
11343 2006-08-21  Bruno Haible  <bruno@clisp.org>
11344
11345         BeOS portability.
11346         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
11347         BeOS has mbrtowc() but no <wctype.h>.
11348
11349 2006-08-21  Bruno Haible  <bruno@clisp.org>
11350
11351         BeOS portability.
11352         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
11353         exist.
11354
11355 2006-08-21  Bruno Haible  <bruno@clisp.org>
11356
11357         BeOS portability.
11358         * lib/mbchar.h: Include <wctype.h> only if it exists.
11359
11360 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
11361
11362         Remove files that are no longer needed by their respective modules.
11363         * m4/obstack.m4: Remove.
11364         * m4/strerror_r.m4: Remove.
11365         * m4/uint32_t.m4: Remove.
11366         * m4/uintptr_t.m4: Remove.
11367         * m4/ullong_max.m4: Remove.
11368         * m4/xstrtoimax.m4: Remove.
11369         * m4/xstrtoumax.m4: Remove.
11370
11371         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
11372         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
11373         dependencies now capture this.
11374
11375         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
11376         Do not use AC_LIBSOURCES, since gnulib modules now do this.
11377         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
11378         * m4/human.m4 (gl_HUMAN): Likewise.
11379         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
11380         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
11381
11382         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
11383
11384         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
11385         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
11386         stdint.
11387         * m4/human.m4 (gl_HUMAN): Likewise.
11388         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
11389         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
11390         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
11391         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
11392         * m4/xstrtol (gl_XSTRTOL): Likewise.
11393
11394         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
11395         AC_TYPE_LONG_LONG_INT.
11396         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
11397         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
11398         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
11399         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
11400
11401         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
11402         on stdbool.
11403
11404         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
11405         (gl_PREREQ_XSTRTOUL): Remove.
11406
11407         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
11408
11409         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
11410         mode.
11411
11412 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
11413
11414         Add and change modules to make it easier for coreutils to use
11415         gnulib-tool.
11416         * modules/backupfile (Files): Remove m4/d-ino.m4.
11417         (Depends-on): Add d-ino.
11418         * modules/cycle-check (Depends-on): Add stdint.
11419         (lib_SOURCES): Add cycle-check.h.
11420         * modules/d-ino: New module.
11421         * modules/d-type: New module.
11422         * modules/error (Files): Remove m4/strerror_r.m4.
11423         * modules/filemode (Files): Add m4/st_dm_mode.m4.
11424         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
11425         m4/inttypes_h.m4, m4/uintmax_t.m4.
11426         (Depends-on): Add stdint.
11427         (lib_SOURCES): Add fsusage.h.
11428         * modules/getcwd (Files): Remove d-ino.m4.
11429         (Depends-on): Add d-ino.
11430         * modules/getndelim2 (Depends-on): Add stdint.
11431         * modules/glob (Files): Remove m4/d-type.m4.
11432         (Depends-on): Add d-type.
11433         * modules/host-os: New module.
11434         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
11435         m4/inttypes_h.m4, m4/uintmax_t.m4.
11436         * Depends-on: Add stdint.
11437         (lib_SOURCES): Add human.h.
11438         * modules/inttostr (Files): Remove m4/intmax_t.m4,
11439         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
11440         m4/uintmax_t.m4, m4/ulonglong.m4.
11441         (Depends-on): Add stdint.
11442         (EXTRA_DIST): Add inttostr.h.
11443         * modules/lchmod: New module.
11444         * modules/link-follow: New module.
11445         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
11446         (Depends-on): Add lchmod.
11447         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
11448         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
11449         (Depends-on): Add stdint.
11450         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
11451         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
11452         (Depends-on): Add stdint.
11453         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
11454         * modules/perl: New module.
11455         * modules/regex (Depends-on): Add stdint.
11456         * modules/rmdir-errno: New module.
11457         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
11458         m4/intmax_t.m4.
11459         (Depends-on): Add stdint.
11460         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
11461         m4/uintmax_t.m4.
11462         (Depends-on): Add stdint.
11463         * modules/unlink-busy: New module.
11464         * modules/utimecmp (Depends-on): Add stdint.
11465         * modules/uptime: New module.
11466         * modules/winsz-ioctl: New module.
11467         * modules/winsz-termios: New module.
11468         * modules/xnanosleep (Depends-on): Add nanosleep.
11469         * modules/ullong_max: Remove.
11470         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
11471         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
11472         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
11473         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
11474         (Depends-on): Add inttypes.
11475         (lib_SOURCES): Add xstrtol.h.
11476         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
11477         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
11478         * MODULES.html.sh: Move 'assert' into the assert section.
11479         Move 'dummy' into the linking section.
11480         Remove ullong_max.
11481         Add section for compatibility checks for POSIX:2001 functions,
11482         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
11483         winsz-ioctl, and winsz-termios into it.
11484         Add lchmod.
11485         Add top-level Misc section and put host-os, perl, and uptime
11486         into it.
11487
11488 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
11489
11490         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
11491         now assume the stdint module.  Do not include inttypes.h.
11492         * lib/fsusage.h: Likewise.
11493         * lib/getndelim2.c: Likewise.
11494         * lib/human.h: Likewise.
11495         * lib/inttostr.h: Likewise.
11496         * lib/obstack.c: Likewise.
11497         * lib/regex_internal.h: Likewise.
11498         * lib/tempname.c: Likewise.
11499         * lib/utimecmp.c: Likewise.
11500         * lib/xstrtol.h: Likewise.
11501
11502         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
11503
11504         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
11505         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
11506         * lib/xtime.h: Likewise.
11507
11508 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
11509
11510         * modules/openat (Files): Add lib/fchmodat.c.
11511         Fixes problem reported by Jay Youngman.
11512
11513 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
11514
11515         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
11516         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
11517
11518 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
11519             Bruno Haible  <bruno@clisp.org>
11520
11521         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
11522         and is a script that invokes bison. Tighten the code. Add comments.
11523
11524 2006-08-18  Jim Meyering  <jim@meyering.net>
11525
11526         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
11527         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
11528         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
11529         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
11530
11531 2006-08-18  Bruno Haible  <bruno@clisp.org>
11532
11533         * modules/bison-i18n: New file.
11534         * MODULES.html.sh (Internationalization functions): Add it.
11535
11536 2006-08-18  Bruno Haible  <bruno@clisp.org>
11537
11538         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
11539         sys/statvfs.h. When getmntinfo was found, check its declaration and
11540         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
11541
11542 2006-08-18  Bruno Haible  <bruno@clisp.org>
11543
11544         * m4/bison-i18n.m4: New file, from bison.
11545
11546 2006-08-18  Bruno Haible  <bruno@clisp.org>
11547
11548         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
11549         (ME_DUMMY): Treat "kernfs" as a dummy.
11550         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
11551
11552 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
11553
11554         Update from coreutils.
11555
11556         2006-08-15  Jim Meyering  <jim@meyering.net>
11557
11558         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
11559
11560         2006-01-17  Jim Meyering  <jim@meyering.net>
11561
11562         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
11563
11564         2006-01-11  Jim Meyering  <jim@meyering.net>
11565
11566         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
11567         Check for the lchmod function.
11568
11569 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
11570
11571         Update from coreutils.
11572
11573         * lib/__fpending.h: Add copyright notice.
11574         * lib/fprintftime.h: Likewise.
11575         * lib/savedir.c: Use (C) in copyright notice.
11576         * lib/savedir.h: Likewise.
11577
11578         2006-08-15  Jim Meyering  <jim@meyering.net>
11579
11580         * lib/at-func.c: New file, with the logic of all emulated at-functions.
11581         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
11582         in support of the EXPECTED_ERRNO macro.
11583         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
11584         definitions.  Instead, define the appropriate symbols and include
11585         "at-func.c".
11586         * lib/mkdirat.c (mkdirat): Likewise.
11587         * lib/fchmodat.c (fchmodat): Likewise.
11588         (ENOSYS): Remove definition.
11589         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
11590         it.  Don't include "unistd--.h" -- it wasn't ever used.
11591
11592         2006-01-17  Jim Meyering  <jim@meyering.net>
11593
11594         Rewrite fts.c not to change the current working directory,
11595         by using openat, fstatat, fdopendir, etc..
11596
11597         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
11598         (HAVE_OPENAT_SUPPORT): Define.
11599         [_LIBC] (fchdir): Don't undef or define; no longer used.
11600         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
11601         Now, this `function' always succeeds, and consumes its file descriptor
11602         parameter -- so callers must not close such FDs.  Update callers.
11603         (diropen_fd, opendirat, cwd_advance_fd): New functions.
11604         (diropen): Add parameter, SP.  Adjust all callers.
11605         Implement using diropen_fd, rather than open.
11606         (fts_open): Initialize new member, fts_cwd_fd.
11607         Remove fts_rft-setting code.
11608         (fts_close): Close fts_cwd_fd, if necessary.
11609         (__opendir2): Define in terms of opendir or opendirat,
11610         depending on whether the FST_NOCHDIR flag is set.
11611         (fts_build): Since fts_safe_changedir consumes its FD, and since
11612         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
11613         and close the dup'd file descriptor upon failure.
11614         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
11615         (fts_safe_changedir): Tweak semantics to reflect that this function
11616         now calls cwd_advance_fd and hence consumes its FD argument.
11617         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
11618         [struct FTS] (fts_rft): Remove now-unused member.
11619         [struct FTS] (fts_cycle.state): Improve comment.
11620
11621         * lib/openat.c (openat_needs_fchdir): New function.
11622         * lib/openat.h (openat_needs_fchdir): Declare it.
11623
11624 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
11625
11626         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
11627         Problem and fix reported by Pádraig Brady in
11628         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
11629
11630 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
11631
11632         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
11633
11634 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
11635
11636         * lib/memcoll.c (memcoll): Optimize for the common case where the
11637         arguments are bytewise equal.
11638
11639 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
11640
11641         * doc/regexprops-generic.texi: Add a copyright notice.
11642
11643 2006-08-15  Bruno Haible  <bruno@clisp.org>
11644
11645         * modules/tmpdir (License): Change to LGPL.
11646
11647 2006-08-15  Bruno Haible  <bruno@clisp.org>
11648
11649         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
11650         module.
11651
11652 2006-08-14  Simon Josefsson  <jas@extundo.com>
11653
11654         * config/srclist.txt: Add gnupload.
11655
11656 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
11657
11658         Change copyright notice from LGPL 2 to GPL 2, since that's the
11659         standard form used in the gnulib repository.
11660         * tests/test-lock.c: Likewise.
11661         * tests/test-stdint.c: Likewise.
11662         * tests/test-tls.c: Likewise.
11663
11664         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
11665         prelude-manager.  User shorter URLs for GNU projects, without '?'.
11666         Add copyright notice.
11667
11668         * check-module: Add copyright notice.  Output a copyright
11669         notice if "--version" is specified.
11670         * modules/COPYING: New file.
11671         * tests/test-getaddrinfo.c: Add copyright notice.
11672         * tests/test-verify.c: Likewise.
11673
11674 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
11675
11676         Change copyright notice from LGPL 2 to GPL 2, since that's the
11677         standard form used in the gnulib repository.
11678         * lib/lock.c: LGPL -> GPL.
11679         * lib/lock.h: Likewise.
11680         * lib/strnlen1.c: Likewise.
11681         * lib/strnlen1.h: Likewise.
11682         * lib/tls.c: Likewise.
11683         * lib/tls.h: Likewise.
11684         * lib/tmpdir.c: Likewise.
11685
11686         * lib/TODO: Remove; this belongs only in coreutils.
11687
11688 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
11689
11690         Add copyright notices to long-enough files that lack them, since
11691         otherwise the files aren't clearly free.  Use the same notice that
11692         getdate.texi already uses.
11693         * doc/alloca-opt.texi: Add copyright notice.
11694         * doc/alloca.texi: Likewise.
11695         * doc/ctime.texi: Likewise.
11696         * doc/functions.texi: Likewise.
11697         * doc/gcd.texi: Likewise.
11698         * doc/gnulib-tool.texi: Likewise.
11699         * doc/inet_ntoa.texi: Likewise.
11700         * doc/visibility.texi: Likewise.
11701
11702         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
11703         * doc/quote.texi: Add copyright notice.
11704
11705         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
11706         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
11707         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
11708         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
11709         is now obsolete, and give a pointer to the Sun list.
11710         Add copyright notice.
11711
11712 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
11713
11714         * config/srclistvars.sh: Add copyright notice.
11715
11716 2006-08-14  Eric Blake  <ebb9@byu.net>
11717
11718         Import the following change from libc:
11719
11720         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
11721
11722         Upstream bug 2997.
11723         * lib/misc/error.c: Add space between program name and message if file
11724         name is missing.
11725
11726 2006-08-12  Karl Berry  <karl@gnu.org>
11727
11728         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
11729         remove, these originate in gnulib now.
11730
11731 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11732
11733         * doc/Makefile (standards.info standards.html standards.dvi):
11734         Also depend on make-stds.texi.
11735
11736 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
11737
11738         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
11739         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
11740
11741         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
11742         in wchar_t.  Problem reported by Eric Blake.
11743
11744         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
11745         LEN is smaller than SIZE.  Suggested by Bruno Haible.
11746         Also, help the compiler to keep LEN in a register.
11747
11748 2006-08-11  Eric Blake  <ebb9@byu.net>
11749
11750         * users.txt: Sort.  Add tar.
11751
11752 2006-08-11  Bruno Haible  <bruno@clisp.org>
11753
11754         * users.txt: New file.
11755
11756 2006-08-11  Bruno Haible  <bruno@clisp.org>
11757
11758         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
11759         before <wchar.h>. Needed for OSF/1 and BSD/OS.
11760
11761 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
11762
11763         * modules/snprintf (Depends-on): Remove minmax.
11764         (Maintainer): Add self and Bruno.
11765
11766 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
11767
11768         * lib/.cppi-disable: Add snprintf.h, socket_.h.
11769         * lib/snprintf.c: Include <errno.h> and <limits.h>.
11770         (EOVERFLOW): Define if the system does not.
11771         Do not include "minmax.h"; it wasn't used.
11772         (snprintf): Don't assume size_t promotes to an unsigned type.
11773         Fix bug when generated string was too long for the buffer: the
11774         buffer's contents are supposed to be the initial prefix of the
11775         output.  Don't assume vasnprintf returns EOVERFLOW if the size
11776         exceeds INT_MAX; do the check ourselves.
11777
11778         Import the following changes from libc:
11779
11780         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
11781
11782         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
11783         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
11784         set wc to the byte which couldn't be converted.
11785         (re_string_reconstruct): Don't clear valid_raw_len before calling
11786         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
11787         tip_context using re_string_context_at.
11788
11789         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
11790
11791         * lib/posix/regex.h: g++ still cannot handled [restrict].
11792
11793         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
11794
11795         * lib/posix/regex.h: Remove special handling for VMS.
11796
11797 2006-08-10  Jim Meyering  <jim@meyering.net>
11798
11799         * modules/same-inode: New module.
11800         * modules/dev-ino: New module.
11801         * modules/cycle-check: Depend on these modules, rather than simply
11802         including their .h files.
11803         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
11804         required via m4/cycle-check.m4.
11805         * modules/same: Depend on new same-inode module, rather than
11806         including same-inode.h.
11807         * modules/chdir-safer: New file.
11808
11809         * modules/chown (Depends-on): Add stat-macros.
11810
11811 2006-08-10  Jim Meyering  <jim@meyering.net>
11812
11813         * m4/cycle-check.m4: New file.
11814         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
11815         * m4/dev-ino.m4, m4/same-inode.m4: New files.
11816
11817 2006-08-10  Eric Blake  <ebb9@byu.net>
11818
11819         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
11820         in from original proposal.
11821
11822 2006-08-10  Eric Blake  <ebb9@byu.net>
11823         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11824
11825         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
11826         namespace.
11827
11828 2006-08-10  Bruno Haible  <bruno@clisp.org>
11829
11830         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
11831         as well.
11832
11833 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
11834
11835         Sync from coreutils.
11836
11837         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
11838
11839         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
11840         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
11841
11842 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
11843
11844         * modules/restrict: Remove; no longer needed now that we assume
11845         Autoconf 2.59 or later.
11846         * MODULES.html.sh: Remove 'restrict'.
11847         * modules/argp (Depends-on): Remove 'restrict'.
11848         * modules/base64 (Depends-on): Likewise.
11849         * modules/gc (Depends-on): Likewise.
11850         * modules/getaddrinfo (Depends-on): Likewise.
11851         * modules/glob (Depends-on): Likewise.
11852         * modules/inet_ntop (Depends-on): Likewise.
11853         * modules/inet_pton (Depends-on): Likewise.
11854         * modules/memxor (Depends-on): Likewise.
11855         * modules/regex (Depends-on): Likewise.
11856         * modules/strtok_r (Depends-on): Likewise.
11857         * modules/time_r (Depends-on): Likewise.
11858
11859 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
11860
11861         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
11862         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
11863         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
11864         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
11865         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
11866         * m4/memxor.m4 (gl_MEMXOR): Likewise.
11867         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
11868         gl_C_RESTRICT replaced by AC_C_RESTRICT.
11869
11870         Merge from coreutils.
11871         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
11872         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
11873         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
11874         * m4/time_r.m4 (gl_TIME_R): Likewise.
11875
11876 2006-08-09  Karl Berry  <karl@gnu.org>
11877
11878         * config/srclist.txt: no more gettext-tools, per Bruno.
11879
11880 2006-08-08  Eric Blake  <ebb9@byu.net>
11881
11882         * modules/verror: New module.
11883         * MODULES.html.sh: Document it.
11884
11885 2006-08-08  Eric Blake  <ebb9@byu.net>
11886
11887         * lib/verror.h, lib/verror.c: New files.
11888
11889 2006-08-08  Eric Blake  <ebb9@byu.net>
11890
11891         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
11892         verror_at_line output complies with GNU Coding Standards even when
11893         file is NULL.
11894
11895 2006-08-07  Bruno Haible  <bruno@clisp.org>
11896
11897         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
11898         versions of AIX.
11899         Reported by Ralf Wildenhues.
11900
11901 2006-08-07  Bruno Haible  <bruno@clisp.org>
11902
11903         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
11904         in an AC_DEFUN. Needed so that the autoconf snippets can use
11905         AC_REQUIRE.
11906
11907 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11908
11909         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
11910         Initialize pkgdata_DATA.
11911         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
11912         overriding it.
11913
11914 2006-08-06  Eric Blake  <ebb9@byu.net>
11915
11916         * lib/error.h: Fold in some upstream changes from glibc.
11917         * lib/error.c: Likewise.
11918
11919 2006-08-04  Bruno Haible  <bruno@clisp.org>
11920
11921         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
11922         Make the mostlyclean-local rule depend on mostlyclean-generic.
11923         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
11924
11925 2006-07-31  Bruno Haible  <bruno@clisp.org>
11926
11927         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
11928         <stdlib.h>, <string.h>.
11929
11930 2006-07-30  Bruno Haible  <bruno@clisp.org>
11931
11932         * modules/readlink (License): Change to LGPL.
11933
11934 2006-07-30  Bruno Haible  <bruno@clisp.org>
11935
11936         * modules/javaversion (Makefile.am): Distribute javaversion.java and
11937         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
11938         set PKGDATADIR to point to it.
11939
11940 2006-07-30  Bruno Haible  <bruno@clisp.org>
11941
11942         * modules/csharpexec (configure.ac): Comment out macro invocation.
11943         * modules/javaexec (configure.ac): Likewise.
11944         * modules/javacomp-script (configure.ac): Likewise.
11945
11946         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
11947
11948 2006-07-30  Bruno Haible  <bruno@clisp.org>
11949
11950         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
11951         linked-list.
11952
11953 2006-07-30  Bruno Haible  <bruno@clisp.org>
11954
11955         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
11956
11957 2006-07-30  Bruno Haible  <bruno@clisp.org>
11958
11959         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
11960         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
11961         get removed.
11962
11963 2006-07-29  Bruno Haible  <bruno@clisp.org>
11964
11965         Make it possible for gnulib-tool to work with locally modified or
11966         augmented gnulib repositories.
11967         * gnulib-tool (func_usage): Document --local-dir option.
11968         (local_gnulib_dir): New variable.
11969         Handle --local-dir option.
11970         (func_lookup_file): New function.
11971         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
11972         (func_get_description, func_get_filelist, func_get_description,
11973         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
11974         func_get_automake_snippet, func_get_include_directive,
11975         func_get_license, func_get_maintainer): Use func_lookup_file.
11976         (func_import, func_create_testdir): Use func_lookup_file.
11977
11978 2006-07-29  Bruno Haible  <bruno@clisp.org>
11979
11980         * modules/setenv (Depends-on): Add unistd.
11981
11982 2006-07-29  Bruno Haible  <bruno@clisp.org>
11983
11984         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
11985
11986 2006-07-29  Bruno Haible  <bruno@clisp.org>
11987
11988         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
11989
11990 2006-07-29  Bruno Haible  <bruno@clisp.org>
11991
11992         * gnulib-tool (import, update): If there is no Makefile.am, look at
11993         aclocal.m4, instead of bailing out.
11994
11995 2006-07-29  Bruno Haible  <bruno@clisp.org>
11996
11997         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
11998         Categorize the options by when they are useful.
11999
12000 2006-07-29  Bruno Haible  <bruno@clisp.org>
12001
12002         * gnulib-tool (func_usage): Document option --no-libtool.
12003         Handle option --no-libtool.
12004         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
12005         for changed semantics of $libtool variable.
12006         (func_import): Likewise. If libtool is not used, show this through
12007         an option --no-libtool.
12008         (func_create_testdir): Update.
12009
12010 2006-07-29  Bruno Haible  <bruno@clisp.org>
12011
12012         * gnulib-tool (func_import): Extend error message about missing
12013         --doc-base.
12014
12015 2006-07-29  Bruno Haible  <bruno@clisp.org>
12016
12017         * gnulib-tool (func_import): Don't create the $docbase directory if
12018         there is no file to store there.
12019
12020 2006-07-29  Bruno Haible  <bruno@clisp.org>
12021
12022         * gnulib-tool (autoconf_minversion): If a --dir option is given and
12023         relevant, look for configure.ac there, not in the current directory.
12024         Also use a simple search for AC_PREREQ, not "autoconf --trace".
12025
12026 2006-07-29  Bruno Haible  <bruno@clisp.org>
12027
12028         * gnulib-tool (SORT): New variable.
12029         (func_usage): Undocument --assume-autoconf option.
12030         Remove --assume-autoconf option handling.
12031         (autoconf_minversion): Determine from the contents of configure.ac.
12032         (func_import): Remove autoconf_minversion handling.
12033         Suggested by Eric Blake.
12034
12035 2006-07-29  Bruno Haible  <bruno@clisp.org>
12036
12037         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
12038
12039 2006-07-29  Bruno Haible  <bruno@clisp.org>
12040
12041         * config/srclist.txt (*setenv.[ch]): Remove rules.
12042
12043 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
12044
12045         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
12046
12047 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
12048
12049         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
12050         arpa/inet.h.
12051
12052 2006-07-28  Simon Josefsson  <jas@extundo.com>
12053
12054         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
12055         * modules/inet_pton (Depends-on): Likewise.
12056
12057 2006-07-28  Simon Josefsson  <jas@extundo.com>
12058
12059         * m4/netinet_in_h.m4: New file.
12060
12061 2006-07-28  Simon Josefsson  <jas@extundo.com>
12062
12063         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
12064         #include's.
12065
12066 2006-07-28  Simon Josefsson  <jas@extundo.com>
12067
12068         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
12069         #include's.
12070
12071 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
12072
12073         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
12074         setgid on directories only if they set these bits.
12075         * lib/modechange.h: Remove obsolete comment about masks.
12076
12077 2006-07-28  Eric Blake  <ebb9@byu.net>
12078
12079         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
12080         macro expansion.
12081
12082 2006-07-28  Bruno Haible  <bruno@clisp.org>
12083
12084         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
12085
12086 2006-07-28  Bruno Haible  <bruno@clisp.org>
12087
12088         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
12089
12090 2006-07-28  Bruno Haible  <bruno@clisp.org>
12091
12092         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
12093         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
12094         Define fallbacks.
12095         Avoids link error on FreeBSD 4.x.
12096         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
12097
12098         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
12099         encoding.
12100         * lib/mbswidth.c (iswcntrl): Likewise.
12101
12102 2006-07-27  Bruno Haible  <bruno@clisp.org>
12103
12104         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
12105         test.
12106
12107 2006-07-27  Bruno Haible  <bruno@clisp.org>
12108
12109         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
12110         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
12111         defined.
12112
12113 2006-07-26  Eric Blake  <ebb9@byu.net>
12114
12115         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
12116
12117 2006-07-26  Eric Blake  <ebb9@byu.net>
12118
12119         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
12120         like mingw that lack mkstemp.
12121         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
12122         avoid compilation warning on mingw.
12123
12124 2006-07-26  Bruno Haible  <bruno@clisp.org>
12125
12126         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
12127         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
12128         INT_FAST*_MIN, INTPTR_MIN.
12129
12130 2006-07-25  Bruno Haible  <bruno@clisp.org>
12131
12132         * modules/version-etc (Depends-on): Add stdarg.
12133
12134 2006-07-25  Bruno Haible  <bruno@clisp.org>
12135
12136         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
12137         complex commands.
12138
12139 2006-07-25  Bruno Haible  <bruno@clisp.org>
12140
12141         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
12142         defined in <stdarg.h> or config.h.
12143
12144 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
12145
12146         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
12147         (gl_STDIO_SAFER): Remove.
12148
12149 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
12150
12151         * MODULES.html.sh (File stream based Input/Output):
12152         Add fopen-safer, tmpfile-safer; remove stdio-safer.
12153         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
12154         * modules/fopen-safer, modules/tmpfile-safer: New files.
12155         * modules/stdio-safer: Remove.
12156
12157 2006-07-24  Bruno Haible  <bruno@clisp.org>
12158
12159         * modules/tmpdir: New file.
12160         * MODULES.html.sh (File system functions): Add it.
12161
12162 2006-07-24  Bruno Haible  <bruno@clisp.org>
12163
12164         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
12165         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
12166
12167 2006-07-24  Bruno Haible  <bruno@clisp.org>
12168
12169         * modules/clean-temp: New file.
12170
12171 2006-07-24  Bruno Haible  <bruno@clisp.org>
12172
12173         * m4/tmpdir.m4: New file, from GNU gettext.
12174
12175 2006-07-24  Bruno Haible  <bruno@clisp.org>
12176
12177         * lib/tmpdir.h: New file, from GNU gettext.
12178         * lib/tmpdir.c: New file, from GNU gettext.
12179
12180 2006-07-24  Bruno Haible  <bruno@clisp.org>
12181
12182         * lib/clean-temp.h: New file, from GNU gettext.
12183         * lib/clean-temp.c: New file, from GNU gettext.
12184
12185 2006-07-23  Eric Blake  <ebb9@byu.net>
12186
12187         * modules/stdio-safer (Files): Add tmpfile-safer.c.
12188         (Depends-on): Add binary-io.
12189
12190 2006-07-23  Eric Blake  <ebb9@byu.net>
12191
12192         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
12193
12194 2006-07-23  Eric Blake  <ebb9@byu.net>
12195
12196         * lib/tmpfile-safer.c: New file.
12197         * lib/stdio-safer.h (fopen_safer): Add prototype.
12198         * lib/stdio--.h (tmpfile): Make safer.
12199
12200 2006-07-23  Bruno Haible  <bruno@clisp.org>
12201
12202         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
12203         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
12204         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
12205         gl_linked_remove_at): Use it.
12206
12207 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
12208         and Simon Josefsson <jas@extundo.com>
12209
12210         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
12211
12212         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
12213
12214 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
12215
12216         * modules/close-stream: New file.
12217         * modules/closeout (Description): Make it clear that it exits
12218         with a diagnostic on error.
12219         (Depends-on): Add close-stream.  Remove fpending, stdbool.
12220         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
12221
12222 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
12223
12224         * m4/close-stream.m4: New file.
12225
12226 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
12227
12228         * lib/close-stream.c, lib/close-stream.h: New files.
12229
12230 2006-07-22  Bruno Haible  <bruno@clisp.org>
12231
12232         Merge from GNU gettext 0.15.
12233
12234         2006-05-01  Bruno Haible  <bruno@clisp.org>
12235
12236                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
12237
12238         2006-07-22  Bruno Haible  <bruno@clisp.org>
12239
12240                 * modules/javaversion: New file.
12241                 * MODULES.html.sh (Java): Add javaversion.
12242
12243         2006-03-12  Bruno Haible  <bruno@clisp.org>
12244
12245                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
12246
12247         2005-12-04  Bruno Haible  <bruno@clisp.org>
12248
12249                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
12250                 (untested).
12251
12252         2006-06-21  Bruno Haible  <bruno@clisp.org>
12253
12254                 Avoid warnings from recent versions of mcs.
12255                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
12256                 -o, -L, -r any more. Use options documented since mcs-1.0
12257                 instead. Similarly for -g.
12258
12259         2005-12-04  Bruno Haible  <bruno@clisp.org>
12260
12261                 * build-aux/csharpcomp.sh.in: Suffix for resources is
12262                 .resources, not .resource.
12263
12264         2005-07-09  Bruno Haible  <bruno@clisp.org>
12265
12266                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
12267                 add a .dll suffix.
12268                 Reported by Mark Junker <mjscod@gmx.de>.
12269
12270         2006-07-22  Bruno Haible  <bruno@clisp.org>
12271
12272                 * modules/gettext: Upgrade to gettext-0.15.
12273                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
12274                 m4/visibility.m4.
12275                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
12276
12277 2006-07-22  Bruno Haible  <bruno@clisp.org>
12278
12279         Merge from GNU gettext 0.15.
12280
12281         2006-03-25  Bruno Haible  <bruno@clisp.org>
12282
12283                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
12284
12285         2006-07-21  Bruno Haible  <bruno@clisp.org>
12286
12287                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
12288                 "1.1".
12289
12290         2006-05-09  Bruno Haible  <bruno@clisp.org>
12291
12292                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
12293                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
12294                 for the conftestver execution.
12295
12296         2006-05-01  Bruno Haible  <bruno@clisp.org>
12297
12298                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
12299                 optional target-version argument. Verify that the compiler
12300                 groks source of the specified source-version, or add -source
12301                 option as necessary. Verify that the compiler produces
12302                 bytecode in the specified target-version, or add -target and
12303                 -source options as necessary. Make the result of the test
12304                 available as variable CONF_JAVAC. Also log error output in
12305                 config.log.
12306
12307         2006-03-11  Bruno Haible  <bruno@clisp.org>
12308
12309                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
12310
12311         2006-05-09  Bruno Haible  <bruno@clisp.org>
12312
12313                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
12314                 CLASSPATH_SEPARATOR to a semicolon.
12315
12316         2006-03-12  Bruno Haible  <bruno@clisp.org>
12317
12318                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
12319                 available as variable CONF_JAVA, for subsequent autoconf
12320                 tests. Also log error output in config.log.
12321
12322         2006-07-19  Bruno Haible  <bruno@clisp.org>
12323
12324                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
12325                 that getline works on glibc2 systems. Needed to avoid trouble
12326                 in relocatable.c.
12327                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
12328
12329         2005-12-04  Bruno Haible  <bruno@clisp.org>
12330
12331                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
12332                 launcher (untested).
12333
12334         2005-12-04  Bruno Haible  <bruno@clisp.org>
12335
12336                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
12337
12338         2006-07-22  Bruno Haible  <bruno@clisp.org>
12339
12340                 * gettext.m4: Update from GNU gettext-0.15.
12341                 * nls.m4: Likewise.
12342                 * po.m4: Likewise.
12343                 * inttypes-pri.m4: Likewise.
12344                 * inttypes-h.m4: Renamed from inttypes.m4.
12345                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
12346
12347 2006-07-22  Bruno Haible  <bruno@clisp.org>
12348
12349         Merge from GNU gettext 0.15.
12350
12351         2005-07-05  Bruno Haible  <bruno@clisp.org>
12352
12353                 * printf-args.c (printf_fetchargs): Work around broken
12354                 definition of wint_t on mingw.
12355
12356         2005-02-12  Bruno Haible  <bruno@clisp.org>
12357
12358                 * xallocsa.h: Add extern "C" for C++.
12359
12360         2006-05-17  Bruno Haible  <bruno@clisp.org>
12361
12362                 Cygwin portability.
12363                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
12364
12365         2006-04-30  Bruno Haible  <bruno@clisp.org>
12366
12367                 * progreloc.c: Include <mach-o/dyld.h> if available.
12368                 (find_executable): Use _NSGetExecutablePath when possible.
12369
12370         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
12371
12372                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
12373                 function.
12374
12375         2005-12-29  Bruno Haible  <bruno@clisp.org>
12376
12377                 * progreloc.c (set_program_name_and_installdir): Fix
12378                 compilation error.
12379
12380         2005-12-04  Bruno Haible  <bruno@clisp.org>
12381
12382                 Cygwin portability.
12383                 * progreloc.c: Include <windows.h> also on Cygwin.
12384                 (find_executable): Add support for Cygwin.
12385                 (set_program_name_and_installdir): Handle also platforms with
12386                 nonempty EXEEXT.
12387
12388         2006-07-11  Bruno Haible  <bruno@clisp.org>
12389
12390                 * javacomp.c: Fix a comment.
12391                 Reported by Jim Meyering.
12392
12393         2006-04-30  Bruno Haible  <bruno@clisp.org>
12394
12395                 * javacomp.h (compile_java_class): Add source_version,
12396                 target_version arguments.
12397                 * javacomp.c: Rewritten to choose only a compiler that
12398                 respects the specified source_version and target_version.
12399
12400         2006-06-27  Bruno Haible  <bruno@clisp.org>
12401
12402                 Assume correct S_ISDIR macro.
12403                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
12404
12405         2006-07-22  Bruno Haible  <bruno@clisp.org>
12406
12407                 * javaversion.h: New file, from GNU gettext.
12408                 * javaversion.c: New file, from GNU gettext.
12409                 * javaversion.java: New file, from GNU gettext.
12410                 * javaversion.class: New file, from GNU gettext.
12411
12412         2006-05-17  Bruno Haible  <bruno@clisp.org>
12413
12414                 Cygwin portability.
12415                 * javaexec.c (execute_java_class): Test for jview program
12416                 also on Cygwin.
12417
12418         2006-04-09  Bruno Haible  <bruno@clisp.org>
12419
12420                 * fatal-signal.c: Don't include string.h.
12421                 (at_fatal_signal): Use a copying loop instead of memcpy.
12422
12423         2005-12-04  Bruno Haible  <bruno@clisp.org>
12424
12425                 * csharpexec.c: Add support for 'clix' launcher (untested).
12426                 (execute_csharp_using_sscli): New function.
12427                 (execute_csharp_program): Call it.
12428
12429         2006-06-21  Bruno Haible  <bruno@clisp.org>
12430
12431                 Avoid warnings from recent versions of mcs.
12432                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
12433                 -o, -L, -r any more. Use options documented since mcs-1.0
12434                 instead. Similarly for -g.
12435
12436         2005-07-09  Bruno Haible  <bruno@clisp.org>
12437
12438                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
12439                 add a .dll suffix.
12440                 Reported by Mark Junker <mjscod@gmx.de>.
12441
12442         2006-06-17  Bruno Haible  <bruno@clisp.org>
12443
12444                 * config.charset: Update for NetBSD 3.0.
12445
12446         2006-05-17  Bruno Haible  <bruno@clisp.org>
12447
12448                 Cygwin portability.
12449                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
12450
12451         2006-05-16  Bruno Haible  <bruno@clisp.org>
12452
12453                 * localcharset.c [CYGWIN]: Include <windows.h>.
12454                 (get_charset_aliases): For Cygwin, return the same CPxxx
12455                 aliases list as under WIN32.
12456                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
12457                 the environment variables. Fall back to GetACP().
12458
12459         2006-04-05  Bruno Haible  <bruno@clisp.org>
12460
12461                 * config.charset: Update Juan Manuel Guerrero's address.
12462
12463         2005-02-12  Bruno Haible  <bruno@clisp.org>
12464
12465                 * allocsa.h: Add extern "C" for C++.
12466
12467         2005-02-10  Bruno Haible  <bruno@clisp.org>
12468
12469                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
12470                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
12471
12472         2006-07-22  Bruno Haible  <bruno@clisp.org>
12473
12474                 * gettext.h: Update to GNU gettext-0.15.
12475
12476 2006-07-22  Bruno Haible  <bruno@clisp.org>
12477
12478         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
12479         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
12480         lib-prefix.m4, longdouble.m4, ssize_t.m4.
12481
12482 2006-07-21  Eric Blake  <ebb9@byu.net>
12483
12484         * modules/stdlib-safer: New file.
12485         * MODULES.html.sh (File stream based Input/Output): Add
12486         stdlib-safer.
12487
12488 2006-07-21  Eric Blake  <ebb9@byu.net>
12489
12490         * lib/stdlib-safer.h: New file from coreutils, required by
12491         stdlib--.h.
12492
12493 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
12494
12495         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
12496
12497 2006-07-20  Bruno Haible  <bruno@clisp.org>
12498
12499         * gnulib-tool: Recognize new option --assume-autoconf.
12500         (autoconf_minversion): New variable.
12501         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
12502
12503 2006-07-20  Bruno Haible  <bruno@clisp.org>
12504
12505         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
12506
12507 2006-07-19  Derek R. Price  <derek@ximbiot.com>
12508
12509         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
12510         Reindent and repaginate.
12511
12512 2006-07-19  Derek Price  <derek@ximbiot.com>
12513
12514         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
12515         Correct grammar.
12516
12517 2006-07-17  Bruno Haible  <bruno@clisp.org>
12518
12519         * modules/list: New file.
12520         * modules/array-list: New file.
12521         * modules/carray-list, modules/carray-list-tests: New files.
12522         * modules/linked-list, modules/linked-list-tests: New files.
12523         * modules/avltree-list, modules/avltree-list-tests: New files.
12524         * modules/rbtree-list, modules/rbtree-list-tests: New files.
12525         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
12526         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
12527         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
12528         * modules/oset: New file.
12529         * modules/array-oset: New file.
12530         * modules/avltree-oset, modules/avltree-oset-tests: New files.
12531         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
12532         * tests/test-carray_list.c: New file.
12533         * tests/test-linked_list.c: New file.
12534         * tests/test-avltree_list.c: New file.
12535         * tests/test-rbtree_list.c: New file.
12536         * tests/test-linkedhash_list.c: New file.
12537         * tests/test-avltreehash_list.c: New file.
12538         * tests/test-rbtreehash_list.c: New file.
12539         * tests/test-avltree_oset.c: New file.
12540         * tests/test-rbtree_oset.c: New file.
12541         * MODULES.html.sh (Container data structures): New section.
12542
12543 2006-07-17  Bruno Haible  <bruno@clisp.org>
12544
12545         * m4/gl_list.m4: New file.
12546
12547 2006-07-17  Bruno Haible  <bruno@clisp.org>
12548
12549         * lib/gl_list.h: New file.
12550         * lib/gl_list.c: New file.
12551         * lib/gl_array_list.h: New file.
12552         * lib/gl_array_list.c: New file.
12553         * lib/gl_carray_list.h: New file.
12554         * lib/gl_carray_list.c: New file.
12555         * lib/gl_linked_list.h: New file.
12556         * lib/gl_linked_list.c: New file.
12557         * lib/gl_anylinked_list1.h: New file.
12558         * lib/gl_anylinked_list2.h: New file.
12559         * lib/gl_avltree_list.h: New file.
12560         * lib/gl_avltree_list.c: New file.
12561         * lib/gl_anyavltree_list1.h: New file.
12562         * lib/gl_anyavltree_list2.h: New file.
12563         * lib/gl_rbtree_list.h: New file.
12564         * lib/gl_rbtree_list.c: New file.
12565         * lib/gl_anyrbtree_list1.h: New file.
12566         * lib/gl_anyrbtree_list2.h: New file.
12567         * lib/gl_anytree_list1.h: New file.
12568         * lib/gl_anytree_list2.h: New file.
12569         * lib/gl_linkedhash_list.h: New file.
12570         * lib/gl_linkedhash_list.c: New file.
12571         * lib/gl_anyhash_list1.h: New file.
12572         * lib/gl_anyhash_list2.h: New file.
12573         * lib/gl_avltreehash_list.h: New file.
12574         * lib/gl_avltreehash_list.c: New file.
12575         * lib/gl_rbtreehash_list.h: New file.
12576         * lib/gl_rbtreehash_list.c: New file.
12577         * lib/gl_anytreehash_list1.h: New file.
12578         * lib/gl_anytreehash_list2.h: New file.
12579
12580         * lib/gl_oset.h: New file.
12581         * lib/gl_oset.c: New file.
12582         * lib/gl_array_oset.h: New file.
12583         * lib/gl_array_oset.c: New file.
12584         * lib/gl_avltree_oset.h: New file.
12585         * lib/gl_avltree_oset.c: New file.
12586         * lib/gl_rbtree_oset.h: New file.
12587         * lib/gl_rbtree_oset.c: New file.
12588         * lib/gl_anytree_oset.h: New file.
12589
12590 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
12591
12592         * m4/mkancesdirs.m4: New file.
12593         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
12594         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
12595         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
12596         it.
12597
12598 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
12599
12600         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
12601         * lib/mkancesdirs.h: New files.
12602         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
12603         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
12604         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
12605         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
12606         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
12607         callers changed.  Revamp internals significantly, by not
12608         attempting to create directories that are temporarily more
12609         permissive than the final results.  Do not attempt to use
12610         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
12611         This removes some race conditions, fixes some bugs, and simplifies
12612         things.  Use new dirchownmod function to do owner and mode changes.
12613         * lib/mkdir-p.h: Likewise.
12614         * lib/modechange.c (octal_to_mode): New function.
12615         (struct mode_change): New member mentioned.
12616         (make_node_op_equals): New arg mentioned.  All callers changed.
12617         (mode_compile): Keep track of which mode bits the user has explicitly
12618         mentioned.
12619         (mode_adjust): New arg DIR, so that we implement the X op correctly.
12620         New arg PMODE_BITS, to keep track of which mode bits the user
12621         mentioned; it treats S_ISUID and S_ISGID speciall.
12622         All callers changed.
12623         * lib/modechange.h: Likewise.
12624
12625 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
12626
12627         * MODULES.html.sh: Add mkancestors.
12628         * modules/mkancesdirs: New module.
12629         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
12630         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
12631         The chdir-safer and afs files are now orphans; I'll remove them
12632         unless someone speaks up.
12633         Add lib/dirchownmod.c, lib/dirchownmod.h.
12634         (Depends-on): Remove alloca, chown, save-cwd, dirname.
12635         Add lchown, mkancesdirs.
12636         (Maintainer): Add self.
12637
12638 2006-07-15  Karl Berry  <karl@gnu.org>
12639
12640         * gnulib-tool: help message wording/arrangement.
12641
12642 2006-07-14  Simon Josefsson  <jas@extundo.com>
12643
12644         * doc/gnulib.texi (Libtool and Windows): New section.
12645
12646 2006-07-12  Simon Josefsson  <jas@extundo.com>
12647
12648         * modules/gendocs (License): Fix license, approved by Karl.
12649
12650 2006-07-12  Eric Blake  <ebb9@byu.net>
12651
12652         * MODULES.html.sh: Add gendocs.
12653
12654 2006-07-11  Eric Blake  <ebb9@byu.net>
12655
12656         * modules/fdl: New module, to install doc/fdl.texi.
12657         * MODULES.html.sh: Add new section for documentation modules.
12658         * gnulib-tool: Avoid space-tab.
12659         (--doc-base): New option, to manage files from doc.
12660
12661 2006-07-11  Eric Blake  <ebb9@byu.net>
12662
12663         * m4/absolute-header.m4: Fix comments to match recent change.
12664
12665 2006-07-11  Eric Blake  <ebb9@byu.net>
12666
12667         * gnulib-tool: List --doc-base before --tests-base.
12668
12669 2006-07-11  Derek R. Price  <derek@ximbiot.com>
12670
12671         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
12672
12673 2006-07-11  Bruno Haible  <bruno@clisp.org>
12674
12675         * README: Mention where to put documentation.
12676
12677 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12678
12679         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
12680
12681 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
12682
12683         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
12684         to stdint.m4.
12685
12686 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
12687
12688         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
12689         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
12690         "no/such/file/stdint.h" when there is no such file, so that
12691         the resulting C code can be parsed by dodgy compilers.
12692         Problems reported by Bob Proulx.
12693
12694 2006-07-10  Derek R. Price  <derek@ximbiot.com>
12695
12696         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
12697         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
12698         macros into the GNU _D_EXACT_NAMLEN.
12699         * lib/savedir.c:  Likewise.
12700         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
12701
12702 2006-07-10  Derek R. Price  <derek@ximbiot.com>
12703         and Paul Eggert  <eggert@cs.ucla.edu>
12704
12705         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
12706         * m4/savedir.m4:
12707         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
12708         macros into the GNU _D_EXACT_NAMLEN.
12709
12710 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
12711
12712         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
12713         around the absolute name, to work around a problem with the HP-UX
12714         11.23 native C compiler, reported by Bob Proulx.
12715
12716 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
12717
12718         * doc/maintain.texi, make-stds.texi: Sync from
12719         <http://savannah.gnu.org/projects/gnustandards>.
12720
12721 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
12722
12723         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
12724
12725 2006-07-09  Jim Meyering  <jim@meyering.net>
12726
12727         * m4/glob.m4: Remove a doubled word in a comment.
12728
12729 2006-07-09  Jim Meyering  <jim@meyering.net>
12730
12731         * lib/argp-pv.c: Remove a doubled word in a comment.
12732         * lib/check-version.c (check_version): Likewise.
12733         * lib/javacomp.c (compile_java_class): Likewise.
12734
12735 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
12736
12737         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
12738         for the benefit of people using Autoconf 2.60.  If you want to
12739         support older Autoconf versions you can copy m4/onceonly_2_57.m4
12740         (or m4/onceonly.m4, if pre-2.57) manually.
12741
12742 2006-07-08  Jim Meyering  <jim@meyering.net>
12743
12744         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
12745         comment.
12746         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
12747         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
12748         comment.
12749
12750 2006-07-08  Jim Meyering  <jim@meyering.net>
12751
12752         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
12753
12754 2006-07-07  Simon Josefsson  <jas@extundo.com>
12755
12756         * tests/test-crc.c: Change expected crc value, the test vector
12757         were probably computed using the old broken crc.c?
12758
12759 2006-07-06  Simon Josefsson  <jas@extundo.com>
12760
12761         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
12762         now the canonical place for the M4 file).
12763
12764         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
12765         from the sys_socket dependency now.
12766
12767         * modules/inet_pton (Files): Ditto.
12768
12769         * modules/inet_ntop (Files): Ditto.
12770
12771 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
12772
12773         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
12774         not gl_PREREQ_GETUSERSHELL.
12775
12776 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12777
12778         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
12779         with only one argument, for Autoconf 2.60.
12780         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
12781         expand to nothing, so add a shell command to avoid syntax error.
12782         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
12783
12784 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12785
12786         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
12787
12788 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
12789
12790         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
12791         no longer needed.  Check for isblank decl.
12792         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
12793         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
12794         of existence.
12795
12796 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
12797
12798         * lib/getloadavg.c: Use __VMS, not VMS.
12799         * lib/getopt.c: Likewise.
12800         * lib/getpagesize.h: Likewise.
12801         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
12802         and probably does not work.
12803
12804 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
12805
12806         * lib/.cppi-disable: Add wcwidth.
12807         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
12808         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
12809         (ISGRAPH): Remove.  All uses changed to isgraph.
12810         (FOLD) [!defined _LIBC]: Remove special case.
12811         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
12812         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
12813         HAVE_ISBLANK.
12814         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
12815         case.
12816
12817 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
12818
12819         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
12820         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
12821         brackets.  Other minor changes to suppress some compiler
12822         warnings.
12823
12824 2006-07-06  Derek R. Price  <derek@ximbiot.com>
12825         and Paul Eggert  <eggert@cs.ucla.edu>
12826
12827         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
12828         of invoking obsolescent AC_HEADER_DIRENT macro.
12829         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
12830         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
12831         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
12832         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
12833         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
12834         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
12835         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
12836         * m4/readdir.m4: Remove; no longer needed.
12837
12838 2006-07-06  Derek R. Price  <derek@ximbiot.com>
12839         and Paul Eggert  <eggert@cs.ucla.edu>
12840
12841         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
12842         Don't worry about this obsolete case any more.
12843         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
12844         directories.
12845         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
12846         worry about this obsolete case any more.
12847         * lib/fts.c: Likewise.
12848         * lib/getcwd.c: Likewise.
12849         * lib/glob.h: Likewise.
12850         * lib/savedir.c: Likewise.
12851
12852 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
12853
12854         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
12855         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
12856         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
12857         needed.
12858         All uses removed.
12859         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
12860         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
12861         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
12862         needed.
12863         * m4/getdate.m4 (gl_GETDATE): Likewise.
12864         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
12865         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
12866         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
12867         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
12868         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
12869         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
12870         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
12871         needed.
12872
12873 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
12874
12875         * lib/memcasecmp.c: Include <limits.h>.
12876         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
12877         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
12878         Don't assume isdigit succeeds only on '0' through '9'.
12879
12880 2006-07-05  Eric Blake  <ebb9@byu.net>
12881
12882         * modules/getaddrinfo (Depends-on): Add snprintf.
12883
12884 2006-07-05  Eric Blake  <ebb9@byu.net>
12885
12886         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
12887         to avoid 'header present but could not be compiled' on cygwin.
12888
12889 2006-07-05  Eric Blake  <ebb9@byu.net>
12890
12891         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
12892         missing from netdb.h.
12893         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
12894
12895 2006-07-05  Derek R. Price  <derek@ximbiot.com>
12896
12897         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
12898         no longer needed.
12899         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
12900         * m4/getdate.m4 (gl_GETDATE): Likewise.
12901         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
12902         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
12903         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
12904         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
12905         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
12906
12907 2006-07-05  Derek R. Price  <derek@ximbiot.com>
12908
12909         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
12910         All uses of is_space replaced by isspace.
12911         * lib/exit.h: Don't talk about STDC_HEADERS.
12912         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
12913         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
12914         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
12915         replaced by isprint etc.
12916         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
12917         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
12918         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
12919         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
12920         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
12921         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
12922
12923 2006-07-05  Bruno Haible  <bruno@clisp.org>
12924
12925         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
12926         the function exists, before testing against AIX.
12927         Reported by Martin Lambers <marlam@marlam.de>.
12928
12929 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
12930
12931         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
12932         From Mark D. Baushke.
12933
12934 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
12935
12936         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
12937         to the absolute name, not just one, to bypass Sun C 5.8's
12938         "warning: #include of /usr/include/... may be non-portable".
12939
12940 2006-07-04  Eric Blake  <ebb9@byu.net>
12941
12942         * modules/dirname-tests: New test module.
12943         * tests/test-dirname.c: New file, replacing dirname.c
12944         TEST_DIRNAME section that was recently deleted.
12945
12946 2006-07-04  Bruno Haible  <bruno@clisp.org>
12947
12948         Assume ANSI C header files and <ctype.h> functions.
12949         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
12950         (mbsnwidth): Use isprint, iscntrl instead.
12951
12952 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
12953
12954         Merge from coreutils.
12955         * MODULES.html.sh: Add xstrtold.
12956         * modules/xstrtold: New file.
12957         * modules/cycle-check (Files): Add lib/same-inode.h.
12958         * modules/dirname (Files): Add m4/double-slash-root.m4.
12959         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
12960         * modules/mkdir-p (Files): Add lib/same-inode.h.
12961         * modules/same (Files): Add lib/same-inode.h.
12962
12963 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
12964
12965         * m4/absolute-header.m4: Renamed from full-header-path.m4.
12966         This is to keep the terminology clean; POSIX talks about
12967         "absolute pathnames", not "full pathnames", but the GNU
12968         Coding Standards say to use "path" for something else;
12969         so use "absolute" to keep both sides happy.
12970         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
12971         Set gl_absolute_header, not gl_full_header_path.
12972         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
12973         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
12974         All uses changed.
12975
12976         Merge from coreutils.
12977
12978         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
12979
12980         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
12981         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
12982         want to require the building of c-strtod.o.
12983         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
12984         needs -lm directly.
12985         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
12986
12987         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
12988
12989         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
12990         --as-needed option if available.  Problem reported by Albert Chin in
12991         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
12992         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
12993         cc merely issues a bunch of annoying warnings for --as-needed
12994         (this problem was reported by Bob Proulx).  Also, try linking with
12995         -lm to detect a bug in binutils 2.16 (this problem was reported
12996         by Ralf Wildenhues).
12997
12998         2006-06-18  Jim Meyering  <jim@meyering.net>
12999
13000         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
13001         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
13002         macro.
13003         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
13004         also check for glibc-2.4's abort-inducing bug.
13005
13006         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
13007         Low-probability clean-up should be to use rmdir to get rid of
13008         the just-created directory, not unlink.
13009
13010         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
13011         configure fail, and request a bug report to inform us about it.
13012         Add a comment that, barring reports to the contrary, in 2007 we'll
13013         assume ftruncate is universally available.
13014
13015         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
13016
13017         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
13018
13019         2006-03-12  Jim Meyering  <jim@meyering.net>
13020
13021         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
13022         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
13023         * m4/same.m4 (gl_SAME): Likewise.
13024         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
13025
13026         2006-03-11  Eric Blake  <ebb9@byu.net>
13027
13028         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
13029         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
13030         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
13031         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
13032
13033 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
13034
13035         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
13036         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
13037         reported by Mark D. Baushke, one in
13038         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
13039
13040         Merge from coreutils.
13041
13042         * lib/.cppi-disable: Add stdint_.h.
13043         * lib/.cvsignore: Add stdint.h.
13044
13045         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
13046
13047         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
13048         both double and long double versions.
13049         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
13050         * lib/xstrtold.c: New file.
13051         * lib/xstrtod.h (xstrtold): New decl.
13052
13053         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
13054
13055         * lib/filemode.c (setst): Remove.
13056         (strmode): Rewrite to avoid setst.  This makes the code shorter,
13057         (arguably) clearer, and the generated code is a bit smaller on my
13058         Debian GNU/Linux stable x86 host.
13059
13060         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
13061
13062         * lib/filemode.c: Include "filemode.h" first, to test the interface.
13063         Assume that filemode.h includes sys/types.h and sys/stat.h.
13064         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
13065         (ftypelet): Reorder to put common cases first, for efficiency.
13066         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
13067         to do 'M'.
13068         (strmode): Renamed from mode_string, and now stores 12 bytes instead
13069         of 10, for compatibility with FreeBSD.  All callers changed.
13070         (filemodestring): Now stores 12 bytes instead of 10, and sets file
13071         types that can't be deduced solely from st_mode.  First arg is now a
13072         const pointer.
13073         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
13074         (strmode): Renamed from mode_string.
13075         (filemodestring): New decl.
13076         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
13077         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
13078         needed.
13079         (S_ISPORT, S_ISWHT): New macros, if not already defined.
13080
13081         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
13082
13083         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
13084         fsusage.h now does that.  Include fsusage.h first, to test interface.
13085         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
13086         at most one method (the old code could have generated decls that
13087         didn't conform to C89, not that this was ever exercised).
13088         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
13089
13090         2006-03-19  Jim Meyering  <jim@meyering.net>
13091
13092         Work even in a chroot where d_ino values for entries in "/"
13093         don't match the stat.st_ino values for the same names.
13094         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
13095         number, iterate through all entries again, using lstat instead.
13096         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
13097         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
13098
13099         * lib/getcwd.c (__getcwd): Clarify a comment.
13100         Use memcpy in place of a call to strcpy.
13101
13102         2006-03-12  Jim Meyering  <jim@meyering.net>
13103
13104         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
13105         matches that of the current directory (which we're about to chdir ".."
13106         out of), then save the dev-ino of the parent, instead.
13107
13108         * lib/same-inode.h (SAME_INODE): New file/macro.
13109         * lib/chdir-safer.c (SAME_INODE): Remove definition.
13110         Include "same-inode.h", instead.
13111         * lib/same.c: Likewise.
13112         * lib/cycle-check.h: Include "same-inode.h".
13113         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
13114         * lib/cycle-check.c (SAME_INODE): Remove definition.
13115         * lib/root-dev-ino.h: Include "same-inode.h".
13116
13117         2006-03-11  Eric Blake  <ebb9@byu.net>
13118
13119         * lib/same.c (same_name): s/base_name/last_component/
13120         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
13121         * lib/filenamecat.c (file_name_concat): Likewise.
13122
13123         2006-03-11  Eric Blake  <ebb9@byu.net>,
13124                     Paul Eggert  <eggert@cs.ucla.edu>
13125
13126         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
13127         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
13128         drive prefix.
13129         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
13130         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
13131         (last_component): New method.
13132         * lib/dirname.c (dir_len): Determine when drive letters need a
13133         subsequent slash.  Preserve // when it is special.
13134         (dir_name): Don't append dot when drive letter is absolute.
13135         [TEST_DIRNAME]: Move into a full-blown gnulib test.
13136         * lib/basename.c (base_name): New semantics - malloc the result.
13137         Preserve // when it is special.  Preserve relative files that look
13138         like drive letters.
13139         (base_len): Preserve // when it is special.
13140         (last_component): New method, similar to old base_name semantics.
13141         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
13142         base_name.  Strip redundant slashes from ///.
13143
13144 2006-07-03  Jim Meyering  <jim@meyering.net>
13145
13146         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
13147         macro is used before the first cycle_check call.
13148
13149 2006-07-03  Eric Blake  <ebb9@byu.net>
13150
13151         * modules/dirname (Depends-on): Add xstrndup.
13152
13153 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
13154
13155         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
13156         test cases, so that config.log is a bit easier to follow.
13157
13158 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
13159
13160         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
13161         both are 64 bits, since this seems to be the tradition, and this
13162         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
13163         we ever run into a host that prefers long long to long in this
13164         case, we'll need another configure-time test.  Problem reported by
13165         Jim Meyering.
13166
13167 2006-07-02  Eric Blake  <ebb9@byu.net>
13168
13169         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
13170
13171 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
13172
13173         * modules/inttypes (Depends-on): No longer depends on stdint.
13174         * modules/stdint (Description): Say more about assumptions.
13175         Say that the fast types might differ.  Say macros are used.
13176         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
13177         (Makefile.am): Revise list of substituted symbols to match
13178         new stdint.m4.
13179         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
13180         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
13181         * tests/test-stdint.c (verify_same_types)
13182         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
13183         the code conforms to C99/C89.
13184         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
13185         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
13186
13187 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
13188
13189         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
13190         but fix a bug, by requiring at least 64 bits.
13191         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
13192         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
13193         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
13194         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
13195
13196         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
13197         changes.  Make 2.59 a prerequisite.  Check and substitute for
13198         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
13199         inttypes.h.  Do not use special include files; just use the
13200         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
13201         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
13202         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
13203         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
13204         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
13205         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
13206         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
13207         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
13208         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
13209         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
13210         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
13211         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
13212         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
13213         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
13214         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
13215         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
13216         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
13217         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
13218         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
13219         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
13220         WINT_MAX.  Check for C99 conformance more strictly, by detecting
13221         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
13222         not check for things that C99 does not require, e.g., int8_t.  If
13223         a test isn't needed unless <stdint.h> isn't working, and is
13224         unlikely to be needed for any other reason, then don't do it
13225         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
13226         size_t, since we assume C89 freestanding at least.  Do not check
13227         for sig_atomic_t, wchar_t, or wint_t, since the code now does
13228         the right thing even if the types are not defined.  Instead use:
13229         (gl_STDINT_TYPE_PROPERTIES): New macro.
13230         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
13231         testing whether <sys/types.h> clashes, as Autoconf does this for
13232         us now.  All uses removed.
13233         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
13234         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
13235         (gl_CHECK_TYPE_SAME):
13236         Remove; no longer needed.
13237         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
13238         exists, since we'll return 0 anyway in that case.
13239         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
13240
13241 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
13242
13243         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
13244         possible collision with system files.
13245         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
13246         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
13247         WCHAR_MIN and WCHAR_MAX in this case.
13248         (<stddef.h>): Do not include; no longer needed.
13249         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
13250         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
13251         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
13252         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
13253         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
13254         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
13255         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
13256         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
13257         !defined(__c99))]: Include in this case too, since it's harmless
13258         now.
13259         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
13260         dangerous to do so.
13261         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
13262         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
13263         (_STDINT_MIN, _STDINT_MAX): New macros.
13264         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
13265         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
13266         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
13267         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
13268         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
13269         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
13270         macros, not typedefs; this simplifies things quite a bit.
13271         Use long int for all types narrower than int64_t.
13272         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
13273         Define in terms of long long int or int64_t or long int,
13274         not int64_t or int32_t.  This saves some compile-time testing.
13275         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
13276         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
13277         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
13278         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
13279         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
13280         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
13281         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
13282         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
13283         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
13284         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
13285         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
13286         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
13287         undef any previous version and define our own version, for
13288         simplicity and consistency with the new macros for types.
13289         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
13290         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
13291         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
13292         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
13293         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
13294         @WINT_T_SUFFIX@ to keep things simple here.
13295         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
13296         Simplify by assuming typical 8/16/32/64 host, since we're
13297         already doing that elsewhere anyway.
13298         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
13299         and assume long long int is 64 bits if available.  This
13300         speeds up 'configure'.
13301
13302 2006-07-01  Eric Blake  <ebb9@byu.net>
13303
13304         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
13305         Reported by Andreas Buening.
13306
13307 2006-07-01  Eric Blake  <ebb9@byu.net>
13308
13309         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
13310
13311 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
13312
13313         * lib/getaddrinfo.c: fixed typo
13314
13315 2006-06-29  Jim Meyering  <jim@meyering.net>
13316
13317         * modules/strftime (Maintainer): Add my name, since with the
13318         FPRINTFTIME changes strftime.c has forked from glibc.
13319
13320 2006-06-29  Eric Blake  <ebb9@byu.net>
13321
13322         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
13323
13324 2006-06-29  Eric Blake  <ebb9@byu.net>
13325
13326         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
13327
13328 2006-06-29  Eric Blake  <ebb9@byu.net>
13329
13330         * lib/stat_.h: New file.
13331
13332 2006-06-29  Eric Blake  <ebb9@byu.net>
13333
13334         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
13335         unused static function.
13336
13337 2006-06-29  Eric Blake  <ebb9@byu.net>
13338
13339         * doc/functions.texi (Function Portability): Document missing lstat
13340         on mingw.
13341
13342 2006-06-29  Eric Blake  <ebb9@byu.net>
13343
13344         * MODULES.html.sh: Add sys_stat.
13345         * modules/sys_stat: New module.
13346         * modules/mkstemp (Depends-on): Add sys_stat.
13347
13348 2006-06-29  Derek R. Price  <derek@ximbiot.com>
13349
13350         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
13351
13352 2006-06-29  Derek R. Price  <derek@ximbiot.com>
13353
13354         * m4/c-bs-a.m4: Removed.
13355
13356 2006-06-29  Derek R. Price  <derek@ximbiot.com>
13357
13358         * lib/strftime.c: Assume strftime() exists.
13359
13360 2006-06-29  Derek Price  <derek@ximbiot.com>
13361
13362         * modules/c-bs-a: Removed - \a is C89.
13363         * MODULES.html.sh: Remove c-bs-a.
13364
13365 2006-06-29  Bruno Haible  <bruno@clisp.org>
13366
13367         * modules/wcwidth (License): Change to LGPL.
13368
13369 2006-06-28  Simon Josefsson  <jas@extundo.com>
13370
13371         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
13372         on _WIN32.
13373
13374         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
13375         getnameinfo.
13376
13377 2006-06-28  Simon Josefsson  <jas@extundo.com>
13378
13379         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
13380
13381 2006-06-28  Simon Josefsson  <jas@extundo.com>
13382
13383         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
13384         functions there.  It will succeed on Windows XP, but on Windows
13385         2000 and (presumably) earlier, it will fail, and use the internal
13386         re-implementation.
13387         (use_win32_p): New function.
13388         (getaddrinfo): Use strtoul on servname, to support numeric ports.
13389         Support AI_NUMERICSERV to disable getservbyname.
13390         (getnameinfo): New function, only supports
13391         NI_NUMERICHOST|NI_NUMERICSERV for now.
13392
13393         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
13394         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
13395         getnameinfo.
13396
13397 2006-06-28  Eric Blake  <ebb9@byu.net>
13398
13399         * modules/wcwidth: New file.
13400         * modules/mbchar (Depends-on): Add wcwidth.
13401         * modules/mbswidth (Depends-on): Add wcwidth.
13402         * MODULES.html.sh: Add wcwidth.
13403
13404 2006-06-28  Eric Blake  <ebb9@byu.net>
13405
13406         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
13407         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
13408
13409 2006-06-28  Eric Blake  <ebb9@byu.net>
13410
13411         * lib/xvasprintf.h: Fix comments.
13412
13413 2006-06-28  Eric Blake  <ebb9@byu.net>
13414
13415         * lib/mbchar.h (wcwidth): Include wcwidth.h.
13416         * lib/mbswidth.c (wcwidth): Move from here...
13417         * lib/wcwidth.h: ...to this new file.
13418
13419 2006-06-28  Derek R. Price  <derek@ximbiot.com>
13420
13421         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
13422
13423         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
13424         it's obsolete.
13425         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
13426
13427 2006-06-28  Derek R. Price  <derek@ximbiot.com>
13428
13429         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
13430         Autoconf 2.60 says this stuff was obsolete.
13431
13432 2006-06-28  Bruno Haible  <bruno@clisp.org>
13433
13434         * modules/wcwidth (Files): Add m4/wchar_t.m4.
13435
13436 2006-06-28  Bruno Haible  <bruno@clisp.org>
13437
13438         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
13439         gt_TYPE_WCHAR_T.
13440
13441 2006-06-28  Bruno Haible  <bruno@clisp.org>
13442
13443         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
13444         declaration for wcwidth.
13445         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
13446
13447 2006-06-28  Bruno Haible  <bruno@clisp.org>
13448
13449         * lib/mkdtemp.c [MINGW]: Include <io.h>.
13450         (mkdir): Define using _mkdir.
13451
13452 2006-06-28  Bruno Haible  <bruno@clisp.org>
13453
13454         * lib/getaddrinfo.h: Fix POSIX URL.
13455         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
13456         _WIN32.
13457         (use_win32_p): Make static.
13458         (getaddrinfo): Reject service name if it is empty or does not consist
13459         solely of decimal digits, or if its value is > 65535.
13460         (getnameinfo): Remove useless casts.
13461
13462 2006-06-27  Simon Josefsson  <jas@extundo.com>
13463
13464         * modules/sys_select: New file, suggested by Bruno Haible, Paul
13465         Eggert and Martin Lambers.
13466
13467 2006-06-27  Simon Josefsson  <jas@extundo.com>
13468
13469         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
13470         Eggert and Martin Lambers.
13471
13472 2006-06-27  Bruno Haible  <bruno@clisp.org>
13473
13474         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
13475         result to 0, not to empty.
13476         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
13477
13478 2006-06-27  Bruno Haible  <bruno@clisp.org>
13479
13480         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
13481
13482 2006-06-26  Simon Josefsson  <jas@extundo.com>
13483
13484         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
13485         present.
13486
13487 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
13488
13489         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
13490         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
13491         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
13492
13493 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
13494
13495         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
13496
13497 2006-06-26  Bruno Haible  <bruno@clisp.org>
13498
13499         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
13500
13501 2006-06-26  Bruno Haible  <bruno@clisp.org>
13502
13503         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
13504
13505 2006-06-26  Bruno Haible  <bruno@clisp.org>
13506
13507         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
13508         SGI C compiler in pre-C99 mode.
13509         Suggested by Mark D. Baushke and Larry Jones.
13510
13511 2006-06-26  Bruno Haible  <bruno@clisp.org>
13512
13513         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
13514         WCHAR_MAX.
13515         Reported by Mark D. Baushke and Larry Jones.
13516
13517 2006-06-26  Bruno Haible  <bruno@clisp.org>
13518
13519         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
13520         in pre-C99 mode.
13521         Suggested by Mark D. Baushke and Larry Jones.
13522
13523 2006-06-23  Simon Josefsson  <jas@extundo.com>
13524             Bruno Haible  <bruno@clisp.org>
13525
13526         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
13527         Emit mostlyclean-local rule.
13528         (func_emit_tests_Makefile_am): Likewise.
13529         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
13530
13531 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
13532
13533         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
13534
13535 2006-06-23  Bruno Haible  <bruno@clisp.org>
13536
13537         * tests/test-stdint.c: Update to match ISO C 99 Technical
13538         Corrigendum 1.
13539
13540 2006-06-23  Bruno Haible  <bruno@clisp.org>
13541
13542         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
13543
13544 2006-06-23  Bruno Haible  <bruno@clisp.org>
13545
13546         * lib/stdint_.h: Treat IRIX like OpenBSD.
13547
13548 2006-06-23  Bruno Haible  <bruno@clisp.org>
13549
13550         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
13551         ISO C 99 Technical Corrigendum 1.
13552
13553 2006-06-22  Simon Josefsson  <jas@extundo.com>
13554
13555         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
13556         MinGW.
13557
13558 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
13559
13560         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
13561         needed.  Some compiler complained about some of them.  Problem reported
13562         by Larry Jones in
13563         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
13564
13565 2006-06-21  Simon Josefsson  <jas@extundo.com>
13566
13567         * tests/test-getaddrinfo.c: New file.
13568
13569         * modules/getaddrinfo-tests: New file.
13570
13571         * MODULES.html.sh: Add inet_pton.
13572
13573         * modules/inet_pton: New file.
13574
13575 2006-06-21  Simon Josefsson  <jas@extundo.com>
13576
13577         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
13578         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
13579         of using the (limited) gnulib implementation on Windows XP.
13580
13581         * m4/inet_pton.m4: New file.
13582
13583 2006-06-21  Simon Josefsson  <jas@extundo.com>
13584
13585         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
13586         variable.
13587
13588         * lib/socket_.h: Don't define WINVER.
13589
13590         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
13591         slightly modified to work in gnulib.
13592
13593 2006-06-21  Simon Josefsson  <jas@extundo.com>
13594
13595         * doc/gnulib.texi (Windows sockets): Add.
13596
13597 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
13598
13599         * lib/read-file.c (fread_file): Start with buffer allocation of
13600         0 bytes rather than 1 byte; this simplifies the code.
13601         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
13602         code to free buffer and save/restore errno.
13603         (internal_read_file): Remove unused local.
13604
13605 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
13606
13607         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
13608         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
13609         Problem reported by Denis Excoffier in
13610         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
13611
13612 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
13613
13614         * modules/sys_socket, modules/socklen: Include sys/types since
13615         FreeBSD 4.x's sys/socket.h needs it.
13616
13617 2006-06-19  Simon Josefsson  <jas@extundo.com>
13618
13619         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
13620
13621 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
13622
13623         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
13624
13625 2006-06-19  Bruno Haible  <bruno@clisp.org>
13626
13627         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
13628         and FULL_PATH_INTTYPES_H in angle brackets.
13629         Reported by Mark D. Baushke <mdb@gnu.org>.
13630
13631 2006-06-17  Eric Blake  <ebb9@byu.net>
13632
13633         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
13634         errno.
13635
13636 2006-06-17  Bruno Haible  <bruno@clisp.org>
13637
13638         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
13639         <sys/inttypes.h>.
13640
13641 2006-06-17  Bruno Haible  <bruno@clisp.org>
13642
13643         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
13644         whether errno is declared. Assume <errno.h> declares errno.
13645
13646 2006-06-17  Bruno Haible  <bruno@clisp.org>
13647
13648         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
13649
13650 2006-06-17  Bruno Haible  <bruno@clisp.org>
13651
13652         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
13653         problem on Solaris 2.5.1.
13654
13655 2006-06-16  Eric Blake  <ebb9@byu.net>
13656
13657         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
13658         * lib/unicodeio.c [!defined errno]: Likewise.
13659         * lib/strtol.c [!defined errno]: Likewise.
13660         * lib/strtod.c [!defined errno]: Likewise.
13661
13662 2006-06-15  Eric Blake  <ebb9@byu.net>
13663
13664         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
13665
13666 2006-06-15  Eric Blake  <ebb9@byu.net>
13667
13668         * config/srclist.txt (ssize_t.m4): Lose sync.
13669
13670 2006-06-15  Bruno Haible  <bruno@clisp.org>
13671
13672         * modules/stdint (Files): Include m4/full-header-path.m4,
13673         m4/size_max.m4, m4/wchar_t.m4.
13674         (Makefile.am): Many more substitutions.
13675         * modules/stdint-tests: New file.
13676         * tests/test-stdint.c: New file.
13677
13678 2006-06-15  Bruno Haible  <bruno@clisp.org>
13679
13680         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
13681         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
13682         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
13683         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
13684         gl_CHECK_TYPE_SAME): New macros.
13685
13686 2006-06-15  Bruno Haible  <bruno@clisp.org>
13687
13688         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
13689
13690 2006-06-15  Bruno Haible  <bruno@clisp.org>
13691
13692         * lib/stdint_.h: Rewritten to be fully auto-configured.
13693         Fixes bug on HP-UX/IA64.
13694
13695 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
13696
13697         * lib/getdate.y (__attribute__): Don't define if already defined.
13698         Problem reported by Larry Jones.
13699         * lib/utimens.c (__attribute__): Likewise.
13700
13701 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
13702
13703         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
13704         reported by Andreas Schwab.
13705
13706 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13707             Bruno Haible  <bruno@clisp.org>
13708
13709         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
13710         check for the declaration of strnlen and a run test that exposes the
13711         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
13712         rpl_strndup.
13713
13714 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13715             Bruno Haible  <bruno@clisp.org>
13716
13717         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
13718
13719 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13720
13721         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
13722         compile test, for Tru64 4.0D.
13723
13724 2006-05-28  Karl Berry  <karl@gnu.org>
13725
13726         * config/srclist.txt (printf-args.c): lose sync.
13727
13728 2006-05-26  Martin Lambers  <marlam@marlam.de>
13729
13730         * lib/getpass.c: Updates the test for the native W32 API, and adds
13731         missing includes, thus fixing compilation warnings.
13732
13733 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
13734
13735         * lib/exclude.c (exclude_fnmatch): New function.
13736         (excluded_file_name): Call exclude_fnmatch.
13737         * lib/exclude.h (excluded_file_name): New prototype
13738
13739 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
13740
13741         * lib/tempname.c (small_open, large_open): New macros.
13742         (__open, __open64) [!_LIBC]: Remove.
13743         (__gen_tempname): Use small_open and large_open instead of __open
13744         and __open64.  This fixes a portability bug on HP-UX 11.11i
13745         reported by Simon Wing-Tang in
13746         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
13747
13748 2006-05-24  Bruno Haible  <bruno@clisp.org>
13749
13750         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
13751         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
13752         Reported by Thorsten Maerz <torte@netztorte.de> via
13753         Aaron Stone <aaron@serendipity.cx>.
13754
13755 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
13756
13757         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
13758         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
13759         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
13760         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
13761         not really conditional on the cache.
13762         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
13763
13764 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
13765
13766         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
13767         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
13768         (my_usleep): Don't mishandle maximum value.
13769
13770 2006-05-19  Jim Meyering  <jim@meyering.net>
13771
13772         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
13773
13774 2006-05-17  Bruno Haible  <bruno@clisp.org>
13775
13776         Cygwin portability.
13777         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
13778
13779 2006-05-17  Bruno Haible  <bruno@clisp.org>
13780
13781         * lib/stdint_.h: Fix recognition of Cygwin.
13782
13783 2006-05-15  Bruno Haible  <bruno@clisp.org>
13784
13785         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
13786         on libtool patch by Ralf Wildenhues.
13787
13788 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
13789
13790         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
13791         test for C99 conformance; (bool) 0.5 is an integer constant
13792         expression, but (bool) -0.5 is not.  Problem reported by Fedor
13793         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
13794
13795 2006-05-11  Simon Josefsson  <jas@extundo.com>
13796
13797         * m4/xvasprintf.m4: Fix obvious typo.
13798
13799 2006-05-11  Jim Meyering  <jim@meyering.net>
13800
13801         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
13802         James Lemley.
13803
13804 2006-05-10  Simon Josefsson  <jas@extundo.com>
13805
13806         * lib/md4.c: Typo fix, update copyright years.
13807         (K1, K2): Don't use L because it turn computations into 64-bit on
13808         64-bit platforms.
13809
13810 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
13811
13812         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
13813         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
13814         unwanted sign propagation, e.g., on hosts with 64-bit int.
13815         There still are some problems with reeelly weird theoretical hosts
13816         (e.g., 33-bit int) but it's not worth worrying about now.
13817         * lib/sha1.c (rol): Likewise.
13818         (K1, K2, K3, K4): Remove unnecessary L suffix.
13819
13820 2006-05-10  Bruno Haible  <bruno@clisp.org>
13821
13822         * lib/des.c: Cast to avoid warnings.
13823
13824 2006-05-09  Bruno Haible  <bruno@clisp.org>
13825
13826         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
13827         (Depends-on): Depend also on xsize, stdarg.
13828         (configure.ac): Add gl_XVASPRINTF.
13829
13830 2006-05-09  Bruno Haible  <bruno@clisp.org>
13831
13832         * m4/xvasprintf.m4: New file.
13833
13834 2006-05-09  Bruno Haible  <bruno@clisp.org>
13835
13836         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
13837         (EOVERFLOW): Define fallback value.
13838         (xstrcat): New function.
13839         (xvasprintf): Recognize the special case of a string concatenation.
13840
13841 2006-05-08  Eric Blake  <ebb9@byu.net>
13842
13843         * gnulib-tool (func_version): Base copyright year on CVS date.
13844         (func_emit_copyright_notice): New function.
13845         (func_emit_lib_Makefile_am): Use it.
13846         (func_emit_tests_Makefile_am): Likewise.
13847         (func_import): Likewise.
13848
13849 2006-05-08  Bruno Haible  <bruno@clisp.org>
13850
13851         * modules/stdarg: New file.
13852         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
13853
13854 2006-05-08  Bruno Haible  <bruno@clisp.org>
13855
13856         * m4/stdarg.m4: New file, from GNU gettext.
13857
13858 2006-05-08  Bruno Haible  <bruno@clisp.org>
13859
13860         * config/srclist.txt (build-aux/config.rpath): different from latest
13861         release.
13862
13863 2006-05-08  Bruno Haible  <bruno@clisp.org>
13864
13865         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
13866
13867 2006-05-05  Jim Meyering  <jim@meyering.net>
13868
13869         * m4/warning.m4: New file, derived from bison's file by the same name.
13870
13871 2006-05-03  Bruno Haible  <bruno@clisp.org>
13872
13873         * lib/stdint_.h: Shorter URL.
13874         * lib/inttypes.h: Likewise.
13875
13876 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
13877
13878         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
13879
13880 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
13881
13882         * lib/verify.h: Document the internals better.  Most of this change
13883         was written by Bruno Haible.
13884
13885 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
13886
13887         * doc/verify.texi: New file, partly based on a proposal by
13888         Bruno Haible.
13889
13890 2006-05-02  Bruno Haible  <bruno@clisp.org>
13891
13892         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
13893         test from here...
13894         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
13895
13896 2006-04-29  Bruno Haible  <bruno@clisp.org>
13897
13898         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
13899         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
13900
13901 2006-04-29  Bruno Haible  <bruno@clisp.org>
13902
13903         * gnulib-tool: Make --update option actually work.
13904
13905 2006-04-29  Bruno Haible  <bruno@clisp.org>
13906
13907         * doc/gcd.texi: New file.
13908         * doc/gnulib.texi: Include it.
13909
13910 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
13911
13912         * lib/getdate.y (get_date): When adding relative date, start with the
13913         initial time, not with the result of the first mktime call.
13914
13915 2006-04-25  Bruno Haible  <bruno@clisp.org>
13916
13917         * gnulib-tool (func_import): Output the include directives in three
13918         blocks, sorted separately.
13919         Reported by Ben Pfaff <blp@cs.stanford.edu>.
13920
13921 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
13922
13923         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
13924         to define main with arguments, for C++.  Reported by Eric Blake.
13925         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
13926         Prefer 'int main ()' to 'int main (void)', for C++.
13927         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
13928         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
13929         for 'main', for C99 and C++.
13930
13931 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
13932
13933         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
13934         Don't assume that exit status -1 is valid.
13935         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
13936         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
13937         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
13938         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
13939         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
13940         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
13941         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
13942         functions can be used without declaring them, or that you can
13943         exit with status -1.
13944         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
13945
13946 2006-04-24  Karl Berry  <karl@gnu.org>
13947
13948         * config/srclist.txt (longdouble.m4): sync lost.
13949
13950 2006-04-24  Eric Blake  <ebb9@byu.net>
13951
13952         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
13953
13954 2006-04-24  Bruno Haible  <bruno@clisp.org>
13955
13956         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
13957         poll() implementation in AIX.
13958         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13959
13960 2006-04-24  Bruno Haible  <bruno@clisp.org>
13961
13962         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
13963         assigned exactly once.
13964
13965 2006-04-23  Claudio Fontana  <claudio@gnu.org>
13966             Bruno Haible  <bruno@clisp.org>
13967
13968         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
13969         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
13970         for AM_CPPFLAGS.
13971
13972 2006-04-23  Bruno Haible  <bruno@clisp.org>
13973
13974         * modules/copy-file: Depend on unistd.
13975         * modules/execute: Likewise.
13976         * modules/fatal-signal: Likewise.
13977         * modules/findprog: Likewise.
13978         * modules/mkdtemp : Likewise.
13979         * modules/pipe: Likewise.
13980         * modules/wait-process: Likewise.
13981
13982 2006-04-23  Bruno Haible  <bruno@clisp.org>
13983
13984         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
13985         condition was already detected.
13986         Reported by Ben Pfaff <blp@cs.stanford.edu>.
13987
13988 2006-04-23  Bruno Haible  <bruno@clisp.org>
13989
13990         * lib/copy-file.c: Include <unistd.h> unconditionally.
13991         * lib/execute.c: Likewise.
13992         * lib/fatal-signal.c: Likewise.
13993         * lib/findprog.c: Likewise.
13994         * lib/mkdtemp.c: Likewise.
13995         * lib/pipe.h: Likewise.
13996         * lib/pipe.c: Likewise.
13997         * lib/wait-process.h: Likewise.
13998
13999 2006-04-23  Bruno Haible  <bruno@clisp.org>
14000
14001         * gnulib-tool (func_usage): Fix --import description. Document
14002         --update.
14003         (func_import): Create temporary file in a temporary directory, if
14004         --dry-run is specified. Silence errors from 'grep' when there are no
14005         m4 files in $m4dir.
14006         (func_create_testdir): Silence errors from 'grep' when there are no
14007         m4 files in $m4dir.
14008         Reported by Karl Berry <karl@freefriends.org>.
14009
14010 2006-04-20  Bruno Haible  <bruno@clisp.org>
14011
14012         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
14013         one argument, so that the code will be portable to Autoconf 2.60.
14014         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
14015         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
14016         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
14017
14018 2006-04-19  Derek Price  <derek@ximbiot.com>
14019             Eric Blake  <ebb9@byu.net>
14020
14021         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
14022         rather than "/full/path.h".  Update comment to match.  Shorten &
14023         generalize m4_translit call via AS_TR_CPP.
14024
14025 2006-04-19  Derek Price  <derek@ximbiot.com>
14026             Eric Blake  <ebb9@byu.net>
14027
14028         * lib/inttypes.h: Correct grammar in comment.
14029
14030 2006-04-18  Derek Price  <derek@ximbiot.com>
14031             Paul Eggert  <eggert@cs.ucla.edu>
14032
14033         * modules/inttypes: New file.
14034         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
14035
14036 2006-04-18  Derek Price  <derek@ximbiot.com>
14037             Paul Eggert  <eggert@cs.ucla.edu>
14038
14039         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
14040         New files.
14041
14042 2006-04-18  Derek Price  <derek@ximbiot.com>
14043             Paul Eggert  <eggert@cs.ucla.edu>
14044
14045         * lib/inttypes.h: New file.
14046         * lib/strtoimax.c: Assume <inttypes.h>.
14047
14048 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
14049
14050         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
14051         isn't mounted.  Problem reported by Kir Kolyshkin.
14052
14053 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
14054
14055         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
14056         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
14057         Derek R. Price.
14058         * lib/regex.h (RE_DUP_MAX): Update comment to match current
14059         implementation.
14060
14061 2006-04-12  Eric Blake  <ebb9@byu.net>
14062
14063         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
14064         is now done automatically by the corresponding Autoconf macro.
14065
14066 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
14067
14068         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
14069         time_r.h.
14070
14071 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
14072
14073         Merge regex changes from libc, removing some of our
14074         POSIX-conformance changes that were rejected and redoing them in a
14075         less-intrusive way.
14076
14077         * lib/regcomp.c (re_compile_internal, init_dfa):
14078         Length arg is now size_t, not Idx.  All uses changed.
14079         (peek_token): Forward decl now says internal_function.
14080         (__re_error_msgid, __re_error_msgid_idx):
14081         Now static rather than extern with attribute_hidden.
14082         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
14083         For some reason libc prefers K&R style defns for external functions.
14084         (regerror) [!defined _LIBC]: Likewise.
14085         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
14086         (seek_collating_symbol_entry, lookup_collation_sequence_value):
14087         (build_range_exp, build_collating_symbol):
14088         Use K&R-style defn.
14089         (re_compile_fastmap): Use '\0' to memset, not 0.
14090         (utf8_sb_map): Make the calculations more obvious.
14091         (init_dfa, parse_bracket_exp, build_charclass_op):
14092         Call calloc and cast result, as glibc does.
14093         (init_word_char, fetch_token, peek_token, peek_token_bracket):
14094         (build_range_exp, build_collating_symbol):
14095         Now internal functions.
14096
14097         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
14098
14099         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
14100         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
14101         Don't depend on VMS; depend on __VMS instead, for POSIX
14102         namespace cleanness.
14103         (regoff_t): Define to ssize_t, not long int.
14104
14105         Remove the REG_ macros named below.  Instead, make the old names
14106         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
14107         __USE_GNU_REGEX.
14108         (REG_BACKSLASH_ESCAPE_IN_LISTS):
14109         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
14110         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
14111         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
14112         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
14113         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
14114         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
14115         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
14116         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
14117         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
14118         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
14119         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
14120         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
14121         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
14122         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
14123         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
14124         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
14125         (REG_NREGS):
14126         Remove.  All uses replaced by the old RE_* names.
14127         (RE_BACKSLASH_ESCAPE_IN_LISTS):
14128         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
14129         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
14130         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
14131         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
14132         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
14133         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
14134         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
14135         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
14136         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
14137         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
14138         Don't bother having these macros be independent of each others'
14139         values, since they no longer exist in the POSIX name space.
14140
14141         Rename the following member names back to their old names,
14142         unless !__USE_GNU_REGEX.  All uses changed back.
14143         (buffer): Renamed from re_buffer.
14144         (allocated): Renamed from re_allocated.
14145         (used): Renamed from re_used.
14146         (syntax): Renamed from re_syntax.
14147         (fastmap): Renamed from re_fastmap.
14148         (translate): Renamed from re_translate.
14149         (can_be_null): Renamed from re_can_be_null.
14150         (regs_allocated): Renamed from re_regs_allocated.
14151         (fastmap_accurate): Renamed from re_fastmap_accurate.
14152         (no_sub): Renamed from re_no_sub.
14153         (not_bol): Renamed from re_not_bol.
14154         (not_eol): Renamed from re_not_eol.
14155         (newline_anchor): Renamed from re_newline_anchor.
14156         (num_regs): Renamed from rm_num_regs.
14157         (start): Renamed from rm_start.
14158         (end): Renamed from rm_end.
14159
14160         (free_state): Move up a bit.
14161
14162         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
14163         #define to be empty.
14164         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
14165         when that is what is intended.
14166         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
14167         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
14168         (MAX): New macro.
14169         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
14170         All uses changed back to re_malloc, etc.  It's now the caller's
14171         responsibility to check for overflow; all callers changed.
14172         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
14173         (re_x2nrealloc): Remove.
14174         (free_state): Remove decl.
14175
14176         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
14177         (re_set_registers, re_exec):
14178         Use K&R-style defn.
14179
14180         2006-01-31  Roland McGrath  <roland@redhat.com>
14181
14182         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
14183         Reported by Mike Frysinger <vapier@gentoo.org>.
14184
14185         2006-01-15  Andreas Jaeger  <aj@suse.de>
14186
14187         [BZ #1950]
14188         * lib/regex_internal.c (re_string_reconstruct): Adjust for
14189         build_wcs_upper_buffer change.
14190         (build_wcs_upper_buffer): Change return type.
14191
14192         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
14193
14194         * lib/regex_internal.h: Include <stdint.h> if available.
14195
14196         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
14197
14198         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
14199
14200         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
14201
14202         * lib/regcomp.c: Adjust for changed secondary hash function.
14203
14204         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
14205
14206         * lib/regex.h: Pretty printing.
14207         Clean up namespace a bit.
14208
14209         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
14210
14211         * lib/regexec.c (update_cur_sifted_state, check_arrival,
14212         check_arrival_add_next_nodes): Avoid using uninitialized variable.
14213
14214         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
14215                     Ulrich Drepper  <drepper@redhat.com>
14216
14217         [BZ #1302]
14218         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
14219         changed.
14220         (bitset_word_t): Renamed from bitset_word.  All uses changed.
14221
14222         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
14223
14224         [BZ #281]
14225         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
14226         * lib/regcomp.c: Remove unnecessary uses of
14227         unsigned RE_TRANSLATE_TYPE.
14228         * lib/regex_internal.h: Likewise.
14229         * lib/regex_internal.c: Likewise.
14230         * lib/regexec.c: Likewise.
14231         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
14232
14233         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
14234
14235         * lib/regexec.c (find_recover_state): Remove unnecessary
14236         initialization.
14237         (transit_state_bkref): Make DFA a const pointer.
14238         (get_subexp): Likewise.
14239         (check_arrival): Likewise.
14240         (update_cur_sifted_state): Likewise.
14241         (re_search_internal): Likewise.
14242         (prune_impossible_nodes): Likewise.
14243         (acquire_init_state_context): Likewise.
14244         (proceed_next_node): Likewise.
14245         (set_regs): Likewise.
14246         (free_fail_stack_return): Likewise.
14247         (check_arrival_expand_ecl): Mark DFA parameter as const.
14248         (check_arrival_expand_ecl_sub): Likewise.
14249         (check_subexp_limits): Likewise.
14250         (sub_epsilon_src_nodes):  Likewise.
14251         (add_epsilon_src_nodes):  Likewise.
14252         (merge_state_array): Likewise.
14253         (update_regs): Likewise.
14254         (build_trtable): Likewise.
14255         (sift_states_backward): Mark MCTX parameter as const.
14256         (build_sifted_states): Likewise.
14257         (update_cur_sifted_state): Likewise.
14258         (sift_states_mkref): Likewise.
14259         (check_arrival_expand_ecl): Mark eclosure as const.
14260         (check_dst_limits_calc_pos_1): Likewise.
14261         * lib/regex_internal.h (re_match_context_t): Make dfa a const
14262         pointer.
14263
14264         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
14265
14266         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
14267         (transit_state_sb): Likewise.
14268         (transit_state_mb): Likewise.
14269         (sift_states_iter_mb): Likewise.
14270         (check_arrival_add_next_nodes): Likewise.
14271         (check_node_accept_bytes): Change first parameter to pointer-to-const.
14272         [_LIBC] (re_search_2_stub): Use mempcpy.
14273
14274         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
14275         mbrtowc for very simple UTF-8 case.
14276
14277         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
14278         a pointer-to-const.
14279         (re_acquire_state_context): Likewise.
14280         * lib/regex_internal.h: Adjust prototypes.
14281
14282         * lib/regex.c: Prevent using C++ compilers.
14283
14284         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
14285         (re_acquire_state_context): Likewise.
14286
14287 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
14288
14289         * modules/regex (Depends-on): Add ssize_t.
14290
14291 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
14292
14293         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
14294         translation table.
14295
14296 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
14297
14298         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
14299
14300 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
14301             Bruno Haible  <bruno@clisp.org>
14302
14303         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
14304         <sys/types.h> and <inttypes.h>.
14305
14306 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14307
14308         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
14309         `__error_t_defined', so argp.h will not typedef the former.
14310
14311 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
14312
14313         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
14314         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
14315         glibc names.  Even if glibc is changed to conform to POSIX, the
14316         traditional names will be available anyway, since regex depends on
14317         the extensions module.  Also, fix a longstanding typo in the
14318         implementation of Spencer ERE test #75 from grep 2.3.  Problems
14319         reported by Emanuele Giaquinta.  Also, change sense of cached
14320         variable, so that the message makes sense.
14321
14322 2006-03-24  Simon Josefsson  <jas@extundo.com>
14323
14324         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
14325         including some doc fixes.
14326         (base64_encode_alloc): Fix +1 bug on allocation failures.
14327
14328 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14329
14330         * lib/base64.c (base64_encode): Do not read past end of array with
14331         unsanitized input on systems with CHAR_BIT > 8.
14332
14333 2006-03-24  Eric Blake  <ebb9@byu.net>
14334
14335         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
14336
14337 2006-03-22  Karl Berry  <karl@gnu.org>
14338
14339         * config/srclist.txt (*setenv.[ch]): get from coreutils.
14340         * config/srclistvars.sh (COREUTILS): new var.
14341
14342 2006-03-17  Jim Meyering  <jim@meyering.net>
14343
14344         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
14345         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
14346
14347 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
14348
14349         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
14350         no longer needs it.  Instead, check that regoff_t is as least
14351         as wide as ptrdiff_t.
14352
14353         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
14354         so that our regex.h stays compatible with the installed regex.
14355         This is helpful for installers who configure --without-included-regex.
14356         Problem reported by Emanuele Giaquinta.
14357
14358 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
14359
14360         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
14361         Typedef to long int, not to off_, as POSIX will likely change
14362         in that direction.
14363
14364 2006-03-15  Eric Blake  <ebb9@byu.net>
14365
14366         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
14367
14368 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
14369
14370         * lib/argp-help.c (validate_uparams): Fix typo
14371         * lib/argp-parse.c (argp_default_options): Consistently begin help
14372         messages with a lowercase letter.
14373
14374 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
14375
14376         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
14377         overrun buffers and shouldn't be used (much as gets shouldn't be
14378         used).
14379         * lib/time_r.c (asctime_r, ctime_r): Likewise.
14380
14381 2006-03-08  Simon Josefsson  <jas@extundo.com>
14382
14383         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
14384         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
14385
14386 2006-03-08  Simon Josefsson  <jas@extundo.com>
14387
14388         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
14389         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
14390
14391 2006-03-08  Simon Josefsson  <jas@extundo.com>
14392
14393         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
14394         signal that configure disabled the device.
14395
14396 2006-03-08  Simon Josefsson  <jas@extundo.com>
14397
14398         * build-aux/maint.mk: Fix refresh-po, to handle no translated
14399         languages.
14400
14401 2006-03-07  Simon Josefsson  <jas@extundo.com>
14402
14403         * modules/getopt (Depends-on): Add unistd.
14404
14405         * modules/unistd: New file.
14406
14407 2006-03-07  Simon Josefsson  <jas@extundo.com>
14408
14409         * modules/gc-random: New file.
14410
14411 2006-03-07  Simon Josefsson  <jas@extundo.com>
14412
14413         * m4/unistd_h.m4: New file.
14414
14415 2006-03-07  Simon Josefsson  <jas@extundo.com>
14416
14417         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
14418         test to be side-effect free by storing the result in the cache
14419         variable gl_cv_lib_readline, and moving the assignment of
14420         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
14421         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
14422
14423 2006-03-07  Simon Josefsson  <jas@extundo.com>
14424
14425         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
14426         error on missing devices (the functions will return an error).
14427
14428         * m4/gc.m4: Move random stuff to gc-random.m4
14429
14430 2006-03-07  Simon Josefsson  <jas@extundo.com>
14431
14432         * lib/unistd_.h: New file.
14433
14434 2006-03-07  Simon Josefsson  <jas@extundo.com>
14435
14436         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
14437
14438 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
14439
14440         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
14441         Problem reported by Juan Manuel Guerrero.
14442
14443 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
14444
14445         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
14446         the unistd module.
14447         * lib/getlogin_r.c: Likewise.
14448         * lib/getlogin_r.h: Likewise.
14449         * lib/glob.c: Likewise.
14450         * lib/pagealign_alloc.c: Likewise.
14451         * lib/unistd_.h: Remove; no longer needed.
14452
14453 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
14454
14455         * MODULES.html.sh (Support for systems lacking POSIX:2001):
14456         Add unistd.
14457         * modules/c-stack (Depends-on): Add unistd.
14458         * modules/getlogin_r: Likewise.
14459         * modules/glob: Likewise.
14460         * modules/pagealign_alloc: Likewise.
14461         * modules/unistd (Files): Remove lib/unistd_.h.
14462         (EXTRA_DIST): Remove.
14463         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
14464         need unistd_.h.
14465         (MOSTLYCLEANFILES): Remove unistd.h-t.
14466
14467 2006-03-03  Simon Josefsson  <jas@extundo.com>
14468
14469         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
14470
14471 2006-03-03  Simon Josefsson  <jas@extundo.com>
14472
14473         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
14474         libidn and bison.
14475
14476 2006-03-03  Simon Josefsson  <jas@extundo.com>
14477
14478         * build-aux/maint.mk: Add indent target.
14479
14480 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
14481
14482         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
14483         our replacement poll.h in any case, to avoid a differing
14484         declaration from a system header.  Seen on AIX.
14485
14486 2006-03-01  Simon Josefsson  <jas@extundo.com>
14487
14488         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
14489         <kasal@ucw.cz>.
14490
14491 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
14492
14493         * modules/gettime (Depends-on): Add extensions module.
14494         * modules/nanosleep (Depends-on): Likewise.
14495         * modules/settime (Depends-on): Likewise.
14496
14497 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
14498
14499         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
14500         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
14501         pedantically.
14502         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
14503         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
14504
14505         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
14506         not "==".  Reported by Ralf Wildenhues.
14507
14508 2006-03-01  Karl Berry  <karl@gnu.org>
14509
14510         * doc/Copyright/request-*: new files, synced from gnuorg.
14511
14512 2006-03-01  Karl Berry  <karl@gnu.org>
14513
14514         * config/srclist.txt (Copyright/*): new entries.
14515
14516 2006-02-28  Simon Josefsson  <jas@extundo.com>
14517
14518         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
14519
14520 2006-02-27  Simon Josefsson  <jas@extundo.com>
14521
14522         * lib/base64.h: Indent #define's.  From Jim Meyering
14523         <jim@meyering.net>.
14524
14525 2006-02-27  Jim Meyering  <jim@meyering.net>
14526
14527         Revert the change of 2006-02-24, so these files can continue
14528         to be sync'd from gettext.
14529         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
14530         of `config.h'.
14531
14532 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
14533
14534         * modules/intprops: New file.
14535         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
14536         Add intprops.
14537         * modules/getloadavg (Files): Remove lib/intprops.h.
14538         (Depends-on): Add intprops.
14539         * modules/human: Likewise.
14540         * modules/inttostr: Likewise.
14541         * modules/openat: Likewise.
14542         * modules/sig2str: Likewise.
14543         * modules/userspec: Likewise.
14544         * modules/utimecmp: Likewise.
14545         * modules/xnanosleep: Likewise.
14546         * modules/xstrtol: Likewise.
14547
14548 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
14549
14550         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
14551         * modules/lock-tests (TESTS): Use $(EXEEXT).
14552         * modules/tls-tests: Likewise.
14553         * modules/argp-tests: Likewise.
14554         (check_PROGRAMS): New var, replacing...
14555         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
14556
14557 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14558
14559         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
14560         `config.h'.
14561
14562 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
14563
14564         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
14565
14566 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14567
14568         Sync from coreutils.
14569         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
14570         gl_CHDIR_SAFER.
14571
14572 2006-02-22  Jim Meyering  <jim@meyering.net>
14573
14574         Sync from coreutils.
14575         * m4/chdir-safer.m4: New file.
14576
14577 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
14578
14579         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
14580         AT_FDCWD exceeds INT_MAX.
14581         * lib/openat.h (AT_FDCWD): Likewise.
14582
14583 2006-02-17  Eric Blake  <address@hidden>
14584
14585         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
14586
14587 2006-02-16  Simon Josefsson  <jas@extundo.com>
14588
14589         * modules/getaddrinfo (Depends-on): Add sys_socket.
14590
14591 2006-02-15  Simon Josefsson  <jas@extundo.com>
14592
14593         * build-aux/maint.mk: Add dsyntax-check rule.
14594
14595 2006-02-15  Eric Blake  <ebb9@byu.net>
14596
14597         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
14598         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
14599         'present but cannot compile' warnings on cygwin.
14600         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
14601         use ws2tcpip.h if sys/socket.h works.
14602         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
14603         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
14604
14605 2006-02-14  Simon Josefsson  <jas@extundo.com>
14606
14607         * modules/maintainer-makefile (Files): Rename.
14608
14609         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
14610         and (the local) Makefile.cfg to maint-cfg.mk.
14611
14612         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
14613         to the latter.
14614
14615         * modules/maintainer-makefile: New module.
14616
14617         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
14618         severaly stripped to make it possible to build it up from scratch
14619         with reliable tests.
14620
14621         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
14622         fixes to permit overriding the default actions when configure and
14623         makefile are not available.
14624
14625 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
14626
14627         Sync from coreutils.
14628         * modules/lstat (Depends-on): Don't depend on xalloc.
14629         (License): Change from GPL to LGPL, since this is now simply a
14630         replacement for a libc function.
14631
14632 2006-02-14  Jim Meyering  <jim@meyering.net>
14633
14634         Sync from coreutils.
14635
14636         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
14637         failure on deficient systems, and simplify gnulib lgpl dependencies.
14638         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
14639         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
14640
14641         * lib/xalloc-die.c: Remove unused definition of N_.
14642
14643 2006-02-14  Jim Meyering  <jim@meyering.net>
14644
14645         Sync from coreutils.
14646         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
14647         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
14648         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
14649         double-quote uses of that variable, to accommodate the rare case in
14650         which getmntent is available in none of the libraries checked.  This
14651         happens at least on FreeBSD 5.0.
14652
14653 2006-02-13  Simon Josefsson  <jas@extundo.com>
14654
14655         * gnulib-tool (Usage): Fix --import, from
14656         karl@freefriends.org (Karl Berry).
14657
14658 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
14659
14660         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
14661
14662 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
14663
14664         * lib/argp-namefrob.h: Restore changes accidentally lost during the
14665         "autoupdate" on 2005-12-12.
14666
14667 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
14668
14669         * modules/closeout (Depends-on): Remove atexit.
14670
14671 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
14672
14673         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
14674         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
14675
14676 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
14677
14678         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
14679         __EXTENSIONS__ if this causes compilation to fail.  Problem
14680         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
14681         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
14682
14683 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
14684
14685         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
14686         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
14687         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
14688         All uses changed.
14689
14690 2006-01-26  Simon Josefsson  <jas@extundo.com>
14691
14692         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
14693         prototype is visible on mingw32.
14694
14695         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
14696         for mingw32.
14697
14698         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
14699         mingw32).
14700
14701 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
14702
14703         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
14704         attempt to open for write; this always fails, at least on POSIX
14705         hosts.  This reinstates the 2006-01-09 change, which was
14706         inadvertently removed.
14707
14708 2006-01-26  Bruno Haible  <bruno@clisp.org>
14709
14710         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
14711         Reported by Paul Eggert.
14712
14713 2006-01-26  Bruno Haible  <bruno@clisp.org>
14714             Paul Eggert  <eggert@cs.ucla.edu>
14715
14716         * lib/stdbool_.h (_Bool)
14717         [(! (defined __cplusplus || defined __BEOS__)
14718           && !defined __GNUC__
14719           && !(defined __HP_cc || defined __xlc__
14720                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
14721                || defined __sgi))]:
14722         #define to signed char in these cases too; this simplifies
14723         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
14724         etc., separately) and makes it more conservative.
14725
14726 2006-01-25  Simon Josefsson  <jas@extundo.com>
14727
14728         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
14729         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
14730         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
14731
14732 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
14733
14734         * lib/argp-namefrob.h: Bugfix. Remove stray #
14735
14736 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
14737
14738         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
14739         so that we test the test.
14740         Check for yet another HP-UX cc bug involving *bool |= bool.
14741
14742 2006-01-25  Karl Berry  <karl@gnu.org>
14743
14744         * config/srclist.txt (vasnprintf.c): sync lost.
14745
14746 2006-01-25  Jim Meyering  <jim@meyering.net>
14747
14748         Sync from the stable (b5) branch of coreutils:
14749
14750         * lib/fts.c (fts_children): Don't let close() clobber errno from
14751         failed fchdir().
14752
14753         * lib/fts.c (fts_stat): When following a symlink-to-directory,
14754         don't necessarily interpret stat-fails+lstat-succeeds as indicating
14755         a dangling symlink.  That can also happen at least for ELOOP.
14756         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
14757         FYI, this bug predates the inclusion of fts.c in coreutils.
14758
14759         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
14760         in their own block, so pre-c99 compilers don't object.
14761
14762         Avoid the double-free (first in fts_read, second in fts_close) that
14763         would occur when an `active' directory is made inaccessible (e.g.,
14764         via chmod a-x) during a traversal.
14765         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
14766         before returning.  Reproduce this failure by
14767         mkdir -p a/b; cd a; chmod a-x . b
14768         Reported by Stavros Passas.
14769
14770 2006-01-25  Jim Meyering  <jim@meyering.net>
14771
14772         * lib/fileblocks.c: Remove more useless parentheses.
14773         * lib/readutmp.h: Likewise.
14774
14775 2006-01-25  Bruno Haible  <bruno@clisp.org>
14776
14777         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
14778         warnings.
14779         Reported by Paul Eggert.
14780
14781 2006-01-25  Bruno Haible  <bruno@clisp.org>
14782
14783         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
14784         rid of a trap command. For Solaris sh.
14785         Reported by Mark D. Baushke <mdb@gnu.org>.
14786
14787 2006-01-24  Simon Josefsson  <jas@extundo.com>
14788
14789         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
14790         Bruno.
14791
14792 2006-01-24  Karl Berry  <karl@gnu.org>
14793
14794         * config/srclist.txt (argp-namefrob.h): sync lost.
14795
14796 2006-01-24  Jim Meyering  <jim@meyering.net>
14797
14798         * modules/openat (Files): Add lib/intprops.h.
14799         From Mark D. Baushke.
14800
14801 2006-01-24  Jim Meyering  <jim@meyering.net>
14802
14803         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
14804         Reported by Mark D. Baushke.
14805
14806 2006-01-24  Jim Meyering  <jim@meyering.net>
14807
14808         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
14809
14810 2006-01-24  Bruno Haible  <bruno@clisp.org>
14811
14812         * modules/strnlen (Maintainer): Change from glibc to all.
14813
14814 2006-01-24  Bruno Haible  <bruno@clisp.org>
14815
14816         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
14817         Patch by Paul Eggert.
14818
14819 2006-01-24  Bruno Haible  <bruno@clisp.org>
14820
14821         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
14822         already has it.
14823         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
14824         2005-11-26.
14825
14826         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
14827         'signed char' to avoid problems with the built-in _Bool type.
14828         Reported by Paul Eggert on 2005-11-26.
14829
14830 2006-01-24  Bruno Haible  <bruno@clisp.org>
14831
14832         * gnulib-tool (func_import): Avoid constructing complicated sed
14833         expressions inside backquote.
14834         Report and solution by Mark D. Baushke <mdb@gnu.org>.
14835
14836 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
14837
14838         These changes imported from libc.
14839         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
14840         test and two separate function calls.
14841         * lib/strndup.c (__strndup): Add libc_hidden_def.
14842
14843 2006-01-23  Simon Josefsson  <jas@extundo.com>
14844
14845         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
14846         Remove the test_*_SOURCES variable: automake infers it by default.
14847         * modules/tls-tests: Likewise.
14848
14849 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
14850
14851         Work around porting bugs reported by Dieter in
14852         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
14853         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
14854         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
14855         Include "getopt.h" first, to check interface.
14856         (getenv): Declare only if defined HAVE_DECL_GETENV &&
14857         !HAVE_DECL_GETENV.
14858         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
14859         (__strndup): Revert to K&R-style function dfns, the glibc style.
14860         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
14861         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
14862         Include strnlen.h first, to get prototype properly.
14863         (strnlen): Renamed from __strnlen.
14864         Remove weak alias.
14865
14866 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
14867
14868         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
14869
14870 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
14871
14872         * config/srclist.txt: Adjust to reflect glibc reorganization.
14873         This affects only comments.
14874
14875 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
14876
14877          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
14878          Reported by Bruce Korb <bkorb@gnu.org>.
14879
14880 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
14881
14882         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
14883         to pacify gcc -Wswitch-default.
14884
14885 2006-01-22  Bruno Haible  <bruno@clisp.org>
14886
14887         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
14888         temporary buffer for sprintf, take into account the precision also
14889         for 'd', 'i', 'u', 'o', 'x', 'X'.
14890
14891 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
14892
14893         * modules/argp-tests: New module
14894         * tests/test-argp.c: New file
14895         * tests/test-argp-2.sh: New file
14896
14897 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
14898
14899         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
14900         (__argp_base_name): Removed
14901         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
14902         typo.
14903         (__argp_base_name): Provide macro definition or extern declaration
14904         depending on the configuration
14905
14906 2006-01-20  Simon Josefsson  <jas@extundo.com>
14907
14908         * modules/inet_ntop (Depends-on): Depend on sys_socket.
14909
14910 2006-01-20  Simon Josefsson  <jas@extundo.com>
14911
14912         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
14913
14914 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
14915
14916         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
14917         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
14918         Suggested by Bruno Haible.
14919
14920 2006-01-20  Karl Berry  <karl@gnu.org>
14921
14922         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
14923         until changes propagate, I guess.
14924
14925 2006-01-19  Simon Josefsson  <jas@extundo.com>
14926
14927         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
14928
14929 2006-01-19  Simon Josefsson  <jas@extundo.com>
14930
14931         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
14932
14933 2006-01-19  Simon Josefsson  <jas@extundo.com>
14934
14935         * gnulib-tool: Set check_PROGRAMS.
14936
14937         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
14938         modules/des-tests, modules/gc-arcfour-tests,
14939         modules/gc-arctwo-tests, modules/gc-des-tests,
14940         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
14941         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
14942         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
14943         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
14944         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
14945         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
14946         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
14947         test_*_SOURCES.
14948
14949 2006-01-18  Simon Josefsson  <jas@extundo.com>
14950
14951         * modules/socklen (Depends-on): Depend on sys_socket.
14952
14953 2006-01-18  Simon Josefsson  <jas@extundo.com>
14954
14955         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
14956         modules/des-tests, modules/gc-arcfour-tests,
14957         modules/gc-arctwo-tests, modules/gc-des-tests,
14958         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
14959         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
14960         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
14961         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
14962         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
14963         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
14964         $(EXEEXT) to automake TESTS variable, for mingw32.
14965
14966 2006-01-17  Simon Josefsson  <jas@extundo.com>
14967
14968         * modules/socklen (Include): Need sys/socket.h.
14969
14970 2006-01-17  Bruno Haible  <bruno@clisp.org>
14971
14972         * modules/ssize_t (Include): Add <sys/types.h>.
14973
14974 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
14975
14976         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
14977         it's not portable and it doesn't work with cross-compiles.
14978         Problem reported by Bruno Haible.  Fix missing-$ typo in
14979         'test "gl_cv_ignore_unused_libraries" ...' that prevented
14980         -zignore from being used with Sun's C compiler.
14981
14982 2006-01-12  Simon Josefsson  <jas@extundo.com>
14983
14984         * lib/base64.c: Fix warning, reported by Bruno Haible
14985         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
14986
14987 2006-01-12  Bruno Haible  <bruno@clisp.org>
14988
14989         * modules/ldd: New file.
14990         * build-aux/ldd.sh.in: New file.
14991         * MODULES.html.sh (Support for building libraries and executables): Add
14992         ldd.
14993
14994 2006-01-12  Bruno Haible  <bruno@clisp.org>
14995
14996         * m4/ldd.m4: New file.
14997
14998 2006-01-12  Bruno Haible  <bruno@clisp.org>
14999
15000         * gnulib-tool (func_import, func_create_testdir): Don't go into an
15001         endless loop while replacing $auxdir with build-aux.
15002
15003 2006-01-11  Simon Josefsson  <jas@extundo.com>
15004
15005         * lib/stdint_.h (SIZE_MAX): Add missing (.
15006
15007 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
15008
15009         Sync from coreutils.
15010         * lib/md5.c: Fix commentary typos.
15011         (alignof, UNALIGNED_P): No need for a GCC-specific version.
15012         * lib/md5.h (__attribute__): Remove; unused.
15013         * lib/sha1.c: Fix commentary to match md5 better.
15014         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
15015         so that we don't need to worry about alignment.  All uses changed.
15016         This merges the 2005-10-28 md5 change into sha1.
15017
15018 2006-01-11  Jim Meyering  <jim@meyering.net>
15019
15020         Sync from coreutils.
15021         * lib/md5.c (OP): Fix spacing.
15022
15023 2006-01-11  Bruno Haible  <bruno@clisp.org>
15024
15025         Ensure automatic ordering between gl_LOCK and gl_ARGP.
15026         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
15027         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
15028
15029 2006-01-11  Bruno Haible  <bruno@clisp.org>
15030
15031         Ensure automatic ordering between gl_LOCK and gl_ARGP.
15032         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
15033         the "early" section as well.
15034
15035 2006-01-11  Bruno Haible  <bruno@clisp.org>
15036
15037         Avoid "ar: no archive members specified" error on MacOS X.
15038         * gnulib-tool (func_modules_add_dummy): New function.
15039         (func_import, func_create_testdir): Invoke it.
15040
15041 2006-01-11  Bruno Haible  <bruno@clisp.org>
15042
15043         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
15044         with $auxdir in AC_CONFIG_FILES statements.
15045
15046 2006-01-11  Bruno Haible  <bruno@clisp.org>
15047
15048         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
15049         Initialize also noinst_HEADERS to empty.
15050
15051 2006-01-11  Bruno Haible  <bruno@clisp.org>
15052
15053         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
15054         variables.
15055         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
15056         autoreconf.
15057
15058 2006-01-11  Bruno Haible  <bruno@clisp.org>
15059
15060         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
15061         overridable by the user.
15062         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15063
15064 2006-01-10  Simon Josefsson  <jas@extundo.com>
15065
15066         * modules/sys_socket: New file.
15067
15068 2006-01-10  Simon Josefsson  <jas@extundo.com>
15069
15070         * m4/sys_socket_h.m4: New file.
15071
15072 2006-01-10  Simon Josefsson  <jas@extundo.com>
15073
15074         * lib/socket_.h: New file.
15075
15076 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
15077
15078         * modules/readutmp (Maintainer): Add myself.
15079
15080 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
15081
15082         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
15083         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
15084         People who are still concerned with buggy memcmp implementations
15085         can invoke gl_FUNC_MEMCMP themselves.
15086
15087 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
15088
15089         * lib/regex_internal.h (BITSET_WORD_BITS):
15090         Work around a bug in 64-bit PGC (before version 6.1-2), where the
15091         preprocessor mishandles large unsigned values as if they were signed.
15092         Problem reported by Claudio Fontana in
15093         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
15094
15095 2006-01-10  Jim Meyering  <jim@meyering.net>
15096
15097         Avoid the double-free (first in fts_read, second in fts_close) that
15098         would occur when an `active' directory is made inaccessible (e.g.,
15099         via chmod a-x) during a traversal.
15100         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
15101         before returning.  Reproduce this failure by
15102         mkdir -p a/b; cd a; chmod a-x . b
15103         Reported by Stavros Passas.
15104
15105         Sync from coreutils.
15106         * lib/sha1.c: Tweak grammar in a comment.
15107
15108 2006-01-10  Jim Meyering  <jim@meyering.net>
15109
15110         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
15111         Patch by Joerg Sonnenberger.
15112
15113 2006-01-10  Bruno Haible  <bruno@clisp.org>
15114
15115         * modules/readutmp: Depend on module free.
15116         * modules/strtok_r: Depend on module restrict.
15117
15118 2006-01-10  Bruno Haible  <bruno@clisp.org>
15119
15120         * modules/gettext (configure.ac): Add an invocation of
15121         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
15122
15123 2006-01-10  Bruno Haible  <bruno@clisp.org>
15124
15125         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
15126         Reported by Werner Lemberg <wl@gnu.org>.
15127
15128 2006-01-10  Bruno Haible  <bruno@clisp.org>
15129
15130         * lib/localcharset.c: Update from GNU gettext.
15131
15132 2006-01-10  Bruno Haible  <bruno@clisp.org>
15133
15134         * lib/argp.h (__const): Remove macro. Use const instead.
15135         * lib/argp-fmtstream.h (__const): Likewise.
15136         * lib/glob_.h (__const): Remove macro.
15137         * lib/glob-libc.h: Use const instead of __const.
15138
15139 2006-01-10  Bruno Haible  <bruno@clisp.org>
15140
15141         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
15142         variable.
15143         Needed to avoid an automake error regarding the 'gettext' module.
15144
15145 2006-01-09  Simon Josefsson  <jas@extundo.com>
15146
15147         * modules/inet_ntop (Depends-on): Add restrict.
15148
15149 2006-01-09  Simon Josefsson  <jas@extundo.com>
15150
15151         * modules/gc-rijndael-tests (License): Put under LGPL.
15152
15153         * modules/gc-des-tests (License): Likewise.
15154
15155         * modules/gc-arcfour-tests (License): Likewise.
15156
15157         * modules/gc-arctwo-tests (License): Likewise.
15158
15159         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
15160
15161         * modules/gc-hmac-sha1-tests (Files): Likewise.
15162
15163         * modules/gc-hmac-md5-tests (License): Likewise.
15164
15165         * modules/gc-sha1-tests (License): Likewise.
15166
15167         * modules/gc-md5-tests (License): Likewise.
15168
15169         * modules/gc-md4-tests (License): Likewise.
15170
15171         * modules/gc-md2-tests (License): Likewise.
15172
15173         * modules/gc-tests (License): Likewise.
15174
15175         * modules/des-tests (License): Likewise.
15176
15177         * modules/md4-tests (License): Likewise.
15178
15179         * modules/md2-tests (License): Likewise.
15180
15181 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
15182
15183         Sync from coreutils:
15184
15185         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
15186         * modules/lib-ignore: New file.
15187         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
15188         chdir-safer.m4, lchmod.m4.
15189         * modules/openat: Add mkdirat.c, openat-priv.h.
15190
15191 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
15192
15193         Sync from coreutils.
15194         * m4/lib-ignore.m4: New file.
15195         * m4/lchmod.m4: New file.
15196
15197 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
15198
15199         Sync from coreutils.
15200         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
15201         for write access: POSIX says that must fail.
15202         * lib/fts.c (diropen): Likewise.
15203         * lib/save-cwd.c (save_cwd): Likewise.
15204         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
15205         well, for minor improvements on hosts that lack O_DIRECTORY.
15206         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
15207         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
15208         Fall back on chown if open failed with EACCES.
15209
15210         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
15211         Report an error at compile-time if only a 1-second nominal clock
15212         resolution is found.
15213
15214         * lib/lchmod.h: New file.
15215         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
15216         (make_dir_parents): Use lchown rather than chown, and
15217         lchmod rather than chmod.
15218
15219         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
15220         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
15221         "proc" reported by n0dalus.
15222
15223         * lib/mountlist.c: Include <limits.h>.
15224         (dev_from_mount_options)
15225         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
15226         New function.  It no longer assumes "dev=" has the System V meaning
15227         on Linux (since it doesn't).  It also parses "dev=" more carefully.
15228         (read_file_system_list)
15229         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
15230         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
15231         dev= in that case.
15232
15233         * lib/posixtm.h (PDS_PRE_2000): New macro.
15234         * lib/posixtm.c (year): Arg is now syntax_bits rather than
15235         allow_century.  All usages changed.  Reject dates outside the range
15236         1969-1999 if PDS_PRE_2000 is used.
15237
15238 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
15239
15240         Sync from coreutils.
15241         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
15242         (Time of day items): Mention the possibility of leap seconds.
15243         Problem reported by Dr. David Alan Gilbert.
15244
15245 2006-01-09  Jim Meyering  <jim@meyering.net>
15246
15247         Sync from coreutils.
15248
15249         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
15250
15251         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
15252
15253         * lib/modechange.c (mode_compile): Reject an invalid mode string
15254         that starts with an octal digit.  From Andreas Gruenbacher.
15255
15256         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
15257         and dup to open_safer and dup_safer, respectively.
15258         (openat_permissive): Fix typo in comment.
15259
15260         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
15261         "gettext.h"; either no longer needed or are guaranteed by openat.h.
15262         (_): Remove; no longer needed.
15263         (openat): Renamed from rpl_openat; no need for rpl_openat
15264         since openat.h renames openat for us.
15265         Replace most of the body with a call to openat_permissive,
15266         to avoid duplicate code.
15267         Port to (probably hypothetical) environments were mode_t is
15268         wider than int.
15269         (openat_permissive): Require mode arg, so that we can check
15270         types better.  Put it just after flags.  Change cwd failure
15271         indicator from pointer-to-bool to pointer-to-errno-value.
15272         All callers changed.
15273         Invoke openat_save_fail and/or openat_restore_fail if
15274         cwd_errno is null, so that openat can call us.
15275         (openat_permissive, fdopendir, fstatat, unlinkat):
15276         Simplify errno handling to avoid some duplicate code,
15277         as it's OK to set errno on success.
15278         * lib/openat.h: Revamp code so that function macros depend on
15279         __OPENAT_PREFIX only, not also on AT_FDCWD.
15280         (openat_ro): Remove.  Caller changed to use openat_permissive.
15281         (openat_permissive): Now a macro, if not a function.
15282         (openat_restore_fail, openat_save_fail): Now always functions,
15283         since mkdirat needs them even if __OPENAT_PREFIX is defined.
15284
15285         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
15286         and openat.c.
15287         * lib/mkdirat.c: Include openat-priv.h.
15288         Remove definitions of macros defined therein.
15289         * lib/openat.c: Likewise.
15290
15291         * lib/mkdirat.c (mkdirat): New file and function.
15292         * lib/openat.h (mkdirat): Declare.
15293
15294         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
15295
15296         * lib/openat.h (openat_permissive): Declare.
15297         (openat_ro): Define.
15298
15299         * lib/openat.c (EXPECTED_ERRNO): New macro.
15300         (openat_permissive): New function -- used in remove.c rewrite.
15301         (all functions): Set errno just before returning, only if there
15302         was an actual failure.
15303         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
15304
15305         Emulate openat-family functions using Linux's procfs, if possible.
15306         Idea and some code based on Ulrich Drepper's glibc changes.
15307
15308         * lib/openat.c: (BUILD_PROC_NAME): New macro.
15309         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
15310         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
15311         before falling back on save_cwd and restore_cwd.
15312         (fdopendir, fstatat, unlinkat): Likewise.
15313
15314         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
15315         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
15316
15317         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
15318         as second argument to va_arg.  Otherwise, some versions of gcc
15319         warn that `if this code is reached, the program will abort'.
15320
15321 2006-01-09  Jim Meyering  <jim@meyering.net>
15322
15323         Sync from coreutils.
15324         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
15325         Require openat-priv.h.
15326
15327 2006-01-09  Bruno Haible  <bruno@clisp.org>
15328
15329         * modules/strnlen (Include): Use strnlen.h.
15330
15331 2006-01-09  Bruno Haible  <bruno@clisp.org>
15332
15333         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
15334
15335 2006-01-09  Bruno Haible  <bruno@clisp.org>
15336
15337         * lib/sysexit_.h (EX_OK): New macro.
15338         Suggested by Martin Lambers <marlam@marlam.de>.
15339
15340 2006-01-09  Bruno Haible  <bruno@clisp.org>
15341
15342         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
15343         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
15344
15345 2006-01-09  Bruno Haible  <bruno@clisp.org>
15346
15347         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
15348         numbers.
15349
15350 2006-01-09  Bruno Haible  <bruno@clisp.org>
15351
15352         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
15353         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
15354         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
15355         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
15356
15357 2006-01-09  Bruno Haible  <bruno@clisp.org>
15358
15359         * build-aux/javacomp.sh.in: New file, moved from lib/.
15360         * modules/javacomp-script (Files): Update.
15361         (configure.ac): Add AC_CONFIG_FILES invocation.
15362         (EXTRA_DIST): Remove variable.
15363
15364         * build-aux/javaexec.sh.in: New file, moved from lib/.
15365         * modules/javaexec (Files): Update.
15366         (configure.ac): Add AC_CONFIG_FILES invocation.
15367         (EXTRA_DIST): Remove javaexec.sh.in.
15368
15369         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
15370         * modules/csharpcomp-script (Files): Update.
15371         (configure.ac): Add AC_CONFIG_FILES invocation.
15372         (EXTRA_DIST): Remove variable.
15373
15374         * build-aux/csharpexec.sh.in: New file, moved from lib/.
15375         * modules/csharpexec (Files): Update.
15376         (configure.ac): Add AC_CONFIG_FILES invocation.
15377         (EXTRA_DIST): Remove csharpexec.sh.in.
15378
15379 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
15380
15381         Sync from coreutils.
15382
15383         Add POSIX ACL support
15384         * lib/acl.h (copy_acl, set_acl): Add declarations.
15385         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
15386         systems other than Linux.
15387         (chmod_or_fchmod): New function: use fchmod when possible,
15388         and chmod otherwise.
15389         (file_has_acl): Add a POSIX ACL implementation, with a
15390         Linux-specific subcase.
15391         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
15392         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
15393         acls are unsupported.
15394         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
15395         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
15396         are unsupported.
15397
15398 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
15399
15400         Sync from coreutils.
15401         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
15402
15403 2006-01-07  Bruno Haible  <bruno@clisp.org>
15404
15405         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
15406         gl_EARLY.
15407
15408 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
15409
15410         * lib/strftime.c (tzname): Don't declare if it is already #defined.
15411         Problem reported for Mingw by Mark Junker.
15412
15413 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
15414
15415         * README: Gnulib normally doesn't generate a tarball.
15416
15417 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
15418
15419         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
15420         long int, not int, for nanosecond counts, so that people who are
15421         used to POSIX struct timespec won't be surprised.  Reported by Jim
15422         Meyering.
15423
15424 2005-12-28  Bruno Haible  <bruno@clisp.org>
15425
15426         * build-aux/config.rpath: Update from GNU gettext.
15427
15428 2005-12-16  Jim Meyering  <jim@meyering.net>
15429
15430         * modules/fprintftime: New module.
15431         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
15432
15433 2005-12-16  Jim Meyering  <jim@meyering.net>
15434
15435         * m4/fprintftime.m4: New file.
15436
15437 2005-12-16  Jim Meyering  <jim@meyering.net>
15438
15439         * lib/fprintftime.c, lib/fprintftime.h: New files.
15440
15441 2005-12-15  Simon Josefsson  <jas@extundo.com>
15442
15443         * modules/socklen (configure.ac): Fix M4 macro name, to align with
15444         new m4/socklen.m4.
15445
15446 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
15447
15448         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
15449         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
15450
15451 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
15452
15453         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
15454         * lib/argp-help.c (fill_in_uparams): Check if the constructed
15455         struct uparams is valid. Fall back to the default values if it is
15456         not.
15457
15458 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
15459
15460         * modules/argp (Files): Add argp-pin.c
15461         (Depends-on): dirname
15462         (lib_SOURCES): Add argp-pin.c
15463
15464 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
15465
15466         * m4/argp.m4:  Check if program_invocation_name and
15467         program_invocation_short_name are declared and define appropriate
15468         macros if they are not.
15469
15470 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
15471
15472         * lib/argp-help.c (__argp_base_name): New function
15473         (__argp_short_program_name): Rewrite using __argp_base_name
15474         * lib/argp-namefrob.h: Define program_invocation_name and
15475         program_invocation_short_name if requested
15476         (__argp_base_name): Add prototype
15477         * lib/argp-parse.c (argp_def): Use gettext wrappers
15478         (argp_default_parser): Use __argp_base_name
15479         * lib/argp-pin.c: New file. Defines program_invocation_name and
15480         program_invocation_short_name on systems that lack them.
15481
15482 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
15483
15484         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
15485         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
15486         porting problem reported by Georg Schwarz in
15487         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
15488
15489 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
15490
15491         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
15492         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
15493         porting problem reported by Georg Schwarz in
15494         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
15495
15496 2005-12-05  Bruno Haible  <bruno@clisp.org>
15497
15498         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
15499         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
15500         Reported by Mark Junker <mjscod@gmx.de>.
15501
15502 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
15503
15504         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
15505         Use implementation from Albert Chin, with some
15506         comments/corrections by Stepan Kasal and myself.
15507
15508 2005-12-02  Bruno Haible  <bruno@clisp.org>
15509
15510         * gnulib-tool (func_import): Accept GPLed build tool modules when
15511         --lgpl is given.
15512         * modules/csharpcomp-script: New file.
15513         * modules/csharpcomp: Depend on it.
15514         * modules/javacomp-script: New file.
15515         * modules/javacomp: Depend on it.
15516         Suggested by Simon Josefsson.
15517
15518 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
15519
15520         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
15521         statement, to work around an HP-UX 10.20 compiler bug reported by
15522         Peter O'Gorman.
15523
15524 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
15525
15526         * modules/savedir (Depends-on): Add openat.
15527
15528 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
15529
15530         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
15531         (uintmax_t) [defined uintmax_t]: Do not declare.
15532         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
15533         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
15534         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
15535         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
15536         sake of portability to weird hosts that C allows (though we don't
15537         know of any practical examples).
15538
15539         * lib/savedir.h (fdsavedir): New decl.
15540         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
15541         contains most of the former guts of savedir.
15542         (savedir): Use savedirstream.
15543         Include "openat.h".
15544
15545 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
15546
15547         * modules/obstack (Files): Add m4/ulonglong.m4.
15548         Problem reported by Davide Angelocola.
15549
15550 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
15551
15552         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
15553         coreutils no longer futzes with rounding modes.
15554
15555 2005-11-14  Jim Meyering  <jim@meyering.net>
15556
15557         * lib/mkstemp-safer.c: Include <config.h>, required for possible
15558         replacement of mkstemp.
15559
15560 2005-11-10  Simon Josefsson  <jas@extundo.com>
15561
15562         * lib/readline.c: Remove EOL.
15563
15564 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
15565
15566         * modules/gethrxtime (Depends-on): Add gettime.
15567
15568 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
15569
15570         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
15571         or gettimeofday; no longer needed.
15572
15573 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
15574
15575         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
15576         time business.
15577         (gethrxtime) [! (HAVE_NANOUPTIME
15578         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
15579         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
15580         our own approximation.
15581
15582 2005-11-08  Eric Blake  <ebb9@byu.net>
15583
15584         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
15585
15586 2005-11-08  Eric Blake  <ebb9@byu.net>
15587
15588         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
15589
15590 2005-11-04  Bruno Haible  <bruno@clisp.org>
15591
15592         * gnulib-tool: Implement --update mode.
15593
15594 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
15595
15596         Fix porting problem reported by Theodoros V. Kalamatianos.
15597         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
15598         Don't assume that futimes failing means we must fail.
15599
15600 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
15601
15602         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
15603         variables to suggest the intended function of the PATH_MAX check.
15604
15605 2005-10-30  Kean Johnston  <jkj@sco.com>
15606
15607         Trivial changes to support SCO systems.
15608         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
15609         as PATH_MAX.
15610         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
15611         where __ptr is null when no I/O is pending.
15612
15613 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
15614
15615         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
15616         leave errno alone.  Problem reported by Dmitry V. Levin.
15617
15618 2005-10-28  Simon Josefsson  <jas@extundo.com>
15619
15620         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
15621         Test more.
15622
15623         * tests/test-gc-md2.c, tests/test-md2.c: New files.
15624
15625         * modules/md2, modules/md2-tests: New files.
15626
15627 2005-10-28  Simon Josefsson  <jas@extundo.com>
15628
15629         * m4/inet_ntop.m4: More tests.
15630
15631         * m4/gc-md2.m4, md2.m4: New file.
15632
15633 2005-10-28  Simon Josefsson  <jas@extundo.com>
15634
15635         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
15636         "restrict" keywords, as per POSIX.  Protect the function
15637         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
15638         Don't use K&R prototypes.  Check the sprintf return values.
15639         Re-define EAFNOSUPPORT if not present.  Indent.
15640
15641         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
15642         suggested by Bruno Haible <bruno@clisp.org>.
15643
15644         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
15645
15646         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
15647
15648         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
15649         libgcrypt).
15650
15651         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
15652
15653         * lib/md2.h, lib/md2.c: New files.
15654
15655 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
15656
15657         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
15658         errno alone.  Problem reported by Frederic Jolliton.
15659
15660 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
15661
15662         * modules/verify (License): Change from GPL to LGPL.  This is a
15663         tiny module and there are apparently near-equivalents that are
15664         under the BSD license.
15665
15666 2005-10-24  Simon Josefsson  <jas@extundo.com>
15667
15668         * modules/sha1: Relicense to LGPL.
15669
15670 2005-10-24  Simon Josefsson  <jas@extundo.com>
15671
15672         * lib/md4.h: Shrink buffer size, now that we changed the type.
15673
15674 2005-10-23  Simon Josefsson  <jas@extundo.com>
15675
15676         * gnulib-tool (func_import): Fix --tests-base.
15677
15678 2005-10-22  Simon Josefsson  <jas@extundo.com>
15679
15680         * modules/arcfour (Depends-on): Need stdint.
15681
15682 2005-10-22  Simon Josefsson  <jas@extundo.com>
15683
15684         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
15685         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
15686
15687 2005-10-22  Simon Josefsson  <jas@extundo.com>
15688
15689         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
15690         suggested by Bruno Haible <bruno@clisp.org>.
15691
15692 2005-10-22  Simon Josefsson  <jas@extundo.com>
15693
15694         * lib/crc.h: Include stddef.h, for size_t.
15695
15696 2005-10-22  Simon Josefsson  <jas@extundo.com>
15697
15698         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
15699         arcfour_context struct (simplify test vector testing in GNU
15700         Shishi).
15701
15702 2005-10-21  Simon Josefsson  <jas@extundo.com>
15703
15704         * modules/des, modules/des-tests: New files.
15705
15706         * modules/gc-des, modules/gc-des-tests: New files.
15707
15708         * tests/test-des.c, tests/test-gc-des.c: New file.
15709
15710 2005-10-21  Simon Josefsson  <jas@extundo.com>
15711
15712         * modules/arctwo, modules/arctwo-tests: New files.
15713
15714         * tests/test-arctwo.c: New file.
15715
15716         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
15717
15718         * tests/test-gc-arctwo.c: New file.
15719
15720 2005-10-21  Simon Josefsson  <jas@extundo.com>
15721
15722         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
15723         Bruno Haible <bruno@clisp.org>.
15724
15725         * m4/gc-des.m4: New file.
15726
15727 2005-10-21  Simon Josefsson  <jas@extundo.com>
15728
15729         * m4/arctwo.m4: New file.
15730
15731         * m4/gc-arctwo.m4: New file.
15732
15733 2005-10-21  Simon Josefsson  <jas@extundo.com>
15734
15735         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
15736         block.
15737
15738 2005-10-21  Simon Josefsson  <jas@extundo.com>
15739
15740         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
15741         <bruno@clisp.org>.
15742
15743         * lib/hmac-sha1.c (hmac_sha1): Likewise.
15744
15745         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
15746         Bruno Haible <bruno@clisp.org>.
15747
15748         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
15749         <bruno@clisp.org>.
15750
15751 2005-10-21  Simon Josefsson  <jas@extundo.com>
15752
15753         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
15754
15755 2005-10-21  Simon Josefsson  <jas@extundo.com>
15756
15757         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
15758
15759 2005-10-21  Simon Josefsson  <jas@extundo.com>
15760
15761         * lib/des.h, lib/des.c: New files.
15762
15763         * lib/gc-gnulib.c: Support DES.c
15764
15765 2005-10-21  Simon Josefsson  <jas@extundo.com>
15766
15767         * lib/arctwo.h, lib/arctwo.c: New files.
15768
15769         * lib/gc-gnulib.c: Support ARCTWO.
15770
15771 2005-10-21  Simon Josefsson  <jas@extundo.com>
15772
15773         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
15774         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15775
15776 2005-10-21  Simon Josefsson  <jas@extundo.com>
15777
15778         * gnulib-tool (func_import, func_create_testdir): Define automake
15779         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
15780         Makefile.am snippet),
15781         suggested by Bruno Haible <bruno@clisp.org>.
15782
15783         * modules/gc (Makefile.am): Use it.
15784
15785 2005-10-21  Bruno Haible  <bruno@clisp.org>
15786
15787         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
15788         patch.
15789
15790 2005-10-19  Simon Josefsson  <jas@extundo.com>
15791
15792         * tests/test-gc-rijndael.c: New file.
15793
15794         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
15795
15796 2005-10-19  Simon Josefsson  <jas@extundo.com>
15797
15798         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
15799         interface too.
15800
15801 2005-10-19  Simon Josefsson  <jas@extundo.com>
15802
15803         * tests/test-gc-arcfour.c: New file.
15804
15805         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
15806
15807 2005-10-19  Simon Josefsson  <jas@extundo.com>
15808
15809         * modules/gc-md4, modules/gc-md4-tests: New file.
15810
15811         * tests/test-gc-md4.c: New file.
15812
15813 2005-10-19  Simon Josefsson  <jas@extundo.com>
15814
15815         * m4/gc-md4.m4: New file.
15816
15817 2005-10-19  Simon Josefsson  <jas@extundo.com>
15818
15819         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
15820         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
15821         <kasal@ucw.cz>.
15822
15823 2005-10-19  Simon Josefsson  <jas@extundo.com>
15824
15825         * m4/gc-arcfour.m4: New file.
15826
15827         * m4/gc-rijndael.m4: New file.
15828
15829 2005-10-19  Simon Josefsson  <jas@extundo.com>
15830
15831         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
15832
15833 2005-10-19  Simon Josefsson  <jas@extundo.com>
15834
15835         * lib/gc-gnulib.c: Support ARCFOUR.
15836
15837 2005-10-19  Simon Josefsson  <jas@extundo.com>
15838
15839         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
15840         support.
15841
15842         * lib/gc.h: Add ECB enum type.
15843
15844         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
15845
15846 2005-10-18  Simon Josefsson  <jas@extundo.com>
15847
15848         * tests/test-md5.c: New file.
15849
15850         * modules/md5-tests: New file.
15851
15852 2005-10-18  Simon Josefsson  <jas@extundo.com>
15853
15854         * tests/test-md4.c: New file.
15855
15856         * modules/md4, modules/md4-tests: New files.
15857
15858 2005-10-18  Simon Josefsson  <jas@extundo.com>
15859
15860         * m4/md4.m4: New file.
15861
15862 2005-10-18  Simon Josefsson  <jas@extundo.com>
15863
15864         * lib/md4.h, lib/md4.c: New files, based on md5.?.
15865
15866 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
15867
15868         * gnulib-tool (func_create_testdir): Omit the second check whether
15869         BUILT_SOURCES in nonempty.
15870
15871 2005-10-17  Simon Josefsson  <jas@extundo.com>
15872
15873         * tests/test-rijndael.c: New file.
15874
15875 2005-10-17  Simon Josefsson  <jas@extundo.com>
15876
15877         * modules/sha1: Depend on stdint instead of md5.
15878
15879         * modules/md5: Depend on stdint, remove uint32_t.
15880
15881 2005-10-17  Simon Josefsson  <jas@extundo.com>
15882
15883         * modules/gc-sha1-tests: New file.
15884
15885         * tests/test-gc-sha1.c: New file.
15886
15887 2005-10-17  Simon Josefsson  <jas@extundo.com>
15888
15889         * m4/md5.m4: Remove call to uint32_t.m4.
15890
15891 2005-10-17  Simon Josefsson  <jas@extundo.com>
15892
15893         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
15894
15895         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
15896         md5.h.
15897
15898         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
15899
15900         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
15901
15902 2005-10-17  Simon Josefsson  <jas@extundo.com>
15903
15904         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
15905
15906 2005-10-17  Simon Josefsson  <jas@extundo.com>
15907
15908         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
15909
15910 2005-10-17  Simon Josefsson  <jas@extundo.com>
15911
15912         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
15913
15914         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
15915
15916 2005-10-17  Bruno Haible  <bruno@clisp.org>
15917
15918         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
15919         that it can also be used in a test.
15920
15921 2005-10-16  Bruno Haible  <bruno@clisp.org>
15922
15923         * gnulib-tool (func_emit_tests_Makefile_am): Also define
15924         TESTS_ENVIRONMENT, so that individual tests can augment it.
15925
15926         * gnulib-tool (func_create_testdir): Use an intermediate target for
15927         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
15928         macros, like $(ALLOCA_H), which cannot be passed through the command
15929         line.
15930
15931 2005-10-15  Simon Josefsson  <jas@extundo.com>
15932
15933         * modules/rijndael-tests: New file.
15934
15935         * modules/rijndael: New file.
15936
15937 2005-10-15  Simon Josefsson  <jas@extundo.com>
15938
15939         * m4/rijndael.m4: New file.
15940
15941 2005-10-15  Simon Josefsson  <jas@extundo.com>
15942
15943         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
15944
15945         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
15946
15947 2005-10-14  Simon Josefsson  <jas@extundo.com>
15948
15949         * tests/test-arcfour.c: New file.
15950
15951         * modules/arcfour, modules/arcfour-tests: New files.
15952
15953 2005-10-14  Simon Josefsson  <jas@extundo.com>
15954
15955         * m4/arcfour.m4: New file.
15956
15957 2005-10-14  Simon Josefsson  <jas@extundo.com>
15958
15959         * lib/arcfour.h, lib/arcfour.c: New files.
15960
15961 2005-10-14  Roland McGrath  <roland@redhat.com>
15962
15963         Import from libc.  [BZ #1331]
15964         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
15965         macro argument.
15966         Reported by Matej Vela <vela@debian.org>.
15967
15968 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
15969
15970         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
15971         include <wchar.h>; no longer needed.
15972
15973 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
15974
15975         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
15976
15977 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
15978         and  Ulrich Drepper  <drepper@redhat.com>
15979
15980         Import from libc.
15981         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
15982         instead of inline stream orientation test and two separate
15983         function calls.  Pay no attention to USE_IN_LIBIO.
15984
15985 2005-10-13  Simon Josefsson  <jas@extundo.com>
15986
15987         * modules/gc-hmac-md5-tests: New file.
15988
15989         * tests/test-gc-hmac-sha1.c: New file.
15990
15991         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
15992
15993         * modules/gc-hmac-md5-tests: New file.
15994
15995         * tests/test-gc-md5.c: New file.
15996
15997         * modules/gc-md5-tests: New file.
15998
15999 2005-10-13  Simon Josefsson  <jas@extundo.com>
16000
16001         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
16002         Move memory allocation outside of loop.
16003
16004 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
16005
16006         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
16007         intermediate directory is in a read-only file system.  Problem
16008         reported by Eric Blake.
16009
16010 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
16011
16012         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
16013
16014 2005-10-12  Simon Josefsson  <jas@extundo.com>
16015
16016         * tests/test-hmac-sha1.c: New file.
16017
16018         * modules/hmac-sha1-tests: New file.
16019
16020         * modules/hmac-sha1: New file.
16021
16022 2005-10-12  Simon Josefsson  <jas@extundo.com>
16023
16024         * modules/gc-sha1: New file.
16025
16026 2005-10-12  Simon Josefsson  <jas@extundo.com>
16027
16028         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
16029
16030         * tests/test-gc-pbkdf2-sha1.c: New file.
16031
16032 2005-10-12  Simon Josefsson  <jas@extundo.com>
16033
16034         * modules/gc-md5, modules/gc-hmac-md5: New files.
16035
16036         * modules/gc (Files): Remove md5, memxor and hmac files.
16037
16038 2005-10-12  Simon Josefsson  <jas@extundo.com>
16039
16040         * m4/gc-pbkdf2-sha1.m4: New file.
16041
16042         * m4/gc-hmac-sha1.m4: New file.
16043
16044         * m4/gc-sha1: New file.
16045
16046         * m4/hmac-sha1.m4: New file.
16047
16048 2005-10-12  Simon Josefsson  <jas@extundo.com>
16049
16050         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
16051
16052         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
16053
16054 2005-10-12  Simon Josefsson  <jas@extundo.com>
16055
16056         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
16057         suggested by Bruno Haible <bruno@clisp.org>.
16058
16059 2005-10-12  Simon Josefsson  <jas@extundo.com>
16060
16061         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
16062
16063 2005-10-12  Simon Josefsson  <jas@extundo.com>
16064
16065         * lib/gc-pbkdf2-sha1.c: New file.
16066
16067         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
16068
16069 2005-10-12  Simon Josefsson  <jas@extundo.com>
16070
16071         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
16072
16073         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
16074
16075 2005-10-12  Simon Josefsson  <jas@extundo.com>
16076
16077         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
16078         GC_USE_HMAC_MD5, respectively.
16079
16080         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
16081         (gc_md5): Fix typo.
16082
16083         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
16084
16085         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
16086
16087         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
16088
16089 2005-10-12  Bruno Haible  <bruno@clisp.org>
16090
16091         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
16092         Reported by Stepan Kasal <kasal@ucw.cz>.
16093
16094 2005-10-11  Simon Josefsson  <jas@extundo.com>
16095
16096         * tests/test-crc.c: New file.
16097
16098         * modules/crc, modules/crc-tests: New files.
16099
16100 2005-10-11  Simon Josefsson  <jas@extundo.com>
16101
16102         * m4/crc.m4: New file.
16103
16104 2005-10-11  Simon Josefsson  <jas@extundo.com>
16105
16106         * lib/gc.h: Add gc_hash and gc_hash_buffer.
16107
16108         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
16109
16110         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
16111
16112 2005-10-11  Simon Josefsson  <jas@extundo.com>
16113
16114         * lib/crc.h, lib/crc.c: New files.
16115
16116         * lib/gc.h (gc_hash_buffer): Add doc.
16117
16118 2005-10-11  Bruno Haible  <bruno@clisp.org>
16119
16120         * modules/c-strcasestr: New file.
16121         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
16122
16123 2005-10-11  Bruno Haible  <bruno@clisp.org>
16124
16125         * modules/c-strcase: New file.
16126         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
16127
16128 2005-10-11  Bruno Haible  <bruno@clisp.org>
16129
16130         * lib/strcasecmp.c: Include limits.h.
16131         (strcasecmp): Avoid integer overflow on exotic platforms.
16132         * lib/strncasecmp.c: Include limits.h.
16133         (strncasecmp): Avoid integer overflow on exotic platforms.
16134         Reported by Paul Eggert.
16135
16136 2005-10-11  Bruno Haible  <bruno@clisp.org>
16137
16138         * lib/c-strcasestr.h: New file, from GNU gettext.
16139         * lib/c-strcasestr.c: New file, from GNU gettext.
16140
16141 2005-10-11  Bruno Haible  <bruno@clisp.org>
16142
16143         * lib/c-strcase.h: New file, from GNU gettext.
16144         * lib/c-strcasecmp.c: New file, from GNU gettext.
16145         * lib/c-strncasecmp.c: New file, from GNU gettext.
16146
16147 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
16148
16149         * modules/mempcpy (License): GPL -> LGPL.
16150         * modules/strchrnul (License): Likewise.
16151         * modules/sysexits (License): Likewise.
16152
16153 2005-10-08  Simon Josefsson  <jas@extundo.com>
16154
16155         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
16156
16157 2005-10-07  Simon Josefsson  <jas@extundo.com>
16158
16159         * m4/memxor.m4: Remove gl_C_RESTRICT call.
16160
16161 2005-10-06  Simon Josefsson  <jas@extundo.com>
16162
16163         * tests/test-hmac-md5.c: New file.
16164
16165         * modules/hmac-md5-tests: New file.
16166
16167         * modules/hmac-md5: New file.
16168
16169 2005-10-06  Simon Josefsson  <jas@extundo.com>
16170
16171         * m4/hmac-md5.m4: New file.
16172
16173         * m4/memxor.m4: Require gl_C_RESTRICT.
16174
16175 2005-10-06  Simon Josefsson  <jas@extundo.com>
16176
16177         * lib/memxor.c (memxor): Avoid casts and warnings.
16178
16179 2005-10-06  Simon Josefsson  <jas@extundo.com>
16180
16181         * lib/hmac-md5.c: New file.
16182
16183         * lib/hmac.h: New file.
16184
16185 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
16186
16187         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
16188         promotes to int, not unsigned int, to catch the AIX 5.3
16189         compiler bug.
16190
16191 2005-10-05  Simon Josefsson  <jas@extundo.com>
16192
16193         * modules/memxor: New file.
16194
16195         * modules/iconv (Files): Move config.rpath to havelib, it is used
16196         there.
16197
16198         * modules/havelib (Files): Add config.rpath.
16199
16200 2005-10-05  Simon Josefsson  <jas@extundo.com>
16201
16202         * m4/memxor.m4: New file.
16203
16204 2005-10-05  Simon Josefsson  <jas@extundo.com>
16205
16206         * lib/memxor.c (memxor): Fix compiler error.
16207
16208         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
16209         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
16210
16211         * lib/memxor.h, lib/memxor.c: New files.
16212
16213         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
16214         we assume all systems have it, suggested by Jim Meyering
16215         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
16216         any systems lack sys/socket.h; mingw32 is known to lack it, but we
16217         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
16218         same reasons.
16219
16220 2005-10-05  Simon Josefsson  <jas@extundo.com>
16221
16222         * config/srclist.txt: Add glibc bug 1423 for md5.h.
16223
16224 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
16225
16226         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
16227         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
16228         needed, since the source code now assumes these .h files.
16229
16230 2005-10-05  Derek Price  <derek@ximbiot.com>
16231
16232         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
16233
16234 2005-10-05  Bruno Haible  <bruno@clisp.org>
16235
16236         * modules/stdint (License): Change to LGPL.
16237
16238 2005-10-04  Simon Josefsson  <jas@extundo.com>
16239
16240         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
16241         D. Baushke" <mdb@gnu.org>.
16242
16243 2005-10-04  Bruno Haible  <bruno@clisp.org>
16244
16245         * lib/verify.h (verify_true): Provide alternative definition for C++.
16246
16247 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
16248
16249         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
16250         (SSIZE_MAX): New macro, if not already defined.
16251         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
16252         than 2 GiB.
16253
16254 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
16255
16256         Sync from coreutils.
16257         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
16258         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
16259         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
16260         ULLONG_MAX doesn't work with 2.7.2.1.
16261
16262 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
16263
16264         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
16265         From Ben Pfaff.
16266
16267         * modules/exclude (Depends-on): Depend on verify.
16268         * modules/strtoimax (Depends-on): Likewise.
16269         * modules/utimecmp (Depends-on): Likewise.
16270
16271 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
16272
16273         * lib/exclude.c: Include verify.h.
16274         (verify): Remove.  All callers changed to use verify.h's version.
16275         * lib/strtoimax.c: Likewise.
16276         * lib/utimecmp.c: Likewis.e
16277
16278         Sync from coreutils.
16279         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
16280         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
16281         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
16282         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
16283         bother returning ENOSYS if settimeofday or stime fails; just let
16284         them return whatever errno they want to return.
16285         * lib/utimens.c: Include unistd.h, for dup2.
16286         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
16287         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
16288
16289 2005-10-02  Jim Meyering  <jim@meyering.net>
16290
16291         Sync from coreutils.
16292         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
16293         from glibc-2.2.5 that fails for read-only files.
16294
16295 2005-10-02  Jim Meyering  <jim@meyering.net>
16296
16297         Sync from coreutils.
16298         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
16299         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
16300         `#if HAVE_CONFIG_H'.
16301         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
16302         Remove AT_FDCWD test.
16303         Do not consume the fd unless successful.
16304         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
16305         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
16306         block, so that we don't even try to compile it if settimeofday is
16307         available.  This works around a compilation failure on OSF1 V5.1,
16308         due to stime requiring a `long int*' while tv_sec is `int'.
16309
16310 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
16311
16312         Sync from coreutils.
16313         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
16314         against `yes', rather than just testing for nonempty.
16315
16316 2005-10-01  Simon Josefsson  <jas@extundo.com>
16317
16318         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
16319         and Darwin.
16320
16321         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
16322         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
16323         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
16324         freeaddrinfo and gai_strerror are declared by the POSIX headers.
16325         Check if struct addrinfo is declared.
16326
16327 2005-10-01  Simon Josefsson  <jas@extundo.com>
16328
16329         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
16330         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
16331         AI_* and EAI_* definitions.  Protect function declarations.
16332
16333 2005-10-01  Jim Meyering  <jim@meyering.net>
16334
16335         Sync from coreutils.
16336
16337         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
16338         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
16339         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
16340         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
16341         in the inet and nsl libraries.  Required on Solaris 5.7.
16342
16343 2005-10-01  Jim Meyering  <jim@meyering.net>
16344
16345         Sync from coreutils.
16346         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
16347         in the inet and nsl libraries.  Required on Solaris 5.7.
16348
16349 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
16350
16351         * lib/getdelim.c (getdelim): Remove unused variables.
16352
16353 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
16354
16355         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
16356         so that the code works even with ancient cpp.  Portability problem
16357         with GCC 2.7.2.1 reported by Thomas M.Ott.
16358
16359 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
16360
16361         * modules/regex (Depends-on): Add strcase.
16362
16363         * modules/gethostname (Licence): Change from GPL to LGPL, since
16364         gethostname.c is a trivial implementation of a standard library
16365         function.
16366         * modules/poll (License): Change from GPL to LGPL, since it's
16367         derived from LGPL code.
16368
16369 2005-09-27  Jim Meyering  <jim@meyering.net>
16370
16371         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
16372         HAVE_CONFIG_H.
16373
16374         * lib/intprops.h (signed_type_or_expr__): Define.
16375         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
16376         for unsigned types.
16377
16378 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
16379
16380         * lib/verify.h (verify_expr): Remove, replacing with:
16381         (verify_true): New macro that returns true instead of void.
16382         (verify_type__): Remove.
16383         (verify): Use verify_true rather than verify_type__.
16384
16385 2005-09-26  Bruno Haible  <bruno@clisp.org>
16386
16387         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
16388         is necessary.
16389         (lib_SOURCES): Remove mbchar.c.
16390         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
16391         (Files): Add m4/mbrtowc.m4.
16392         * modules/mbiter: Likewise.
16393         * modules/mbuiter: Likewise.
16394
16395 2005-09-26  Bruno Haible  <bruno@clisp.org>
16396
16397         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
16398         compile mbchar.c if they are not both present.
16399         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
16400         * m4/mbiter.m4 (gl_MBITER): Likewise.
16401         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
16402         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
16403         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
16404
16405 2005-09-25  Jim Meyering  <jim@meyering.net>
16406
16407         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
16408         also uses socklen_t.
16409
16410 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
16411
16412         * lib/utimens.c (ENOSYS): Define if not already defined.
16413         (futimens): Support having a null PATH if the file descriptor
16414         is nonnegative.
16415
16416         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
16417         Remove.
16418         (__attribute): Define to empty unless GCC 3.1 or later.
16419         This works around a core dump on OpenBSD 3.4, which has GCC
16420         2.95.3, which dumps core when given __attribute__(()).  It also
16421         simplifies other tests, since we really don't want to bother with
16422         worrying about which ancient version of GCC supported what.
16423         Original problem reported by Yoann Vandoorselaere, with part of
16424         the fix suggested by Derek Price.
16425
16426 2005-09-24  Jim Meyering  <jim@meyering.net>
16427
16428         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
16429         so we can once again use a positive bitfield width of 1 -- now we
16430         don't have to explain why we were using a bitfield width of 2.
16431
16432 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
16433
16434         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
16435         and similarly for the other external symbols.  Problem reported
16436         by James Gallager.
16437
16438         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
16439         bug reported by Jim Meyering.
16440
16441         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
16442         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
16443         not needed, since socklen is a prerequisite module.
16444
16445 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
16446
16447         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
16448         Problem reported by Eric Blake.
16449         (getaddrinfo): Initialize se so that it's not garbage.
16450         Redo internal storage allocation so that it doesn't make unportable
16451         assumptions about alignment.
16452         Fix a memory leak.
16453
16454         * lib/utimens.c (futimens): Use futimesat if available.
16455         Prefer it to futimes since it doesn't have the futimes bug.
16456
16457         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
16458         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
16459         Instead, declare a function that returns a pointer to an array,
16460         and use verify_type__ to declare the size of the array.
16461         Problem and germ of a solution reported by Bruno Haible.
16462         (verify_type__): Use 2, not 1, for bitfield size, to avoid
16463         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
16464
16465 2005-09-23  Jim Meyering  <jim@meyering.net>
16466
16467         Sync from coreutils.
16468         Correct build failure (socklen_t not defined) on at least
16469         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
16470         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
16471
16472 2005-09-23  Jim Meyering  <jim@meyering.net>
16473
16474         * modules/getaddrinfo (Depends-on): Add socklen.
16475
16476 2005-09-23  Bruno Haible  <bruno@clisp.org>
16477
16478         * tests/test-verify.c: New file.
16479
16480 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
16481
16482         Sync from coreutils.
16483
16484         * modules/argmatch (Depends-on): Add verify.
16485         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
16486         unistd-safer.
16487         * modules/save-cwd (Depends-on): Likewise.
16488
16489         * modules/openat (Files): Add lib/openat-die.c.
16490         (Depends-on): Remove error, exitfail.
16491         Add dirname.
16492
16493         * modules/verify: New file.
16494         * MODULES.html.sh (Diagnostics <assert.h>): New section,
16495         with "verify" module.
16496
16497 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
16498
16499         Sync from coreutils.
16500
16501         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
16502         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
16503         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
16504         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
16505         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
16506         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
16507         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
16508         Don't bother checking for string.h, stdlib.h, unistd.h.
16509         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
16510         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
16511         module's job.
16512         * m4/jm-macros.m4 (gl_MACROS): Likewise.
16513         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
16514
16515         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
16516         (gl_GETDATE): Use it.
16517
16518         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
16519
16520 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
16521
16522         Sync from coreutils.
16523
16524         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
16525         stat-time.h.
16526         * lib/argmatch.h: Include verify.h
16527         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
16528         (ARGMATCH_ASSERT): Remove; unused.
16529         * lib/canonicalize.c: Assume STDC_HEADERS.
16530         * lib/exclude.c: Include "strcase.h".
16531         * lib/regex_internal.h [!defined _LIBC]: Likewise.
16532         * lib/getusershell.c: Include stdio--.h rather than stdio.h
16533         and stdio-safer.h.
16534         (getusershell): Call fopen, not fopen_safer.
16535         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
16536         Do not include unistd-safer.h.
16537         (save_cwd): Don't call fd_safer; no longer needed
16538         now that we include fcntl--.h.
16539
16540         * lib/getdate.y (relative_time): New type.
16541         (RELATIVE_TIME_0): New constant.
16542         (parser_control): Use relative_time instead of doing it ourselves.
16543         (%union): Add new relative_time rel member.
16544         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
16545         Now typeless.
16546         (relunit, relunit_snumber): Now of type rel.
16547         (zone, rel, relunit, get_date): Adjust to above changes.
16548
16549         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
16550         Do not include unistd-safer.h.
16551         (getloadavg): Don't call fd_safer; no longer needed
16552         now that we include fcntl--.h.
16553
16554         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
16555         (make_dir_parents): Treat ENOSYS like EEXIST.
16556
16557         Improve quality of diagnostics on restore_cwd failure.
16558         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
16559         (make_dir_parents): Last arg is now int * (for errno), not bool *.
16560         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
16561         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
16562         each time through the loop.  Do not diagnose restore_cwd failure;
16563         that is the caller's job (and perhaps the caller does not care).
16564
16565         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
16566         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
16567         If the file already exists but is not a directory, don't bother
16568         to try to make its parents.
16569         Close potential file descriptor leak if we can't chdir("/") (!).
16570         Don't always return true if chdir($PWD) fails; return true only
16571         if the requested action was done successfully (except for the
16572         chdir($PWD)).
16573         Don't log final directory unless we actually made it.
16574         Refactor to avoid duplicate code to fix up permissions.
16575         Don't attempt to fix up parent permissions if chdir($PWD) fails.
16576
16577         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
16578         to make it a bit faster and (I hope) clearer.
16579         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
16580         Fix bug in formats like %2N.
16581
16582         * lib/verify.h: New file.
16583
16584 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
16585
16586         Sync from coreutils.
16587         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
16588
16589 2005-09-22  Jim Meyering  <jim@meyering.net>
16590
16591         Sync from coreutils.
16592
16593         * m4/lstat.m4 (gl_FUNC_LSTAT):
16594         Use AC_LIBSOURCES to require lstat.c and lstat.h.
16595         Remove obsolete comment.
16596         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
16597         * m4/xstrtod.m4: Likewise.
16598
16599         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
16600
16601 2005-09-22  Jim Meyering  <jim@meyering.net>
16602
16603         Sync from coreutils.
16604
16605         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
16606
16607         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
16608         the .tm_year member, since otherwise gcc-4.0 would now warn about
16609         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
16610
16611         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
16612         order to avoid an unsuppressible warning from gcc on 64-bit systems.
16613
16614         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
16615         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
16616         when run in a time zone for which daylight savings time is in effect
16617         for the starting date.
16618
16619         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
16620         stop us from restricting permissions of just-created absolute-named
16621         directories.
16622         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
16623         to restore initial working directory.
16624         * lib/mkdir-p.c (make_dir_parents): New parameter:
16625         different_working_dir, to tell caller if/when we change the working
16626         directory and are unable to return to the initial one.
16627         * lib/mkdir-p.h (make_dir_parents): Update prototype.
16628         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
16629         `return false'.  This fixes a bug introduced on 2004-07-30.
16630
16631         * lib/openat.c (fdopendir): Be sure to close the supplied
16632         file descriptor before returning.  This makes our replacement
16633         implementation a little closer to Solaris's, where fdopendir
16634         ties the file descriptor to the returned DIR* pointer.
16635         * lib/openat.c (unlinkat): New function.
16636         * lib/openat.h (unlinkat): Add prototype.
16637         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
16638         (openat_restore_fail): Rename from openat_restore_die.
16639         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
16640
16641         Provide an alternative to exiting immediately upon save_cwd or
16642         restore_cwd failure.  Now, an application can arrange e.g.,
16643         to perform a longjump in that case.
16644         * lib/openat.c: Include dirname.h.
16645         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
16646         (rpl_openat, fdopendir, fstatat): Call openat_save_die
16647         and openat_restore_die rather than calling error directly.
16648         Don't include "error.h" or "exitfail.h"; they're no longer needed.
16649
16650         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
16651         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
16652         define.
16653
16654         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
16655         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
16656                             int utc, int nanoseconds);
16657         Background:
16658         date should not have to allocate a megabyte of virtual memory to
16659         handle a format argument like +%1048575T.  When implemented with
16660         strftime, it must allocate such a buffer, use strftime to fill it
16661         in, print it, then free it.
16662         With fprintftime, it simply prints everything and exits.
16663         With no need for memory allocation, that's one fewer way to fail.
16664         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
16665         optional field width, not before, so we accept %9:z, not %:9z.
16666         (my_strftime): Be sure to use L_('x') for literals.
16667
16668         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
16669         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
16670         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
16671         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
16672         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
16673         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
16674         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
16675         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
16676         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
16677         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
16678         * lib/xgethostname.c, lib/xreadlink.c:
16679         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
16680
16681         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
16682         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
16683         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
16684         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
16685         and don't include <sys/file.h>).
16686
16687 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
16688
16689         Sync from coreutils.
16690
16691         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
16692         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
16693         [!LDAV_DONE]: Avoid unused variable warning.
16694
16695 2005-09-21  Bruno Haible  <bruno@clisp.org>
16696
16697         * lib/unicodeio.h (unicode_to_mb): New declaration.
16698
16699 2005-09-20  Derek Price  <derek@ximbiot.com>
16700
16701         * lib/getaddrinfo.c: Don't include <netdb.h> included from
16702         getaddrinfo.h.
16703
16704 2005-09-20  Bruno Haible  <bruno@clisp.org>
16705
16706         * gnulib-tool: Remove trailing slashes from the values specified for
16707         --source-base, --m4-base, --tests-base, --aux-dir.
16708         Suggested by Simon Josefsson <jas@extundo.com>.
16709
16710 2005-09-20  Bruno Haible  <bruno@clisp.org>
16711
16712         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
16713         func_modules_to_filelist, func_import, func_create_testdir): Make all
16714         sorting results locale-independent, so that gnulib-cache.m4 doesn't
16715         change when gnulib-tool is invoked in a different locale.
16716
16717 2005-09-19  Simon Josefsson  <jas@extundo.com>
16718
16719         * m4/socklen.m4: Fix typo.
16720
16721 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16722
16723         Use a consistent style for including <config.h>.
16724         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
16725         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
16726         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
16727         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
16728         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
16729         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
16730         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
16731         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
16732         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
16733         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
16734         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
16735         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
16736         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
16737         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
16738         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
16739         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
16740         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
16741         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
16742         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
16743         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
16744         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
16745         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
16746         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
16747         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
16748         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
16749         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
16750         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
16751         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
16752         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
16753         lib/xstrtoumax.c, lib/yesno.c:
16754         Standardize inclusion of config.h.
16755         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
16756         lib/inttostr.h:  Removed inclusion of config.h from header files.
16757         * lib/inttostr.c:  Adjusted in-tree users.
16758         * lib/timespec.h: Remove superfluous warning to include config.h.
16759         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
16760         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
16761         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
16762         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
16763         config.h with HAVE_CONFIG_H.
16764
16765 2005-09-19  Jim Meyering  <jim@meyering.net>
16766
16767         * modules/pathmax (License): Change to LGPL.
16768
16769 2005-09-19  Derek Price  <derek@ximbiot.com>
16770
16771         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
16772
16773 2005-09-19  Bruno Haible  <bruno@clisp.org>
16774
16775         * gnulib-tool (import): Provide default for --tests-base.
16776
16777 2005-09-19  Bruno Haible  <bruno@clisp.org>
16778
16779         * doc/quote.texi: New file, extracted from gnulib.texi.
16780         * doc/ctime.texi: New file, extracted from gnulib.texi.
16781         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
16782         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
16783         * doc/gnulib.texi: Include them.
16784
16785 2005-09-18  Bruno Haible  <bruno@clisp.org>
16786
16787         Portability fix.
16788         * gnulib-tool (func_readlink): New function.
16789         (func_ln_if_changed): Use it.
16790
16791 2005-09-18  Bruno Haible  <bruno@clisp.org>
16792
16793         * gnulib-tool: Support --with-tests also with --import.
16794         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
16795         (func_import): Use variables $testsbase and $inctests. Emit a
16796         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
16797         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
16798         SUBDIRS += $testsdir.
16799         (func_create_testdir): Update.
16800
16801 2005-09-18  Bruno Haible  <bruno@clisp.org>
16802
16803         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
16804         instead of $dry_run.
16805         (func_cp_if_changed, func_mv_if_changed): Remove functions.
16806         (func_ln_if_changed): Don't handle dry-run here.
16807         (func_import): In dry-run mode, detect more precisely which actions
16808         would be performed, and don't use "...ing" verbs.
16809
16810 2005-09-18  Bruno Haible  <bruno@clisp.org>
16811
16812         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
16813         (func_import): Use join on two temporary files instead of three nested
16814         loops, in order to determine which files are new or old.
16815
16816 2005-09-18  Bruno Haible  <bruno@clisp.org>
16817
16818         * gnulib-tool (func_import): Comment out code that spits out the
16819         new files with --dry-run.
16820
16821 2005-09-18  Bruno Haible  <bruno@clisp.org>
16822
16823         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
16824
16825 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
16826
16827         * lib/stat-time.h: New file.
16828         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
16829         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
16830         in a different way.
16831         (timespec_cmp): New function.
16832         * lib/utimecmp.c: Include stat-time.h.
16833         (SYSCALL_RESOLUTION): Depend on whether various struct stat
16834         members exist, not on the obsolescent ST_MTIM_NSEC.
16835         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
16836
16837 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
16838
16839         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
16840
16841 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
16842
16843         * MODULES.html.sh (File system functions): Add stat-time.
16844         * modules/stat-time: New file.
16845         * modules/timespec (Files): Remove m4/st_mtim.m4; this
16846         is now done in a different way, by the stat-time module.
16847         * modules/utimecmp (Depends-on): Add stat-time.
16848
16849 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
16850
16851         * m4/st_mtim.m4: Remove.  Superseded by...
16852         * m4/stat-time.m4: New file.
16853         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
16854         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
16855
16856 2005-09-15  Derek Price  <derek@ximbiot.com>
16857
16858         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
16859
16860 2005-09-15  Derek Price  <derek@ximbiot.com>
16861
16862         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
16863         * lib/regex_internal.c: Ditto, using this...
16864         (__GNUC_PREREQ): ...new macro.
16865         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
16866         using...
16867         (__GNUC_PREREQ): ...this new macro.
16868
16869         * lib/strstr.h: Include string.h. Define strstr as a macro here.
16870
16871 2005-09-15  Derek Price  <derek@ximbiot.com>
16872             Paul Eggert  <eggert@cs.ucla.edu>
16873
16874         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
16875         changes, consolidating in...
16876         * lib/regex_internal.h: ...this file.
16877
16878 2005-09-13  Jim Meyering  <jim@meyering.net>
16879
16880         * lib/canon-host.c: Filter through gnu indent and reword comments
16881         slightly.
16882         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
16883
16884 2005-09-13  Derek Price  <derek@ximbiot.com>
16885
16886         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
16887         failure.
16888         Reported by Jim Meyering  <jim@meyering.net>.
16889
16890 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
16891
16892         * lib/base64.c: Typo.
16893         (base64_encode): Put b64str in initialized data section.
16894
16895 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
16896
16897         Merge glibc and coreutils changes into gnulib, plus a few
16898         extra fixes.
16899         * lib/md5.c: Use #error rather than a string.
16900         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
16901         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
16902         (__attribute__): Define to empty for non recent-GCC.
16903         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
16904         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
16905         Renamed from their non-__ counterparts, with new macros replacing
16906         them if not _LIBC.  Add __THROW attribute.
16907         (rol): Remove.
16908         (struct md5_ctx): Align buffer if using GCC.
16909         * lib/sha1.h (struct sha1_ctx): Likewise.
16910         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
16911         The old name was backwards.
16912         (NOTSWAP): Remove; not used.
16913         (rol): New macro, moved here from md5.h.
16914         (sha1_process_block): Remove a FIXME that doesn't make sense.
16915
16916 2005-09-12  Derek Price  <derek@ximbiot.com>
16917
16918         Return usable errors from canon-host.
16919         * lib/canon-host.h: New file.
16920         * lib/canon-host.c (canon_host): Wrap...
16921         (canon_host_r): ...this new function, which now relies exclusively on
16922         getaddrinfo.
16923         (ch_strerror): New function.
16924         (last_cherror): New global.
16925         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
16926         interface.
16927         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
16928         void *.
16929         (freeaddrinfo): Free ai->ai_canonname when set.
16930
16931 2005-09-12  Derek Price  <derek@ximbiot.com>
16932
16933         Make canon-host require getaddrinfo.
16934         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
16935         AC_LIBSOURCE canon-host.h.  Call...
16936         (gl_PREREQ_CANON_HOST): ...this new function, which requires
16937         gl_GETADDRINFO.
16938         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
16939
16940 2005-09-12  Derek Price  <derek@ximbiot.com>
16941
16942         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
16943         LGPL.
16944         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
16945
16946 2005-09-12  Derek Price  <derek@ximbiot.com>
16947
16948         * lib/gai_strerror.c: Include config.h when available.  Include
16949         getaddrinfo.h before other headers to test interface.
16950         Reported by Larry Jones <lawrence.jones@ugs.com>.
16951
16952 2005-09-12  Derek Price  <derek@ximbiot.com>
16953             Paul Eggert  <eggert@cs.ucla.edu>
16954
16955         * modules/glob (Files): Add glob-libc.h.
16956
16957 2005-09-12  Derek Price  <derek@ximbiot.com>
16958             Paul Eggert  <eggert@cs.ucla.edu>
16959
16960         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
16961         glob_.h, glob-libc.h.
16962         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
16963
16964 2005-09-12  Derek Price  <derek@ximbiot.com>
16965             Paul Eggert  <eggert@cs.ucla.edu>
16966
16967         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
16968         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
16969         protecting things that should be done only in gnulib contexts.
16970         * lib/glob_.h: New file, containing only the glob things needed for
16971         gnulib.
16972         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
16973         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
16974         (glob, globfree, glob_pattern_p): Now defined simply in terms of
16975         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
16976         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
16977         and to respect the namespace rules better.
16978
16979 2005-09-08  Simon Josefsson  <jas@extundo.com>
16980
16981         * modules/socklen: New file.
16982
16983 2005-09-08  Simon Josefsson  <jas@extundo.com>
16984
16985         * m4/socklen.m4: New file.
16986
16987 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
16988
16989         * modules/utimens (Files): Add m4/utimbuf.m4, since
16990         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
16991         Reported by Sergey Poznyakoff.
16992
16993 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
16994
16995         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
16996         definitions, since that's the preferred style in glibc.
16997         Fix a minor spacing issue, and update copyright notice to match
16998         glibc's.
16999
17000 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
17001
17002         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
17003
17004 2005-09-06  Simon Josefsson  <jas@extundo.com>
17005
17006         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
17007         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
17008
17009 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
17010
17011         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
17012         warning.
17013
17014 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
17015
17016         * config/srclist.txt: Add glibc bug 1302.
17017
17018 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
17019
17020         Change bitset word type from unsigned int to unsigned long int,
17021         as this has better performance on typical 64-bit hosts.
17022         Port bitset code to hosts with unusual word sizes.
17023         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
17024         (build_collating_symbol):
17025         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
17026         argument is a bitset.  This is merely a style issue, but it makes
17027         it clearer that an entire array is expected.
17028         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
17029         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
17030         Port to the case where bitset_word is not the same as unsigned int.
17031         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
17032         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
17033         Likewise.
17034         * lib/regexec.c (check_dst_limits_calc_pos_1,
17035         check_subexp_matching_top):
17036         (build_trtable, group_nodes_into_DFAstates):
17037         Likewise.
17038         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
17039         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
17040         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
17041         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
17042         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
17043         * lib/regcomp.c (optimize_subexps, lower_subexp):
17044         Work even if bitset_word has holes in its bitwise representation.
17045         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
17046         * lib/regexec.c (check_dst_limits_calc_pos_1,
17047         check_subexp_matching_top):
17048         Likewise.
17049         * lib/regex_internal.c (re_string_reconstruct):
17050         Don't assume UCHAR_MAX == 255.
17051         * lib/regex_internal.h (bitset_set_all): Likewise.
17052         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
17053         All uses changed.
17054         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
17055         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
17056         All uses changed.
17057         (BITSET_WORD_MAX): New macro.
17058         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
17059         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
17060         (bitset_empty, bitset_copy):
17061         Prefer sizeof (bitset) to multiplying it out ourselves.
17062         (bitset_not_merge): Remove; unused.
17063         (bitset_contain): Return bool, not unsigned int with one bit on.
17064         All callers changed.
17065         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
17066         alignment than re_node_set; do this by defining a new internal
17067         type struct dests_alloc and using it to allocate memory.
17068
17069 2005-09-05  Bruno Haible  <bruno@clisp.org>
17070
17071         * gnulib-tool (func_import): Fix comparison in handling of symbolic
17072         links.
17073
17074 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
17075
17076         * modules/size_max (Makefile.am): Add size_max.h
17077
17078 2005-09-04  Derek Price  <derek@ximbiot.com>
17079
17080         * gnulib-tool (func_import): Fix reversed $symbolic logic.
17081
17082 2005-09-03  Simon Josefsson  <jas@extundo.com>
17083
17084         * gnulib-tool: Fix typo.
17085
17086 2005-09-03  Simon Josefsson  <jas@extundo.com>
17087
17088         * config/srclist.txt: Add glibc bug 1293.
17089
17090 2005-09-03  Derek Price  <derek@ximbiot.com>
17091
17092         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
17093         From Larry Jones <lawrence.jones@ugs.com>.
17094
17095 2005-09-02  Simon Josefsson  <jas@extundo.com>
17096
17097         * modules/socklen: New file.
17098
17099 2005-09-02  Simon Josefsson  <jas@extundo.com>
17100
17101         * modules/havelib: New module.
17102
17103         * modules/gettext, modules/iconv, modules/lock, modules/readline:
17104         Use havelib.
17105
17106 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
17107
17108         Check for arithmetic overflow when calculating sizes, to prevent
17109         some buffer-overflow issues.  These patches are conservative, in the
17110         sense that when I couldn't determine whether an overflow was possible,
17111         I inserted a run-time check.
17112         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
17113         macros.
17114         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
17115         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
17116         (re_xnrealloc, re_x2nrealloc): New inline functions.
17117         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
17118         parse_bracket_exp):
17119         (build_equiv_class, build_charclass): Check for arithmetic overflow
17120         in size expression calculations.
17121         * lib/regex_internal.c (re_string_realloc_buffers):
17122         (build_wcs_upper_buffer, re_node_set_add_intersect):
17123         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
17124         (re_dfa_add_node, register_state): Likewise.
17125         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
17126         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
17127         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
17128         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
17129
17130 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
17131
17132         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
17133         m4/ulonglong.m4.  Problem reported by Martin Lambers.
17134
17135 2005-09-02  Bruno Haible  <bruno@clisp.org>
17136
17137         Support for lib vs. lib64 distinction on biarch platforms.
17138         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
17139         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
17140         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
17141
17142 2005-09-02  Bruno Haible  <bruno@clisp.org>
17143
17144         * gnulib-tool (import): In the other first-use case, provide defaults
17145         as well.
17146
17147 2005-09-02  Bruno Haible  <bruno@clisp.org>
17148
17149         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
17150         patches not yet found in the latest gettext release.
17151
17152 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
17153
17154         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
17155         to avoid a collision with bits/local_lim.h in glibc.
17156         All uses changed.  Problem reported by Dmitry V. Levin in
17157         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
17158
17159         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
17160         bugs in int versus size_t comparisons.
17161         (re_string_context_at): Fix bug where the code assumed that
17162         Idx is signed.
17163
17164         Use bool where appropriate.
17165         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
17166         All callers changed.
17167         (calc_eclosure_iter): Likewise, for ROOT arg.
17168         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
17169         (build_charclass_op): Likewise, for NON_MATCH arg.
17170         * lib/regex_internal.c (re_string_allocate, re_string_construct):
17171         (re_string_construct_common): Likewise, for ICASE arg.
17172         * lib/regexec.c (re_search_2_stub, re_search_stub):
17173         Likewise, for RET_LEN arg.
17174         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
17175         (set_regs): Likewise, for FL_BACKTRACK arg.
17176         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
17177         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
17178         (calc_eclosure_iter, parse_bracket_exp):
17179         Use bool for internal variables that are booleans.
17180         * lib/regexec.c (re_search_internal, check_matching,
17181         proceed_next_node):
17182         (set_regs, build_sifted_states, sift_states_bkref):
17183         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
17184         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
17185         (find_collation_sequence_value):
17186         Likewise.
17187         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
17188         (re_node_set_compare):
17189         Return bool, not int. All callers changed.
17190         * lib/regexec.c (check_halt_node_context, check_dst_limits):
17191         (build_trtable, check_node_accept): Likewise.
17192         * lib/regex_internal.h: Include stdbool.h.
17193
17194         Fix bugs uncovered when converting to bool.
17195         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
17196         failure instead of charging ahead blindly.
17197         * lib/regex_internal.c (register_state): Likewise.
17198         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
17199         for freeing internal storage.
17200         (group_nodes_into_DFA_states): Use unsigned int, not int, for
17201         bitset pieces used as boolean, to avoid undefined behavior
17202         on hosts that do int overflow checking.
17203
17204 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
17205
17206         * config/srclist.txt: Add glibc bugs 1285-1287.
17207
17208 2005-09-01  Jim Meyering  <jim@meyering.net>
17209
17210         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
17211         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
17212         Require gl_STAT_MACROS, too.
17213
17214 2005-09-01  Bruno Haible  <bruno@clisp.org>
17215
17216         * gnulib-tool (import): In the first-use case, provide defaults.
17217
17218 2005-09-01  Bruno Haible  <bruno@clisp.org>
17219
17220         * gnulib-tool (func_import): Remove the .tmp files.
17221
17222 2005-09-01  Bruno Haible  <bruno@clisp.org>
17223
17224         * gnulib-tool (func_import): Fix handling of symbolic links.
17225
17226 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
17227
17228         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
17229         old glibc regex code mishandles strings longer than 2**31 bytes.
17230         This patch fixes this when the regex code is used in gnulib
17231         (i.e., outside glibc).
17232
17233         This patch should not affect the use of the regex code inside
17234         glibc.  No doubt this problem also needs to be handled for glibc
17235         as well, but the result will be an incompatible change to the
17236         glibc ABI, and the old ABI will have to be supported too.  That
17237         can be the the subject for another patch.
17238
17239         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
17240         governing whether the rest of this patch is active.  By default,
17241         the macro is disabled and the patch has no effect.
17242         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
17243         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
17244         (struct re_pattern_buffer, re_search, re_search_2, re_match):
17245         (re_match_2, re_set_registers): Use the new types.
17246         * lib/regex_internal.h (Idx, re_hashval_t): New types.
17247         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
17248         New macros.
17249         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
17250         (re_string_context_at, bin_tree_t, re_dfastate_t):
17251         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
17252         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
17253         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
17254         (re_string_char_size_at, re_string_wchar_at):
17255         (re_string_elem_size_at):
17256         Use the new types and macros to port to 64-bit hosts.
17257         Use unsigned types for internal values, so that the code
17258         mostly works even for arrays larger than SSIZE_MAX.
17259         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
17260         (search_duplicated_node, calc_eclosure_iter, fetch_number):
17261         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
17262         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
17263         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
17264         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
17265         (calc_inveclosure, parse_dup_op, build_range_exp):
17266         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
17267         (fetch_number, create_token_tree, mark_opt_subexp):
17268         Likewise.
17269         * lib/regex_internal.c (re_string_construct_common,
17270         create_ci_newstate):
17271         (create_cd_newstate, re_string_allocate, re_string_construct):
17272         (re_string_realloc_buffers, build_wcs_upper_buffer):
17273         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
17274         (re_string_reconstruct, re_string_peek_byte_case):
17275         (re_string_fetch_byte_case, re_string_context_at):
17276         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
17277         (re_node_set_init_copy, re_node_set_add_intersect):
17278         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
17279         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
17280         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
17281         (re_acquire_state, re_acquire_state_context, register_state):
17282         Likewise.
17283         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
17284         search_cur_bkref_entry):
17285         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
17286         (re_search_internal, re_search_2_stub, re_search_stub)
17287         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
17288         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
17289         (update_cur_sifted_state, check_dst_limits):
17290         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
17291         (check_subexp_limits, sift_states_bkref, merge_state_array):
17292         (check_subexp_matching_top, get_subexp, get_subexp_sub):
17293         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
17294         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
17295         (expand_bkref_cache, check_node_accept_bytes):
17296         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
17297         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
17298         (acquire_init_state_context, check_halt_node_context):
17299         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
17300         (sift_states_backward, clean_state_log_if_needed):
17301         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
17302         (find_recover_state, transit_state_sb, transit_state_mb):
17303         (transit_state_bkref, build_trtable, match_ctx_clean):
17304         Likewise.
17305         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
17306         to work around an assumption that REG_MISSING is negative.
17307
17308         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
17309         (seek_collating_symbol_entry) [defined _LIBC]:
17310         (lookup_collation_sequence_value) [defined _LIBC]:
17311         (build_range_exp, build_collating_symbol) [defined _LIBC]:
17312         Use prototypes rather than old-style function definitions.
17313         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
17314         (transit_state_sb) [0]:
17315         (find_collation_sequence_value) [defined _LIBC]: Likewise.
17316
17317         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
17318         rm_eo.
17319
17320         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
17321         (optimize_subexps, lower_subexp):
17322         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
17323         since the signed shift might overflow.  Use 1u<<31 instead.
17324         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
17325         Likewise.
17326         * lib/regexec.c (check_dst_limits_calc_pos_1,
17327         check_subexp_matching_top): Likewise.
17328
17329         * lib/regcomp.c (optimize_subexps, lower_subexp):
17330         Use CHAR_BIT rather than 8, for clarity.
17331         * lib/regexec.c (check_dst_limits_calc_pos_1):
17332         (check_subexp_matching_top): Likewise.
17333         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
17334         have to worry about portability issues when shifting it left.
17335         Remove no-longer-needed test for table_size > 0.
17336         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
17337         in a word, as the resulting behavior is undefined.
17338         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
17339         in one case, a <= should have been an <, and in another case the
17340         whole test was missing.
17341         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
17342         the standard name CHAR_BIT.
17343         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
17344         this is not true on one's complement and signed-magnitude hosts.
17345
17346         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
17347         next_last_offset.
17348         (struct re_dfa_t): Remove unused member states_alloc.
17349         * lib/regcomp.c (init_dfa): Don't initialize unused members.
17350
17351 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
17352
17353         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
17354         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
17355         and large-file glibc and in 32-bit large-file Solaris.
17356
17357 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
17358
17359         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
17360         lengths fit in regoff_t; this isn't true if regoff_t is the same
17361         width as size_t.
17362         * lib/regex.c (re_search_internal): 5th arg is LAST_START
17363         (= START + RANGE) instead of RANGE.  This avoids overflow
17364         problems when regoff_t is the same width as size_t.
17365         All callers changed.
17366         (re_search_2_stub): Check for overflow when adding the
17367         sizes of the two strings.
17368         (re_search_stub): Check for overflow when adding START
17369         to RANGE; if it occurs, substitute the extreme value.
17370
17371 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
17372
17373         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
17374
17375 2005-08-31  Jim Meyering  <jim@meyering.net>
17376
17377         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
17378         a pointer-to-const.
17379         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
17380         (register_state): Likewise.
17381         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
17382         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
17383         (group_nodes_into_DFAstates): Likewise.
17384
17385 2005-08-31  Jim Meyering  <jim@meyering.net>
17386
17387         * check-module: Add a FIXME comment.
17388
17389 2005-08-31  Eric Blake  <ebb9@byu.net>
17390
17391         * modules/unistd-safer (Files): Add unistd--.h.
17392         * modules/stdio-safer (Files): Add stdio--.h.
17393
17394 2005-08-31  Derek Price  <derek@ximbiot.com>
17395
17396         * lib/getdelim.c (getdelim): Return EOF on EOF.
17397         Reported by Larry Jones <lawrence.jones@ugs.com>.
17398
17399 2005-08-31  Bruno Haible  <bruno@clisp.org>
17400
17401         Avoid unnecessary diffs in the generated lib/Makefile.am.
17402         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
17403         the generated files.
17404         (func_import): Don't set cmd.
17405
17406 2005-08-31  Bruno Haible  <bruno@clisp.org>
17407
17408         * lib/strstr.c: Include <stddef.h>, for NULL.
17409         * lib/strcasestr.c: Likewise.
17410         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
17411
17412 2005-08-31  Bruno Haible  <bruno@clisp.org>
17413
17414         * gnulib-tool: New option --macro-prefix.
17415         (func_import): Use macro_prefix.
17416         (import): Handle option --macro-prefix.
17417
17418 2005-08-31  Bruno Haible  <bruno@clisp.org>
17419
17420         * gnulib-tool (import): Rename most ac_* variables to cached_*.
17421         Also use new variables cached_lgpl, cached_libtool.
17422
17423 2005-08-31  Bruno Haible  <bruno@clisp.org>
17424
17425         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
17426         always instantiating them.
17427
17428 2005-08-31  Bruno Haible  <bruno@clisp.org>
17429
17430         * gnulib-tool (func_import): Read the previous cached settings
17431         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
17432         earlier added by gnulib but are now dropped. Warn when a gnulib file
17433         overwrites a non-gnulib file.
17434
17435 2005-08-31  Bruno Haible  <bruno@clisp.org>
17436
17437         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
17438         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
17439         projects that don't keep autogenerated files in CVS. Put into
17440         actioncmd only the specified modules, not the transitive closure.
17441
17442 2005-08-31  Bruno Haible  <bruno@clisp.org>
17443
17444         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
17445         Create directories that shall be filled.
17446         (import): Don't look for gl_* macros in configure.ac. Recurse across
17447         all directories containing a gnulib-cache.m4 files, if meaningful.
17448
17449 2005-08-31  Bruno Haible  <bruno@clisp.org>
17450
17451         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
17452         (import): Set seen_libtool when we see gl_LIBTOOL.
17453
17454 2005-08-31  Bruno Haible  <bruno@clisp.org>
17455
17456         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
17457         declaration macro definitions from generated gnulib.m4.
17458
17459 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
17460
17461         * lib/iconvme.h: Add prototype for iconv_alloc.
17462
17463 2005-08-29  Simon Josefsson  <jas@extundo.com>
17464
17465         * lib/iconvme.c: Fix errno.
17466
17467 2005-08-29  Bruno Haible  <bruno@clisp.org>
17468
17469         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
17470         that it works when the directory contains spaces.
17471
17472 2005-08-29  Bruno Haible  <bruno@clisp.org>
17473
17474         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
17475
17476 2005-08-29  Bruno Haible  <bruno@clisp.org>
17477
17478         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
17479         Emit more advice.
17480
17481 2005-08-29  Bruno Haible  <bruno@clisp.org>
17482         and Stepan Kasal  <kasal@ucw.cz>
17483
17484         * check-module: If more parameters are given, check each of them
17485         separately; add more exceptions, as noted by Jim Meyering.
17486         (check_module): New procedure.
17487         (%exempt_header): Now contains all exceptions.
17488
17489 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
17490
17491         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
17492
17493 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
17494
17495         * lib/iconvme.c: Split iconv_string into iconv_alloc.
17496
17497 2005-08-28  Bruno Haible  <bruno@clisp.org>
17498
17499         * m4/gnulib-tool.m4: New file.
17500
17501 2005-08-27  Jim Meyering  <jim@meyering.net>
17502
17503         * modules/unistd-safer (Files): Add pipe-safer.c.
17504         * modules/fcntl-safer (Files): Add creat-safer.c.
17505
17506 2005-08-27  Jim Meyering  <jim@meyering.net>
17507
17508         * m4/stdlib-safer.m4: New file.  From coreutils.
17509         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
17510         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
17511         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
17512         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
17513         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
17514
17515 2005-08-27  Jim Meyering  <jim@meyering.net>
17516
17517         * lib/fopen-safer.c: Merge minor changes from coreutils.
17518         * lib/dup-safer.c: Likewise.
17519         * lib/fd-safer.c: Likewise.
17520
17521         Merge from coreutils.
17522         * lib/stdio--.h: New file.
17523         * lib/stdlib--.h: New file.
17524         * lib/mkstemp-safer.c: New file.
17525
17526         GNU tar needs these.
17527         * lib/pipe-safer.c: New file.
17528         * lib/creat-safer.c: New file.
17529         * lib/fcntl--.h (creat): Define to creat_safer.
17530         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
17531         * lib/unistd--.h (pipe): Define to pipe_safer.
17532         * lib/unistd-safer.h: Declare pipe_safer.
17533
17534 2005-08-26  Simon Josefsson  <jas@extundo.com>
17535
17536         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
17537         Haible <bruno@clisp.org>.
17538
17539 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
17540
17541         * lib/regex_internal.h: Remove all references to
17542         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
17543         or better.
17544         (bitset_not, bitset_merge, bitset_not_merge):
17545         (bitset_mask, re_string_allocate, re_string_construct):
17546         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
17547         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
17548         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
17549         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
17550         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
17551         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
17552         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
17553         (re_acquire_state_context):
17554         Remove unnecessary forward decls.
17555         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
17556         Put __attribute at function definition,
17557         now that the function decl has been removed.
17558         * lib/regex_internal.c (re_string_peek_byte_case):
17559         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
17560         Likewise.
17561
17562 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
17563
17564         * m4/regex.m4: Add AC_PREREQ(2.50).
17565         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
17566
17567 2005-08-25  Simon Josefsson  <jas@extundo.com>
17568
17569         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
17570         __fsetlocking.
17571
17572 2005-08-25  Simon Josefsson  <jas@extundo.com>
17573
17574         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
17575         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
17576         GLIBC specific code.
17577
17578 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
17579
17580         Make regex safe for g++.  This fixes one real bug (an "err"
17581         that should have been "*err").  g++ problem reported by
17582         Sam Steingold.
17583         * lib/regex_internal.h (re_calloc): New macro, consistent with
17584         re_malloc etc.  All callers of calloc changed to use re_calloc.
17585         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
17586         not int.  All callers changed.
17587         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
17588         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
17589         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
17590         (find_recover_state): Change "err" to "*err"; this fixes what
17591         appears to be a real bug.
17592         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
17593         versus int.
17594
17595 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
17596
17597         * modules/regex (Depends-on): Add malloc, since the code
17598         assumes that !malloc(0) means failure.
17599
17600 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
17601
17602         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
17603
17604         alloca modernization/simplification for regex.
17605         * lib/regex.c: Remove portability cruft for alloca.  This no longer
17606         needs to be at the start of the file, and can be moved into
17607         regex_internal.h and simplified.
17608         * lib/regex_internal.h: Include <alloca.h>.
17609         (__libc_use_alloca) [!defined _LIBC]: New macro.
17610         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
17611         now works outside glibc.
17612
17613 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
17614
17615         * config/srclist.txt: Add glibc bugs 1241, 1245.
17616
17617 2005-08-25  Jim Meyering  <jim@meyering.net>
17618
17619         * lib/open-safer.c: Include <config.h>.
17620         Otherwise, we'd lose LARGEFILE support in any file using
17621         e.g. "fcntl--.h"
17622
17623 2005-08-25  Bruno Haible  <bruno@clisp.org>
17624
17625         * m4/minmax.m4: Require autoconf 2.52.
17626         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
17627         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
17628         alternatives of translit over the alphabet.
17629         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
17630
17631 2005-08-24  Simon Josefsson  <jas@extundo.com>
17632
17633         * tests/test-getpass.c: New file.
17634
17635 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
17636
17637         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
17638         for GNU regex features.
17639
17640 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
17641
17642         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
17643         * lib/regex.h (regerror): Likewise.
17644
17645         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
17646         requires this.  (The code never needed it.)
17647
17648         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
17649         All uses of recently-renamed identifiers changed to use the new,
17650         POSIX-compliant names.  The code will build and run just fine
17651         without these changes, but it's better to eat our own dog food
17652         and use the standard-conforming names.
17653
17654         * lib/regex.h: Fix a multitude of POSIX name space violations.
17655         These changes have an effect only for programs that define
17656         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
17657         do not change anything for programs compiled in the normal way.
17658         Also, there is no effect on the ABI.
17659
17660         (_REGEX_SOURCE): New macro.
17661         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
17662         defined and _GNU_SOURCE is not; this fixes a name space violation.
17663
17664         Rename the following macros to obey POSIX requirements.
17665         The old names are still visible as macros if _REGEX_SOURCE is defined.
17666         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
17667         RE_BACKSLASH_ESCAPE_IN_LISTS.
17668         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
17669         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
17670         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
17671         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
17672         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
17673         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
17674         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
17675         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
17676         (REG_INTERVALS): renamed from RE_INTERVALS.
17677         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
17678         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
17679         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
17680         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
17681         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
17682         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
17683         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
17684         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
17685         RE_UNMATCHED_RIGHT_PAREN_ORD.
17686         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
17687         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
17688         (REG_DEBUG): renamed from RE_DEBUG.
17689         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
17690         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
17691         unusual, since we can't clash with the POSIX REG_ICASE.
17692         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
17693         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
17694         (REG_NO_SUB): renamed from RE_NO_SUB.
17695         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
17696         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
17697         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
17698         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
17699         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
17700         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
17701         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
17702         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
17703         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
17704         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
17705         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
17706         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
17707         RE_SYNTAX_POSIX_MINIMAL_BASIC.
17708         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
17709         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
17710         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
17711         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
17712         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
17713         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
17714         (REG_FIXED): Renamed from REGS_FIXED.
17715         (REG_NREGS): Renamed from RE_NREGS.
17716
17717         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
17718         of other REG_* macros, since POSIX says the user is allowed to
17719         #undef these macros selectively.
17720
17721         (reg_errcode_t): Update comment stating what other tables need
17722         to be consistent.
17723
17724         Rename the following enum values to obey POSIX requirements.
17725         The old names are still visible as macros.
17726         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
17727         is not defined, since GNU is supposed to be a superset of POSIX as
17728         much as possible, and since we want reg_errcode_t to be a signed
17729         type for implementation consistency.
17730         (_REG_NOERROR): Renamed from REG_NOERROR.
17731         (_REG_NOMATCH): Renamed from REG_NOMATCH.
17732         (_REG_BADPAT): Renamed from REG_BADPAT.
17733         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
17734         (_REG_ECTYPE): Renamed from REG_ECTYPE.
17735         (_REG_EESCAPE): Renamed from REG_EESCAPE.
17736         (_REG_ESUBREG): Renamed from REG_ESUBREG.
17737         (_REG_EBRACK): Renamed from REG_EBRACK.
17738         (_REG_EPAREN): Renamed from REG_EPAREN.
17739         (_REG_EBRACE): Renamed from REG_EBRACE.
17740         (_REG_BADBR): Renamed from REG_BADBR.
17741         (_REG_ERANGE): Renamed from REG_ERANGE.
17742         (_REG_ESPACE): Renamed from REG_ESPACE.
17743         (_REG_BADRPT): Renamed from REG_BADRPT.
17744         (_REG_EEND): Renamed from REG_EEND.
17745         (_REG_ESIZE): Renamed from REG_ESIZE.
17746         (_REG_ERPAREN): Renamed from REG_ERPAREN.
17747         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
17748         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
17749         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
17750         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
17751
17752         (_REG_RE_NAME, _REG_RM_NAME): New macros.
17753         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
17754         changed.  But support the old name if the new one is not defined
17755         and if _REGEX_SOURCE.
17756
17757         Change the following member names in struct re_pattern_buffer.
17758         The old names are still supported if !_REGEX_SOURCE.
17759         The new names are always supported, regardless of _REGEX_SOURCE.
17760         (re_buffer): Renamed from buffer.
17761         (re_allocated): Renamed from allocated.
17762         (re_used): Renamed from used.
17763         (re_syntax): Renamed from syntax.
17764         (re_fastmap): Renamed from fastmap.
17765         (re_translate): Renamed from translate.
17766         (re_can_be_null): Renamed from can_be_null.
17767         (re_regs_allocated): Renamed from regs_allocated.
17768         (re_fastmap_accurate): Renamed from fastmap_accurate.
17769         (re_no_sub): Renamed from no_sub.
17770         (re_not_bol): Renamed from not_bol.
17771         (re_not_eol): Renamed from not_eol.
17772         (re_newline_anchor): Renamed from newline_anchor.
17773
17774         Change the following member names in struct re_registers.
17775         The old names are still supported if !_REGEX_SOURCE.
17776         The new names are always supported, regardless of _REGEX_SOURCE.
17777         (rm_num_regs): Renamed from num_regs.
17778         (rm_start): Renamed from start.
17779         (rm_end): Renamed from end.
17780
17781         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
17782         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
17783         Prepend __ to parameter names.
17784
17785         Undo yesterday's changes.
17786
17787 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
17788
17789         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
17790         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
17791         lib/regex.c.
17792
17793 2005-08-24  Jim Meyering  <jim@meyering.net>
17794
17795         Sync from coreutils.
17796         * m4/fcntl-safer.m4: New file.
17797
17798         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
17799         and object files for this module.
17800
17801 2005-08-24  Jim Meyering  <jim@meyering.net>
17802
17803         Sync from coreutils.
17804         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
17805
17806 2005-08-24  Jim Meyering  <jim@meyering.net>
17807
17808         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
17809         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
17810
17811 2005-08-24  Jim Meyering  <jim@meyering.net>
17812
17813         * modules/fcntl-safer: New module.
17814         * modules/fts (Depends-on): Add fcntl-safer.
17815         * MODULES.html.sh (File descriptor based Input/Output):
17816         Add fcntl-safer.
17817
17818 2005-08-24  Bruno Haible  <bruno@clisp.org>
17819
17820         Support for unit test modules.
17821         * modules/README: Mention tests modules.
17822         * modules/TEMPLATE-TESTS: New file.
17823         * gnulib-tool: New options --extract-tests-module, --with-tests and
17824         --tests-base (unused for the moment).
17825         (testsbase, inctests): New variables.
17826         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
17827         (func_verify_module): Exclude TEMPLATE-TESTS.
17828         (func_verify_nontests_module, func_verify_tests_module): New functions.
17829         (func_get_dependencies): Add implicit dependency for tests modules.
17830         (func_get_tests_module): New function.
17831         (func_modules_transitive_closure): When --with-tests was specified,
17832         include the unit tests as well, unless explicitly avoided.
17833         (func_emit_lib_Makefile_am): Ignore the tests modules here.
17834         (func_emit_tests_Makefile_am): New function.
17835         (func_create_testdir): When --with-tests was specified, emit a
17836         tests/ directory.
17837         * MODULES.html.sh (Future developments): Update.
17838
17839 2005-08-24  Bruno Haible  <bruno@clisp.org>
17840
17841         * modules/tls-tests: New file.
17842         * tests/test-tls.c: New file, from GNU gettext.
17843
17844 2005-08-24  Bruno Haible  <bruno@clisp.org>
17845
17846         * modules/lock-tests: New file.
17847         * tests/test-lock.c: New file, from GNU gettext.
17848
17849 2005-08-24  Bruno Haible  <bruno@clisp.org>
17850
17851         * lib/lock.h: Add multiple inclusion guard.
17852         * lib/tls.h: Add multiple inclusion guard.
17853
17854 2005-08-24  Bruno Haible  <bruno@clisp.org>
17855
17856         * gnulib-tool: Add support for the --aux-dir option to
17857         --create-testdir, --create-megatestdir, --test, --megatest.
17858         (func_create_testdir, func_create_megatestdir): Optionally emit a
17859         AC_CONFIG_AUX_DIR directive.
17860         (create-testdir, create-megatestdir, test, megatest): Provide a
17861         default value for $auxdir.
17862
17863 2005-08-24  Bruno Haible  <bruno@clisp.org>
17864
17865         * gnulib-tool (import): Use compound statement instead of subshell
17866         where possible.
17867
17868 2005-08-24  Bruno Haible  <bruno@clisp.org>
17869
17870         * gnulib-tool (import): Change --aux-dir default to "build-aux".
17871
17872 2005-08-24  Bruno Haible  <bruno@clisp.org>
17873
17874         * gnulib-tool (func_version): Update.
17875
17876 2005-08-24  Bruno Haible  <bruno@clisp.org>
17877
17878         * gnulib-tool (func_import, func_create_testdir,
17879         func_create_megatestdir): Quote all autoconf macro arguments.
17880
17881 2005-08-24  Bruno Haible  <bruno@clisp.org>
17882
17883         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
17884         option --force, because --force causes the aclocal.m4 of each
17885         subdirectory to be newer than the corresponding config.h.in.
17886
17887 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
17888
17889         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
17890         All contents moved to gl_REGEX.
17891         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
17892         assume that it does.
17893
17894 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
17895
17896         * lib/regex.h (REG_NOSYS)
17897         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
17898         Define, since POSIX requires it as of 2001.
17899         (_REG_ENOSYS)
17900         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
17901         New private symbol, used to keep the enum signed in all cases.
17902         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
17903         Youngman in
17904         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
17905
17906         * lib/regex_internal.c (re_string_skip_chars, register_state):
17907         (calc_state_hash):
17908         Remove forward decls; no longer needed now that we use prototypes.
17909         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
17910         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
17911         (clean_state_log_if_needed): Likewise.
17912
17913 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
17914
17915         * config/srclist.txt: Add glibc bugs 1231-1233.
17916
17917 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
17918
17919         Fix problems reported by Sam Steingold in
17920         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
17921         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
17922         assumed that reg_errcode_t is a signed type, which is not
17923         necessarily true if _XOPEN_SOURCE is not defined.
17924         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
17925         since some compilers warn about it otherwise.
17926
17927 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
17928
17929         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
17930         (init_word_char, create_initial_state, duplicate_node_closure):
17931         (fetch_token, peek_token_bracket, build_range_exp):
17932         (build_collating_symbol): Remove forward decls; no longer needed
17933         now that we use prototypes.
17934
17935         * lib/regcomp.c:
17936         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
17937         (re_compile_fastmap_iter, regcomp, regerror, regfree):
17938         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
17939         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
17940         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
17941         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
17942         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
17943         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
17944         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
17945         (build_range_exp, build_collating_symbol, parse_bracket_exp):
17946         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
17947         (build_charclass, build_charclass_op, fetch_number, create_tree):
17948         (create_token_tree, mark_opt_subexp, duplicate_tree):
17949         Use prototypes rather than old-style definitions.
17950
17951         * lib/regex_internal.c:
17952         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
17953         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
17954         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
17955         (re_string_reconstruct, re_string_peek_byte_case):
17956         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
17957         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
17958         (re_node_set_init_copy, re_node_set_add_intersect):
17959         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
17960         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
17961         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
17962         (re_acquire_state, re_acquire_state_context, register_state):
17963         (create_ci_newstate, create_cd_newstate, free_state):
17964         Likewise.
17965         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
17966         re_search_2):
17967         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
17968         (re_search_internal, prune_impossible_nodes):
17969         (acquire_init_state_context, check_matching, static):
17970         (check_halt_node_context, check_halt_state_context, proceed_next_node):
17971         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
17972         (update_regs, sift_states_backward, build_sifted_states):
17973         (clean_state_log_if_needed, merge_state_array):
17974         (update_cur_sifted_state, add_epsilon_src_nodes):
17975         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
17976         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
17977         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
17978         (find_recover_state, check_subexp_matching_top, transit_state_mb):
17979         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
17980         (check_arrival, check_arrival_add_next_nodes):
17981         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
17982         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
17983         (check_node_accept_bytes, check_node_accept, extend_buffers):
17984         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
17985         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
17986         (sift_ctx_init):
17987         Likewise.
17988
17989         * lib/regex_internal.h:
17990         (re_string_allocate, re_string_construct, re_string_reconstruct):
17991         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
17992         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
17993         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
17994         (re_string_context_at, re_string_peek_byte_case):
17995         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
17996         is defined, since we now use prototypes always.
17997
17998         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
17999         C89 or better.  All uses removed.
18000
18001 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
18002
18003         * config/srclist.txt: Add glibc bugs 1220-1227.
18004
18005 2005-08-20  Jim Meyering  <jim@meyering.net>
18006
18007         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
18008         of unused local, dfa.
18009
18010 2005-08-20  Bruno Haible  <bruno@clisp.org>
18011
18012         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
18013
18014 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
18015
18016         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
18017         (re_node_set_insert_last, re_dfa_add_node):
18018         Rename local variables to avoid GCC shadowing warnings.
18019
18020 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
18021
18022         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
18023         [defined lint]: Suppress bogus uninitialized-variable warnings.
18024
18025         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
18026         and let the caller return REG_ESPACE if out of space.  This
18027         removes an uninitialied-variable warning with GCC 4.0.1, and also
18028         avoids taking the address of a local variable.  All callers
18029         changed.
18030
18031 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
18032
18033         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
18034         $LIBCSRC/posix/regexec.c.
18035         Add glibc bug 1217 for regcomp.c.
18036
18037 2005-08-19  Jim Meyering  <jim@meyering.net>
18038
18039         * lib/regexec.c (proceed_next_node): Redo local variables to
18040         avoid GCC shadowing warnings.
18041
18042 2005-08-18  Bruno Haible  <bruno@clisp.org>
18043
18044         * lib/strstr.c (strstr): Fix return value in multibyte case.
18045         * lib/strcasestr.c (strcasestr): Likewise.
18046
18047 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
18048
18049         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
18050
18051 2005-08-17  Jim Meyering  <jim@meyering.net>
18052
18053         Make the %s format (seconds since the epoch) work for a negative
18054         number and when used with a zero-padded field width, e.g. %015s.
18055
18056         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
18057         label so that it precedes the code to set `digits'.  Otherwise,
18058         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
18059         print `00-22'.  Now, it prints `-0022', as it should.
18060
18061 2005-08-17  Bruno Haible  <bruno@clisp.org>
18062
18063         * modules/strstr (Files): Add m4/mbrtowc.m4.
18064         (Depends-on): Add mbuiter.
18065
18066 2005-08-17  Bruno Haible  <bruno@clisp.org>
18067
18068         * modules/strcasestr: New file.
18069         * MODULES.html.sh (String handling, based on ANSI C 89): Add
18070         strcasestr.
18071
18072 2005-08-17  Bruno Haible  <bruno@clisp.org>
18073
18074         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
18075
18076 2005-08-17  Bruno Haible  <bruno@clisp.org>
18077
18078         * modules/mbuiter: New file.
18079         * MODULES.html.sh (Extended multibyte and wide character utilities):
18080         Add mbuiter.
18081
18082 2005-08-17  Bruno Haible  <bruno@clisp.org>
18083
18084         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
18085         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
18086
18087 2005-08-17  Bruno Haible  <bruno@clisp.org>
18088
18089         * m4/strcasestr.m4: New file.
18090
18091 2005-08-17  Bruno Haible  <bruno@clisp.org>
18092
18093         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
18094         * lib/strstr.c: Completely rewritten, with multibyte locale support.
18095
18096 2005-08-17  Bruno Haible  <bruno@clisp.org>
18097
18098         * lib/strcasestr.h: New file.
18099         * lib/strcasestr.c: New file.
18100
18101 2005-08-17  Bruno Haible  <bruno@clisp.org>
18102
18103         * lib/strcasecmp.c: Use mbuiter.h.
18104
18105 2005-08-17  Bruno Haible  <bruno@clisp.org>
18106
18107         * lib/mbuiter.h: New file.
18108
18109 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
18110
18111         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
18112         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
18113         and gl_GETOPT are both invoked via different paths (as happens
18114         with GNU tar CVS because it uses both argp and getopt), the former
18115         wins.
18116
18117 2005-08-16  Bruno Haible  <bruno@clisp.org>
18118
18119         * modules/tls: New file.
18120         * MODULES.html.sh (Multithreading): Add tls.
18121
18122 2005-08-16  Bruno Haible  <bruno@clisp.org>
18123
18124         * modules/strnlen1: New file.
18125         * MODULES.html.sh (String handling): Add strnlen1.
18126
18127 2005-08-16  Bruno Haible  <bruno@clisp.org>
18128
18129         * modules/strcase (Files): Add m4/mbrtowc.m4.
18130         (Depends-on): Add strnlen1, mbchar.
18131
18132 2005-08-16  Bruno Haible  <bruno@clisp.org>
18133
18134         * modules/mbiter: New file.
18135         * MODULES.html.sh (Extended multibyte and wide character utilities):
18136         Add mbiter.
18137
18138 2005-08-16  Bruno Haible  <bruno@clisp.org>
18139
18140         * modules/mbfile: New file.
18141         * MODULES.html.sh (Extended multibyte and wide character utilities):
18142         Add mbfile.
18143
18144 2005-08-16  Bruno Haible  <bruno@clisp.org>
18145
18146         * modules/mbchar: New file.
18147         * MODULES.html.sh (Extended multibyte and wide character utilities):
18148         New section.
18149
18150 2005-08-16  Bruno Haible  <bruno@clisp.org>
18151
18152         * m4/tls.m4: New file, from GNU gettext.
18153
18154 2005-08-16  Bruno Haible  <bruno@clisp.org>
18155
18156         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
18157         always.
18158         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
18159
18160 2005-08-16  Bruno Haible  <bruno@clisp.org>
18161
18162         * m4/mbiter.m4: New file.
18163
18164 2005-08-16  Bruno Haible  <bruno@clisp.org>
18165
18166         * m4/mbfile.m4: New file.
18167
18168 2005-08-16  Bruno Haible  <bruno@clisp.org>
18169
18170         * m4/mbchar.m4: New file.
18171
18172 2005-08-16  Bruno Haible  <bruno@clisp.org>
18173
18174         * lib/tls.h: New file, from GNU gettext.
18175         * lib/tls.c: New file, from GNU gettext.
18176
18177 2005-08-16  Bruno Haible  <bruno@clisp.org>
18178
18179         * lib/strnlen1.h: New file.
18180         * lib/strnlen1.c: New file.
18181
18182 2005-08-16  Bruno Haible  <bruno@clisp.org>
18183
18184         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
18185         (mbi_init): Update.
18186         (mbi_avail, mbi_advance): Let the iteration end before the terminating
18187         NUL byte, not after it.
18188
18189 2005-08-16  Bruno Haible  <bruno@clisp.org>
18190
18191         * lib/strcase.h (strcasecmp): Add note in comments.
18192         * lib/strncasecmp.c: Use code from strcasecmp.c.
18193         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
18194         (strcasecmp): Work correctly in multibyte locales.
18195
18196 2005-08-16  Bruno Haible  <bruno@clisp.org>
18197
18198         * lib/mbiter.h: New file.
18199
18200 2005-08-16  Bruno Haible  <bruno@clisp.org>
18201
18202         * lib/mbfile.h: New file.
18203
18204 2005-08-16  Bruno Haible  <bruno@clisp.org>
18205
18206         * lib/mbchar.h: New file.
18207         * lib/mbchar.c: New file.
18208
18209 2005-08-16  Bruno Haible  <bruno@clisp.org>
18210
18211         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
18212         the valid ones. Makes the comparison operations transitive:
18213         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
18214         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
18215
18216 2005-08-15  Simon Josefsson  <jas@extundo.com>
18217
18218         * modules/ssize_t (License): Change to 'unlimited'.
18219
18220         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
18221
18222 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
18223
18224         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
18225         Add comments for each pending glibc patch.
18226
18227 2005-08-15  Bruno Haible  <bruno@clisp.org>
18228
18229         * lib/regex.h (__restrict_arr): Don't define to __restrict if
18230         __cplusplus is defined.
18231
18232 2005-08-14  Jim Meyering  <jim@meyering.net>
18233
18234         Sync from coreutils.
18235
18236         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
18237         Use the hash-table-based cycle-detection code not just when
18238         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
18239         Reported by James Youngman in
18240         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
18241         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
18242         FTS_TIGHT_CYCLE_CHECK.
18243         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
18244         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
18245         once again.
18246         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
18247         * lib/fts.c (fd_safer): Remove decl.
18248         Include fcntl--.h rather than unistd-safer.h
18249         (fts_safe_changedir): Don't call fd_safer; no longer needed
18250         now that we include fcntl--.h.
18251
18252 2005-08-12  Simon Josefsson  <jas@extundo.com>
18253
18254         * modules/getndelim2: Use ssize_t module.
18255         * modules/getnline: Likewise.
18256         * modules/safe-read: Likewise.
18257         * modules/xreadlink: Likewise.
18258
18259         * modules/ssize_t: New file.
18260
18261 2005-08-12  Simon Josefsson  <jas@extundo.com>
18262
18263         * m4/readline.m4: Look for termcap, curses or ncurses if required.
18264
18265 2005-08-12  Simon Josefsson  <jas@extundo.com>
18266
18267         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
18268         ssize_t.
18269
18270 2005-08-12  Simon Josefsson  <jas@extundo.com>
18271
18272         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
18273         readline, getdelim and check_version.
18274         (Support for systems lacking ISO C 99: Sizes of integer types):
18275         Add size_max.
18276
18277 2005-08-12  Bruno Haible  <bruno@clisp.org>
18278
18279         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
18280
18281 2005-08-11  Simon Josefsson  <jas@extundo.com>
18282
18283         * modules/readline: New file.
18284
18285         * modules/strnlen (Files): Add strnlen.h.
18286
18287 2005-08-11  Simon Josefsson  <jas@extundo.com>
18288
18289         * m4/readline.m4: New file.
18290
18291 2005-08-11  Simon Josefsson  <jas@extundo.com>
18292
18293         * lib/readline.h, readline.c: New file.
18294
18295 2005-08-11  Simon Josefsson  <jas@extundo.com>
18296
18297         * doc/gnulib.texi (Initial import, Finishing touches): Mention
18298         gl_AVOID.
18299
18300 2005-08-11  Bruno Haible  <bruno@clisp.org>
18301
18302         * lib/strnlen.h (strnlen): Change parameter name to match comment.
18303
18304 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
18305
18306         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
18307
18308 2005-08-10  Simon Josefsson  <jas@extundo.com>
18309
18310         * tests/test-iconvme.c: New file.
18311
18312 2005-08-10  Simon Josefsson  <jas@extundo.com>
18313
18314         * m4/strnlen.m4: New file.
18315
18316         * m4/strndup.m4: Don't check for strnlen declaration, done in
18317         strnlen.m4.
18318
18319 2005-08-10  Simon Josefsson  <jas@extundo.com>
18320
18321         * lib/strndup.c: Use strnlen.h.
18322
18323         * lib/strnlen.h: New file.
18324
18325 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
18326
18327         * README: Typos.
18328
18329 2005-08-02  Simon Josefsson  <jas@extundo.com>
18330
18331         * modules/readline: New file.
18332
18333 2005-08-02  Simon Josefsson  <jas@extundo.com>
18334
18335         * modules/getdelim: New file.
18336
18337         * modules/getline: Rewrite, don't use getndelim2.
18338
18339 2005-08-02  Simon Josefsson  <jas@extundo.com>
18340
18341         * m4/getline.m4: Separate out getdelim stuff into separate module.
18342
18343         * m4/getdelim.m4: New file.
18344
18345 2005-08-02  Simon Josefsson  <jas@extundo.com>
18346
18347         * lib/getline.h, getline.c: Rewrite.
18348
18349         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
18350
18351 2005-07-31  Bruno Haible  <bruno@clisp.org>
18352
18353         * lib/lock.h (gl_lock_initializer): New macro.
18354         (gl_lock_define_initialized): Use it.
18355         (gl_rwlock_initializer): New macro.
18356         (gl_rwlock_define_initialized): Use it.
18357         (gl_recursive_lock_initializer): New macro.
18358         (gl_recursive_lock_define_initialized): Use it.
18359
18360 2005-07-30  Karl Berry  <karl@gnu.org>
18361
18362         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
18363         Report from Ben Pfaff, regarding getopt.
18364
18365 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
18366
18367         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
18368         normal way.
18369         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
18370         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
18371         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
18372         (gl_GETOPT): Use the new macros.  Most of the implementation
18373         is moved to the new macros.  This is for programs like Emacs
18374         that don't want all the functionality of gl_GETOPT.
18375
18376 2005-07-26  Bruno Haible  <bruno@clisp.org>
18377
18378         * m4/lock.m4: Update from GNU gettext.
18379
18380 2005-07-26  Bruno Haible  <bruno@clisp.org>
18381
18382         * lib/lock.h: Update from GNU gettext.
18383         * lib/lock.c: Update from GNU gettext.
18384
18385 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
18386
18387         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
18388         obsolescent AC_TRY_RUN.  Include the default includes files, for
18389         'exit'.
18390
18391 2005-07-24  Bruno Haible  <bruno@clisp.org>
18392
18393         * modules/visibility: New file.
18394         * MODULES.html.sh (Misc): Add visibility.
18395
18396 2005-07-24  Bruno Haible  <bruno@clisp.org>
18397
18398         * m4/visibility.m4: New file.
18399
18400 2005-07-24  Bruno Haible  <bruno@clisp.org>
18401
18402         * doc/visibility.texi: New file.
18403
18404 2005-07-22  Bruno Haible  <bruno@clisp.org>
18405
18406         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
18407         $(ALLOCA_H), redundant through BUILT_SOURCES.
18408         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
18409         redundant through BUILT_SOURCES.
18410         * modules/byteswap (Makefile.am): Remove explicit dependency on
18411         $(BYTESWAP_H), redundant through BUILT_SOURCES.
18412         * modules/fnmatch (Makefile.am): Remove explicit dependency on
18413         $(FNMATCH_H), redundant through BUILT_SOURCES.
18414         * modules/getopt (Makefile.am): Remove explicit dependency on
18415         $(GETOPT_H), redundant through BUILT_SOURCES.
18416         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
18417         redundant through BUILT_SOURCES.
18418         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
18419         redundant through BUILT_SOURCES.
18420         * modules/stdbool (Makefile.am): Remove explicit dependency on
18421         $(STDBOOL_H), redundant through BUILT_SOURCES.
18422         * modules/stdint (Makefile.am): Remove explicit dependency on
18423         $(STDINT_H), redundant through BUILT_SOURCES.
18424         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
18425         Remove explicit dependency on $(SYSEXITS_H).
18426         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
18427
18428 2005-07-18  Simon Josefsson  <jas@extundo.com>
18429
18430         * lib/check-version.c (check_version): Accept identical versions too.
18431
18432 2005-07-18  Bruno Haible  <bruno@clisp.org>
18433
18434         * modules/lock: New file.
18435         * MODULES.html.sh (Multithreading): New section.
18436
18437 2005-07-18  Bruno Haible  <bruno@clisp.org>
18438
18439         * m4/lock.m4: New file, from GNU gettext.
18440
18441 2005-07-18  Bruno Haible  <bruno@clisp.org>
18442
18443         * lib/lock.h: New file, from GNU gettext.
18444         * lib/lock.c: New file, from GNU gettext.
18445
18446 2005-07-18  Bruno Haible  <bruno@clisp.org>
18447
18448         * lib/lock.h (gl_once_t): New type.
18449         (gl_once_define, gl_once): New macros.
18450         * lib/lock.c (fresh_once): New variable.
18451         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
18452         functions.
18453
18454 2005-07-16  Simon Josefsson  <jas@extundo.com>
18455
18456         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
18457         workaround, suggested by Bruno.
18458
18459 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
18460
18461         * modules/xalloc (Depends-on): Add xalloc-die.
18462         * modules/xvasprintf (Depends-on): Add xalloc-die.
18463
18464 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
18465
18466         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
18467         with a minor change.
18468
18469 2005-07-15  Bruno Haible  <bruno@clisp.org>
18470
18471         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
18472         When using lib/poll.c, define poll as rpl_poll.
18473
18474 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
18475
18476         * modules/argp (Depends-on): Remove unlocked-io.
18477
18478 2005-07-14  Derek Price  <derek@ximbiot.com>
18479
18480         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
18481         for glob symlink bug.
18482
18483 2005-07-14  Bruno Haible  <bruno@clisp.org>
18484
18485         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
18486         Instead, test for *_unlocked function declarations directly.
18487
18488 2005-07-11  Simon Josefsson  <jas@extundo.com>
18489
18490         * modules/size_max: New file.
18491
18492         * modules/xsize: Depend on size_max module for size_max.m4.
18493
18494 2005-07-11  Simon Josefsson  <jas@extundo.com>
18495
18496         * lib/size_max.h: New file.
18497
18498 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
18499
18500         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
18501         copyright symbol and the year.
18502         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
18503         (version_etc_va): Use parameterized copyright notice.
18504         Reword to conform to the current GNU coding standards.
18505
18506 2005-07-11  Karl Berry  <karl@gnu.org>
18507
18508         * doc/gnulib.texi (Quoting): new node.
18509         (Initial import): more info, from Patrice.
18510
18511 2005-07-11  Bruno Haible  <bruno@clisp.org>
18512
18513         * gnulib-tool (func_usage): Document option --avoid.
18514         (Command line options): Handle --avoid.
18515         (func_acceptable): New function.
18516         (func_modules_transitive_closure): Use it.
18517
18518 2005-07-11  Bruno Haible  <bruno@clisp.org>
18519
18520         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
18521         Reported by Jim Meyering.
18522
18523 2005-07-10  Bruno Haible  <bruno@clisp.org>
18524
18525         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
18526         Needed when size_t is smaller than 'unsigned int'.
18527         Reported by Paul Eggert.
18528
18529 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
18530
18531         * modules/argp (Depends-on): Add unlocked-io
18532
18533 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
18534
18535         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
18536         block of defines.
18537
18538 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
18539
18540         * config/srclist.txt: Comment out regcomp.c, since we have a porting
18541         fix now.
18542
18543 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
18544         and Paul Eggert  <eggert@cs.ucla.edu>
18545
18546         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
18547         in wint_t, not wchar_t.  Remove now-unnecessary cast.
18548
18549 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
18550
18551         * modules/regex (Files): Add lib/regex_internal.c,
18552         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
18553         (Depends-on): Add extensions.
18554         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
18555
18556 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
18557
18558         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
18559         pathconf.
18560         * m4/same.m4 (gl_SAME): Likewise.
18561         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
18562
18563         * m4/regex.m4: Adjust to new libc regex implementation.
18564         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
18565         all the .c and .h parts of (the new) regex.
18566         Quote the m4 stuff better.
18567         Check for RE_ICASE bug of old gnulib.
18568         Check for REG_STARTEND of recent libc.
18569         Rename local variables from jm_* to gl_*.
18570         Quote operand of "test -f".
18571         Say "recent enough" version of libc, not "version 2".
18572         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
18573         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
18574         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
18575         Remove check for btowc, isascii.
18576         Require AM_LANGINFO_CODESET.
18577
18578 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
18579
18580         * lib/regex.c, regex.h: Sync from libc.
18581         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
18582         * lib/regexec.c:
18583         New files, synced from libc, except that regex_internal.h
18584         currently has a small porting fix.
18585
18586 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
18587
18588         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
18589         regex_internal.c, regexec.c.
18590         Add regex_internal.h too, but as a comment, since the libc version
18591         is currently broken in gnulib mode.
18592
18593 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
18594
18595         Support programs like Emacs that use gnulib but not gettext.
18596         * MODULES.html.sh (Internationalization functions): Add gettext-h.
18597         * modules/gettext-h: New file.
18598         * modules/gettext (Files): Remove lib/gettext.h.
18599         (Depends-on): Add gettext-h.
18600         (Makefile.am): Remove lib_SOURCES.
18601         * modules/argmatch, modules/c-stack, modules/closeout:
18602         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
18603         * modules/execute, modules/file-type, modules/getaddrinfo:
18604         * modules/getopt, modules/human, modules/javacomp:
18605         * modules/javaexec, modules/mkdir-p, modules/obstack:
18606         * modules/openat, modules/pagealign_alloc, modules/pipe:
18607         * modules/quotearg, modules/regex, modules/rpmatch:
18608         * modules/unicodeio, modules/userspec, modules/version-etc:
18609         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
18610         * modules/xsetenv:
18611         Depend on gettext-h, not gettext.
18612
18613 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
18614
18615         * gnulib-tool (func_import): Add support for 'public domain' license.
18616         * modules/alloca, modules/atexit, modules/memmove:
18617         Now public domain, not GPL.
18618         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
18619         * modules/realloc, modules/strerror, modules/strtod:
18620         Now LGPL, not GPL.
18621
18622 2005-07-05  Bruno Haible  <bruno@clisp.org>
18623
18624         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
18625         autoconf CVS. Needed for mingw.
18626
18627 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
18628
18629         Remove the dependency of the strftime module on the tzset module.
18630         * modules/strftime (Depends-on): Remove dependency on tzset.
18631
18632 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
18633
18634         Remove the dependency of the strftime module on the tzset module.
18635         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
18636         gl_FUNC_TZSET_CLOBBER.
18637
18638 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
18639
18640         Remove the dependency of the strftime module on the tzset module.
18641         * lib/strftime.c (my_strftime)
18642         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
18643         Copy the input structure, to work around some of the bug with
18644         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
18645         Solaris releases, you should also use the tzset module, but we won't
18646         require it as a dependency any more since we don't want LGPLed code
18647         to depend on GPLed code.
18648
18649 2005-07-02  Jim Meyering  <jim@meyering.net>
18650
18651         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
18652         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
18653         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
18654         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
18655
18656 2005-07-02  Jim Meyering  <jim@meyering.net>
18657
18658         * lib/backupfile.c (backup_args): Change a `0' to NULL.
18659
18660 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
18661
18662         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
18663         declares only 'struct timespec;' (!).
18664
18665 2005-07-01  Jim Meyering  <jim@meyering.net>
18666
18667         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
18668         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
18669         * lib/save-cwd.c, tempname.c:
18670         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
18671         and don't include <sys/file.h>).
18672
18673 2005-06-29  Jim Meyering  <jim@meyering.net>
18674
18675         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
18676         type name.  Use the variable name instead.
18677         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
18678         Likewise.
18679
18680 2005-06-28  Simon Josefsson  <jas@extundo.com>
18681
18682         * modules/check-version (Files): Add check-version.m4.
18683
18684 2005-06-28  Simon Josefsson  <jas@extundo.com>
18685
18686         * m4/check-version.m4: New file, suggested by Jim Meyering
18687         <jim@meyering.net>.
18688
18689 2005-06-28  Simon Josefsson  <jas@extundo.com>
18690
18691         * lib/check-version.h, lib/check-version.c: New files.
18692
18693 2005-06-28  Simon Josefsson  <jas@extundo.com>
18694
18695         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
18696         collision with global variable.  Better indentation.  Don't
18697         increment buffer pointer beyond buffer end.  Based on comments
18698         from Paul Eggert <eggert@cs.ucla.edu>.
18699
18700         * lib/base64.h: Indent.
18701
18702 2005-06-28  Simon Josefsson  <jas@extundo.com>
18703
18704         * doc/gnulib.texi (Library version handling): New section.
18705
18706 2005-06-28  Jim Meyering  <jim@meyering.net>
18707
18708         * check-module (find_included_lib_files): Hard-code another
18709         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
18710         but modules/fts-lgpl (correctly) does not list those files.
18711
18712         * modules/canonicalize (Files): Add lib/pathmax.h.
18713
18714 2005-06-25  Simon Josefsson  <jas@extundo.com>
18715
18716         * modules/check-version: New file.
18717
18718 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
18719
18720         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
18721         initializer of struct addrinfo, as an indication that we don't
18722         care how many members the structure has.
18723
18724 2005-06-24  Derek Price  <derek@ximbiot.com>
18725         and Bruno Haible  <bruno@clisp.org>
18726
18727         Remove stat module & update lstat.
18728         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
18729         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
18730         * m4/stat.m4: Remove this file.
18731
18732 2005-06-24  Derek Price  <derek@ximbiot.com>
18733         and Bruno Haible  <bruno@clisp.org>
18734
18735         Remove stat module & update lstat.
18736         * lib/stat.c: Remove this file...
18737         (slash_aware_lstat): ...moving this content and its support...
18738         * lib/lstat.c (rpl_lstat): ...into here.
18739         * lib/lstat.h: New file.
18740
18741 2005-06-24  Derek Price  <derek@ximbiot.com>
18742         and Bruno Haible  <bruno@clisp.org>
18743
18744         Remove stat module & update lstat.
18745         * config/srclist.txt (libc sources): Remove stat.
18746
18747 2005-06-24  Derek Price  <derek@ximbiot.com>
18748         and Bruno Haible  <bruno@clisp.org>
18749
18750         Remove stat module & update lstat.
18751         * MODULES.html.sh (stat): Remove.
18752         * MODULES.html: Regenerated.
18753         * modules/lstat (Description): Correct function name.
18754         (Files): Add "lstat.h".
18755         (Depends-on): Remove stat, add xalloc, stat-macros.
18756         * modules/stat: Remove this file.
18757         (Include): Add "lstat.h", remove <sys/stat.h>.
18758
18759 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
18760
18761         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
18762         (ranged_convert): Don't save conversion in a temporary struct.
18763         This causes a warning with GCC 4.0.0, and anyway in the typical
18764         case it's not worth the extra 100 bytes or so of code.
18765         (ranged_convert, __mktime_internal): When calling a function via a
18766         pointer P, use P () rather than (*P) (), as we now assume C89 or
18767         better.
18768
18769 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
18770
18771         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
18772         "who -r" failed to give output.  Problem reported by Tim Waugh.
18773
18774         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
18775         (xcalloc): Use it to avoid needless tests.
18776         Problem reported by Jim Meyering.
18777
18778 2005-06-20  Derek Price  <derek@ximbiot.com>
18779
18780         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
18781         unnecessary for Autoconfs > 2.59c.
18782
18783 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
18784
18785         * lib/argp.h (__option_is_short): Check upper limit of
18786         __key. Isprint() requires its argument to have the value
18787         of an unsigned char or EOF.
18788
18789 2005-06-16  Jim Meyering  <jim@meyering.net>
18790
18791         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
18792         when either N or S is zero.
18793
18794 2005-06-16  Derek Price  <derek@ximbiot.com>
18795
18796         * m4/bison.m4: Declare YACC & YFLAGS precious.
18797
18798 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
18799
18800         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
18801         multibyte string or pattern, fall back on unibyte matching.
18802         Problem reported by James Youngman.
18803
18804 2005-06-08  Bruno Haible  <bruno@clisp.org>
18805
18806         * modules/csharpcomp: New file.
18807         * MODULES.html.sh (C#): Add csharpcomp.
18808
18809 2005-06-08  Bruno Haible  <bruno@clisp.org>
18810
18811         * m4/csharpcomp.m4: New file, from GNU gettext.
18812
18813 2005-06-08  Bruno Haible  <bruno@clisp.org>
18814
18815         * lib/csharpcomp.h: New file, from GNU gettext.
18816         * lib/csharpcomp.c: New file, from GNU gettext.
18817         * lib/csharpcomp.sh.in: New file, from GNU gettext.
18818
18819 2005-06-08  Bruno Haible  <bruno@clisp.org>
18820
18821         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
18822         warning on mingw.
18823
18824 2005-06-07  Derek Price  <derek@ximbiot.com>
18825
18826         Sync from CVS.
18827         * lib/glob_.h: Indent nested #ifdef.
18828
18829 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
18830
18831         Sync from coreutils.
18832         Use "file name" when talking about file names, instead of "filename"
18833         or "path", as per the GNU coding standards.
18834         * lib/mkdir-p.c: Renamed from makepath.c.
18835         (make_dir_parents): Renamed from make_path.  All callers changed.
18836         * lib/mkdir-p.h: Likewise.  All includers changed.
18837         * lib/filenamecat.c: Renamed from path-concat.c.
18838         (file_name_concat): Renamed from path_concat.  All callers changed.
18839         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
18840         * lib/filenamecat.h: Likewise.  All includers changed.
18841         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
18842         in comments or local variable names.
18843         * lib/basename.c: Likewise.
18844         * lib/canonicalize.c, canonicalize.h: Likewise.
18845         * lib/dirname.c, dirname.h: Likewise.
18846         * lib/euidaccess.c: Likewise.
18847         * lib/exclude.c: Likewise
18848         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
18849         * lib/fsusage.c, fsuage.h: Likewise.
18850         * lib/fts.c, fts_.h: Likewise.
18851         * lib/getcwd.c: Likewise.
18852         * lib/getloadavg.c: Likewise.
18853         * lib/mkstemp.c: Likewise.
18854         * lib/mountlist.c, mountlist.h: Likewise.
18855         * lib/openat.c, openat.h: Likewise.
18856         * lib/readlink-stub.c: Likewise.
18857         * lib/readutmp.c, readutmp.h: Likewise.
18858         * lib/rename.c: Likewise.
18859         * lib/rmdir.c: Likewise.
18860         * lib/same.c: Likewise.
18861         * lib/savedir.c: Likewise.
18862         * lib/stripslash.c: Likewise.
18863         * lib/tempname.c: Likewise.
18864         * lib/xreadlink.c: Likewise.
18865         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
18866         All uses changed.
18867         * lib/exclude.h: Likewise.
18868
18869         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
18870         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
18871         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
18872         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
18873         * lib/pathmax.h: Include <limits.h> unconditionally, since other
18874         files have been getting away with it for years (MORE/BSD 4.3
18875         is extinct now).
18876         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
18877         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
18878
18879         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
18880         Define to 256, not 255, as per modern POSIX.
18881
18882 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
18883
18884         Sync from coreutils.
18885         Use "file name" when talking about file names, instead of "filename"
18886         or "path", as per the GNU coding standards.
18887         * MODULES.html.sh: mkdir-p renamed from makepath.
18888         filenamecat renamed from path-concat.
18889         * modules/filenamecat: Renamed from modules/path-concat.
18890         (Files): filenamecat.h and filenamecat.c renamed from
18891         path-concat.h and path-concat.c.
18892         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
18893         (Include): filenamecat.h, not path-concat.h.
18894         * modules/mkdir-p: Renamed from modules/makepath.
18895         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
18896         makepath.c.
18897         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
18898         (Include): mkdir-p.h, not makepath.h.
18899
18900 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
18901
18902         Sync from coreutils.
18903         * m4/mkdir-p.m4: Renamed from makepath.m4.
18904         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
18905         Rename files from makepath.c to mkdir-p.c, and from
18906         makepath.h to mkdir-p.h.
18907         * m4/filenamecat.m4: Renamed from path-concat.m4.
18908         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
18909         Rename files from path-concat.c to filenamecat.c,
18910         and from path-concat.h to filenamecat.h.
18911         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
18912         "file name" in local variables or comments.
18913         * m4/rename.m4: Likewise.
18914
18915 2005-06-01  Bruno Haible  <bruno@clisp.org>
18916
18917         * modules/csharpexec: New file.
18918         * MODULES.html.sh (C#): New section.
18919
18920 2005-06-01  Bruno Haible  <bruno@clisp.org>
18921
18922         * m4/csharp.m4: New file, from GNU gettext.
18923         * m4/csharpexec.m4: New file, from GNU gettext.
18924
18925 2005-06-01  Bruno Haible  <bruno@clisp.org>
18926
18927         * lib/csharpexec.h: New file, from GNU gettext.
18928         * lib/csharpexec.c: New file, from GNU gettext.
18929         * lib/csharpexec.sh.in: New file, from GNU gettext.
18930
18931 2005-05-31  Derek Price  <derek@ximbiot.com>
18932             Paul Eggert  <eggert@cs.ucla.edu>
18933
18934         Sync from cvs.
18935         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
18936
18937 2005-05-31  Derek Price  <derek@ximbiot.com>
18938             Paul Eggert  <eggert@cs.ucla.edu>
18939
18940         Sync from cvs.
18941         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
18942
18943 2005-05-29  Derek Price  <derek@ximbiot.com>
18944
18945         * config/srclist.txt (glob_.h, glob.c): Add these files.
18946
18947 2005-05-29  Derek Price  <derek@ximbiot.com>
18948
18949         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
18950         * modules/glob: New file.
18951         * modules/getlogin_r: Add link to POSIX spec in description.
18952
18953 2005-05-29  Derek Price  <derek@ximbiot.com>
18954             Paul Eggert  <eggert@cs.ucla.edu>
18955
18956         * m4/glob.m4: New file.
18957
18958 2005-05-29  Derek Price  <derek@ximbiot.com>
18959             Paul Eggert  <eggert@cs.ucla.edu>
18960
18961         * lib/glob_.h, lib/glob.c: New files.
18962
18963 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
18964
18965         * modules/fts (Files): Remove m4/inttypes-pri.m4.
18966         * modules/fts-lgpl (Depends-on): Remove gettext.
18967
18968 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
18969
18970         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
18971         and don't require gt_INTTYPES_PRI.
18972
18973 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
18974
18975         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
18976
18977         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
18978         the configuration hassle isn't worth it.
18979         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
18980         (LONGEST_MODIFIER, PRIuMAX): Remove.
18981
18982 2005-05-27  Bruno Haible  <bruno@clisp.org>
18983
18984         * lib/getlogin_r.h: Remove second include of <stddef.h>.
18985
18986 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
18987
18988         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
18989         _POSIX_PTHREAD_SEMANTICS for Solaris.
18990
18991 2005-05-25  Derek Price  <derek@ximbiot.com>
18992
18993         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
18994
18995 2005-05-25  Derek Price  <derek@ximbiot.com>
18996             Paul Eggert  <eggert@cs.ucla.edu>
18997
18998         * modules/getlogin_r, m4/getlogin_r.m4: New files.
18999         * lib/getlogin_r.c, getlogin_r.h: New files.
19000
19001 2005-05-25  Bruno Haible  <bruno@clisp.org>
19002             Derek Price  <derek@ximbiot.com>
19003
19004         * lib/getlogin_r.h: Simplify API documentation.
19005
19006 2005-05-23  Derek Price  <derek@ximbiot.com>
19007
19008         * modules/minmax (Files): Add m4/minmax.m4.
19009         (configure.ac): Add gl_MINMAX.
19010
19011 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
19012
19013         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
19014         so that unistd-safer.h (GPL'ed code) need not be included.
19015
19016 2005-05-22  Bruno Haible  <bruno@clisp.org>
19017
19018         * m4/minmax.m4: New file.
19019         Based on a patch by Derek Price <derek@ximbiot.com>.
19020
19021 2005-05-22  Bruno Haible  <bruno@clisp.org>
19022
19023         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
19024         (INT64_MIN): Fix definition.
19025         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
19026
19027         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
19028         NEED_SIGNED_INT_TYPES.
19029
19030         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
19031         HAVE_SYSTEM_INTTYPES.
19032
19033 2005-05-22  Bruno Haible  <bruno@clisp.org>
19034
19035         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
19036         Also include <sys/param.h> if it defines MIN, MAX.
19037         Based on a patch by Derek Price <derek@ximbiot.com>.
19038
19039 2005-05-21  Jim Meyering  <jim@meyering.net>
19040
19041         * modules/fts (Files): Add m4/inttypes-pri.m4.
19042         (Depends-on): Add lstat and remove gettext.  Alphabetize.
19043
19044 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
19045
19046         New fts module.
19047         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
19048         (setup_dir, free_dir): New functions.
19049         (enter_dir, leave_dir): Define trivial
19050         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
19051         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
19052         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
19053         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
19054         Move to fts-cycle.c.
19055         (fts_open): Use setup_dir.
19056         (fts_close): Use free_dir.
19057         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
19058         This adds a label and some gotos, but the alternatives were messier.
19059         Check for memory allocation failure when entering a dir.
19060         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
19061         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
19062         (FTS): New member fts_cycle, that is a union that contains the
19063         old active_dir_ht and cycle_state.  All uses changed to mention
19064         fts_cycle.ht and fts_cycle.state.
19065         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
19066         fts.c, with the following changes:
19067         (setup_dir, free_dir): New functions.
19068         (enter_dir): Now returns bool.  Return true if successful, false
19069         if memory exhausted.  All callers changed.
19070         Do not bother partly cleaning up on
19071         memory allocation failure; that is free_dir's job.
19072         However, free ad if hash_insert fails, to avoid memory leak.
19073         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
19074         fts->fts_options to see which union member to use.
19075
19076 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
19077
19078         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
19079         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
19080
19081 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
19082
19083         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
19084
19085 2005-05-20  Jim Meyering  <jim@meyering.net>
19086
19087         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
19088         Now a macro, to pacify GCC.
19089
19090 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
19091
19092         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
19093         of -1.
19094
19095 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
19096
19097         * lib/chown.c (rpl_chown): Return -1 on failure.
19098
19099 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
19100
19101         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
19102         Don't check for stddef.h.
19103         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
19104         don't use its results.
19105         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
19106         since we include them unconditionally.  Don't require
19107         AM_STDBOOL_H, since stdbool is a prerequisite.
19108         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
19109         since we assume C89 or better.
19110         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
19111         as we don't use their results.
19112         Don't check for fchdir, memmove, memset, strrchr, as we use
19113         them unconditionally.
19114         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
19115         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
19116
19117 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
19118
19119         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
19120         Include <stddef.h> unconditionally, since we assume C89 now.
19121         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
19122         * lib/fts.c: Include fts_.h first, to check interface.
19123         Do not include intprops.h; no longer needed.
19124         Include cycle-check.h and hash.h, since fts_.h no longer does.
19125         Remove unnecessary casts of closedir to void.
19126         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
19127         decide whether to decrement nlinks.
19128         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
19129         (FTS): Use struct hash_table * instead of Hash_table, so that
19130         we no longer need to include hash.h here.
19131
19132 2005-05-18  Jim Meyering  <jim@meyering.net>
19133
19134         * modules/dirfd (License): Change to LGPL.  Most of the code
19135         is already in the public domain.
19136
19137 2005-05-18  Jim Meyering  <jim@meyering.net>
19138
19139         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
19140         Reported by Yoann Vandoorselaere.
19141
19142 2005-05-17  Jim Meyering  <jim@meyering.net>
19143
19144         * m4/fts.m4: New file, from coreutils.
19145
19146 2005-05-17  Jim Meyering  <jim@meyering.net>
19147
19148         * lib/fts.c, lib/fts_.h: New files, from coreutils.
19149
19150 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
19151
19152         Sync from coreutils.
19153         * m4/unlinkdir.m4: New file.
19154
19155 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
19156
19157         Sync from coreutils.
19158         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
19159         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
19160         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
19161         White space changes only.
19162         * lib/makepath.c (make_path): Port to hosts where leading "//" is
19163         special.
19164         * lib/yesno.c: Include getline.h, not ctype.h.
19165         (yesno): Don't remove leading white space; POSIX doesn't allow it.
19166         Use getline to remove arbitrary restriction on response length.
19167
19168 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
19169
19170         * config/srclist-update: Spell out "Street" in FSF postal
19171         mail address; this is the style the FSF seems to prefer.
19172
19173         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
19174         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
19175         this updates FSF postal mail address.
19176
19177         Sync from coreutils.
19178         * modules/unlinkdir: New file.
19179         * modules/yesno (Depends-on): Add getline.
19180         * MODULES.html.sh (File system functions): Add unlinkdir.
19181
19182 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
19183
19184         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
19185         lib/strsep.h:
19186         Change the initial comment to refer to GPL, not LGPL.
19187         gnulib-tool will change it to LGPL as needed.
19188
19189         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
19190         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
19191         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
19192         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
19193         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
19194         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
19195         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
19196         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
19197         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
19198         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
19199         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
19200         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
19201         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
19202         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
19203         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
19204         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
19205         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
19206         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
19207         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
19208         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
19209         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
19210         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
19211         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
19212         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
19213         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
19214         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
19215         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
19216         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
19217         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
19218         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
19219         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
19220         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
19221         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
19222         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
19223         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
19224         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
19225         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
19226         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
19227         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
19228         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
19229         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
19230         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
19231         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
19232         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
19233         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
19234         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
19235         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
19236         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
19237         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
19238         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
19239         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
19240         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
19241         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
19242         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
19243         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
19244         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
19245         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
19246         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
19247         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
19248         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
19249         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
19250         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
19251         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
19252         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
19253         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
19254         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
19255         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
19256         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
19257         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
19258         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
19259         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
19260         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
19261         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
19262         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
19263         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
19264         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
19265         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
19266         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
19267         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
19268         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
19269         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
19270         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
19271         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
19272         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
19273         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
19274         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
19275         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
19276         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
19277         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
19278         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
19279         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
19280         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
19281         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
19282         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
19283         lib/yesno.c, lib/yesno.h:
19284         Update FSF postal mail address.
19285
19286 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
19287
19288         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
19289         tests/test-memmem.c, tests/test-stpncpy.c:
19290         Update FSF postal mail address.
19291
19292 2005-05-13  Bruno Haible  <bruno@clisp.org>
19293
19294         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
19295         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
19296         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
19297         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
19298         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
19299         Add support for 64-bit integers in the MSVC compiler.
19300
19301 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
19302
19303         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
19304
19305 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
19306
19307         * gnulib-tool (func_import): Sort and uniquify recommended includes.
19308
19309 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
19310
19311         * doc/getdate.texi (General date syntax): Don't say that date
19312         date --iso-8601=ns generates acceptable dates; it doesn't yet.
19313         Problem reported by Nic Ferrier.
19314
19315 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19316
19317         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
19318         specified in ai_socktype. Fix invalid ai_protocol
19319         check. ai_protocol is usually set to 0 or depending on
19320         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
19321         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
19322         ai_socktype / ai_protocol in the returned addrinfo structure.
19323
19324 2005-05-10  Simon Josefsson  <jas@extundo.com>
19325
19326         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
19327         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
19328
19329 2005-05-10  Karl Berry  <karl@gnu.org>
19330
19331         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
19332         (from http://www.gnu.org/licenses).
19333         * doc/COPYING.LIB: also rename to COPYING.LESSER.
19334         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
19335         fdl.texi suffices.
19336
19337 2005-05-10  Karl Berry  <karl@gnu.org>
19338
19339         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
19340         (COPYING.DOC): remove.
19341
19342         * config/srclist-update: new FSF address.
19343
19344 2005-05-10  Derek Price  <derek@ximbiot.com>
19345
19346         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
19347         possible.
19348
19349 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19350             Bruno Haible  <bruno@clisp.org>
19351
19352         * modules/inet_ntop: New file.
19353         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
19354         inet_ntop.
19355
19356 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19357             Bruno Haible  <bruno@clisp.org>
19358
19359         * m4/inet_ntop.m4: New file.
19360
19361 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19362             Bruno Haible  <bruno@clisp.org>
19363
19364         * lib/inet_ntop.h: New file.
19365         * lib/inet_ntop.c: New file, from glibc with modifications.
19366
19367 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
19368
19369         * modules/time_r (License): Change to LGPL.
19370         * modules/extensions (License): Change to LGPL.  Actually,
19371         the license is more permissive than that, but currently gnulib-tool
19372         doesn't know how to handle more-permissive licenses.
19373
19374         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
19375         Problem reported by Dave Love.
19376
19377 2005-05-08  Jim Meyering  <jim@meyering.net>
19378
19379         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
19380         blank.
19381
19382 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
19383
19384         * modules/argmatch (Depends-on): Add stdbool.
19385         * modules/backupfile (Depends-on): Likewise.
19386         * modules/chdir-long (Depends-on): Likewise.
19387         * modules/closeout (Depends-on): Likewise.
19388         * modules/cycle-check (Depends-on): Likewise.
19389         * modules/dirname (Depends-on): Likewise.
19390         * modules/fnmatch (Depends-on): Likewise.
19391         * modules/fsusage (Depends-on): Likewise.
19392         * modules/fwriteerror (Depends-on): Likewise.
19393         * modules/getcwd (Depends-on): Likewise.
19394         * modules/getloadavg (Depends-on): Likewise.
19395         * modules/hard-locale (Depends-on): Likewise.
19396         * modules/makepath (Depends-on): Likewise.
19397         * modules/mountlist (Depends-on): Likewise.
19398         * modules/nanosleep (Depends-on): Likewise.
19399         * modules/posixtm (Depends-on): Likewise.
19400         * modules/quotearg (Depends-on): Likewise.
19401         * modules/readtokens (Depends-on): Likewise.
19402         * modules/readtokens0 (Depends-on): Likewise.
19403         * modules/readutmp (Depends-on): Likewise.
19404         * modules/save-cwd (Depends-on): Likewise.
19405         * modules/strftime (Depends-on): Likewise.
19406         * modules/userspec (Depends-on): Likewise.
19407         * modules/utimecmp (Depends-on): Likewise.
19408         * modules/xgetcwd (Depends-on): Likewise.
19409         * modules/xnanosleep (Depends-on): Likewise.
19410         * modules/xstrtod (Depends-on): Likewise.
19411         * modules/yesno (Depends-on): Likewise.
19412
19413 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
19414
19415         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
19416         needless checks.
19417
19418 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
19419
19420         Merge from coreutils.  Among other things,
19421         add bulletproofing for cases where stdin, stdout, or stderr are closed.
19422         * lib/fd-safer.c: New file.
19423         * lib/fcntl-safer.h, open-safer.c: Remove.
19424         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
19425         * lib/dup-safer.c: Include unistd-safer.h first.
19426         Don't include errno.h.
19427         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
19428         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
19429         * lib/file-type.c: Rely on file-type.h change.
19430         * lib/getloadavg.c: Include unistd-safer.h.
19431         (getloadavg): Use safer open.
19432         * lib/getusershell.c: Include "stdio-safer.h".
19433         (getusershell): Use safer fopen.
19434         * lib/long-options.c (long_options): Use NULL rather than 0.
19435         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
19436         'free'.
19437         * lib/modechange.c: Likewise.
19438         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
19439         (MODE_DONE): New constant.
19440         (struct mode_change): Remove 'next' member.
19441         (make_node_op_equals): New function; like the old one of the
19442         same name, except it allocates an array.
19443         (mode_compile, mode_create_from_ref): Use it.
19444         (mode_compile): Allocate result as an array, not a linked list.
19445         Parse octal string ourself, so that we catch mistakes like "+0".
19446         (mode_adjust): Arg is an array, not a linked list.
19447         * lib/modechange.c: Include stat-macros.h, xalloc.h.
19448         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
19449         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
19450         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
19451         Remove.  This is now stat-macros.h's job.
19452         (talloc): Remove.  All callers replaced by xalloc, so that
19453         our invokers don't have to worry about reporting memory failures.
19454         (make_node_op_equals): Remove.
19455         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
19456         New constants.
19457         (struct mode_change): Moved here from modechange.h.
19458         (mode_append_entry): Remove.
19459         (mode_compile): Remove MASKED_OPS arg, since it encouraged
19460         apps to have incorrect behavior.  Use simpler algorithm for head
19461         and tail.  Don't futz with umask; that's now the job of mode_adjust.
19462         Detect more invalid usages rather than having somewhat-random behavior.
19463         Don't insert an "a=" action, as that leads to incorrect behavior.
19464         (mode_compile, mode_create_from_ref): Return NULL on error instead
19465         of an enum, since now there's only one way to have an error.  All
19466         callers changed.
19467         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
19468         at the correct time.  Simplify calculation of "+u" and its ilk.
19469         Don't mishandle "+X".
19470         (mode_free): Remove "register" and localize decls.
19471         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
19472         (struct mode_change): Move to modechange.c; callers don't
19473         need to see this stuff.
19474         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
19475         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
19476         (mode_change, mode_adjust): Reflect the new signatures noted above.
19477         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
19478         that might redefine system include files.
19479         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
19480         (my_usleep): Use NULL rather than (void *) 0.
19481         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
19482         Use siginterrupt to specify that system calls should be interrupted.
19483         (rpl_nanosleep): Move initialization of suspended closer to call of
19484         my_usleep.
19485         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
19486         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
19487         (desirable_utmp_entry): New function.
19488         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
19489         using x2nrealloc, to simplify logic.
19490         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
19491         size calculation.  Do not assume utmp file is a regular file.
19492         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
19493         (READ_UTMP_CHECK_PIDS): New constant.
19494         * lib/save-cwd.c: Include unistd-safer.h.
19495         (save_cwd): Use fd_safer.
19496         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
19497         [!_LIBC] Include "stat-macros.h" instead.
19498         * lib/unistd-safer.h (fd_safer): New decl.
19499
19500 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
19501
19502         * modules/getloadavg (Depends-on): Add unistd-safer.
19503         * modules/getusershell (Depends-on): Add stdio-safer.
19504         * modules/lstat (Depends-on): Remove xalloc.
19505         * modules/mkstemp (Depends-on): Add stat-macros.
19506         * modules/modechange (Depends-on): Remove xstrtol.
19507         Add stat-macros, xalloc.
19508         * modules/save-cwd (Depends-on): Add unistd-safer.
19509         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
19510         * modules/unistd-safer (Files): Add lib/fd-safer.c
19511         (Makefile.am): Remove lib_SOURCES.
19512
19513         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
19514         Remove fcntl-safer; unistd-safer supersedes it.
19515
19516 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
19517
19518         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
19519         AC_HEADER_STAT.
19520         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
19521         (gl_PREREQ_CHOWN): Remove.
19522         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
19523         it.  Don't require AC_HEADER_STAT.
19524         (gl_PREREQ_LSTAT): Remove.
19525         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
19526         Don't require AC_HEADER_STAT.
19527         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
19528         (gl_PREREQ_RMDIR): Remove.
19529         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
19530         mention stat-macros.h or AC_HEADER_STAT, since we'll make
19531         the stat-macros module a prerequisite.
19532         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
19533         * m4/filemode.m4 (gl_FILEMODE): Likewise.
19534         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
19535         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
19536         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
19537         variable names.
19538         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
19539         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
19540         variable prefixes.
19541         * m4/fcntl-safer.m4: Remove.
19542         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
19543         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
19544         Invoke gl_PREREQ_FD_SAFER.
19545         (gl_PREREQ_FD_SAFER): New macro.
19546         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
19547         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
19548         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
19549         Remove duplicate call to AC_LIBOBJ(readutmp).
19550         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
19551
19552         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
19553         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
19554
19555 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
19556
19557         * MODULES.html.sh (Misc): Add byteswap.
19558
19559 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
19560
19561         * modules/getcwd (Depends-on): Add extensions.
19562         * modules/openat (Depends-on): Likewise.
19563
19564 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
19565
19566         * modules/byteswap: New file.
19567
19568 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
19569
19570         * m4/byteswap.m4: New file.
19571
19572 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
19573
19574         * lib/byteswap_.h: New file.
19575
19576 2005-04-25  Karl Berry  <karl@gnu.org>
19577
19578         * m4/gettext.m4: Update from GNU gettext 0.14.4.
19579
19580 2005-04-25  Albert Chin  <china@thewrittenword.com>
19581
19582         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
19583         Toolkit C bug.
19584
19585 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
19586
19587         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
19588         (func_ln_if_changed) Remove forcibly for no error message
19589         in case file does not exist.
19590
19591 2005-04-19  Simon Josefsson  <jas@extundo.com>
19592
19593         * gnulib-tool (Options): Make --symlink mean --symbolic.
19594
19595 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
19596
19597         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
19598
19599 2005-04-16  Simon Josefsson  <jas@extundo.com>
19600
19601         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
19602
19603 2005-04-15  Simon Josefsson  <jas@extundo.com>
19604
19605         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
19606
19607 2005-04-15  Simon Josefsson  <jas@extundo.com>
19608
19609         * gnulib-tool: Rename --symlink to --symbolic.
19610
19611 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
19612
19613         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
19614         symbolic links to files instead of copying/moving.  Add --aux-dir,
19615         specifying directory relative --dir where auxiliary build tools
19616         are placed.
19617
19618 2005-04-14  Bruno Haible  <bruno@clisp.org>
19619
19620         * modules/allocsa (License): Change to LGPL.
19621         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
19622
19623 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
19624
19625         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
19626         that "UTC +1 second" continues to work.  Problem reported
19627         by Dmitry V. Levin.
19628         (relunit_snumber): New rule.
19629         (relunit): Use it.
19630
19631 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
19632
19633         * lib/getdate.y (universal_time_zone_table): New constant.
19634         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
19635         universal_time_zone_table.
19636         (lookup_zone): Prefer universal_time_zone_table to
19637         local_time_zone_table, so that "GMT" time stamps are allowed in
19638         London during the summer.  Problem reported by Ian Abbott.
19639
19640 2005-04-12  Jim Meyering  <jim@meyering.net>
19641
19642         * lib/human.c (humblock): Set *options even when returning due to
19643         xstrtoumax conversion failure.  Thanks to a used-uninitialized
19644         warning from gcc-4.
19645
19646 2005-04-09  Jim Meyering  <jim@meyering.net>
19647
19648         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
19649         -Wuninitialized: initialize tm0.tm_year.
19650
19651 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
19652
19653         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
19654         count, since there's no maximum.  All uses changed.
19655         Add member dsts_seen.
19656         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
19657         not being INT_MAX.
19658         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
19659         Use pc_rels_seen to decide whther a date is absolute.
19660
19661         * lib/getdate.y (number): Don't overwrite year.
19662         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
19663         check.
19664
19665 2005-04-02  Simon Josefsson  <jas@extundo.com>
19666
19667         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
19668         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
19669
19670 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
19671
19672         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
19673         where no absolute path name can be longer than PATH_MAX.
19674
19675 2005-03-27  Jim Meyering  <jim@meyering.net>
19676
19677         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
19678
19679 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
19680
19681         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
19682         "one's complement" -> "ones' complement" in comment, as per Knuth.
19683         "value of type" -> "type or expression" in comment.
19684         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
19685
19686 2005-03-26  Jim Meyering  <jim@meyering.net>
19687
19688         Comment nits.
19689         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
19690         Correct typos: s/or/of/.
19691
19692 2005-03-26  Jim Meyering  <jim@meyering.net>
19693
19694         * modules/check-include-files: Move to ../ and rename to...
19695         * check-module: ...this.
19696
19697 2005-03-25  Jim Meyering  <jim@meyering.net>
19698
19699         * modules/xvasprintf (Files): Add xalloc.h.
19700
19701 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
19702
19703         * modules/gettext (Files): config/config.rpath ->
19704         build-aux/config.rpath
19705         * modules/iconv (Files): Likewise.
19706         Problem reported by Oskar Liljeblad.
19707
19708 2005-03-23  Jim Meyering  <jim@meyering.net>
19709
19710         * modules/check-include-files: New script to check for
19711         missing dependencies, multiple includes, etc.
19712
19713         * modules/c-strtold (Depends-on): Add xalloc.
19714         * modules/c-strtod (Depends-on): Add xalloc.
19715         * modules/hash (Depends-on): Add xalloc.
19716         (Files): Remove lib/xalloc.h.
19717
19718         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
19719         * modules/userspec (Files): Add lib/inttostr.h.
19720
19721 2005-03-23  Jim Meyering  <jim@meyering.net>
19722
19723         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
19724
19725 2005-03-22  Jim Meyering  <jim@meyering.net>
19726
19727         * modules/stat-macros: New module.
19728         * modules/canonicalize, modules/euidaccess, modules/file-type,
19729         * modules/filemode, modules/lchown, modules/makepath,
19730         * modules/rmdir, modules/stat: Depend on new stat-macros module
19731         rather than listing lib/stat-macros.h manually.
19732         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
19733
19734 2005-03-22  Jim Meyering  <jim@meyering.net>
19735
19736         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
19737
19738 2005-03-22  Bruno Haible  <bruno@clisp.org>
19739
19740         * config/srclist.txt: Replace target directory 'config' with
19741         'build-aux'.
19742         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
19743         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
19744         ../build-aux/.
19745
19746 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
19747
19748         * modules/chdir-long (Depends-on): Add mempcpy.
19749
19750         * modules/acl, modules/backupfile, modules/c-strtod,
19751         modules/c-strtold, modules/canon-host, modules/canonicalize,
19752         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
19753         modules/exclude, modules/exitfail, modules/file-type,
19754         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
19755         modules/getdate, modules/getline, modules/getpagesize,
19756         modules/getpass, modules/getugroups, modules/group-member,
19757         modules/hard-locale, modules/hash, modules/human, modules/idcache,
19758         modules/inttostr, modules/long-options, modules/makepath,
19759         modules/md5, modules/memcasecmp, modules/memcoll,
19760         modules/modechange, modules/mountlist, modules/path-concat,
19761         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
19762         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
19763         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
19764         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
19765         modules/strftime, modules/strndup, modules/strverscmp,
19766         modules/timespec, modules/unlocked-io, modules/userspec,
19767         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
19768         modules/yesno:
19769         Remove lib_SOURCES line from Makefile.am section, as this is now
19770         done automatically by the corresponding Autoconf macro.
19771
19772 2005-03-21  Jim Meyering  <jim@meyering.net>
19773
19774         Changes imported from coreutils.
19775
19776         * lib/cycle-check.c: Don't include xalloc.h.
19777
19778         * lib/path-concat.c: Don't include assert.h.
19779         (path_concat): Remove assertion that would have triggered
19780         for ABASE starting with more than one slash.
19781         Reported by Andreas Schwab.
19782
19783         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
19784         properly when ABASE is an absolute file name.
19785         Correct the description of this function.
19786         Include <assert.h>.
19787         Add an assertion and a test driver.
19788         This fixes a bug introduced on 2004-07-02.
19789         Andreas Schwab reported the resulting failure of cp --parents:
19790         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
19791
19792 2005-03-21  Jim Meyering  <jim@meyering.net>
19793
19794         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
19795         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
19796
19797 2005-03-21  Jim Meyering  <jim@meyering.net>
19798         and  Paul Eggert  <eggert@cs.ucla.edu>
19799
19800         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
19801         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
19802         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
19803         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
19804         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
19805         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
19806         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
19807         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
19808         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
19809         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
19810         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
19811         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
19812         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
19813         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
19814         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
19815         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
19816         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
19817         for these modules.
19818
19819 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
19820
19821         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
19822         (which shouldn't happen), generate nothing instead of returning 0
19823         immediately, so that nstrftime (NULL, ...) doesn't return 0.
19824
19825 2005-03-16  Bruno Haible  <bruno@clisp.org>
19826
19827         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
19828         HAVE_LONGLONG_64BIT.
19829
19830 2005-03-16  Bruno Haible  <bruno@clisp.org>
19831
19832         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
19833         HAVE_LONGLONG_64BIT.
19834
19835 2005-03-16  Bruno Haible  <bruno@clisp.org>
19836
19837         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
19838         HAVE_LONGLONG_64BIT.
19839
19840 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
19841
19842         * lib/strftime.c (my_strftime): Prepend space to format so that we can
19843         reliably distinguish strftime failure from empty output on POSIX
19844         hosts.
19845
19846 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
19847
19848         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
19849         (iconv_string): Don't guess a size-zero buffer, as that might cause
19850         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
19851         result would be 'too large', where 'too large' is (heuristically)
19852         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
19853         overflow concerns.  This will prevent some unwanted malloc failures
19854         when the inputs are very large.
19855
19856 2005-03-15  Karl Berry  <karl@gnu.org>
19857
19858         * config/srclist.txt (config.rpath): from gettext.
19859         * config/config.rpath: update.
19860
19861 2005-03-15  Bruno Haible  <bruno@clisp.org>
19862
19863         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
19864         to 'negate'.
19865
19866         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
19867         variable.
19868
19869         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
19870         results.
19871
19872 2005-03-14  Simon Josefsson  <jas@extundo.com>
19873
19874         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
19875         <fx@gnu.org>.
19876
19877 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
19878
19879         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
19880         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
19881         intprops.h.
19882         * lib/strtol.c: Likewise.
19883
19884 2005-03-14  Jim Meyering  <jim@meyering.net>
19885
19886         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
19887         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
19888         to be nonzero so that we (and caller) can detect the difference
19889         between a valid zero-length expansion and an error return, even
19890         when the underlying strftime fails before writing anything into
19891         that location.
19892
19893 2005-03-14  Bruno Haible  <bruno@clisp.org>
19894
19895         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
19896         Update from GNU gettext 0.14.3.
19897
19898 2005-03-10  Jim Meyering  <jim@meyering.net>
19899
19900         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
19901
19902 2005-03-10  Jim Meyering  <jim@meyering.net>
19903
19904         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
19905         so that this module works on systems without fchdir.
19906
19907 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
19908
19909         Factor int-properties macros into a single file, except for
19910         glibc-related files.
19911         * lib/intprops.h: New file.
19912         * lib/getloadavg.c: Include it instead of limits.h.
19913         (INT_STRLEN_BOUND): Remove.
19914         * lib/human.c: Include intprops.h.
19915         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
19916         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
19917         302/1000.
19918         * lib/inttostr.h: Include intprops.h instead of limits.h.
19919         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
19920         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
19921         for consistency with intprops.h.
19922         (time_t_is_integer, twos_complement_arithmetic): Use them.
19923         * lib/sig2str.h: Include <signal.h>, intprops.h.
19924         (INT_STRLEN_BOUND): Remove.
19925         * lib/strftime.c (TYPE_SIGNED): Remove.
19926         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
19927         * lib/strtol.c: Adjust comments to match intprops.h.
19928         * lib/userspec.c: Include intprops.h.
19929         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
19930         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
19931         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
19932         instead of rolling our own expressions.
19933         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
19934
19935         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
19936         instead of int.
19937         (my_strftime): Do not mishandle years close to INT_MAX, by doing
19938         the right thing even if adding 1900 would overflow.  Similarly
19939         for tm_mon + 1 and tm_yday + 1.
19940         Make %Y always equivalent to %C%y, and similarly for %G and %g.
19941         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
19942         (DO_SIGNED_NUMBER): New macro.
19943         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
19944
19945 2005-03-07  Bruno Haible  <bruno@clisp.org>
19946
19947         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
19948
19949 2005-03-07  Bruno Haible  <bruno@clisp.org>
19950
19951         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
19952
19953 2005-03-04  Derek R. Price  <derek@ximbiot.com>
19954
19955         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
19956         (func_import): Only replace files via --import when they have actually
19957         changed.
19958
19959 2005-03-03  Derek R. Price  <derek@ximbiot.com>
19960
19961         * m4/mmap-anon.m4: New file.
19962         * m4/pagealign_alloc.m4: New file.
19963
19964 2005-03-03  Derek R. Price  <derek@ximbiot.com>
19965             Bruno Haible  <bruno@clisp.org>
19966
19967         * modules/pagealign_alloc: New file.
19968         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
19969
19970 2005-03-03  Derek R. Price  <derek@ximbiot.com>
19971             Bruno Haible  <bruno@clisp.org>
19972
19973         * lib/pagealign_alloc.h: New file.
19974         * lib/pagealign_alloc.c: New file.
19975
19976 2005-03-03  Bruno Haible  <bruno@clisp.org>
19977
19978         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
19979         Use an all-permissive copyright notice, recommended by RMS.
19980
19981 2005-03-02  Bruno Haible  <bruno@clisp.org>
19982
19983         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
19984         of AIX, the replacement has to be done only after <string.h> is
19985         included, therefore not in config.h. stpncpy.h does the replacement,
19986         and stpncpy.c uses it.
19987
19988 2005-03-02  Bruno Haible  <bruno@clisp.org>
19989
19990         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
19991         stpncpy.c uses it.
19992
19993 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
19994
19995         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
19996         The workaround isn't strictly needed for POSIX conformance, and
19997         it's too much of a pain to configure and maintain.  We'll ask
19998         people to fix their kernels instead.
19999         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
20000         (NANOSLEEP_BUG_WORKAROUND): Remove.
20001         (xnanosleep): Remove the workaround.
20002
20003 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
20004
20005         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
20006         Reported by Derek Price.
20007         (Include): Add "timespec.h".
20008
20009         * modules/xnanosleep (Depends-on): Remove gethrxtime.
20010
20011 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
20012
20013         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
20014         to detect nanosleep bug.
20015
20016 2005-03-01  Bruno Haible  <bruno@clisp.org>
20017
20018         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
20019
20020 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
20021
20022         * modules/gethrxtime: New file.
20023         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
20024         (Depends-on): Add gethrxtime.
20025         (configure.ac): Add gl_XNANOSLEEP.
20026         (Makefile.am): Remove lib_SOURCES line.
20027
20028 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
20029
20030         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
20031         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
20032
20033 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
20034
20035         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
20036         * lib/timespec.h (gettime): Return void, since it always
20037         succeeds now.  All uses changed.
20038         * lib/gettime.c (gettime) Likewise.
20039         [HAVE_NANOTIME]: Prefer nanotime.
20040         Assume gettimeofday succeeds, as POSIX requires.
20041         Assime time () succeeds, since other code already does.
20042         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
20043         (timespec_subtract): Remove.
20044         (NANOSLEEP_BUG_WORKAROUND): New constant.
20045         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
20046         things considerably.  Use it only on GNU/Linux hosts, since the
20047         workaround shouldn't be needed elsewhere.
20048
20049 2005-02-24  Bruno Haible  <bruno@clisp.org>
20050
20051         * modules/gettext (Files): Add m4/glibc2.m4.
20052
20053 2005-02-24  Bruno Haible  <bruno@clisp.org>
20054
20055         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
20056         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
20057         * m4/progtest.m4:
20058         Update from GNU gettext 0.14.2.
20059         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
20060
20061 2005-02-24  Bruno Haible  <bruno@clisp.org>
20062
20063         * lib/localcharset.c: Update from GNU gettext 0.14.2.
20064         * lib/config.charset: Update from GNU gettext 0.14.2.
20065
20066 2005-02-24  Bruno Haible  <bruno@clisp.org>
20067
20068         * lib/gettext.h: Update from GNU gettext 0.14.2.
20069
20070 2005-02-23  Simon Josefsson  <jas@extundo.com>
20071
20072         * m4/iconvme.m4: New file.
20073
20074 2005-02-23  Jim Meyering  <jim@meyering.net>
20075
20076         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
20077         change.
20078         Thanks to Bruno Haible for catching it.
20079
20080 2005-02-22  Simon Josefsson  <jas@extundo.com>
20081
20082         * modules/iconvme: New file.
20083
20084         * MODULES.html.sh: Add iconvme.
20085
20086 2005-02-22  Simon Josefsson  <jas@extundo.com>
20087
20088         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
20089
20090 2005-02-22  Simon Josefsson  <jas@extundo.com>
20091
20092         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
20093
20094 2005-02-22  Jim Meyering  <jim@meyering.net>
20095
20096         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
20097         s/ifndef/ifdef/.
20098
20099 2005-02-20  Neil Conway  <neilc@samurai.com>
20100
20101         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
20102         returned by OSX/Darwin if the specified buffer is not large
20103         enough for the hostname.
20104
20105 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
20106
20107         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
20108         pass it to _help, otherwise the latter coredumps trying to
20109         dereference state.root_argp.
20110
20111 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
20112
20113         * modules/chdir-long (Depends-on): Add memrchr.
20114         * modules/memrchr (Files): Add lib/memrchr.h.
20115         (Include): "memrchr.h".
20116
20117 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
20118
20119         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
20120
20121 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
20122
20123         * lib/memrchr.h: New file.
20124         * lib/chdir-long.c: Include it.
20125         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
20126         Don't bother including stddef.h.
20127
20128 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
20129
20130         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
20131         inclusion.
20132         Include <sys/types.h>, for dev_t.
20133         (ME_DUMMY, ME_REMOTE): Move from here....
20134         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
20135         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
20136         Dmitry V. Levin.
20137         Include mountlist.h first, to test the interface.
20138
20139 2005-01-29  Bruno Haible  <bruno@clisp.org>
20140
20141         * lib/progname.c (program_name): Initialize.
20142         Needed when linking statically on MacOS X.
20143
20144 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
20145
20146         Sync from coreutils.
20147         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
20148         (Depends-on): Add c-strtod.
20149         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
20150
20151 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
20152
20153         Sync from coreutils.
20154         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
20155
20156         Remove files that are specific to coreutils.
20157         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
20158
20159 2005-01-28  Bruno Haible  <bruno@clisp.org>
20160
20161         * modules/javacomp: New file.
20162         * MODULES.html.sh (Java): Add javacomp.
20163
20164 2005-01-28  Bruno Haible  <bruno@clisp.org>
20165
20166         * m4/javacomp.m4: New file, from GNU gettext.
20167
20168 2005-01-28  Bruno Haible  <bruno@clisp.org>
20169
20170         * lib/javacomp.sh.in: New file, from GNU gettext.
20171         * lib/javacomp.h: New file, from GNU gettext.
20172         * lib/javacomp.c: New file, from GNU gettext.
20173
20174 2005-01-26  Simon Josefsson  <jas@extundo.com>
20175
20176         * lib/gai_strerror.c: Use GPL in header.
20177
20178 2005-01-26  Bruno Haible  <bruno@clisp.org>
20179
20180         * modules/javaexec: New file.
20181         * MODULES.html.sh (Java): Add javaexec.
20182
20183 2005-01-26  Bruno Haible  <bruno@clisp.org>
20184
20185         * m4/javaexec.m4: New file, from GNU gettext.
20186
20187 2005-01-26  Bruno Haible  <bruno@clisp.org>
20188
20189         * lib/javaexec.sh.in: New file, from GNU gettext.
20190         * lib/javaexec.h: New file, from GNU gettext.
20191         * lib/javaexec.c: New file, from GNU gettext.
20192
20193 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
20194
20195         * modules/lchown (Depends-on): Remove lchown.h
20196
20197 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
20198
20199         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
20200         must be defined if the header file was not found, in order
20201         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
20202
20203 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
20204
20205         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
20206         initializers for struct pentry_state.
20207         (__argp_error): Check return value of __asprintf
20208         (__argp_failure): Translate error message
20209
20210         * lib/argp-parse.c: Removed braces around the expansion of N_()
20211
20212 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
20213
20214         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
20215         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
20216         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
20217         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
20218         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
20219         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
20220         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
20221         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
20222         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
20223         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
20224         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
20225         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
20226         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
20227         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
20228         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
20229         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
20230         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
20231         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
20232         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
20233         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
20234         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
20235         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
20236         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
20237         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
20238         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
20239         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
20240         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
20241         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
20242         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
20243         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
20244         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
20245         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
20246         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
20247         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
20248         xstrtol.m4, xstrtoumax.m4, yesno.m4:
20249         Use an all-permissive copyright notice, recommended by RMS.
20250
20251 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
20252
20253         * modules/chdir-long (Depends-on): Remove mempcpy.
20254
20255 2005-01-21  Jim Meyering  <jim@meyering.net>
20256
20257         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
20258         same value as for Solaris 9.
20259
20260         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
20261         component length.  This included changing the parameter to be
20262         of type `char *' rather than `char const *'.
20263         * lib/chdir-long.h (chdir_long): Update prototype.
20264
20265         * lib/openat.c (fdopendir, fstatat): New functions.
20266         * lib/openat.h: Include headers required for use of DIR and struct
20267         stat.
20268         [AT_SYMLINK_NOFOLLOW]: Define.
20269         (fdopendir, fstatat): Add prototypes.
20270
20271 2005-01-21  Bruno Haible  <bruno@clisp.org>
20272
20273         * modules/classpath: New file.
20274         * MODULES.html.sh (Java): Add classpath.
20275
20276 2005-01-21  Bruno Haible  <bruno@clisp.org>
20277
20278         * lib/classpath.h: New file, from GNU gettext.
20279         * lib/classpath.c: New file, from GNU gettext.
20280
20281 2005-01-20  Simon Josefsson  <jas@extundo.com>
20282
20283         * modules/version-etc-fsf: New file.
20284
20285 2005-01-20  Simon Josefsson  <jas@extundo.com>
20286
20287         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
20288         * lib/version-etc.c: Remove version_etc_copyright.
20289         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
20290         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
20291
20292 2005-01-20  Simon Josefsson  <jas@extundo.com>
20293
20294         * lib/base64.h (isbase64): Add.
20295
20296         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
20297         using a unsigned prototype, don't inline.
20298         (base64_decode): Use it.
20299
20300 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
20301
20302         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
20303         it.
20304
20305 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
20306
20307         * lib/save-cwd.c (save_cwd): Remove code to support the case
20308         where fchdir is missing or flaky.
20309
20310 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
20311
20312         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
20313
20314 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
20315
20316         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
20317         AC_LIBSOURCES now does this.
20318         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
20319         with new ullong_max module.
20320
20321 2005-01-19  Bruno Haible  <bruno@clisp.org>
20322
20323         * modules/sh-quote: New file.
20324         * MODULES.html.sh (Executing programs): Add sh-quote.
20325
20326 2005-01-19  Bruno Haible  <bruno@clisp.org>
20327
20328         * lib/sh-quote.h: New file, from GNU gettext.
20329         * lib/sh-quote.c: New file, from GNU gettext.
20330
20331 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
20332
20333         Merge from coreutils.
20334         * m4/ullong_max.m4: New file.
20335         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
20336         (gl_MACROS): Assume localeconv exists.
20337
20338 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
20339
20340         Merge changes from coreutils, as described below in several
20341         changelogs dated today.
20342
20343         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
20344         (O_DIRECTORY): Remove; not needed here, since "." must be
20345         a directory.  All uses removed.
20346         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
20347         universal on Suns, and we also need to test for IRIX.
20348         Revamp code to use 'if' rather than '#if'.
20349         Avoid unnecessary comparison of cwd->desc to 0.
20350
20351         * lib/utimens.c (futimens): Robustify the previous patch, by checking
20352         for known valid error numbers rather than observed invalid ones.
20353
20354 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
20355
20356         * modules/ullong_max: New file.
20357
20358         * modules/chdir-long, modules/openat: New files.
20359         * modules/save-cwd (Depends-on): Depend on chdir-long.
20360         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
20361
20362 2005-01-18  Jim Meyering  <jim@meyering.net>
20363
20364         Merge from coreutils.
20365         * m4/chdir-long.m4, m4/openat.m4: New files.
20366         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
20367         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
20368         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
20369         is sane and DOES follow symlinks.  Besides, testing 20 different
20370         systems found no broken chown implementations.
20371         Prompted by a change in rsync's copy of this macro.
20372         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
20373
20374         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
20375
20376         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
20377         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
20378         NULL-means-set-to-current-time semantics.
20379         Remove temporary file immediately, rather than waiting
20380         for configure's at-exit trap code to do it.
20381
20382 2005-01-18  Jim Meyering  <jim@meyering.net>
20383
20384         * lib/version-etc.c (version_etc_copyright): Update copyright date.
20385
20386         * lib/utimens.c (futimens): Account for the fact that futimes
20387         can also fail with errno == ENOSYS or errno == ENOENT.
20388         Patch from Dmitry V. Levin.
20389
20390         Change the name of the robust chdir function from chdir to chdir_long.
20391         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
20392         (restore_cwd): Use chdir_long, not chdir.
20393         * lib/chdir-long.c: Renamed from chdir.c.
20394         * lib/chdir-long.h: Renamed from chdir.h.
20395         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
20396         Hurd.
20397
20398 2005-01-18  Bruno Haible  <bruno@clisp.org>
20399
20400         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
20401         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
20402         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
20403         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
20404         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
20405         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
20406         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
20407         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
20408         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
20409         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
20410         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
20411         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
20412         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
20413         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
20414         Use an all-permissive copyright notice, recommended by RMS.
20415
20416 2005-01-18  Bob Proulx  <bob@proulx.com>
20417
20418         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
20419         simplify offsetof() macro construct to avoid compile failure with
20420         native HP-UX 11.0 ANSI C compiler.
20421
20422 2005-01-17  Bruno Haible  <bruno@clisp.org>
20423
20424         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
20425         redundant because stpncpy.m4 takes care of it.
20426
20427 2005-01-17  Bruno Haible  <bruno@clisp.org>
20428
20429         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
20430
20431 2005-01-17  Bruno Haible  <bruno@clisp.org>
20432
20433         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
20434         used.
20435
20436 2005-01-17  Bruno Haible  <bruno@clisp.org>
20437
20438         * lib/fwriteerror.h (fwriteerror): Change specification to include
20439         fclose.
20440         * lib/fwriteerror.c: Include <stdbool.h>.
20441         (fwriteerror): At the end, close the file stream. Record whether
20442         stdout was already closed.
20443
20444 2005-01-17  Bruno Haible  <bruno@clisp.org>
20445
20446         * lib/execute.c (environ): Declare if needed.
20447         * lib/pipe.c (environ): Likewise.
20448         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
20449
20450 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
20451
20452         * modules/argp: Depend on vsnprintf
20453
20454 2005-01-10  Jim Meyering  <jim@meyering.net>
20455
20456         * modules/closeout (Depends-on): Add atexit.
20457
20458 2005-01-06  Bruno Haible  <bruno@clisp.org>
20459
20460         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
20461
20462 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
20463
20464         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
20465         definitions to be after all include files, to avoid collisions.
20466         Problem reported by Bob Proulx.
20467
20468 2005-01-04  Jim Meyering  <jim@meyering.net>
20469
20470         Changes imported from coreutils.
20471         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
20472         as the mkstemp template, use a temporary directory and an
20473         8.3-friendly template to avoid trouble on systems like DJGPP.
20474         Reported by Juan M. Guerrero via Stepan Kasal.
20475         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
20476         close. Remove the temporary directory right away, rather than waiting
20477         for configure's at-exit trap code to do it.
20478         Suggestion from Stepan Kasal.
20479
20480 2005-01-01  Simon Josefsson  <jas@extundo.com>
20481
20482         * gnulib-tool: Print #include directives when --import'ing.
20483
20484 2004-12-28  Simon Josefsson  <jas@extundo.com>
20485
20486         * tests/test-base64.c: Include required header files.  Remove
20487         unused variables.
20488
20489 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
20490
20491         * modules/error (Depends-on): Remove gettext.
20492
20493 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
20494
20495         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
20496         not needed.  This removes a dependency on the gettext module.
20497         [defined _LIBC]: Do not include <libintl.h>; not needed.
20498
20499 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
20500
20501         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
20502         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
20503
20504 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
20505
20506         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
20507         HAVE_DECL_STRTOLD.
20508
20509 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
20510
20511         * modules/getdate (Depends-on): Remove alloca-opt.
20512
20513 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
20514
20515         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
20516
20517 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
20518
20519         * lib/argp-parse.c: Include <stddef.h>.
20520         (alignof, alignto): New macros.
20521         (parser_init): Don't assume that void * is aligned sufficiently
20522         for struct option.
20523
20524         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
20525         need to extend the stack.
20526         (YYINITDEPTH): New macro, so that the initial stack isn't overly
20527         large.
20528
20529 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
20530
20531         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
20532
20533 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
20534
20535         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
20536         (2004-10-24) change.  Apparently this was a false alarm.
20537
20538         * modules/getdate: Depend on alloca-opt, not alloca.
20539
20540 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
20541
20542         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
20543         Remove now-obsolete comment about AIX.
20544         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
20545         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
20546         (YYMAXDEPTH): New macro.
20547
20548 2004-12-18  Simon Josefsson  <jas@extundo.com>
20549
20550         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
20551
20552 2004-12-18  Bruno Haible  <bruno@clisp.org>
20553
20554         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
20555
20556 2004-12-18  Bruno Haible  <bruno@clisp.org>
20557
20558         * lib/fatal-signal.c (fatal_signals): Make non-const.
20559         (init_fatal_signals): New function.
20560         (uninstall_handlers, install_handlers): Ignore signals that were set to
20561         SIG_IGN.
20562         (at_fatal_signal): Call init_fatal_signals.
20563         (init_fatal_signal_set): Likewise. Ignore signals that were set to
20564         SIG_IGN.
20565         Reported by Paul Eggert.
20566
20567 2004-12-18  Bruno Haible  <bruno@clisp.org>
20568
20569         * doc/alloca.texi: New file.
20570         * doc/alloca-opt.texi: New file.
20571
20572 2004-12-17  Jim Meyering  <jim@meyering.net>
20573
20574         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
20575         Otherwise, install-sh could exit with improper exit status when
20576         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
20577
20578 2004-12-16  Simon Josefsson  <jas@extundo.com>
20579
20580         * tests/test-base64.c: Add license.
20581
20582 2004-12-15  Stepan Kasal  <address@hidden>
20583
20584         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
20585
20586 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
20587
20588         * modules/getcwd (Files): Add m4/d-ino.m4.
20589         Suggested by Mark D. Baushke.
20590
20591 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
20592
20593         * lib/getdate.y (textint): New member "negative".
20594         (time_zone_hhmm): New function.
20595         Expect 14 shift-reduce conflicts, not 13.
20596         (o_colon_minutes): New rule.
20597         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
20598         (yylex): Set the "negative" member of signed numbers.
20599
20600 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
20601
20602         * doc/getdate.texi (Time of day items, Time zone items):
20603         Describe new formats +00:00, UTC+00:00.
20604
20605 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
20606
20607         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
20608         spurious "-l"s.  Problem reported by Stepan Kasal.
20609
20610 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
20611
20612         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
20613         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
20614
20615 2004-12-04  Simon Josefsson  <jas@extundo.com>
20616
20617         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
20618         Vandoorselaere <yoann@prelude-ids.org>.
20619
20620 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
20621
20622         Changes imported from coreutils.
20623         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
20624         exist.
20625         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
20626
20627 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
20628
20629         Changes imported from coreutils.
20630         * lib/hard-locale.c: Assume <locale.h> exists.
20631         Include "strdup.h".
20632         (GLIBC_VERSION): New macro.
20633         (hard_locale): Assume setlocale exists.
20634         Rewrite to avoid #ifdef.
20635         Use strdup rather than malloc + strcpy.
20636         * lib/human.c: Assume <locale.h> exists.
20637         (human_readable): Assume localeconv exists.
20638
20639 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
20640
20641         * modules/hard-locale (Depends-on): Add strdup.
20642
20643 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
20644
20645         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
20646         convert T2, not T.  (Imported from libc.)
20647
20648 2004-11-30  Simon Josefsson  <jas@extundo.com>
20649
20650         * modules/restrict (License): Change to LGPL.
20651
20652 2004-11-30  Simon Josefsson  <jas@extundo.com>
20653
20654         * m4/restrict.m4: Add copyright and copying conditions.
20655
20656 2004-11-30  Simon Josefsson  <jas@extundo.com>
20657
20658         * m4/base64.m4: New file.
20659
20660 2004-11-30  Simon Josefsson  <jas@extundo.com>
20661
20662         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
20663         base64.
20664
20665         * tests/test-base64.c: New file.
20666
20667         * modules/base64: New file.
20668
20669 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
20670
20671         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
20672         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
20673
20674         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
20675
20676 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
20677
20678         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
20679         (__getcwd.c): Don't restore errno; glibc doesn't.
20680         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
20681         first, falling back to our code only if its results look suspicious.
20682         Ensure that the resulting buffer is only as large as necessary.
20683
20684         * lib/readutmp.c: Include readutmp.h first.
20685         Include <errno.h>, since readutmp.h no longer does that.
20686         * lib/readutmp.h: Don't include <errno.h>,
20687         <sys/param.h>, <time.h>; not needed to establish interface.
20688         (errno): Remove decl.
20689         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
20690         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
20691         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
20692
20693 2004-11-28  Simon Josefsson  <jas@extundo.com>
20694
20695         * lib/base64.h, base64.c: New file.
20696
20697 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
20698
20699         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
20700
20701 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
20702
20703         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
20704         (Depends-on): Remove pathmax, same.  Add mempcpy.
20705         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
20706         (Makefile.am): Append getcwd.h to lib_SOURCES.
20707         (Include): Add getcwd.h.
20708         (Maintainer): Change from Jim Meyering to "all, glibc",
20709         since getdate now uses intended-for-glibc code.
20710         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
20711         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
20712
20713 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
20714
20715         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
20716         HP's ANSI C compiler.
20717         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
20718         Declaring int functions causes warnings on some modern systems and
20719         shouldn't be needed to compile on ancient ones.
20720         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
20721         defined.
20722
20723         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
20724         with the following changes.
20725         (__set_errno): Parenthesize properly.
20726         Include <stdbool.h>.
20727         (MIN, MAX, MATCHING_INO): New macros.
20728         (__getcwd): Define with prototype, not K&R form.
20729         Use heuristics to allocate default buffer on stack if possible.
20730         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
20731         behavior, and to avoid the PATH_MAX limit when computing
20732         ../../../../...
20733         Use MATCHING_INO to compare inode number to file.
20734         Check for arithmetic overflow in size calculations.
20735         Fix bug in reallocation of dot array that caused getcwd to fail
20736         on directories nested deeper than 75.
20737         Be more careful about saving errno on error.
20738         Do not use realloc; use only free+malloc, as this is a bit
20739         more flexible and avoids a needless copy operation.
20740         Do not inspect st_dev and st_ino for symbolic links; POSIX
20741         doesn't specify the latter.
20742         Check for closedir errors.
20743         Avoid needless casts.
20744         Use "#ifdef weak_alias" around weak_alias, to be like other
20745         glibc code.
20746         The following changes to getcwd.c have effect only when used in
20747         gnulib; they have no effect inside glibc proper.
20748         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
20749         as alloca isn't used.
20750         (alloca, __alloca): Likewise.
20751         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
20752         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
20753         unconditionally, as gnulib assumes C89 or better.
20754         Do not include <sys/param.h>.
20755         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
20756         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
20757         better.
20758         (NULL) [!defined NULL]: Remove; we assume C89 or better.
20759         Include <dirent.h> in a way that is compatible with modern Autoconf.
20760         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
20761         New macros, if not already defined.
20762         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
20763         Use "_LIBC", not "defined _LIBC", for consistency.
20764         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
20765         a mempcpy module.
20766         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
20767         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
20768         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
20769         credit only to Jim Meyering and adjust the copyright dates.
20770         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
20771         <stdlib.h>, <unistd.h>, "pathmax.h".
20772         Instead, include "xgetcwd.h" (first) and "getcwd.h".
20773         (INITIAL_BUFFER_SIZE): Remove.
20774         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
20775
20776 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
20777
20778         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
20779         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
20780         Use the _ONCE methods, for efficiency.
20781         Check for fcntl.h.  In test program, include <errno.h>
20782         and <fcntl.h> if available.  Remove old K&R cruft from
20783         test program.  Check for common errors in GNU/Linux,
20784         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
20785         don't do AC_LIBOBJ, as that's getcwd.m4's job.
20786         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
20787         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
20788         name accordingly.
20789         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
20790         accommodate new getcwd.c.
20791         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
20792         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
20793         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
20794         that's all we need now.
20795
20796 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
20797
20798         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
20799         argp-parse.c depends on getopt internals, that means we should
20800         always use our getopt, to be on the safe side.
20801         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
20802         order not to spoil the result of an eventual previous invocation
20803         of gl_GETOPT_SUBSTITUTE.
20804
20805 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
20806
20807         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
20808         redefinition warnings. To avoid them, include the defines
20809         in `#if !defined __need_getopt ... #endif'. The only place
20810         where __getopt_argv_const is used is in definitions
20811         of getopt_long and getopt_long_only below, which are as well
20812         protected by `#ifndef __need_getopt'.
20813         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
20814         __need_getopt after including <stdio.h> and <unistd.h> These
20815         headers might have defined it.
20816
20817 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
20818
20819         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
20820
20821 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
20822
20823         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
20824         (futimens): New function, which uses futimes if available.
20825         (futimens, utimens): Support timespec==NULL, with same semantics
20826         as utime and utimens.
20827         * lib/utimens.h (futimens): New decl.
20828
20829 2004-11-23  Jim Meyering  <jim@meyering.net>
20830
20831         * lib/getopt_.h: Remove trailing blanks.
20832
20833 2004-11-23  Jim Meyering  <jim@meyering.net>
20834
20835         * lib/__fpending.c: Add comment.
20836
20837 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
20838
20839         * modules/canonicalize (Depends-on): Add xreadlink.
20840         Problem reported by James Youngman.
20841
20842 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
20843
20844         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
20845         New macros.
20846         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
20847         optopt): Use them instead of invoking ## directly; otherwise, the
20848         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
20849
20850 2004-11-19  Bruno Haible  <bruno@clisp.org>
20851
20852         * lib/strtok_r.c: Move comments from here...
20853         * lib/strtok_r.h: ... to here.
20854
20855 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
20856
20857         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
20858         implementations that mishandle size_t overflow.
20859
20860 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
20861
20862         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
20863         might fail.  Problem reported by Yoann Vandoorselaere.
20864         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
20865         implementations that mishandle size_t overflow.
20866
20867 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
20868
20869         * modules/canon-host (Depends-on): Add strdup.
20870
20871 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
20872
20873         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
20874
20875 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
20876
20877         * lib/canon-host.c: Include "strdup.h".
20878         (canon_host): Use getaddrinfo if available, so that IPv6 works.
20879         Use strdup instead of malloc/strcpy to duplicate strings.
20880
20881         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
20882         (human_space_before_unit): New constant.
20883         * lib/human.c (human_readable): Support it.
20884
20885         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
20886         (xgetcwd): Set errno correctly when failing.
20887         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
20888         the failure is actually due to a PATH_MAX problem.
20889
20890         Further getopt changes to make it more likely that glibc will
20891         buy the changes back.
20892         * lib/getopt.c (POSIXLY_CORRECT): New constant.
20893         (getopt): Use it, so to preserve glibc semantic
20894         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
20895         when compiling for libc.
20896         * lib/getopt_.h (__getopt_argv_const): Bring it back.
20897         (getopt_long, getopt_long_only): Use it.
20898
20899         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
20900         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
20901         (getopt): Argv is now char * const *, as per standard.
20902         (_getopt_internal_r, _getopt_internal): Argv is now char **,
20903         not char *__getopt_argv_const *.
20904         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
20905         _getopt_long_only_r): Likewise.
20906         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
20907         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
20908         _getopt_long_r, _getopt_long_only_r): Likewise.
20909         * lib/getopt_.h (__getopt_argv_const): Remove.
20910         (getopt): Argv is now char * const *, as per standard.
20911
20912         * lib/getdate.y (tORDINAL): New token.
20913         (day, relunit): Allow it for relative times.
20914         (relative_time_table): Use tORDINAL for ordinals.
20915
20916 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
20917
20918         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
20919         Document that "second" isn't allowed as an ordinal number.
20920
20921 2004-11-16  Jim Meyering  <jim@meyering.net>
20922
20923         * modules/closeout (Depends-on): Add fpending.
20924
20925 2004-11-15  Jim Meyering  <jim@meyering.net>
20926
20927         * lib/closeout.c: Include "__fpending.h" once again.
20928         Include <stdbool.h>.
20929         (close_stdout): Don't fail just because stdout was closed initially,
20930         since some programs don't write to stdout in the normal course of
20931         operation (other than --version and --help), and we don't want this
20932         function to make e.g. `touch file >&-' fail.
20933         But do fail if it was closed and someone has tried to write to it.
20934         E.g., `printf foo >&-' must fail.
20935
20936 2004-11-13  Jim Meyering  <jim@meyering.net>
20937
20938         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
20939
20940 2004-11-12  Simon Josefsson  <jas@extundo.com>
20941
20942         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
20943         small doc fix is still pending.
20944
20945 2004-11-11  Simon Josefsson  <jas@extundo.com>
20946
20947         * modules/strtok_r: New file.
20948
20949         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
20950         strtok_r.
20951
20952 2004-11-11  Simon Josefsson  <jas@extundo.com>
20953
20954         * m4/strtok_r.m4: New file.
20955
20956         * m4/getopt.m4: Replace opterr.
20957
20958 2004-11-11  Simon Josefsson  <jas@extundo.com>
20959
20960         * lib/strtok_r.h, strtok_r.c: New file.
20961
20962 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
20963
20964         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
20965         of replacing opterr, getopt, etc.  This should handle the
20966         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
20967
20968 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
20969
20970         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
20971         we can stop lying to compilers about the constness of argv when we
20972         are compiled outside glibc.
20973         (getopt, getopt_long, getopt_long_only): Use it.
20974         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
20975         _getopt_internal, getopt): Likewise.
20976         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
20977         _getopt_long_only_r): Likewise.
20978         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
20979         _getopt_long_r, _getopt_long_only_r): Likewise.
20980
20981         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
20982         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
20983         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
20984         the other external symbols.
20985         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
20986         declaration, since the above renaming now works around collisions.
20987
20988 2004-11-11  Jim Meyering  <jim@meyering.net>
20989
20990         * lib/linebreak.c: Remove trailing blanks.
20991         * lib/alloca_.h: Likewise.
20992         * lib/acosl.c: Likewise.
20993         * lib/euidaccess.c: Likewise.
20994         * lib/allocsa.h: Likewise.
20995
20996 2004-11-10  Simon Josefsson  <jas@extundo.com>
20997
20998         * m4/getaddrinfo.m4: New file.
20999
21000 2004-11-10  Simon Josefsson  <jas@extundo.com>
21001
21002         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
21003
21004 2004-11-10  Simon Josefsson  <jas@extundo.com>
21005
21006         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
21007         getaddrinfo.
21008
21009         * modules/getaddrinfo: New file.
21010
21011 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
21012
21013         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
21014
21015 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
21016
21017         * lib/mktime.c (SHR): New macro, which is a portable
21018         substitute for >> that should work even on Crays.
21019         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
21020         Problem reported by Mark D. Baushke in
21021         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
21022         * lib/getdate.y (SHR): Likewise.
21023         (tm_diff): Use it.
21024         * lib/strftime.c (SHR): Likewise.
21025         (tm_diff): Use it.
21026         * lib/quotearg.c (struct quoting_options): Use unsigned int for
21027         quote_these_too, so that right shifts are well defined.  All uses
21028         changed.
21029
21030 2004-11-10  Jim Meyering  <jim@meyering.net>
21031
21032         Ensure that no close failure goes unreported.
21033         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
21034         return early when it seems there's nothing to flush.
21035         Don't include __fpending.h.
21036
21037 2004-11-10  Jim Meyering  <jim@meyering.net>
21038
21039         * modules/closeout (Depends-on): Remove fpending.
21040
21041 2004-11-10  Jim Meyering  <jim@meyering.net>
21042
21043         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
21044
21045 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
21046
21047         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
21048         gl_FUNC_STRFTIME.
21049         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
21050         and AC_REQUIRE when possible, to avoid duplicate checks.
21051         Check for <wchar.h>.
21052
21053 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
21054
21055         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
21056
21057 2004-11-09  Bruno Haible  <bruno@clisp.org>
21058
21059         * m4/sockpfaf.m4: New file.
21060
21061 2004-11-05  Bruno Haible  <bruno@clisp.org>
21062
21063         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
21064         Reported by Mark D. Baushke <mdb@cvshome.org>.
21065
21066 2004-11-04  Bruno Haible  <bruno@clisp.org>
21067
21068         2004-09-11  Bruno Haible  <bruno@clisp.org>
21069                 * allocsa.valgrind: New file.
21070         2004-02-06  Bruno Haible  <bruno@clisp.org>
21071                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
21072                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
21073                 Reported by Christopher Seip <chris.seip@hp.com>.
21074
21075 2004-11-04  Bruno Haible  <bruno@clisp.org>
21076
21077         * modules/allocsa (Files): Add lib/allocsa.valgrind.
21078         (Makefile.am): Distribute it.
21079
21080 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
21081
21082         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
21083         with errno == ERANGE if the buffer is too small.
21084         Problem reported by Mark D. Baushke.
21085
21086 2004-11-03  Albert Chin  <china@thewrittenword.com>
21087             Paul Eggert  <eggert@cs.ucla.edu>
21088
21089         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
21090         equivalent, substitute $ac_type for equivalent type rather than
21091         blindly using uint32_t *always* which won't work if uint32_t is not
21092         available.  Define _UINT32_T to work around typedef of uint32_t if
21093         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
21094         2.5.1.
21095
21096 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
21097
21098         * m4/jm-macros.m4: Sync from coreutils.
21099         (gl_MACROS): Check for mbrlen, for pathchk.
21100         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
21101
21102 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
21103
21104         * lib/xreadlink.c (MAXSIZE): New macro.
21105         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
21106         size does not exceed MAXSIZE.  Avoid cast.
21107         As suggested by Mark D. Baushke in
21108         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
21109         if readlink fails with buffer size just under MAXSIZE, try again
21110         with MAXSIZE.
21111
21112 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
21113
21114         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
21115
21116 2004-11-02  Derek R. Price  <derek@ximbiot.com>
21117         and  Paul Eggert  <eggert@cs.ucla.edu>
21118
21119         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
21120         (get_date): Overparenthesize to avoid GCC warning.
21121
21122 2004-11-02  Bruno Haible  <bruno@clisp.org>
21123
21124         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
21125         returns void.
21126
21127 2004-11-02  Bruno Haible  <bruno@clisp.org>
21128
21129         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
21130         function returns void.
21131
21132 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
21133
21134         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
21135         fflush_unlocked, flockfile, funlockfile, funlockfile,
21136         fputs_unlocked, putc_unlocked.
21137
21138 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
21139
21140         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
21141         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
21142         already declared.
21143
21144 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
21145
21146         * modules/getdate (Files): Add doc/getdate.texi.
21147         (Depends-on): Add setenv, xalloc.
21148
21149 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
21150
21151         * lib/getdate.y: Add support for TZ="foo" within a date string.
21152         Fix some bugs near time_t boundaries.  Reject dates with
21153         out-of-range components, e.g., "Sept 31".
21154         Include <stdlib.h>, "setenv.h", "xalloc.h".
21155         (ISDIGIT_LOCALE): Remove; unused.
21156         Note that the TZ and time functions used here are not reentrant.
21157         (mktime_ok, get_tz): New functions.
21158         (TZBUFSIZE): New constant.
21159         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
21160         This requires that we sometimes generate our own TZ="XXX..." setting.
21161
21162 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
21163
21164         * doc/getdate.texi: New file, from coreutils with modifications for
21165         the new TZ parsing.
21166
21167 2004-10-27  Derek R. Price  <derek@ximbiot.com>
21168
21169         * lib/mktime.c (not_equal_tm): Remove redundant check.
21170
21171 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
21172
21173         * modules/regex (lib_SOURCES): Add regex.c.
21174         Reported by James Youngman in
21175         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
21176
21177 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
21178
21179         * lib/getdate.y: Use Bison 1.875 features, and some minor
21180         code cleanups.  This change does not affect semantics.
21181         Don't include <stdlib.h>; no longer needed.
21182         Don't include unlocked-io.h; only the "#if TEST" code uses
21183         stdio, and performance isn't crucial there.
21184         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
21185         Bison 1.875 features as described below.
21186         All uses of "PC." replaced by "pc->".
21187         (YYSTYPE): Add a forward declaration.
21188         (yylex, yyerror): Use full prototypes in forward decls.
21189         Use "%pure-parser" rather than obsolescent "%pure_parser".
21190         Use %parse-param and %lex-param instead of obsolescent
21191         YYPARSE_PARAM and YYLEX_PARAM.
21192         (meridian_table, month_and_day_table, time_units_table,
21193         relative_time_table, time_zone_table, military_table,
21194         lookup_zone, lookup_word, get_date):
21195         Use NULL instead of 0 where appropriate.
21196         (to_hour): Avoid abort (), to avoid a dependency on
21197         stdlib.h.
21198         (yyerror, yylex): Now accepts parser_control * arg.
21199         (main) [TEST]: Use '\0' rather than 0 for char.
21200
21201 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
21202
21203         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
21204
21205 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
21206
21207         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
21208         It's now the caller's responsibility to handle the case where
21209         !HAVE_GETPAGESIZE && !defined getpagesize.
21210
21211         * lib/mktime.c (leapyear): Arg is long int, not int.
21212
21213 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
21214
21215         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
21216
21217 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
21218
21219         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
21220         missing.  Problem reported by James Youngman.
21221
21222 2004-10-16  Simon Josefsson  <jas@extundo.com>
21223
21224         * gnulib-tool: Fix comments.  Fix parse problem.
21225         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
21226
21227 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
21228
21229         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
21230         implementation of getopt_long.  Problem reported by Alexander Taler in:
21231         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
21232
21233 2004-10-15  Bruno Haible  <bruno@clisp.org>
21234
21235         * gnulib-tool: Untabify. Initialize supplied_libname.
21236         (func_usage): More homogenous output.
21237         (func_modules_transitive_closure, func_modules_to_filelist,
21238         func_emit_lib_Makefile_am): New functions.
21239         (func_import): New function, extracted from big case statement. Use
21240         func_get_license, func_modules_transitive_closure,
21241         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
21242         opt_lgpl. Don't use test -a, as it's not portable.
21243         (func_create_testdir): Use func_modules_transitive_closure,
21244         func_modules_to_filelist, func_emit_lib_Makefile_am.
21245
21246 2004-10-15  Bruno Haible  <bruno@clisp.org>
21247
21248         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
21249
21250 2004-10-15  Bruno Haible  <bruno@clisp.org>
21251
21252         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
21253         the portions belonging to each module.
21254         Suggested by Derek Robert Price <derek@ximbiot.com>.
21255
21256 2004-10-12  Simon Josefsson  <jas@extundo.com>
21257
21258         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
21259         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
21260         to real functions.
21261
21262 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
21263
21264         * modules/vsnprintf: New file.
21265
21266 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
21267
21268         * m4/vsnprintf.m4: New file.
21269
21270 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
21271
21272         * lib/vsnprintf.h: New file.
21273         * lib/vsnprintf.c: New file.
21274
21275 2004-10-11  Bruno Haible  <bruno@clisp.org>
21276
21277         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
21278         vsnprintf.
21279
21280 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
21281
21282         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
21283
21284 2004-10-07  Bruno Haible  <bruno@clisp.org>
21285
21286         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
21287         fits into the provided buffer.
21288
21289 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
21290
21291         * lib/diacrit.c, diacrit.h: Add GPL notice.
21292
21293         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
21294         notice.
21295         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
21296         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
21297         This avoids a potential constant-folding bug.
21298
21299 2004-10-05  Bruno Haible  <bruno@clisp.org>
21300
21301         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
21302         for the declaration of strsep.
21303
21304 2004-10-05  Bruno Haible  <bruno@clisp.org>
21305
21306         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
21307
21308 2004-10-04  Simon Josefsson  <jas@extundo.com>
21309
21310         * modules/memmem: New file.
21311         * tests/test-memmem.c: New file.
21312         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
21313
21314 2004-10-04  Simon Josefsson  <jas@extundo.com>
21315
21316         * m4/memmem.m4: New file.
21317
21318 2004-10-04  Simon Josefsson  <jas@extundo.com>
21319
21320         * lib/memmem.h: New file.
21321         * lib/memmem.c: New file, taken from glibc.
21322
21323 2004-10-04  Simon Josefsson  <jas@extundo.com>
21324
21325         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
21326         '#ifdef USE_UNLOCKED_IO'.
21327
21328 2004-10-04  Simon Josefsson  <jas@extundo.com>
21329
21330         * config/srclist.txt: Add memmem from glibc.
21331
21332 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
21333
21334         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
21335
21336         * modules/argmatch, modules/argp, modules/closeout, modules/error,
21337         modules/exclude, modules/getdate, modules/getline,
21338         modules/getndelim2, modules/getpass, modules/getpass-gnu,
21339         modules/getusershell, modules/linebuffer, modules/md5,
21340         modules/mountlist, modules/posixtm, modules/readtokens,
21341         modules/readutmp, modules/regex, modules/sha1,
21342         modules/version-etc, modules/yesno:
21343         Remove dependency on unlocked-io.
21344
21345 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
21346
21347         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
21348
21349         * m4/unlocked-io.m4: Add copyright notice.
21350         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
21351
21352 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
21353
21354         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
21355         * lib/xmalloc.c (xmemdup): Likewise.
21356         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
21357         XFREE): Remove these long-obsolescent macros.
21358         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
21359         * lib/xstrdup.c: Remove.
21360
21361         * lib/regex.c (re_comp): Cast gettext return value to char *,
21362         Problem reported by Martin Neitzel via Mark D. Baushke.
21363
21364 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
21365
21366         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
21367         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
21368         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
21369         regex.c, sha1.c, version-etc.c, yesno.c:
21370         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
21371         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
21372         the includer's responsibility.
21373
21374         Sync from coreutils.
21375
21376         * lib/modechange.c (mode_compile): Don't decrement a pointer that
21377         points to the start of a string, as the C Standard says the
21378         resulting behavior is undefined.
21379
21380         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
21381         simple -> simple_backups, numbered_existing ->
21382         numbered_existing_backups, numbered -> numbered_backups
21383         to avoid shadowing problems.  All uses changed.
21384         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
21385         * lib/backupfile.c (check_extension, numbered_backup):
21386         Rename locals to avoid shadowing 'basename'.
21387         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
21388         once.
21389
21390         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
21391         * lib/.cvsignore: Add getopt.h.
21392
21393 2004-10-04  Bruno Haible  <bruno@clisp.org>
21394
21395         * modules/README: New file.
21396         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
21397         not a module.
21398
21399 2004-10-02  Jim Meyering  <jim@meyering.net>
21400
21401         * lib/dirfd.h, getpagesize.h: Add copyright notice.
21402
21403 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
21404
21405         * modules/strsep: New file.
21406
21407 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
21408
21409         * m4/strsep.m4: New file.
21410
21411 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
21412
21413         * lib/strsep.h: New file.
21414         * lib/strsep.c: New file.
21415
21416 2004-10-01  Simon Josefsson  <jas@extundo.com>
21417
21418         * lib/snprintf.c (snprintf): Handle size==0.
21419
21420 2004-10-01  Simon Josefsson  <jas@extundo.com>
21421             Bruno Haible  <bruno@clisp.org>
21422
21423         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
21424         (snprintf): Declare 'args'.
21425
21426 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
21427
21428         * lib/snprintf.c: Remove comments as to why each header is needed.
21429
21430 2004-10-01  Bruno Haible  <bruno@clisp.org>
21431
21432         * MODULES.html.sh: Add strsep.
21433
21434 2004-09-30  Simon Josefsson  <jas@extundo.com>
21435
21436         * modules/snprintf: New file.
21437
21438 2004-09-30  Simon Josefsson  <jas@extundo.com>
21439
21440         * m4/snprintf.m4: New file.
21441
21442 2004-09-30  Simon Josefsson  <jas@extundo.com>
21443
21444         * lib/snprintf.h, lib/snprintf.c: New files.
21445
21446 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
21447
21448         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
21449         (hol_entry_help): Never translate an empty string.
21450         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
21451         * lib/argp.h (OPTION_NO_TRANS): New option.
21452
21453 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
21454
21455         * modules/argp (Maintainer): Replace Simon Josefsson
21456         by Sergey Poznyakoff.
21457
21458 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
21459
21460         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
21461         changes merged back into glibc.
21462
21463 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
21464
21465         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
21466
21467 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
21468
21469         * lib/xvasprintf.c: Include xalloc.h.
21470         (xvasprintf): Use xalloc_die, not xmalloc_die.
21471
21472 2004-09-29  Bruno Haible  <bruno@clisp.org>
21473
21474         * modules/alloca-opt: New file, derived from modules/alloca.
21475         * modules/allocsa: Depend on alloca-opt instead of alloca.
21476         * modules/setenv: Likewise.
21477         * modules/vasnprintf: Likewise.
21478         * MODULES.html.sh: Add alloca-opt.
21479
21480 2004-09-28  Simon Josefsson  <jas@extundo.com>
21481
21482         * gnulib-tool: New parameter --lgpl, to asseert that modules are
21483         LGPL, and to replace license template from GPL to LGPL.
21484
21485 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
21486
21487         * modules/dummy: Change license to LGPL.
21488
21489 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
21490
21491         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
21492
21493 2004-09-24  Simon Josefsson  <jas@extundo.com>
21494
21495         * modules/minmax (License): Change from GPL to LGPL.
21496
21497 2004-09-23  Simon Josefsson  <jas@extundo.com>
21498
21499         * gnulib-tool (--import): Typo.
21500
21501 2004-09-23  Simon Josefsson  <jas@extundo.com>
21502
21503         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
21504
21505 2004-09-22  Bruno Haible  <bruno@clisp.org>
21506
21507         * modules/*: Add 'License' field.
21508         * gnulib-tool: Accept --extract-license option.
21509         (func_get_license): New function.
21510
21511 2004-09-21  Bruno Haible  <bruno@clisp.org>
21512
21513         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
21514         Reported by Simon Josefsson.
21515
21516 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
21517
21518         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
21519         gl_AC_TYPE_LONG_LONG.
21520
21521 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
21522
21523         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
21524
21525 2004-09-18  Simon Josefsson  <jas@extundo.com>
21526         and  Paul Eggert  <eggert@cs.ucla.edu>
21527
21528         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
21529         calls with autoreconf.  Define GL_LIB.
21530
21531 2004-09-14  Karl Berry  <karl@gnu.org>
21532
21533         * config/srclist.txt: unsync setenv.c, sigh.
21534
21535 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
21536
21537         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
21538         Problem reported by Bruno Haible in:
21539         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
21540
21541 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
21542
21543         * config/srclist.txt: Comment out argp-pvh.c.
21544
21545 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
21546
21547         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
21548         in case some system header has #define'd it.  Problem reported by
21549         Soeren D. Schulze in
21550         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
21551
21552 2004-09-09  Karl Berry  <karl@gnu.org>
21553
21554         * regex.[ch]: delete from the root.  These were supposed to be
21555                 synced with emacs cvs, but this has not happened for about
21556                 a year, and anyway nothing else uses emacs regex.[ch].
21557                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
21558                 lib/regex[.ch] is untouched.
21559
21560 2004-09-09  Bruno Haible  <bruno@clisp.org>
21561
21562         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
21563
21564 2004-09-09  Bruno Haible  <bruno@clisp.org>
21565
21566         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
21567         modifications.
21568         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
21569
21570 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
21571
21572         * modules/xvasprintf: New file.
21573         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
21574
21575 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
21576
21577         * lib/xvasprintf.h: New file.
21578         * lib/xvasprintf.c: New file.
21579         * lib/xasprintf.c: New file.
21580
21581 2004-09-08  Bruno Haible  <bruno@clisp.org>
21582
21583         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
21584
21585 2004-09-08  Bruno Haible  <bruno@clisp.org>
21586
21587         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
21588         length is > INT_MAX.
21589         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
21590         more.
21591
21592 2004-09-08  Bruno Haible  <bruno@clisp.org>
21593
21594         * lib/stdint_.h: New file, taken from GNU clisp.
21595
21596 2004-09-08  Bruno Haible  <bruno@clisp.org>
21597             Oskar Liljeblad  <oskar@osk.mine.nu>
21598
21599         * modules/stdint: New file.
21600         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
21601
21602 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
21603
21604         Import from coreutils.
21605         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
21606         strings on unbounded length.  alloca's performance benefits aren't
21607         that important here.
21608         (V_STRDUP): Remove.
21609         (parse_with_separator): New function, with most of the internals
21610         of the old parse_user_spec.  Allow user to omit both user and group,
21611         for compatibility with FreeBSD.
21612         Clone only the user name, not the entire spec.
21613         Do not set *uid, *gid unless entirely successful.
21614         Avoid memory leak in some failing cases.
21615         Fix regression for USER.GROUP reported by Dmitry V. Levin in
21616         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
21617         (parse_user_spec): Rewrite to use parse_with_separator.
21618
21619 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
21620
21621         * modules/userspec: Don't depend on alloca.
21622
21623 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
21624
21625         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
21626
21627 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
21628
21629         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
21630         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
21631         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
21632
21633 2004-08-16  Simon Josefsson  <jas@extundo.com>
21634
21635         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
21636         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
21637         Add --dry-run for --import.
21638         Let user provided command line parameters override configure.ac
21639         settings.
21640
21641 2004-08-12  Simon Josefsson  <jas@extundo.com>
21642
21643         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
21644         as discussed with Paul Eggert in threads rooted at
21645         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
21646         and
21647         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
21648         Before, the test was empty, and relied on ELIDE_CODE in source
21649         code.)
21650         (gl_PREREQ_GETOPT): New macro.
21651         (gl_GETOPT): Use them.
21652
21653 2004-08-12  Simon Josefsson  <jas@extundo.com>
21654
21655         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
21656         * lib/getopt_.h: Renamed from getopt.h.
21657
21658 2004-08-12  Simon Josefsson  <jas@extundo.com>
21659
21660         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
21661         Change default library name from libfoo to libgnu.
21662         Now, if you have a configure.ac that says:
21663                 gl_SOURCE_BASE(gl)
21664                 gl_M4_BASE(gl/m4)
21665                 gl_MODULES(error getopt etcetera)
21666                 gl_INIT
21667         you can import all you need by running:
21668                 ../gnulib/gnulib-tool --import
21669
21670         * modules/getopt (Files): Rename getopt.h to getopt_.h.
21671         (Makefile.am): Rewrite, use logic from argz.
21672         (Include): Use <getopt.h> instead of "getopt.h".
21673
21674 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
21675
21676         * modules/argp (Files): Add m4/unlocked-io.m4.
21677         (Depends-on): Add extensions.
21678
21679 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
21680
21681         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
21682         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
21683         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
21684         Check for program_invocation_name, program_invocation_short_name,
21685         flockfile, funlockfile, features.h, _getopt_long_only_r.
21686
21687 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
21688
21689         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
21690         its complicated substitute.
21691         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
21692         and program_invocation_name.
21693         (__argp_basename) [!_LIBC]: Remove; the only use was
21694         replaced by its body.
21695         (__argp_short_program_name): Change condition from
21696         !defined __argp_short_program_name to
21697         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
21698         to match argp-namefrob.h.
21699         (__argp_failure): Don't assume strerror_r returns char *.
21700         * lib/argp-parse.c (N_): Define unconditionally.
21701         (argp_default_options): Fill out initializers with 0 to avoid
21702         gcc warnings.
21703
21704 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
21705
21706         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
21707         getopt1.c.
21708
21709 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
21710
21711         Merge from coreutils.
21712
21713         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
21714
21715         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
21716         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
21717
21718 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
21719
21720         Merge from coreutils.
21721
21722         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
21723         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
21724         for Reliant Unix 5.43.
21725
21726         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
21727         (union fooround): Use uintmax_t, not long int.
21728         The rest is a merge from libc:
21729         [defined _LIBC]: Include <shlib-compat.h>.
21730         (_obstack) [defined _LIBC]: Remove after 2.3.4.
21731
21732         * lib/settime.c (settime): Recode to avoid warning with
21733         Sun Forte C 6U2.
21734
21735         * lib/strverscmp.c: Convert to UTF-8.
21736
21737 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
21738
21739         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
21740         m4/uintmax_t.m4.
21741
21742 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
21743
21744         * modules/xalloc-die: New file.
21745         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
21746
21747         * modules/md5 (Files): Add m4/uint32_t.m4.
21748         * modules/sha1: Renamed from modules/sha.
21749         (Files):
21750         Rename lib/sha.h to lib/sha1.h.
21751         Rename lib/sha.c to lib/sha1.c.
21752         Rename m4/sha.m4 to m4/sha1.m4.
21753         (lib_SOURCES): Likewise.
21754         (configure.ac): Rename gl_SHA to gl_SHA1.
21755         (Include): sha.h -> sha1.h.
21756
21757 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
21758
21759         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
21760         * m4/sha1.m4: Renamed from sha.m4.
21761         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
21762
21763 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
21764
21765         * lib/obstack.h (obstack_empty_p):
21766         Don't assume that chunk->contents is suitably aligned.
21767         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
21768         Likewise. Problem reported by Benno in
21769         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
21770
21771         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
21772         readable.  This could be improved further but it'd take some work.
21773
21774 2004-08-08  Simon Josefsson  <jas@extundo.com>
21775
21776         * modules/xgethostname (Depends-on): Remove exit and error (not
21777         used).
21778
21779         * modules/getpass-gnu: Add getpass.h.
21780         (Depends-on): Add stdbool.
21781         * modules/getpass: Add getpass.h.
21782
21783 2004-08-08  Simon Josefsson  <jas@extundo.com>
21784
21785         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
21786         Check getpass declaration.
21787
21788 2004-08-08  Simon Josefsson  <jas@extundo.com>
21789
21790         * lib/xgethostname.c: Don't include error.h (not used).
21791
21792         * lib/getpass.h: Add.
21793         * lib/getpass.c: Include getpass.h first.
21794
21795 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
21796
21797         * lib/xalloc-die.c: New file.
21798         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
21799         All uses removed.
21800         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
21801         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
21802         xalloc-die.c.
21803         (_, N_, xalloc_die): Move to xalloc-die.c.
21804         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
21805         so that we needn't mess with xalloc_msg_memory_exhausted.
21806
21807         * lib/sha1.h: Renamed from sha.h.
21808         (SHA1_H): Renamed from _SHA_H.
21809         (sha1_ctx): Renamed from sha_ctx.
21810         (sha1_init_ctx): Renamed from sha_init_ctx.
21811         (sha1_process_block): Renamed from sha_process_block.
21812         (sha1_process_bytes): Renamed from sha_process_bytes.
21813         (sha1_finish_ctx): Renamed from sha_finish_ctx.
21814         (sha1_read_ctx): Renamed from sha_read_ctx.
21815         (sha1_stream): Renamed from sha_stream.
21816         (sha1_buffer): Renamed from sha_buffer.
21817         * lib/sha1.c: Likewise; renamed from sha.c.
21818         Do not include <sys/types.h>.
21819         Include <stddef.h> rather than <stdlib.h>.
21820
21821 2004-08-08  Bruno Haible  <bruno@clisp.org>
21822
21823         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
21824         FILESYSTEM_PREFIX_LEN.
21825         * lib/progreloc.c: Likewise.
21826         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
21827
21828 2004-08-06  Simon Josefsson  <jas@extundo.com>
21829
21830         * modules/progname (Depends-on): Don't depend on stdbool.
21831
21832 2004-08-06  Simon Josefsson  <jas@extundo.com>
21833
21834         * modules/getsubopt: New file.
21835         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
21836         getsubopt.
21837
21838 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
21839
21840         More merge from coreutils.
21841
21842         * m4/utimens.m4, m4/utimecmp.m4: New files.
21843         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
21844         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
21845         prereq.m4, sha.m4: Import changes from coreutils.
21846
21847 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
21848
21849         More merge from coreutils.
21850         * modules/raise, modules/readtokens0, modules/utimens:
21851         * modules/utimecmp, module/xnanosleep: New files.
21852         * modules/strftime: Add lib/strftime.h.
21853         Change include from <time.h> to "strftime.h".
21854         * modules/yesno: Add lib/yesno.h.
21855         * modules/backupfile: Remove lib/addext.c.
21856         * modules/euidaccess: Add stat-macros.h.
21857         * modules/canonicalize, modules/euidaccess,
21858         modules/filemode, modules/lchown, modules/makepath,
21859         modules/rmdir, modules/stat: Likewise.
21860
21861 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
21862
21863         Merge from tar.
21864         * lib/argp-help.c (make_hol, hol_append): Don't assume that
21865         SIZE_MAX is a valid preprocessor constant.
21866         (__argp_basename): Change from "#ifndef _LIBC"
21867         to "#ifndef __argp_short_program_name", so that
21868         we don't compile these functions for tar.
21869
21870         More merges from coreutils.
21871         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
21872         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
21873         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
21874         * lib/addext.c: Remove; no longer needed.
21875         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
21876         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
21877         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
21878         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
21879         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
21880         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
21881         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
21882         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
21883         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
21884         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
21885         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
21886         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
21887         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
21888         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
21889         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
21890         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
21891         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
21892         Import changes from coreutils.
21893
21894 2004-08-05  Simon Josefsson  <jas@extundo.com>
21895
21896         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
21897
21898 2004-08-05  Simon Josefsson  <jas@extundo.com>
21899
21900         * m4/getsubopt.m4: New file.
21901
21902 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
21903
21904         Merge from coreutils.
21905
21906         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
21907         * m4/getcwd-path-max.m4: New files.
21908
21909         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
21910         FILESYSTEM_PREFIX_LEN ->
21911         FILE_SYSTEM_PREFIX_LEN.
21912         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
21913         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
21914         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
21915         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
21916
21917         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
21918         prerequisite modules now handle the DOS stuff.
21919         Don't check for unistd.h.
21920
21921 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
21922
21923         Merge from coreutils.
21924
21925         * lib/.gdb-history: Remove; this doesn't belong here.
21926
21927         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
21928         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
21929         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
21930         * lib/getcwd.c: New files.
21931
21932         * lib/dirname.h: Include <stdbool.h>.
21933         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
21934         for consistency with POSIX terminology.  All uses changed.
21935         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
21936         (strip_trailing_slashes): Use bool for booleans.
21937         * lib/stripslash.c (strip_trailing_slashes): Likewise.
21938
21939         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
21940         sometimes returns a positive errno value even when it succeeds.
21941         (print_errno_message) [!LIBC]: Fall back on strerror if
21942         __strerror_r fails.
21943
21944         * lib/path-concat.c (mempcpy): Don't define if a system header defines
21945         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
21946         (longest_relative_suffix): New function.
21947         (path_concat): Use it.  Assume first argument is not NULL.
21948         Port to DOS.  Omit redundant separators.
21949         Report an error instead of returning NULL.
21950         Use mempcpy instead of memcpy.
21951         (xpath_concat): Remove: not declared or used.
21952
21953         * lib/same.h: Include <stdbool.h>
21954         (same_name): Return bool, not int.
21955         * lib/same.c (same_name): Likewise.
21956         (errno): Don't declare; we assume C89 or better now.
21957
21958         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
21959         if not already defined.
21960
21961         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
21962         * lib/dup-safer.c (errno): Likewise.
21963
21964 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
21965
21966         Merge from coreutils.
21967         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
21968         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
21969         * modules/path-concat: Don't depend on strdup.
21970
21971 2004-08-03  Simon Josefsson  <jas@extundo.com>
21972
21973         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
21974         * lib/progname.h: Don't include stdbool.h.
21975
21976 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
21977
21978         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
21979         * MODULES.html.sh (func_all_modules): Remove fatal.
21980
21981 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
21982
21983         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
21984
21985 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
21986
21987         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
21988         working.
21989
21990 2004-08-02  Simon Josefsson  <jas@extundo.com>
21991
21992         * lib/getsubopt.h: New file, with comments from Bruno Haible.
21993         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
21994         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
21995
21996 2004-08-01  Simon Josefsson  <jas@extundo.com>
21997
21998         * lib/xgetdomainname.c: Include stdlib.h, for free().
21999
22000 2004-07-19  Bruno Haible  <bruno@clisp.org>
22001
22002         * MODULES.html.sh (func_all_modules): Add dummy.
22003
22004 2004-07-16  Simon Josefsson  <jas@extundo.com>
22005
22006         * modules/dummy: New file.
22007
22008 2004-07-16  Simon Josefsson  <jas@extundo.com>
22009
22010         * lib/dummy.c: New file.
22011
22012 2004-07-16  Bruno Haible  <bruno@clisp.org>
22013
22014         * lib/backupfile.h: Add extern "C" for C++.
22015         * lib/closeout.h: Likewise.
22016         * lib/copy-file.h: Likewise.
22017         * lib/findprog.h: Likewise.
22018         * lib/full-write.h: Likewise.
22019         * lib/pathname.h: Likewise.
22020         * lib/progname.h: Likewise.
22021         * lib/stpcpy.h: Likewise.
22022         * lib/stpncpy.h: Likewise.
22023         * lib/strcase.h: Likewise.
22024         * lib/strstr.h: Likewise.
22025         * lib/xalloc.h: Likewise.
22026
22027         * lib/mbswidth.h: Add extern "C" for C++.
22028         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
22029
22030 2004-07-13  Robert Millan  <robertmh@gnu.org>
22031
22032         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
22033
22034 2004-07-09  Simon Josefsson  <jas@extundo.com>
22035
22036         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
22037         failed without this.)
22038
22039 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
22040
22041         * modules/chown (Files): Add lib/fchown-stub.c, since
22042         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
22043
22044 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
22045
22046         * lib/fchown-stub.c: New file.
22047
22048 2004-06-24  Jim Meyering  <jim@meyering.net>
22049
22050         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
22051
22052 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
22053
22054         * modules/argz: Omit "#include".
22055
22056         * MODULES.html.sh (func_all_modules): Add calloc, to match
22057         2004-06-01 addition of calloc module.
22058
22059 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
22060
22061         * m4/argz.m4: New file, which is autoupdated from libtool.
22062
22063 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
22064
22065         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
22066         libtool.
22067
22068 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
22069
22070         * config/srclist-update: Don't insist on "USA." before the
22071         close-comment, as libtool omits the period and puts the */ on a
22072         separate line.
22073         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
22074         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
22075
22076 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
22077
22078         * modules/argz: New file.
22079         * MODULES.html.sh (func_all_modules): Add argz.
22080
22081 2004-06-12  Jim Meyering  <jim@meyering.net>
22082         and  Paul Eggert  <eggert@cs.ucla.edu>
22083
22084         * modules/hash (Files): Add lib/xalloc.h.
22085         * modules/pipe (Depends-on): Add wait-process.
22086         * modules/stat (Depends-on): Add xalloc.
22087         * modules/userspec (Files): Add lib/userspec.h.
22088         * modules/xstrto
22089
22090         Upgrade from gettext-0.13.
22091         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
22092         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
22093         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
22094
22095 2004-06-10  Jim Meyering  <jim@meyering.net>
22096
22097         * lib/calloc.c: New file.
22098
22099 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
22100
22101         * lib/getdate.y (yylex): Allow space between sign and number.
22102         Problem reported by Dan Jacobson.
22103
22104 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
22105
22106         Merge from coreutils CVS.
22107
22108         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
22109         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
22110         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
22111         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
22112         xstrtol.m4: Fix copyright date and/or serial number.
22113
22114         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
22115         See if we need an fchown replacement.
22116         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
22117         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
22118         and use the replacement function if we detect either defect.
22119
22120         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
22121         gl_UTIMECMP.
22122
22123 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
22124         and  Jim Meyering  <jim@meyering.net>
22125
22126         Merge from coreutils CVS.
22127
22128         * lib/stat-macros.h: New file, with contents from file-type.h
22129         and coreutils' system.h.
22130         * lib/file-type.c: Include "stat-macros.h".
22131         * lib/file-type.h (file_type): Move all macro definitions to new file,
22132         stat-macros.h.
22133
22134         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
22135         Wrap old code with this conditional.
22136         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
22137         function that does not dereference symlinks.
22138         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
22139
22140         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
22141         dependency problems.
22142         (xreadlink): Accept new arg SIZE, for efficiency.
22143         All decls and uses changed.
22144         * lib/xreadlink.h: Include <stddef.h>, for size_t.
22145
22146         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
22147         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
22148
22149         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
22150         sysexits.h.
22151
22152 2004-06-01  Jim Meyering  <jim@meyering.net>
22153
22154         * m4/calloc.m4: New file.
22155
22156 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
22157
22158         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
22159         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
22160         Also, fix a typo in a diagnostic.
22161
22162 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
22163
22164         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
22165         or AC_FUNC_REALLOC.
22166
22167 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
22168
22169         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
22170         macros to be defined.
22171         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
22172         the allocator returns NULL because the requested size is zero.
22173
22174 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
22175
22176         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
22177         var.  Add comment explaining why libc still defines it.  This
22178         merges the following patch from glibc:
22179         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
22180
22181 2004-05-20  Andreas Schwab  <schwab@suse.de>
22182
22183         * m4/free.m4: Replace free if it not known to work, not the other
22184         way round.
22185
22186 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
22187
22188         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
22189         present in glibc since revision 1.1 of this file.
22190         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
22191         obstack_alignment_mask, obstack_alloc, obstack_base,
22192         obstack_blank, obstack_blank_fast, obstack_chunk_size,
22193         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
22194         obstack_grow0, obstack_init, obstack_int_grow,
22195         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
22196         obstack_next_free, obstack_object_size, obstack_ptr_grow,
22197         obstack_ptr_grow_fast, obstack_room): Remove declarations of
22198         nonexistent functions.
22199
22200 2004-05-18  Karl Berry  <karl@gnu.org>
22201
22202         * config/srclist.txt: break link for vasnprintf.c.
22203
22204 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
22205
22206         Port obstack to the AS/400, where pointers are 16 bytes wide and
22207         you cannot cast an integer to a valid pointer.  This patch is
22208         currently waiting to be integrated into glibc; see
22209         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
22210
22211         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
22212         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
22213         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
22214         (struct obstack): temp member is now a union of a pointer and
22215         an integer, instead of an integer.  All integer uses changed.
22216         This does not affect the physical layout of struct obstack,
22217         except on hosts (like the AS/400) where the size or alignment of
22218         void * is greater than that of ptrdiff_t.
22219         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
22220         __STDC__)]: Store temporary in pointer member of union, not
22221         integer member.
22222         * lib/obstack.c: Include <stddef.h>, for offsetof.
22223         (struct fooalign): Remove; it doesn't need a name.
22224         (union fooround): Change double to long double, and add void *.
22225         (DEFAULT_ALIGNMENT): Use offsetof to compute.
22226         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
22227         not a macro.  Hence the values are always int; so remove all
22228         casts-to-int in uses.
22229
22230 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
22231
22232         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
22233         we can get this patch merged into glibc.
22234
22235 2004-05-17  Derek R. Price  <derek@ximbiot.com>
22236             Paul Eggert  <eggert@cs.ucla.edu>
22237
22238         * m4/argp: Depend on alloca.
22239
22240 2004-05-17  Derek R. Price  <derek@ximbiot.com>
22241             Paul Eggert  <eggert@cs.ucla.edu>
22242
22243         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
22244         freecoding.
22245
22246 2004-05-17  Bruno Haible  <bruno@clisp.org>
22247
22248         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
22249         precision that consists of a '.' followed by an empty digit string.
22250         Patch by Tor Lillqvist <tml@iki.fi>.
22251
22252 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
22253
22254         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
22255         for backward compatibility with older code.  We need our own
22256         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
22257         it under some other name, and our alloca.h will define it.
22258
22259 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
22260             Derek Price  <derek@ximbiot.com>
22261
22262         * lib/alloca.c: Include <alloca.h>, to get our interface.
22263         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
22264         include <alloca.h> first.  Use C89 prototype for alloca; this
22265         requires including <stddef.h> for size_t.  Use extern "C" if C++.
22266         Use #elif for simplicity, since we can assume C89 now.
22267         Don't try to source the system alloca.h since it will not be found
22268         and to prevent recursively including its replacement.
22269         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
22270         * lib/regex.c: Likewise.
22271
22272 2004-05-16  Derek Price  <derek@ximbiot.com>
22273             Paul Eggert  <eggert@cs.ucla.edu>
22274
22275         getline cleanup.  This changes the getndelim2 API: both order of
22276         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
22277         no delimiter).
22278
22279         * lib/getline.c: Don't include stddef.h or stdio.h, since our
22280         interface does that.
22281         (getline): Always use getdelim, so that we don't have two
22282         copies of this code.
22283         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
22284         if available.
22285         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
22286         (GETNDELIM2_MAXIMUM): New macro.
22287         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
22288         instead of the old practice of delim2==0.  All callers changed.
22289         Return -1 on overflow, instead of returning junk.
22290         Do not set *linesize unless allocation succeeds.
22291         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
22292         that we include sys/types.h.
22293         * lib/getnline.h: Likewise.
22294         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
22295         (getndelim2): Reorder arguments.
22296         * lib/getnline.c (getnline, getndelim):
22297         Don't discard the NMAX argument.
22298         (getnline): Invoke getndelim, to avoid code duplication.
22299         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
22300         of (size_t) -1 by callers of the getnline family.
22301
22302 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
22303
22304         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
22305         Check for gettimeofday.
22306         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
22307         Check for settimeofday, stime.
22308
22309 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
22310
22311         * lib/nanosleep.c (suspended): Change its type from int to
22312         sig_atomic_t volatile.
22313         (first_call): Make it private to rpl_nanosleep, and have it
22314         be zero initially as that's a bit faster.
22315         (my_usleep): Round up fractional times instead of truncating them,
22316         as this is the usual meaning for 'sleep'.
22317
22318         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
22319         doesn't work.
22320         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
22321         (ENOSYS): Define if not defined.
22322         (settime): Fall back on stime if it exists and settimeofday fails.
22323         But don't bother with fallbacks if a method fails with errno == EPERM.
22324
22325 2004-05-11  Jim Meyering  <jim@meyering.net>
22326
22327         Prior to this change, the save_cwd caller required read access to the
22328         current directory on most systems (ones with the fchdir function).
22329
22330         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
22331         fails, try write-only, and finally, resort to using xgetcwd.
22332
22333 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
22334
22335         * lib/obstack.c, obstack.h: Import changes from libc.
22336
22337 2004-04-28  Bruno Haible  <bruno@clisp.org>
22338
22339         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
22340         also implicitly appends .exe to executables.
22341         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
22342         accepts Windows pathnames.
22343         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
22344         Treat Cygwin like Windows, since it now accepts Windows pathnames.
22345         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
22346         Treat Cygwin like Windows, since it now accepts Windows pathnames.
22347         Reported by Derek Robert Price <derek@ximbiot.com>.
22348
22349 2004-04-21  Karl Berry  <karl@gnu.org>
22350
22351         * config/srclist.txt (localcharset.c): break sync.
22352
22353 2004-04-20  Paul Eggert  <eggert@twinsun.com>
22354
22355         * m4/host-os.m4: Add a copyright notice.
22356
22357 2004-04-20  Jim Meyering  <jim@meyering.net>
22358
22359         Change UTILS_ to gl_ in AC_DEFINE'd names.
22360         Change utils_- and jm_-prefixed variables, too.
22361         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
22362         UTILS_FUNC_MKDIR_TRAILING_SLASH.
22363         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
22364
22365         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
22366         Don't emit trailing blanks.
22367         Also rename jm_-prefixed variables to have gl_ prefix.
22368
22369         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
22370         Also rename jm_-prefixed variables to have gl_ prefix.
22371
22372         * m4/jm-macros.m4: Reflect the renamings.
22373         * m4/prereq.m4: Likewise.
22374
22375 2004-04-20  Jim Meyering  <jim@meyering.net>
22376
22377         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
22378         memory.
22379
22380 2004-04-20  Jim Meyering  <jim@meyering.net>
22381             Bruno Haible  <bruno@clisp.org>
22382
22383         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
22384         memory when realloc fails.
22385
22386 2004-04-19  Jim Meyering  <jim@meyering.net>
22387
22388         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
22389         now that readutmp.c may call `free (0)'.
22390
22391 2004-04-19  Bruno Haible  <bruno@clisp.org>
22392
22393         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
22394         * m4/inttypes_h.m4: Likewise.
22395         * m4/stdint_h.m4: Likewise.
22396         * m4/intmax_t.m4: Likewise.
22397         * m4/uintmax_t.m4: Likewise.
22398
22399 2004-04-18  Jim Meyering  <jim@meyering.net>
22400
22401         * m4/prereq.m4: Don't forbid jm_ prefix.
22402
22403         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
22404         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
22405         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
22406         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
22407         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
22408         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
22409         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
22410         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
22411         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
22412         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
22413         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
22414         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
22415         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
22416         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
22417         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
22418         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
22419         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
22420         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
22421         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
22422
22423 2004-04-18  Jim Meyering  <jim@meyering.net>
22424
22425         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
22426         failure, don't leak memory and do call END_UTMP_ENT.
22427
22428 2004-04-16  Jim Meyering  <jim@meyering.net>
22429
22430         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
22431         coreutils' stat program.
22432         (gl_PREREQ): Don't require jm_PREREQ_STAT.
22433
22434 2004-04-11  Paul Eggert  <eggert@twinsun.com>
22435
22436         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
22437         C89.
22438         (CHAR_BIT): Remove, since we assume C89.
22439         Include <stdint.h> if available, as per current Autoconf CVS advice.
22440
22441 2004-03-31  Jim Meyering  <jim@meyering.net>
22442
22443         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
22444         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
22445         * m4/xalloc.m4: Likewise.
22446
22447 2004-03-30  Paul Eggert  <eggert@twinsun.com>
22448
22449         Merge from coreutils.
22450
22451         * m4/inttostr.m4: New file.
22452         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
22453         Require AM_STDBOOL_H and gl_TIMESPEC instead.
22454         Require gl_CLOCK_TIME.
22455         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
22456
22457 2004-03-30  Paul Eggert  <eggert@twinsun.com>
22458
22459         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
22460         not bool, to be more consistent with Unix conventions.
22461         Suggested by Bruno Haible.
22462
22463         Merge from coreutils.
22464
22465         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
22466         * lib/umaxtostr.c: New files.
22467
22468         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
22469         the usual <time.h> dance.
22470         (get_date): Change signature to support fractional time stamps.
22471         All callers changed.
22472         * lib/getdate.y: Include "getdate.h" first, as we can now
22473         assume C89 and don't need to worry about 'const'.
22474         Similarly, include "unlocked-io.h" near start, not in middle.
22475         Include <limits.h>.
22476         (textint.value): Use long int rather than int.
22477         (textint.digits): Use size_t rather than int.
22478         (BILLION, LOG10_BILLION): New constants.
22479         (parser_control): New member rel_ns.  Members day_ordinal,
22480         time_zone, month, day, hour, minutes, rel_year, rel_month,
22481         rel_day, rel_hour, rel_minutes, rel_seconds
22482         are now long int, not int.  Member seconds is now struct timespec,
22483         not int.  New member timespec_seen.  Members dates_seen, days_seen,
22484         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
22485         not int.
22486         (%union.intval): Now long int, not int.
22487         New member timespec.
22488         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
22489         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
22490         (spec): Now is a timespec or an item list.
22491         (timespec, items): New nonterminals.
22492         (time, rel, relunit, number, get_date):
22493         Add support for fractional seconds.
22494         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
22495         (gmtime, localtime, mktime): Remove decls; not needed with C89.
22496         (to_hour): First arg is now long int, not int.
22497         (to_year): Returns long int, not int.
22498         Don't treat year -70 like 70.
22499         (tm_diff): Returns long int, not int.
22500         (lookup_word): Use bool instead of int when appropriate.
22501         (yylex): Use size_t for count, not int.
22502         Detect overflow when parsing large integer constants.
22503         Add support for fractions.
22504         (get_date): Make pointers 'const' if possible.
22505         Use more-portable code to detect integer overflow.
22506         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
22507         Don't use ctime; it's not reliable if the year has >4 digits.
22508
22509         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
22510         This is for compatibility with BSD.
22511
22512         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
22513         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
22514         From coreutils' system.h.
22515
22516         * lib/userspec.c: Don't include "posixver.h".
22517         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
22518         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
22519         compatible extension.  Simplify code by removing a boolean int
22520         that was always nonzero if a string was nonnull.
22521
22522 2004-03-30  Jim Meyering  <jim@meyering.net>
22523
22524         Merge from coreutils.
22525
22526         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
22527         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
22528         on some systems one must include <grp.h> before it.
22529         Reported by Christian Krackowizer.
22530
22531 2004-03-30  Jim Meyering  <jim@meyering.net>
22532
22533         Merge from coreutils.
22534
22535         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
22536
22537         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
22538         an empty input stream.
22539
22540         * lib/readtokens.c: Include <stdbool.h>.
22541         (readtoken): Use `size_t' rather than int/long.
22542         All callers adjusted.
22543         Use `bool' rather than `int' where appropriate.
22544         Use memset rather than an explicit loop.
22545         Use x2nrealloc rather than xrealloc.
22546         Allow the use of `\0' as a delimiter.
22547         (readtokens): Likewise.
22548         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
22549
22550 2004-03-30  Jim Meyering  <jim@meyering.net>
22551
22552         * m4/realloc.m4: Remove file, since now it does no more than
22553         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
22554         the `configure.ac' section of module/realloc.
22555         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
22556
22557 2004-03-30  Bruno Haible  <bruno@clisp.org>
22558
22559         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
22560         nonnull.
22561
22562 2004-03-29  Paul Eggert  <eggert@twinsun.com>
22563
22564         Merge changes to getloadavg.c from coreutils and Emacs.
22565
22566         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
22567         Define to an expression, not to the empty string.
22568         Include cloexec.h and xalloc.h.
22569         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
22570         Use set_cloexec_flag rather than rolling our own.
22571         * lib/cloexec.c, lib/cloexec.h: New files.
22572
22573 2004-03-29  Paul Eggert  <eggert@twinsun.com>
22574
22575         * m4/cloexec.m4: New file.
22576
22577 2004-03-18  Paul Eggert  <eggert@twinsun.com>
22578
22579         * lib/getopt.h: Sync with libc CVS.
22580
22581 2004-03-18  Paul Eggert  <eggert@twinsun.com>
22582             Bruno Haible  <bruno@clisp.org>
22583
22584         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
22585         mbswidth.
22586
22587 2004-03-18  Paul Eggert  <eggert@twinsun.com>
22588             Bruno Haible  <bruno@clisp.org>
22589
22590         * lib/mbswidth.h: Include <wchar.h> only if
22591         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
22592         <wchar.h>.
22593         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
22594
22595 2004-03-09  Paul Eggert  <eggert@twinsun.com>
22596
22597         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
22598         Sync with libc CVS.
22599         * lib/getopt_int.h: New file, also synced from libc.
22600
22601 2004-03-09  Paul Eggert  <eggert@twinsun.com>
22602
22603         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
22604         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
22605         Bring back getopt.c, getopt.h, getopt1.c.
22606
22607 2004-03-07  Paul Eggert  <eggert@twinsun.com>
22608
22609         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
22610         All uses changed.  Check for sa_sigaction member; this fixes
22611         a bug first reported by Jason Andrade in
22612         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
22613
22614 2004-03-07  Paul Eggert  <eggert@twinsun.com>
22615
22616         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
22617         '#if' expressions.  Unlike the code it replaces, it does not
22618         depend on (defined _SC_PAGESIZE).  However, it does depend on
22619         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
22620         first reported by Jason Andrade in
22621         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
22622
22623 2004-02-25  Simon Josefsson  <jas@extundo.com>
22624
22625         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
22626
22627 2004-02-25  Simon Josefsson  <jas@extundo.com>
22628
22629         * lib/strdup.h: New file.
22630         * lib/strdup.c: Include it.
22631         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
22632         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
22633
22634 2004-02-23  Karl Berry  <karl@gnu.org>
22635
22636         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
22637         (from fencepost.gnu.org:/gd/gnuorg).
22638
22639 2004-02-23  Karl Berry  <karl@gnu.org>
22640
22641         * config/srclistvars.sh (GNUORG) [karl]: redefine.
22642         * config/srclist.txt: add maintain/standards documents.
22643
22644 2004-02-18  Bruno Haible  <bruno@clisp.org>
22645
22646         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
22647         Reported by Derek Robert Price <derek@ximbiot.com>.
22648
22649 2004-02-16  Karl Berry  <karl@gnu.org>
22650
22651         * config/mkinstalldirs, install-sh: update from automake.
22652
22653 2004-02-06  Karl Berry  <karl@gnu.org>
22654
22655         * m4/po.m4: update from gettext 0.14.1.
22656
22657 2004-02-06  Karl Berry  <karl@gnu.org>
22658
22659         * lib/config.charset: update from gettext 0.14.1.
22660
22661 2004-02-05  Paul Eggert  <eggert@twinsun.com>
22662
22663         Add comments and code, prompted by suggestions from Bruno Haible
22664         for sh-quote.
22665         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
22666         describing the enum quoting_style values.
22667         * lib/quotearg.c (quotearg_alloc): New function.
22668         (quotearg_buffer_restyled): Treat lone { and } as special.
22669         Treat = as special.  Work around bug with older shells
22670         that "see" a '\' that is really the 2nd byte of a multibyte char.
22671         Quote empty string with shell_quoting_style.
22672
22673 2004-02-03  Bruno Haible  <bruno@clisp.org>
22674
22675         * m4/pipe.m4: New file, from GNU gettext.
22676
22677 2004-02-03  Bruno Haible  <bruno@clisp.org>
22678
22679         * lib/pipe.h: New file, from GNU gettext.
22680         * lib/pipe.c: New file, from GNU gettext.
22681
22682 2004-01-27  Bruno Haible  <bruno@clisp.org>
22683
22684         * m4/execute.m4: New file, from GNU gettext.
22685
22686 2004-01-27  Bruno Haible  <bruno@clisp.org>
22687
22688         * lib/execute.h: New file, from GNU gettext.
22689         * lib/execute.c: New file, from GNU gettext.
22690         * lib/w32spawn.h: New file, from GNU gettext.
22691
22692 2004-01-24  Paul Eggert  <eggert@twinsun.com>
22693
22694         Merge from diffutils.
22695
22696         * lib/file-type.c (file_type): Add typed memory objects.
22697         * lib/file-type.h (S_TYPEISTMO): New macro.
22698
22699         * lib/c-stack.h (c_stack_action): Remove argv argument.
22700         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
22701         (die): Don't calculate message unless segv_action returns.
22702         (get_stack_location, min_address_from_argv, max_address_from_argv,
22703         volatile stack_base, volatile_stack_size): Remove.
22704         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
22705         that every segmentation violation is a stack overflow.  (Ouch!)
22706         See Debian bug 136249 (still outstanding) for more info about why
22707         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
22708
22709 2004-01-24  Paul Eggert  <eggert@twinsun.com>
22710
22711         Exit-status fix from coreutils.
22712
22713         Use exit_failure consistently in place of EXIT_FAILURE,
22714         so that program exit statuses are consistent on failure.
22715
22716         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
22717         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
22718         * lib/argmatch.h: Comment fix to match the above.
22719         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
22720         Now a macro referring to exit_failure, instead of a separate
22721         variable.  Include "exitfail.h" to get it.
22722         * lib/xstrtol.h: Include "exitfail.h".
22723         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
22724
22725         * lib/long-options.c (parse_long_options): Use prototype
22726         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
22727         for clarity.
22728
22729 2004-01-21  Jim Meyering  <jim@meyering.net>
22730
22731         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
22732         so as not to conflict with a different-sized __mktime_internal
22733         function in GNU libc.
22734         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
22735         Problem building statically-linked `ls' reported by Michael Brunnbauer.
22736
22737 2004-01-20  Karl Berry  <karl@gnu.org>
22738
22739         * config/config.guess: update from config.
22740
22741         * config/srclistvars.sh: GNUWWWLICENSES for karl.
22742
22743 2004-01-20  Bruno Haible  <bruno@clisp.org>
22744
22745         Safer stack allocation.
22746         * lib/setenv.c: Include allocsa.h.
22747         (alloca): Remove fallback definition.
22748         (freea): Remove macro.
22749         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
22750         instead of freea.
22751
22752 2004-01-20  Bruno Haible  <bruno@clisp.org>
22753
22754         * m4/eealloc.m4: New file, from GNU gettext.
22755
22756 2004-01-20  Bruno Haible  <bruno@clisp.org>
22757
22758         * m4/allocsa.m4: New file, from GNU gettext.
22759
22760 2004-01-20  Bruno Haible  <bruno@clisp.org>
22761
22762         * lib/xallocsa.h: New file, from GNU gettext.
22763         * lib/xallocsa.c: New file, from GNU gettext.
22764
22765 2004-01-20  Bruno Haible  <bruno@clisp.org>
22766
22767         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
22768
22769 2004-01-20  Bruno Haible  <bruno@clisp.org>
22770
22771         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
22772         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
22773         specially.
22774
22775 2004-01-20  Bruno Haible  <bruno@clisp.org>
22776
22777         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
22778         patch.
22779
22780 2004-01-20  Bruno Haible  <bruno@clisp.org>
22781
22782         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
22783
22784 2004-01-20  Bruno Haible  <bruno@clisp.org>
22785
22786         * lib/eealloc.h: New file.
22787
22788 2004-01-20  Bruno Haible  <bruno@clisp.org>
22789
22790         * lib/binary-io.h: Avoid warnings on Cygwin.
22791
22792 2004-01-20  Bruno Haible  <bruno@clisp.org>
22793
22794         * lib/allocsa.h: New file, from GNU gettext.
22795         * lib/allocsa.c: New file, from GNU gettext.
22796
22797 2004-01-18  Karl Berry  <karl@gnu.org>
22798
22799         * doc/gpl.texi, doc/lgpl.texi: new files.
22800
22801 2004-01-18  Karl Berry  <karl@gnu.org>
22802
22803         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
22804         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
22805
22806 2004-01-15  Paul Eggert  <eggert@twinsun.com>
22807
22808         Merge from coreutils.
22809
22810         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
22811         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
22812         (gl_DEFAULT_POSIX2_VERSION): Move
22813         the documentation from 'configure' into 'config.hin',
22814         so that 'configure --help' isn't burdened by it and
22815         we don't have to worry about its formatting there.
22816         Reword the documentation so that it's more succinct
22817         and can be run together into a single paragraph.
22818         * m4/same.m4 (gl_SAME): Check for pathconf.
22819
22820 2004-01-15  Paul Eggert  <eggert@twinsun.com>
22821
22822         Merge from coreutils.
22823
22824         * lib/posixver.c: Include posixver.h.
22825
22826         * lib/same.c: Include <stdbool.h>, <limits.h>.
22827         (_POSIX_NAME_MAX): Define if not defined.
22828         (MIN): New macro.
22829         (same_name): If file names are silently truncated, report
22830         that the file names are the same if they are the same after
22831         the silent truncation.
22832
22833         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
22834         conversion function.
22835         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
22836         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
22837         longer needed.
22838
22839 2004-01-15  Jim Meyering  <jim@meyering.net>
22840
22841         Merge from coreutils.
22842
22843         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
22844         if no library is required.
22845         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
22846         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
22847         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
22848         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
22849         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
22850         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
22851         value, $ac_cv_search_crypt, if it's "none required".
22852         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
22853         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
22854         not gl_FUNC_GETLOADAVG.
22855         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
22856         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
22857
22858 2004-01-15  Jim Meyering  <jim@meyering.net>
22859
22860         Merge from coreutils.
22861
22862         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
22863         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
22864         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
22865
22866         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
22867         optional configure-time default.
22868
22869         * lib/version-etc.c (version_etc_copyright): Update copyright date.
22870
22871         * lib/xreadlink.c (xreadlink): Correct outdated comment.
22872
22873 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
22874
22875         Merge from coreutils.
22876
22877         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
22878         value, $ac_cv_search_nanosleep, if it's "none required".
22879
22880 2004-01-14  Paul Eggert  <eggert@twinsun.com>
22881
22882         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
22883         with like-named macro in fnmatch.c.
22884         (EXT): Use an internal constant instead.
22885
22886         Merge fnmatch patches from glibc.
22887         * lib/fnmatch.c (mbsinit): Remove define.
22888         Add libc_hidden_ver (__fnmatch, fnmatch).
22889         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
22890         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
22891
22892 2004-01-14  Karl Berry  <karl@gnu.org>
22893
22894         * config/install-sh: update from automake.
22895
22896 2004-01-13  Karl Berry  <karl@gnu.org>
22897
22898         * config/install-sh: update from automake.
22899
22900 2004-01-09  Karl Berry  <karl@gnu.org>
22901
22902         * config/install-sh: update from automake.
22903
22904 2004-01-05  Karl Berry  <karl@gnu.org>
22905
22906         * config/config.{sub,guess}: update from config.
22907
22908 2003-12-31  Karl Berry  <karl@gnu.org>
22909
22910         * config/depcomp: update from automake.
22911
22912 2003-12-14  Karl Berry  <karl@gnu.org>
22913
22914         * lib/config.charset: update from gettext-runtime.
22915
22916 2003-12-03  Paul Eggert  <eggert@twinsun.com>
22917
22918         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
22919         Bug reported by Alfred M. Szmidt.
22920
22921 2003-12-03  Bruno Haible  <bruno@clisp.org>
22922
22923         * m4/gettext.m4: Upgrade from gettext-0.13.
22924         * m4/po.m4: Upgrade from gettext-0.13.
22925         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
22926         * m4/intmax.m4: New file, from gettext-0.13.
22927         * m4/printf-posix.m4: New file, from gettext-0.13.
22928
22929 2003-11-29  Karl Berry  <karl@gnu.org>
22930
22931         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
22932
22933 2003-11-25  Paul Eggert  <eggert@twinsun.com>
22934             Bruno Haible  <bruno@clisp.org>
22935
22936         * lib/printf-parse.h: Don't include sys/types.h.
22937         (ARG_NONE): New macro.
22938         (char_directive): Change type of *arg_index fields to size_t.
22939         * lib/printf-parse.c: Don't include sys/types.h.
22940         (SSIZE_MAX): Remove macro.
22941         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
22942         Remove unnecessary overflow check.
22943         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
22944         fields.
22945
22946 2003-11-25  Bruno Haible  <bruno@clisp.org>
22947
22948         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
22949
22950 2003-11-25  Bruno Haible  <bruno@clisp.org>
22951
22952         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
22953         gt_TYPE_SSIZE_T.
22954
22955 2003-11-24  Paul Eggert  <eggert@twinsun.com>
22956
22957         * modules/alloca: Remove dependency on xalloc.
22958
22959 2003-11-24  Paul Eggert  <eggert@twinsun.com>
22960
22961         * lib/alloca.c: Remove dependency on xalloc module.
22962         (xalloc_die): Remove.
22963         (memory_full) [!defined emacs]: New macro.
22964         [!defined emacs]: Don't include xalloc.h.
22965         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
22966         address arithmetic overflows.  Change datatypes a bit to avoid
22967         unnecessary casts.
22968
22969 2003-11-22  Jim Meyering  <jim@meyering.net>
22970
22971         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
22972         s/size/size_t/.
22973
22974 2003-11-21  Karl Berry  <karl@gnu.org>
22975
22976         * config/config.{sub,guess}: update from config.
22977
22978 2003-11-18  Karl Berry  <karl@gnu.org>
22979
22980         * config/config.{sub,guess}: update from config.
22981
22982         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
22983
22984 2003-11-17  Paul Eggert  <eggert@twinsun.com>
22985
22986         * README: Mention that S+T cannot overflow if S is the size of
22987         an existing object and T is sufficiently small.
22988
22989 2003-11-17  Jim Meyering  <jim@meyering.net>
22990
22991         On systems without utime and without a utimes function capable of
22992         dealing with a NULL struct utimbuf* argument, this utime replacement
22993         could -- in unusual circumstances -- leak a file descriptor.
22994         * lib/utime.c: Include <unistd.h> and <errno.h>.
22995         (utime_null): Be sure to close `fd' and to preserve errno.
22996         Reported by Geoff Collyer via Arnold Robbins.
22997
22998 2003-11-17  Bruno Haible  <bruno@clisp.org>
22999
23000         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
23001         (Depends-on): Add xsize.
23002
23003 2003-11-17  Bruno Haible  <bruno@clisp.org>
23004
23005         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
23006
23007 2003-11-17  Bruno Haible  <bruno@clisp.org>
23008
23009         * lib/vasnprintf.c (alloca): Remove fallback definition.
23010         (freea): Remove definition.
23011         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
23012         Reported by Paul Eggert.
23013
23014 2003-11-16  Paul Eggert  <eggert@twinsun.com>
23015             Bruno Haible  <bruno@clisp.org>
23016
23017         Protect against address arithmetic overflow.
23018         * lib/printf-args.h: Include stddef.h.
23019         (arguments): Change type of field 'count' to size_t.
23020         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
23021         'unsigned int' where appropriate.
23022         * lib/printf-parse.h: Include sys/types.h.
23023         (char_directive): Change type of *arg_index fields to ssize_t.
23024         (char_directives): Change type of fields 'count', max_*_length to
23025         size_t.
23026         * lib/printf-parse.c: Include sys/types.h and xsize.h.
23027         (SSIZE_MAX): Define fallback value.
23028         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
23029         instead of 'int' where appropriate. Check a_allocated, d_allocated
23030         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
23031         * lib/vasnprintf.c: Include xsize.h.
23032         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
23033         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
23034         overflow. Avoid wraparound when converting a width or precision from
23035         decimal to binary.
23036
23037 2003-11-16  Bruno Haible  <bruno@clisp.org>
23038
23039         Update from GNU gettext.
23040         * lib/printf-parse.c: Generalize to it can be compiled for wide
23041         strings.
23042         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
23043         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
23044         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
23045         SNPRINTF): New macros.
23046         Don't include <alloca.h> if the file is used inside libintl.
23047         (local_wcslen): New function, for Solaris 2.5.1.
23048         (VASNPRINTF): Use it instead of wcslen.
23049
23050 2003-11-16  Bruno Haible  <bruno@clisp.org>
23051
23052         * lib/xsize.h (xmax): New function.
23053         (xsum, xsum3, xsum4): Declare as "pure" functions.
23054
23055 2003-11-12  Paul Eggert  <eggert@twinsun.com>
23056
23057         * modules/xalloc (Files): Undo latest change, since xalloc.h
23058         no longer needs SIZE_MAX or PTRDIFF_MAX.
23059
23060 2003-11-12  Paul Eggert  <eggert@twinsun.com>
23061
23062         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
23063         gl_PTRDIFF_MAX.
23064
23065 2003-11-12  Paul Eggert  <eggert@twinsun.com>
23066
23067         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
23068         "return", to pacify some unknown compiler.  Problem reported
23069         by Joerg Schilling.
23070
23071 2003-11-12  Paul Eggert  <eggert@twinsun.com>
23072
23073         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
23074         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
23075         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
23076         heuristic is just as accurate as far as we know, and it removes a
23077         dependency on size_max.m4 and ptrdiff_max.m4.
23078
23079 2003-11-11  Bruno Haible  <bruno@clisp.org>
23080
23081         * modules/xsize (Files): Add m4/size_max.m4.
23082         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
23083
23084 2003-11-11  Bruno Haible  <bruno@clisp.org>
23085
23086         * m4/size_max.m4: New file.
23087         * m4/ptrdiff_max.m4: New file.
23088         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
23089         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
23090         (gl_XALLOC): Invoke it.
23091
23092 2003-11-11  Bruno Haible  <bruno@clisp.org>
23093
23094         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
23095         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
23096         defined.
23097
23098 2003-11-10  Paul Eggert  <eggert@twinsun.com>
23099
23100         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
23101         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
23102         rejected some allocations of exactly SIZE_MAX - 2 bytes.
23103         From Bruno Haible.
23104         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
23105         not (size_t) -1, since it's defined here.
23106
23107 2003-11-09  Karl Berry  <karl@gnu.org>
23108
23109         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
23110
23111 2003-11-06  Paul Eggert  <eggert@twinsun.com>
23112
23113         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
23114         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
23115         Reject sizes of exactly SIZE_MAX bytes.
23116         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
23117         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
23118
23119 2003-11-05  Bruno Haible  <bruno@clisp.org>
23120
23121         * lib/xsize.h: Include limits.h, to avoid a possible collision with
23122         SIZE_MAX defined in <limits.h> on Solaris.
23123
23124 2003-11-04  Jim Meyering  <jim@meyering.net>
23125
23126         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
23127         variable names, rather than @VAR@.
23128         * modules/poll: Likewise.
23129
23130 2003-11-04  Bruno Haible  <bruno@clisp.org>
23131
23132         * modules/xsize: New file.
23133         * modules/linebreak: Depend on xsize.
23134         * MODULES.html.sh (func_all_modules): Add xsize.
23135
23136 2003-11-04  Bruno Haible  <bruno@clisp.org>
23137
23138         * m4/xsize.m4: New file.
23139
23140 2003-11-04  Bruno Haible  <bruno@clisp.org>
23141
23142         * lib/xsize.h: New file.
23143         * lib/linebreak.c: Include xsize.h.
23144         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
23145         argument for overflow.
23146         Suggested by Paul Eggert.
23147
23148 2003-11-03  Karl Berry  <karl@gnu.org>
23149
23150         * config/config.{guess,sub}: update from config.
23151
23152 2003-11-03  Jim Meyering  <jim@meyering.net>
23153
23154         * modules/userspec (lib_SOURCES): Add userspec.h.
23155         (Include): Add "userspec.h".
23156         Improve description.
23157
23158 2003-11-03  Jim Meyering  <jim@meyering.net>
23159
23160         * lib/userspec.c: Include "userspec.h".
23161         * lib/userspec.h: New file.
23162
23163 2003-11-03  Bruno Haible  <bruno@clisp.org>
23164
23165         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
23166
23167 2003-11-03  Bruno Haible  <bruno@clisp.org>
23168
23169         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
23170         available, to avoid (extremely rare) race condition.
23171         Suggested by Paul Eggert.
23172
23173 2003-11-02  Karl Berry  <karl@gnu.org>
23174
23175         * config/srclist.txt (vasprintf.c): sync broken, sigh.
23176
23177 2003-10-31  Paul Eggert  <eggert@twinsun.com>
23178
23179         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
23180         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
23181         (read_filesystem_list): Set and use me_type_malloced.
23182         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
23183         whatever the type happens to be), for brevity and consistency.
23184         Check for size calculation overflow on Alphas running OSF/1.
23185
23186 2003-10-31  Jim Meyering  <jim@meyering.net>
23187
23188         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
23189
23190         * lib/linebuffer.c: Include <string.h> for declaration of memset.
23191
23192 2003-10-30  Paul Eggert  <eggert@twinsun.com>
23193             Bruno Haible  <bruno@clisp.org>
23194
23195         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
23196         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
23197
23198 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
23199
23200         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
23201         netbsd*-gnu*.  Suggested by Robert Millan.
23202
23203 2003-10-29  Paul Eggert  <eggert@twinsun.com>
23204
23205         * modules/group-member: Depend on stdbool.
23206
23207 2003-10-29  Paul Eggert  <eggert@twinsun.com>
23208
23209         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
23210
23211 2003-10-29  Paul Eggert  <eggert@twinsun.com>
23212
23213         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
23214         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
23215         after the 'gnu' in these cases.  This fixes some bugs in the
23216         previous change, and is based on suggestions by Robert Millan.
23217
23218 2003-10-29  Paul Eggert  <eggert@twinsun.com>
23219
23220         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
23221         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
23222         no longer needed.
23223         * lib/quotearg.c (quotearg_n_options): Use it.
23224         * lib/group-member.c: Include <stdbool.h>.
23225         (free_group_info): Arg is now const *; don't free arg.
23226         (get_group_info): Now returns bool and accepts struct group_info *,
23227         rather than returning a malloc'ed struct group_info *.
23228         All uses changed.  Check for overflow in internal size calculation.
23229
23230         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
23231         rather than xmalloc/xrealloc.
23232         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
23233         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
23234         conformance bug: the old code used a pointer after freeing the
23235         storage that it addressed.
23236         * lib/hash.c (hash_initialize): Simplify the code by using
23237         xalloc_oversized rather than doing it by hand.
23238         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
23239         the buffer preserved.  Use free and xmalloc instead.
23240         * lib/quotearg.c (quotearg_n_options): Likewise.
23241         Use a simpler test for size overflow.  Don't use xalloc_oversized
23242         because unsigned int might be wider than size_t (!); this suggests
23243         that we should switch from unsigned int to size_t for slot numbers.
23244
23245 2003-10-28  Paul Eggert  <eggert@twinsun.com>
23246
23247         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
23248         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
23249         NetBSD kernels.  Requested by Richard Stallman.
23250
23251 2003-10-27  Paul Eggert  <eggert@twinsun.com>
23252
23253         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
23254         to allocate the returned structure.  Do not allocate a subarray,
23255         as x2nrealloc will do that.
23256         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
23257         instead of xnrealloc.
23258         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
23259
23260 2003-10-27  Bruno Haible  <bruno@clisp.org>
23261
23262         * lib/stdbool_.h: Better support for BeOS.
23263
23264 2003-10-26  Paul Eggert  <eggert@twinsun.com>
23265
23266         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
23267         now uses inline.
23268
23269 2003-10-26  Paul Eggert  <eggert@twinsun.com>
23270
23271         * lib/xalloc.h (xalloc_oversized): New static inline function, for
23272         callers that want to do their own size-overflow checking.  Include
23273         <stdbool.h>, since xalloc_oversized returns bool.
23274         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
23275         to use xalloc_oversized.
23276
23277         Add two functions x2realloc, x2nrealloc, for programs that grow
23278         arrays dynamically by doubling their sizes.
23279         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
23280         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
23281         New functions.
23282
23283         Port to C99 semantics for 'inline' of external functions.
23284         Bug reported by Bruno Haible.
23285         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
23286         with the old contents of xnmalloc.
23287         (xnmalloc, xmalloc): Use it.
23288         (xnrealloc_inline): New static inline function,
23289         with the old contents of xnrealloc.
23290         (xnrealloc, xrealloc): Use it.
23291
23292         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
23293         that.
23294
23295 2003-10-26  Karl Berry  <karl@gnu.org>
23296
23297         * config/srclist.txt (COPYING.DOC): no longer available from
23298         /gd/gnuorg; don't know where the ultimate source is.
23299
23300 2003-10-25  Paul Eggert  <eggert@twinsun.com>
23301
23302         Fix several address-calculation bugs in the hash modules,
23303         plus some minor code cleanup.
23304
23305         * lib/hash.h: Include <stdbool.h>, for bool.
23306         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
23307         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
23308         hash_get_n_entries, hash_get_max_bucket_length,
23309         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
23310         hash_rehash): Use size_t rather than unsigned.
23311         * lib/hash.c (struct hash_table, hash_get_n_buckets,
23312         hash_get_n_buckets_used, hash_get_n_entries,
23313         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
23314         hash_get_entries, hash_do_for_each, hash_string, is_prime,
23315         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
23316         Likewise.
23317         (SIZE_MAX): Define if not defined.
23318         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
23319         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
23320         hash_print):
23321         Use const * when possible.
23322         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
23323         (check_tuning): Fix bug: if tuning parameters were very close to
23324         0 or 1, rounding errors could have caused subscript violations.
23325         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
23326         (hash_initialize): Add 'fail:' label
23327         to free table and return NULL, and use it to simplify code.
23328         Use calloc rather than clearing the storage ourself.
23329         (hash_initialize, hash_rehash): Check for arithmetic overflow in
23330         buffer size calculations.
23331         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
23332         Include <stddef.h>, for size_t.
23333         * lib/hash-pjw.c (hash_pjw): Likewise.
23334         Switch to method described by Bruno Haible.
23335         Include <limits.h>, for CHAR_BIT.
23336         (SIZE_BITS): New macro.
23337
23338 2003-10-23  Paul Eggert  <eggert@twinsun.com>
23339
23340         * m4/getline.m4 (AM_FUNC_GETLINE):
23341         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
23342         hosts.  Problem reported by Derek Robert Price in
23343         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
23344         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
23345         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
23346
23347 2003-10-21  Paul Eggert  <eggert@twinsun.com>
23348
23349         * lib/getndelim2.c (getndelim2): When size calculation overflows,
23350         ceiling the allocation at NMAX bytes rather than silently
23351         discarding input bytes before NMAX is reached.  This makes
23352         a difference only if NMAX exceeds SIZE_MAX / 2.
23353
23354         * lib/obstack.c: Merge from glibc.
23355         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
23356         Add libc_hidden_def (_obstack_newchunk).
23357         (_obstack_free) [! defined _LIBC]: Remove.
23358         [defined _LIBC]: Make a strong alias from obstack_free, rather than
23359         a clone of the function body.
23360         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
23361         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
23362
23363         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
23364         glibc.
23365         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
23366         arg to memcpy.
23367
23368         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
23369         (obstack_ptr_grow_fast, obstack_int_grow_fast):
23370         Don't use lvalue casts, as GCC plans to remove support for them
23371         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
23372         was also present in the non-GCC version, indicating that this
23373         code had always been buggy and had never been widely used.
23374         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
23375         Use the fast variant of each macro, rather than copying the
23376         definiens of the fast variant; that way, we'll be more likely to
23377         catch future bugs in the fast variants.
23378
23379 2003-10-20  Bruno Haible  <bruno@clisp.org>
23380
23381         * modules/wait-process: New file.
23382         * MODULES.html.sh (func_all_modules): Add wait-process.
23383
23384 2003-10-20  Bruno Haible  <bruno@clisp.org>
23385
23386         * m4/wait-process.m4: New file.
23387
23388 2003-10-20  Bruno Haible  <bruno@clisp.org>
23389
23390         * lib/wait-process.h: New file, from GNU gettext.
23391         * lib/wait-process.c: New file, from GNU gettext.
23392
23393 2003-10-19  Jim Meyering  <jim@meyering.net>
23394
23395         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
23396         HPUX 10.20.
23397
23398 2003-10-18  Karl Berry  <karl@gnu.org>
23399
23400         * config/config.guess: update from config.
23401
23402 2003-10-16  Paul Eggert  <eggert@twinsun.com>
23403
23404         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
23405         (getgroups): First arg is int, not size_t.
23406         Don't let 'free' mangle errno.
23407
23408 2003-10-16  Paul Eggert  <eggert@twinsun.com>
23409
23410         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
23411
23412 2003-10-16  Karl Berry  <karl@gnu.org>
23413
23414         * config/config.{guess,sub}: update from config.
23415
23416 2003-10-16  Jim Meyering  <jim@meyering.net>
23417
23418         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
23419         memcpy.
23420
23421 2003-10-15  Paul Eggert  <eggert@twinsun.com>
23422
23423         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
23424         (SIZE_MAX): Remove.
23425         (new_exclude, add_exclude_file): Initial size no longer needs to
23426         be a power of 2.
23427         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
23428         our own address arithmetic overflow checking.
23429
23430         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
23431         (fnmatch): Do not alloca more than 2000 wide characters;
23432         instead, use malloc for large buffers.
23433         Check for address arithmetic overflow, and return -1
23434         with errno set to ENOMEM in that case.
23435         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
23436         (NEW_PATTERN): Do not alloca more than 8000 bytes;
23437         instead, return -1.  Check for address arithmetic overflow.
23438
23439 2003-10-14  Paul Eggert  <eggert@twinsun.com>
23440
23441         Handle invalid suffixes and overflow independently, so that
23442         callers can treat them independently as needed.  Fix some bugs in
23443         suffix handling, e.g., "100k@" was not diagnosed as an invalid
23444         suffix for a human-readable blocksize.  The major caller-visible
23445         change is the addition of a new
23446         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
23447         that both overflow and suffix chars were found.
23448
23449         * lib/human.c (humblock): Don't check separately for invalid suffix
23450         char; that is xstrtoumax's job (now that its bug is fixed).
23451         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
23452         INTMAX_MAX]: New macros.
23453         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
23454         TYPE_MAXIMUM): New macros.
23455         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
23456         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
23457         if overflow occurs, as it's what __strtol does and it's more useful
23458         in practice.
23459         (__xstrtol): If __strtol reports some error other than ERANGE,
23460         reflect it to the caller as LONGINT_INVALID.  If it reports
23461         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
23462         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
23463         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
23464         value.
23465         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
23466         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
23467         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
23468         [defined UINTMAX_MAX]: New macros.
23469
23470 2003-10-14  Bruno Haible  <bruno@clisp.org>
23471
23472         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
23473
23474 2003-10-14  Bruno Haible  <bruno@clisp.org>
23475
23476         * m4/sig_atomic_t: New file, from GNU gettext.
23477         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
23478
23479 2003-10-14  Bruno Haible  <bruno@clisp.org>
23480
23481         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
23482         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
23483         Also use volatile where needed.
23484
23485 2003-10-12  Paul Eggert  <eggert@twinsun.com>
23486
23487         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
23488         Change maintainer from Bruno Haible to 'all'.
23489
23490 2003-10-12  Paul Eggert  <eggert@twinsun.com>
23491
23492         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
23493
23494 2003-10-12  Paul Eggert  <eggert@twinsun.com>
23495
23496         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
23497         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
23498         and define in terms of the other primitives.
23499         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
23500         (SIZE_MAX): Define if not already defined.
23501         (array_size_overflow): New function.
23502         (xalloc_die): Abort instead of exiting if 'error' returns.
23503         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
23504         (xmalloc, xrealloc): Use them.
23505         (xcalloc): Check for address arithmetic overflow.
23506         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
23507         a bit faster than strcpy.
23508
23509 2003-10-10  Simon Josefsson  <jas@extundo.com>
23510
23511         * modules/argp (Depends-on): Add restrict and strcase.
23512
23513 2003-10-10  Simon Josefsson  <jas@extundo.com>
23514
23515         * m4/argp.m4: Add AC_C_INLINE.
23516
23517 2003-10-08  Paul Eggert  <eggert@twinsun.com>
23518
23519         Merge getpass from libc, plus a few fixes.
23520
23521         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
23522         Include <stdbool.h>.
23523         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
23524         __fsetlocking to empty.
23525         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
23526         do include <bits/libc-lock.h>.
23527         Do not include <fcntl.h>; not needed.
23528         [_LIBC]: Include <wchar.h>.
23529         (NOTCANCEL_MODE): New macro.
23530         (flockfile, funlockfile) [_LIBC]: New macros.
23531         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
23532         [!_LIBC]: New macros.
23533         (call_fclose): New function.
23534         (getpass): Use it.  Save tty stream separately; this simplifies the
23535         code and makes it more reliable if stdin happens to equal stdout.
23536         Invoke __fsetlocking on tty.
23537         Handle thread cancellation if needed.
23538         Namespace cleanup (use __tcgetattr, __getline).
23539         Use bool for Booleans.
23540         [USE_IN_LIBIO]: Handle wide streams.
23541         [!_LIBC]: Unconditionally do the fseek, since we don't know what
23542         stream might go where.
23543
23544         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
23545         doesn't have to include <stdio.h> before us.
23546         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
23547         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
23548         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
23549         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
23550         if not declared, so that we can use getpass.c code from libc without
23551         rewriting it.
23552         (flockfile, ftrylockfile, funlockfile): New macros.
23553
23554 2003-10-08  Paul Eggert  <eggert@twinsun.com>
23555
23556         * modules/getpass: Depend on stdbool.
23557
23558 2003-10-08  Paul Eggert  <eggert@twinsun.com>
23559
23560         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
23561
23562 2003-10-07  Karl Berry  <karl@gnu.org>
23563
23564         * config/config.{guess,sub}: update from config.
23565
23566 2003-10-06  Jim Meyering  <jim@meyering.net>
23567             Bruno Haible  <bruno@clisp.org>
23568
23569         This lets translators provide better translations for the
23570         "Written by ..." part of --version output.
23571         * lib/version-etc.h: Include stdarg.h.
23572         (version_etc_copyright): Declare as readonly.
23573         (version_etc): Make this function variadic with a NULL-terminated list
23574         of author name strings.
23575         (version_etc_va): New declaration.
23576         * lib/version-etc.c: Include stdarg.h, stdlib.h.
23577         (version_etc_copyright): Declare as readonly.
23578         (version_etc_va): New function. Provide a different translatable string
23579         for each possible number of authors < 10. Abbreviate when there are 10
23580         authors or more.
23581         (version_etc): Make this function variadic. Call version_etc_va.
23582         Suggestion from Gary V. Vaughan.
23583
23584         * lib/long-options.h (parse_long_options): Change prototype: the
23585         authors string is moved to the end and becomes variadic.
23586         * lib/long-options.c: Include stdarg.h.
23587         (parse_long_options): Make this function variadic, too.
23588         Call version_etc_va, not version_etc.
23589
23590 2003-10-06  Bruno Haible  <bruno@clisp.org>
23591
23592         * modules/version-etc-2: Remove file.
23593         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
23594
23595 2003-10-06  Bruno Haible  <bruno@clisp.org>
23596
23597         * modules/fatal-signal: New file.
23598         * MODULES.html.sh (func_all_modules): Add fatal-signal.
23599
23600 2003-10-06  Bruno Haible  <bruno@clisp.org>
23601
23602         * m4/fatal-signal.m4: New file.
23603         * m4/signalblocking.m4: New file, from GNU gettext.
23604
23605 2003-10-06  Bruno Haible  <bruno@clisp.org>
23606
23607         * lib/version-etc-2.h: Remove file.
23608         * lib/version-etc-2.c: Remove file.
23609
23610 2003-10-06  Bruno Haible  <bruno@clisp.org>
23611
23612         * lib/fatal-signal.h: New file, from GNU gettext.
23613         * lib/fatal-signal.c: New file, from GNU gettext.
23614
23615 2003-10-05  Paul Eggert  <eggert@twinsun.com>
23616
23617         * README: Rework advice for preventing empty .o files.
23618         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
23619         not <sys/types.h>.
23620
23621 2003-10-04  Karl Berry  <karl@gnu.org>
23622
23623         * lib/argp*: update from libc.
23624
23625 2003-10-04  Karl Berry  <karl@gnu.org>
23626
23627         * config/config.{guess,sub}: update from config.
23628
23629 2003-10-02  Bruno Haible  <bruno@clisp.org>
23630
23631         * modules/lchown (Include): Add lchown.h.
23632         * modules/time_r (Include): Use "..." syntax.
23633         * modules/xgetdomainname (Include): Add xgetdomainname.h.
23634
23635 2003-10-01  Simon Josefsson  <jas@extundo.com>
23636
23637         * MODULES.html.sh (func_all_modules): Move gethostname from section
23638         'based on' to section 'lacking' POSIX:2001.
23639
23640 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
23641
23642         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
23643         to output mode on the same stream.
23644
23645 2003-09-29  Paul Eggert  <eggert@twinsun.com>
23646
23647         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
23648         Fix arg typo in previous patch.
23649
23650 2003-09-28  Jim Meyering  <jim@meyering.net>
23651
23652         * lib/error.c: Correct cpp indentation.
23653
23654 2003-09-27  Paul Eggert  <eggert@twinsun.com>
23655
23656         * modules/free: New file.
23657
23658 2003-09-27  Paul Eggert  <eggert@twinsun.com>
23659
23660         * m4/free.m4: New file.
23661
23662 2003-09-27  Paul Eggert  <eggert@twinsun.com>
23663
23664         * lib/minmax.h (MIN, MAX)
23665         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
23666         Omit the special code that used __typeof__, since we worry that
23667         it could be more trouble than it's worth.  See:
23668         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
23669         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
23670
23671         * lib/free.c: New file.
23672
23673 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
23674
23675         Trivial fixes to Makefile.am parts of module listings.
23676         * modules/strstr: Append strstr.h to lib_SOURCES.
23677         * modules/strcase: Likewise, for strcase.h.
23678
23679 2003-09-27  Karl Berry  <karl@gnu.org>
23680
23681         * config/mkinstalldirs: update from automake.
23682
23683 2003-09-26  Paul Eggert  <eggert@twinsun.com>
23684
23685         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
23686         (error_tail): Do not loop, reallocating temporary buffer, since
23687         the output cannot contain more wide characters than the input
23688         contains bytes, the size must be big enough already.  This avoids
23689         one potential size overflow calculation.  Check for size overflow
23690         when calculating temporary buffer size.  Free temporary buffer
23691         when done, if it was allocated with malloc; this plugs a memory
23692         leak.  Remove casts from void * to pointers, that are no longer
23693         needed now that we're assuming C89 or better.
23694
23695         Merge error changes from glibc.
23696
23697         * lib/error.c, error.h: Update copyright notice header to match glibc.
23698         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
23699         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
23700         Disable cancellation while printing error.
23701         * lib/error.h: Prepend __ to parameter names.
23702
23703 2003-09-26  Jim Meyering  <jim@meyering.net>
23704
23705         * lib/error.c (error_tail): Move some declarations
23706         into inner scope where the local variables are used.
23707
23708 2003-09-26  Bruno Haible  <bruno@clisp.org>
23709
23710         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
23711         stpncpy().
23712         Don't define stpncpy through config.h; it's now done through stpncpy.h.
23713
23714 2003-09-26  Bruno Haible  <bruno@clisp.org>
23715
23716         * lib/stpncpy.h (gnu_stpncpy): New declaration.
23717         (stpncpy): Define as alias for gnu_stpncpy.
23718         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
23719
23720 2003-09-25  Simon Josefsson  <jas@extundo.com>
23721
23722         * lib/xgetdomainname.h: New file.
23723         * lib/xgetdomainname.c: New file.
23724
23725 2003-09-25  Simon Josefsson  <jas@extundo.com>
23726             Bruno Haible  <bruno@clisp.org>
23727
23728         * modules/getdomainname: New file.
23729         * modules/xgetdomainname: New file.
23730         * MODULES.html.sh (func_all_modules): Add getdomainname,
23731         xgetdomainname.
23732
23733 2003-09-25  Simon Josefsson  <jas@extundo.com>
23734             Bruno Haible  <bruno@clisp.org>
23735
23736         * m4/getdomainname.m4: New file.
23737
23738 2003-09-25  Simon Josefsson  <jas@extundo.com>
23739             Bruno Haible  <bruno@clisp.org>
23740
23741         * lib/getdomainname.h: New file.
23742         * lib/getdomainname.c: New file.
23743
23744 2003-09-25  Karl Berry  <karl@gnu.org>
23745
23746         * lib/argp-fmtstream.c, argp-help.c: update from libc.
23747
23748 2003-09-25  Karl Berry  <karl@gnu.org>
23749
23750         * config/install-sh: update from automake.
23751
23752 2003-09-25  Bruno Haible  <bruno@clisp.org>
23753
23754         * modules/version-etc-2: New file, from modules/version-etc with
23755         modifications.
23756         * MODULES.html.sh (func_all_modules): Add version-etc-2.
23757
23758 2003-09-25  Bruno Haible  <bruno@clisp.org>
23759
23760         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
23761         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
23762
23763 2003-09-24  Simon Josefsson  <jas@extundo.com>
23764
23765         * modules/xgethostname: Add xgethostname.h.
23766
23767 2003-09-24  Paul Eggert  <eggert@twinsun.com>
23768
23769         * lib/linebuffer.c (freebuffer): Don't free the argument, just
23770         the buffer associated with the argument.  Bug reported by
23771         Simon Josefsson.
23772
23773 2003-09-24  Paul Eggert  <eggert@twinsun.com>
23774
23775         * README: Document assumptions that 'int' is at least 32 bits
23776         wide, that integer arithmetic is 2's complement without overflow,
23777         that there are no holes in integer values, that adding sizes of
23778         two nonoverlapping objects can't overflow, and that all-bits-zero
23779         yields scalar zero.  Fix spelling and capitalization typos.
23780
23781 2003-09-19  Karl Berry  <karl@gnu.org>
23782
23783         * lib/argp.h: update from libc.
23784
23785 2003-09-17  Paul Eggert  <eggert@twinsun.com>
23786
23787         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
23788         to avoid spurious warnings like "AC_RUN_IFELSE was called before
23789         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
23790
23791 2003-09-17  Paul Eggert  <eggert@twinsun.com>
23792
23793         * gnulib-tool: Use "test -h", not "test -L", for portability
23794         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
23795         (tags_regexp): Remove, since \| doesn't conform to POSIX.
23796         (sed_extract_prog): Issue s commands one-by-one, rather than
23797         using \| in one s command.
23798
23799 2003-09-16  Paul Eggert  <eggert@twinsun.com>
23800
23801         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
23802         input error, instead of returning NULL the next time we are called
23803         (and therefore losing track of errno).
23804
23805 2003-09-16  Bruno Haible  <bruno@clisp.org>
23806
23807         * gnulib-tool (func_create_testdir): Warn about duplicated
23808         dependencies.
23809
23810 2003-09-15  Paul Eggert  <eggert@twinsun.com>
23811
23812         * modules/argmatch, modules/fatal, modules/obstack,
23813         modules/xalloc, modules/xgethostname: Sort dependencies by
23814         importance, not alphabetically.
23815
23816 2003-09-15  Paul Eggert  <eggert@twinsun.com>
23817
23818         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
23819         fails, so that the caller gets the proper errno.
23820
23821         * lib/readutmp.c (read_utmp): Likewise.
23822         Check for fstat error.  Close stream and free storage
23823         when failing.
23824
23825 2003-09-14  Karl Berry  <karl@gnu.org>
23826
23827         * config/srclist.txt (strdup.c): disable for c89 changes.
23828
23829 2003-09-14  Jim Meyering  <jim@meyering.net>
23830
23831         * lib/getloadavg.c: Correct cpp indentation.
23832         * lib/strdup.c: Likewise.
23833         * lib/vasnprintf.c: Likewise.
23834
23835 2003-09-14  Bruno Haible  <bruno@clisp.org>
23836
23837         * modules/fwriteerror: New file.
23838         * MODULES.html.sh (func_all_modules): Add fwriteerror.
23839
23840 2003-09-14  Bruno Haible  <bruno@clisp.org>
23841
23842         * lib/fwriteerror.h: New file.
23843         * lib/fwriteerror.c: New file.
23844
23845 2003-09-12  Paul Eggert  <eggert@twinsun.com>
23846
23847         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
23848         modules/xgethostname, modules/xalloc: Depend on exit.
23849
23850 2003-09-12  Paul Eggert  <eggert@twinsun.com>
23851
23852         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
23853
23854         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
23855         and AC_MINIX, too, so that their extensions are available.
23856
23857         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
23858         This macro has been superseded by gl_BACKUPFILE.
23859
23860         More patches to assume C89 or better.
23861
23862         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
23863
23864         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
23865         unconditionally.
23866         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
23867         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
23868         Include <string.h>, <stdlib.h> unconditionally.
23869         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
23870         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
23871         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
23872         headers or for string.h.
23873         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
23874         or strtoul.
23875
23876         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
23877         headers.
23878         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
23879         * m4/userspec.m4 (gl_USERSPEC): Likewise.
23880         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
23881         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
23882         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
23883         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
23884         memcpy, memset.
23885         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
23886         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
23887         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
23888         strtol.
23889         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
23890         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
23891         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
23892         strtoul.
23893
23894 2003-09-12  Paul Eggert  <eggert@twinsun.com>
23895
23896         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
23897         * lib/obstack.c [!defined _LIBC]: Likewise.
23898         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
23899         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
23900         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
23901
23902         More changes to assume C89 or better.
23903
23904         * lib/error.c (error_tail): Assume vprintf.
23905
23906         * lib/argmatch.c (getenv): Remove decl.
23907         * lib/progreloc.c (get_full_program_name): Define via prototype.
23908         * lib/setenv.c (clearenv): Likewise.
23909         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
23910         needed.
23911         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
23912         (malloc, memcpy): Remove decls.
23913         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
23914         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
23915         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
23916         (memcpy): Remove macro.
23917         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
23918         (__P): Remove.  All uses removed.
23919         (PTR): Remove.  All uses changed to void *.
23920         (CHAR_BIT, NULL): Remove.
23921         (spaces, zeros, memset_space, memset_zero)
23922         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
23923         Remove.
23924         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
23925         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
23926         Define with prototype.
23927         Remove now-unnecessary prototype decl.
23928         (extra_args_spec): Assume ANSI C.  All uses changed.
23929         (extra_args_spec_iso): Remove.
23930         (my_strftime, emacs_strftimeu): Define via prototype.
23931         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
23932         unconditionally.
23933         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
23934         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
23935         (strtoul, strtol): Remove decls.
23936         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
23937         LONG_MAX): Remove.
23938         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
23939         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
23940         (LOCALE_PARAM_PROTO): New macro.
23941         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
23942         (INTERNAL (strtol), strtol): Define with a prototype.
23943         (PARAMS): Remove.  All uses removed.
23944         * lib/tempname.c: Include <string.h> unconditionally.
23945         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
23946         * lib/xgethostname.c (main): Define with a prototype.
23947         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
23948         Include <stdlib.h> unconditionally.
23949         (calloc, malloc, realloc, free): Remove decls.
23950         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
23951         Include <stdlib.h> unconditionally.  Sort include file names.
23952         (strtod): Remove.
23953         (xstrtod): Define with a prototype.
23954         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
23955         (strtol, strtoul): Remove decls.
23956
23957 2003-09-11  Paul Eggert  <eggert@twinsun.com>
23958
23959         More patches to assume C89 or better.
23960         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
23961         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
23962         string.h, memchr, STDC_HEADERS.
23963
23964 2003-09-11  Paul Eggert  <eggert@twinsun.com>
23965
23966         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
23967         Include <stdlib.h>, <string.h> unconditionally.
23968         Remove now-unnecessary cast to char *.
23969         * lib/strnlen.c: Include <string.h> unconditionally.
23970         * lib/yesno.c (yesno): Define with a prototype.
23971
23972 2003-09-11  Bruno Haible  <bruno@clisp.org>
23973
23974         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
23975
23976 2003-09-10  Jim Meyering  <jim@meyering.net>
23977
23978         * lib/error.c: Correct indentation of cpp directives.
23979
23980 2003-09-10  Bruno Haible  <bruno@clisp.org>
23981
23982         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
23983         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
23984         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
23985         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
23986         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
23987         <stdlib.h> and <string.h> checks.
23988         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
23989         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
23990
23991 2003-09-10  Bruno Haible  <bruno@clisp.org>
23992
23993         * lib/strcspn.c: Include <string.h> unconditionally.
23994         * lib/strpbrk.c: Include <string.h> unconditionally.
23995         * lib/strstr.c: Include <string.h> unconditionally.
23996         * lib/unicodeio.c: Include <string.h> unconditionally.
23997         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
23998         * lib/unsetenv.c: Likewise.
23999         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
24000         * lib/yesno.c: Include <stdlib.h> unconditionally.
24001         (rpmatch): Add prototype.
24002
24003 2003-09-09  Paul Eggert  <eggert@twinsun.com>
24004
24005         More patches to assume C89 or better.
24006         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
24007         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
24008         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
24009         or for string.h.
24010         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
24011         stdlib.h.
24012         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
24013         C headers.
24014         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
24015         string.h.
24016         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
24017         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
24018         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
24019         or for string.h.
24020         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
24021         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
24022         C headers.
24023         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
24024         memcpy.
24025         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
24026         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
24027         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
24028         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
24029         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
24030         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
24031         string.h, free.
24032         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
24033         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
24034         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
24035         C headers, or for string.h.
24036         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
24037         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
24038         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
24039         headers, memory.h, stdlib.h, string.h, strings.h.
24040         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
24041         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
24042         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
24043         strchr.
24044         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
24045         headers, memory.h, string.h.
24046         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
24047         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
24048         free.
24049         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
24050         headers.
24051         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
24052         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
24053         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
24054         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
24055         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
24056
24057 2003-09-09  Paul Eggert  <eggert@twinsun.com>
24058
24059         More K&R removal.
24060
24061         * lib/acosl.c (main): Use a prototype.
24062         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
24063         tanl.c: Likewise.
24064
24065         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
24066
24067         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
24068         (getopt, etopt_long, getopt_long_only, _getopt_internal)
24069         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
24070         with a prototype.
24071         * lib/getopt.c (const): Remove macro.
24072         Include <string.h> unconditionally.
24073         (my_index): Remove; all uses changed to strchr.
24074         (strlen): Remove decl.
24075         (exchange): Remove forward decl; no longer needed.
24076         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
24077         Define with prototype.
24078         * lib/getopt1.c (const): Remove macro.
24079         (getopt_long, getopt_long_only, main): Define with prototype.
24080
24081         * lib/getugroups.c: Include <string.h> unconditionally.
24082
24083         * lib/getusershell.c: Include <stdlib.h> unconditionally.
24084         (getusershell, setusershell, endusershell, readname, main):
24085         Define with prototypes.
24086
24087         * lib/group-member.c: Include group-member.h first.
24088         Include <stdlib.h> unconditionally.
24089
24090         * lib/hard-locale.c: Include hard-locale.h first.
24091         Include <stdlib.h>, <string.h> unconditionally.
24092
24093         * lib/hash.c (free, malloc): Remove decls.
24094         Include <stdlib.h> unconditionally.
24095
24096         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
24097         (getenv): Do not declare.
24098
24099         * lib/idcache.c: Include <string.h> unconditionally.
24100
24101         * lib/long-options.c: Include long-options.h first, to test interface.
24102         Include <stdlib.h> unconditionally.
24103
24104         * lib/makepath.c: Include makepath.h first, to test interface.
24105         Include <stdlib.h> and <string.h> unconditionally.
24106
24107         * lib/linebuffer.c: Include <stdlib.h>.
24108         (free): Remove decl.
24109
24110         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
24111         stddef.h. rpl_malloc returns void *, not char *.
24112         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
24113         prototype.
24114
24115         * lib/md5.h: Include <limits.h> unconditionally.
24116         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
24117         (__P): Remove; all uses removed.
24118         * lib/md5.c: Include "md5.h" first.
24119         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
24120         md5_buffer, md5_process_bytes, md5_process_block):
24121         Define with prototypes.
24122         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
24123         * lib/sha.c: Include "sha.h" first.
24124         Include <stdlib.h>, <string.h> unconditionally.
24125
24126         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
24127         * lib/memcmp.c (__ptr_t): Likewise.
24128         * lib/memrchr.c (__ptr_t): Likewise.
24129         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
24130         Include <string.h> unconditionally.
24131         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
24132         * lib/memchr.c: Include <stdlib.h> unconditionally.
24133         * lib/memchr.c (LONG_MAX): Remove.
24134         * lib/memrchr.c (LONG_MAX): Likewise.
24135         * lib/memchr.c (__memchr): Define via a prototype.
24136         * lib/memrchr.c (__memrchr): Likewise.
24137         * lib/memcmp.c (__P): Remove, and remove all uses.
24138         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
24139         Remove forward decls; no longer needed.
24140         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
24141         Use types required by C89 in prototype.
24142
24143         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
24144         * lib/savedir.c: Likewise.
24145         * lib/mkdir.c (free): Remove decl.
24146         * lib/rmdir.c (rmdir): Define with a prototype.
24147         * lib/savedir.c: Include savedir.h first, to test interface.
24148
24149         * lib/mktime.c (STDC_HEADERS): Remove.
24150         Include <stdlib.h>, <string.h> unconditionally.
24151
24152         * lib/modechange.c: Include <stdlib.h> unconditionally.
24153         (malloc): Remove decl.
24154
24155         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
24156         (free): Remove decl.
24157
24158         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
24159         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
24160         (This type really should be intptr_t, but that's a C99ism.)
24161         (_obstack_memcpy): Remove: all uses changed to memcpy.
24162         Include <string.h> unconditionally.
24163         (struct obstack): Assume __STDC__ for types of members
24164         chunkfun, freefun, extra_arg.
24165         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
24166         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
24167         obstack_begin, obstack_specify_allocation,
24168         obstack_specify_allocation_with_arg, obstack_chunkfun,
24169         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
24170         Remove unprototyped decls and the macros that use them.
24171         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
24172         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
24173         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
24174         (defined __STDC__ && __STDC__)]:
24175         Remove nonprototyped code.
24176         Include <stdlib.h> unconditionally.
24177         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
24178         _obstack_allocated_p, _obstack_free, obstack_free,
24179         _obstack_memory_used, print_and_abort):
24180         Define using prototypes.
24181         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
24182         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
24183         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
24184         obstack_next_free, obstack_object_size, obstack_room) [0]:
24185         Remove unused, unprototyped code.
24186
24187         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
24188
24189         * lib/physmem.c (physmem_total, physmem_available, main): Define
24190         with prototypes.
24191
24192         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
24193         (main): Define with a prototype.
24194
24195         * lib/posixver.c (getenv): Remove decl.
24196
24197         * lib/putenv.c (malloc): Returns void *, not char *.
24198         Include <string.h> unconditionally.
24199         (strchr, memcpy, NULL): Do not define.
24200
24201         * lib/readtokens.c: Include readtokens.h first, to test interface.
24202         Include <stdlib.h>, <string.h> unconditionally.
24203         (init_tokenbuffer): Define with a prototype.
24204
24205         * lib/regex.c (PARAMS): Remove.  All uses removed.
24206         All uses of _RE_ARGS removed, too.
24207         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
24208         unconditionally.
24209         (bzero): Assume memset exists.
24210         (memcmp, memcpy, NULL): Remove.
24211         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
24212         char, or assignments to local vars of type signed char.
24213         (init_syntax_once, PREFIX(extract_number_and_incr),
24214         PREFIX(print_partial_compiled_pattern),
24215         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
24216         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
24217         PREFIX(regex_grow_registers), PREFIX(regex_compile),
24218         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
24219         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
24220         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
24221         wcs_compile_range, byte_compile_range, truncate_wchar,
24222         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
24223         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
24224         count_mbs_length, wcs_re_match_2_internal,
24225         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
24226         PREFIX(alt_match_null_string_p),
24227         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
24228         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
24229         regfree, PREFIX(extract_number)): Define with prototype.  Remove
24230         now-unnecessary declaration, if any.
24231         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
24232         regcomp, regexec):
24233         Remove now-unnecessary casts among pointer types.
24234         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
24235
24236         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
24237         (free): Remove decl.
24238
24239         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
24240
24241         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
24242         (free): Remove decl.
24243
24244         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
24245         * lib/xgetcwd.c: Likewise.
24246
24247         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
24248         (free): Remove decl.
24249
24250         * lib/strchrnul.c (strchrnul): Define with a prototype.
24251         Fix bug: c_in was not converted to char before searching.
24252
24253         The following changes are not K&R related:
24254
24255         * lib/group-member.h: Include <sys/types.h>, so that this file is
24256         self-contained.
24257         * lib/makepath.h: Likewise.
24258
24259         * lib/getusershell.c (readname, default_index, line_size, readname):
24260         Use size_t, not int, for sizes.
24261         (readname): If the size overflows, report an error instead of
24262         looping forever.
24263
24264 2003-09-09  Paul Eggert  <eggert@twinsun.com>
24265
24266         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
24267         libc.
24268
24269 2003-09-09  Paul Eggert  <eggert@twinsun.com>
24270
24271         * README: New section: portability guidelines.
24272
24273 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
24274
24275         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
24276         C89 spec.
24277
24278 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
24279
24280         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
24281
24282 2003-09-08  Paul Eggert  <eggert@twinsun.com>
24283
24284         Assume C89 or better; remove K&R cruft.
24285         A few of these changes were first proposed by Derek Robert Price
24286         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
24287
24288         * lib/addext.c: Include <string.h> unconditionally.
24289         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
24290         Don't declare getenv or malloc.
24291
24292         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
24293         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
24294         (NULL): Remove.
24295         (find_stack_direction, alloca): Use prototypes.
24296
24297         * lib/atexit.c (atexit): Define using a prototype.
24298
24299         * lib/basename.c, dirname.c, stripslash.c:
24300         Include <string.h> unconditionally.
24301
24302         * lib/bcopy.c: Include <stddef.h>.
24303         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
24304
24305         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
24306
24307         * lib/error.h (error, error_at_line, error_print_progname)
24308         [! (defined (__STDC__) && __STDC__)]: Remove decls.
24309         * lib/error.c: Include error.h first, to check interface.
24310         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
24311         (VA_START): Remove; all uses changeed to va_start.
24312         (exit, strerror): Remove decls.
24313         (error_print_progname): Prototype uncondionally.
24314         Don't include <errno.h>; no longer needed.
24315         (private_strerror): Remove.
24316         (error_tail): Always define.
24317         (error, error_at_line): Assume C89 or better; always use prototypes.
24318         * lib/fatal.c: Include "fatal.h" first, to test interface.
24319         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
24320         (VA_START): Remove; all uses changed to va_start.
24321         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
24322         this case.
24323         (exit): Remove decl.
24324         (fatal): Prototype unconditionally.  Assume va_start works.
24325         Abort at end, to pacify gcc.
24326
24327         * lib/euidaccess.c (main): Define with a prototype.
24328
24329         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
24330
24331         * lib/exitfail.c: Include <stdlib.h> unconditionally.
24332
24333         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
24334         prototypes.
24335         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
24336         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
24337         (getenv): Remove decl.
24338         (fnmatch): Define using a prototype.
24339         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
24340         (FCT): Define using a prototype.
24341
24342         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
24343
24344         * lib/gethostname.c: Include <stddef.h>.
24345         (gethostname): Define with prototype.  Length is size_t, not int.
24346
24347 2003-09-08  Paul Eggert  <eggert@twinsun.com>
24348
24349         Assume C89 or better; remove K&R cruft.
24350         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
24351         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
24352         string.h, getenv, malloc.
24353         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
24354         headers.
24355         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
24356         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
24357         do not check for strerror.
24358         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
24359         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
24360         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
24361         do not check for doprnt or vprintf.
24362         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
24363         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
24364
24365 2003-09-08  Paul Eggert  <eggert@twinsun.com>
24366
24367         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
24368         getversion.c should have been removed then, but was accidentally
24369         preserved.
24370
24371         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
24372         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
24373
24374 2003-09-08  Karl Berry  <karl@gnu.org>
24375
24376         * config/config.sub, config.guess, srclistvars.sh: update from savannah
24377                 config, forget about prep.
24378
24379         * config/depcomp, missing: update from automake.
24380
24381 2003-09-07  Paul Eggert  <eggert@twinsun.com>
24382
24383         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
24384         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
24385
24386 2003-09-07  Paul Eggert  <eggert@twinsun.com>
24387
24388         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
24389         copy_tm_result.  Bug reported by Simon Josefsson in
24390         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
24391
24392 2003-09-06  Paul Eggert  <eggert@twinsun.com>
24393
24394         * m4/time_r.m4: New file.
24395         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
24396         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
24397         is. Check for timegm declaration.
24398         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
24399         Do not check for gmtime_r.
24400         Replace mktime if __mktime_internal does not exist and if mktime
24401         hasn't been replaced already.
24402
24403 2003-09-06  Paul Eggert  <eggert@twinsun.com>
24404
24405         * lib/time_r.c, lib/time_r.h: New files.
24406
24407         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
24408         __localtime_r.
24409         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
24410         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
24411
24412         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
24413         __gmtime_r.
24414         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
24415         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
24416         Include <time_r.h>.
24417
24418         * lib/timegm.c: Switch to glibc implementation, with the following
24419         changes:
24420         [defined HAVE_CONFIG_H]: Include <config.h>.
24421         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
24422         (__mktime_internal) [!defined _LIBC]: New decl.
24423         (__gmtime_r) [!defined _LIBC]: New macro and function.
24424         (timegm): Use a prototype, since gnulib assumes C89.
24425         Do not bother declaring tmp to be const, as it's not really usefu.
24426         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
24427         (timegm): Declare only if HAVE_DECL_TIMEGM.
24428
24429 2003-09-06  Paul Eggert  <eggert@twinsun.com>
24430
24431         * MODULES.html.sh (func_all_modules): Add time_r.
24432         * modules/time_r: New file.
24433         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
24434         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
24435
24436 2003-09-03  Paul Eggert  <eggert@twinsun.com>
24437
24438         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
24439         Bug reported by Lute Kamstra in
24440         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
24441
24442         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
24443         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
24444         course with correspondingly smaller numbers for tomorrow and
24445         yesterday.  From Tadayoshi Funaba.  Originally installed into
24446         sh-utils on 1999-08-07, but the patch got lost (I guess during the
24447         coreutils merge?).
24448
24449 2003-08-31  Simon Josefsson  <jas@extundo.com>
24450
24451         * modules/timegm: New file.
24452         * MODULES.html.sh (func_all_modules): Add timegm.
24453
24454 2003-08-31  Simon Josefsson  <jas@extundo.com>
24455
24456         * m4/timegm.m4: New file.
24457
24458 2003-08-31  Simon Josefsson  <jas@extundo.com>
24459
24460         * lib/timegm.h: New file.
24461         * lib/timegm.c: New file.  Based on
24462         wget-1.8.2/src/http.c:mktime_from_utc.
24463
24464 2003-08-31  Karl Berry  <karl@gnu.org>
24465
24466         * lib/argp.h: update from libc.
24467
24468 2003-08-28  Bruno Haible  <bruno@clisp.org>
24469
24470         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
24471         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
24472         followed by '#define fnmatch fnmatch_posix' gives an error.
24473
24474 2003-08-28  Bruno Haible  <bruno@clisp.org>
24475
24476         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
24477         warning on QNX, which defines O_BINARY to 000000.
24478
24479 2003-08-27  Jim Meyering  <jim@meyering.net>
24480
24481         * m4/mkstemp.m4: Require that the system mkstemp be able to create
24482         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
24483         would fail after 32.  Reported by Danny Levinson.  Details here:
24484         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
24485
24486 2003-08-24  Bruno Haible  <bruno@clisp.org>
24487
24488         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
24489         MSVC7 <stdio.h> is included later.
24490
24491 2003-08-22  Simon Josefsson  <jas@extundo.com>
24492
24493         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
24494
24495 2003-08-20  Karl Berry  <karl@gnu.org>
24496
24497         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
24498
24499 2003-08-20  Bruno Haible  <bruno@clisp.org>
24500
24501         * modules/progname: New file.
24502         * MODULES.html.sh (func_all_modules): Add progname.
24503
24504 2003-08-20  Bruno Haible  <bruno@clisp.org>
24505
24506         * lib/progname.h: New file, from GNU gettext.
24507         * lib/progname.c: New file, from GNU gettext.
24508         * lib/progreloc.c: New file, from GNU gettext.
24509
24510 2003-08-19  Jim Meyering  <jim@meyering.net>
24511
24512         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
24513         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
24514
24515 2003-08-19  Bruno Haible  <bruno@clisp.org>
24516
24517         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
24518         more.
24519
24520 2003-08-19  Bruno Haible  <bruno@clisp.org>
24521
24522         * lib/xstrdup.c: Assume <string.h> exists.
24523
24524 2003-08-18  Paul Eggert  <eggert@twinsun.com>
24525
24526         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
24527         in makefile rules.
24528
24529 2003-08-18  Jim Meyering  <jim@meyering.net>
24530
24531         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
24532         * m4/lib-ld.m4: Likewise.
24533
24534 2003-08-18  Jim Meyering  <jim@meyering.net>
24535
24536         * lib/setenv.h: Indent nested cpp directive.
24537         * lib/vasnprintf.c: Remove trailing blanks.
24538
24539 2003-08-17  Simon Josefsson  <jas@extundo.com>
24540
24541         * modules/xstrndup: New file.
24542         * MODULES.html.sh (func_all_modules): Add xstrndup.
24543
24544 2003-08-17  Simon Josefsson  <jas@extundo.com>
24545
24546         * modules/argp: Fix autoconf macro name. Add more dependencies.
24547
24548 2003-08-17  Simon Josefsson  <jas@extundo.com>
24549
24550         * m4/xstrndup.m4: New file.
24551
24552 2003-08-17  Simon Josefsson  <jas@extundo.com>
24553
24554         * m4/argp.m4: New file.
24555
24556 2003-08-17  Simon Josefsson  <jas@extundo.com>
24557             Bruno Haible  <bruno@clisp.org>
24558
24559         * lib/xstrndup.h: New file.
24560         * lib/xstrndup.c: New file.
24561
24562 2003-08-17  Bruno Haible  <bruno@clisp.org>
24563
24564         * modules/strndup (Files, Include): Add lib/strndup.h.
24565
24566 2003-08-17  Bruno Haible  <bruno@clisp.org>
24567
24568         * modules/euidaccess (Files): Add lib/euidaccess.h.
24569
24570 2003-08-17  Bruno Haible  <bruno@clisp.org>
24571
24572         * lib/strndup.h: New file.
24573
24574 2003-08-17  Bruno Haible  <bruno@clisp.org>
24575
24576         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
24577         like AC_GNU_SOURCE.
24578         * modules/extensions (configure.ac): Comment out the invocation of
24579         gl_USE_SYSTEM_EXTENSIONS.
24580
24581 2003-08-16  Paul Eggert  <eggert@twinsun.com>
24582
24583         Merges from coreutils, etc.
24584         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
24585         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
24586         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
24587         fixing a typo.
24588         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
24589         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
24590
24591 2003-08-16  Paul Eggert  <eggert@twinsun.com>
24592
24593         Document merge from coreutils.
24594         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
24595         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
24596         * modules/utime: Add m4/utimes-null.m4.
24597
24598 2003-08-16  Paul Eggert  <eggert@twinsun.com>
24599
24600         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
24601         space, undoing this 2003-08-12 change:
24602         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
24603
24604 2003-08-16  Paul Eggert  <eggert@twinsun.com>
24605
24606         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
24607         strtoul.c from libc, undoing this 2003-08-12 change:
24608         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
24609
24610 2003-08-16  Jim Meyering  <jim@meyering.net>
24611
24612         Merges from coreutils.
24613         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
24614         prefix.  Adjust cache variables similarly.  Create 500 rather than
24615         just 300 files, to exercise bug on Darwin6.5, too.
24616         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
24617         $missing_dir.
24618         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
24619         AM_SYS_POSIX_TERMIOS.
24620         Reported by mkc@mathdogs.com.
24621         Also change use of $am_cv_sys_posix_termios
24622         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
24623         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
24624         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
24625         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
24626         in /proc/mounts until it finds one with matching device number.  This
24627         is unnecessary when the FILE argument *is* a mount point.  No stat call
24628         is necessary in that case.  So, disable the statvfs-testing code on
24629         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
24630         as RedHat bug# 84846.
24631         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
24632         to 1MB, so as not to render systems with no stack size limit (e.g.,
24633         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
24634         Include <unistd.h>.  On some systems,
24635         it is required for the definition of _SC_PAGESIZE.
24636
24637 2003-08-16  Jim Meyering  <jim@meyering.net>
24638
24639         Merge from coreutils.
24640         * lib/xstrtoimax.c: #else #if -> #elif.
24641         * lib/xstrtoumax.c: Likewise.
24642
24643 2003-08-16  Jim Meyering  <jim@meyering.net>
24644
24645         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
24646         * m4/utimes.m4: Removed.
24647         * m4/utimes-null.m4: Renamed from utimes.m4.
24648
24649         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
24650         to 1MB, so as not to render systems with no stack size limit (e.g.,
24651         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
24652         Include <unistd.h>.  On some systems,
24653         it is required for the definition of _SC_PAGESIZE.
24654
24655 2003-08-16  Jim Meyering  <jim@meyering.net>
24656         and Paul Eggert  <eggert@cs.ucla.edu>
24657
24658         Merges from coreutils, etc.
24659
24660         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
24661         using the latest version from cvs.  This avoids problems with #line
24662         directives using a vendor (Sun) compiler.
24663         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
24664         Don't set GETGROUPS_LIB here; now it's
24665         done via getgroups.m4's wrapper function.
24666         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
24667         rather than just in sh-util/configure.in, so that the
24668         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
24669         same.
24670         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
24671         AC_FUNC_GETLOADAVG where to find getloadavg.c.
24672         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
24673         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
24674         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
24675         Remove code that is now done by the newly-required macros.
24676         Append $(EXEEXT) to DF_PROG.
24677         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
24678         Do not invoke or require the following here,
24679         since prereq.m4 or some gnulib .m4 now does this for us:
24680         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
24681         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
24682         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
24683         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
24684         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
24685         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
24686         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
24687         AC_FUNC_OBSTACK.
24688         Do not replace the following functions, as this is now the job
24689         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
24690         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
24691         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
24692         atexit getpass, strdup, getpagesize.
24693         Replace 'raise'.
24694         Do not check for the following functions, as this is now the job
24695         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
24696         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
24697         setregid.
24698         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
24699         Check for sys/sysctl.h.
24700         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
24701         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
24702         of checking for ssize_t ourselves.
24703
24704         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
24705         Require every macro that gnulib/modules/* suggests for us.
24706         (jm_PREREQ_ADDEXT): New macro.
24707         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
24708         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
24709
24710         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
24711         (gl_PHYSMEM): Use it.
24712         Also check for `table' function.
24713         Check for new headers and functions.
24714         Add check for sys/sysmp.h.
24715         With suggestions from Kaveh Ghazi.
24716         Ignore headers that are present but cannot be compiled.  This
24717         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
24718         C 5.4.
24719
24720 2003-08-15  Paul Eggert  <eggert@twinsun.com>
24721
24722         Document merge from coreutils.
24723         * modules/userspec: Depend on posixver.
24724         * modules/strftime: Depend on tzset.
24725
24726 2003-08-15  Paul Eggert  <eggert@twinsun.com>
24727
24728         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
24729         rather than tab, after '#' in shell-script copyright notices.
24730         Suggested by Bruno Haible.
24731
24732 2003-08-15  Paul Eggert  <eggert@twinsun.com>
24733
24734         * config/srclist-update: Use three spaces, rather than tab, after '#'
24735         in shell-script copyright notices.  Suggested by Bruno Haible.
24736         Remove unnecessary parenthesization in regular expression.
24737
24738 2003-08-15  Jim Meyering  <jim@meyering.net>
24739
24740         Merge from coreutils.
24741         * lib/xgethostname.c: Include <stdlib.h>.
24742         (xghostname): Don't exit for anything other than memory-related
24743         failure; just return NULL.
24744         * lib/userspec.c: Include "posixver.h".
24745         (parse_user_spec): Accept `.' as a separator only
24746         in pre-POSIX-200112 mode.
24747         * lib/strtoimax.c: Use #elif rather than #else #if.
24748         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
24749         Remove function, now that we can rely on a working tzset function.
24750         [!_LIBC]: Ensure that the required autoconf test has been run.
24751         [!defined _NL_CURRENT && HAVE_STRFTIME]:
24752         Use underlying_strftime for %r.
24753         * lib/sha.c: Merge in some clean-up and optimization changes from
24754         glibc.
24755         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
24756         Ensure that it is a multiple of 64.
24757         Rearrange loop exit tests so as to avoid performing an
24758         additional fread after encountering an error or EOF.
24759         * lib/realloc.c: Update copyright date.
24760
24761 2003-08-15  Jim Meyering  <jim@meyering.net>
24762         and Paul Eggert  <eggert@twinsun.com>
24763
24764         Merge from coreutils.
24765         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
24766         member but strut utmpx does not.  Needed for AIX 4.3.3.
24767         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
24768
24769 2003-08-15  Jim Meyering  <jim@meyering.net>
24770         and Paul Eggert  <eggert@cs.ucla.edu>
24771
24772         Merges from coreutils, etc.
24773         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
24774         Require gl_FUNC_TZSET_CLOBBER.
24775         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
24776         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
24777         members.
24778
24779 2003-08-14  Paul Eggert  <eggert@twinsun.com>
24780
24781         Help the merge from coreutils.
24782         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
24783         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
24784         * m4/tzset.m4: Use it too.
24785
24786 2003-08-14  Paul Eggert  <eggert@twinsun.com>
24787
24788         * modules/tzset: New file.
24789
24790 2003-08-14  Jim Meyering  <jim@meyering.net>
24791
24792         Merges from coreutils.
24793         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
24794         variable names, rather than @FNMATCH_H@.
24795         * modules/alloca: Likewise for $(ALLOCA_H).
24796
24797         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
24798         the three copies of the literal target, `fnmatch.h'.
24799         * modules/alloca (alloca.h): Likewise.
24800
24801 2003-08-14  Jim Meyering  <jim@meyering.net>
24802
24803         Merge from coreutils.
24804         * m4/tzset.m4: New file.
24805         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
24806         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
24807         otherwise, AIX 5.1 systems would end up using the latter.
24808         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
24809         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
24810         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
24811         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
24812
24813 2003-08-14  Jim Meyering  <jim@meyering.net>
24814
24815         Merge from coreutils.
24816         * lib/obstack.h: Whitespace changes.
24817         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
24818         and xcalloc return values.
24819         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
24820         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
24821         hang on OSF/1 5.1 for DIR on both local and remote file systems.
24822         Reported by (and fix confirmed by) Nelson H. F. Beebe.
24823         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
24824         error from mntctl.
24825         Use mntctl's return value to drive the entry-processing loop, since
24826         we can't rely on the value of the vmt_length member in the last
24827         entry.  On some systems doing so could result in exhausting
24828         virtual memory.  Based in part on a patch from Mike Jetzer.
24829
24830 2003-08-14  Jim Meyering  <jim@meyering.net>
24831         and Paul Eggert  <eggert@twinsun.com>
24832
24833         Merges from coreutils, plus other fixes.
24834         * lib/physmem.c: Merge in portability changes from gcc/libiberty
24835         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
24836         for credits and details.  Thanks to Kaveh Ghazi for helping
24837         to keep these files in sync.
24838         (ARRAY_SIZE): Define it.
24839         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
24840         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
24841         (memcasecmp): Don't assume size_t fits in unsigned int.
24842         Remove casts and duplicate code.
24843         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
24844         (memcpy): Remove definition.
24845         Merge in some clean-up and optimization changes from glibc.
24846         [BLOCKSIZE]: Move definition to top of file.
24847         Ensure that it is a multiple of 64.
24848         Rearrange loop exit tests so as to avoid performing an
24849         additional fread after encountering an error or EOF.
24850         * lib/md5.h (md5_uintptr): Define.
24851         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
24852         return to the initial working directory.  Preserve errno
24853         for caller.
24854         * lib/idcache.c: Include "xalloc.h".
24855         (xmalloc, xrealloc): Remove decls.
24856         (getuser): Remove casts no longer required in C89.
24857         * lib/human.c: Include stdio.h, for sprintf.
24858         * lib/group-member.c: Include "xalloc.h".
24859         (xmalloc, xrealloc): Remove decls.
24860         (get_group_info): Remove casts no longer required in C89.
24861         * lib/getusershell.c (readname): Remove casts no longer required in
24862         C89.
24863         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
24864         * lib/getline.c: Whitespace fix, from coreutils.
24865
24866 2003-08-13  Paul Eggert  <eggert@twinsun.com>
24867
24868         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
24869         Check for isascii.
24870
24871         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
24872         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
24873         Undo previous (whitespace-only) change.
24874
24875 2003-08-13  Paul Eggert  <eggert@twinsun.com>
24876
24877         * lib/exclude.c: Include <ctype.h>
24878         (IN_CTYPE_DOMAIN): New macro.
24879         (is_space): New fn.
24880         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
24881         and empty lines.
24882
24883         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
24884         Undo previous (whitespace-only) change.
24885
24886 2003-08-13  Paul Eggert  <eggert@twinsun.com>
24887
24888         * config/srclist-update: Change update back to the old behavior,
24889         leaving whitespace alone.  Use one 'sed' command rather than a
24890         pipeline.
24891         (fixlicense): Now a variable, not a function.
24892         (remove_trailing_blanks): Remove.
24893         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
24894         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
24895         Undo previous (whitespace-only) change.
24896
24897 2003-08-12  Paul Eggert  <eggert@twinsun.com>
24898
24899         Merge from coreutils.
24900         * modules/euidaccess: Add lib_SOURCES, include for new
24901         file euidaccess.h
24902
24903 2003-08-12  Paul Eggert  <eggert@twinsun.com>
24904
24905         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
24906         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
24907         Normalize leading white space and remove trailing white space.
24908
24909         Merge from coreutils
24910         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
24911
24912         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
24913         0.12.1.  These files are now being upgraded automatically by
24914         ../config/srclist-update.
24915
24916 2003-08-12  Paul Eggert  <eggert@twinsun.com>
24917
24918         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
24919         Normalize leading white space and remove trailing white space.
24920         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
24921         notice, as per ../config/srclist-update.
24922
24923         Merge from coreutils.
24924         * lib/euidaccess.h: New file.
24925         * lib/euidaccess.c: Include it.
24926         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
24927         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
24928         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
24929
24930 2003-08-12  Paul Eggert  <eggert@twinsun.com>
24931
24932         * config/srclist-update: Add copyright notice.
24933         (remove_id_lines, remove_trailing_blanks): New constants.
24934         (fixfile): Use them to normalize spacing a bit in copied files.
24935         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
24936         Normalize leading white space and remove trailing white space.
24937
24938         * config/texinfo.tex: Sync with texinfo.
24939
24940         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
24941         strtoul.c from libc, to merge coreutils whitespace changes.
24942
24943         * config/srclist.txt: Get the following m4 files from gettext:
24944         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
24945         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
24946         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
24947         wint_t.m4.
24948
24949 2003-08-12  Karl Berry  <karl@gnu.org>
24950
24951         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
24952         been made.
24953
24954 2003-08-11  Paul Eggert  <eggert@twinsun.com>
24955
24956         * modules/gnu-source, m4/gnu-source.m4:
24957         Remove; we're assuming Autoconf 2.54 or later now.
24958         Suggested by Bruno Haible.
24959         * MODULES.html.sh (func_all_modules): Remove gnu-source.
24960
24961 2003-08-11  Bruno Haible  <bruno@clisp.org>
24962
24963         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
24964
24965 2003-08-11  Bruno Haible  <bruno@clisp.org>
24966
24967         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
24968         (vasnprintf): Use it instead of wcslen.
24969
24970 2003-08-11  Bruno Haible  <bruno@clisp.org>
24971
24972         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
24973         value to ensure that _Bool promotes to int. Use #define for _Bool when
24974         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
24975
24976 2003-08-10  Karl Berry  <karl@gnu.org>
24977
24978         * lib/regex.h: update from libc (whitespace fix).
24979
24980 2003-08-09  Paul Eggert  <eggert@twinsun.com>
24981
24982         Merge some files from coreutils.  These changes were
24983         originally made by Jim Meyering.
24984         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
24985         many older Unixes require this.
24986         * lib/alloca.c (alloca): Remove cast to argument of free;
24987         no longer needed in C89.
24988         * lib/alloca_.h, regex.h: Fix white space to match
24989         what GNU indent does.
24990
24991 2003-08-09  Paul Eggert  <eggert@twinsun.com>
24992
24993         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
24994         apparently Emacs's Unicode mode got confused before my 2003-08-05
24995         checkin.
24996
24997 2003-08-08  Paul Eggert  <eggert@twinsun.com>
24998
24999         * m4/extensions.m4: New file.
25000         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
25001         Require gl_USE_SYSTEM_EXTENSIONS.
25002         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
25003         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
25004
25005 2003-08-08  Paul Eggert  <eggert@twinsun.com>
25006
25007         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
25008         * modules/extensions, modules/gnu-source: New files.
25009         * modules/timespec, modules/unlocked-io: Depend on extensions.
25010
25011 2003-08-07  Paul Eggert  <eggert@twinsun.com>
25012
25013         * modules/restrict: New file.
25014         * MODULES.html.sh (func_all_modules): Add restrict.
25015         * modules/regex: Depend on restrict.
25016
25017 2003-08-07  Paul Eggert  <eggert@twinsun.com>
25018
25019         * m4/restrict.m4: New file.
25020         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
25021
25022 2003-08-07  Bruno Haible  <bruno@clisp.org>
25023
25024         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
25025         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
25026
25027 2003-08-07  Bruno Haible  <bruno@clisp.org>
25028
25029         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
25030         makes the module 'getndelim2' compatible with the module 'getline'.
25031
25032 2003-08-05  Paul Eggert  <eggert@twinsun.com>
25033
25034         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
25035         byte with "\201" to avoid glitches when editing that source file
25036         with multi-gnome-terminal.
25037
25038 2003-08-05  Paul Eggert  <eggert@twinsun.com>
25039
25040         * lib/bumpalloc.h: Remove.
25041
25042 2003-08-05  Paul Eggert  <eggert@twinsun.com>
25043
25044         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
25045         * modules/bumpalloc: Remove.
25046
25047 2003-08-04  Paul Eggert  <eggert@twinsun.com>
25048
25049         * lib/getloadavg.c: Change copyright notice and spacing to conform to
25050         GNU coding style.
25051
25052         Merge from coreutils.
25053         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
25054         1. From glibc.
25055         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
25056         from Karl Berry, implemented by Jim Meyering.
25057         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
25058         from Dmitry V. Levin.
25059         Remove anachronistic cast of xrealloc.
25060         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
25061         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
25062         type. Otherwise, it wouldn't compile with at least /bin/cc on
25063         ymp-cray-unicos9.0.2.X.
25064         Combine two mostly-identical uses of alloca into one.
25065         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
25066
25067 2003-08-04  Dave Love  <d.love@dl.ac.uk>
25068
25069         [From Emacs.]
25070
25071         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
25072         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
25073         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
25074         obsolete NLIST_NAME_UNION.
25075         [__GNU__]: Undef BSD and FSCALE.
25076         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
25077
25078 2003-08-03  Paul Eggert  <eggert@twinsun.com>
25079
25080         * lib/stdbool_.h (_Bool): Make it signed char, instead of
25081         an enum type, so that it's guaranteed to promote to int.  See:
25082         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
25083
25084 2003-08-03  Karl Berry  <karl@gnu.org>
25085
25086         * config/depcomp: update from automake.
25087
25088 2003-07-31  Paul Eggert  <eggert@twinsun.com>
25089
25090         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
25091         (strerror): Don't assume that a printable int fits in 14 bytes.
25092
25093 2003-07-31  Bruno Haible  <bruno@clisp.org>
25094
25095         * modules/getpass-gnu: New file.
25096         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
25097
25098 2003-07-31  Bruno Haible  <bruno@clisp.org>
25099
25100         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
25101
25102 2003-07-24  Karl Berry  <karl@gnu.org>
25103
25104         * config/missing: update from automake.
25105
25106 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
25107             Bruno Haible  <bruno@clisp.org>
25108
25109         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
25110         * lib/getline.c (getline, getdelim): Likewise.
25111         Remove _GNU_SOURCE define; now it's defined in config.h through
25112         m4/getline.m4.
25113
25114 2003-07-23  Karl Berry  <karl@gnu.org>
25115
25116         * config/config.sub: update from prep.
25117
25118 2003-07-22  Paul Eggert  <eggert@twinsun.com>
25119
25120         * modules/xalloc (Depends-on): Add exitfail.
25121         * modules/xmemcoll: Likewise.
25122
25123 2003-07-22  Paul Eggert  <eggert@twinsun.com>
25124
25125         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
25126         over-parenthesization in macros.
25127
25128         Sync with coreutils.
25129
25130         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
25131         required by C99.
25132
25133         Use `exit_failure' for xalloc and xmemcoll instead of their own
25134         private exit-failure variables.
25135         * lib/xalloc.h (xalloc_exit_failure): Remove.
25136         * lib/xmalloc.c: Likewise.  Include exitfail.h.
25137         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
25138         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
25139         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
25140         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
25141
25142 2003-07-20  Jim Meyering  <jim@meyering.net>
25143
25144         * modules/closeout (Depends-on): Add exitfail.
25145         Suggestion from Bruno Haible.
25146
25147 2003-07-19  Karl Berry  <karl@gnu.org>
25148
25149         * config/config.sub: update from prep.
25150
25151 2003-07-18  Paul Eggert  <eggert@twinsun.com>
25152
25153         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
25154         Remove.
25155         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
25156         to test that it can stand by itself.  Include "exitfail.h".
25157         Clients should set exit_failure instead.
25158         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
25159
25160 2003-07-18  Bruno Haible  <bruno@clisp.org>
25161
25162         * modules/getndelim2: New file.
25163         * modules/getline: Share files with module getndelim2.
25164         * modules/getnline: Depend on getndelim2 instead of sharing files with
25165         it. Add getnline.c to lib_SOURCES.
25166         * MODULES.html.sh (func_all_modules): Add getndelim2.
25167
25168 2003-07-18  Bruno Haible  <bruno@clisp.org>
25169
25170         * m4/getndelim2.m4: New file.
25171         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
25172         invoke gl_PREREQ_GETNDELIM2.
25173         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
25174         gl_PREREQ_GETNDELIM2.
25175         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
25176         gl_GETNDELIM2.
25177
25178 2003-07-18  Bruno Haible  <bruno@clisp.org>
25179
25180         * lib/getndelim2.h: New file.
25181         * lib/getndelim2.c: Make into a module of its own. Include config.h,
25182         getndelim2.h.
25183         (getndelim2): Make non-static. Change return type to ssize_t.
25184         * lib/getline.h: Change argument names.
25185         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
25186         * lib/getnline.c: Include getndelim2.h.
25187
25188 2003-07-18  Andreas Schwab  <schwab@suse.de>
25189
25190         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
25191
25192 2003-07-17  Karl Berry  <karl@gnu.org>
25193
25194         * config/config.sub: update from prep.
25195
25196 2003-07-17  Bruno Haible  <bruno@clisp.org>
25197
25198         * modules/getnline: New file.
25199         * modules/getline: Add lib/getndelim2.c to source file list.
25200         * MODULES.html.sh (func_all_modules): Add getnline.
25201
25202 2003-07-17  Bruno Haible  <bruno@clisp.org>
25203
25204         * m4/getnline.m4: New file.
25205
25206 2003-07-17  Bruno Haible  <bruno@clisp.org>
25207
25208         * m4/Makefile.am.in: Remove file.
25209         * m4/Makefile.am: Remove file.
25210         * m4/Makefile.in: Remove file.
25211
25212 2003-07-17  Bruno Haible  <bruno@clisp.org>
25213
25214         * lib/getnline.h: New file.
25215         * lib/getnline.c: New file.
25216         * lib/getndelim2.c: New file, extracted from getline.c.
25217         (getndelim2): Renamed from getdelim2, with added nmax argument.
25218         * lib/getline.c: Include getndelim2.c.
25219         (getdelim2): Moved out to getndelim2.c.
25220         (getline, getdelim): Update.
25221
25222 2003-07-17  Bruno Haible  <bruno@clisp.org>
25223
25224         * lib/Makefile.am: Remove file.
25225         * lib/Makefile.in: Remove file.
25226
25227 2003-07-17  Bruno Haible  <bruno@clisp.org>
25228
25229         * configure.in: Remove file.
25230         * Makefile.in: Remove file.
25231
25232 2003-07-17  Bruno Haible  <bruno@clisp.org>
25233
25234         * MODULES.html.sh: Put the </BODY> right before </HTML>.
25235
25236 2003-07-16  Karl Berry  <karl@gnu.org>
25237
25238         * config/srclist-update: was running fixlicense twice, which caused
25239                 texinfo.tex to be nullified for some reason.  Simplify,
25240                 $gplsrc is no longer needed as far as I can see?
25241
25242 2003-07-16  Jim Meyering  <jim@meyering.net>
25243
25244         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
25245
25246 2003-07-15  Paul Eggert  <eggert@twinsun.com>
25247
25248         * config/srclist.txt: Get the following files from gettext-runtime/intl
25249         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
25250         ref-del.sin.  From Bruno Haible.
25251         * config/srclist-update (fixfile): Change grep pattern again, since the
25252         previous fix didn't work (there was another trailing $).  Use
25253         '[$]' to escape the $s.
25254
25255 2003-07-15  Karl Berry  <karl@gnu.org>
25256
25257         * lib/vasnprintf.c: update from gettext.
25258
25259 2003-07-15  Karl Berry  <karl@gnu.org>
25260
25261         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
25262         gets expanded when surrounded by '$'.
25263
25264 2003-07-15  Jim Meyering  <jim@meyering.net>
25265
25266         * modules/save-cwd: Don't depend on error.  From Derek Price.
25267
25268 2003-07-15  Jim Meyering  <jim@meyering.net>
25269
25270         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
25271
25272 2003-07-14  Simon Josefsson  <jas@extundo.com>
25273
25274         * modules/mempcpy: New file.
25275         * MODULES.html.sh (func_all_modules): Add mempcpy.
25276
25277 2003-07-14  Simon Josefsson  <jas@extundo.com>
25278
25279         * m4/mempcpy.m4: New file.
25280
25281 2003-07-14  Simon Josefsson  <jas@extundo.com>
25282
25283         * lib/mempcpy.h: New file.
25284         * lib/mempcpy.c: New file.
25285
25286 2003-07-14  Paul Eggert  <eggert@twinsun.com>
25287
25288         * modules/getdate, modules/posixtm: Depend on mktime.
25289
25290 2003-07-14  Paul Eggert  <eggert@twinsun.com>
25291
25292         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
25293         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
25294         unicodeio.c, unicodeio.h, unlocked-io.h:
25295         Switch from LGPL to GPL.
25296
25297 2003-07-14  Paul Eggert  <eggert@twinsun.com>
25298
25299         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
25300         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
25301         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
25302         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
25303         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
25304         updated automatically by ../config/srclist-update.  This changes
25305         their license from LPGL to GPL.
25306
25307 2003-07-14  Paul Eggert  <eggert@twinsun.com>
25308
25309         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
25310         assumed to refer to the root of the most recent stable gettext version.
25311         * config/srclistvars.sh: Add defaults for eggert.
25312         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
25313         Match "This program" as well as "The program".  This is needed
25314         for gettext.
25315
25316 2003-07-14  Jim Meyering  <jim@meyering.net>
25317
25318         Don't emit diagnostics.  Let callers do that.
25319         * lib/save-cwd.c: Don't include "error.h".
25320         (save_cwd): Don't call error.  Ensure that errno is valid
25321         when returning nonzero.
25322
25323         * lib/save-cwd.h (restore_cwd): Update prototype.
25324         * lib/save-cwd.c (restore_cwd): Remove two parameters.
25325         Simplify.  Don't call error upon failure.  Let callers do that.
25326         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
25327         when auditing is enabled.  But don't bother updating the #if.
25328
25329 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
25330
25331         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
25332         it breaks C++ compilation.
25333         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
25334
25335 2003-07-10  Simon Josefsson  <jas@extundo.com>
25336
25337         * modules/strchrnul (Makefile.am): Add strchrnul.h.
25338
25339 2003-07-10  Jim Meyering  <jim@meyering.net>
25340
25341         * m4/clock_time.m4: Remove trailing blank.
25342         * m4/intmax_t.m4: Likewise.
25343
25344 2003-07-10  Jim Meyering  <jim@meyering.net>
25345
25346         * lib/vasnprintf.c: Remove trailing blanks.
25347         Make cpp indentation consistent.
25348
25349 2003-07-09  Paul Eggert  <eggert@twinsun.com>
25350
25351         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
25352         posixver.c, strftime.c, strnlen.c, strverscmp.c:
25353         Switch from LGPL to GPL.
25354
25355 2003-07-09  Paul Eggert  <eggert@twinsun.com>
25356
25357         * config/srclist.txt: Sort sublists.  Add
25358         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
25359         that differ from gnulib for one reason or another; we'd like this list
25360         to be smaller but for now let's document what we have.
25361
25362 2003-07-08  Paul Eggert  <eggert@twinsun.com>
25363
25364         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
25365         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
25366         and sweeter "eval x=$x".
25367         * config/srclist.txt: Get lib/argp* from glibc.
25368
25369 2003-07-07  Paul Eggert  <eggert@twinsun.com>
25370
25371         * lib/mktime.c: Fix some boundary cases and remove need for floating
25372         point.
25373
25374         Issue a compile-time diagnostic if time_t is floating point, or if
25375         two's complement arithmetic is not in effect, or if arithmetic
25376         right shift does not propagate the sign.  These assumptions were
25377         all in the original code but they weren't checked.
25378
25379         (TIME_T_MIDPOINT, verify): New macros.
25380         (__isleap): Remove; it has integer overflow problems.
25381         (leapyear): New function, without those problems.
25382         (ydhms_tm_diff): Remove; splitting into two parts.
25383         (ydhms_diff): New function, containing the arithmetic part of
25384         the old ydhms_tm_diff function.  Issue a compile-time
25385         diagnostic if we are not using C99 integer division.
25386         Avoid casts when possible.
25387         (guess_time_tm): New function, containing the checking part of
25388         the old ydhms_tm_diff function.  Return the new value, rather than
25389         the difference between it and the old.  Accept a new argument T
25390         so that *T specifies the old value.  Check for overflow in the result.
25391
25392         (__mktime_internal): Use a time_t offset, not a long int offset.
25393         This undoes the 2003-06-04 change, which is no longer needed now
25394         that we have better overflow checking.
25395         (localtime_offset): Likewise.
25396
25397         (__mktime_internal): Avoid harmful overflow on hosts where time_t
25398         and long are 64-bit but int is only 32-bit.
25399         (ydhms_diff): Use long int to store year1 and yday1.
25400         Issue a compile-time diagnostic if long int is not wide enough.
25401
25402         (__mktime_internal): Use long int to store adjusted year and yday.
25403         Use plain C rather than preprocessor commands, if that doesn't
25404         affect efficiency.
25405         Check for overflow (and try to repair) after each probe
25406         rather than checking only at the very end.  This avoids some bugs
25407         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
25408         does not equal GMT offset at maximum time).
25409         Use integer to check for overflow rather than floating point; this
25410         is more portable to non-IEEE hosts, and is a tad faster.
25411         When we detect that we are oscillating between two values,
25412         don't check whether tm_isdst has the requested value, since
25413         we already know the answer.  When tm_isdst has the wrong value,
25414         use a different heuristic to find the right one, based on the
25415         extreme values actually observed in practice in tz2003a,
25416         rather than the (overly optimistic) "previous 3 calendar quarters".
25417
25418         (not_equal_tm, print_tm, check_result): Use "const T" rather than
25419         "T const" to accommodate glibc style.
25420         (check_result): Use less-confusing report format.  "long" -> "long int.
25421         (main): Likewise.
25422         Don't loop if the iteration overflows time_t.
25423         Allow a negative step in the iteration.
25424
25425 2003-07-06  Karl Berry  <karl@gnu.org>
25426
25427         * config/depcomp: update from automake.
25428         * config/config.sub: update from prep.
25429
25430 2003-07-03  Karl Berry  <karl@gnu.org>
25431
25432         * config/config.guess: update from prep.
25433
25434 2003-07-01  Paul Eggert  <eggert@twinsun.com>
25435
25436         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
25437         xreadlink.c now includes it unconditionally.
25438
25439 2003-07-01  Paul Eggert  <eggert@twinsun.com>
25440
25441         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
25442         having it depend on HAVE_SYS_TYPES_H.
25443
25444 2003-07-01  Bruno Haible  <bruno@clisp.org>
25445
25446         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
25447         <sys/types.h> should be sufficient.
25448         Reported by Paul Eggert.
25449
25450 2003-06-26  Karl Berry  <karl@gnu.org>
25451
25452         * config/depcomp: update from automake.
25453
25454 2003-06-26  Bruno Haible  <bruno@clisp.org>
25455
25456         * modules/human: Depend on module stdbool.
25457
25458 2003-06-25  Bruno Haible  <bruno@clisp.org>
25459
25460         * modules/readlink: New file.
25461         * modules/xreadlink: Depend on it.
25462         * MODULES.html.sh (func_all_modules): Add readlink.
25463
25464 2003-06-25  Bruno Haible  <bruno@clisp.org>
25465
25466         * m4/readlink.m4: New file.
25467
25468 2003-06-25  Bruno Haible  <bruno@clisp.org>
25469
25470         * lib/readlink.c: New file.
25471
25472 2003-06-22  Karl Berry  <karl@gnu.org>
25473
25474         * config/srclist.txt: update mkinstalldirs from automake.
25475         * config/mkinstalldirs: update.
25476
25477 2003-06-22  Bruno Haible  <bruno@clisp.org>
25478
25479         Portability to mingw32.
25480         * m4/ssize_t.m4: New file, from GNU gettext.
25481         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
25482         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
25483
25484 2003-06-22  Bruno Haible  <bruno@clisp.org>
25485
25486         * modules/safe-read: Add m4/ssize_t.m4.
25487         * modules/xreadlink: Add m4/ssize_t.m4.
25488
25489 2003-06-20  Bruno Haible  <bruno@clisp.org>
25490
25491         Assume C89, so PARAMS isn't needed.
25492         * lib/unicodeio.h (PARAMS): Remove.
25493         * lib/unicodeio.c: Don't use PARAMS.
25494
25495 2003-06-18  Karl Berry  <karl@gnu.org>
25496
25497         * config/config.{guess,sub}: update from prep.
25498
25499 2003-06-18  Jim Meyering  <jim@meyering.net>
25500
25501         Merge changes from coreutils.
25502         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
25503         Remove explicit declarations of xmalloc and realloc.
25504         Include xalloc.h.
25505         (read_utmp): Remove anachronistic cast of xmalloc.
25506
25507 2003-06-17  Paul Eggert  <eggert@twinsun.com>
25508
25509         Assume C89, so PARAMS isn't needed.
25510         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
25511         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
25512         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
25513         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
25514         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
25515         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
25516         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
25517         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
25518         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
25519         lib/xstrtod.h, lib/xstrtol.h: Likewise.
25520         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
25521         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
25522         no longer needed. Anyway, config.h should always be included before any
25523         other file.
25524
25525 2003-06-11  Simon Josefsson  <jas@extundo.com>
25526
25527         * modules/sysexits: New file.
25528         * MODULES.html.sh (func_all_modules): Add sysexits.
25529
25530 2003-06-11  Simon Josefsson  <jas@extundo.com>
25531
25532         * lib/sysexit_.h: New file.
25533
25534 2003-06-11  Derek Price  <derek@ximbiot.com>
25535
25536         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
25537         necessary.
25538
25539 2003-06-11  Bruno Haible  <bruno@clisp.org>
25540
25541         * m4/sysexits.m4: New file.
25542
25543 2003-06-10  Simon Josefsson  <jas@extundo.com>
25544
25545         * lib/argp.h: New file, from glibc.
25546         * lib/argp-ba.c: New file, from glibc.
25547         * lib/argp-eexst.c: New file, from glibc.
25548         * lib/argp-fmtstream.c: New file, from glibc.
25549         * lib/argp-fmtstream.h: New file, from glibc.
25550         * lib/argp-fs-xinl.c: New file, from glibc.
25551         * lib/argp-help.c: New file, from glibc.
25552         * lib/argp-namefrob.h: New file, from glibc.
25553         * lib/argp-parse.c: New file, from glibc.
25554         * lib/argp-pv.c: New file, from glibc.
25555         * lib/argp-pvh.c: New file, from glibc.
25556         * lib/argp-xinl.c: New file, from glibc.
25557
25558 2003-06-10  Simon Josefsson  <jas@extundo.com>
25559
25560         * modules/strchrnul: New file.
25561
25562 2003-06-10  Simon Josefsson  <jas@extundo.com>
25563
25564         * modules/argp: New file.
25565
25566 2003-06-10  Simon Josefsson  <jas@extundo.com>
25567
25568         * m4/strchrnul.m4: New file.
25569
25570 2003-06-10  Simon Josefsson  <jas@extundo.com>
25571
25572         * lib/strchrnul.h: New file.
25573         * lib/strchrnul.c: New file.
25574
25575 2003-06-10  Bruno Haible  <bruno@clisp.org>
25576
25577         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
25578
25579 2003-06-07  Karl Berry  <karl@gnu.org>
25580
25581         * config/config.{guess,sub}: update from prep.
25582
25583 2003-06-07  Jim Meyering  <jim@meyering.net>
25584
25585         * modules/strtod: Use $(...) notation, not @...@ for
25586         AC_REPLACE'd variables.
25587         * modules/localcharset: Likewise.
25588
25589 2003-06-07  Jim Meyering  <jim@meyering.net>
25590
25591         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
25592         in place of my name in the copyright comment.
25593         Remove definition and uses of __P.
25594
25595         From coreutils.
25596         * lib/stat.c: Don't declare xmalloc explicitly.
25597         Instead, include "xalloc.h".
25598         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
25599         xrealloc, and xcalloc return values.
25600         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
25601         Improve comment.
25602         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
25603
25604 2003-06-07  Bruno Haible  <bruno@clisp.org>
25605
25606         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
25607         avoid AC_CONFIG_LINKS.
25608         * modules/fnmatch (Makefile.am): Use explicit creation rule for
25609         fnmatch.h, to avoid AC_CONFIG_LINKS.
25610         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
25611
25612 2003-06-07  Bruno Haible  <bruno@clisp.org>
25613
25614         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
25615         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
25616         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
25617         directory.
25618         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
25619         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
25620         directory.
25621
25622 2003-06-06  Jim Meyering  <jim@meyering.net>
25623
25624         Merge from coreutils.
25625         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
25626         Consolidate declarations and initializations of *_base* locals.
25627
25628         Merge from coreutils.
25629         This avoids a core dump on systems without GNU putenv,
25630         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
25631         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
25632         (unsetenv): New static function, from GNU libc.
25633         (rpl_putenv): Use it.
25634
25635         * lib/modechange.c: Remove trailing blanks.
25636
25637         Merge from coreutils.
25638         * lib/fsusage.c: Remove declaration of statfs.
25639         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
25640
25641         * lib/posixtm.c: Include <stdbool.h> unconditionally.
25642
25643 2003-06-06  Jim Meyering  <jim@meyering.net>
25644
25645         * lib/stdbool_.h: Renamed from stdbool.h.in.
25646
25647 2003-06-06  Jim Meyering  <jim@meyering.net>
25648             Bruno Haible  <bruno@clisp.org>
25649
25650         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
25651         Adjust Makefile.am snippet not to redirect directly to target.
25652         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
25653
25654 2003-06-05  Paul Eggert  <eggert@twinsun.com>
25655
25656         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
25657         mismatch, look in future quarters as well as past.  This fixes a
25658         bug when processing fall-backwards gaps immediately after a long
25659         period of daylight-saving time.
25660
25661         * lib/mktime.c: Assume freestanding C89 or better.
25662         (HAVE_LIMITS_H): Remove.  Assume it's 1.
25663         (__P): Remove; not used.
25664         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
25665         (mktime, not_equal_tm, print_tm, check_result,
25666         main): Use prototypes.  Use const * where appropriate.
25667         (main): Fix typo in testing code that uncovered by above changes.
25668         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
25669
25670 2003-06-04  Paul Eggert  <eggert@twinsun.com>
25671
25672         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
25673         locale.h, localeconv.  This merges changes from coreutils.
25674
25675         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
25676         It can be removed after the next Autoconf is released.
25677         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
25678         needed.
25679
25680 2003-06-04  Paul Eggert  <eggert@twinsun.com>
25681
25682         * lib/mktime.c: Fix Debian bug 177940
25683         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
25684         (localtime_offset): Now long int, not time_t, because we want it
25685         to be guaranteed to be signed.  All uses changed.
25686         (__mktime_internal): If overflow would occur when adding offset,
25687         don't add it.
25688
25689         Merge 'human' changes from coreutils.  Rewrite to support
25690         locale-specific notations like thousands separators.
25691         * lib/human.c: Simplify authorship notice.
25692         Include human.h immediately after config.h.
25693         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
25694         <limits.h>: Do not include, since human.h does.
25695         (SIZE_MAX, UINTMAX_MAX): New macros.
25696         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
25697         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
25698         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
25699         (power_letter): Renamed from suffixes.
25700         (generate_suffix_backwards): Remove.
25701         (adjust_value): Now takes int style (because of human.h changes)
25702         and long double value (for greater precision on some platforms).
25703         (group_number): New function.
25704         (human_readable): Use it.  Use integer options, not enum.
25705         Put the options before the sizes in the arg list.
25706         Support all the new options.
25707         The old human_readable function has been removed;
25708         use inttostr.h instead.
25709         (human_readable, default_block_size, humblock):
25710         Use uintmax_t, not int, for block sizes.
25711         (human_readable_inexact, block_size_types): Remove.
25712         (block_size_opts): New constant.
25713         (human_options): Renamed from human_block_size, with new signature
25714         that allows block sizes up to UINTMAX_MAX.  All callers changed.
25715         * lib/human.h: Add copyright and authorship notice.
25716         Include <limits.h> and <stdbool.h> unconditionally.
25717         (PARAMS): Remove.  All uses removed.
25718         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
25719         (enum human_inexact_style): Remove tag; now a nameless enum.
25720         (human_floor, human_ceiling, human_round_to_even): Now have
25721         values 2, 0, 1 rather than -1, 1, 0.
25722         (human_group_digits, human_suppress_point_zero, human_autoscale,
25723         human_base_1024, human_SI, human_B): New constants.
25724         (human_readable_inexact, human_block_size): Remove.
25725         (human_readable): Size args are now uintmax_t, not int.
25726         (human_options): New decl.
25727
25728         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
25729         unnecessary now that we assume C89 or better.  This change
25730         imported from coreutils.
25731
25732         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
25733         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
25734         in the 2003-05-30 sync from glibc.
25735
25736         .h files should stand alone, but we shouldn't include <sys/types.h>
25737         if we can get away with just <stddef.h>.
25738
25739         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
25740         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
25741         rather than <sys/types.h>, as we merely need size_t.
25742         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
25743         to get size_t.
25744         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
25745         Include <stdio.h>, to get FILE.
25746         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
25747         memcasecmp.h has included <stddef.h> and all we need is size_t.
25748         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
25749         our interface, instead of including <sys/types.h>
25750
25751 2003-06-04  Paul Eggert  <eggert@twinsun.com>
25752
25753         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
25754         now, as glibc mktime is buggy on non-glibc systems.
25755
25756 2003-06-03  Karl Berry  <karl@gnu.org>
25757
25758         * config/config.sub: update from prep.
25759
25760 2003-06-02  Paul Eggert  <eggert@twinsun.com>
25761
25762         [from coreutils]
25763         Fix some minor time-related bugs with POSIX time arguments.
25764         Some valid time stamps were being rejected (notably -1, and
25765         time stamps before 1900 on 64-bit hosts).  And some invalid
25766         time stamps were being accepted, e.g. September 31.
25767
25768         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
25769         that we can return (time_t) -1 successfully.
25770         * lib/posixtm.c: Likewise.
25771         [HAVE_STDBOOL_H]: Include <stdbool.h>.
25772         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
25773         (t): Remove static var.
25774         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
25775         of static var.  All uses changed.
25776         (year): Do not reject years before 1900; they can occur with
25777         64-bit time_t.
25778         (posix_time_parse): Do not check for out-of-range components;
25779         that is now the caller's responsibility, since our checks were
25780         only approximations.
25781         (posixtime): Use mktime to check for out-of-range components,
25782         since it knows them exactly.
25783         If mktime returns (time_t) -1, check whether an error actually occurred
25784         by invoking localtime on -1.
25785         (main) [TEST_POSIXTIME]: Check for input data errors, and report
25786         posixtime failures better.
25787         Improve the test data (in comments only).
25788
25789 2003-06-02  Karl Berry  <karl@gnu.org>
25790
25791         * config/mkinstalldirs (version): new variable.
25792         (--version): new option.
25793         (usage): improve message.
25794
25795 2003-05-30  Karl Berry  <karl@gnu.org>
25796
25797         * lib/mktime.c: update from libc.
25798
25799 2003-05-30  Bruno Haible  <bruno@clisp.org>
25800
25801         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
25802         * config/config.rpath: Upgrade to gettext-0.12.1.
25803
25804 2003-05-30  Bruno Haible  <bruno@clisp.org>
25805
25806         * m4/gettext.m4: Upgrade to gettext-0.12.1.
25807         * m4/nls.m4: New file, from gettext-0.12.1.
25808         * m4/po.m4: New file, from gettext-0.12.1.
25809         * m4/progtest.m4: Upgrade to gettext-0.12.1.
25810
25811 2003-05-30  Bruno Haible  <bruno@clisp.org>
25812
25813         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
25814         * lib/localcharset.h: Likewise.
25815         * lib/localcharset.c: Likewise.
25816
25817 2003-05-29  Karl Berry  <karl@gnu.org>
25818
25819         * config/config.rpath: update from gettext.
25820
25821 2003-05-28  Paul Eggert  <eggert@twinsun.com>
25822
25823         Assume the headers required for C89 freestanding compilers.
25824         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
25825         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
25826         * m4/human.m4 (gl_HUMAN): Likewise.
25827         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
25828         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
25829         * m4/userspec.m4 (gl_USERSPEC): Likewise.
25830         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
25831         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
25832         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
25833
25834 2003-05-28  Paul Eggert  <eggert@twinsun.com>
25835
25836         Assume the headers required for C89 freestanding compilers.
25837         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
25838         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
25839         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
25840         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
25841         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
25842         define, since <limits.h> is guaranteed to do that.
25843         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
25844         * lib/exclude.c: Include <stdbool.h> unconditionally.
25845         * lib/tempname.c: Include <stddef.h> unconditionally.
25846         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
25847         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
25848         <stddef.h> does that.
25849         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
25850         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
25851         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
25852         needed.
25853         * lib/xstrtol.c: Likewise.
25854         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
25855         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
25856
25857         * lib/addext.c (addext): Use assignment rather than cast, to avoid
25858         warnings on some platforms.
25859
25860         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
25861         arbitrarily.
25862
25863 2003-05-26  Jim Meyering  <jim@meyering.net>
25864
25865         Merge in a change from coreutils:
25866         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
25867         that is guaranteed to be `no'.  Use `no_such_member' to indicate
25868         that condition, rather than `-1' which is slightly misleading.
25869         Change the name of the cache variable to have the gl_ prefix.
25870         Prompted by a patch from Richard Dawe for DJGPP.
25871
25872 2003-05-24  Karl Berry  <karl@gnu.org>
25873
25874         * config/config.guess: update from prep.
25875
25876 2003-05-22  Karl Berry  <karl@gnu.org>
25877
25878         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
25879
25880 2003-05-20  Karl Berry  <karl@gnu.org>
25881
25882         * config/config.guess: update from prep.
25883
25884 2003-05-18  Karl Berry  <karl@gnu.org>
25885
25886         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
25887         might actually be set by the user.
25888
25889         * config/depcomp, install-sh, mdate-sh: update from automake.
25890
25891 2003-05-17  Bruno Haible  <bruno@clisp.org>
25892
25893         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
25894         invalid expansion for AC_EGREP_CPP.
25895         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
25896         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
25897         Suggested by Akim Demaille <akim@epita.fr> in
25898         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
25899
25900 2003-05-12  Jim Meyering  <jim@meyering.net>
25901
25902         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
25903         the space-padded-by-default conversion specifiers, %e, %k, %l.
25904
25905 2003-05-12  Bruno Haible  <bruno@clisp.org>
25906
25907         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
25908         the string is longer than 4 KB.
25909
25910 2003-05-11  Karl Berry  <karl@gnu.org>
25911
25912         * config/config.{guess,sub}: update from prep.
25913
25914 2003-05-09  Bruno Haible  <bruno@clisp.org>
25915
25916         * modules/error: Add m4/strerror_r.m4 to file list.
25917
25918 2003-05-03  Bruno Haible  <bruno@clisp.org>
25919
25920         Upgrade to Unicode-4.0.
25921         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
25922         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
25923         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
25924         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
25925         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
25926         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
25927         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
25928         Change width of U+E0100..U+E01EF from 1 to 0.
25929
25930 2003-04-25  Jim Meyering  <jim@meyering.net>
25931
25932         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
25933         of type size_t, not int.
25934
25935 2003-04-25  Bruno Haible  <bruno@clisp.org>
25936
25937         * lib/copy-file.c: Include <stddef.h>, for size_t.
25938
25939 2003-04-21  Paul Eggert  <eggert@twinsun.com>
25940
25941         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
25942         code which expansion is under static control.  Patch imported from
25943         Akim Demaille's patch to Bison; see
25944         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
25945
25946 2003-04-14  Bruno Haible  <bruno@clisp.org>
25947
25948         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
25949
25950 2003-04-11  Jim Meyering  <jim@meyering.net>
25951
25952         Merge changes from Coreutils.
25953
25954         2003-03-22  Jim Meyering  <jim@meyering.net>
25955
25956         * lib/strftime.c (widen): Cast alloca return value to proper type.
25957
25958         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
25959
25960         From GNU libc.
25961         * lib/strftime.c (my_strftime): Handle very large width
25962         specifications for numeric values correctly.  Improve checks for
25963         overflow.
25964
25965         2003-01-19  Jim Meyering  <jim@meyering.net>
25966
25967         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
25968         definitions.
25969         (nl_get_alt_digit) [! defined my_strftime]: Define.
25970         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
25971         _nl_get_alt_digit and _nl_get_walt_digit.
25972
25973         * lib/strftime.c (my_strftime): Merge in locale-related changes from
25974         libc. These changes have no effect outside of _LIBC.
25975
25976 2003-04-10  Bruno Haible  <bruno@clisp.org>
25977
25978         * modules/findprog: New file.
25979         * MODULES.html.sh (func_all_modules): Add it.
25980
25981 2003-04-10  Bruno Haible  <bruno@clisp.org>
25982
25983         * m4/findprog.m4: New file.
25984         * m4/eaccess.m4: New file.
25985
25986 2003-04-10  Bruno Haible  <bruno@clisp.org>
25987
25988         * lib/findprog.h: New file, from GNU gettext.
25989         * lib/findprog.c: New file, from GNU gettext.
25990
25991 2003-04-05  Jim Meyering  <jim@meyering.net>
25992
25993         Merge changes from Coreutils.
25994
25995         * lib/exclude.h (PARAMS): Remove definition and uses.
25996         * lib/exclude.c: Remove uses of `PARAMS'.
25997
25998         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
25999         Add test-cases for DOS filenames. Declare program_name.
26000         (main): Set up program_name.  Patch by Rich Dawe.
26001
26002         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
26003         error from mntctl.
26004         Use mntctl's return value to drive the entry-processing loop, since
26005         we can't rely on the value of the vmt_length member in the last
26006         entry.  On some systems doing so could result in exhausting
26007         virtual memory.  Based in part on a patch from Mike Jetzer.
26008
26009 2003-04-04  Bruno Haible  <bruno@clisp.org>
26010
26011         * modules/linebreak: New file.
26012         * MODULES.html.sh (func_all_modules): Add it.
26013
26014 2003-04-04  Bruno Haible  <bruno@clisp.org>
26015
26016         * m4/linebreak.m4: New file.
26017
26018 2003-04-04  Bruno Haible  <bruno@clisp.org>
26019
26020         * lib/linebreak.h: New file, from GNU gettext.
26021         * lib/linebreak.c: New file, from GNU gettext with slight
26022         modifications.
26023         * lib/lbrkprop.h: New file, from GNU gettext.
26024
26025 2003-04-03  Bruno Haible  <bruno@clisp.org>
26026
26027         * modules/utf8-ucs4: New file.
26028         * modules/utf16-ucs4: New file.
26029         * modules/ucs4-utf8: New file.
26030         * modules/ucs4-utf16: New file.
26031         * MODULES.html.sh (func_all_modules): Add them.
26032
26033 2003-04-03  Bruno Haible  <bruno@clisp.org>
26034
26035         * m4/utf-ucs4.m4: New file.
26036         * m4/ucs4-utf.m4: New file.
26037
26038 2003-04-03  Bruno Haible  <bruno@clisp.org>
26039
26040         * lib/utf8-ucs4.h: New file, from GNU gettext.
26041         * lib/utf16-ucs4.h: New file, from GNU gettext.
26042         * lib/ucs4-utf8.h: New file, from GNU gettext.
26043         * lib/ucs4-utf16.h: New file, from GNU gettext.
26044
26045 2003-04-02  Bruno Haible  <bruno@clisp.org>
26046
26047         * modules/binary-io: New file.
26048         * MODULES.html.sh (func_all_modules): Add it.
26049
26050 2003-04-02  Bruno Haible  <bruno@clisp.org>
26051
26052         * lib/binary-io.h: New file, from GNU gettext.
26053
26054 2003-04-01  Bruno Haible  <bruno@clisp.org>
26055
26056         * modules/pathname: New file.
26057         * MODULES.html.sh (func_all_modules): Add it.
26058
26059 2003-04-01  Bruno Haible  <bruno@clisp.org>
26060
26061         * lib/pathname.h: New file, from GNU gettext.
26062         * lib/concatpath.c: New file, from GNU gettext.
26063
26064 2003-03-30  Bruno Haible  <bruno@clisp.org>
26065
26066         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
26067
26068 2003-03-30  Bruno Haible  <bruno@clisp.org>
26069
26070         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
26071         function chown() doesn't exist.
26072
26073 2003-03-28  Bruno Haible  <bruno@clisp.org>
26074
26075         * modules/copy-file: New file.
26076         * MODULES.html.sh (func_all_modules): Add it.
26077
26078 2003-03-28  Bruno Haible  <bruno@clisp.org>
26079
26080         * m4/copy-file.m4: New file.
26081
26082 2003-03-28  Bruno Haible  <bruno@clisp.org>
26083
26084         * lib/copy-file.h: New file, from GNU gettext.
26085         * lib/copy-file.c: New file, from GNU gettext.
26086
26087 2003-03-18  Jim Meyering  <jim@meyering.net>
26088
26089         * lib/quote.c (quote_n): Fix typo in comment.
26090
26091 2003-03-18  Bruno Haible  <bruno@clisp.org>
26092
26093         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
26094         checking.
26095         * m4/onceonly_2_57.m4: Likewise.
26096
26097 2003-03-17  Bruno Haible  <bruno@clisp.org>
26098
26099         * m4/onceonly.m4: Require autoconf 2.54 or newer.
26100         (m4_quote): Remove macro.
26101         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
26102
26103 2003-03-14  Jim Meyering  <jim@meyering.net>
26104
26105         Merge changes from Coreutils.
26106         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
26107         to be const, in order to avoid warnings.
26108         (obstack_room): Likewise.
26109         (obstack_empty_p): Likewise.
26110
26111 2003-03-14  Bruno Haible  <bruno@clisp.org>
26112
26113         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
26114         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
26115
26116 2003-03-13  Paul Eggert  <eggert@twinsun.com>
26117
26118         Merge changes from Bison.
26119         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
26120         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
26121         when compiling Bison 1.875's `bitset bset = obstack_alloc
26122         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
26123         * lib/hash.c: Include <stdbool.h> unconditionally.
26124
26125 2003-03-13  Paul Eggert  <eggert@twinsun.com>
26126
26127         * m4/onceonly.m4 (m4_quote): New macro.
26128         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
26129         Quote AC_FOREACH variable-expansions properly.
26130
26131 2003-03-13  Paul Eggert  <eggert@twinsun.com>
26132
26133         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
26134
26135 2003-03-09  Paul Eggert  <eggert@twinsun.com>
26136
26137         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
26138         Reported by Bruce Becker; see:
26139         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
26140
26141 2003-03-03  Paul Eggert  <eggert@twinsun.com>
26142             Bruno Haible  <bruno@clisp.org>
26143
26144         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
26145         Reported by John Hughes, see
26146         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
26147
26148 2003-02-20  Bruno Haible  <bruno@clisp.org>
26149
26150         * MODULES.html.sh (func_all_modules): Add poll.
26151
26152 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
26153
26154         * modules/poll: New file.
26155
26156 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
26157
26158         * lib/poll_.h: New file.
26159         * lib/poll.c: New file.
26160
26161 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
26162
26163         * m4/poll.m4: New file.
26164
26165 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
26166
26167         * modules/mathl: New file.
26168
26169 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
26170
26171         * lib/mathl.h: New file.
26172         * lib/acosl.c: New file.
26173         * lib/asinl.c: New file.
26174         * lib/atanl.c: New file.
26175         * lib/ceill.c: New file.
26176         * lib/cosl.c: New file.
26177         * lib/expl.c: New file.
26178         * lib/floorl.c: New file.
26179         * lib/frexpl.c: New file.
26180         * lib/ldexpl.c: New file.
26181         * lib/logl.c: New file.
26182         * lib/sincosl.c: New file.
26183         * lib/sinl.c: New file.
26184         * lib/sqrtl.c: New file.
26185         * lib/tanl.c: New file.
26186         * lib/trigl.c: New file.
26187         * lib/trigl.h: New file.
26188
26189 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
26190
26191         * m4/mathl.m4: New file.
26192
26193 2003-02-18  Bruno Haible  <bruno@clisp.org>
26194
26195         * MODULES.html.sh (func_all_modules): Add mathl.
26196
26197 2003-02-17  Bruno Haible  <bruno@clisp.org>
26198
26199         * modules/mkdtemp: New module.
26200         * MODULES.html.sh (func_all_modules): Add it.
26201
26202 2003-02-17  Bruno Haible  <bruno@clisp.org>
26203
26204         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
26205
26206 2003-02-17  Bruno Haible  <bruno@clisp.org>
26207
26208         * lib/mkdtemp.h: New file, from GNU gettext.
26209         * lib/mkdtemp.c: New file, from GNU gettext.
26210
26211 2003-02-02  Jim Meyering  <jim@meyering.net>
26212
26213         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
26214         e.g. glibc-2.2.93.
26215
26216 2003-01-31  Bruno Haible  <bruno@clisp.org>
26217
26218         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
26219         'rpl_rename'.
26220         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
26221         'rpl_strnlen'.
26222         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
26223         'rpl_strtod'.
26224         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
26225         'rpl_utime'.
26226
26227 2003-01-31  Bruno Haible  <bruno@clisp.org>
26228
26229         * lib/rename.c: #undef rename before defining rpl_rename.
26230         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
26231
26232 2003-01-30  Bruno Haible  <bruno@clisp.org>
26233
26234         * modules/vasnprintf, modules/vasprintf: New modules.
26235         * MODULES.html.sh (func_all_modules): Add them.
26236
26237 2003-01-30  Bruno Haible  <bruno@clisp.org>
26238
26239         * m4/signed.m4: New file, from GNU gettext.
26240         * m4/longdouble.m4: New file, from GNU gettext.
26241         * m4/wchar_t.m4: New file, from GNU gettext.
26242         * m4/wint_t.m4: New file, from GNU gettext.
26243         * m4/vasnprintf.m4: New file.
26244         * m4/vasprintf.m4: New file.
26245
26246 2003-01-30  Bruno Haible  <bruno@clisp.org>
26247
26248         * lib/printf-args.h: New file, from GNU gettext.
26249         * lib/printf-args.c: New file, from GNU gettext.
26250         * lib/printf-parse.h: New file, from GNU gettext.
26251         * lib/printf-parse.c: New file, from GNU gettext.
26252         * lib/vasnprintf.h: New file, from GNU gettext.
26253         * lib/vasnprintf.c: New file, from GNU gettext.
26254         * lib/asnprintf.c: New file, from GNU gettext.
26255         * lib/vasprintf.h: New file, from GNU gettext with modifications.
26256         * lib/vasprintf.c: New file, from GNU gettext.
26257         * lib/asprintf.c: New file, from GNU gettext.
26258
26259 2003-01-29  Bruno Haible  <bruno@clisp.org>
26260
26261         * modules/stpncpy: New module.
26262         * MODULES.html.sh (func_all_modules): Add it.
26263
26264 2003-01-29  Bruno Haible  <bruno@clisp.org>
26265
26266         * m4/stpncpy.m4: New file.
26267
26268 2003-01-29  Bruno Haible  <bruno@clisp.org>
26269
26270         * lib/stpncpy.h: New file, from GNU gettext with modifications.
26271         * lib/stpncpy.c: New file, from GNU gettext with modifications.
26272
26273 2003-01-28  Bruno Haible  <bruno@clisp.org>
26274
26275         * modules/c-ctype: New module.
26276         * MODULES.html.sh (func_all_modules): Add it.
26277
26278 2003-01-28  Bruno Haible  <bruno@clisp.org>
26279
26280         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
26281         Paul Eggert.
26282         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
26283         Paul Eggert.
26284
26285 2003-01-27  Bruno Haible  <bruno@clisp.org>
26286
26287         * modules/xsetenv: New module.
26288         * MODULES.html.sh (func_all_modules): Add it.
26289
26290 2003-01-27  Bruno Haible  <bruno@clisp.org>
26291
26292         * lib/xsetenv.h: New file, from GNU gettext.
26293         * lib/xsetenv.c: New file, from GNU gettext.
26294
26295 2003-01-23  Jim Meyering  <jim@meyering.net>
26296
26297         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
26298         from working on systems without dirfd (at least Irix and OSF1/Tru64).
26299
26300 2003-01-23  Bruno Haible  <bruno@clisp.org>
26301
26302         * modules/minmax: New module.
26303         * MODULES.html.sh (func_all_modules): Add it.
26304
26305 2003-01-23  Bruno Haible  <bruno@clisp.org>
26306
26307         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
26308         Eggert.
26309
26310 2003-01-22  Bruno Haible  <bruno@clisp.org>
26311
26312         * modules/exit: New module.
26313         * MODULES.html.sh (func_all_modules): Add it.
26314
26315 2003-01-22  Bruno Haible  <bruno@clisp.org>
26316
26317         * lib/exit.h: New file, from GNU gettext.
26318
26319 2003-01-19  Bruno Haible  <bruno@clisp.org>
26320
26321         * gnulib-tool: Recognize option --extract-maintainer.
26322         (func_get_maintainer): New function.
26323         * modules/*: Add Maintainer entry.
26324
26325 2003-01-16  Jim Meyering  <jim@meyering.net>
26326
26327         * m4/regex.m4: The `regex' struct is both input and output.
26328         Initialize it before each use.  Patch by Tim Waugh.
26329
26330 2003-01-16  Bruno Haible  <bruno@clisp.org>
26331
26332         * MODULES.html.sh: Add a table of contents. Add the module name as
26333         leftmost column. Add hyperlinks.
26334
26335 2003-01-15  Bruno Haible  <bruno@clisp.org>
26336
26337         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
26338
26339 2003-01-15  Bruno Haible  <bruno@clisp.org>
26340
26341         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
26342         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
26343         suffix.
26344
26345 2003-01-15  Bruno Haible  <bruno@clisp.org>
26346
26347         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
26348
26349 2003-01-15  Bruno Haible  <bruno@clisp.org>
26350
26351         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
26352         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
26353
26354 2003-01-14  Jim Meyering  <jim@meyering.net>
26355
26356         * lib/same.c (same_name): Tweak a comment.
26357
26358 2003-01-14  Bruno Haible  <bruno@clisp.org>
26359
26360         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
26361         when a string comparison is sufficient.
26362
26363 2003-01-14  Bruno Haible  <bruno@clisp.org>
26364
26365         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
26366         'unsigned int'.
26367
26368 2003-01-14  Bruno Haible  <bruno@clisp.org>
26369
26370         * lib/hash-pjw.c: Add comment about low quality of this function.
26371
26372 2003-01-13  Bruno Haible  <bruno@clisp.org>
26373
26374         * modules/stpcpy: Distribute lib/stpcpy.h.
26375         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
26376
26377 2003-01-13  Bruno Haible  <bruno@clisp.org>
26378
26379         * modules/*: Add a description.
26380         * modules/strpbrk: Fix Makefile.am snippet.
26381         * modules/strtoimax: Fix dependencies.
26382         * modules/strtoumax: Likewise.
26383
26384 2003-01-13  Bruno Haible  <bruno@clisp.org>
26385
26386         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
26387         * modules/alloca (Makefile.am): All object files depend on alloca.h.
26388         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
26389
26390 2003-01-13  Bruno Haible  <bruno@clisp.org>
26391
26392         * gnulib-tool (func_create_testdir): Store config/* files in the main
26393         directory.
26394         * config.rpath: Move to ...
26395         * config/config.rpath: ... here.
26396         * modules/gettext: Contains config/config.rpath, not config.rpath.
26397         * modules/iconv: Likewise.
26398
26399 2003-01-12  Paul Eggert  <eggert@twinsun.com>
26400
26401         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
26402         to avoid collisions with libcurses and libreadline.
26403
26404         * m4/getstr.m4: Remove.
26405         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
26406
26407 2003-01-12  Paul Eggert  <eggert@twinsun.com>
26408
26409         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
26410         to avoid collisions with libcurses and libreadline.
26411
26412         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
26413         * lib/getstr.h, getstr.c: Remove.
26414         * lib/getline.c: Include "getline.h", to check interface.
26415         Move body of old getstr.c here: this defines MIN_CHUNK and
26416         declares getdelim2, which is renamed from getstr.
26417         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
26418
26419         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
26420         All uses changed.
26421         * lib/linebuffer.h: Likewise.
26422         (readline): Remove backward-compatibility macro.
26423
26424 2003-01-12  Paul Eggert  <eggert@twinsun.com>
26425
26426         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
26427         to avoid collisions with libcurses and libreadline.
26428         * getstr: Remove.
26429         * MODULES.html.sh: Remove getstr.
26430         * modules/getline: Depend on unlocked-io, not getstr.
26431
26432 2003-01-12  Jim Meyering  <jim@meyering.net>
26433
26434         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
26435
26436 2003-01-10  Bruno Haible  <bruno@clisp.org>
26437
26438         * modules/alloca: Change Makefile.am requirements. Simplify Include
26439         requirements. Add lib/alloca_.h to file list.
26440
26441 2003-01-10  Bruno Haible  <bruno@clisp.org>
26442
26443         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
26444
26445 2003-01-10  Bruno Haible  <bruno@clisp.org>
26446
26447         * lib/alloca_.h: New file.
26448         * lib/getdate.y: Unconditionally include alloca.h.
26449         * lib/makepath.c: Likewise.
26450         * lib/setenv.c: Likewise.
26451         * lib/userspec.c: Likewise.
26452
26453 2003-01-09  Karl Berry  <karl@gnu.org>
26454
26455         * MODULES.html.sh: include `dirname $0` in PATH, to find
26456         gnulib-tool.
26457
26458 2003-01-09  Bruno Haible  <bruno@clisp.org>
26459
26460         * modules/stdbool: Change configure.ac, Makefile.am requirements.
26461         Simplify Include requirements. Add lib/stdbool.h.in to file list.
26462
26463 2003-01-09  Bruno Haible  <bruno@clisp.org>
26464
26465         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
26466
26467 2003-01-09  Bruno Haible  <bruno@clisp.org>
26468
26469         * lib/stdbool.h.in: New file.
26470
26471 2003-01-09  Bruno Haible  <bruno@clisp.org>
26472
26473         * gnulib-tool (func_all_modules): Ignore files ending in ~.
26474         * MODULES.html.sh: Likewise.
26475
26476 2003-01-08  Jim Meyering  <jim@meyering.net>
26477
26478         * lib/full-write.c: Undefine and define-away `const' after inclusion
26479         of errno.h, not before.  Suggestion from Bruno Haible.
26480
26481 2003-01-08  Bruno Haible  <bruno@clisp.org>
26482
26483         * modules/full-read: Depend on full-write.
26484
26485 2003-01-08  Bruno Haible  <bruno@clisp.org>
26486
26487         * lib/safe-read.c: Include specification header first, to ensure its
26488         selfcontainedness.
26489         * lib/full-write.c: Likewise.
26490
26491 2003-01-07  Jim Meyering  <jim@meyering.net>
26492
26493         * lib/full-write.c: Rework so that it may serve to define full_read,
26494         too.
26495         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
26496
26497 2003-01-07  Bruno Haible  <bruno@clisp.org>
26498
26499         * lib/strtoimax.c: Include <stdint.h> as an alternative to
26500         <inttypes.h>.
26501         * lib/xstrtol.h: Likewise.
26502         * lib/xstrtoimax.c: Likewise.
26503         * lib/xstrtoumax.c: Likewise.
26504         * lib/human.h: Likewise.
26505
26506         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
26507         on systems that have <inttypes.h> but not <stdint.h>.
26508
26509 2003-01-07  Bruno Haible  <bruno@clisp.org>
26510
26511         * MODULES.html.sh: Add copyright notice.
26512         (missed_files): Omit CVS directory entries.
26513         (func_module): Make it work with sed-3.02.
26514         * MODULES.txt: Remove file.
26515
26516 2003-01-06  Jim Meyering  <jim@meyering.net>
26517
26518         * lib/version-etc.c: Update year in translatable copyright string.
26519
26520 2003-01-03  Karl Berry  <karl@gnu.org>
26521
26522         * config/config.{guess,sub}: update from prep.
26523
26524 2003-01-02  Karl Berry  <karl@gnu.org>
26525
26526         * doc/COPYING.DOC: belatedly updated to 1.2.
26527
26528 2003-01-01  Karl Berry  <karl@gnu.org>
26529
26530         * gnulib-tool (func_verify_module): report module name $module in
26531         error message, not $1.
26532         * gnulib-tool (create-testdir): don't complain if destdir couldn't
26533         be created, only if it doesn't exist.
26534         * gnulib-tool (last_checkin_date): don't expand the $Date here.
26535
26536 2002-12-31  Paul Eggert  <eggert@twinsun.com>
26537
26538         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
26539
26540 2002-12-31  Paul Eggert  <eggert@twinsun.com>
26541
26542         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
26543         memcmp if strcoll doesn't work.
26544
26545 2002-12-31  Bruno Haible  <bruno@clisp.org>
26546
26547         * lib/utime.c (utime_null): No need to call ftruncate if the file was
26548         nonempty.
26549
26550 2002-12-31  Bruno Haible  <bruno@clisp.org>
26551
26552         * lib/memcoll.c (STRCOLL): New macro.
26553         (memcoll): Use it.
26554
26555 2002-12-31  Bruno Haible  <bruno@clisp.org>
26556
26557         * lib/localcharset.h: New file.
26558         * lib/localcharset.c: Include it.
26559         * lib/unicodeio.c: Likewise.
26560
26561 2002-12-31  Bruno Haible  <bruno@clisp.org>
26562
26563         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
26564         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
26565
26566 2002-12-31  Bruno Haible  <bruno@clisp.org>
26567
26568         * lib/getline.h: Include <stddef.h>, for size_t.
26569
26570         * lib/unicodeio.h: Include <stddef.h>, for size_t.
26571         * lib/unicodeio.c: Don't include <stddef.h>.
26572
26573 2002-12-31  Bruno Haible  <bruno@clisp.org>
26574
26575         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
26576         HAVE_TM_ZONE.
26577
26578 2002-12-24  Karl Berry  <karl@gnu.org>
26579
26580         * config/config.guess: update from prep.
26581
26582 2002-12-24  Bruno Haible  <bruno@clisp.org>
26583
26584         General infrasructure.
26585         * m4/README: Rewritten.
26586         * m4/onceonly.m4: New file.
26587         * m4/onceonly_2_57.m4: New file.
26588
26589         Module atexit.
26590         * m4/atexit.m4: New file.
26591
26592         Module strtod.
26593         * m4/strtod.m4: New file.
26594
26595         Module strtol.
26596         * m4/strtol.m4: New file.
26597
26598         Module strtoul.
26599         * m4/strtoul.m4: New file.
26600
26601         Module memchr.
26602         * m4/memchr.m4: New file.
26603
26604         Module memcmp.
26605         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
26606         (jm_FUNC_MEMCMP): Invoke it.
26607
26608         Module memcpy.
26609         * m4/memcpy.m4: New file.
26610
26611         Module memmove.
26612         * m4/memmove.m4: New file.
26613
26614         Module memset.
26615         * m4/memset.m4: New file.
26616
26617         Module strcspn.
26618         * m4/strcspn.m4: New file.
26619
26620         Module strpbrk.
26621         * m4/strpbrk.m4: New file.
26622
26623         Module strstr.
26624         * m4/strstr.m4: New file.
26625
26626         Module strerror.
26627         * m4/strerror.m4: New file.
26628
26629         Module mktime.
26630         * m4/mktime.m4: Renamed from jm-mktime.m4.
26631         (gl_PREREQ_MKTIME): New macro.
26632         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
26633
26634         Module malloc.
26635         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
26636         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
26637         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
26638
26639         Module realloc.
26640         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
26641         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
26642         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
26643
26644         Module strftime.
26645         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
26646         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
26647         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
26648         gl_TM_GMTOFF.
26649         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
26650
26651         Module xalloc.
26652         * m4/xalloc.m4: New file.
26653
26654         Module alloca.
26655         * m4/alloca.m4: New file.
26656
26657         Module putenv.
26658         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
26659         (jm_FUNC_PUTENV): Invoke it.
26660
26661         Module setenv.
26662         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
26663         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
26664         when invoked twice.
26665         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
26666         gt_FUNC_SETENV.
26667
26668         Module memrchr.
26669         * m4/memrchr.m4: New file.
26670
26671         Module stpcpy.
26672         * m4/stpcpy.m4: New file.
26673
26674         Module strcase.
26675         * m4/strcase.m4: New file.
26676
26677         Module strdup.
26678         * m4/strdup.m4: New file.
26679
26680         Module strnlen.
26681         * m4/strnlen.m4: New file.
26682
26683         Module strndup.
26684         * m4/strndup.m4: New file.
26685
26686         Module xstrtod.
26687         * m4/xstrtod.m4: New file.
26688
26689         Module xstrtol.
26690         * m4/xstrtol.m4: New file.
26691
26692         Module getdate.
26693         * m4/getdate.m4: New file.
26694
26695         Module unlocked-io.
26696         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
26697         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
26698         * m4/jm-glibc-io.m4n: Remove file.
26699
26700         Module long-options.
26701         * m4/long-options.m4: New file.
26702
26703         Module md5.
26704         * m4/md5.m4: New file.
26705
26706         Module sha.
26707         * m4/sha.m4: New file.
26708
26709         Module getstr.
26710         * m4/getstr.m4: New file.
26711
26712         Module getline.
26713         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
26714         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
26715         <sys/types.h>, for size_t. Use the function name gnu_getline, not
26716         simply getline. Infoke gl_PREREQ_GETLINE.
26717
26718         Module obstack.
26719         * m4/obstack.m4: New file.
26720
26721         Module hash.
26722         * m4/hash.m4: New file.
26723
26724         Module readtokens.
26725         * m4/readtokens.m4: New file.
26726
26727         Module strverscmp.
26728         * m4/strverscmp.m4: New file.
26729
26730         Module stdbool.
26731         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
26732         OSF/1.
26733
26734         Module strtoll.
26735         * m4/strtoll.m4: New file.
26736
26737         Module strtoull.
26738         * m4/strtoull.m4: New file.
26739
26740         Module strtoimax.
26741         * m4/strtoimax.m4: New file.
26742
26743         Module strtoumax.
26744         * m4/strtoumax.m4: New file.
26745
26746         Module xstrtoimax.
26747         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
26748         jm_AC_PREREQ_XSTRTOIMAX.
26749         Moved the strtol prerequisites to strtol.m4.
26750         Moved the strtoll prerequisites to strtoll.m4.
26751         Moved the strtoimax prerequisites to strtoimax.m4.
26752
26753         Module xstrtoumax.
26754         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
26755         jm_AC_PREREQ_XSTRTOUMAX.
26756         Moved the strtoul prerequisites to strtoul.m4.
26757         Moved the strtoull prerequisites to strtoull.m4.
26758         Moved the strtoumax prerequisites to strtoumax.m4.
26759
26760         Module chown.
26761         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
26762         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
26763
26764         Module dup2.
26765         * m4/dup2.m4: New file.
26766
26767         Module ftruncate.
26768         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
26769         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
26770
26771         Module getgroups.
26772         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
26773         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
26774
26775         Module gettimeofday.
26776         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
26777         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
26778         gl_PREREQ_GETTIMEOFDAY.
26779
26780         Module mkdir.
26781         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
26782         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
26783
26784         Module mkstemp.
26785         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
26786         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
26787         jm_AC_TYPE_UINTMAX_T.
26788         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
26789
26790         Module stat.
26791         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
26792         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
26793
26794         Module lstat.
26795         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
26796         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
26797
26798         Module timespec.
26799         * m4/timespec.m4 (gl_TIMESPEC): New macro.
26800         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
26801         * m4/st_mtim.m4: Indentation.
26802
26803         Module nanosleep.
26804         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
26805         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
26806         gl_PREREQ_NANOSLEEP.
26807
26808         Module regex.
26809         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
26810         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
26811         (gl_REGEX): New macro.
26812
26813         Module rename.
26814         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
26815         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
26816
26817         Module rmdir.
26818         * m4/rmdir.m4: New file.
26819
26820         Module utime.
26821         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
26822         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
26823         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
26824
26825         Module dirname.
26826         * m4/dirname.m4: New file.
26827
26828         Module getopt.
26829         * m4/getopt.m4: New file.
26830
26831         Module unistd-safer.
26832         * m4/unistd-safer.m4: New file.
26833
26834         Module fnmatch.
26835         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
26836         declaration.
26837         (gl_PREREQ_FNMATCH_EXTRA): New macro.
26838         (gl_FUNC_FNMATCH_POSIX): New macro.
26839         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
26840         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
26841         simply fnmatch.
26842
26843         Module exclude.
26844         * m4/exclude.m4: New file.
26845
26846         Module human.
26847         * m4/human.m4: New file.
26848
26849         Module acl.
26850         * m4/acl.m4: Nop.
26851
26852         Module backupfile.
26853         * m4/backupfile.m4: New file.
26854         * m4/d-ino.m4: Indentation.
26855
26856         Module fsusage.
26857         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
26858         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
26859         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
26860
26861         Module dirfd.
26862         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
26863         requirements.
26864
26865         Module euidaccess.
26866         * m4/euidaccess.m4: New file.
26867
26868         Module file-type.
26869         * m4/file-type.m4: New file.
26870
26871         Module fileblocks.
26872         * m4/fileblocks.m4: New file.
26873
26874         Module filemode.
26875         * m4/filemode.m4: New file.
26876
26877         Module isdir.
26878         * m4/isdir.m4: New file.
26879
26880         Module lchown.
26881         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
26882         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
26883
26884         Module makepath.
26885         * m4/makepath.m4: New file.
26886
26887         Module modechange.
26888         * m4/modechange.m4: New file.
26889
26890         Module mountlist.
26891         * m4/mountlist.m4: New file.
26892         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
26893         Indentation.
26894
26895         Module path-concat.
26896         * m4/path-concat.m4: New file.
26897
26898         Module pathmax.
26899         * m4/pathmax.m4: New file.
26900
26901         Module same.
26902         * m4/same.m4: New file.
26903
26904         Module save-cwd.
26905         * m4/save-cwd.m4: New file.
26906
26907         Module savedir.
26908         * m4/savedir.m4: New file.
26909
26910         Module xgetcwd.
26911         * m4/xgetcwd.m4: New file.
26912         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
26913
26914         Module xreadlink.
26915         * m4/xreadlink.m4: New file.
26916
26917         Module safe-read.
26918         * m4/safe-read.m4: New file.
26919
26920         Module safe-write.
26921         * m4/safe-write.m4: New file.
26922
26923         Module closeout.
26924         * m4/closeout.m4: New file.
26925
26926         Module stdio-safer.
26927         * m4/stdio-safer.m4: New file.
26928
26929         Module getpass.
26930         * m4/getpass.m4: New file.
26931
26932         Module getugroups.
26933         * m4/getugroups.m4: New file.
26934
26935         Module group-member.
26936         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
26937         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
26938
26939         Module idcache.
26940         * m4/idcache.m4: New file.
26941
26942         Module userspec.
26943         * m4/userspec.m4: New file.
26944
26945         Module gettime.
26946         * m4/clock_time.m4: New file.
26947         * m4/gettime.m4: New file.
26948
26949         Module settime.
26950         * m4/settime.m4: New file.
26951
26952         Module posixtm.
26953         * m4/posixtm.m4: New file.
26954
26955         Module gethostname.
26956         * m4/gethostname.m4: New file.
26957
26958         Module canon-host.
26959         * m4/canon-host.m4: New file.
26960
26961         Module gettext.
26962         * m4/codeset.m4: New file, from gettext-0.11.5.
26963         * m4/gettext.m4: New file, from gettext-0.11.5.
26964         * m4/glibc21.m4: New file, from gettext-0.11.5.
26965         * m4/iconv.m4: New file, from gettext-0.11.5.
26966         * m4/intdiv0.m4: New file, from gettext-0.11.5.
26967         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
26968         * m4/inttypes.m4: New file, from gettext-0.11.5.
26969         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
26970         * m4/isc-posix.m4: New file, from gettext-0.11.5.
26971         * m4/lcmessage.m4: New file, from gettext-0.11.5.
26972         * m4/lib-ld.m4: New file, from gettext-0.11.5.
26973         * m4/lib-link.m4: New file, from gettext-0.11.5.
26974         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
26975         * m4/progtest.m4: New file, from gettext-0.11.5.
26976         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
26977         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
26978         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
26979
26980         Module localcharset.
26981         * m4/localcharset.m4: New file.
26982
26983         Module hard-locale.
26984         * m4/hard-locale.m4: New file.
26985
26986         Module mbswidth.
26987         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
26988         onceonly macros.
26989         * m4/mbrtowc.m4: Add comment.
26990
26991         Module memcasecmp.
26992         * m4/memcasecmp.m4: New file.
26993
26994         Module memcoll.
26995         * m4/memcoll.m4: New file.
26996
26997         Module unicodeio.
26998         * m4/unicodeio.m4: New file.
26999
27000         Module rpmatch.
27001         * m4/rpmatch.m4: New file.
27002
27003         Module yesno.
27004         * m4/yesno.m4: New file.
27005
27006         Module exitfail.
27007         * m4/exitfail.m4: New file.
27008
27009         Module c-stack.
27010         * m4/c-stack.m4 (gl_C_STACK): New macro.
27011         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
27012
27013         Module error.
27014         * m4/error.m4 (gl_ERROR): New macro.
27015         (jm_PREREQ_ERROR): Use onceonly macros.
27016
27017         Module fatal.
27018         * m4/fatal.m4: New file.
27019
27020         Module getloadavg.
27021         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
27022         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
27023
27024         Module getpagesize.
27025         * m4/getpagesize.m4: New file.
27026
27027         Module getusershell.
27028         * m4/getusershell.m4: New file.
27029
27030         Module physmem.
27031         * m4/physmem.m4: New file.
27032
27033         Module posixver.
27034         * m4/posixver.m4: New file.
27035
27036         Module quotearg.
27037         * m4/quotearg.m4: New file.
27038
27039         Module quote.
27040         * m4/quote.m4: New file.
27041
27042         Module readutmp.
27043         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
27044
27045         Module sig2str.
27046         * m4/sig2str.m4: New file.
27047
27048         Other.
27049         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
27050         ulonglong.m4.
27051         * m4/intmax_t.m4: New file.
27052         * m4/d-type.m4: Indentation.
27053         * m4/jm-macros.m4: Update.
27054         * m4/prereq.m4 (jm_PREREQ): Update.
27055         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
27056         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
27057         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
27058         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
27059         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
27060         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
27061         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
27062         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
27063         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
27064         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
27065         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
27066         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
27067         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
27068         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
27069         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
27070         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
27071         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
27072         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
27073         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
27074
27075 2002-12-24  Bruno Haible  <bruno@clisp.org>
27076
27077         * MODULES.txt: Update according to m4/ changes.
27078
27079         Module gettext.
27080         * config.rpath: New file, from gettext-0.11.5.
27081
27082         * modules/*: New module descriptions.
27083         * gnulib-tool: New file.
27084         * MODULES.html.sh: New file.
27085
27086 2002-12-21  Karl Berry  <karl@gnu.org>
27087
27088         * doc/fdl.texi: update to version 1.2.
27089
27090 2002-12-19  Karl Berry  <karl@gnu.org>
27091
27092         * config/config.guess: update from prep.
27093
27094 2002-12-18  Bruno Haible  <bruno@clisp.org>
27095
27096         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
27097         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
27098
27099 2002-12-17  Bruno Haible  <bruno@clisp.org>
27100
27101         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
27102         stdlib.h, string.h.
27103
27104 2002-12-17  Bruno Haible  <bruno@clisp.org>
27105
27106         * lib/canon-host.c (strdup): Remove unused declaration.
27107
27108         * lib/fsusage.c: Include full_read.h.
27109         (get_fs_usage): Use full_read instead of safe_read.
27110
27111         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
27112
27113 2002-12-12  Karl Berry  <karl@gnu.org>
27114
27115         * config/config.guess: update from prep.
27116
27117 2002-12-11  Bruno Haible  <bruno@clisp.org>
27118
27119         * m4/setenv.m4: New file, from gettext-0.11.5.
27120
27121 2002-12-11  Bruno Haible  <bruno@clisp.org>
27122
27123         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
27124         not unsetenv().
27125         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
27126         modifications:
27127
27128         2002-12-11  Bruno Haible  <bruno@clisp.org>
27129
27130                 * setenv.c (alloca): Fall back to malloc.
27131                 (freea): New macro.
27132                 (setenv): Use freea() to free memory allocated with alloca().
27133
27134         2002-11-13  Bruno Haible  <bruno@clisp.org>
27135
27136                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
27137                 function declarations.
27138                 * unsetenv.c (unsetenv): Likewise.
27139
27140         2002-03-04  Bruno Haible  <bruno@clisp.org>
27141
27142                 Portability to AIX 4.3.3.
27143                 * unsetenv.c: New file, extracted from setenv.c.
27144                 * setenv.c: Move the unsetenv() function to unsetenv.c.
27145
27146         2001-12-20  Bruno Haible  <bruno@clisp.org>
27147
27148                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
27149                 use malloc instead. For SunOS 4.
27150
27151         2001-12-11  Bruno Haible  <bruno@clisp.org>
27152
27153                 * setenv.c: Declare alloca.
27154                 (compar_fn_t): New typedef.
27155                 (KNOWN_VALUE, STORE_VALUE): Use it.
27156
27157         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
27158         setenv.h.
27159
27160 2002-12-10  Paul Eggert  <eggert@twinsun.com>
27161
27162         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
27163         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
27164         Choose values that are less likely to collide with system fnmatch
27165         options.
27166         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
27167         defined (e.g., a pure POSIX system).
27168         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
27169         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
27170
27171 2002-12-06  Paul Eggert  <eggert@twinsun.com>
27172
27173         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
27174         a pain in practice to deal with generated m4 files.  This change
27175         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
27176
27177         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
27178         and jm-glibc-io.m4, as they are no longer a special case.
27179         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
27180         kludge and the auto-generation stuff.  Check only whether the
27181         functions are declared, not whether they exist, since older hosts
27182         that don't declare the functions can't use the optimization anyway.
27183
27184 2002-12-06  Jim Meyering  <jim@meyering.net>
27185
27186         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
27187
27188         Merge in changes from libc's misc/error.c, in preparation
27189         for the merge of gnulib's changes back into libc.
27190
27191         * lib/error.c (_): Define only if not already defined.
27192         Move definition to follow all #include directives.
27193         Include unlocked-io.h only if !_LIBC.
27194         [_LIBC]: Include <libio/libioP.h>.
27195         [USE_IN_LIBIO]: Include <libio/iolibio.h>
27196         (fflush): Tweak definition to use INTUSE.
27197         (putc): Define.
27198
27199 2002-12-05  Paul Eggert  <eggert@twinsun.com>
27200
27201         * lib/alloca.c [defined emacs]: Include "lisp.h".
27202         (xalloc_die) [defined emacs]: New macro.
27203         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
27204         [! defined emacs]: Include <xalloc.h>.
27205         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
27206         (pointer): Typedef to POINTER_TYPE *.
27207         (malloc): Remove decl; we now always use xmalloc.
27208         (alloca): Use old-style definition, since Emacs needs this.
27209         Check for arithmetic overflow when computing combined size.
27210
27211 2002-12-04  Paul Eggert  <eggert@twinsun.com>
27212
27213         Do not generate unlocked-io.h automatically, since it's easier to
27214         maintain it by hand.
27215
27216         * lib/unlocked-io.h: New file, from GNU diffutils,
27217         but with proper copyright notice and attribution.
27218         * lib/gen-uio: Remove.
27219         * lib/Makefile.am: Add copyright notice.
27220         (libfetish_a_SOURCES): Add unlocked-io.h.
27221         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
27222         (DISTCLEANFILES, io_functions): Remove macros.
27223         (EXTRA_DIST): Remove gen_uio.
27224         (unlocked-io.h): Remove rule.
27225
27226 2002-12-04  Jim Meyering  <jim@meyering.net>
27227
27228         Reflect the fact that stat.c and lstat.c are no longer generated.
27229         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
27230         (DISTCLEANFILES): Likewise.
27231         (EXTRA_DIST): Likewise.
27232         (all_local): Don't depend on stat.c or lstat.c.
27233         (stat.c, lstat.c): Remove rules.
27234         (EXTRA_DIST): Remove xstat.in.
27235
27236         * lib/xstat.in: Remove file.  Contents moved into stat.c.
27237         * lib/stat.c: New file.  Contents mostly from xstat.in.
27238         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
27239         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
27240
27241         * lib/safe-read.c: Rework so that it may serve to define safe_write,
27242         too.
27243         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
27244
27245 2002-12-03  Jim Meyering  <jim@meyering.net>
27246
27247         * lib/safe-read.c, safe-write.c: Change variable names and comments,
27248         but not semantics, to minimize the differences between these two files.
27249         (safe_read): Change comment to mention SAFE_READ_ERROR.
27250
27251         * lib/safe-read.c (IS_EINTR): Define.
27252         (safe_read): Use IS_EINTR in place of in-function cpp directives.
27253
27254 2002-12-02  Jim Meyering  <jim@meyering.net>
27255
27256         * lib/safe-read.c (EINTR): Define.
27257         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
27258         (INT_MAX): Provide fallback.
27259         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
27260
27261         * lib/safe-read.h (SAFE_READ_ERROR): Define.
27262
27263 2002-12-02  Bruno Haible  <bruno@clisp.org>
27264
27265         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
27266         Define, taken from safe-read.c.
27267         (INT_MAX): Provide fallback.
27268         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
27269         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
27270
27271         * lib/safe-read.c (EINTR): Remove definition.
27272         (safe_read): Don't use EINTR if it is absent.
27273
27274 2002-12-01  Jim Meyering  <jim@meyering.net>
27275
27276         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
27277         zero.
27278         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
27279
27280 2002-11-27  Paul Eggert  <eggert@twinsun.com>
27281
27282         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
27283         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
27284         with `if (! (value < limit)) abort ();', for readability.
27285
27286 2002-11-26  Karl Berry  <karl@gnu.org>
27287
27288         * lib/strdup.c: copy from libc again, with jim's ok.
27289         * lib/.cppi-disable: re-add strdup.c
27290
27291 2002-11-25  Karl Berry  <karl@gnu.org>
27292
27293         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
27294         instead of "strtol.c".
27295
27296 2002-11-25  Karl Berry  <karl@gnu.org>
27297
27298         * config/install-sh: update from automake for variable quoting, $0 in
27299         error msgs, etc.
27300
27301         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
27302         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
27303         entry.
27304
27305 2002-11-25  Jim Meyering  <jim@meyering.net>
27306
27307         * lib/mktime.c: Sync from libc, now that it has the latest fix.
27308
27309 2002-11-24  Karl Berry  <karl@gnu.org>
27310
27311         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
27312         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
27313
27314 2002-11-24  Jim Meyering  <jim@meyering.net>
27315
27316         Update from coreutils:
27317
27318         * lib/mktime.c: Merge in changes from libc.
27319
27320         Avoid a link-time failure on some Linux systems.
27321         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
27322         (otherwise).
27323         (__mon_yday): Declare with the STATIC attribute.
27324         (__mktime_internal): Likewise.
27325         Based on a report from Greg Schafer.
27326
27327 2002-11-23  Jim Meyering  <jim@meyering.net>
27328
27329         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
27330         Use `unsigned', not `int', as type of index.
27331
27332         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
27333
27334         * lib/fsusage.c: Remove unneeded parentheses around operands of
27335         `defined'.
27336
27337 2002-11-22  Paul Eggert  <eggert@twinsun.com>
27338
27339         * lib/quotearg.h: Allow multiple inclusion by surrounding with
27340         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
27341         so that we can be included first.
27342         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
27343         * lib/quotearg.c: Include quotearg.h immediately after config.h.
27344         No need to include stddef.h or sys/types.h any more.
27345         Surround local include files with "", not "<>".
27346         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
27347         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
27348         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
27349         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
27350         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
27351         (ISPRINT): Remove; no longer needed now that we assume C89.
27352
27353         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
27354         Preserve errno.
27355
27356         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
27357         quotearg_char): Use SIZE_MAX rather than
27358         (size_t) -1 when we are talking about "infinity".
27359
27360         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
27361
27362 2002-11-22  Paul Eggert  <eggert@twinsun.com>
27363
27364         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
27365         hint that one should use `if (! x) abort ();' rather than `assert
27366         (x);', and anyway it's one less thing to worry about configuring.
27367         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
27368         hash_rehash, hash_insert): Use abort rather than assert.
27369
27370 2002-11-22  Bruno Haible  <bruno@clisp.org>
27371
27372         * lib/safe-read.h: Assume C89. Add comments.
27373         (safe_read): Change return type to size_t.
27374         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
27375         byte counts > SSIZE_MAX correctly.
27376         * lib/safe-write.h: New file.
27377         * lib/safe-write.c: New file.
27378         * lib/full-read.h: New file.
27379         * lib/full-read.c: New file.
27380         * lib/full-write.h: Assume C89. Add comments.
27381         * lib/full-write.c: Include safe-write.h.
27382         (full_write): Rewritten to use safe_write.
27383         Suggested by Jim Meyering and Paul Eggert.
27384
27385 2002-11-21  Jim Meyering  <jim@meyering.net>
27386
27387         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
27388
27389         Merge in changes from the coreutils.
27390
27391         2002-09-25  Paul Eggert  <eggert@twinsun.com>
27392         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
27393         <stdint.h>.
27394         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
27395         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
27396         int.  Work more efficiently if X is the same width as uintmax_t.
27397         Do not compare X to -1, to avoid bogus compiler warning.
27398         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
27399         Don't assume that f_frsize and f_bsize are the same type.
27400
27401         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
27402         warning on FreeBSD.
27403
27404         * lib/makepath.c (make_path): Restore umask *before* creating the final
27405         component.
27406         (make_path): Minor reformatting.
27407
27408         * lib/xmalloc.c: Adjust to work with new autoconf macros,
27409         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
27410         HAVE_MALLOC/HAVE_REALLOC.
27411
27412         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
27413         dummy ones.  At least on GNU/Linux systems, `auto' means something
27414         else.
27415         From Michael Stone.
27416
27417 2002-11-21  Bruno Haible  <bruno@clisp.org>
27418
27419         Remove case insensitive option matching.
27420         * lib/argmatch.h (argcasematch): Remove declaration.
27421         (ARGCASEMATCH): Remove macro.
27422         (__xargmatch_internal): Remove case_sensitive argument.
27423         (XARGMATCH): Update.
27424         (XARGCASEMATCH): Remove macro.
27425         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
27426         case_sensitive argument.
27427         (argcasematch): Remove function.
27428         (__xargmatch_internal): Remove case_sensitive argument.
27429         (main): Use XARGMATCH instead of XARGCASEMATCH.
27430
27431         * lib/xmalloc.c: Change compile-time error message. Add comment about
27432         required autoconf version.
27433
27434 2002-11-20  Paul Eggert  <eggert@twinsun.com>
27435
27436         Merge argmatch cleanups from Bison.  Assume C89.
27437
27438         * lib/argmatch.c: Include config.h here, not in argmatch.h.
27439         Include stdlib.h, for EXIT_FAILURE.
27440         Always include <string.h>, since we assume C89.
27441         (EXIT_FAILURE): Remove pre-C89 bug workaround.
27442         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
27443         Include <stddef.h> instead, since it's all we need for size_t.
27444         (PARAMS): Remove.  All uses removed.
27445         (ARRAY_CARDINALITY): Do not bother to #undef.
27446         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
27447         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
27448         Remove unnecessary parentheses.
27449         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
27450         Insert necessary parentheses.
27451         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
27452         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
27453
27454 2002-11-19  Bruno Haible  <bruno@clisp.org>
27455
27456         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
27457         * lib/mbswidth.h: Include <stddef.h>, for size_t.
27458
27459         * lib/mbswidth.h (PARAMS): Remove macro.
27460         (mbswidth, mbsnwidth): Use ANSI C function declarations.
27461         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
27462
27463         * lib/gcd.h (PARAMS): Remove macro.
27464         (gcd): Use ANSI C function declarations.
27465         * lib/gcd.c (gcd): Likewise.
27466
27467 2002-11-15  Bruno Haible  <bruno@clisp.org>
27468
27469         * lib/strcspn.c: Include <stddef.h>.
27470         (strcspn): Use ANSI C function declaration. Change return type to
27471         size_t. Use NULL.
27472         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
27473         (strpbrk): Use NULL.
27474         * lib/strpbrk.h (PARAMS): Remove macro.
27475         (strpbrk): Use ANSI C function declaration.
27476         * lib/strstr.c: Don't include <sys/types.h>.
27477         * lib/strstr.h (PARAMS): Remove macro.
27478         (strstr): Use ANSI C function declarations.
27479
27480 2002-11-14  Karl Berry  <karl@gnu.org>
27481
27482         * config/mkinstalldirs: `do' on separate line, instead of
27483         `for var; do'.
27484
27485 2002-11-06  Bruno Haible  <bruno@clisp.org>
27486
27487         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
27488         * lib/gcd.c (gcd): Likewise.
27489
27490 2002-11-05  Bruno Haible  <bruno@clisp.org>
27491
27492         * lib/gcd.h: New file, from gettext-0.11.5.
27493         * lib/gcd.c: New file, from gettext-0.11.5.
27494
27495 2002-11-05  Bruno Haible  <bruno@clisp.org>
27496
27497         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
27498         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
27499         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
27500         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
27501
27502         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
27503         <libintl.h>.
27504         * lib/makepath.c: Include gettext.h instead of <locale.h> and
27505         <libintl.h>.
27506
27507         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
27508         * lib/human.c: Include gettext.h instead of <libintl.h>.
27509         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
27510         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
27511         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
27512         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
27513         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
27514         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
27515         (textdomain): Remove definition.
27516         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
27517
27518         * lib/long-options.c: Remove include of <libintl.h> and definition of
27519         _.
27520         * lib/same.c: Remove include of <libintl.h> and definition of _.
27521
27522 2002-11-04  Owen Taylor  <otaylor@redhat.com>
27523
27524         * lib/config.charset: A few additions for Solaris.
27525
27526 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
27527
27528         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
27529         * lib/localcharset.c (locale_charset): Declare as extern "C".
27530
27531 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
27532
27533         * lib/config.charset: msdos in uk_UA uses CP1125.
27534
27535 2002-11-04  Bruno Haible  <bruno@clisp.org>
27536
27537         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
27538         * lib/strcase.h: New file, from GNU gettext-0.11.5.
27539         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
27540         * lib/strstr.h: New file, from GNU gettext-0.11.5.
27541         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
27542
27543 2002-11-04  Bruno Haible  <bruno@clisp.org>
27544
27545         * lib/localcharset.c (locale_charset): Don't return an empty string.
27546
27547 2002-11-04  Bruno Haible  <bruno@clisp.org>
27548
27549         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
27550         aliases.
27551
27552 2002-11-04  Bruno Haible  <bruno@clisp.org>
27553
27554         * lib/config.charset: Update for newest glibc. Add canonical names
27555         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
27556
27557 2002-11-04  Bruno Haible  <bruno@clisp.org>
27558
27559         * lib/config.charset: Add support for NetBSD.
27560
27561 2002-11-04  Bruno Haible  <bruno@clisp.org>
27562
27563         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
27564
27565 2002-11-01  Bruno Haible  <bruno@clisp.org>
27566
27567         * configure.in: Add AC_CONFIG_AUX_DIR call.
27568         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
27569         test/Makefile.
27570         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
27571
27572 2002-09-28  Karl Berry  <karl@gnu.org>
27573
27574         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
27575         installed automake until the next release, since changes have been
27576         made.
27577
27578 2002-09-25  Karl Berry  <karl@gnu.org>
27579
27580         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
27581         * lib/getopt*: copy from libc/posix.
27582         * lib/gettext.h: copy from gettext.
27583         * lib/.cppi-disable: add strdup.c, gettext.h.
27584
27585 2002-09-25  Karl Berry  <karl@gnu.org>
27586
27587         * config/srclist.txt: enable gettext.h check.
27588         * config/config.{guess,sub}: update from prep.
27589         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
27590                 from automake 1.6.3.
27591         See srclist*.
27592
27593 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
27594
27595         * regex.c (PATFETCH): Remove the translating fetch.
27596         (PATFETCH_RAW): Rename to PATFETCH.
27597         (set_image_of_range): New fun.
27598         (SET_RANGE_TABLE_WORK_AREA): Use it.
27599         (regex_compile): Don't translate the pattern chars so eagerly.
27600         Only do it when inserting an `exactn' bytecode or when handling
27601         a char-range.
27602         (mutually_exclusive_p): Avoid empty statement.
27603
27604 2002-07-06  Jim Meyering  <meyering@lucent.com>
27605
27606         * m4/README: Don't mention Makefile.am.in.
27607         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
27608
27609 2002-07-01  Jim Meyering  <meyering@lucent.com>
27610
27611         * lib/c-stack.c: Include sys/time.h.
27612         From Volker Borchert.
27613
27614 2002-06-26  Paul Eggert  <eggert@twinsun.com>
27615
27616         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
27617
27618 2002-06-26  Paul Eggert  <eggert@twinsun.com>
27619
27620         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
27621         New macro.  Use it uniformly instead of
27622         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
27623         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
27624         reported by Vin Shelton.
27625
27626 2002-06-22  Paul Eggert  <eggert@twinsun.com>
27627
27628         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
27629         Do not assume SA_SIGINFO behavior.
27630         Bug reported by Jim Meyering on NetBSD 1.5.2.
27631
27632 2002-06-22  Jim Meyering  <meyering@lucent.com>
27633
27634         * m4/c-stack.m4: New file, from diffutils-2.8.2.
27635         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
27636
27637         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
27638         now that configure.ac uses AC_GNU_SOURCE.
27639         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
27640         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
27641
27642         Update to latest tools.  Suggestions from Paul Eggert.
27643         * m4/stdbool.m4: New file, from diffutils-2.8.2.
27644         * m4/gnu-source.m4: Update from diffutils-2.8.2.
27645         * m4/fnmatch.m4: Likewise.
27646         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
27647         to AC_HEADER_STDBOOL
27648
27649 2002-06-22  Jim Meyering  <meyering@lucent.com>
27650
27651         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
27652         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
27653
27654 2002-06-22  Jim Meyering  <meyering@lucent.com>
27655
27656         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
27657
27658         * lib/exitfail.c, exitfail.h: Likewise.
27659         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
27660
27661         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
27662         of fnmatch.h.
27663         (EXTRA_DIST): Add fnmatch_loop.c.
27664         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
27665
27666         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
27667         * lib/fnmatch.c: Update from diffutils-2.8.2.
27668         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
27669         * lib/fnmatch.h: Remove file.
27670
27671 2002-06-21  Jim Meyering  <meyering@lucent.com>
27672
27673         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
27674         * m4/mbrtowc.m4: Likewise.
27675
27676         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
27677         * m4/mbswidth.m4: Reflect name change:
27678         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
27679         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
27680
27681         * m4/lib-link.m4: Update from gettext-0.11.2.
27682         * m4/gettext.m4: Likewise.
27683
27684         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
27685         From Alfred M. Szmidt.
27686
27687 2002-06-18  Paul Eggert  <eggert@twinsun.com>
27688
27689         * lib/file-type.h: Report an error if neither S_ISREG nor
27690         S_IFREG is defined, instead of using a test specific to glibc
27691         2.2.  This should be safe, since POSIX requires S_ISREG and
27692         Unix Version 7 had S_IFREG.  We don't need to check for
27693         <sys/types.h> since we don't use any symbols that it defines.
27694
27695 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
27696
27697         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
27698         $@-t, so that each temporary file name is unique and valid in the first
27699         8 characters, for operation under DOS.
27700
27701 2002-06-15  Paul Eggert  <eggert@twinsun.com>
27702
27703         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
27704
27705 2002-06-15  Jim Meyering  <meyering@lucent.com>
27706
27707         Work even with DJGPP 2.03, which lacks support for symlinks.
27708         From Richard Dawe.
27709         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
27710         is defined.
27711         * lib/lchown.c (S_ISLNK): Likewise.
27712
27713 2002-06-15  Jim Meyering  <meyering@lucent.com>
27714
27715         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
27716         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
27717         have been included before this file.
27718
27719 2002-06-14  Jim Meyering  <meyering@lucent.com>
27720
27721         * lib/file-type.h: Use the version from diffutils-2.8.2.
27722         * lib/file-type.c: Likewise.
27723
27724 2002-06-07  Jim Meyering  <meyering@lucent.com>
27725
27726         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
27727         They're needed at least for NetBSD 1.5.2.
27728         ($statxfs_includes): Include those same headers.
27729         ($statxfs_includes): Include sys/vfs.h if available.
27730         ($statxfs_includes): Likewise for sys/statvfs.h.
27731         Check for the following members in both structs statfs and statvfs:
27732         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
27733
27734 2002-06-01  Jim Meyering  <meyering@lucent.com>
27735
27736         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
27737         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
27738
27739 2002-05-28  Jim Meyering  <meyering@lucent.com>
27740
27741         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
27742         Reported by Volker Borchert.
27743
27744 2002-05-27  Jim Meyering  <meyering@lucent.com>
27745
27746         Fix a problem seen only on nonconforming systems whereby ls.c's
27747         use of localtime, and then of gettimeofday would cause trouble:
27748         the localtime call used to initialize rpl_gettimeofday's save
27749         mechanism would clobber ls's current local time information so
27750         that in any long listing the first file would always be listed
27751         with date 1970-01-01.  Analysis by Volker Borchert.
27752
27753         * lib/gettimeofday.c (localtime): Undefine.
27754         (rpl_localtime): New function.
27755
27756 2002-05-27  Jim Meyering  <meyering@lucent.com>
27757
27758         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
27759         localtime.
27760
27761         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
27762         use the replacement function; it wouldn't resolve at link time.
27763         Reported by Volker Borchert.
27764
27765 2002-05-22  Jim Meyering  <meyering@lucent.com>
27766
27767         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
27768         file-type.h.
27769         * lib/file-type.h: New file.
27770         * lib/file-type.c (file_type): New file/function.  Extracted from
27771         diffutils.
27772
27773 2002-04-30  Jim Meyering  <meyering@lucent.com>
27774
27775         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
27776
27777 2002-04-29  Paul Eggert  <eggert@twinsun.com>
27778
27779         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
27780
27781 2002-04-29  Paul Eggert  <eggert@twinsun.com>
27782
27783         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
27784         Do not check for alloca.h (no longer used) or stdbool.h (was never
27785         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
27786
27787 2002-04-29  Paul Eggert  <eggert@twinsun.com>
27788
27789         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
27790
27791 2002-04-29  Jim Meyering  <meyering@lucent.com>
27792
27793         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
27794         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
27795         Use AC_FUNC_STRNLEN here instead.
27796
27797         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
27798         With autoconf-2.53a, it's part of AC_PROG_CC.
27799
27800 2002-04-28  Paul Eggert  <eggert@twinsun.com>
27801
27802         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
27803         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
27804
27805 2002-04-28  Paul Eggert  <eggert@twinsun.com>
27806
27807         * lib/sig2str.h, lib/sig2str.c: New files.
27808         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
27809
27810 2002-04-28  Paul Eggert  <eggert@twinsun.com>
27811
27812         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
27813         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
27814         of 127, since 64 is the largest conceivable number for ancient
27815         nonstandard hosts.
27816         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
27817
27818 2002-04-28  Jim Meyering  <meyering@lucent.com>
27819
27820         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
27821
27822 2002-04-24  Jim Meyering  <meyering@lucent.com>
27823
27824         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
27825         (jm_PREREQ): Use it.
27826
27827         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
27828         mach/mach.h fcntl.h.
27829         Check for this function: setlocale.
27830
27831 2002-04-24  Jim Meyering  <meyering@lucent.com>
27832
27833         * lib/gettext.h: New file, from Gettext.
27834         * lib/Makefile.am (INCLUDES): Remove -I../intl.
27835         (libfetish_a_SOURCES): Add gettext.h.
27836
27837 2002-04-16  Jim Meyering  <meyering@lucent.com>
27838
27839         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
27840         ut_pid, ut_id, ut_exit.
27841
27842 2002-04-16  Jim Meyering  <meyering@lucent.com>
27843
27844         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
27845         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
27846         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
27847
27848 2002-04-12  Jim Meyering  <meyering@lucent.com>
27849
27850         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
27851         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
27852         existence of the getmntinfo function.  Needed for Darwin 5.3.
27853
27854         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
27855         This is necessary at least on Darwin 5.3.
27856
27857         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
27858         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
27859         strnlen.o in the library, and that makes some versions of ranlib
27860         object.
27861
27862 2002-04-12  Jim Meyering  <meyering@lucent.com>
27863
27864         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
27865
27866 2002-04-09  Jim Meyering  <meyering@lucent.com>
27867
27868         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
27869         to be more precise.  Rather than saying we're checking whether the
27870         function `works', say what we're testing.
27871         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
27872         Reported by Bruno Haible.
27873
27874 2002-03-10  Jim Meyering  <meyering@lucent.com>
27875
27876         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
27877         Suggestion from Santiago Vila.
27878
27879 2002-03-08  Jim Meyering  <meyering@lucent.com>
27880
27881         * lib/rename.c: Mention that this wrapper is needed also on
27882         mips-dec-ultrix4.4 systems.
27883
27884 2002-03-02  Jim Meyering  <meyering@lucent.com>
27885
27886         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
27887         not HAVE_CLOCK_SETTIME.
27888
27889 2002-02-27  Paul Eggert  <eggert@twinsun.com>
27890
27891         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
27892         Check for clock_settime.
27893
27894 2002-02-27  Paul Eggert  <eggert@twinsun.com>
27895
27896         * lib/nanosleep.h: Rename to....
27897         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
27898
27899         * lib/gettime.c: New file.
27900         * lib/settime.c: New file.
27901         * lib/stime.c: Remove.
27902
27903         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
27904         timespec.h.  Remove nanosleep.h.
27905
27906 2002-02-25  Paul Eggert  <eggert@twinsun.com>
27907
27908         * m4/acl.m4: New file.
27909         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
27910         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
27911
27912 2002-02-25  Paul Eggert  <eggert@twinsun.com>
27913
27914         * lib/acl.c, lib/acl.h: New files.
27915         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
27916
27917 2002-02-24  Jim Meyering  <meyering@lucent.com>
27918
27919         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
27920         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
27921         cause trouble.  Reported by Nelson Beebe.
27922
27923 2002-02-23  Paul Eggert  <eggert@twinsun.com>
27924
27925         * lib/path-concat.c (xpath_concat): Reorder code to pacify
27926         compilers that don't know that xalloc_die never returns.
27927
27928 2002-02-20  Jim Meyering  <meyering@lucent.com>
27929
27930         * lib/getdate.c: Regenerate using bison-1.33.
27931
27932 2002-02-17  Jim Meyering  <meyering@lucent.com>
27933
27934         * config/config.guess (main): Don't use `head -1'; it's no longer
27935         portable. Use `sed 1q' instead.
27936
27937 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
27938
27939         * m4/codeset.m4: Upgrade to gettext-0.11.
27940         * m4/gettext.m4: Upgrade to gettext-0.11.
27941         * m4/glibc21.m4: Upgrade to gettext-0.11.
27942         * m4/iconv.m4: Upgrade to gettext-0.11.
27943         * m4/isc-posix.m4: Upgrade to gettext-0.11.
27944         * m4/lcmessage.m4: Upgrade to gettext-0.11.
27945         * m4/lib-ld.m4: New file, from gettext-0.11.
27946         * m4/lib-link.m4: New file, from gettext-0.11.
27947         * m4/lib-prefix.m4: New file, from gettext-0.11.
27948         * m4/progtest.m4: Upgrade to gettext-0.11.
27949
27950 2002-02-15  Paul Eggert  <eggert@twinsun.com>
27951
27952         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
27953         (jm_PREREQ): Use it.
27954
27955 2002-02-15  Paul Eggert  <eggert@twinsun.com>
27956
27957         * lib/posixver.c, lib/posixver.h: New files.
27958         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
27959
27960 2002-02-02  Paul Eggert  <eggert@twinsun.com>
27961             Bruno Haible  <bruno@clisp.org>
27962
27963         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
27964         (fwrite_success_callback): New declaration.
27965         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
27966         print_unicode_char. Call failure callback instead of error.
27967         (fwrite_success_callback): New function.
27968         (exit_failure_callback): New function.
27969         (fallback_failure_callback): New function.
27970         (print_unicode_char): Call unicode_to_mb.
27971
27972 2002-01-26  Jim Meyering  <meyering@lucent.com>
27973
27974         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
27975         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
27976
27977 2002-01-26  Jim Meyering  <meyering@lucent.com>
27978
27979         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
27980
27981 2002-01-22  Paul Eggert  <eggert@twinsun.com>
27982
27983         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
27984
27985 2002-01-22  Jim Meyering  <meyering@lucent.com>
27986
27987         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
27988         Otherwise, some versions of automake would omit the rule that makes
27989         Makefile from Makefile.in.
27990
27991 2002-01-21  Paul Eggert  <eggert@twinsun.com>
27992
27993         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
27994         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
27995         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
27996         (memcoll): Set errno to zero if there is no error.
27997
27998         * lib/quotearg.c (quotearg_buffer_restyled):
27999         Fix bug with quoting buffers containing NUL when backslashing escapes.
28000         This bug was exposed by the other changes in this patch.
28001         (quotearg_n_options): New arg ARGSIZE.
28002         All callers changed.
28003         (quoting_options_from_style): New function.
28004         (quotearg_n_style): Use it.
28005         (quotearg_n_style_mem): New function.
28006
28007         * lib/quotearg.h (quotearg_n_style_mem): New function.
28008
28009 2002-01-19  Jim Meyering  <meyering@lucent.com>
28010
28011         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
28012         Remove useless quotes: DF_PROG="df".
28013         * m4/strnlen.m4: New file.
28014
28015 2002-01-16  Paul Eggert  <eggert@twinsun.com>
28016
28017         * lib/backupfile.c (ISDIGIT): Comment fix.
28018         * lib/getdate.y (ISDIGIT): Likewise.
28019         * lib/posixtm.c (ISDIGIT, year): Likewise.
28020         * lib/strverscmp.c (ISDIGIT): Likewise.
28021         * lib/userspec.c (ISDIGIT): Likewise.
28022
28023 2002-01-16  Jim Meyering  <meyering@lucent.com>
28024
28025         * lib/getdate.y: Add three semicolons, each just before a closing
28026         brace. Bison (as of version 1.31) no longer papers over that mistake.
28027
28028 2002-01-05  Jim Meyering  <meyering@lucent.com>
28029
28030         * lib/version-etc.c (version_etc_copyright): Update copyright year.
28031
28032 2001-12-19  Paul Eggert  <eggert@twinsun.com>
28033
28034         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
28035         not silently exit merely because the output buffer happens to
28036         have nothing pending.
28037
28038 2001-12-18  Paul Eggert  <eggert@twinsun.com>
28039
28040         See the big note in ../ChangeLog.
28041         * lib/human.c (suffixes): Prefer K to k for 1024.
28042         (generate_suffix_backwards): New function.
28043         (human_readable_inexact): Use it.
28044         * lib/xstrtol.c (__xstrtol): If there is no number but there
28045         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
28046         Accept 'K' as well as 'k'.
28047
28048 2001-12-15  Jim Meyering  <meyering@lucent.com>
28049
28050         * lib/regex.h (__restrict_arr): Update from libc.
28051
28052         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
28053         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
28054         (STREQ): Define.
28055
28056 2001-12-14  Jim Meyering  <meyering@lucent.com>
28057
28058         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
28059         Suggestion from Bruno Haible.
28060
28061 2001-12-10  Jim Meyering  <meyering@lucent.com>
28062
28063         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
28064         xrealloc, Instead, include "xalloc.h".
28065         (initbuffer): Don't cast xmalloc return value to char*.
28066         (readline): Reword comment.
28067         Don't cast xrealloc return value to char*
28068         Return NULL, not 0.
28069
28070 2001-12-09  Jim Meyering  <meyering@lucent.com>
28071
28072         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
28073         about `signed and unsigned type in conditional expression'.
28074         * lib/posixtm.c (posix_time_parse): Likewise.
28075
28076         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
28077
28078         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
28079         to avoid a pedantic warning.
28080
28081         * lib/getstr.c: Don't include assert.h.
28082         (getstr): Remove warning-evoking assertions.
28083         Return -1 if offset parameter is out of bounds.
28084         Change the type of a local from int to size_t.
28085
28086         * lib/strftime.c (my_strftime_localtime_r): Include this function
28087         definition in the `#if ! HAVE_TM_GMTOFF' block.
28088
28089         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
28090         Include xalloc.h instead.
28091
28092 2001-12-02  Jim Meyering  <meyering@lucent.com>
28093
28094         * lib/tempname.c: Don't declare getenv, thus reverting the change of
28095         2001-11-18.  It's no longer necessary, now that stdlib.h is always
28096         included.
28097
28098         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
28099         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
28100
28101 2001-11-30  Akim Demaille  <akim@epita.fr>
28102
28103         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
28104         before being defined.
28105
28106 2001-11-27  Paul Eggert  <eggert@twinsun.com>
28107
28108         * lib/quotearg.h (quotearg_n, quotearg_n_style):
28109         First arg is int, not unsigned.
28110         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
28111         (SIZE_MAX, UINT_MAX): New macros.
28112         (quotearg_n_options): Abort if N is negative.
28113         Avoid overflow check on hosts where size_t is 64 bits and int
28114         is 32 bits, as overflow is impossible there.
28115         Fix off-by-one typo that caused unnecessary reallocation.
28116
28117 2001-11-27  Jim Meyering  <meyering@lucent.com>
28118
28119         * lib/tempname.c: Merge with version from libc.
28120         * lib/regex.c: Likewise.
28121
28122         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
28123         systems for which STDC_HEADERS is 0, it was not included, resulting in
28124         a warning about an integer-to-pointer conversion problem with getenv.
28125         Reported by Volker Borchert.
28126
28127 2001-11-26  Jim Meyering  <meyering@lucent.com>
28128
28129         * lib/gtod.h: Remove file.
28130         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
28131         * lib/gettimeofday.c: Don't include gtod.h.
28132         (GTOD_init): Remove function.
28133         (rpl_gettimeofday): Do its job here instead, rather than aborting.
28134         Suggestion from Volker Borchert.
28135
28136 2001-11-23  Jim Meyering  <meyering@lucent.com>
28137
28138         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
28139         it.
28140         * lib/hash.c (struct hash_table): Define it here instead.
28141
28142 2001-11-22  Jim Meyering  <meyering@lucent.com>
28143
28144         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
28145
28146 2001-11-20  Jim Meyering  <meyering@lucent.com>
28147
28148         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
28149         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
28150
28151 2001-11-19  Jim Meyering  <meyering@lucent.com>
28152
28153         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
28154         directory.  Use "conftestXXXXXX" as the template.
28155         Suggestion from Paul Eggert.
28156
28157         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
28158         immediately, so the test doesn't mistakenly hit the max-open-files
28159         limit.
28160
28161 2001-11-18  Paul Eggert  <eggert@twinsun.com>
28162
28163         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
28164         (TEMPORARIES): New macro.
28165         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
28166         removes an artificial limitation (e.g. HP-UX 10.20, where
28167         TMP_MAX is 17576).
28168
28169 2001-11-18  Jim Meyering  <meyering@lucent.com>
28170
28171         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
28172
28173 2001-11-18  Jim Meyering  <meyering@lucent.com>
28174
28175         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
28176         on SunOS 4.
28177
28178         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
28179         files will be created before anything else.
28180
28181 2001-11-17  Paul Eggert  <eggert@twinsun.com>
28182
28183         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
28184         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
28185
28186 2001-11-17  Jim Meyering  <meyering@lucent.com>
28187
28188         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
28189         Prompted by a report from Bob Proulx.
28190
28191         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
28192         Instead, require UTILS_FUNC_MKSTEMP.
28193
28194 2001-11-17  Jim Meyering  <meyering@lucent.com>
28195
28196         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
28197         Now, that's done as part of AC_FUNC_STRTOD.
28198
28199 2001-11-17  Jim Meyering  <meyering@lucent.com>
28200
28201         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
28202         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
28203         rather than group writable.  Patch by Juan F. Codagnone.
28204
28205         * lib/readtokens.c: Remove explicit declarations of xmalloc and
28206         xrealloc, Instead, include "xalloc.h".
28207
28208         * lib/mountlist.c: Include unlocked-io.h after all system headers.
28209         Remove explicit declarations of xmalloc, xrealloc,
28210         and xstrdup.  Instead, include "xalloc.h".
28211
28212         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
28213         unlocked-io.h.
28214         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
28215         Likewise.
28216         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
28217
28218         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
28219         Reported by Padraig Brady.
28220
28221         * lib/mkstemp.c: #undef mkstemp.
28222         Include config.h.
28223         (rpl_mkstemp): Rename from mkstemp.
28224         Protoize.
28225
28226 2001-11-16  Jim Meyering  <meyering@lucent.com>
28227
28228         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
28229         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
28230         determine the amount of total physical memory, use pstat_getstatic.
28231         HPUX-11 doesn't define _SC_PHYS_PAGES.
28232         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
28233         If sysconf couldn't be used to determine the amount of available
28234         physical memory, use both pstat_getstatic and pstat_getdynamic.
28235         Based on a patch from Bob Proulx.
28236
28237 2001-11-10  Jim Meyering  <meyering@lucent.com>
28238
28239         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
28240         (jm_PREREQ): Use it.
28241
28242 2001-11-09  Jim Meyering  <meyering@lucent.com>
28243
28244         * m4/jm-macros.m4: Require autoconf-2.52f.
28245         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
28246         Use these AC_-prefixed names, not the AM_-prefixed ones.
28247
28248         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
28249
28250 2001-11-05  Jim Meyering  <meyering@lucent.com>
28251
28252         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
28253
28254 2001-11-04  Jim Meyering  <meyering@lucent.com>
28255
28256         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
28257         $DEFS.
28258
28259 2001-11-03  Jim Meyering  <meyering@lucent.com>
28260
28261         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
28262         of AC_DEFUN.
28263
28264         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
28265         know the name of the variable in the macro definition.
28266
28267 2001-11-03  Jim Meyering  <meyering@lucent.com>
28268
28269         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
28270         in argmatch_to_argument call.
28271
28272         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
28273         argument.
28274
28275         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
28276         e.g., a fault due to an attempt to free a NULL pointer.
28277
28278 2001-11-01  Jim Meyering  <meyering@lucent.com>
28279
28280         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
28281         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
28282
28283 2001-11-01  Jim Meyering  <meyering@lucent.com>
28284
28285         * lib/dirfd.c, lib/dirfd.h: New files.
28286         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
28287
28288         * lib/hash.c (hash_print) [TESTING]: Clean up.
28289
28290 2001-10-22  Paul Eggert  <eggert@twinsun.com>
28291
28292         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
28293         to avoid a warning if -Wall.
28294
28295 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
28296
28297         * README: New file
28298         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
28299         (per RMS's instructions, this is now the canonical source)
28300         * lgpl/, gpl/: New directories.
28301
28302 2001-10-21  Paul Eggert  <eggert@twinsun.com>
28303
28304         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
28305
28306 2001-10-21  Jim Meyering  <meyering@lucent.com>
28307
28308         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
28309         this code would end up calling gettext even in packages built
28310         with --disable-nls.
28311         * lib/getopt.c (_): Likewise.
28312         * lib/regex.c (_): Likewise.
28313
28314 2001-10-20  Paul Eggert  <eggert@twinsun.com>
28315
28316         * m4/error.m4 (jm_PREREQ_ERROR):
28317         Do not invoke AC_CHECK_FUNCS with strerror_r, as
28318         AC_FUNC_STRERROR_R does that.
28319         Check for strerror declaration.
28320
28321         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
28322         are supposed to have them these days.
28323         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
28324         Merge changes from latest Autoconf CVS.
28325         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
28326         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
28327         POSIX decided to standardize on the int flavor of strerror_r.
28328
28329 2001-10-20  Paul Eggert  <eggert@twinsun.com>
28330
28331         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
28332         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
28333         Use strerror_r that is only a macro, even if it is not a function.
28334         (strerror): Check for HAVE_DECL_STRERROR before declaring.
28335         (private_strerror): Use prototypes, not old-style function definition.
28336         (print_errno_message): New function.
28337         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
28338         char*-flavored one.
28339         (error_tail, error, error_at_line): Use it.
28340
28341 2001-10-11  Jim Meyering  <meyering@lucent.com>
28342
28343         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
28344         and quote_n (1, ... to avoid clobbering a buffer.
28345
28346 2001-10-05  Jim Meyering  <meyering@lucent.com>
28347
28348         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
28349         hash-pjw.h.
28350         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
28351         * lib/hash-pjw.h: New file.
28352
28353 2001-09-30  Jim Meyering  <meyering@lucent.com>
28354
28355         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
28356         `struct fsstat' has the `f_fstypename' member.
28357         Use that to define FS_TYPE, which is now used to make
28358         the getfsstat link test tighter.
28359
28360 2001-09-30  Jim Meyering  <meyering@lucent.com>
28361
28362         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
28363         Include <sys/ucred.h>, for Apple Darwin.
28364         Include sys/mount.h and sys/fs_types.h only if available.
28365         (FS_TYPE): Define.
28366         (read_filesystem_list): Use FS_TYPE.
28367
28368 2001-09-29  Paul Eggert  <eggert@twinsun.com>
28369
28370         * lib/exclude.c (excluded_filename): 0 -> false, since it's
28371         a boolean context.
28372
28373 2001-09-29  Jim Meyering  <meyering@lucent.com>
28374
28375         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
28376         [one-argument getmntent function]): Include stdio.h before mntent.h.
28377         SunOS 4.1.x needs it for the declaration of `FILE'.
28378         Patch by Volker Borchert.
28379
28380         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
28381         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
28382         sys/fs_types.h, and make the link-test for getfsstat guard #include
28383         directives with appropriate #if HAVE_*_H tests so that we can
28384         detect getfsstat on Apple Darwin1.3.7 systems.
28385         Reported by Nelson Beebe.
28386         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
28387
28388 2001-09-28  Paul Eggert  <eggert@twinsun.com>
28389
28390         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
28391         #defines strtoimax.  Also treat the other strto* functions
28392         like strtoimax.
28393
28394         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
28395         Check for strtoul and strtoumax,
28396         as those declarations are made even in the signed case.
28397         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
28398         Likewise, for strtol and strtoimax.
28399
28400 2001-09-28  Paul Eggert  <eggert@twinsun.com>
28401
28402         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
28403         #defines strtoimax.  Also treat the other strto* functions
28404         like strtoimax.
28405
28406         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
28407         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
28408         (strtoimax, strtoumax): Do not declare if already defined as a macro.
28409
28410 2001-09-26  Jim Meyering  <meyering@lucent.com>
28411
28412         Most macros in unlocked-io.h had the wrong number of arguments.
28413         * lib/gen-uio: New script.
28414         (USE_UNLOCKED_IO): Define to 1 if not already defined.
28415         * lib/unlocked-io.hin: Remove file.
28416         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
28417         rather than trying to embed it here.
28418         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
28419         Reported by Padraig Brady.
28420
28421 2001-09-25  Volker Borchert  <bt@teknon.de>
28422
28423         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
28424         `result'.
28425
28426 2001-09-24  Jim Meyering  <meyering@lucent.com>
28427
28428         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
28429
28430 2001-09-23  Jim Meyering  <meyering@lucent.com>
28431
28432         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
28433         instead of the mere test for existence of mntent.h.  The latter
28434         would get a false-positive on AIX 3.4 systems.
28435         In the outer getmntent if-block, don't die if neither of the getmntent
28436         tests succeeds.  Instead, just fall through and continue with the
28437         remaining tests.
28438
28439 2001-09-23  Jim Meyering  <meyering@lucent.com>
28440
28441         * lib/mountlist.c: Remove useless parentheses in #if directives.
28442         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
28443         the deprecated MOUNTED symbol is no longer defined in mntent.h.
28444
28445 2001-09-22  Jim Meyering  <meyering@lucent.com>
28446
28447         * m4/gettext.m4: New file.  From gettext.
28448         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
28449         * m4/progtest.m4: Likewise
28450         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
28451         * m4/glibc21.m4: Likewise.
28452
28453         * m4/libintl.m4: Remove.  No longer used.
28454
28455 2001-09-22  Jim Meyering  <meyering@lucent.com>
28456
28457         * lib/localcharset.c: Update from latest gettext.
28458         * lib/config.charset: Likewise.
28459
28460 2001-09-20  Jim Meyering  <meyering@lucent.com>
28461
28462         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
28463         strtoimax.
28464         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
28465         strtoumax.
28466
28467 2001-09-20  Jim Meyering  <meyering@lucent.com>
28468
28469         * lib/xstrtol.c (strtoimax): Guard declaration with
28470         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
28471         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
28472         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
28473         (strtoumax): Likewise, for completeness (it wasn't necessary).
28474
28475 2001-09-17  Paul Eggert  <eggert@twinsun.com>
28476
28477         * lib/strtoimax.c (HAVE_LONG_LONG):
28478         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
28479         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
28480         to work around bug in IBM C compiler.
28481
28482 2001-09-17  Jim Meyering  <meyering@lucent.com>
28483
28484         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
28485         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
28486         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
28487         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
28488         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
28489         whenever the right hand side need not be expanded by the shell.
28490
28491 2001-09-16  Paul Eggert  <eggert@twinsun.com>
28492
28493         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
28494         library.  It's not correct, as some older glibcs are buggy.
28495         fnmatch wasn't fixed until glibc 2.2.
28496
28497         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
28498         special shell magic here.
28499
28500 2001-09-16  Jim Meyering  <meyering@lucent.com>
28501
28502         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
28503         * m4/jm-macros.m4: Require it.
28504
28505 2001-09-16  Jim Meyering  <meyering@lucent.com>
28506
28507         * lib/mkdir.c: New file.
28508
28509 2001-09-15  Jim Meyering  <meyering@lucent.com>
28510
28511         * m4/jm-macros.m4: Check for help2man.
28512
28513 2001-09-11  Jim Meyering  <meyering@lucent.com>
28514
28515         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
28516         The body, by Paul Eggert, was moved here from configure.in.
28517         * m4/jm-macros.m4: Require UTILS_HOST_OS.
28518
28519 2001-09-04  Paul Eggert  <eggert@twinsun.com>
28520
28521         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
28522         (jm_PREREQ): Use it.
28523
28524 2001-09-04  Paul Eggert  <eggert@twinsun.com>
28525
28526         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
28527         Use ssize_t, not int, to store result of readlink.
28528         Check for ssize_t overflow as well as size_t overflow,
28529         as POSIX says the result of readlink is implementation-defined
28530         when ssize_t overflows.
28531         Remove unnecessary cast to char*.
28532         Use free+malloc instead of realloc, as the storage doesn't need
28533         to be preserved and it's clearer and can be more efficient that way.
28534         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
28535         * lib/xreadlink.h (xreadlink): Update prototype.
28536
28537 2001-09-04  Paul Eggert  <eggert@twinsun.com>
28538
28539         * lib/xgetcwd.c: Revert some of the previous change; intead,
28540         fix the HAVE_GETCWD_NULL code to behave more like the
28541         !HAVE_GETCWD_NULL code used to.
28542
28543         Include "xalloc.h".
28544         (xgetcwd): Do not return NULL when memory is exhausted; instead,
28545         invoke xalloc_die.
28546
28547 2001-09-03  Paul Eggert  <eggert@twinsun.com>
28548
28549         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
28550         sys/param.h, as pathmax.h includes them.
28551
28552 2001-09-03  Paul Eggert  <eggert@twinsun.com>
28553
28554         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
28555         (jm_PREREQ_XGETCWD): New macro.
28556
28557         * m4/getcwd.m4: New file.
28558
28559 2001-09-03  Paul Eggert  <eggert@twinsun.com>
28560
28561         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
28562         like the HAVE_GETCWD_NULL code.
28563         Include pathmax.h if not HAVE_GETCWD.
28564         Do not include xalloc.h.
28565         (INITIAL_BUFFER_SIZE): New symbol.
28566         Do not use xmalloc / xrealloc, since the caller is responsible for
28567         handling errors.  Preserve errno around `free' during failure.
28568         Do not overrun buffer when using getwd.
28569
28570 2001-09-03  Paul Eggert  <eggert@twinsun.com>
28571
28572         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
28573         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
28574         getcwd (NULL, 0).
28575
28576 2001-09-03  Paul Eggert  <eggert@twinsun.com>
28577
28578         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
28579         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
28580         spotted by Jim Meyering.
28581
28582 2001-09-03  Jim Meyering  <meyering@lucent.com>
28583
28584         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
28585         failure.
28586
28587 2001-09-02  Jim Meyering  <meyering@lucent.com>
28588
28589         * lib/error.c: Update from GNU libc.
28590
28591 2001-09-01  Jim Meyering  <meyering@lucent.com>
28592
28593         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
28594         Used by df.
28595
28596 2001-09-01  Jim Meyering  <meyering@lucent.com>
28597
28598         * lib/xreadlink.c: New file.
28599         * lib/xreadlink.h: New file.
28600         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
28601         xreadlink.h.
28602
28603         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
28604         doesn't conflict with sparc Solaris 7's definition in
28605         /usr/include/sys/int_types.h.
28606
28607         * lib/exclude.c: Use `""', not `<>' to #include non-system header
28608         files.
28609         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
28610         and strncasecmp as r-values.  Unixware didn't have declarations.
28611
28612 2001-08-31  Paul Eggert  <eggert@twinsun.com>
28613
28614         * lib/xstrtol.h: Add copyright notice.
28615         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
28616         LONGINT_INVALID_SUFFIX_CHAR.
28617
28618 2001-08-31  Paul Eggert  <eggert@twinsun.com>
28619
28620         * lib/xstrtol.c (strtoimax): New decl.
28621
28622 2001-08-31  Paul Eggert  <eggert@twinsun.com>
28623
28624         * lib/xgetcwd.c: Don't include pathmax.h.
28625         Include stdlib.h and unistd.h if available.
28626         Include xalloc.h.
28627         (xmalloc, xstrdup, free): Remove decls.
28628         (xgetcwd): Don't assume sizes fit in unsigned.
28629         Check for overflow when computing sizes.
28630         Simplify reallocation code.
28631
28632 2001-08-31  Paul Eggert  <eggert@twinsun.com>
28633
28634         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
28635         a directory's st_size can have an arbitrary value, so the old
28636         usage could waste an arbitrary amount of memory.  All uses
28637         changed.
28638         * lib/savedir.h: Update prototype.
28639
28640 2001-08-31  Paul Eggert  <eggert@twinsun.com>
28641
28642         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
28643
28644         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
28645         old strtoimax.c.
28646
28647         Also, make the following further changes to make this file's
28648         configuration more similar to that of strtol.c:
28649         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
28650         (strtoumax, uintmax_t, strtoull, strtol): Remove.
28651         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
28652         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
28653         changed to signed values.
28654
28655         And make the following changes as well:
28656         Fix copyright notice, as 1999 was missing.
28657         (verify): New macro.
28658         (strtoimax): Check sizes at compile-time, not run-time.
28659         Prefer strtol to strtoll if both work.
28660         (main): Remove; it was not that useful and was a pain to maintain.
28661
28662         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
28663
28664 2001-08-31  Jim Meyering  <meyering@lucent.com>
28665
28666         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
28667         Use an initial, malloc'd, buffer of length 128 rather than
28668         a statically allocated one of length 1024.
28669
28670 2001-08-30  Paul Eggert  <eggert@twinsun.com>
28671
28672         Simplify code, partly by assuming autoconf 2.52 semantics.
28673
28674         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
28675
28676         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
28677         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
28678         All uses removed.
28679         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
28680         Move AC_REQUIRE to next-to-top level, to avoid confusion.
28681         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
28682         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
28683         jm_AC_HEADER_INTTYPES_H.
28684         * m4/jm-macros.m4 (jm_MACROS): Likewise.
28685
28686         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
28687
28688         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
28689         Quote first arg of AC_DEFUN.
28690         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
28691         since they are needed to parse the include file even if we need
28692         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
28693         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
28694         but with opposite signedness.
28695
28696 2001-08-30  Paul Eggert  <eggert@twinsun.com>
28697
28698         Merge 'exclude' changes from tar 1.13.22.
28699         This fixes one or two unlikely storage allocation overflow bugs,
28700         but doesn't change user-visible behavior otherwise.
28701
28702 2001-08-30  Paul Eggert  <eggert@twinsun.com>
28703
28704         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
28705         (jm_PREREQ_EXCLUDE): New macro.
28706
28707 2001-08-30  Paul Eggert  <eggert@twinsun.com>
28708
28709         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
28710         tm to be declared.
28711
28712 2001-08-30  Paul Eggert  <eggert@twinsun.com>
28713
28714         * lib/hash.c: Remove '2001' from copyright notice.
28715
28716 2001-08-30  Paul Eggert  <eggert@twinsun.com>
28717
28718         * lib/full-write.h: New file.
28719         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
28720         * lib/full-write.c: Correct credits, as cccp.c no longer
28721         exists and anyway it was so heavily changed from the old cccp
28722         code as to be unrecognizable.  Include full-write.h.
28723         (full_write) Return size_t, with short writes meaning failure.
28724         All callers changed.  This fixes a bug with large buffers
28725         on 64-bit hosts.
28726         * lib/utime.c: Include full-write.h.
28727
28728 2001-08-30  Paul Eggert  <eggert@twinsun.com>
28729
28730         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
28731         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
28732         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
28733         Include if available.
28734         (<xalloc.h>): Include
28735         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
28736         (verify): New macro.  Use it to verify that EXCLUDE macros do not
28737         collide with FNM macros.
28738         (struct patopts): New struct.
28739         (struct exclude): Use it, as exclude patterns now come with options.
28740         (new_exclude): Support above changes.
28741         (new_exclude, add_exclude_file):
28742         Initial size must now be a power of two to simplify overflow checking.
28743         (free_exclude, fnmatch_no_wildcards): New function.
28744         (excluded_filename): No longer requires options arg, as the options
28745         are determined by add_exclude.  Now returns bool, not int.
28746         (excluded_filename, add_exclude):
28747         Add support for the fancy new exclusion options.
28748         (add_exclude, add_exclude_file): Now takes int options arg.
28749         Check for arithmetic overflow when computing sizes.
28750         (add_exclude_file): xrealloc might modify errno, so don't
28751         realloc until after errno might be used.
28752
28753         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
28754         New macros.
28755         (free_exclude): New decl.
28756         (add_exclude, add_exclude_file): Now takes int options arg.
28757         (excluded_filename): No longer requires options arg, as the options
28758         are determined by add_exclude.  Now returns bool, not int.
28759
28760 2001-08-30  Paul Eggert  <eggert@twinsun.com>
28761
28762         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
28763
28764 2001-08-27  Jim Meyering  <meyering@lucent.com>
28765
28766         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
28767
28768         * lib/version-etc.c (N_): Remove definition.
28769         Revert most of last change.
28770         Instead, simply don't mark the `Copyright...' string for translation.
28771         Based on advice from Paul Eggert.
28772
28773         * lib/strtoxmax.c: Tweak comment.
28774
28775 2001-08-26  Jim Meyering  <meyering@lucent.com>
28776
28777         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
28778
28779         * m4/xstrtoimax.m4: New file.
28780         * m4/xstrtoumax.m4: Add comments explaining why we
28781         AC_REPLACE_FUNCS(strtol).
28782
28783 2001-08-26  Jim Meyering  <meyering@lucent.com>
28784
28785         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
28786         of copyright with `%s' so translators don't get an untranslated
28787         message in 2002.
28788         (COPYRIGHT_YEAR): Define.
28789         (version_etc): Use fprintf rather than fputs.
28790         Suggestion from Ulrich Drepper.
28791
28792         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
28793
28794         * lib/strtoll.c: New file, from GNU libc.
28795         * lib/xstrtoimax.c: New file.
28796
28797         * lib/xstrtol.h: Add xstrtoimax.
28798         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
28799         * lib/strtoimax.c: New file.  Likewise, but first define
28800         STRTOUXMAX_SIGNED.
28801
28802         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
28803         ...
28804         * lib/strtoxmax.c: ... then renamed to this.
28805
28806 2001-08-18  Paul Eggert  <eggert@twinsun.com>
28807
28808         * m4/inttypes.m4: Add AC_PREREQ(2.13).
28809         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
28810         (jm_AC_TYPE_INTMAX_T): New macro.
28811         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
28812
28813         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
28814
28815         * m4/longlong.m4: Renamed from ulonglong.m4.
28816         * m4/inttypes.m4: Renamed from inttypes_h.m4.
28817         * m4/uintmax_t.m4: Removed.
28818
28819 2001-08-13  Paul Eggert  <eggert@twinsun.com>
28820
28821         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
28822         Port to Solaris 8, where 'sed' requires a space after the 'r'
28823         command, and where sh dislikes "$/".  Clean up the spacing a bit.
28824         Redirect output to $tmp just once.
28825
28826 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
28827
28828         * lib/addext.c (<errno.h>): Include.
28829         (errno): Declare if not defined.
28830         (addext): Work correctly when pathconf returns -1 and leaves
28831         errno alone because there is no limit.  Also, work even if
28832         pathconf returns a value greater than SIZE_MAX.
28833
28834 2001-08-12  Jim Meyering  <meyering@lucent.com>
28835
28836         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
28837         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
28838         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
28839         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
28840         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
28841         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
28842         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
28843         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
28844         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
28845         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
28846         utime.m4, utimes.m4, xstrtoumax.m4:
28847         Quote the first argument in each use of AC_DEFUN.
28848
28849 2001-08-12  Jim Meyering  <meyering@lucent.com>
28850
28851         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
28852         Simply `return getcwd (NULL, 0);'.
28853         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
28854         Use 1300 as initial value for length, not PATH_MAX.
28855
28856         * lib/pathmax.h: Clean up cpp syntax.
28857
28858 2001-08-12  Jim Meyering  <meyering@lucent.com>
28859
28860         * lib/gettimeofday.c: New file.
28861         * lib/gtod.h: New file.
28862         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
28863
28864 2001-08-05  Jim Meyering  <meyering@lucent.com>
28865
28866         * m4/jm-macros.m4: Require autoconf-2.52.
28867
28868 2001-08-04  Jim Meyering  <meyering@lucent.com>
28869
28870         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
28871         stmt, to get in sync with glibc.
28872
28873 2001-08-03  Paul Eggert  <eggert@twinsun.com>
28874
28875         The following changes are from gettext 0.10.39 as maintained by
28876         Bruno Haible.
28877
28878         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
28879         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
28880         with inverted sense.  All uses changed.
28881
28882         * lib/mbswidth.c: Don't include <limits.h>.
28883         Include <stdlib.h> and <string.h> unconditionally.
28884         (iswcntrl, mbsinit, ISCNTRL): New macros.
28885         (mbsnwidth): Use K&R style function declarations.
28886         Don't bother checking for MB_LEN_MAX == 1, since the compiler
28887         can optimize it when MB_CUR_MAX == 1.
28888         The width of control characters is zero, not 1.
28889
28890 2001-08-03  Paul Eggert  <eggert@twinsun.com>
28891
28892         The following changes are from gettext 0.10.39 as maintained by
28893         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
28894
28895         * m4/codeset.m4: Upgrade to serial AM1.
28896         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
28897         all uses changed.  Quote first arg of AC_DEFUN.
28898         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
28899
28900         * m4/iconv.m4: Upgrade to serial AM2.
28901         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
28902         Add --with-libconv-prefix.
28903         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
28904         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
28905         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
28906         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
28907         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
28908
28909         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
28910         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
28911         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
28912         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
28913         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
28914         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
28915         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
28916         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
28917         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
28918
28919         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
28920         string.h any more.
28921
28922         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
28923         not the default value.
28924
28925         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
28926         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
28927         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
28928         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
28929         Also check for iswcntrl, used for wcwidth fallback.
28930         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
28931         to Autoconf 2.13.
28932
28933 2001-08-03  Jim Meyering  <meyering@lucent.com>
28934
28935         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
28936         as it was in the original.  Reported by Paul Eggert.
28937
28938 2001-07-16  Jim Meyering  <meyering@lucent.com>
28939
28940         * m4/gettimeofday.m4: New file.
28941         Prompted by a report from Bernhard Baehr.
28942
28943 2001-07-15  Jim Meyering  <meyering@lucent.com>
28944
28945         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
28946         stuff. Now it's in ../Makefile.cfg.
28947
28948 2001-07-15  Jim Meyering  <meyering@lucent.com>
28949
28950         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
28951         (BUILT_SOURCES): Add unlocked-io.h.
28952         (io_functions): Define.
28953         (unlocked-io.h): New rule.
28954         (DISTCLEANFILES): Add unlocked-io.h.
28955         (all-local): Depend on unlocked-io.h, to ensure it is created.
28956
28957         * lib/unlocked-io.hin: New file
28958
28959         * lib/regex.c: Update from glibc.
28960
28961 2001-07-05  Jim Meyering  <meyering@lucent.com>
28962
28963         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
28964         recommendation.
28965         (libfetish_a_SOURCES): Put all .h files here instead.
28966         Remove a thus-exposed (better checks in automake) duplicate and
28967         two unnecessary .h files.
28968
28969 2001-07-04  Jim Meyering  <meyering@lucent.com>
28970
28971         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
28972         that generates jm-glibc-io.m4 so that it doesn't trigger any make
28973         distcheck failure.
28974
28975 2001-07-02  Jim Meyering  <meyering@lucent.com>
28976
28977         The following changes were prompted by suggestions from Bruno Haible.
28978
28979         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
28980         is now generated.
28981         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
28982         definition of EXTRA_DIST.
28983         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
28984         ensure that the generated file is created/updated whenever the list
28985         of $(unlocked_functions) is changed.
28986         (jm-glibc-io.m4): New rule.
28987         (unlocked-io.h): New rule -- currently unused.
28988
28989 2001-06-24  Jim Meyering  <meyering@lucent.com>
28990
28991         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
28992         unmatched right bracket, rather than kludging it with an extra,
28993         falsely-matching quote in a comment.  Patch by Akim Demaille.
28994
28995 2001-06-11  Jim Meyering  <meyering@lucent.com>
28996
28997         * lib/regex.c: Update from GNU libc.
28998
28999 2001-05-27  Jim Meyering  <meyering@lucent.com>
29000
29001         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
29002         Check for ut_type in struct utmp.
29003
29004 2001-05-27  Jim Meyering  <meyering@lucent.com>
29005
29006         * lib/readutmp.h (UT_TYPE): Define.
29007
29008 2001-05-24  Jim Meyering  <meyering@lucent.com>
29009
29010         * lib/argmatch.c: Include "quote.h".
29011         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
29012         quote function.  Reported by Göran Uddeborg.
29013
29014 2001-05-22  Jim Meyering  <meyering@lucent.com>
29015
29016         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
29017         now that we use the package-supplied version unconditionally.
29018         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
29019
29020 2001-05-21  Jim Meyering  <meyering@lucent.com>
29021
29022         * m4/regex.m4: Change a couple backticks to single quotes to avoid
29023         shell syntax errors.
29024
29025 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
29026
29027         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
29028
29029 2001-05-20  Paul Eggert  <eggert@twinsun.com>
29030
29031         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
29032         Don't bother to check library strftime, since
29033         we'll be using our own my_strftime function anyway.
29034         Define my_strftime instead of strftime.
29035
29036 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
29037
29038         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
29039         which is not yet declared.
29040
29041 2001-05-15  Jim Meyering  <meyering@lucent.com>
29042
29043         * m4/regex.m4: Use proper quoting so brackets appear in the test
29044         program.
29045         Reported by, and with help from, Bruno Haible.
29046
29047 2001-05-13  Jim Meyering  <meyering@lucent.com>
29048
29049         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
29050         undefined.
29051
29052 2001-05-11  Paul Eggert  <eggert@twinsun.com>
29053
29054         dirname code cleanup.  base_name now behaves more compatibly
29055         with POSIX basename when given file names that have trailing
29056         slashes, and similarly for dir_name.  Add new primitives
29057         base_len and dir_len.  Put the directory-name-related decls
29058         into dirname.h.
29059
29060         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
29061         * lib/backupfile.c (base_name): Likewise.
29062         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
29063         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
29064         * lib/makepath.c (strip_trailing_slashes): Likewise.
29065         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
29066         ISSLASH): Likewise.
29067         * lib/rename.c (strip_trailing_slashes): Likewise.
29068         * lib/same.c (base_name): Likewise.
29069         * lib/stripslash.c (ISSLASH): Likewise.
29070
29071         * lib/addext.c: Include <dirname.h> after size_t is defined.
29072         * lib/backupfile.c: Likewise.
29073
29074         * lib/addext.c (addext): Use base_len to trim redundant
29075         trailing slashes instead of doing it ourselves.
29076         But do not trim the last slash if it is not redundant.
29077
29078         * lib/backupfile.c (find_backup_file_name,
29079         max_backup_version): Use base_len instead of rolling it ourselves.
29080         Handle the case of "" and (on DOS) "C:" correctly.
29081
29082         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
29083         needed. Include <string.h>, <dirname.h>.
29084         (base_name): Allow file names ending in slashes, other than names
29085         that are all slashes.  In this case, return the basename followed
29086         by the slashes.  This is more general, and can be used in places
29087         where the original base_name purposely had an assertion failure.
29088         (base_len): New function.
29089
29090         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
29091         Do not include <assert.h>; no longer needed.
29092         Include xalloc.h.
29093         (memrchr): Remove decl.
29094         (dir_name_r): Remove.
29095         (dir_len): Renamed from dirlen.  All callers changed.
29096         Rewrite in terms of base_name, for simplicity and consistency.
29097         (dir_name): Never return NULL.  All callers changed.
29098         Do not include <stdlib.h> in test program; no longer needed.
29099         return 0; is fine for test program.
29100
29101         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
29102         New macros.
29103         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
29104
29105         * lib/path-concat.c (path_concat): Use base_len to compute
29106         base length, not strlen; this means we cannot rely on memcpy
29107         to null-terminate.
29108
29109         * lib/same.c (STREQ): Remove.
29110         (same_name): Handle the case where the basename ends in trailing '/'.
29111
29112         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
29113         a slash was stripped.  Do not strip the last slash after a
29114         file system prefix.
29115
29116 2001-05-11  Paul Eggert  <eggert@twinsun.com>
29117
29118         * lib/Makefile.am (libfetish_a_SOURCES):
29119         Add strftime.c, since we now compile it on all hosts.
29120
29121         * lib/strftime.c (my_strftime):
29122         Define to nstrftime if emacs, but only if my_strftime is not defined.
29123         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
29124         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
29125         Add one more extra argument: a nanoseconds value.
29126         All uses changed.
29127         (ns): New macro.
29128         (my_strftime function): Add %N format.
29129         (emacs_strftimeu): Renamed from emacs_strftime,
29130         with extra ut argument.
29131
29132 2001-05-09  Paul Eggert  <eggert@twinsun.com>
29133
29134         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
29135
29136 2001-04-21  Jim Meyering  <meyering@lucent.com>
29137
29138         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
29139         doesn't interfere.
29140
29141 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
29142
29143         * m4/ftruncate.m4: Check for chsize.
29144         Link with ftruncate.o unconditionally if ftruncate is missing.
29145         This was required when cross-compiling to i586-mingw32msvc.
29146
29147 2001-04-08  Jim Meyering  <meyering@lucent.com>
29148
29149         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
29150         recomputed; that's necessary when the offset spans a DST transition.
29151         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
29152
29153 2001-04-02  Jim Meyering  <meyering@lucent.com>
29154
29155         * lib/regex.h, regex.c: Update from GNU libc.
29156
29157 2001-03-24  Jim Meyering  <meyering@lucent.com>
29158
29159         * m4/jm-macros.m4: Require autoconf-2.49d.
29160
29161 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
29162
29163         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
29164
29165 2001-03-19  Paul Eggert  <eggert@twinsun.com>
29166
29167         * lib/version-etc.c (version_etc_copyright): Update to 2001.
29168
29169 2001-03-17  Jim Meyering  <meyering@lucent.com>
29170
29171         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
29172         now that the version in autoconf is equivalent.
29173         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
29174
29175         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
29176         Suggestion from Akim Demaille.
29177
29178         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
29179         (jm_PREREQ_TEMPNAME): New function.
29180
29181 2001-03-16  Paul Eggert  <eggert@twinsun.com>
29182
29183         * lib/tempname.c (uint64_t): Define to uintmax_t if
29184         not defined, and if UINT64_MAX is not defined.
29185         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
29186         Reported by John David Anglin.
29187
29188 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
29189
29190         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
29191         resolve alias if codeset is empty.
29192         * lib/config.charset (BeOS): Use wildcard syntax.
29193
29194 2001-03-13  Jim Meyering  <meyering@lucent.com>
29195
29196         * lib/path-concat.c (path_concat)
29197         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
29198         concatenating e.g., `C:' and `foo'.
29199         From Bruno Haible.
29200
29201 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
29202
29203         * lib/localcharset.c (locale_charset): Don't use
29204         setlocale(LC_CTYPE,NULL). Don't return NULL.
29205         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
29206
29207 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
29208
29209         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
29210         support for DOS/DJGPP.
29211
29212 2001-03-01  Paul Eggert  <eggert@twinsun.com>
29213
29214         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
29215         lacks mkstemp.  Compile our own tempname.c if we compile our own
29216         mkstemp.c, as mkstemp relies on tempname.
29217
29218 2001-03-01  Jim Meyering  <meyering@lucent.com>
29219
29220         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
29221         AH_VERBATIM really does output its argument verbatim.
29222
29223 2001-02-28  Paul Eggert  <eggert@twinsun.com>
29224
29225         * lib/Makefile.am (libfetish_a_SOURCES):
29226         Add dup-safer.c, fopen-safer.c.
29227         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
29228
29229         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
29230         * lib/unistd-safer.h: New files.
29231
29232 2001-02-25  Paul Eggert  <eggert@twinsun.com>
29233
29234         The mkstemp replacement is taken from glibc 2.2.2, with some
29235         portability fixes for use outside glibc, as follows:
29236
29237         * lib/tempname.c (struct_stat64): New macro.
29238         (direxists, __gen_tempname): Use it.
29239         This avoids a portability problem with Solaris 8.
29240
29241         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
29242         (<stddef.h>, <stdint.h>, <string.h>):
29243         Include only if STDC_HEADERS || _LIBC.
29244         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
29245         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
29246         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
29247         (__set_errno): Define this macro if <errno.h> doesn't.
29248         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
29249         Define these macros if <stdio.h> doesn't.
29250         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
29251         Define these macros if <sys/stat.h>
29252         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
29253         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
29254         __xstat64): Define if not _LIBC.
29255         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
29256         (__gen_tempname): Invoke gettimeofday only if
29257         HAVE_GETTIMEOFDAY || _LIBC;
29258         otherwise, fall back on plain "time".
29259         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
29260
29261         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
29262
29263         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
29264
29265 2001-02-18  Paul Eggert  <eggert@twinsun.com>
29266
29267         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
29268
29269 2001-02-17  Paul Eggert  <eggert@twinsun.com>
29270
29271         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
29272         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
29273         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
29274         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
29275
29276 2001-02-17  Paul Eggert  <eggert@twinsun.com>
29277
29278         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
29279         Remove workaround macros for hosts that have mbrtowc but not
29280         mbstate_t, as we now insist on proper declarations for both
29281         before using mbrtowc.
29282
29283 2001-02-17  Jim Meyering  <meyering@lucent.com>
29284
29285         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
29286         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
29287         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
29288         UnixWare 7.1.1.
29289
29290         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
29291         rather than AC_CACHE_VAL.
29292
29293 2001-02-17  Jim Meyering  <meyering@lucent.com>
29294
29295         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
29296         around included file name.
29297
29298         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
29299
29300         * lib/strftime.c: Update from GNU libc (the only changes were to
29301         comments).
29302
29303 2001-02-17  Jim Meyering  <meyering@lucent.com>
29304
29305         * lib/regex.c: Update from libc.
29306
29307 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
29308
29309         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
29310         clash.
29311
29312 2001-02-16  Paul Eggert  <eggert@twinsun.com>
29313
29314         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
29315         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
29316         Reported by Mark Hounschell via Paul Eggert.
29317
29318 2001-02-07  Jim Meyering  <meyering@lucent.com>
29319
29320         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
29321
29322 2001-02-05  Jim Meyering  <meyering@lucent.com>
29323
29324         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
29325         it includes the patch required for `large file' support with at least
29326         HP-UX's 10.20 /bin/cc.
29327
29328 2001-02-03  Jim Meyering  <meyering@lucent.com>
29329
29330         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
29331         AS_IF, now that it works once again (mysteriously).
29332         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
29333
29334 2001-01-30  Jim Meyering  <meyering@lucent.com>
29335
29336         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
29337         * m4/chown.m4: Rename conftestchown to conftest.chown.
29338         * m4/rename.m4: s/conftestdir/conftest.d1/ and
29339         s/conftestdir2/conftest.d2/.
29340         * m4/utimes.m4: s/conftestdata/conftest.data/
29341         Inspired by Pavel Roskin's change in autoconf.
29342
29343 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
29344
29345         * lib/config.charset: Update for FreeBSD 4.2.
29346
29347 2001-01-27  Jim Meyering  <meyering@lucent.com>
29348
29349         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
29350         a use of AS_IF.
29351         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
29352
29353 2001-01-26  Jim Meyering  <meyering@lucent.com>
29354
29355         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
29356         quotearg.c includes it.
29357
29358 2001-01-26  Jim Meyering  <meyering@lucent.com>
29359
29360         * lib/quotearg.c: Include stddef.h.
29361         * lib/quote.c: Include stddef.h.
29362         Reported by Axel Kittenberger.
29363
29364         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
29365         line in double quotes so that it evokes a better diagnostic.
29366         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
29367         Reported by Axel Kittenberger.
29368
29369 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
29370
29371         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
29372         as if it was a `charset'.
29373
29374 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
29375
29376         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
29377         has const.
29378
29379 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
29380
29381         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
29382         to avoid a warning.  Add back 'const' to inptr.
29383
29384 2001-01-20  Jim Meyering  <meyering@lucent.com>
29385
29386         Be sure that headers are checked before used in code compiled
29387         for the type checks.
29388         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
29389         In place of that, invoke jm_CHECK_ALL_TYPES.
29390         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
29391         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
29392         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
29393         The check for ssize_t was mistakenly run before the test for unistd.h.
29394
29395         The configure-time check for stdbool.h was missing.
29396         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
29397         (jm_PREREQ_HASH): New function.
29398
29399 2001-01-17  Jim Meyering  <meyering@lucent.com>
29400
29401         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
29402         for autoconf-2.49c.
29403         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
29404
29405 2001-01-16  Jim Meyering  <meyering@lucent.com>
29406
29407         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
29408         From Bruno Haible.
29409
29410 2001-01-14  Jim Meyering  <meyering@lucent.com>
29411
29412         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
29413         foo and bar.  Create conftestdir/ in the script, not in the C code.
29414         Remove directories in the script, not in the C code.
29415         Remove conftestdir{,2} before trying to create the directory.
29416         Make the entire configure script fail if the mkdir fails.
29417
29418 2001-01-14  Jim Meyering  <meyering@lucent.com>
29419
29420         * lib/rename.c: New file.  From Volker Borchert.
29421         Include stdlib.h, string.h or strings.h, and xalloc.h.
29422         Use strip_trailing_slashes rather than open-coding it.
29423
29424 2001-01-03  Paul Eggert  <eggert@twinsun.com>
29425
29426         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
29427
29428 2001-01-03  Jim Meyering  <meyering@lucent.com>
29429
29430         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
29431         of local `inptr' to avoid warning with some system declarations of
29432         iconv.
29433
29434 2001-01-02  Volker Borchert  <bt@teknon.de>
29435
29436         * m4/rename.m4: New file.
29437         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
29438
29439 2001-01-01  Jim Meyering  <meyering@lucent.com>
29440
29441         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
29442         even on systems with utmpx.h.  It's necessary for the declaration of
29443         utmp's ut_user member.  Reported by Andreas Jaeger.
29444
29445         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
29446         available. They are required for the declarations of getgrgid and
29447         getpwuid resp.
29448         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
29449         Reported by Andreas Jaeger.
29450
29451 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
29452
29453         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
29454         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
29455         so `make install' also works in VPATH builds.
29456
29457 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
29458
29459         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
29460         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
29461         can be used in subdirectories.
29462
29463 2000-12-29  Paul Eggert  <eggert@twinsun.com>
29464
29465         * lib/modechange.c: Do not assume that mode_t uses the
29466         traditional octal encoding.  E.g. "chmod 1 FOO" should set
29467         the other-execute bit of FOO even if S_IXOTH != 1.
29468
29469         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
29470         WOTH, XOTH, ALLM): New macros.
29471         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
29472          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
29473         Use them.
29474         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
29475         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
29476         (mode_compile):
29477         No need to use uintmax_t; unsigned long is long enough.
29478         Don't bother to get suffix since we don't use it.
29479
29480 2000-12-26  Jim Meyering  <meyering@lucent.com>
29481
29482         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
29483         better with autoheader.
29484
29485 2000-12-24  Jim Meyering  <meyering@lucent.com>
29486
29487         * lib/hash.c (is_prime): Return explicit boolean values.
29488         (hash_get_first): Return NULL to appease Irix5.6's 89.
29489         Reported by Nelson Beebe.
29490
29491 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
29492
29493         * lib/localcharset.c (locale_charset): Add support for Win32.
29494
29495 2000-12-18  Paul Eggert  <eggert@twinsun.com>
29496
29497         * lib/physmem.h, lib/physmem.c: New files.
29498
29499         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
29500         (noinst_HEADERS): Add physmem.h.
29501
29502         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
29503         't' for compatibility with Solaris 8 sort.
29504
29505 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
29506
29507         * lib/config.charset: Add support for BeOS.
29508
29509 2000-12-17  Jim Meyering  <meyering@lucent.com>
29510
29511         * m4/dos.m4 (jm_AC_DOS): New file and macro.
29512         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
29513
29514 2000-12-16  Jim Meyering  <meyering@lucent.com>
29515
29516         This bug had a serious impact on chown: `chown N:M FILE' (for integer
29517         N and M) would have treated it like `chown N:N FILE'.
29518
29519         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
29520
29521 2000-12-16  Jim Meyering  <meyering@lucent.com>
29522
29523         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
29524         SHELLS_FILE to a file name that's useful on djgpp systems.
29525         Include stdlib.h.
29526         (ADDITIONAL_DEFAULT_SHELLS): Define.
29527         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
29528         Based mostly on a patch from Prashant TR.
29529
29530 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
29531
29532         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
29533         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
29534         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
29535
29536 2000-12-08  Andreas Schwab  <schwab@suse.de>
29537
29538         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
29539         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
29540
29541 2000-12-07  Jim Meyering  <meyering@lucent.com>
29542
29543         * lib/stripslash.c (ISSLASH): Define.
29544         (strip_trailing_slashes): Use ISSLASH rather than comparing against
29545         `/'.
29546         From Prashant TR.
29547
29548         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
29549         (dir_name_r): Declare this function as static.
29550         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
29551         manifest itself on a name containing a mix of slashes and
29552         backslashes.
29553         Make this function work with names starting with a DOS-style
29554         drive letter and colon prefix.
29555         (dir_name): Append `.' if necessary.
29556         Based mostly on patches from Prashant TR and Eli Zaretskii.
29557
29558         * lib/dirname.h (dir_name_r): Remove prototype.
29559
29560 2000-12-06  Paul Eggert  <eggert@twinsun.com>
29561
29562         * m4/off_t-format.m4: Remove this file.
29563         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
29564
29565 2000-12-06  Jim Meyering  <meyering@lucent.com>
29566
29567         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
29568         replacement strtoull, we may well need the replacement strtoul, too.
29569         Check for declarations of strtoul and strtoull.
29570         Check for strtol.  Mainly as a cue to cause automake to include
29571         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
29572         Check for limits.h -- strtol.c needs it.
29573
29574 2000-12-05  Jim Meyering  <meyering@lucent.com>
29575
29576         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
29577
29578 2000-12-04  Jim Meyering  <meyering@lucent.com>
29579
29580         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
29581         Also include memory.h, stdlib.h, unistd.h if appropriate.
29582         Reported by Andreas Jaeger (conflicting declaration of malloc).
29583
29584 2000-12-02  Jim Meyering  <meyering@lucent.com>
29585
29586         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
29587         * m4/jm-macros.m4 (jm_MACROS): require it.
29588
29589 2000-12-02  Jim Meyering  <meyering@lucent.com>
29590
29591         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
29592
29593 2000-12-01  Paul Eggert  <eggert@twinsun.com>
29594
29595         * lib/memrchr.c: Include <config.h> before any system include file.
29596
29597 2000-11-30  Jim Meyering  <meyering@lucent.com>
29598
29599         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
29600
29601 2000-11-30  Jim Meyering  <meyering@lucent.com>
29602
29603         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
29604
29605 2000-11-29  Paul Eggert  <eggert@twinsun.com>
29606
29607         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
29608
29609 2000-11-26  Jim Meyering  <meyering@lucent.com>
29610
29611         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
29612
29613 2000-11-22  Paul Eggert  <eggert@twinsun.com>
29614
29615         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
29616         size of (size_t) -1; it's not portable.
29617
29618 2000-11-17  Jim Meyering  <meyering@lucent.com>
29619
29620         * lib/strstr.c: Update from GNU libc.
29621
29622 2000-11-17  Akim Demaille  <akim@epita.fr>
29623
29624         * lib/obstack.h: Formatting changes.
29625         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
29626         prevent type checking.
29627         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
29628         cast the value to (void *): assigning a `foo *' to a `void *'
29629         variable is valid.
29630         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
29631
29632 2000-11-16  Jim Meyering  <meyering@lucent.com>
29633
29634         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
29635
29636 2000-11-11  Jim Meyering  <meyering@lucent.com>
29637
29638         * lib/error.c: Add a couple #includes, merging from GNU libc version.
29639
29640 2000-11-10  Jim Meyering  <meyering@lucent.com>
29641
29642         * lib/obstack.h: Update from GNU libc.
29643         * lib/obstack.c: Likewise.
29644
29645 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
29646
29647         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
29648
29649 2000-11-06  Paul Eggert  <eggert@twinsun.com>
29650
29651         * lib/getusershell.c (setusershell): Use rewind rather than
29652         fseek/fseeko, to avoid configuration hassles with fseeko.
29653         Don't bother opening SHELLS_FILE if shellstream is NULL;
29654         it's not necessary.
29655
29656 2000-11-05  Jim Meyering  <meyering@lucent.com>
29657
29658         * lib/makepath.h (make_dir): Declare.
29659         * lib/makepath.c (make_dir): Remove `static' attribute.
29660         Tweak a comment.
29661
29662 2000-11-04  Jim Meyering  <meyering@lucent.com>
29663
29664         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
29665
29666 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
29667
29668         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
29669         last one in a bucket, advance to the next bucket.
29670
29671 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
29672
29673         * lib/fnmatch.c: Do not comment out all the code if we are using
29674         the GNU C library, because in some cases we are replacing buggy
29675         code in the GNU C library itself.
29676
29677 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
29678
29679         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
29680         (regex_compile): Catch bogus \(\1\).
29681
29682 2000-10-30  Paul Eggert  <eggert@twinsun.com>
29683
29684         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
29685         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
29686         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
29687
29688 2000-10-30  Paul Eggert  <eggert@twinsun.com>
29689
29690         * lib/error.h, getline.h, modechange.h:
29691         Remove "2000" from Copyright line, as the file hasn't been
29692         changed this year other than in the copyright notice.
29693
29694         * lib/xalloc.h: Add "2000" to Copyright line, as this file
29695         was changed this year.
29696
29697 2000-10-29  Jim Meyering  <meyering@lucent.com>
29698
29699         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
29700         renaming.
29701         * m4/ls-mntd-fs.m4: Likewise
29702
29703 2000-10-29  Jim Meyering  <meyering@lucent.com>
29704
29705         * lib/xstat.in: Fix grammar in comment.
29706
29707 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
29708
29709         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
29710         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
29711         doesn't define __restrict_arr.
29712
29713 2000-10-28  Jim Meyering  <meyering@lucent.com>
29714
29715         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
29716         (jm_PREREQ_MEMCHR): New function.
29717
29718 2000-10-28  Jim Meyering  <meyering@lucent.com>
29719
29720         * lib/memchr.c: Update from libc.
29721         Adjust for portability:
29722         [HAVE_STDLIB_H]: Include stdlib.h.
29723         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
29724         Undef __memchr, too.
29725         [!weak_alias]: Define __memchr to memchr.
29726
29727         * lib/regex.c: Update from libc.
29728         * lib/regex.h: Likewise.
29729         * lib/getopt1.c: Likewise.
29730         * lib/memcmp.c: Likewise.
29731
29732         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
29733         Avoid using fseek, when possible -- it's broken by design.
29734         Patch by Ulrich Drepper.
29735
29736 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
29737
29738         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
29739         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
29740         Giving in to popular pressure to shut up the compiler with casts.
29741
29742 2000-10-26  Jim Meyering  <meyering@lucent.com>
29743
29744         * lib/strftime.c: Update from libc.
29745
29746 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
29747
29748         * regex.c: More `unsigned char' -> `re_char' changes.
29749         Also change several `int' into `re_wchar_t'.
29750         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
29751         (PUSH_FAILURE_POINTER): Don't cast any more.
29752         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
29753         We want GCC to complain, since this piece of code makes
29754         re_match non-reentrant, which *should* be fixed.
29755         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
29756         (EXTEND_BUFFER): Use RETALLOC.
29757         (SET_LIST_BIT): Don't cast.
29758         (re_wchar_t): New type.
29759         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
29760         that those two functions will always properly return.
29761         (IMMEDIATE_QUIT_CHECK): Cast to void.
29762         (analyse_first): Use recursion rather than an explicit stack.
29763         (re_compile_fastmap): Can't fail anymore.
29764         (re_search_2): Don't check re_compile_fastmap for failure.
29765         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
29766         Now also sets the new value (passed in a new argument).
29767         (re_match_2_internal): Use it.
29768         Also, use a new var `reg' of type size_t when looping through regs
29769         rather than reuse the inappropriate `mcnt'.
29770
29771 2000-10-25  Jim Meyering  <meyering@lucent.com>
29772
29773         * lib/obstack.c: Update from libc.
29774
29775 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
29776
29777         * regex.c (regex_compile): Change the way of handling a range from
29778         a char less than 256 to a char not less than 256.
29779
29780 2000-10-24  Andrew Innes  <andrewi@gnu.org>
29781
29782         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
29783         NT-Emacs only.
29784         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
29785         so that re_search functions only quit when callers expect them to.
29786
29787 2000-10-23  Jim Meyering  <meyering@lucent.com>
29788
29789         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
29790         wrong.  That set_locale call must not have any side effects.
29791         From Paul Eggert.
29792
29793 2000-10-22  Jim Meyering  <meyering@lucent.com>
29794
29795         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
29796         [CYCLIC]: Remove now-unused definition.
29797
29798         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
29799         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
29800         Suggestion from Ulrich Drepper.
29801
29802 2000-10-21  Jim Meyering  <meyering@lucent.com>
29803
29804         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
29805         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
29806         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
29807
29808 2000-10-21  Jim Meyering  <meyering@lucent.com>
29809
29810         * lib/dirname.c (memrchr): Declare if necessary.
29811         (dir_name): Remove the restriction that there be no
29812         trailing slashes.  Now, this code skips past them, effectively
29813         ignoring them.
29814         [TEST_DIRNAME] (main): New unit tests.
29815
29816         * lib/memrchr.c: New file from GNU libc.
29817         Undef __memrchr, too.
29818         [!weak_alias]: Define __memrchr to memrchr.
29819         Guard weak_alias use with `#ifdef weak_alias'.
29820
29821 2000-10-21  Jim Meyering  <meyering@lucent.com>
29822
29823         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
29824         (dir_name): Use dir_name_r.
29825         * lib/dirname.h (dir_name_r): Declare it.
29826
29827 2000-10-17  Jim Meyering  <meyering@lucent.com>
29828
29829         * lib/quote.h (PARAMS): Define and use.
29830         Reported by Akim Demaille.
29831
29832         * lib/getopt.c: Update from libc.
29833
29834 2000-10-16  Jim Meyering  <meyering@lucent.com>
29835
29836         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
29837         setlocale.
29838         From Jan Fedak.
29839
29840 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
29841
29842         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
29843
29844 2000-09-25  Jim Meyering  <meyering@lucent.com>
29845
29846         * lib/md5.h (rol): Define (from GnuPG).
29847
29848         * lib/sha.c: Give credit (GnuPG) where due.
29849         (M): Use rol rather than open-coding it.
29850         Add a FIXME comment.
29851
29852 2000-09-21  Jim Meyering  <meyering@lucent.com>
29853
29854         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
29855         Reported by Michael Stone.
29856
29857 2000-09-20  Jim Meyering  <meyering@lucent.com>
29858
29859         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
29860         (noinst_HEADERS): Add sha.h.
29861         Based on code from Scott G. Miller and from GnuPG.
29862
29863 2000-09-18  Jim Meyering  <meyering@lucent.com>
29864
29865         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
29866         LIBS. Otherwise, everyone ends up linking with -lelf for some
29867         configurations.
29868         Reported by Mike Stone.
29869
29870 2000-09-15  Jim Meyering  <meyering@lucent.com>
29871
29872         * lib/regex.c: Update from libc.
29873
29874 2000-09-10  Jim Meyering  <meyering@lucent.com>
29875
29876         * lib/getopt.c (_getopt_internal): Update from glibc.
29877
29878 2000-09-09  Jim Meyering  <meyering@lucent.com>
29879
29880         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
29881         think it should be used as a general replacement for isascii.
29882         * lib/fnmatch.c: Likewise.
29883         * lib/mbswidth.c: Likewise
29884         * lib/regex.c: Likewise.
29885
29886         Don't use atoi.
29887         * lib/userspec.c: Include sys/param.h and limits.h.
29888         Include xstrtol.h.
29889         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
29890         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
29891         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
29892         UID, GID.  Check range.
29893
29894 2000-09-06  Jim Meyering  <meyering@lucent.com>
29895
29896         * lib/getopt.c (_getopt_internal): Update from glibc.
29897
29898 2000-08-30  Jim Meyering  <meyering@lucent.com>
29899
29900         * lib/strftime.c: Merge in changes from GNU libc.
29901
29902 2000-08-26  Jim Meyering  <meyering@lucent.com>
29903
29904         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
29905         * m4/fpending.m4: New file.
29906
29907 2000-08-26  Jim Meyering  <meyering@lucent.com>
29908
29909         * lib/closeout.c: Include "__fpending.h".
29910         (close_stdout_status): Return right away if there's nothing to flush.
29911
29912         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
29913         * lib/__fpending.c: New file.
29914         * lib/__fpending.h: New file.
29915
29916 2000-08-20  Jim Meyering  <meyering@lucent.com>
29917
29918         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
29919         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
29920         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
29921
29922 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
29923
29924         Improve fileutils installation on systems where running
29925         programs (like install) can't be unlinked.
29926         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
29927         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
29928
29929 2000-08-07  Paul Eggert  <eggert@twinsun.com>
29930
29931         Standardize on "memory exhausted" instead of "Memory exhausted"
29932         or "virtual memory exhausted".
29933         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
29934         "virtual memory exhausted".
29935         * lib/same.c (same_name): Invoke xalloc_die instead of printing
29936         our own message.
29937         * lib/userspec.c (parse_user_spec): Likewise.
29938         * lib/bumpalloc.h: comment fix
29939         * lib/same.c, userspec.c: Include xalloc.h.
29940
29941         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
29942         not char *const and pointing to a constant array.
29943         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
29944         (xrealloc): Comment fix.
29945
29946         * lib/userspec.c (parse_user_spec):
29947         Don't translate a message until just before returning,
29948         to avoid unnecessary translation.
29949
29950 2000-08-07  Jim Meyering  <meyering@lucent.com>
29951
29952         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
29953         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
29954         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
29955         getgroups.c, gethostname.c, getopt.h, group-member.c,
29956         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
29957         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
29958         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
29959         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
29960         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
29961         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
29962         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
29963         yesno.c: Back out Copyright date changes for each file with no change
29964         this year.  This eases coordination with other programs using the same
29965         source code modules.  From Paul Eggert.
29966
29967 2000-08-06  Paul Eggert  <eggert@twinsun.com>
29968
29969         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
29970         not char, for compatibility with glibc 2.1.3 strftime.c.
29971
29972 2000-08-03  Greg McGary  <greg@mcgary.org>
29973
29974         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
29975         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
29976         (EXTEND_BUFFER): Use them.
29977
29978 2000-08-01  Jim Meyering  <meyering@lucent.com>
29979
29980         * lib/dirname.c (ISSLASH): Define.
29981         (BACKSLASH_IS_PATH_SEPARATOR): Define.
29982         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
29983         both `\' and `/' may be use as path separators.
29984         Based on a patch from Prashant TR.
29985
29986 2000-07-31  Paul Eggert  <eggert@twinsun.com>
29987
29988         * lib/quotearg.c (quotearg_n_options): Don't make the initial
29989         slot vector a constant, since it might get modified.
29990
29991 2000-07-31  Jim Meyering  <meyering@lucent.com>
29992
29993         * lib/xmalloc.c: Use `virtual memory exhausted', not
29994         `Memory exhausted'.
29995         * lib/obstack.c (print_and_abort): Likewise.
29996
29997 2000-07-30  Paul Eggert  <eggert@twinsun.com>
29998
29999         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
30000         buffer, so that the caller can always quote one small
30001         component of a "memory exhausted" message in slot 0.
30002         From a suggestion by Jim Meyering.
30003
30004 2000-07-30  Jim Meyering  <meyering@lucent.com>
30005
30006         * lib/makepath.c (make_path): Quote the other instance, too.
30007
30008         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
30009         (STATIC_BUF_SIZE): Define.
30010         (quotearg_n_options): Use only statically allocated storage when
30011         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
30012         than STATIC_BUF_SIZE.
30013
30014 2000-07-29  Jim Meyering  <meyering@lucent.com>
30015
30016         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
30017         * lib/dirname.c (dir_name): Likewise.
30018
30019         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
30020         `/'.
30021
30022         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
30023         (dir_name): Assert that there are no trailing slashes.
30024
30025 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
30026
30027         * lib/mbswidth.h (mbswidth): Add a flags argument.
30028         (mbswidth): New declaration.
30029         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
30030         * lib/mbswidth.c (mbswidth): Add a flags argument.
30031         (mbsnwidth): New function.
30032
30033 2000-07-24  Jim Meyering  <meyering@lucent.com>
30034
30035         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
30036
30037 2000-07-23  Paul Eggert  <eggert@twinsun.com>
30038
30039         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
30040
30041 2000-07-23  Paul Eggert  <eggert@twinsun.com>
30042
30043         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
30044         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
30045         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
30046         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
30047         invoke multibyte primitives.
30048
30049 2000-07-23  Paul Eggert  <eggert@twinsun.com>
30050
30051         * lib/quotearg.c:
30052         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
30053         so that mbstate_t is always defined.
30054
30055         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
30056         be 1 in at least one GCC installation, and this configuration
30057         error is likely to be common.  Ignoring MB_LEN_MAX hurts
30058         performance on hosts that have mbrtowc but have only unibyte
30059         locales, but I assume these hosts are rare.
30060
30061 2000-07-23  Paul Eggert  <eggert@twinsun.com>
30062
30063         * lib/mbswidth.c (_XOPEN_SOURCE):
30064         Don't define; this causes problems on Solaris 7.
30065         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
30066
30067 2000-07-23  Jim Meyering  <meyering@lucent.com>
30068
30069         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
30070         too: getgrgid, getpwuid, getuid.
30071
30072 2000-07-23  Jim Meyering  <meyering@lucent.com>
30073
30074         * lib/basename.c (base_name): Add an assertion.
30075
30076 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
30077
30078         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
30079         shadow its mbsinit function.
30080
30081 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
30082
30083         * lib/mbswidth.h: New file.
30084         * lib/mbswidth.c: New file.
30085         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
30086         (noinst_HEADERS): Add mbswidth.h.
30087
30088 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
30089
30090         * lib/config.charset: Add support for FreeBSD. Improve support for
30091         HP-UX and IRIX 6.
30092
30093 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
30094
30095         * m4/mbswidth.m4: New file.
30096         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
30097
30098 2000-07-15  Jim Meyering  <meyering@lucent.com>
30099
30100         * lib/makepath.c: Include quote.h.
30101         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
30102         corresponding argument in a `quote (...)' call.
30103         Give better diagnostics.
30104
30105         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
30106         (noinst_HEADERS): Add quote.h.
30107
30108         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
30109         from tar's src/misc.c.
30110         * lib/quote.h: New file.  Prototypes for same.
30111
30112 2000-07-14  Paul Eggert  <eggert@twinsun.com>
30113
30114         From a suggestion by Bruno Haible.
30115         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
30116         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
30117         to decide whether to define the BeOS workaround macro;
30118         this adjusts to the change to AC_MBSTATE_T.
30119
30120 2000-07-14  Jim Meyering  <meyering@lucent.com>
30121
30122         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
30123         jm_AC_TYPE_UINTMAX_T.
30124
30125 2000-07-13  Paul Eggert  <eggert@twinsun.com>
30126
30127         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
30128
30129         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
30130         quotearg_buffer_restyled): Add support for
30131         clocale_quoting_style.  Undo previous change to
30132         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
30133         and "{RIGHT QUOTATION MARK}" msgids.
30134
30135 2000-07-10  Paul Eggert  <eggert@twinsun.com>
30136
30137         From a suggestion by Bruno Haible.
30138         * m4/mbstate_t.m4 (AC_MBSTATE_T):
30139         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
30140         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
30141         and mbstate_t, to a single-part test that simply defines mbstate_t.
30142         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
30143         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
30144
30145 2000-07-10  Jim Meyering  <meyering@lucent.com>
30146
30147         * m4/strerror_r.m4: Mirror the correction made in autoconf.
30148
30149         * m4/gnu-source.m4: Output to confdefs.h directly.
30150         Suggestion from Akim Demaille.
30151
30152 2000-07-09  Paul Eggert  <eggert@twinsun.com>
30153
30154         The old behavior of quoting `like this' doesn't look good with
30155         newer, ISO-style fonts.  See:
30156         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
30157
30158         Instead, quote "like this" by default.  Let the translator
30159         tailor the locale-specific quoting behavior by providing
30160         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
30161
30162         * lib/quotearg.c (N_): New macro.
30163         (gettext_default): New function.
30164         (quotearg_buffer_restyled): Use
30165         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
30166         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
30167
30168 2000-07-09  Jim Meyering  <meyering@lucent.com>
30169
30170         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
30171         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
30172
30173         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
30174         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
30175
30176 2000-07-09  Jim Meyering  <meyering@lucent.com>
30177
30178         * lib/Most files: Update copyright dates to include 2000.
30179
30180 2000-07-08  Jim Meyering  <meyering@lucent.com>
30181
30182         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
30183         if not defined.
30184         (xgethostname): Remove now-unnecessary #ifdef.
30185         Move declaration of `err' into loop where it's used.
30186
30187 2000-07-05  Paul Eggert  <eggert@twinsun.com>
30188         and Bruno Haible  <haible@clisp.cons.org>
30189
30190         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
30191         only if the test for an object-type mbstate_t fails.  This
30192         prevents us from mistakenly reporting that mbstate_t is a
30193         system object type after we "#define mbstate_t int" to work
30194         around its lack.
30195
30196 2000-07-05  Paul Eggert  <eggert@twinsun.com>
30197         and Bruno Haible  <haible@clisp.cons.org>
30198
30199         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
30200
30201 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
30202
30203         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
30204         to strerror_r.
30205         Include <ctype.h> for use of isalpha.
30206
30207 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
30208
30209         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
30210         by allocating a larger buffer. Test the gethostname return value for
30211         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
30212         returns an error and ENAMETOOLONG isn't defined.
30213
30214 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
30215
30216         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
30217         dimension.
30218
30219 2000-07-04  Jim Meyering  <meyering@lucent.com>
30220
30221         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
30222         of the deprecated AC_CHECKING.
30223
30224 2000-07-04  Jim Meyering  <meyering@lucent.com>
30225
30226         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
30227         Reported by Bruno Haible.
30228
30229 2000-07-04  Jim Meyering  <meyering@lucent.com>
30230
30231         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
30232         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
30233         lacks mbrtowc.
30234
30235 2000-07-03  Paul Eggert  <eggert@twinsun.com>
30236
30237         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
30238         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
30239
30240 2000-07-03  Paul Eggert  <eggert@twinsun.com>
30241         and Bruno Haible  <haible@clisp.cons.org>
30242
30243         * lib/quotearg.c (mbrtowc):
30244         Assign to *pwc, and return 1 only if result is nonzero.
30245         (iswprint): Use ISPRINT when substituting our own mbrtowc.
30246
30247 2000-07-03  Jim Meyering  <meyering@lucent.com>
30248
30249         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
30250
30251 2000-07-03  Jim Meyering  <meyering@lucent.com>
30252
30253         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
30254         This is necessary to get a definition of e.g., UTMP_FILE on
30255         HP-UX 10.20.
30256         From Bob Proulx.
30257
30258 2000-07-02  Jim Meyering  <meyering@lucent.com>
30259
30260         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
30261
30262         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
30263         AC_LIBOBJ(function_name).
30264         * m4/chown.m4: Likewise.
30265         * m4/fnmatch.m4: Likewise.
30266         * m4/ftruncate.m4: Likewise.
30267         * m4/getgroups.m4: Likewise.
30268         * m4/getline.m4: Likewise.
30269         * m4/group-member.m4: Likewise.
30270         * m4/jm-macros.m4: Likewise.
30271         * m4/lstat.m4: Likewise.
30272         * m4/malloc.m4: Likewise.
30273         * m4/memcmp.m4: Likewise.
30274         * m4/nanosleep.m4: Likewise.
30275         * m4/putenv.m4: Likewise.
30276         * m4/realloc.m4: Likewise.
30277         * m4/regex.m4: Likewise.
30278         * m4/stat.m4: Likewise.
30279         * m4/strftime.m4: Likewise.
30280
30281 2000-07-02  Jim Meyering  <meyering@lucent.com>
30282
30283         * lib/quotearg.c (mbstate_t): Don't define here.
30284
30285 2000-07-02  Jim Meyering  <meyering@lucent.com>
30286
30287         * lib/nanosleep.c (SIGCONT): Define if not already defined.
30288
30289 2000-07-01  Jim Meyering  <meyering@lucent.com>
30290
30291         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
30292
30293 2000-07-01  Jim Meyering  <meyering@lucent.com>
30294
30295         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
30296         problem.
30297
30298 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
30299
30300         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
30301         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
30302
30303 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
30304
30305         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
30306         per change in ../m4/ls-mntd-fs.m4.
30307         (read_filesystem_list): Ignore symbolic links.
30308
30309 2000-06-29  Jim Meyering  <meyering@lucent.com>
30310
30311         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
30312         for declaration of strcmp.
30313
30314         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
30315
30316         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
30317         Avoid warning by casting result to `char *' to remove `const'.
30318
30319 2000-06-28  Jim Meyering  <meyering@lucent.com>
30320
30321         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
30322         included by quotearg.c, for which we perform this test.  From
30323         Bruno Haible.
30324
30325 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
30326
30327         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
30328         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
30329         <utmpx.h> exists, put readutmp.o into LIBOBJS.
30330
30331 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
30332
30333         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
30334
30335 2000-06-26  Paul Eggert  <eggert@twinsun.com>
30336
30337         savedir now sets errno on failure and invokes xmalloc to get memory.
30338         Fix a couple of other minor bugs while we're at it.
30339
30340         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
30341         (NAMLEN): Remove macro.
30342         (malloc, realloc): Remove decls.
30343         (stpcpy): Likewise.
30344         ("xalloc.h"): Include.
30345         (NAME_SIZE_DEFAULT): New macro.
30346         (savedir): Use xmalloc / xrealloc to allocate memory.
30347         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
30348         Skip "" directory entries.
30349         Use strlen to calculate directory entry length, since the old method
30350         is rarely used these days and isn't worth supporting.
30351         Don't use a pointer after freeing it.
30352         Check for integer overflow when calculating allocation size.
30353         Use memcpy to copy entries, instead of stpcpy.
30354         Set errno properly when returning NULL.
30355         Check for readdir error.
30356
30357 2000-06-26  Jim Meyering  <meyering@lucent.com>
30358
30359         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
30360
30361 2000-06-25  Jim Meyering  <meyering@lucent.com>
30362
30363         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
30364         Linux header bug when _XOPEN_SOURCE is defined to 500.
30365
30366 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
30367
30368         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
30369         deficiency.
30370
30371 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
30372
30373         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
30374         Include xalloc.h.
30375         Don't include <stdlib.h>.  Don't declare malloc, realloc.
30376
30377 2000-06-24  Jim Meyering  <meyering@lucent.com>
30378
30379         * m4/strerror_r.m4: Revive this file -- to try out an experimental
30380         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
30381         for which strerror does return char*, but which lacks a conveniently
30382         accessible declaration of the function.  If the compile-test says
30383         strerror_r doesn't work, then resort to a `run'-test that works on
30384         BeOS and segfaults on DEC Unix.
30385
30386 2000-06-24  Jim Meyering  <meyering@lucent.com>
30387
30388         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
30389
30390 2000-06-23  Paul Eggert  <eggert@twinsun.com>
30391
30392         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
30393         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
30394
30395 2000-06-23  Paul Eggert  <eggert@twinsun.com>
30396
30397         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
30398         (mbrtowc, mbstate_t): Define substitutes if
30399         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
30400         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
30401         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
30402
30403 2000-06-23  Jim Meyering  <meyering@lucent.com>
30404
30405         * m4/afs.m4: Add missing AC_MSG_RESULT.
30406         Reported by Bruno Haible.
30407
30408         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
30409         Suggestion from Bruno Haible.
30410
30411 2000-06-23  Jim Meyering  <meyering@lucent.com>
30412
30413         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
30414
30415 2000-06-21  Jim Meyering  <meyering@lucent.com>
30416
30417         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
30418
30419 2000-06-21  Jim Meyering  <meyering@lucent.com>
30420
30421         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
30422         (noinst_HEADERS): Add getstr.h.
30423
30424         * lib/getline.c (getstr): Move into a separate file.
30425         * lib/getstr.c (getstr): New file, extracted from getline.c, with
30426         the following changes: new parameter, delim2; both delim[12]
30427         parameters have type `int', not `char'.  The latter would lose
30428         with 8-bit delimiters.
30429         * lib/getstr.h: New file.
30430
30431 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
30432
30433         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
30434         than 1024, return a memory chunk of least possible size, instead
30435         of size PATH_MAX + 2. In the loop, increment the size proportionally.
30436         Use free/xmalloc instead of xrealloc to avoid copying for very long
30437         paths.
30438
30439 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
30440
30441         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
30442         the empty string.
30443
30444 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
30445
30446         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
30447         address, not strdup.  Include <stdlib.h> and don't declare free().
30448
30449 2000-06-19  Jim Meyering  <meyering@lucent.com>
30450
30451         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
30452
30453 2000-06-18  Jim Meyering  <meyering@lucent.com>
30454
30455         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
30456
30457         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
30458         `checking whether...' message to be consistent with that of the
30459         lstat test.
30460
30461 2000-06-18  Jim Meyering  <meyering@lucent.com>
30462
30463         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
30464         Besides, these days every porting target provides a mkdir function.
30465
30466         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
30467         needed. (this snippet comes from src/system.h).
30468
30469 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
30470
30471         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
30472
30473 2000-06-15  Paul Eggert  <eggert@twinsun.com>
30474
30475         * lib/human.c (adjust_value): New function.
30476         (human_readable_inexact): Apply rounding style even when
30477         printing approximate values.
30478
30479 2000-06-14  Paul Eggert  <eggert@twinsun.com>
30480
30481         * lib/human.c (human_readable_inexact): Allow an input block
30482         size that is not a multiple of the output block size, and vice versa.
30483         Reported by Piergiorgio Sartor.
30484
30485 2000-06-14  Paul Eggert  <eggert@twinsun.com>
30486
30487         * lib/getdate.y (get_date): Apply relative times after time
30488         zone indicator, not before.  Reported by Todd A. Jacobs.
30489
30490 2000-06-13  Jim Meyering  <meyering@lucent.com>
30491
30492         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
30493
30494         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
30495
30496 2000-06-12  Paul Eggert  <eggert@twinsun.com>
30497
30498         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
30499
30500 2000-06-12  Jim Meyering  <meyering@lucent.com>
30501
30502         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
30503         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
30504         optional argument.
30505         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
30506         the optional argument, `lib'.
30507
30508 2000-06-08  Jim Meyering  <meyering@lucent.com>
30509
30510         * m4/largefile.m4: Remove file (now that it's part of autoconf).
30511
30512 2000-06-04  Paul Eggert  <eggert@twinsun.com>
30513
30514         Rewrite largefile configuration so that we don't need to run
30515         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
30516         AC_CANONICAL_HOST in configure.in -- jmm]
30517
30518         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
30519         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
30520         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
30521         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
30522         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
30523         All uses changed.
30524         Instead of inspecting the output of getconf, try to compile the
30525         test program without and with the macro definition.
30526         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
30527         for getconf.  Instead, check for the needed flags by compiling
30528         test programs.
30529
30530 2000-06-04  Paul Eggert  <eggert@twinsun.com>
30531
30532         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
30533
30534 2000-06-04  Jim Meyering  <meyering@lucent.com>
30535
30536         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
30537         SunOS 4.1.4 for which gid_t is an unsigned type.
30538
30539 2000-06-03  Jim Meyering  <meyering@lucent.com>
30540
30541         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
30542         now that autoconf requires that.
30543
30544         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
30545         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
30546         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
30547
30548 2000-06-03  Jim Meyering  <meyering@lucent.com>
30549
30550         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
30551
30552 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
30553
30554         * m4/glibc21.m4: New file.
30555         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
30556
30557 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
30558
30559         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
30560         newer, don't install charset.alias.
30561         * lib/config.charset: Change the Linux/glibc rules so they become empty
30562         on glibc-2.1 or newer.
30563
30564 2000-06-02  Jim Meyering  <meyering@lucent.com>
30565
30566         * lib/mountlist.c: Back out last change.  Instead, do this...
30567         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
30568         me_dummy member using the same `ignore'-testing code.
30569         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
30570         fs_type strings.
30571         From Mark D. Roth.
30572
30573 2000-05-29  Jim Meyering  <meyering@lucent.com>
30574
30575         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
30576         mounts with the `ignore' attribute.  Based on a patch from
30577         Mark D. Roth.
30578
30579 2000-05-28  Jim Meyering  <meyering@lucent.com>
30580
30581         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
30582         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
30583         * m4/stat.m4: Likewise.
30584         * m4/lstat.m4: Likewise.
30585         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
30586
30587         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
30588         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
30589
30590 2000-05-26  Jim Meyering  <meyering@lucent.com>
30591
30592         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
30593
30594 2000-05-24  Jim Meyering  <meyering@lucent.com>
30595
30596         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
30597         autoconf requires that.
30598         * m4/lib-check.m4: Likewise.
30599         * m4/jm-macros.m4: Likewise.
30600         * m4/strftime.m4: Likewise.
30601
30602         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
30603         AC_CHECK_DECLS, now that autoconf requires that.
30604
30605 2000-05-22  Jim Meyering  <meyering@lucent.com>
30606
30607         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
30608         * m4/lstat.m4: Likewise.
30609
30610 2000-05-22  Jim Meyering  <meyering@lucent.com>
30611
30612         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
30613
30614 2000-05-20  Jim Meyering  <meyering@lucent.com>
30615
30616         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
30617         (jm_PREREQ): Use it.
30618
30619 2000-05-18  Jim Meyering  <meyering@lucent.com>
30620
30621         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
30622         back, too, since it may have been modified by allocate_entry.
30623         (hash_delete): Rewrite to use neither the assignment operator
30624         nor the comma operator in an if-expression.
30625
30626 2000-05-15  Paul Eggert  <eggert@twinsun.com>
30627
30628         * lib/closeout.c:
30629         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
30630         Remove; no longer needed.
30631         "quotearg.h": Add include.
30632         (file_name): Do not bother to explicitly initialize to NULL; it's less
30633         efficient on some hosts.
30634         (close_stdout_status): Remove test as to whether stdout was already
30635         closed; it breaks for the case "echo x | sort >&-".
30636         Quote file name colons.
30637         Do not assume that _("write error") lacks format strings.
30638
30639 2000-05-15  Jim Meyering  <meyering@lucent.com>
30640
30641         * lib/version-etc.c (version_etc_copyright): Update the copyright
30642         string used in all --version output.
30643
30644 2000-05-14  Jim Meyering  <meyering@lucent.com>
30645
30646         * lib/closeout.c (close_stdout_set_file_name): New function.
30647         (close_stdout_status): Use new file-scoped global.
30648         Return right away if fstat says the stdout file descriptor is invalid.
30649         * lib/closeout.h (close_stdout_set_file_name): Declare.
30650
30651 2000-05-10  Jim Meyering  <meyering@lucent.com>
30652
30653         * lib/closeout.c [default_exit_status]: New file-scoped variable.
30654         (close_stdout_set_status): New function.
30655         * lib/closeout.h (close_stdout_set_status): Declare.
30656
30657 2000-05-09  Jim Meyering  <meyering@lucent.com>
30658
30659         * m4/gettext.m4: Rename this...
30660         * m4/libintl.m4: ...to this.
30661
30662 2000-05-08  Jim Meyering  <meyering@lucent.com>
30663
30664         * lib/long-options.c: Don't include closeout.h.
30665         (parse_long_options): Don't call close_stdout for --version.
30666
30667 2000-05-06  Paul Eggert  <eggert@twinsun.com>
30668
30669         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
30670         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
30671         2.1.3 bug.  This avoids a clash when files like regex.c define
30672         _GNU_SOURCE.
30673
30674 2000-05-06  Jim Meyering  <meyering@lucent.com>
30675
30676         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
30677         (AC_REPLACE_FUNCS): Add strnlen.
30678
30679         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
30680         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
30681
30682         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
30683         AC_SEARCH_LIBS call for nanosleep.
30684         (LIB_NANOSLEEP): Set and AC_SUBST.
30685
30686 2000-05-06  Jim Meyering  <meyering@lucent.com>
30687
30688         * lib/strnlen.c: Undefine __strnlen and strnlen.
30689         [!weak_alias]: Define __strnlen to strnlen.
30690
30691         * lib/atexit.c: New file, from libiberty.
30692
30693 2000-05-06  Jim Meyering  <meyering@lucent.com>
30694
30695         * lib/closeout.c (close_stdout_status): Also check for errors on the
30696         stderr stream.
30697
30698 2000-05-05  Jim Meyering  <meyering@lucent.com>
30699
30700         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
30701         AC_SEARCH_LIBS call for clock_gettime.
30702         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
30703
30704         * m4/search-libs.m4: Update from autoconf.
30705
30706         su doesn't work on Solaris 2.6.
30707         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
30708         <shadow.h>.  Reported by Dragos Harabor.
30709
30710 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
30711
30712         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
30713         memcpy instead of xmalloc, xrealloc, path_concat.
30714         (locale_charset): Treat empty environment variables as absent.
30715         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
30716
30717 2000-05-04  Jim Meyering  <meyering@lucent.com>
30718
30719         * lib/getopt.c: Update from glibc.
30720         * lib/obstack.c: Likewise.
30721         * lib/obstack.h: Likewise.
30722         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
30723         file
30724
30725         * lib/regex.h: Likewise.
30726         * lib/strndup.c: Likewise.
30727         * lib/strnlen.c: New file, from glibc.
30728
30729 2000-05-03  Jim Meyering  <meyering@lucent.com>
30730
30731         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
30732
30733 2000-05-02  Paul Eggert  <eggert@twinsun.com>
30734
30735         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
30736         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
30737         compile-time test, rather than inspecting host and OS, to
30738         decide whether to define _LARGEFILE_SOURCE.
30739
30740 2000-05-01  Jim Meyering  <meyering@lucent.com>
30741
30742         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
30743
30744         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
30745         Based on a patch from Bruno Haible.
30746
30747 2000-05-01  Jim Meyering  <meyering@lucent.com>
30748
30749         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
30750
30751 2000-04-29  Jim Meyering  <meyering@lucent.com>
30752
30753         * lib/path-concat.c: Declare strdup only if it's not defined.
30754         * lib/canon-host.c: Likewise.
30755
30756 2000-04-28  Jim Meyering  <meyering@lucent.com>
30757
30758         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
30759         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
30760         is included first, then limits.h is included by locale.h by libintl.h.
30761         From John David Anglin.
30762
30763 2000-04-25  Jim Meyering  <meyering@lucent.com>
30764
30765         * lib/makepath.c (S_IRWXUGO): Define.
30766         (make_path): Always perform explicit chmod if MODE specifies any
30767         of the `special' permission bits.  Prompted by a bug report against
30768         install from Mate Wierdl and Joost van Baal.
30769
30770 2000-04-18  Jim Meyering  <meyering@lucent.com>
30771
30772         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
30773         (jm_PREREQ): Use it.
30774
30775 2000-04-18  Jim Meyering  <meyering@lucent.com>
30776
30777         * lib/README: New file.
30778
30779         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
30780         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
30781
30782 2000-04-17  Jim Meyering  <meyering@lucent.com>
30783
30784         Get it right :-)
30785         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
30786         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
30787         Suggestion from Akim Demaille.
30788
30789 2000-04-17  Jim Meyering  <meyering@lucent.com>
30790
30791         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
30792         the definition of it to rpl_strftime also defined-away the system's
30793         declaration.
30794
30795 2000-04-15  Jim Meyering  <meyering@lucent.com>
30796
30797         Use `C' to denote so-called `contiguous' files, the same way
30798         that tar does.
30799         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
30800         (ftypelet): Use S_ISCTG.
30801         From Michael Deutschmann.
30802
30803 2000-04-14  Jim Meyering  <meyering@lucent.com>
30804
30805         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
30806         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
30807         clobbered.
30808
30809 2000-04-14  Jim Meyering  <meyering@lucent.com>
30810
30811         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
30812
30813 2000-04-13  Jim Meyering  <meyering@lucent.com>
30814
30815         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
30816         AH_VERBATIM to insert required #ifndef into config.h.in.
30817         Suggestion from Akim Demaille.
30818
30819 2000-04-12  Jim Meyering  <meyering@lucent.com>
30820
30821         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
30822         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
30823         Christian Krackowizer.
30824
30825         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
30826         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
30827         (AC_SYS_LARGEFILE): Require.
30828         (AM_C_PROTOTYPES): Require.
30829
30830 2000-04-08  Jim Meyering  <meyering@lucent.com>
30831
30832         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
30833         names don't conflict.  Reported by Eli Zaretskii.
30834
30835 2000-04-07  Jim Meyering  <meyering@lucent.com>
30836
30837         * lib/putenv.c: Move inclusion of errno.h so it follows that of
30838         sys/types.h, to work around system header problems on AIX 3.2.5.
30839         From Bruno Haible.
30840
30841 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
30842
30843         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
30844         bug.  Deal with the different error behavior of Irix iconv.
30845
30846 2000-04-05  Paul Eggert  <eggert@twinsun.com>
30847
30848         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
30849         IRIX if the installer said otherwise.
30850
30851 2000-04-05  Jim Meyering  <meyering@lucent.com>
30852
30853         Portability tweaks required for ultrix4.3.
30854         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
30855         (jm_CHECK_DECLS): Add getutent to the list of functions.
30856         (_jm_DECL_HEADERS): Add utmpx.h.
30857         From John David Anglin.
30858
30859         * m4/strftime.m4: Back out the 2000-04-02 change.
30860         Instead of that change, simply undefine putenv in the test program.
30861
30862 2000-04-05  Jim Meyering  <meyering@lucent.com>
30863
30864         Portability tweaks required for ultrix4.3.
30865         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
30866         getutent.
30867         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
30868         * lib/canon-host.c: Declare strdup.
30869         * lib/path-concat.c: Likewise.
30870         From John David Anglin.
30871
30872 2000-04-04  Jim Meyering  <meyering@lucent.com>
30873
30874         Be more DOS 8.3-friendly.
30875         * lib/ref-add.sin: Renamed from ref-add.sed.in.
30876         * lib/ref-del.sin: Renamed from ref-del.sed.in.
30877         * lib/Makefile.am: Reflect renaming.
30878         Reported by Eli Zaretskii.
30879
30880         Use a temporary file name that won't clash with `charset.alias'
30881         in the DOS 8.3 name space.
30882         * lib/Makefile.am (charset_tmp): Define.
30883         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
30884         (uninstall-local): Likewise.
30885         Reported by Eli Zaretskii.
30886
30887 2000-04-03  Jim Meyering  <meyering@lucent.com>
30888
30889         * m4/gettext.m4: Fix typo in comment.
30890
30891         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
30892         textutils/configure.in).  Suggestion from Paul Eggert.
30893         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
30894
30895 2000-04-02  Paul Eggert  <eggert@twinsun.com>
30896
30897         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
30898         variable in the shell rather than using putenv, which isn't
30899         portable.  This avoids the configure-time inter-test dependency
30900         on the potentially-renamed putenv function.
30901
30902 2000-03-30  Paul Eggert  <eggert@twinsun.com>
30903
30904         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
30905         before checking struct stat.st_blksize, so that
30906         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
30907
30908 2000-03-29  Paul Eggert  <eggert@twinsun.com>
30909
30910         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
30911         since strftime.c uses HAVE_STRFTIME to decide whether to use
30912         the underlying strftime.
30913
30914 2000-03-29  Paul Eggert  <eggert@twinsun.com>
30915
30916         * lib/time/strftime.c (my_strftime): Make sure we call the system
30917         strftime, not ourselves, when invoking the underlying strftime.
30918
30919 2000-03-24  Jim Meyering  <meyering@lucent.com>
30920
30921         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
30922         (charset_alias): Define.
30923         (install-exec-local): Factor out common code.
30924         (uninstall-local): Split lines longer than 80.
30925         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
30926         (SUFFIXES): Define.
30927         (.sed.in.sed): New rule.  Don't redirect directly to $@.
30928         (CLEANFILES): Add ref-add.sed and ref-del.sed.
30929
30930 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
30931
30932         * lib/config.charset: Output a line containing "Packages using this
30933         file".
30934         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
30935         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
30936         ref-del.sed): New rules.
30937
30938 2000-03-17  Jim Meyering  <meyering@lucent.com>
30939
30940         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
30941         Otherwise, include <strings.h>
30942
30943 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
30944
30945         * lib/unicodeio.c (utf8_wctomb): New function.
30946         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
30947         format instead of in UCS-4 with platform dependent endianness.
30948
30949 2000-03-10  Jim Meyering  <meyering@lucent.com>
30950
30951         * m4/lib-check.m4: Look for getspnam in -lgen, too.
30952         From Marco Franzen.
30953
30954 2000-03-07  Paul Eggert  <eggert@twinsun.com>
30955
30956         * lib/savedir.c (savedir): Work even if directory size is
30957         negative; this can happen with some screwy NFS configurations.
30958
30959 2000-03-06  Jim Meyering  <meyering@lucent.com>
30960
30961         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
30962         if it's NULL (because we ran out of memory).  From Bruno Haible.
30963
30964 2000-03-05  Jim Meyering  <meyering@lucent.com>
30965
30966         * lib/localcharset.c ("path-concat.h"): Include.
30967         (get_charset_aliases): Use path_concat instead of ANSI string
30968         concatenation.
30969
30970         * lib/unicodeio.h (PARAMS): Define.
30971         Use it to guard prototype.
30972
30973 2000-03-04  Jim Meyering  <meyering@lucent.com>
30974
30975         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
30976         for lib/localcharset.c.
30977
30978 2000-03-04  Jim Meyering  <meyering@lucent.com>
30979
30980         * lib/Makefile.am (install-exec-local): Create $(libdir) before
30981         installing into it.
30982         (uninstall-local): Uncomment this rule so `make distcheck' works
30983         once again.
30984
30985         * lib/unicodeio.c (<errno.h>): Include it.
30986         (errno): Declare if not defined.
30987
30988         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
30989
30990         * lib/config.charset: New version, incorporating remarks from a linux
30991         i18n mailing list.  From Bruno Haible.
30992
30993 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
30994
30995         * m4/codeset.m4: New file.
30996         * m4/iconv.m4: New file.
30997         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
30998
30999 2000-03-03  Jim Meyering  <meyering@lucent.com>
31000
31001         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
31002
31003 2000-03-02  Jim Meyering  <meyering@lucent.com>
31004
31005         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
31006         the messages come out on separate lines.
31007
31008         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
31009         rather than jm_CHECK_DECLARATIONS.
31010         * m4/decl.m4: Remove now-unused file.
31011
31012         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
31013         geteuid.
31014
31015 2000-03-02  Jim Meyering  <meyering@lucent.com>
31016
31017         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
31018
31019 2000-03-01  Jim Meyering  <meyering@lucent.com>
31020
31021         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
31022         * lib/unicodeio.c: Likewise.
31023
31024 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
31025
31026         * lib/config.charset: New file.
31027         * lib/localcharset.c: New file.
31028         * lib/unicodeio.h, lib/unicodeio.c: New files.
31029         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
31030         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
31031         (noinst_HEADERS): Add unicodeio.h.
31032         (all-local, install-exec-local, charset.alias): New targets.
31033
31034 2000-02-28  Paul Eggert  <eggert@twinsun.com>
31035
31036         * lib/quotearg.c (ALERT_CHAR): New macro.
31037         (quotearg_buffer_restyled): Use it.
31038
31039 2000-02-27  Jim Meyering  <meyering@lucent.com>
31040
31041         * m4/check-decl.m4: Add getenv to the list.
31042
31043 2000-02-27  Jim Meyering  <meyering@lucent.com>
31044
31045         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
31046         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
31047
31048         * lib/backupfile.c: Guard inclusion of stdlib.h with
31049         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
31050         Declare malloc if needed.
31051
31052         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
31053         `#ifndef HAVE_DECL..'
31054         now that autoconf always defines the HAVE_DECL_ symbols.
31055         * lib/human.c: Likewise.
31056         * lib/same.c: Likewise.
31057         * lib/strtoumax.c: Likewise.
31058
31059         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
31060         declaration check was not run.
31061         * lib/hash.c: Likewise.
31062         * lib/human.c: Likewise.
31063         * lib/same.c: Likewise.
31064         * lib/strtoumax.c: Likewise.
31065
31066         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
31067         `.', then first look up the entire `.'-containing string as a login
31068         name.
31069
31070 2000-02-23  Jim Meyering  <meyering@lucent.com>
31071
31072         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
31073         in place of my hack.
31074
31075 2000-02-18  Paul Eggert  <eggert@twinsun.com>
31076
31077         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
31078         (textint): New typedef.
31079         (parser_control): Member year changed from int to textint.
31080         All uses changed.
31081         (YYSTYPE): Removed; replaced by %union with int and textint members.
31082         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
31083         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
31084         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
31085         (tSNUMBER, tUNUMBER): Now of type <textintval>.
31086         (date, number, to_year): Use width of number in digits, not its value,
31087         to determine whether it's a 2-digit year, or a 2-digit time.
31088         (yylex): Store number of digits of numeric tokens.
31089         Reported by John Kendall.
31090
31091         (parser_control): Changed from struct parser_control to typedef (for
31092         consistency).  All uses changed.
31093
31094         (tID): Removed; not used.
31095         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
31096
31097 2000-02-14  Paul Eggert  <eggert@twinsun.com>
31098
31099         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
31100         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
31101
31102 2000-02-12  Jim Meyering  <meyering@lucent.com>
31103
31104         * lib/userspec.c (ISDIGIT): Define it.
31105         (isdigit): Remove definition.
31106         (is_number): Use ISDIGIT, not isdigit.
31107         <libintl.h>: Include.
31108         (_ and N_): Define.
31109         (parse_user_spec): Mark translatable strings.
31110
31111 2000-02-10  Jim Meyering  <meyering@lucent.com>
31112
31113         With these changes, nanosleep.[ch] are finally enough like the other
31114         lib/* replacement files to compile on a few more losing systems.
31115
31116         * lib/nanosleep.h: Don't include config.h.
31117         Remove prototype from declaration of nanosleep.
31118         (PARAMS): Remove now-unneeded definition.
31119         * lib/nanosleep.c: #undef nanosleep.
31120         (rpl_nanosleep): Rename from nanosleep.
31121
31122 2000-02-10  Jim Meyering  <meyering@lucent.com>
31123
31124         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
31125         gnu_nanosleep to rpl_nanosleep.
31126
31127 2000-02-09  Jim Meyering  <meyering@lucent.com>
31128
31129         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
31130         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
31131
31132 2000-02-08  Akim Demaille  <akim@epita.fr>
31133
31134         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
31135         `[' and `]' and remove uses of `changequote'.
31136         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
31137         (AC_SYS_LARGEFILE): Likewise.
31138         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
31139         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
31140         of changequote.
31141         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
31142         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
31143         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
31144         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
31145
31146 2000-02-05  Jim Meyering  <meyering@lucent.com>
31147
31148         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
31149         Remove explicit use of AC_HEADER_TIME.  It is required by
31150         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
31151         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
31152         in autoconf whereby the expansion of the latter ended up preceding
31153         the expansion of its prerequisite, AC_HEADER_TIME.
31154         Reported by Volker Borchert.
31155
31156 2000-02-03  Jim Meyering  <meyering@lucent.com>
31157
31158         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
31159
31160 2000-02-03  Jim Meyering  <meyering@lucent.com>
31161
31162         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
31163         rather than with `#if HAVE_UTMPNAME'.
31164
31165 2000-02-02  Jim Meyering  <meyering@lucent.com>
31166
31167         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
31168         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
31169         Reported by Eli Zaretskii.
31170
31171 2000-02-01  Jim Meyering  <meyering@lucent.com>
31172
31173         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
31174
31175 2000-01-31  Jim Meyering  <meyering@lucent.com>
31176
31177         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
31178         functions.  Add the time.h and sys/time.h headers along with the
31179         AC_REQUIRE'ment of AC_HEADER_TIME.
31180
31181 2000-01-31  Jim Meyering  <meyering@lucent.com>
31182
31183         * lib/nanosleep.h (nanosleep): Guard declaration with
31184         `#if ! HAVE_DECL_NANOSLEEP'.
31185         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
31186         the declaration in that vendor's sys/timers.h.
31187         Reported by Christian Krackowizer.
31188
31189         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
31190         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
31191         (ISPRINT): Likewise.
31192         Reported by Tom Tromey.
31193
31194 2000-01-30  Jim Meyering  <meyering@lucent.com>
31195
31196         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
31197
31198         * m4/prereq.m4 (utmp_includes): Define.
31199         Check for ut_user and ut_name members in both struct utmpx
31200         and struct utmp.
31201
31202 2000-01-30  Jim Meyering  <meyering@lucent.com>
31203
31204         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
31205         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
31206         header files where only utmpx.ut_user is declared.
31207
31208         * lib/readutmp.h (UT_USER): Define.
31209
31210 2000-01-29  Jim Meyering  <meyering@lucent.com>
31211
31212         * m4/lib-check.m4: New file containing library-related checks from
31213         fileutils and sh-utils (textutils had none).
31214
31215 2000-01-28  Jim Meyering  <meyering@lucent.com>
31216
31217         * m4/perl.m4: Change format of warning message to look more like that
31218         from the missing script.  Suggestion from François Pinard.
31219
31220 2000-01-25  Jim Meyering  <meyering@lucent.com>
31221
31222         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
31223         well as time.h in the compile check.
31224         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
31225         Fix typo in cross-compiling case: s/yes/no/.
31226
31227 2000-01-23  Jim Meyering  <meyering@lucent.com>
31228
31229         * m4/jm-macros.m4: Move df-related tests here from
31230         fileutils/configure.in
31231
31232         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
31233         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
31234
31235         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
31236         s/space/ac_fsusage_space/.
31237         (jm_FILE_SYSTEM_USAGE): Take two parameters.
31238
31239         * m4/ftruncate.m4: New file (derived from part of
31240         fileutils/configure.in).
31241         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
31242         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
31243
31244         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
31245         AC_SUBST these here, rather than just in sh-util/configure.in, so
31246         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
31247         all the same.
31248         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
31249         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
31250         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
31251         (AC_SUBST(POW_LIBM)): Likewise.
31252         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
31253
31254 2000-01-23  Jim Meyering  <meyering@lucent.com>
31255
31256         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
31257         obstack.c.
31258
31259 2000-01-22  Jim Meyering  <meyering@lucent.com>
31260
31261         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
31262
31263         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
31264
31265         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
31266         configure.in
31267         (AC_CHECK_HEADERS): Likewise for sh-utils.
31268         (AC_CHECK_HEADERS): Likewise for textutils.
31269         Merge the three lists of headers.
31270
31271         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
31272         from fileutils' configure.in.
31273
31274         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
31275         code. Moved tests into their own function (_jm_DECL_HEADERS) in
31276         check-decl.m4.
31277
31278         * m4/check-decl.m4: Use #if rather than #ifdef.
31279         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
31280         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
31281         (_jm_DECL_HEADERS): Define new function.
31282         (jm_CHECK_DECLARATIONS): Require it.
31283
31284 2000-01-22  Jim Meyering  <meyering@lucent.com>
31285
31286         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
31287         [! HAVE_DECL_STRTOULL]: Declare strtoull.
31288         Required for some AIX systems.  Reported by Christian Krackowizer.
31289         [TESTING] (main): New function.
31290
31291         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
31292         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
31293         letters.
31294
31295         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
31296         iswprint.
31297
31298         * lib/strverscmp.c (ISDIGIT): Define.
31299         (strverscmp): Use ISDIGIT, not isdigit.
31300
31301 2000-01-19  Jim Meyering  <meyering@lucent.com>
31302
31303         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
31304         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
31305         defines `struct timespec' in <sys/time.h>
31306
31307         * m4/c-bs-a.m4: Remove uses of changequote altogether.
31308         Thanks to Akim for explaining.
31309
31310 2000-01-17  Paul Eggert  <eggert@twinsun.com>
31311
31312         * lib/nanosleep.c (nanosleep):
31313         Don't use SA_INTERRUPT to decide whether to call sigaction, as
31314         POSIX.1 doesn't require SA_INTERRUPT and some systems
31315         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
31316         it's been part of POSIX.1 since day 1 (in 1988).
31317
31318 2000-01-17  Jim Meyering  <meyering@lucent.com>
31319
31320         * lib/interlock: Remove unused file.  Reported by François Pinard.
31321
31322 2000-01-16  Paul Eggert  <eggert@twinsun.com>
31323
31324         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
31325         alert, backslash, formfeed, and vertical tab unnecessarily in
31326         shell quoting style.
31327
31328 2000-01-16  Jim Meyering  <meyering@lucent.com>
31329
31330         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
31331         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
31332         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
31333         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
31334
31335 2000-01-16  Jim Meyering  <meyering@lucent.com>
31336
31337         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
31338         because the latter didn't work.
31339
31340 2000-01-15  Jim Meyering  <meyering@lucent.com>
31341
31342         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
31343         (AC_REPLACE_FUNCS): Add memcpy and memset.
31344         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
31345         Add strpbrk.
31346         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
31347
31348 2000-01-12  Jim Meyering  <meyering@lucent.com>
31349
31350         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
31351         (jm_PREREQ): Use it.
31352         (jm_PREREQ_READUTMP): New macro.
31353         (jm_PREREQ): Use it.
31354
31355 2000-01-11  Paul Eggert  <eggert@twinsun.com>
31356
31357         Quote multibyte characters correctly.
31358         * m4/c-bs-a.m4: New file.
31359         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
31360         (jm_PREREQ): Use it.
31361
31362 2000-01-11  Paul Eggert  <eggert@twinsun.com>
31363
31364         * m4/uintmax_t.m4: Port to autoconf 2.13.
31365
31366 2000-01-08  Jim Meyering  <meyering@ascend.com>
31367
31368         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
31369         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
31370
31371 2000-01-04  Jim Meyering  <meyering@ascend.com>
31372
31373         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
31374         jm_STRUCT_DIRENT_D_TYPE.
31375         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
31376         jm_STRUCT_DIRENT_D_INO.
31377         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
31378         jm_STRUCT_UTIMBUF.
31379         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
31380         renamings.
31381         * m4/utime.m4: Likewise.
31382
31383         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
31384         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
31385
31386 2000-01-03  Paul Eggert  <eggert@twinsun.com>
31387
31388         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
31389         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
31390
31391 2000-01-02  Jim Meyering  <meyering@ascend.com>
31392
31393         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
31394         remember if this is necessary.
31395
31396 1999-12-26  Jim Meyering  <meyering@ascend.com>
31397
31398         * m4/jm-macros.m4: Use it here.
31399         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
31400
31401 1999-12-23  Jim Meyering  <meyering@ascend.com>
31402
31403         * m4/jm-macros.m4: Check for clock_gettime (moved from
31404         fileutils/configure.in)
31405         Check for gettimeofday.
31406
31407 1999-12-20  Jim Meyering  <meyering@ascend.com>
31408
31409         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
31410         autoconf-2.14a-1999-12-20.
31411
31412 1999-12-19  Jim Meyering  <meyering@ascend.com>
31413
31414         * m4/lstat-slash.m4: New file.
31415         * m4/jm-macros.m4: Use the new macro:
31416         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
31417
31418 1999-12-07  Jim Meyering  <meyering@ascend.com>
31419
31420         * m4/perl.m4: Require that File::Compare be available, too.
31421         Too many systems seem to lack it.
31422
31423         * m4/strftime.m4: Add checks for most of the cpp macros tested in
31424         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
31425
31426 1999-11-18  Paul Eggert  <eggert@twinsun.com>
31427
31428         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
31429         problem with the QNX 4.25 shell, which doesn't propagate exit
31430         status of failed commands inside shell assignments.
31431
31432 1999-11-17  Jim Meyering  <meyering@ascend.com>
31433
31434         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
31435
31436 1999-11-07  Jim Meyering  <meyering@ascend.com>
31437
31438         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
31439
31440 1999-11-06  Jim Meyering  <meyering@ascend.com>
31441
31442         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
31443         * m4/jm-macros.m4 (jm_MACROS): Use it here.
31444
31445 1999-11-05  Jim Meyering  <meyering@ascend.com>
31446
31447         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
31448         configure.in of textutils, fileutils, and sh-utils into this one
31449         (shared between those packages) file.
31450         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
31451         AC_STRUCT_ST_BLKSIZE.
31452
31453 1999-11-03  Jim Meyering  <meyering@ascend.com>
31454
31455         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
31456         of AC_CHECK_TYPE checks includes unistd.h.
31457         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
31458         Suggestion from Akim Demaille.
31459
31460 1999-10-30  Jim Meyering  <meyering@ascend.com>
31461
31462         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
31463         m4-quoted string.
31464         * m4/ls-mntd-fs.m4: Likewise.
31465         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
31466         * m4/jm-winsz1.m4: Likewise.
31467
31468         * m4/const.m4: Remove file, since the fix made it into the experimental
31469         version of autoconf.
31470         * m4/mktime.m4: Likewise.
31471
31472         * m4/check-type.m4: Remove file, now that the latest version of
31473         AC_CHECK_TYPE takes a third arg to specify additional #includes.
31474
31475         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
31476         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
31477         AC_CHECK_TYPE.
31478
31479 1999-10-04  Jim Meyering  <meyering@ascend.com>
31480
31481         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
31482
31483 1999-09-22  Paul Eggert  <eggert@twinsun.com>
31484
31485         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
31486         2.95.1 bug with HP-UX 10.20.
31487
31488 1999-09-17  Jim Meyering  <meyering@ascend.com>
31489
31490         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
31491         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
31492         due to missing strdup (against sh-utils-2.0).
31493
31494 1999-08-29  Jim Meyering  <meyering@ascend.com>
31495
31496         * m4/jm-macros.m4: Require jm_BISON.
31497         * m4/bison.m4: New file.
31498
31499 1999-08-17  Paul Eggert  <eggert@twinsun.com>
31500
31501         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
31502         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
31503
31504 1999-08-05  Jim Meyering  <meyering@ascend.com>
31505
31506         * m4/getline.m4: Rename test file from conftestdata to conftest.data
31507         to avoid conflicts with `conftest' on 8+3 filesystems.
31508         Suggestion from Eli Zaretskii.
31509
31510 1999-08-04  Jim Meyering  <meyering@ascend.com>
31511
31512         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
31513         fileutils and sh-utils (textutils's getline test was inadequate).
31514         (AM_FUNC_GETLINE): Run this test.
31515         (AC_CHECK_FUNCS): Check for getdelim.
31516         Reported by Bob Proulx.
31517
31518 1999-08-02  Jim Meyering  <meyering@ascend.com>
31519
31520         * m4/jm-macros.m4: Add a comment.
31521
31522 1999-08-01  Paul Eggert  <eggert@twinsun.com>
31523
31524         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
31525         <inttypes.h> defines strtoumax as a macro (and not as a
31526         function).
31527
31528 1999-08-01  Paul Eggert  <eggert@twinsun.com>
31529
31530         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
31531         that we can shift, multiply and divide unsigned long long
31532         values; Ultrix cc can't do it.
31533
31534 1999-08-01  Paul Eggert  <eggert@twinsun.com>
31535
31536         * m4/mktime.m4: New file, which is a preview of what should appear
31537         in the next public autoconf release.
31538
31539 1999-08-01  Paul Eggert  <eggert@twinsun.com>
31540
31541         * m4/lfs.m4: Remove this file.
31542         * m4/largefile.m4: New file.  It contains the old contents of
31543         lfs.m4, except that all names with prefix AC_LFS have been
31544         changed to use the prefix AC_SYS_LARGEFILE instead, to be
31545         compatible with future autoconf versions.  Also, some minor m4
31546         quoting problems have been fixed.
31547
31548 1999-08-01  Paul Eggert  <eggert@twinsun.com>
31549
31550         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
31551         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
31552         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
31553         and simplify the shell code.
31554
31555 1999-08-01  Jim Meyering  <meyering@ascend.com>
31556
31557         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
31558         m4.
31559
31560 1999-07-20  Jim Meyering  <meyering@ascend.com>
31561
31562         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
31563
31564 1999-07-15  Jim Meyering  <meyering@ascend.com>
31565
31566         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
31567
31568 1999-05-22  Jim Meyering  <meyering@ascend.com>
31569
31570         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
31571
31572 1999-05-20  Jim Meyering  <meyering@ascend.com>
31573
31574         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
31575         Add a colon after each `then' in case $4 is empty.
31576
31577 1999-05-16  Jim Meyering  <meyering@ascend.com>
31578
31579         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
31580
31581 1999-05-10  Jim Meyering  <meyering@ascend.com>
31582
31583         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
31584
31585         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
31586         AC_FUNC_MKTIME.
31587
31588 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
31589
31590         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
31591
31592 1999-05-04  Paul Eggert  <eggert@twinsun.com>
31593
31594         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
31595         not CPPFLAGS, so that linking works correctly in IRIX.
31596
31597 1999-04-30  Paul Eggert  <eggert@twinsun.com>
31598
31599         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
31600
31601 1999-04-20  Paul Eggert  <eggert@twinsun.com>
31602
31603         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
31604         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
31605         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
31606         jm_AC_TYPE_UNSIGNED_LONG_LONG.
31607         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
31608
31609         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
31610
31611 1999-04-20  Jim Meyering  <meyering@ascend.com>
31612
31613         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
31614         AC_REPLACE xstroull if necessary.  From Paul Eggert.
31615         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
31616
31617 1999-04-18  Jim Meyering  <meyering@ascend.com>
31618
31619         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
31620         * m4/jm-macros.m4: Use it.
31621
31622 1999-04-06  Jim Meyering  <meyering@ascend.com>
31623
31624         * m4/strftime.m4: Remove test for %f.
31625
31626 1999-03-29  Jim Meyering  <meyering@ascend.com>
31627
31628         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
31629         superset of the AC_TYPE_* checks in the textutils, fileutils,
31630         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
31631         AC_TYPE_PID_T.
31632
31633 1999-03-28  Jim Meyering  <meyering@ascend.com>
31634
31635         * m4/jm-macros.m4: Define GNU_PACKAGE here.
31636         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
31637         replaced e.g., in the *.sh files of the sh-utils.
31638
31639 1999-03-20  Jim Meyering  <meyering@ascend.com>
31640
31641         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
31642         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
31643         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
31644
31645 1999-03-19  Jim Meyering  <meyering@ascend.com>
31646
31647         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
31648
31649 1999-03-12  Jim Meyering  <meyering@ascend.com>
31650
31651         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
31652
31653 1999-03-07  Jim Meyering  <meyering@ascend.com>
31654
31655         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
31656         declared.
31657
31658 1999-02-17  Jim Meyering  <meyering@ascend.com>
31659
31660         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
31661         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
31662
31663 1999-02-07  Jim Meyering  <meyering@ascend.com>
31664
31665         * m4/group-member.m4: New file -- extracted from sh-utils'
31666         configure.in.
31667
31668         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
31669         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
31670
31671 1999-02-06  Jim Meyering  <meyering@ascend.com>
31672
31673         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
31674         * m4/fnmatch.m4: Likewise.
31675         * m4/getgroups.m4: Likewise.
31676         * m4/lstat.m4: Likewise.
31677         * m4/malloc.m4: Likewise.
31678         * m4/putenv.m4: Likewise.
31679         * m4/realloc.m4: Likewise.
31680         * m4/regex.m4: Likewise.
31681         * m4/stat.m4: Likewise.
31682         * m4/strftime.m4: Likewise.
31683         Suggestion from Alain Magloire.
31684
31685         * m4/chown.m4: Use `.$ac_objext', not `.o'.
31686         * m4/fnmatch.m4: Likewise.
31687         * m4/getgroups.m4: Likewise.
31688         * m4/getline.m4: Likewise.
31689         * m4/lstat.m4: Likewise.
31690         * m4/malloc.m4: Likewise.
31691         * m4/memcmp.m4: Likewise.
31692         * m4/putenv.m4: Likewise.
31693         * m4/realloc.m4: Likewise.
31694         * m4/regex.m4: Likewise.
31695         * m4/stat.m4: Likewise.
31696         * m4/strftime.m4: Likewise.
31697         Suggestion from Alain Magloire.
31698
31699         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
31700         an argument.
31701
31702         * m4/regex.m4: Add a run-time Test for proper operation of
31703         re_compile_pattern.
31704
31705 1999-01-31  Jim Meyering  <meyering@ascend.com>
31706
31707         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
31708
31709 1999-01-30  Jim Meyering  <meyering@ascend.com>
31710
31711         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
31712
31713         * m4/jm-mktime.m4: Make this a wrapper around the official
31714         AM_FUNC_MKTIME rather than my private copy, now that the official one
31715         is up to date.
31716         * m4/mktime.m4: Remove file.
31717
31718         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
31719         * m4/uptime.m4: Likewise.
31720         * m4/uintmax_t.m4: Likewise.
31721
31722 1999-01-28  Jim Meyering  <meyering@ascend.com>
31723
31724         * m4/jm-macros.m4: Use jm_AFS.
31725         * m4/afs.m4: New file (from fileutils' configure.in).
31726
31727         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
31728         * m4/chown.m4: Likewise.
31729         * m4/d-ino.m4: Likewise.
31730         * m4/d-type.m4: Likewise.
31731         * m4/fnmatch.m4: Likewise.
31732         * m4/getgroups.m4: Likewise.
31733         * m4/gettext.m4: Likewise.
31734         * m4/jm-mktime.m4: Likewise.
31735         * m4/jm-winsz2.m4: Likewise.
31736         * m4/lcmessage.m4: Likewise.
31737         * m4/ls-mntd-fs.m4: Likewise.
31738         * m4/malloc.m4: Likewise.
31739         * m4/memcmp.m4: Likewise.
31740         * m4/putenv.m4: Likewise.
31741         * m4/realloc.m4: Likewise.
31742         * m4/st_mtim.m4: Likewise.
31743         * m4/strftime.m4: Likewise.
31744
31745 1999-01-16  Jim Meyering  <meyering@ascend.com>
31746
31747         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
31748         (ARGMATCH_DIE_DECL): Define.
31749
31750 1999-01-12  Jim Meyering  <meyering@ascend.com>
31751
31752         * m4/Makefile.am.in: Rewrite to avoid using fmt.
31753         Reported by Lars Hecking.
31754
31755 1999-01-10  Jim Meyering  <meyering@ascend.com>
31756
31757         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
31758         gross kludge.
31759         * m4/inttypes_h.m4: Likewise.
31760         * m4/lstat.m4: Likewise.
31761         * m4/malloc.m4: Likewise.
31762         * m4/readdir.m4: Likewise.
31763         * m4/realloc.m4: Likewise.
31764         * m4/st_dm_mode.m4: Likewise.
31765         * m4/stat.m4: Likewise.
31766         * m4/utimbuf.m4: Likewise.
31767         * m4/utimes.m4: Likewise.
31768
31769         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
31770         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
31771         comments in config.h.in are meaningful.
31772
31773         * m4/jm-macros.m4: Require autoconf-2.13 here.
31774
31775         * m4/regex.m4: By default, don't use the included regex.c on systems
31776         with glibc 2.  Suggestion from Uli Drepper.
31777
31778 1999-01-02  Jim Meyering  <meyering@ascend.com>
31779
31780         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
31781
31782 1998-12-18  Jim Meyering  <meyering@ascend.com>
31783
31784         * m4/Makefile.am.in (Makefile.am): Simplify rule.
31785         Based on a suggestion from Lars Hecking.
31786
31787 1998-11-16  Paul Eggert  <eggert@twinsun.com>
31788
31789         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
31790
31791 1998-11-16  Jim Meyering  <meyering@ascend.com>
31792
31793         * m4/lfs.m4: Double-quote the `uname...` expression.
31794
31795 1998-11-14  Jim Meyering  <meyering@ascend.com>
31796
31797         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
31798         * m4/stat.m4: Likewise.
31799
31800 1998-11-03  Jim Meyering  <meyering@ascend.com>
31801
31802         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
31803         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
31804
31805 1998-10-18  Jim Meyering  <meyering@ascend.com>
31806
31807         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
31808
31809 1998-10-17  Jim Meyering  <meyering@ascend.com>
31810
31811         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
31812         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
31813         calls for those previously hard-coded headers.  Instead, take a new
31814         parameter.
31815         (jm_CHECK_DECLARATIONS): Reflect interface change.
31816         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
31817         (jm_CHECK_DECL_LOCALTIME_R): New macro.
31818
31819         * m4/mktime.m4: Test for spring-forward gap before long-running test.
31820
31821 1998-10-14  Jim Meyering  <meyering@ascend.com>
31822
31823         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
31824         instead of "TZ=America/Vancouver".  From Paul Eggert.
31825
31826 1998-10-11  Jim Meyering  <meyering@ascend.com>
31827
31828         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
31829         This adds a test for a recently added compatibility fix for mktime.c.
31830         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
31831
31832 1998-09-27  Jim Meyering  <meyering@ascend.com>
31833
31834         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
31835
31836         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
31837         ../configure.in, including a change from Gordon Matzigkeit to allow
31838         cross-compiling for the Hurd.
31839
31840         * m4/glibc.m4: New file/macro to test for the GNU C Library
31841         versions 1 and 2.  From Gordon Matzigkeit.
31842         Indent.
31843
31844 1998-09-21  Jim Meyering  <meyering@ascend.com>
31845
31846         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
31847
31848 1998-08-18  Paul Eggert  <eggert@twinsun.com>
31849
31850         Port nanosecond-resolution times to UnixWare 2.1.2 and
31851         pedantic Solaris 2.6.
31852
31853         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
31854         AC_STRUCT_ST_MTIM.
31855         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
31856         Generate name of ns member, instead of just 1 or undef.
31857         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
31858
31859 1998-08-15  Jim Meyering  <meyering@ascend.com>
31860
31861         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
31862         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
31863         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
31864         instead of jm_TYPE_SSIZE_T.
31865
31866 1998-08-12  Jim Meyering  <meyering@ascend.com>
31867
31868         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
31869
31870 1998-08-02  Jim Meyering  <meyering@ascend.com>
31871
31872         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
31873         in acconfig.h manually.
31874
31875 1998-07-31  Paul Eggert  <eggert@twinsun.com>
31876
31877         * m4/st_mtim.m4: New file.
31878
31879 1998-07-28  Jim Meyering  <meyering@ascend.com>
31880
31881         * m4/utimes.m4: Undef stat.
31882
31883 1998-07-25  Jim Meyering  <meyering@ascend.com>
31884
31885         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
31886         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
31887
31888 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
31889
31890         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
31891         uid and gid actually remain unchanged.
31892
31893 1998-07-07  Jim Meyering  <meyering@ascend.com>
31894
31895         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
31896
31897 1998-07-04  Jim Meyering  <meyering@ascend.com>
31898
31899         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
31900         to prove that this macro can be used in packages without regex.c.
31901
31902 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
31903
31904         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
31905         is to be used.
31906
31907 1998-07-03  Jim Meyering  <meyering@ascend.com>
31908
31909         * m4/gettext.m4: Add -lintl if it's found to be necessary.
31910
31911         * m4/gettext.m4: New file -- from gettext-0.10.35.
31912         * m4/lcmessage.m4: Likewise.
31913         * m4/progtest.m4: Likewise.
31914
31915         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
31916         * m4/jm-macros.m4: Require the new macro.
31917
31918 1998-06-29  Jim Meyering  <meyering@ascend.com>
31919
31920         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
31921         for the definition of NGROUPS (used in a system header included
31922         by sys/mount.h).
31923
31924 1998-06-28  Jim Meyering  <meyering@ascend.com>
31925
31926         * m4/ls-mntd-fs.m4: New file.
31927         * m4/fstypename.m4: New file.
31928
31929         * m4/jm-macros.m4: Require the new macro.
31930         * m4/jm-glibc-io.m4: New file.
31931
31932 1998-05-19  Jim Meyering  <meyering@ascend.com>
31933
31934         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
31935         * m4/lchown.m4: New file.
31936
31937         * m4/Makefile.am.in: New file.
31938         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
31939
31940 1998-05-14  Jim Meyering  <meyering@ascend.com>
31941
31942         * m4/Makefile.am (EXTRA_DIST): Add them.
31943         * m4/jm-macros.m4: New file.
31944         * m4/utimbuf.m4: New file.
31945
31946 1998-05-12  Jim Meyering  <meyering@ascend.com>
31947
31948         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
31949
31950 1998-05-11  Jim Meyering  <meyering@ascend.com>
31951
31952         * m4/isc-posix.m4: New file.
31953
31954 1998-05-10  Jim Meyering  <meyering@ascend.com>