also rename gpl/lgpl modules here
[gnulib.git] / ChangeLog
1 2007-07-04  Karl Berry  <karl@gnu.org>
2
3         * MODULES.html.sh (func_all_modules): Complete rename of
4         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
5
6 2007-07-02  Bruno Haible  <bruno@clisp.org>
7
8         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
9         mode, when inttypes.h comes from gnulib.
10         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
11
12 2007-07-02  Simon Josefsson  <simon@josefsson.org>
13
14         * NEWS: Mention lgpl module name change.
15
16         * modules/lgpl-2.1: Renamed from lgpl.
17
18         * NEWS: Mention gpl module name change.
19
20         * modules/gpl-3.0: New file, based on gpl-2.0.
21
22         * modules/gpl-2.0: Renamed from gpl.
23
24         * modules/gpl: Fix filename, doc/gpl.texi is now found at
25         doc/gpl-2.0.texi.
26
27 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
28
29         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
30         #define __STDC_LIMIT_MACROS temporarily while including
31         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
32         Problem reported by Joel E. Denny in
33         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
34
35 2007-07-01  Bruno Haible  <bruno@clisp.org>
36
37         * lib/unistdio.h: New file.
38         * lib/unistdio/u-asnprintf.h: New file.
39         * lib/unistdio/u-asprintf.h: New file.
40         * lib/unistdio/u-printf-args.c: New file.
41         * lib/unistdio/u-printf-args.h: New file.
42         * lib/unistdio/u-printf-parse.h: New file.
43         * lib/unistdio/u-snprintf.h: New file.
44         * lib/unistdio/u-sprintf.h: New file.
45         * lib/unistdio/u-vasprintf.h: New file.
46         * lib/unistdio/u-vsnprintf.h: New file.
47         * lib/unistdio/u-vsprintf.h: New file.
48         * lib/unistdio/ulc-asnprintf.c: New file.
49         * lib/unistdio/ulc-asprintf.c: New file.
50         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
51         * lib/unistdio/ulc-printf-parse.c: New file.
52         * lib/unistdio/ulc-snprintf.c: New file.
53         * lib/unistdio/ulc-sprintf.c: New file.
54         * lib/unistdio/ulc-vasnprintf.c: New file.
55         * lib/unistdio/ulc-vasprintf.c: New file.
56         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
57         * lib/unistdio/ulc-vsnprintf.c: New file.
58         * lib/unistdio/ulc-vsprintf.c: New file.
59         * lib/unistdio/u8-asnprintf.c: New file.
60         * lib/unistdio/u8-asprintf.c: New file.
61         * lib/unistdio/u8-printf-parse.c: New file.
62         * lib/unistdio/u8-snprintf.c: New file.
63         * lib/unistdio/u8-sprintf.c: New file.
64         * lib/unistdio/u8-vasnprintf.c: New file.
65         * lib/unistdio/u8-vasprintf.c: New file.
66         * lib/unistdio/u8-vsnprintf.c: New file.
67         * lib/unistdio/u8-vsprintf.c: New file.
68         * lib/unistdio/u8-u8-asnprintf.c: New file.
69         * lib/unistdio/u8-u8-asprintf.c: New file.
70         * lib/unistdio/u8-u8-snprintf.c: New file.
71         * lib/unistdio/u8-u8-sprintf.c: New file.
72         * lib/unistdio/u8-u8-vasnprintf.c: New file.
73         * lib/unistdio/u8-u8-vasprintf.c: New file.
74         * lib/unistdio/u8-u8-vsnprintf.c: New file.
75         * lib/unistdio/u8-u8-vsprintf.c: New file.
76         * lib/unistdio/u16-asnprintf.c: New file.
77         * lib/unistdio/u16-asprintf.c: New file.
78         * lib/unistdio/u16-printf-parse.c: New file.
79         * lib/unistdio/u16-snprintf.c: New file.
80         * lib/unistdio/u16-sprintf.c: New file.
81         * lib/unistdio/u16-vasnprintf.c: New file.
82         * lib/unistdio/u16-vasprintf.c: New file.
83         * lib/unistdio/u16-vsnprintf.c: New file.
84         * lib/unistdio/u16-vsprintf.c: New file.
85         * lib/unistdio/u16-u16-asnprintf.c: New file.
86         * lib/unistdio/u16-u16-asprintf.c: New file.
87         * lib/unistdio/u16-u16-snprintf.c: New file.
88         * lib/unistdio/u16-u16-sprintf.c: New file.
89         * lib/unistdio/u16-u16-vasnprintf.c: New file.
90         * lib/unistdio/u16-u16-vasprintf.c: New file.
91         * lib/unistdio/u16-u16-vsnprintf.c: New file.
92         * lib/unistdio/u16-u16-vsprintf.c: New file.
93         * lib/unistdio/u32-asnprintf.c: New file.
94         * lib/unistdio/u32-asprintf.c: New file.
95         * lib/unistdio/u32-printf-parse.c: New file.
96         * lib/unistdio/u32-snprintf.c: New file.
97         * lib/unistdio/u32-sprintf.c: New file.
98         * lib/unistdio/u32-vasnprintf.c: New file.
99         * lib/unistdio/u32-vasprintf.c: New file.
100         * lib/unistdio/u32-vsnprintf.c: New file.
101         * lib/unistdio/u32-vsprintf.c: New file.
102         * lib/unistdio/u32-u32-asnprintf.c: New file.
103         * lib/unistdio/u32-u32-asprintf.c: New file.
104         * lib/unistdio/u32-u32-snprintf.c: New file.
105         * lib/unistdio/u32-u32-sprintf.c: New file.
106         * lib/unistdio/u32-u32-vasnprintf.c: New file.
107         * lib/unistdio/u32-u32-vasprintf.c: New file.
108         * lib/unistdio/u32-u32-vsnprintf.c: New file.
109         * lib/unistdio/u32-u32-vsprintf.c: New file.
110         * tests/unistdio/test-ulc-asnprintf1.c: New file.
111         * tests/unistdio/test-ulc-asnprintf1.h: New file.
112         * tests/unistdio/test-ulc-printf1.h: New file.
113         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
114         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
115         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
116         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
117         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
118         * tests/unistdio/test-ulc-vasprintf1.c: New file.
119         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
120         * tests/unistdio/test-ulc-vsprintf1.c: New file.
121         * tests/unistdio/test-u8-asnprintf1.c: New file.
122         * tests/unistdio/test-u8-asnprintf1.h: New file.
123         * tests/unistdio/test-u8-printf1.h: New file.
124         * tests/unistdio/test-u8-vasnprintf1.c: New file.
125         * tests/unistdio/test-u8-vasnprintf2.c: New file.
126         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
127         * tests/unistdio/test-u8-vasnprintf3.c: New file.
128         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
129         * tests/unistdio/test-u8-vasprintf1.c: New file.
130         * tests/unistdio/test-u8-vsnprintf1.c: New file.
131         * tests/unistdio/test-u8-vsprintf1.c: New file.
132         * tests/unistdio/test-u16-asnprintf1.c: New file.
133         * tests/unistdio/test-u16-asnprintf1.h: New file.
134         * tests/unistdio/test-u16-printf1.h: New file.
135         * tests/unistdio/test-u16-vasnprintf1.c: New file.
136         * tests/unistdio/test-u16-vasnprintf2.c: New file.
137         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
138         * tests/unistdio/test-u16-vasnprintf3.c: New file.
139         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
140         * tests/unistdio/test-u16-vasprintf1.c: New file.
141         * tests/unistdio/test-u16-vsnprintf1.c: New file.
142         * tests/unistdio/test-u16-vsprintf1.c: New file.
143         * tests/unistdio/test-u32-asnprintf1.c: New file.
144         * tests/unistdio/test-u32-asnprintf1.h: New file.
145         * tests/unistdio/test-u32-printf1.h: New file.
146         * tests/unistdio/test-u32-vasnprintf1.c: New file.
147         * tests/unistdio/test-u32-vasnprintf2.c: New file.
148         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
149         * tests/unistdio/test-u32-vasnprintf3.c: New file.
150         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
151         * tests/unistdio/test-u32-vasprintf1.c: New file.
152         * tests/unistdio/test-u32-vsnprintf1.c: New file.
153         * tests/unistdio/test-u32-vsprintf1.c: New file.
154         * modules/unistdio/base: New file.
155         * modules/unistdio/u-printf-args: New file.
156         * modules/unistdio/ulc-asnprintf: New file.
157         * modules/unistdio/ulc-asprintf: New file.
158         * modules/unistdio/ulc-fprintf: New file.
159         * modules/unistdio/ulc-printf-parse: New file.
160         * modules/unistdio/ulc-snprintf: New file.
161         * modules/unistdio/ulc-sprintf: New file.
162         * modules/unistdio/ulc-vasnprintf: New file.
163         * modules/unistdio/ulc-vasprintf: New file.
164         * modules/unistdio/ulc-vfprintf: New file.
165         * modules/unistdio/ulc-vsnprintf: New file.
166         * modules/unistdio/ulc-vsprintf: New file.
167         * modules/unistdio/u8-asnprintf: New file.
168         * modules/unistdio/u8-asprintf: New file.
169         * modules/unistdio/u8-printf-parse: New file.
170         * modules/unistdio/u8-snprintf: New file.
171         * modules/unistdio/u8-sprintf: New file.
172         * modules/unistdio/u8-vasnprintf: New file.
173         * modules/unistdio/u8-vasprintf: New file.
174         * modules/unistdio/u8-vsnprintf: New file.
175         * modules/unistdio/u8-vsprintf: New file.
176         * modules/unistdio/u8-u8-asnprintf: New file.
177         * modules/unistdio/u8-u8-asprintf: New file.
178         * modules/unistdio/u8-u8-snprintf: New file.
179         * modules/unistdio/u8-u8-sprintf: New file.
180         * modules/unistdio/u8-u8-vasnprintf: New file.
181         * modules/unistdio/u8-u8-vasprintf: New file.
182         * modules/unistdio/u8-u8-vsnprintf: New file.
183         * modules/unistdio/u8-u8-vsprintf: New file.
184         * modules/unistdio/u16-asnprintf: New file.
185         * modules/unistdio/u16-asprintf: New file.
186         * modules/unistdio/u16-printf-parse: New file.
187         * modules/unistdio/u16-snprintf: New file.
188         * modules/unistdio/u16-sprintf: New file.
189         * modules/unistdio/u16-vasnprintf: New file.
190         * modules/unistdio/u16-vasprintf: New file.
191         * modules/unistdio/u16-vsnprintf: New file.
192         * modules/unistdio/u16-vsprintf: New file.
193         * modules/unistdio/u16-u16-asnprintf: New file.
194         * modules/unistdio/u16-u16-asprintf: New file.
195         * modules/unistdio/u16-u16-snprintf: New file.
196         * modules/unistdio/u16-u16-sprintf: New file.
197         * modules/unistdio/u16-u16-vasnprintf: New file.
198         * modules/unistdio/u16-u16-vasprintf: New file.
199         * modules/unistdio/u16-u16-vsnprintf: New file.
200         * modules/unistdio/u16-u16-vsprintf: New file.
201         * modules/unistdio/u32-asnprintf: New file.
202         * modules/unistdio/u32-asprintf: New file.
203         * modules/unistdio/u32-printf-parse: New file.
204         * modules/unistdio/u32-snprintf: New file.
205         * modules/unistdio/u32-sprintf: New file.
206         * modules/unistdio/u32-vasnprintf: New file.
207         * modules/unistdio/u32-vasprintf: New file.
208         * modules/unistdio/u32-vsnprintf: New file.
209         * modules/unistdio/u32-vsprintf: New file.
210         * modules/unistdio/u32-u32-asnprintf: New file.
211         * modules/unistdio/u32-u32-asprintf: New file.
212         * modules/unistdio/u32-u32-snprintf: New file.
213         * modules/unistdio/u32-u32-sprintf: New file.
214         * modules/unistdio/u32-u32-vasnprintf: New file.
215         * modules/unistdio/u32-u32-vasprintf: New file.
216         * modules/unistdio/u32-u32-vsnprintf: New file.
217         * modules/unistdio/u32-u32-vsprintf: New file.
218         * modules/unistdio/ulc-asnprintf-tests: New file.
219         * modules/unistdio/ulc-vasnprintf-tests: New file.
220         * modules/unistdio/ulc-vasprintf-tests: New file.
221         * modules/unistdio/ulc-vsnprintf-tests: New file.
222         * modules/unistdio/ulc-vsprintf-tests: New file.
223         * modules/unistdio/u8-asnprintf-tests: New file.
224         * modules/unistdio/u8-vasnprintf-tests: New file.
225         * modules/unistdio/u8-vasprintf-tests: New file.
226         * modules/unistdio/u8-vsnprintf-tests: New file.
227         * modules/unistdio/u8-vsprintf-tests: New file.
228         * modules/unistdio/u16-asnprintf-tests: New file.
229         * modules/unistdio/u16-vasnprintf-tests: New file.
230         * modules/unistdio/u16-vasprintf-tests: New file.
231         * modules/unistdio/u16-vsnprintf-tests: New file.
232         * modules/unistdio/u16-vsprintf-tests: New file.
233         * modules/unistdio/u32-asnprintf-tests: New file.
234         * modules/unistdio/u32-vasnprintf-tests: New file.
235         * modules/unistdio/u32-vasprintf-tests: New file.
236         * modules/unistdio/u32-vsnprintf-tests: New file.
237         * modules/unistdio/u32-vsprintf-tests: New file.
238         * MODULES.html.sh (Unicode string functions): Add the new modules.
239
240 2007-07-01  Bruno Haible  <bruno@clisp.org>
241
242         * lib/sprintf.c (sprintf): Limit the available length estimation,
243         to avoid address wraparound.
244         * lib/vsprintf.c (vsprintf): Likewise.
245         * modules/sprintf-posix (Dependencies): Add stdint.
246         * modules/vsprintf-posix (Dependencies): Likewise.
247
248 2007-07-01  Bruno Haible <bruno@clisp.org>
249
250         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
251         Windows PATH as well. Conservative double-quoting. Comments.
252
253 2007-07-01  Bruno Haible <bruno@clisp.org>
254             Eric Blake  <ebb9@byu.net>
255             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
256
257         * gnulib-tool (self_abspathname): Fix algorithm to cope with
258         empty components in $PATH, denoting '.'.
259
260 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
261
262         * gnulib-tool: Fix indentation.
263         (func_create_megatestdir): Likewise.
264         Report by Bruno Haible.
265
266 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
267
268         Sync from Automake.
269         * build-aux/gnupload: Fix shell portability issues with for loops.
270         Report by Karl Berry.
271
272 2007-06-29  Simon Josefsson  <simon@josefsson.org>
273
274         * build-aux/maint.mk (POURL): Use translationproject.org.
275
276 2007-06-27  Simon Josefsson  <simon@josefsson.org>
277             Bruno Haible  <bruno@clisp.org>
278
279         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
280         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
281         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
282         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
283         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
284
285 2007-06-27  Bruno Haible  <bruno@clisp.org>
286
287         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
288         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
289
290 2007-06-26  Karl Berry  <karl@gnu.org>
291
292         * MODULES.html.sh: remove xreadlink-with-size.
293
294 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
295
296         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
297         method that I hope also handles the double-include problem noted
298         by Bruno Haible in
299         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
300
301 2007-06-23  Bruno Haible  <bruno@clisp.org>
302
303         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
304         Don't let the 'mostlyclean' target fail if the last subdirectory could
305         not be removed.
306         Reported by Karl Berry.
307
308 2007-06-23  Bruno Haible  <bruno@clisp.org>
309
310         * gnulib-tool (echo): Add a speedier workaround for ksh.
311         * tests/test-echo.sh: Likewise.
312
313 2007-06-23  Bruno Haible  <bruno@clisp.org>
314
315         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
316         * tests/test-echo.sh: Likewise.
317
318 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
319
320         * gnulib-tool (IFS): Initialize early, so we don't set it to
321         empty later.
322         (self_abspathname): Rewrite algorithm to set it, reindent.
323         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
324         (func_create_megatestdir): Merge some sed scripts.
325
326 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
327
328         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
329         exposed by Sun Studio 11 cc on Solaris 8.
330
331 2007-06-22  Bruno Haible  <bruno@clisp.org>
332
333         * gnulib-tool (echo): Ensure the echo primitive does not interpret
334         backslashes.
335         * tests/test-echo.sh: New file.
336
337 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
338
339         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
340         simplify `sed_replace_build_aux' scripts, they are portable but
341         echoing them with `echo' is not.
342         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
343
344 2007-06-21  Karl Berry  <karl@gnu.org>
345
346         * config/srclist.txt: guess we can't handle the licenses via
347         srclist at the moment.
348
349 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
350
351         * MODULES.html.sh: Add include_next.
352         * modules/include_next: New file.
353
354 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
355
356         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
357         INCLUDE_NEXT.
358         (gl_CHECK_NEXT_HEADERS): New macro.
359         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
360         the obsolescent gl_ABSOLUTE_HEADER.
361         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
362         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
363         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
364         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
365         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
366         * m4/math_h.m4 (gl_MATH_H): Likewise.
367         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
368         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
369         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
370         * m4/stdint.m4 (gl_STDINT_H): Likewise.
371         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
372         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
373         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
374         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
375         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
376         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
377         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
378         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
379         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
380         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
381         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
382         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
383         * m4/inttypes.m4 (gl_INTTYPES_H): Define
384         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
385         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
386         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
387         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
388         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
389         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
390         * lib/float_.h: Likewise.
391         * lib/inttypes_.h: Likewise.
392         * lib/math_.h: Likewise.
393         * lib/search_.h: Likewise.
394         * lib/signal_.h: Likewise.
395         * lib/stdint_.h: Likewise.
396         * lib/stdio_.h: Likewise.
397         * lib/stdlib_.h: Likewise.
398         * lib/string_.h: Likewise.
399         * lib/sys_stat_.h: Likewise.
400         * lib/sys_time_.h: Likewise.
401         * lib/time_.h: Likewise.
402         * lib/unistd_.h: Likewise.
403         * lib/wchar_.h: Likewise.
404         * lib/wctype_.h: Likewise.
405         * lib/dirent_.h: Likewise.
406         * lib/iconv_.h: Likewise.
407         * lib/locale_.h: Likewise.
408         * lib/netinet_in_.h: Likewise.
409         * lib/sys_select_.h: Likewise.
410         * lib/sys_socket_.h: Likewise.
411         * lib/sysexits_.h: Likewise.
412         * modules/fcntl (Depends-on): Depend on include_next, not
413         absolute_header.
414         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
415         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
416         * modules/fchdir: Likewise.
417         * modules/float: Likewise.
418         * modules/iconv_open: Likewise.
419         * modules/inttypes: Likewise.
420         * modules/locale: Likewise.
421         * modules/math: Likewise.
422         * modules/netinet_in: Likewise.
423         * modules/search: Likewise.
424         * modules/signal: Likewise.
425         * modules/stdint: Likewise.
426         * modules/stdio: Likewise.
427         * modules/stdlib: Likewise.
428         * modules/string: Likewise.
429         * modules/sys_select: Likewise.
430         * modules/sys_socket: Likewise.
431         * modules/sys_stat: Likewise.
432         * modules/sys_time: Likewise.
433         * modules/sysexits: Likewise.
434         * modules/time: Likewise.
435         * modules/unistd: Likewise.
436         * modules/wchar: Likewise.
437         * modules/wctype: Likewise.
438         * modules/sys_stat: Change maintainer to "all".
439         * modules/unistd: Likewise.
440
441 2007-06-20  Karl Berry  <karl@gnu.org>
442
443         * config/srclist.txt: track www changes in license files.
444
445 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
446
447         * build-aux/bootstrap: Remove stray dot.
448         Make sure build_aux settings are honored when linking
449         gnulib_extra_files.
450
451 2007-06-19  Eric Blake  <ebb9@byu.net>
452
453         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
454         Allow compilation on cygwin.
455
456 2007-06-19  Jim Meyering  <jim@meyering.net>
457
458         xreadlink-with-size: Remove module.  No longer used.
459         Ex-callers now use xreadlink or mreadlink-with-size.
460         * modules/xreadlink-with-size: Remove module.
461         * lib/xreadlink-with-size.c: Remove file.
462         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
463         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
464         just before the function definition *is* accurate.
465
466         Eliminate one way canonicalize_filename_mode could exit.
467         * lib/canonicalize.c (canonicalize_filename_mode):
468         Use mreadlink_with_size, not xreadlink_with_size.
469
470 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
471
472         Detect porting problems to FreeBSD/arm, which has time_t wider than
473         long int.  Original problem reported for GNU diff by Xin Li in
474         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
475         * modules/getdate (Depends-on): Add intprops, verify.
476         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
477         is an integer type no wider than long int.
478
479 2007-06-18  Jim Meyering  <jim@meyering.net>
480
481         New module: mreadlink-with-size.
482         * MODULES.html.sh: Add mreadlink-with-size.
483         * modules/mreadlink-with-size: New module
484         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
485         not xreadlink-with-size.
486         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
487
488 2007-06-16  Bruno Haible  <bruno@clisp.org>
489
490         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
491         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
492         Reported by Gary V. Vaughan <gary@gnu.org>.
493
494 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
495
496         Revamp lchown so that it lives in unistd.h where it belongs.
497         * lib/lchown.h: Remove.
498         * lib/dirchownmod.c: Don't include lib/lchown.h.
499         * lib/fchownat.c: Likewise.
500         * lib/openat.c: Likewise.
501         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
502         does not follow symlinks.
503         (EOPNOTSUPP): Define if not defined.
504         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
505         is defined to 0.
506         (lchown): New decl.
507         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
508         Do not check for lchown decl.
509         Set REPLACE_LCHOWN.
510         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
511         REPLACE_LCHOWN.
512         * modules/chown: Make it clear it follows symlinks.
513         * modules/lchown: Make it clear it doesn't follow symlinks.
514         (Files): Remove lib/lchown.h
515         (Depends-on): Add unistd.
516         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
517         (Include): Include <unistd.h>, not "lchown.h".
518         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
519         REPLACE_LCHOWN.
520
521 2007-06-15  Jim Meyering  <jim@meyering.net>
522
523         Change license (GPL to LGPL) of fsusage and dependents.
524         * modules/fsusage (License): Change to LGPL.
525         * modules/full-read (License): Likewise.
526         * modules/full-write (License): Likewise.
527         * modules/safe-read (License): Likewise.
528         * modules/safe-write (License): Likewise.
529
530 2007-06-14  Ben Pfaff  <blp@gnu.org>
531
532         Missing part of allocsa -> malloca transition.
533         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
534         gl_MALLOCA.
535
536 2007-06-12  Bruno Haible  <bruno@clisp.org>
537
538         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
539         to ia64, x86_64, i386.
540         Reported by Eric Blake.
541
542 2007-06-12  Bruno Haible  <bruno@clisp.org>
543
544         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
545         cross-compiling to x86_64.
546
547 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
548
549         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
550         glitch reported by Ralf Wildenhues in
551         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
552
553         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
554         Vin Shelton.
555
556 2007-06-11  Bruno Haible  <bruno@clisp.org>
557
558         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
559         replacement string.
560         Reported by Eric Blake.
561
562 2007-06-10  Bruno Haible  <bruno@clisp.org>
563
564         Prepare vasnprintf code for use with Unicode strings.
565         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
566         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
567         TYPE_U32_STRING.
568         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
569         a_u32_string variants.
570         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
571         * lib/printf-args.c: Don't include config.h and the specification
572         header if PRINTF_FETCHARGS is already defined.
573         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
574         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
575         TYPE_U16_STRING, TYPE_U32_STRING.
576         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
577         u16_directive, u16_directives, u32_directive, u32_directives): New
578         types.
579         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
580         New declarations.
581         * lib/printf-parse.c: Don't include config.h and the specification
582         header if PRINTF_PARSE is already defined. Eliminate the set of
583         parameters for WIDE_CHAR_VERSION; the user of this file must provide
584         them now. Include c-ctype.h.
585         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
586         directive and CHAR_T_ONLY_ASCII.
587         * lib/vasnprintf.c: Don't include config.h and the specification header
588         if VASNPRINTF is already defined.
589         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
590         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
591         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
592         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
593         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
594         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
595         code accordingly.
596         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
597         pad_ourselves also in this case, with the 'c' and 's' directives, and
598         with a different notion of "width".
599         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
600
601 2007-06-10  Bruno Haible  <bruno@clisp.org>
602
603         * modules/unistr/u32-mbsnlen: New file.
604         * lib/unistr/u32-mbsnlen.c: New file.
605
606         * modules/unistr/u16-mbsnlen: New file.
607         * lib/unistr/u16-mbsnlen.c: New file.
608
609         * modules/unistr/u8-mbsnlen: New file.
610         * lib/unistr/u8-mbsnlen.c: New file.
611
612         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
613         declarations.
614
615 2007-06-10  Bruno Haible  <bruno@clisp.org>
616
617         * lib/string_.h (mbsnlen): New declaration.
618         * lib/mbsnlen.c: New file.
619         * m4/mbsnlen.m4: New file.
620         * modules/mbsnlen: New file.
621         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
622         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
623         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
624
625 2007-06-10  Bruno Haible  <bruno@clisp.org>
626
627         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
628
629 2007-06-10  Bruno Haible  <bruno@clisp.org>
630
631         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
632         * lib/mbuiter.h: Likewise.
633
634 2007-06-10  Bruno Haible  <bruno@clisp.org>
635
636         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
637         declaration.
638
639 2007-06-10  Karl Berry  <karl@gnu.org>
640
641         * config/srclist.txt: remove gettext entries, Bruno prefers
642         to update individually.
643
644 2007-06-10  Bruno Haible  <bruno@clisp.org>
645
646         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
647         'maxlen'. Ensure only length + width bytes are allocated, not
648         length + 1 + width.
649
650 2007-06-09  Bruno Haible  <bruno@clisp.org>
651
652         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
653         (CHAR_T): Remove macro.
654         (VASNPRINTF): Update.
655
656 2007-06-09  Bruno Haible  <bruno@clisp.org>
657
658         * MODULES.html.sh (Unicode string functions): Add the new modules.
659
660         * modules/uniconv/u32-conv-to-enc: New file.
661         * lib/uniconv/u32-conv-to-enc.c: New file.
662         * modules/uniconv/u32-conv-to-enc-tests: New file.
663         * tests/uniconv/test-u32-conv-to-enc.c: New file.
664
665         * modules/uniconv/u16-conv-to-enc: New file.
666         * lib/uniconv/u16-conv-to-enc.c: New file.
667         * lib/uniconv/u-conv-to-enc.h: New file.
668         * modules/uniconv/u16-conv-to-enc-tests: New file.
669         * tests/uniconv/test-u16-conv-to-enc.c: New file.
670
671         * modules/uniconv/u8-conv-to-enc: New file.
672         * lib/uniconv/u8-conv-to-enc.c: New file.
673         * modules/uniconv/u8-conv-to-enc-tests: New file.
674         * tests/uniconv/test-u8-conv-to-enc.c: New file.
675
676         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
677         u32_conv_to_encoding): New declarations.
678
679 2007-06-09  Bruno Haible  <bruno@clisp.org>
680
681         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
682
683 2007-06-09  Bruno Haible  <bruno@clisp.org>
684
685         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
686         * modules/malloca: Renamed from modules/allocsa, updated.
687         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
688         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
689         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
690         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
691         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
692         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
693         * modules/xmalloca: Renamed from modules/xallocsa, updated.
694         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
695         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
696         * modules/c-strcasestr (Depends-on): Update.
697         * lib/c-strcasestr.c: Update.
698         * modules/c-strstr (Depends-on): Update.
699         * lib/c-strstr.c: Update.
700         * modules/canonicalize-lgpl (Depends-on): Update.
701         * lib/canonicalize-lgpl.c: Update.
702         * modules/clean-temp (Depends-on): Update.
703         * lib/clean-temp.c: Update.
704         * modules/csharpcomp (Depends-on): Update.
705         * lib/csharpcomp.c: Update.
706         * modules/csharpexec (Depends-on): Update.
707         * lib/csharpexec.c: Update.
708         * modules/javacomp (Depends-on): Update.
709         * lib/javacomp.c: Update.
710         * modules/javaexec (Depends-on): Update.
711         * lib/javaexec.c: Update.
712         * modules/mbscasestr (Depends-on): Update.
713         * lib/mbscasestr.c: Update.
714         * modules/mbsstr (Depends-on): Update.
715         * lib/mbsstr.c: Update.
716         * modules/setenv (Depends-on): Update.
717         * lib/setenv.c: Update.
718         * modules/strcasestr (Depends-on): Update.
719         * lib/strcasestr.c: Update.
720         * modules/striconveha (Depends-on): Update.
721         * lib/striconveha.c: Update.
722         * modules/relocatable-prog-wrapper (Files): Update.
723         * lib/relocwrapper.c: Update.
724         * build-aux/install-reloc: Update.
725         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
726
727 2007-06-08  Bruno Haible  <bruno@clisp.org>
728
729         Port to uClibc.
730         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
731         * lib/fpurge.c (fpurge): Likewise.
732         * lib/freading.c (freading): Likewise.
733         * lib/fseeko.c (rpl_fseeko): Likewise.
734         * lib/fseterr.c (fseterr): Likewise.
735         * lib/fwriting.c (fwriting): Likewise.
736         * tests/test-fflush.c (main): Avoid a failure on uClibc.
737
738 2007-06-08  Bruno Haible  <bruno@clisp.org>
739
740         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
741         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
742         * modules/gettext (Files): Add m4/intlmacosx.m4.
743
744 2007-06-07  Bruno Haible  <bruno@clisp.org>
745
746         * modules/localename-tests: New file.
747         * tests/test-localename.c: New file.
748
749         New module 'localename'.
750         * lib/localename.h: New file.
751         * lib/localename.c: New file, from GNU gettext.
752         * m4/localename.m4: New file.
753         * modules/localename: New file.
754
755 2007-06-07  Bruno Haible  <bruno@clisp.org>
756
757         Work around the lack of <wchar.h> on some builds of uClibc.
758         * doc/headers/wchar.texi: Update.
759         * lib/wchar_.h: Include <wchar.h> only if it exists.
760         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
761         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
762         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
763         doesn't exist.
764         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
765         * modules/mbfile (Depends-on): Add wchar.
766         * modules/mbiter (Depends-on): Likewise.
767         * modules/mbuiter (Depends-on): Likewise.
768         Reported by Simon Josefsson.
769
770 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
771
772         Work around problem reported by Steven M. Schweda in
773         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
774         Tru64 5.1B with the Compaq compiler environment installed declares
775         an 'isblank' function but does not define it in the C library.
776         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
777         * lib/regex_internal.h (isblank): Likewise.
778         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
779         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
780
781 2007-06-05  Bruno Haible  <bruno@clisp.org>
782
783         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
784         ia64.
785         * modules/printf-safe: New file.
786         * modules/fprintf-posix (Depends-on): Add printf-safe.
787         * modules/printf-posix (Depends-on): Likewise.
788         * modules/snprintf-posix (Depends-on): Likewise.
789         * modules/sprintf-posix (Depends-on): Likewise.
790         * modules/vasnprintf-posix (Depends-on): Likewise.
791         * modules/vasprintf-posix (Depends-on): Likewise.
792         * modules/vfprintf-posix (Depends-on): Likewise.
793         * modules/vprintf-posix (Depends-on): Likewise.
794         * modules/vsnprintf-posix (Depends-on): Likewise.
795         * modules/vsprintf-posix (Depends-on): Likewise.
796         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
797         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
798         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
799         "no" on i386, x86_64, ia64.
800         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
801         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
802         on i386, x86_64, ia64.
803         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
804         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
805         on i386, x86_64, ia64.
806         * tests/test-vasnprintf-posix.c: Include float.h.
807         (LDBL80_WORDS): New macro.
808         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
809         on i386, x86_64, ia64.
810         * tests/test-vasprintf-posix.c: Include float.h.
811         (LDBL80_WORDS): New macro.
812         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
813         on i386, x86_64, ia64.
814         * tests/test-snprintf-posix.c: Include float.h.
815         * tests/test-sprintf-posix.c: Likewise.
816         * tests/test-vsnprintf-posix.c: Likewise.
817         * tests/test-vsprintf-posix.c: Likewise.
818
819 2007-06-05  Bruno Haible  <bruno@clisp.org>
820
821         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
822         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
823         non-IEEE numbers on i386, x86_64, ia64.
824         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
825         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
826         * tests/test-isnanl.h: Include float.h.
827         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
828
829 2007-06-05  Bruno Haible  <bruno@clisp.org>
830
831         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
832         also the %a / %A. Handle the %a / %A code before this extra handling.
833
834 2007-06-05  Bruno Haible  <bruno@clisp.org>
835
836         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
837         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
838
839 2007-06-05  Bruno Haible  <bruno@clisp.org>
840
841         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
842         typo in variable name.
843
844 2007-06-05  Eric Blake  <ebb9@byu.net>
845
846         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
847         Reported by Simon Josefsson.
848
849 2007-06-04  Bruno Haible  <bruno@clisp.org>
850
851         Avoid test failures on some PowerPC platforms.
852         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
853         Define differently for PowerPC.
854         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
855         Reported by Gary V. Vaughan <gary@gnu.org>.
856
857 2007-06-02  Bruno Haible  <bruno@clisp.org>
858
859         Fix test-stdint failure on FreeBSD/ia64.
860         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
861         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
862         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
863         * doc/headers/stdint.texi: Update.
864
865 2007-06-01  Bruno Haible  <bruno@clisp.org>
866
867         * tests/test-binary-io.c (main): Pass a third argument to open().
868         Reported by Gary V. Vaughan <gary@gnu.org>.
869
870 2007-06-01  Bruno Haible  <bruno@clisp.org>
871
872         * doc/functions/frexpl.texi: Update for mingw.
873
874 2007-06-01  Bruno Haible  <bruno@clisp.org>
875
876         * tests/test-lseek.c (main): Disable test of errno for invalid third
877         argument.
878         * doc/functions/lseek.texi: Update.
879         Reported by Gary V. Vaughan <gary@gnu.org>.
880
881 2007-05-28  Bruno Haible  <bruno@clisp.org>
882
883         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
884
885 2007-05-31  Eric Blake  <ebb9@byu.net>
886
887         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
888         cross compiling.
889
890 2007-05-30  Eric Blake  <ebb9@byu.net>
891         and Bruno Haible  <bruno@clisp.org>
892
893         Work around mingw test failures exposed by m4-1.4.9b.
894         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
895         * tests/test-unistd.c: Disable uid_t and git_t tests for the
896         moment.
897
898 2007-05-30  Bruno Haible  <bruno@clisp.org>
899
900         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
901         assuming that they are closed. Needed on HP-UX 11.
902
903 2007-05-29  Bruno Haible  <bruno@clisp.org>
904
905         Fix a problem with #include_next.
906         * lib/dirent_.h: Split the double-inclusion guard.
907         * lib/fcntl_.h: Likewise.
908         * lib/float_.h: Likewise.
909         * lib/iconv_.h: Likewise.
910         * lib/inttypes_.h: Likewise.
911         * lib/locale_.h: Likewise.
912         * lib/math_.h: Likewise.
913         * lib/netinet_in_.h: Likewise.
914         * lib/search_.h: Likewise.
915         * lib/signal_.h: Likewise.
916         * lib/stdint_.h: Likewise.
917         * lib/stdio_.h: Likewise.
918         * lib/stdlib_.h: Likewise.
919         * lib/string_.h: Likewise.
920         * lib/sys_select_.h: Likewise.
921         * lib/sys_socket_.h: Likewise.
922         * lib/sys_stat_.h: Likewise.
923         * lib/sys_time_.h: Likewise.
924         * lib/sysexits_.h: Likewise.
925         * lib/time_.h: Likewise.
926         * lib/unistd_.h: Likewise.
927         * lib/wchar_.h: Likewise.
928         * lib/wctype_.h: Likewise.
929
930 2007-05-29  Bruno Haible  <bruno@clisp.org>
931
932         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
933         for the moment.
934
935 2007-05-29  Bruno Haible  <bruno@clisp.org>
936
937         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
938         invocation.
939         Reported by Eric Blake.
940
941 2007-05-29  Bruno Haible  <bruno@clisp.org>
942
943         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
944         compiling case.
945
946 2007-05-29  Eric Blake  <ebb9@byu.net>
947             Bruno Haible  <bruno@clisp.org>
948
949         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
950         cross compiles.
951
952 2007-05-28  Eric Blake  <ebb9@byu.net>
953
954         * modules/closein-tests (test_closein_LDADD): Support test on
955         cygwin with libtool.
956
957 2007-05-28  Bruno Haible  <bruno@clisp.org>
958
959         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
960         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
961         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
962         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
963         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
964         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
965         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
966         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
967         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
968
969 2007-05-28  Eric Blake  <ebb9@byu.net>
970
971         Unconditionally include <config.h> in unit tests.
972         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
973         * tests/test-allocsa.c, tests/test-arcfour.c,
974         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
975         tests/test-array_list.c, tests/test-array_oset.c,
976         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
977         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
978         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
979         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
980         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
981         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
982         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
983         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
984         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
985         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
986         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
987         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
988         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
989         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
990         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
991         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
992         test-md5.c, test-memmem.c, test-printf-posix.c,
993         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
994         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
995         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
996         test-strcasestr.c, test-striconv.c, test-striconveh.c,
997         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
998         test-vasnprintf-posix2.c, test-vasnprintf.c,
999         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
1000         test-vfprintf-posix.c, test-vprintf-posix.c,
1001         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
1002         test-xvasprintf.c: Likewise.
1003
1004 2007-05-28  Bruno Haible  <bruno@clisp.org>
1005
1006         * gnulib-tool (func_import): Remember the --with-tests command-line
1007         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
1008         Reported by Eric Blake.
1009
1010 2007-05-28  Bruno Haible  <bruno@clisp.org>
1011
1012         * modules/ftell-tests: New file.
1013         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
1014         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
1015
1016         * lib/ftell.c: New file.
1017         * modules/ftell: New file.
1018         * m4/ftell.m4: New file.
1019         * doc/functions/ftell.texi: Update.
1020         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
1021         REPLACE_FTELL.
1022         * lib/stdio_.h (rpl_ftell): New declaration.
1023         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
1024         REPLACE_FTELL.
1025
1026 2007-05-28  Eric Blake  <ebb9@byu.net>
1027
1028         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
1029
1030 2007-05-28  Bruno Haible  <bruno@clisp.org>
1031
1032         * modules/fseek-tests: New file.
1033         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
1034         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
1035
1036         * lib/fseek.c: New file.
1037         * modules/fseek: New file.
1038         * m4/fseek.m4: New file.
1039         * doc/functions/fseek.texi: Update.
1040         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
1041         REPLACE_FSEEK.
1042         * lib/stdio_.h (rpl_fseek): New declaration.
1043         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
1044         REPLACE_FSEEK.
1045
1046 2007-05-28  Bruno Haible  <bruno@clisp.org>
1047
1048         * lib/stdio_.h (fflush): More comments.
1049
1050 2007-05-28  Bruno Haible  <bruno@clisp.org>
1051
1052         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
1053         runtime test.
1054
1055 2007-05-28  Eric Blake  <ebb9@byu.net>
1056
1057         Improve lseek module.
1058         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
1059         * lib/unistd_.h (lseek): Scale back link warning message.
1060         * tests/test-lseek.c: Beef up test.
1061         * tests/test-lseek.sh: Exercise more facets of lseek.
1062         Reported by Bruno Haible.
1063
1064 2007-05-28  Bruno Haible  <bruno@clisp.org>
1065
1066         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
1067         to define.
1068
1069 2007-05-27  Bruno Haible  <bruno@clisp.org>
1070
1071         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
1072
1073 2007-05-27  Bruno Haible  <bruno@clisp.org>
1074
1075         * modules/openmp: New file.
1076         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
1077         Noah Misch.
1078
1079 2007-05-26  Bruno Haible  <bruno@clisp.org>
1080
1081         * modules/chdir-long (Depends-on): Add fchdir.
1082         * modules/chdir-safer (Depends-on): Likewise.
1083         * modules/fts (Depends-on): Likewise.
1084         * modules/fts-lgpl (Depends-on): Likewise.
1085         * modules/openat (Depends-on): Likewise.
1086         * modules/savewd (Depends-on): Likewise.
1087
1088 2007-05-24  Eric Blake  <ebb9@byu.net>
1089
1090         Fix lseek on mingw.
1091         * modules/lseek: New module.
1092         * m4/lseek.m4: New file.
1093         * lib/lseek.c: New file.
1094         * modules/lseek-tests: New file.
1095         * tests/test-lseek.c: New file.
1096         * tests/test-lseek.sh: New file.
1097         * MODULES.html.sh: Document lseek module.
1098         * modules/fflush (Depends-on): Add lseek, fseeko.
1099         * modules/fseeko (Depends-on): Likewise.
1100         * modules/ftello (Depends-on): Likewise.
1101         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
1102         broken.
1103         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
1104         broken.
1105         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
1106         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
1107         * lib/ftello.c (rpl_ftello): Likewise.
1108         * tests/test-fseeko.c (main): Test this.
1109         * tests/test-fseeko.sh: Likewise.
1110         * tests/test-ftello.c (main): Likewise.
1111         * tests/test-ftello.sh: Likewise.
1112         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
1113         implies replacing fseek.
1114         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
1115         HAVE_FTELLO.
1116         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
1117         * modules/unistd (Makefile.am): Likewise.
1118         * lib/unistd_.h (lseek): Declare a replacement.
1119         * doc/functions/lseek.texi (lseek): Document this fix.
1120         * doc/functions/fseek.texi (fseek): Likewise.
1121         * doc/functions/ftell.texi (ftell): Likewise.
1122
1123 2007-05-24  Bruno Haible  <bruno@clisp.org>
1124
1125         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
1126         in the printed representation of a NaN.
1127         * tests/test-vasprintf-posix.c (test_function): Likewise.
1128         * tests/test-snprintf-posix.h (test_function): Likewise.
1129         * tests/test-sprintf-posix.h (test_function): Likewise.
1130         Reported by Eric Blake.
1131
1132 2007-05-23  Eric Blake  <ebb9@byu.net>
1133
1134         Fix fseeko/ftello on cygwin 1.5.24.
1135         * doc/functions/fseeko.texi (fseeko): Document the fix.
1136         * doc/functions/ftello.texi (ftello): Document the fix.
1137         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
1138         * doc/functions/stdout.text (stdout): New file.
1139         * doc/functions/stderr.text (stderr): New file.
1140         * doc/gnulib.texi (Function Substitutes): Use new files.
1141         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
1142         prior to 1.7.0.
1143         * tests/test-ftello.c (main): Likewise for ftello.
1144         * tests/test-fseeko.sh: New file.
1145         * tests/test-ftello.sh: New file.
1146         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
1147         with seekable stdin.
1148         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
1149         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
1150         (gl_REPLACE_FSEEKO): New macro.
1151         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
1152         * modules/fseeko (Files): Distribute fseeko.c.
1153         * modules/ftello (Files): Distribute ftello.c.
1154         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
1155         mode.
1156         * lib/ftello.c (rpl_ftello): New file.
1157         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
1158         fseeko, ftello.
1159         (gl_STDIN_LARGE_OFFSET): New macro.
1160         * modules/stdio (Makefile.am): Perform the replacement.
1161         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
1162
1163 2007-05-23  Bruno Haible  <bruno@clisp.org>
1164
1165         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
1166         GNULIB_POSIXCHECK is defined.
1167
1168 2007-05-21  Bruno Haible  <bruno@clisp.org>
1169
1170         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
1171         Check also the output for NaN arguments. When cross-compiling, guess
1172         no on IRIX.
1173         * lib/vasnprintf.c: Update comments.
1174         * tests/test-vasnprintf-posix.c (strisnan): New function.
1175         (test_function): Use it.
1176         * tests/test-vasprintf-posix.c (strisnan): New function.
1177         (test_function): Use it.
1178         * tests/test-snprintf-posix.h (strisnan): New function.
1179         (test_function): Use it.
1180         * tests/test-sprintf-posix.h (strisnan): New function.
1181         (test_function): Use it.
1182         Reported by Eric Blake.
1183
1184 2007-05-20  Bruno Haible  <bruno@clisp.org>
1185
1186         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
1187         numbers that fails on BeOS.
1188         * doc/functions/frexpl.texi: Update.
1189
1190 2007-05-20  Jim Meyering  <jim@meyering.net>
1191
1192         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
1193         forced upon us by glibc-2.6.
1194
1195 2007-05-20  Bruno Haible  <bruno@clisp.org>
1196
1197         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
1198         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
1199         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
1200         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
1201         NEED_PRINTF_INFINITE.
1202         (is_infinitel): New function.
1203         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
1204         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
1205         gl_PREREQ_VASNPRINTF_INFINITE.
1206         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
1207         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
1208         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
1209         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
1210         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
1211         gl_PREREQ_VASNPRINTF_INFINITE.
1212         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
1213         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
1214         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
1215         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
1216         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
1217         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
1218         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
1219         * doc/functions/fprintf.texi: Update.
1220         * doc/functions/printf.texi: Update.
1221         * doc/functions/snprintf.texi: Update.
1222         * doc/functions/sprintf.texi: Update.
1223         * doc/functions/vfprintf.texi: Update.
1224         * doc/functions/vprintf.texi: Update.
1225         * doc/functions/vsnprintf.texi: Update.
1226         * doc/functions/vsprintf.texi: Update.
1227
1228 2007-05-20  Bruno Haible  <bruno@clisp.org>
1229
1230         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
1231         was not found in libc.
1232         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
1233
1234 2007-05-20  Bruno Haible  <bruno@clisp.org>
1235
1236         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
1237         printed as "-nan" instead of "nan".
1238         * tests/test-vasprintf-posix.c (test_function): Likewise.
1239         * tests/test-snprintf-posix.h (test_function): Likewise.
1240         * tests/test-sprintf-posix.h (test_function): Likewise.
1241         Needed for HP-UX 11.
1242
1243 2007-05-20  Jim Meyering  <jim@meyering.net>
1244
1245         Fix buggy test for the fchownat-deref bug.
1246         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
1247         symlink required for the run-test.  Without it, this test would
1248         always declare that fchownat doesn't work, and client code would
1249         unnecessarily use the replacement function with fixed libc.
1250         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
1251         Reported by Greg Schafer.
1252
1253 2007-05-19  Bruno Haible  <bruno@clisp.org>
1254
1255         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
1256         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
1257         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
1258         Needed for IRIX 6.5 and Solaris 2.5.1.
1259
1260 2007-05-19  Bruno Haible  <bruno@clisp.org>
1261
1262         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
1263         (test_function): Skip tests involving -0.0 on platforms where
1264         -0.0 = 0.0.
1265         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
1266         (test_function): Skip tests involving -0.0 on platforms where
1267         -0.0 = 0.0.
1268         * tests/test-snprintf-posix.h (have_minus_zero): New function.
1269         (test_function): Skip tests involving -0.0 on platforms where
1270         -0.0 = 0.0.
1271         * tests/test-sprintf-posix.h (have_minus_zero): New function.
1272         (test_function): Skip tests involving -0.0 on platforms where
1273         -0.0 = 0.0.
1274         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
1275         tests.
1276         * tests/test-printf-posix.h (test_function): Likewise.
1277         * tests/test-printf-posix.output: Remove all -0.0 related results.
1278         Needed for IRIX 6.5.
1279
1280 2007-05-19  Bruno Haible  <bruno@clisp.org>
1281
1282         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
1283         printed as "nan0x7fffffff" instead of "nan".
1284         * tests/test-vasprintf-posix.c (test_function): Likewise.
1285         * tests/test-snprintf-posix.h (test_function): Likewise.
1286         * tests/test-sprintf-posix.h (test_function): Likewise.
1287         * tests/test-fprintf-posix.h (NaN): Remove macro.
1288         (test_function): Remove all NaN related tests.
1289         * tests/test-printf-posix.h (NaN): Remove macro.
1290         (test_function): Remove all NaN related tests.
1291         * tests/test-printf-posix.output: Remove all NaN related results.
1292         Needed for IRIX 6.5.
1293
1294 2007-05-19  Bruno Haible  <bruno@clisp.org>
1295
1296         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
1297         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
1298
1299 2007-05-19  Bruno Haible  <bruno@clisp.org>
1300
1301         * lib/float_.h: New file.
1302         * m4/float_h.m4: New file.
1303         * modules/float: New file.
1304         * modules/isnanl (Dependencies): Add float.
1305         * modules/isnanl-nolibm (Dependencies): Likewise.
1306         * modules/mathl (Dependencies): Likewise.
1307         * modules/printf-frexpl (Dependencies): Likewise.
1308         * modules/signbit (Dependencies): Likewise.
1309         * modules/vasnprintf (Dependencies): Likewise.
1310         * doc/headers/float.texi: Update.
1311
1312 2007-05-19  Jim Meyering  <jim@meyering.net>
1313
1314         * lib/utimens.c (gl_futimens): Rename from futimens,
1315         now that glibc-2.6 declares futimens.
1316         * lib/utimens.h: Likewise.
1317
1318 2007-05-19  Bruno Haible  <bruno@clisp.org>
1319
1320         Avoid test failures on mingw.
1321         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
1322         * tests/test-printf-posix.sh: Likewise.
1323         * tests/test-vfprintf-posix.sh: Likewise.
1324         * tests/test-vprintf-posix.sh: Likewise.
1325
1326 2007-05-19  Bruno Haible  <bruno@clisp.org>
1327
1328         Fix *printf result for NaN, Inf, -0.0 on mingw.
1329         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
1330         * lib/vasnprintf.c: Include math.h and isnan.h.
1331         (is_infinite_or_zero): New function.
1332         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
1333         values in the %f, %F, %e, %E, %g, %G directives.
1334         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
1335         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
1336         gl_PRINTF_INFINITE and test its result. Invoke
1337         gl_PREREQ_VASNPRINTF_INFINITE.
1338         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
1339         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
1340         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
1341         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
1342         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
1343         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
1344         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
1345         * doc/functions/fprintf.texi: Update.
1346         * doc/functions/printf.texi: Update.
1347         * doc/functions/snprintf.texi: Update.
1348         * doc/functions/sprintf.texi: Update.
1349         * doc/functions/vfprintf.texi: Update.
1350         * doc/functions/vprintf.texi: Update.
1351         * doc/functions/vsnprintf.texi: Update.
1352         * doc/functions/vsprintf.texi: Update.
1353
1354 2007-05-19  Bruno Haible  <bruno@clisp.org>
1355
1356         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
1357         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
1358         Instead of multiplying with 10^k, set extra_zeroes to k.
1359         (scale10_round_long_double): Remove function.
1360
1361 2007-05-18  Bruno Haible  <bruno@clisp.org>
1362
1363         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
1364         introduced on 2007-05-06.
1365
1366 2007-05-18  Bruno Haible  <bruno@clisp.org>
1367
1368         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
1369         %g directives.
1370         * tests/test-vasprintf-posix.c (test_function): Likewise.
1371         * tests/test-snprintf-posix.h (test_function): Likewise.
1372         * tests/test-sprintf-posix.h (test_function): Likewise.
1373
1374 2007-05-18  Bruno Haible  <bruno@clisp.org>
1375
1376         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
1377         (strmatch): New function.
1378         (test_function): Test the %f directive on numbers of various exponents.
1379         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
1380         (strmatch): New function.
1381         (test_function): Test the %f directive on numbers of various exponents.
1382         * tests/test-snprintf-posix.h (strmatch): New function.
1383         (test_function): Test the %f directive on numbers of various exponents.
1384         * tests/test-sprintf-posix.h (strmatch): New function.
1385         (test_function): Test the %f directive on numbers of various exponents.
1386         * tests/test-snprintf-posix.c (SIZEOF): New macro.
1387         * tests/test-sprintf-posix.c (SIZEOF): New macro.
1388         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
1389         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
1390
1391 2007-05-18  Bruno Haible  <bruno@clisp.org>
1392
1393         Add support for 'long double' number output.
1394         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
1395         * lib/vasnprintf.c: Include math.h and float+.h.
1396         (mp_limb_t): New type.
1397         (GMP_LIMB_BITS): New macro.
1398         (mp_twolimb_t): New type.
1399         (GMP_TWOLIMB_BITS): New macro.
1400         (mpn_t): New type.
1401         (multiply, divide, convert_to_decimal, decode_long_double,
1402         scale10_round_long_double, scale10_round_decimal_long_double,
1403         floorlog10l): New functions.
1404         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
1405         for the %f, %F, %e, %E, %g, %G directives.
1406         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
1407         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
1408         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
1409         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
1410         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
1411         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
1412         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
1413         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
1414         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
1415         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
1416         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
1417         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
1418         * modules/snprintf-posix (Depends-on): Likewise.
1419         * modules/sprintf-posix (Depends-on): Likewise.
1420         * modules/vasnprintf-posix (Depends-on): Likewise.
1421         * modules/vasprintf-posix (Depends-on): Likewise.
1422         * modules/vfprintf-posix (Depends-on): Likewise.
1423         * modules/vsnprintf-posix (Depends-on): Likewise.
1424         * modules/vsprintf-posix (Depends-on): Likewise.
1425         * modules/vasnprintf (Files): Add lib/float+.h.
1426         * doc/functions/fprintf.texi: Update.
1427         * doc/functions/printf.texi: Update.
1428         * doc/functions/snprintf.texi: Update.
1429         * doc/functions/sprintf.texi: Update.
1430         * doc/functions/vfprintf.texi: Update.
1431         * doc/functions/vprintf.texi: Update.
1432         * doc/functions/vsnprintf.texi: Update.
1433         * doc/functions/vsprintf.texi: Update.
1434
1435 2007-05-18  Bruno Haible  <bruno@clisp.org>
1436
1437         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
1438
1439 2007-05-18  Bruno Haible  <bruno@clisp.org>
1440
1441         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
1442         for printing 64-bit integers. Needed for mingw.
1443
1444 2007-05-18  Bruno Haible  <bruno@clisp.org>
1445
1446         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
1447         gl_FUNC_FREXPL_WORKS.
1448         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
1449
1450 2007-05-18  Bruno Haible  <bruno@clisp.org>
1451
1452         * modules/frexpl-nolibm-tests: New file.
1453
1454         * modules/frexpl-nolibm: New file.
1455         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
1456
1457 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
1458
1459         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
1460         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
1461         GCC 4.2, which otherwise issues a lot of warnings.
1462         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
1463         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
1464         Likewise.
1465         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
1466         * modules/iconv_open (iconv.h): Likewise.
1467         * modules/locale (locale.h): Likewise.
1468         * modules/netinet_in (netinet/in.h): Likewise.
1469         * modules/sys_select (sys_select.h): Likewise.
1470         * modules/sys_socket (sys/socket.h): Likewise.
1471         * modules/sys_stat (sys/stat.h): Likewise.
1472         * modules/sysexits (sysexits.h): Likewise.
1473         * modules/unistd (unistd.h): Likewise.
1474
1475 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1476
1477         * modules/closein-tests (Makefile.am): Distribute
1478         `test-closein.sh'.
1479
1480 2007-05-17  Bruno Haible  <bruno@clisp.org>
1481
1482         * tests/test-printf-posix.output: Renamed from
1483         tests/test-fprintf-posix.out.
1484         * modules/fprintf-posix-tests: Update.
1485         * modules/printf-posix-tests: Update.
1486         * modules/vfprintf-posix-tests: Update.
1487         * modules/vprintf-posix-tests: Update.
1488         * tests/test-fprintf-posix.sh: Update.
1489         * tests/test-printf-posix.sh: Update.
1490         * tests/test-vfprintf-posix.sh: Update.
1491         * tests/test-vprintf-posix.sh: Update.
1492         Reported by Ralf Wildenhues.
1493
1494 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
1495
1496         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
1497         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
1498         GCC 4.2, which otherwise issues a lot of warnings.
1499         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
1500         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
1501         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
1502         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
1503         it should no longer be needed.
1504         * lib/string_.h: Likewise.
1505         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
1506         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
1507         * modules/inttypes (inttypes.h): Likewise.
1508         * modules/math (math.h): Likewise.
1509         * modules/search (search.h): Likewise.
1510         * modules/signal (signal.h): Likewise.
1511         * modules/stdint (stdint.h): Likewise.
1512         * modules/stdio (stdio.h): Likewise.
1513         * modules/stdlib (stdlib.h): Likewise.
1514         * modules/string (string.h): Likewise.
1515         * modules/sys_time (sys/time.h): Likewise.
1516         * modules/time (time.h): Likewise.
1517         * modules/wchar (wchar.h): Likewise.
1518         * modules/wctype (wtype.h): Likewise.
1519
1520 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
1521
1522         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
1523
1524 2007-05-13  Bruno Haible  <bruno@clisp.org>
1525
1526         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
1527         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
1528         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
1529         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
1530         (gl_PREREQ_STRTOK_R): Don't require it here.
1531
1532 2007-05-13  Bruno Haible  <bruno@clisp.org>
1533
1534         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
1535         when used in C++ mode.
1536
1537 2007-05-12  Bruno Haible  <bruno@clisp.org>
1538
1539         * lib/linebuffer.h: Tweak doc.
1540         * lib/linebuffer.c: Likewise.
1541
1542 2007-05-12  James Youngman  <jay@gnu.org>
1543
1544         * lib/linebuffer.c (readlinebuffer_delim): New function,
1545         like readlinebuffer, but use a caller-specified delimiter.
1546         (readlinebuffer): Just call readlinebuffer_delim with '\n'
1547         as the delimiter.
1548         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
1549
1550 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
1551
1552         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
1553         * modules/openat (Files): Remove openat-die.c.
1554         (Depends-on): Add openat-die.
1555         * modules/openat-die: New module.
1556
1557 2007-05-06  Bruno Haible  <bruno@clisp.org>
1558
1559         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
1560         Update with info about Cygwin.
1561         * doc/functions/fprintf.texi: Update.
1562         * doc/functions/printf.texi: Update.
1563         * doc/functions/snprintf.texi: Update.
1564         * doc/functions/sprintf.texi: Update.
1565         * doc/functions/vfprintf.texi: Update.
1566         * doc/functions/vprintf.texi: Update.
1567         * doc/functions/vsnprintf.texi: Update.
1568         * doc/functions/vsprintf.texi: Update.
1569         Reported by Eric Blake.
1570
1571 2007-05-06  Bruno Haible  <bruno@clisp.org>
1572
1573         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
1574         padding ourselves for the floating-point directives.
1575         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
1576         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
1577         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
1578         gl_PRINTF_FLAG_ZERO and test its result. Invoke
1579         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
1580         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
1581         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
1582         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
1583         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
1584         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
1585         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
1586         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
1587         * tests/test-snprintf-posix.h (test_function): Also check the width
1588         and some flags in the %f directive.
1589         * tests/test-sprintf-posix.h (test_function): Likewise.
1590         * tests/test-vasnprintf-posix.c (test_function): Likewise.
1591         * tests/test-vasprintf-posix.c (test_function): Likewise.
1592         * doc/functions/fprintf.texi: Update.
1593         * doc/functions/printf.texi: Update.
1594         * doc/functions/snprintf.texi: Update.
1595         * doc/functions/sprintf.texi: Update.
1596         * doc/functions/vfprintf.texi: Update.
1597         * doc/functions/vprintf.texi: Update.
1598         * doc/functions/vsnprintf.texi: Update.
1599         * doc/functions/vsprintf.texi: Update.
1600
1601 2007-05-06  Bruno Haible  <bruno@clisp.org>
1602
1603         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
1604         pass the ' flag character to sprintf or snprintf.
1605         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
1606         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
1607         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
1608         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
1609         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
1610         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
1611         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
1612         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
1613         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
1614         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
1615         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
1616         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
1617         * tests/test-snprintf-posix.h (test_function): Also check the grouping
1618         flag.
1619         * tests/test-sprintf-posix.h (test_function): Likewise.
1620         * tests/test-vasnprintf-posix.c (test_function): Likewise.
1621         * tests/test-vasprintf-posix.c (test_function): Likewise.
1622         * doc/functions/fprintf.texi: Update.
1623         * doc/functions/printf.texi: Update.
1624         * doc/functions/snprintf.texi: Update.
1625         * doc/functions/sprintf.texi: Update.
1626         * doc/functions/vfprintf.texi: Update.
1627         * doc/functions/vprintf.texi: Update.
1628         * doc/functions/vsnprintf.texi: Update.
1629         * doc/functions/vsprintf.texi: Update.
1630
1631 2007-05-01  Bruno Haible  <bruno@clisp.org>
1632
1633         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
1634
1635 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
1636
1637         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
1638         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
1639
1640 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
1641
1642         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
1643         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
1644         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
1645
1646 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
1647
1648         * lib/argp-help.c (struct hol_entry): New member `ord'.
1649         (HOL_ENTRY_PTRCMP): Use ord for comparison
1650         (hol_sort): Initialize ord.
1651
1652 2007-05-01  Bruno Haible  <bruno@clisp.org>
1653
1654         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
1655         Reported by Eric Blake.
1656         * doc/gnulib.texi (Function Substitutes): Update.
1657
1658 2007-05-01  Bruno Haible  <bruno@clisp.org>
1659
1660         * doc/functions.texi: Remove file, now redundant through
1661         doc/functions/*.texi.
1662
1663 2007-05-01  Bruno Haible  <bruno@clisp.org>
1664
1665         * modules/argp (Depends-on): Add sleep.
1666
1667 2007-05-01  Bruno Haible  <bruno@clisp.org>
1668
1669         * modules/sleep-tests: New file.
1670         * tests/test-sleep.c: New file.
1671
1672         * modules/sleep: New file.
1673         * lib/sleep.c: New file.
1674         * m4/sleep.m4: New file.
1675         * lib/unistd_.h (sleep): New declaration.
1676         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
1677         HAVE_SLEEP.
1678         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
1679         * doc/functions/sleep.texi: Document the sleep module.
1680
1681 2007-05-01  Bruno Haible  <bruno@clisp.org>
1682
1683         * lib/sigprocmask.h: Remove file.
1684         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
1685         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
1686         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
1687         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
1688         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
1689         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
1690         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
1691         HAVE_SIGSET_T as a shell variable.
1692         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
1693         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
1694         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
1695         (Depends-on): Add signal. Remove verify.
1696         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
1697         (Include): Mention <signal.h> instead of sigprocmask.h.
1698         * NEWS: Mention the change.
1699         * lib/fatal-signal.c: Don't include sigprocmask.h.
1700
1701 2007-05-01  Bruno Haible  <bruno@clisp.org>
1702
1703         * modules/signal: New file.
1704         * lib/signal_.h: New file.
1705         * m4/signal_h.m4: New file.
1706
1707 2007-05-01  Bruno Haible  <bruno@clisp.org>
1708
1709         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
1710         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
1711         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
1712         HAVE_WCTYPE_CTMP_BUG into wctype.h.
1713
1714 2007-05-01  Bruno Haible  <bruno@clisp.org>
1715
1716         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
1717         configure time.
1718         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
1719         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
1720         * modules/sys_stat (Makefile.am): Substitute their values into
1721         sys/stat.h.
1722
1723 2007-05-01  Bruno Haible  <bruno@clisp.org>
1724
1725         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
1726         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
1727         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
1728
1729 2007-05-01  Bruno Haible  <bruno@clisp.org>
1730
1731         * doc/header/assert.texi: Undo last change: don't mention the gnulib
1732         'assert' module here.
1733
1734 2007-05-01  Bruno Haible  <bruno@clisp.org>
1735
1736         * doc/functions/*.texi: New files.
1737         * doc/functions/google-ranking.txt: New file.
1738         * doc/gnulib.texi (Function Substitutes): New chapter.
1739         (ctime, inet_ntoa): Remove sections.
1740         * doc/ctime.texi: Remove file.
1741         * doc/inet_ntoa.texi: Remove file.
1742         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
1743         dependencies.
1744         (%.info): New rule, specifying a --reference-limit.
1745
1746 2007-05-01  Bruno Haible  <bruno@clisp.org>
1747
1748         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
1749
1750 2007-05-01  Bruno Haible  <bruno@clisp.org>
1751
1752         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
1753         the portability of 'mkdir' to mingw systems.
1754
1755 2007-05-01  Bruno Haible  <bruno@clisp.org>
1756
1757         * doc/headers/google-ranking.txt: New file.
1758
1759 2007-04-30  Eric Blake  <ebb9@byu.net>
1760
1761         Prefer fseeko to fseek.
1762         * modules/getpass (Depends-on): Add fseeko.
1763         * lib/getpass.c (getpass): Use fseeko, not fseek.
1764
1765 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
1766
1767         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
1768         assumes the sorting is stable, while most qsort implementations
1769         are not.  Use argument addresses to ensure they never compare as
1770         equal.
1771
1772         * tests/test-argp-2.sh (usage-indent test): Fix output
1773         (func_compare): Restore diff options
1774         * tests/test-argp.c: Restore #include "progname.h"
1775
1776 2007-04-29  Bruno Haible  <bruno@clisp.org>
1777
1778         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
1779         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
1780         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
1781         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
1782         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
1783         (configure.ac): Define CHECK_SNPRINTF_POSIX.
1784         (TESTS, check_PROGRAMS): Add test-snprintf.
1785         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
1786         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
1787         (TESTS, check_PROGRAMS): Add test-vsnprintf.
1788         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
1789         assertions that fail on HP-UX, OSF/1, or IRIX.
1790         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
1791
1792 2007-04-29  Bruno Haible  <bruno@clisp.org>
1793
1794         * MODULES.html.sh (posix_functions): Remove 'contents'.
1795
1796 2007-04-29  Karl Berry  <karl@gnu.org>
1797
1798         * config/srclist.txt (gendocs_template_min): new entry.
1799
1800 2007-04-29  Bruno Haible  <bruno@clisp.org>
1801
1802         Work around fpurge bug on BSD systems.
1803         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
1804         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
1805         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
1806         fpurge to rpl_fpurge if the system already has this function.
1807         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
1808         the case where the system already has this function. Correct invariants
1809         on BSD systems.
1810         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
1811         BSD systems.
1812
1813 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
1814
1815         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
1816         proposed by Sven Verdoolaege.
1817
1818         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
1819         options.
1820         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
1821         (usage and help tests): Update
1822
1823 2007-04-29  Bruno Haible  <bruno@clisp.org>
1824
1825         * tests/test-fflush.c (main): Use a file of size 17, not 10.
1826         Print more information in case of failure. Disable a test on BeOS.
1827
1828 2007-04-29  Bruno Haible  <bruno@clisp.org>
1829
1830         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
1831         This helps debugging on systems on which no gdb is available.
1832
1833 2007-04-29  Bruno Haible  <bruno@clisp.org>
1834
1835         * lib/freading.h: Improve comments.
1836         * lib/fwriting.h: Likewise.
1837         * tests/test-freading.c (main): Don't check freading immediately after
1838         repositioning. Needed for glibc.
1839
1840 2007-04-29  Bruno Haible  <bruno@clisp.org>
1841
1842         * lib/freading.c (freading): Trivial simplification.
1843
1844 2007-04-28  Bruno Haible  <bruno@clisp.org>
1845
1846         * tests/test-fwriting.c (main): Also test the interaction between
1847         fflush and fwriting.
1848         * modules/fwriting-tests (Depends-on): Add fflush.
1849
1850         * tests/test-freading.c (main): Also test the interaction between
1851         fflush and freading.
1852         * modules/freading-tests (Depends-on): Add fflush.
1853
1854 2007-04-28  Bruno Haible  <bruno@clisp.org>
1855
1856         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
1857         fseeko and ftello.
1858         Suggested by Eric Blake.
1859
1860 2007-04-28  Jim Meyering  <jim@meyering.net>
1861
1862         Avoid false-negative in gl_STDINT_H's C99 conformance test.
1863         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
1864         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
1865
1866 2007-04-27  Eric Blake  <ebb9@byu.net>
1867
1868         * doc/headers/assert.texi (assert.h): Document assert module use.
1869
1870 2007-04-27  Bruno Haible  <bruno@clisp.org>
1871
1872         * doc/headers/*.texi: New files.
1873         * doc/gnulib.texi (Header File Substitutes): New chapter.
1874         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
1875         dependencies.
1876         (standards.info ,standards.html, standards.dvi): Update dependencies.
1877         (mostlyclean, clean): New targets.
1878
1879 2007-04-27  Bruno Haible  <bruno@clisp.org>
1880
1881         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
1882         * modules/sysexits (Files, Makefile.am): Update.
1883
1884         * lib/sys_socket_.h: Renamed from lib/socket_.h.
1885         * modules/sys_socket (Files, Makefile.am): Update.
1886
1887         * lib/sys_stat_.h: Renamed from lib/stat_.h.
1888         * modules/sys_stat (Files, Makefile.am): Update.
1889
1890 2007-04-27  Eric Blake  <ebb9@byu.net>
1891
1892         * lib/freading.h: Improve comments.
1893         * lib/fwriting.h: Likewise.
1894         * lib/fflush.c: Likewise.
1895
1896         Fix closein for mingw.
1897         * modules/closein-tests: Add tests for closein.
1898         * tests/test-closein.c: New file.
1899         * tests/test-closein.sh: Likewise.
1900         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
1901         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
1902
1903 2007-04-27  Bruno Haible  <bruno@clisp.org>
1904
1905         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
1906         version is < 6.
1907         * lib/math_.h [__DECC]: Likewise.
1908         * lib/stdio_.h [__DECC]: Likewise.
1909         * lib/stdlib_.h [__DECC]: Likewise.
1910         * lib/string_.h [__DECC]: Likewise.
1911         * lib/time_.h [__DECC]: Likewise.
1912         * lib/wchar_.h [__DECC]: Likewise.
1913         * lib/wctype_.h [__DECC]: Likewise.
1914
1915 2007-04-27  Bruno Haible  <bruno@clisp.org>
1916
1917         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
1918
1919 2007-04-27  Bruno Haible  <bruno@clisp.org>
1920
1921         * lib/fflush.c: Add comments.
1922         * modules/fpurge-tests (Depends-on): Add fflush.
1923         * modules/freadable-tests (Depends-on): Likewise.
1924         * modules/fwritable-tests (Depends-on): Likewise.
1925
1926 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
1927
1928         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
1929         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
1930         Report by Bruno Haible <bruno@clisp.org>.
1931
1932 2007-04-26  Eric Blake  <ebb9@byu.net>
1933
1934         Fix fflush on mingw.
1935         * modules/fflush (Depends-on): Add freading.
1936         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
1937         but unread data.
1938
1939 2007-04-26  Eric Blake  <ebb9@byu.net>
1940         and Bruno Haible  <bruno@clisp.org>
1941
1942         Implement freading and fwriting.
1943         * lib/freading.c: New file.
1944         * lib/freading.h: Likewise.
1945         * m4/freading.m4: Likewise.
1946         * modules/freading: Likewise.
1947         * modules/freading-tests: Likewise.
1948         * tests/test-freading.c: Likewise.
1949         * lib/fwriting.c: New file.
1950         * lib/fwriting.h: Likewise.
1951         * m4/fwriting.m4: Likewise.
1952         * modules/fwriting: Likewise.
1953         * modules/fwriting-tests: Likewise.
1954         * tests/test-fwriting.c: Likewise.
1955         * MODULES.html.sh (File stream based Input/Output): Mention them.
1956
1957 2007-04-26  Bruno Haible  <bruno@clisp.org>
1958
1959         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
1960         'long' when we assume it.
1961         Suggested by Eric Blake.
1962
1963 2007-04-26  Bruno Haible  <bruno@clisp.org>
1964
1965         Ensure fseeko, ftello are declared on glibc systems.
1966         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
1967         * modules/fseeko (configure.ac-early): Likewise.
1968         * modules/ftello (configure.ac-early): Likewise.
1969         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
1970         AC_FUNC_FSEEKO for this.
1971         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
1972         (gl_CHECK_FSEEKO): Remove macro.
1973
1974 2007-04-26  Bruno Haible  <bruno@clisp.org>
1975
1976         * tests/test-fflush.c (main): Also check the ftell result after
1977         fflush and fseek/fseeko.
1978         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
1979         file descriptor position cache in the stream.
1980         * lib/fseeko.c (rpl_fseeko): Likewise.
1981
1982 2007-04-26  Bruno Haible  <bruno@clisp.org>
1983
1984         * modules/fflush-tests (Depends-on): Add fseeko.
1985
1986 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
1987             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1988
1989         * lib/argz_.h: ensure error_t definition is obtained in same
1990         mechanism system argz.h would have.
1991         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
1992         argz facilities are known bad.  Err on the side of caution if
1993         cross-compiling.
1994
1995 2007-04-25  Eric Blake  <ebb9@byu.net>
1996
1997         * lib/fpurge.c (includes): Use stdlib.h for free.
1998         * tests/test-fflush.c (main): Also test fflush-fseeko.
1999
2000 2007-04-25  Bruno Haible  <bruno@clisp.org>
2001
2002         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
2003         * lib/fseeko.c: New file.
2004         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
2005         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
2006         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
2007         gl_FUNC_FSEEKO.
2008         (gl_FUNC_FSEEKO): Invoke it.
2009         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
2010         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
2011         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
2012
2013 2007-04-25  Bruno Haible  <bruno@clisp.org>
2014
2015         * modules/fflush (Depends-on): Add ftello.
2016
2017 2007-04-25  Bruno Haible  <bruno@clisp.org>
2018
2019         * modules/ftello-tests: New file.
2020         * tests/test-ftello.c: New file.
2021
2022         * modules/ftello: New file.
2023         * m4/ftello.m4: New file.
2024         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
2025         HAVE_FTELLO.
2026         * lib/stdio_.h (ftello): New declaration.
2027         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
2028         HAVE_FTELLO.
2029
2030 2007-04-25  Bruno Haible  <bruno@clisp.org>
2031
2032         * modules/fseeko-tests: New file.
2033         * tests/test-fseeko.c: New file.
2034
2035         * modules/fseeko: New file.
2036         * m4/fseeko.m4: New file.
2037         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
2038         HAVE_FSEEKO.
2039         * lib/stdio_.h (fseeko): New declaration.
2040         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
2041         HAVE_FSEEKO.
2042
2043 2007-04-25  Bruno Haible  <bruno@clisp.org>
2044
2045         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
2046
2047 2007-04-25  Bruno Haible  <bruno@clisp.org>
2048
2049         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
2050         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
2051         * tests/test-unistd.c: Likewise.
2052         * tests/test-fcntl.c: Likewise.
2053
2054 2007-04-23  Eric Blake  <ebb9@byu.net>
2055
2056         * lib/fflush.c: Fix missing include.
2057         Reported by Bruno Haible.
2058
2059 2007-04-23  Bruno Haible  <bruno@clisp.org>
2060
2061         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
2062         Reported by Eric Blake.
2063
2064 2007-04-23  Bruno Haible  <bruno@clisp.org>
2065
2066         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
2067
2068 2007-04-23  Bruno Haible  <bruno@clisp.org>
2069
2070         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
2071
2072 2007-04-23  Bruno Haible  <bruno@clisp.org>
2073
2074         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
2075         Needed on HP-UX 11.
2076
2077 2007-04-16  Eric Blake  <ebb9@byu.net>
2078
2079         Make fflush rely on fpurge.
2080         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
2081         open coding all variants.
2082         * modules/fflush (Depends-on): Add fpurge and unistd.
2083         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
2084         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
2085
2086         Fix --with-tests compilation on cygwin.
2087         * modules/argmatch-tests (Makefile.am): List gnulib library first
2088         in LDADD.
2089         * modules/argp-tests (Makefile.am): Likewise.
2090         * modules/array-list-tests (Makefile.am): Likewise.
2091         * modules/array-oset-tests (Makefile.am): Likewise.
2092         * modules/avltree-list-tests (Makefile.am): Likewise.
2093         * modules/avltree-oset-tests (Makefile.am): Likewise.
2094         * modules/avltreehash-list-tests (Makefile.am): Likewise.
2095         * modules/carray-list-tests (Makefile.am): Likewise.
2096         * modules/dirname-tests (Makefile.am): Likewise.
2097         * modules/frexp-tests (Makefile.am): Likewise.
2098         * modules/isnanl-tests (Makefile.am): Likewise.
2099         * modules/linked-list-tests (Makefile.am): Likewise.
2100         * modules/linkedhash-list-tests (Makefile.am): Likewise.
2101         * modules/lock-tests (Makefile.am): Likewise.
2102         * modules/rbtree-list-tests (Makefile.am): Likewise.
2103         * modules/rbtree-oset-tests (Makefile.am): Likewise.
2104         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
2105         * modules/tls-tests (Makefile.am): Likewise.
2106         * modules/tsearch-tests (Makefile.am): Likewise.
2107         * modules/xvasprintf-tests (Makefile.am): Likewise.
2108
2109         Fix fpurge for cygwin.
2110         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
2111         value.
2112         * modules/fpurge-tests (Depends-on): Clean up trash.
2113
2114 2007-04-16  Simon Josefsson  <simon@josefsson.org>
2115
2116         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
2117
2118         * m4/autobuild.m4: Re-indent.
2119
2120 2007-04-13  Bruno Haible  <bruno@clisp.org>
2121
2122         * modules/fpurge-tests: New file.
2123         * tests/test-fpurge.c: New file.
2124
2125         * modules/fpurge: New file.
2126         * lib/fpurge.h: New file.
2127         * lib/fpurge.c: New file.
2128         * m4/fpurge.m4: New file.
2129
2130 2007-04-13  Bruno Haible  <bruno@clisp.org>
2131
2132         * modules/fbufmode-tests: New file.
2133         * tests/test-fbufmode.c: New file.
2134
2135         * modules/fbufmode: New file.
2136         * lib/fbufmode.h: New file.
2137         * lib/fbufmode.c: New file.
2138         * m4/fbufmode.m4: New file.
2139
2140 2007-04-13  Bruno Haible  <bruno@clisp.org>
2141
2142         * modules/fwritable-tests: New file.
2143         * tests/test-fwritable.c: New file.
2144
2145         * modules/fwritable: New file.
2146         * lib/fwritable.h: New file.
2147         * lib/fwritable.c: New file.
2148         * m4/fwritable.m4: New file.
2149
2150 2007-04-13  Bruno Haible  <bruno@clisp.org>
2151
2152         * modules/freadable-tests: New file.
2153         * tests/test-freadable.c: New file.
2154
2155         * modules/freadable: New file.
2156         * lib/freadable.h: New file.
2157         * lib/freadable.c: New file.
2158         * m4/freadable.m4: New file.
2159
2160 2007-04-13  Bruno Haible  <bruno@clisp.org>
2161
2162         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
2163         MOSTLYCLEANFILES.
2164
2165 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
2166
2167         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
2168         gzip bootstrap.conf to avoid dragging in i18n machinery.
2169         (gnulib_tool_option): Use it.
2170
2171 2007-04-13  Bruno Haible  <bruno@clisp.org>
2172
2173         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
2174         %F directives.
2175         * tests/test-vasprintf-posix.c (test_function): Likewise.
2176         * tests/test-snprintf-posix.h (test_function): Likewise.
2177         * tests/test-sprintf-posix.h (test_function): Likewise.
2178         * tests/test-fprintf-posix.h (test_function): Likewise.
2179         * tests/test-printf-posix.h (test_function): Likewise.
2180         * tests/test-fprintf-posix.out: Likewise.
2181
2182 2007-04-13  Bruno Haible  <bruno@clisp.org>
2183
2184         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
2185         * modules/tls-tests (configure.ac): Likewise.
2186         Reported by Arto C. Nirkko <anirkko@insel.ch>.
2187
2188 2007-04-13  Bruno Haible  <bruno@clisp.org>
2189
2190         * lib/tls.c (glthread_tls_get): Fix return type.
2191         Patch by Arto C. Nirkko <anirkko@insel.ch>.
2192
2193 2007-04-12  Eric Blake  <ebb9@byu.net>
2194
2195         * modules/gettime (Depends-on): Remove gettime.
2196         Reported by Dmitry V. Levin.
2197
2198 2007-04-12  Bruno Haible  <bruno@clisp.org>
2199
2200         * modules/fflush (Include): Mention <stdio.h>.
2201         * modules/strtoimax (Include): Mention <inttypes.h>.
2202         * modules/strtoumax (Include): Likewise.
2203
2204 2007-04-12  Eric Blake  <ebb9@byu.net>
2205
2206         * .cvsignore: New file.
2207         * .gitignore: Likewise.
2208
2209 2007-04-12  Bruno Haible  <bruno@clisp.org>
2210
2211         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
2212         not before, since $(LDADD) often contains libgnu.a.
2213         * modules/striconv-tests (test_striconv_LDADD): Likewise.
2214         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
2215         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
2216         Needed on Cygwin.
2217
2218 2007-04-12  Eric Blake  <ebb9@byu.net>
2219
2220         Work around glibc's failure to flush stdin on fclose.
2221         * lib/closein.c (close_stdin): Flush stdin before closing.
2222
2223         Work around glibc's failure to reset seekable stdin on exit.
2224         * modules/closein: New module.
2225         * lib/closein.c: New file.
2226         * lib/closein.h: Likewise.
2227         * m4/closein.m4: Likewise.
2228         * MODULES.html.sh (File stream based Input/Output): Document it.
2229
2230 2007-04-12  Simon Josefsson  <simon@josefsson.org>
2231
2232         * gnulib-tool: Rename generated 'autobuild' script to
2233         'do-autobuild' in --create-megatestdir output.
2234
2235         * doc/gnulib.texi (Build robot for gnulib): Fix.
2236
2237 2007-04-12  Simon Josefsson  <simon@josefsson.org>
2238
2239         * modules/sysexits (Depends-on): Add absolute-header.
2240
2241 2007-04-12  Eric Blake  <ebb9@byu.net>
2242
2243         No need to preserve errno on success.
2244         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
2245         Reported by Bruno Haible.
2246
2247 2007-04-12  Simon Josefsson  <simon@josefsson.org>
2248
2249         * MODULES.html.sh (Support for maintaining and releasing
2250         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
2251
2252 2007-04-12  Simon Josefsson  <simon@josefsson.org>
2253
2254         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
2255
2256 2007-04-12  Simon Josefsson  <simon@josefsson.org>
2257
2258         * modules/autobuild: New module.
2259
2260         * m4/autobuild.m4: New file.
2261
2262 2007-04-11  Bruno Haible  <bruno@clisp.org>
2263
2264         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
2265         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
2266         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
2267         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
2268         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
2269         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
2270         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
2271         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
2272         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
2273         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
2274         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
2275         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
2276         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
2277         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
2278         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
2279         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
2280         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
2281         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
2282         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
2283         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
2284         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
2285         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
2286         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
2287         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
2288         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
2289         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
2290         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
2291         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
2292         Reported by Eric Blake.
2293
2294 2007-04-11  Bruno Haible  <bruno@clisp.org>
2295
2296         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
2297
2298 2007-04-10  Bruno Haible  <bruno@clisp.org>
2299
2300         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
2301         for NaN and Infinity. Needed on FreeBSD 6.1.
2302         * tests/test-vasnprintf-posix.c (test_function): Undo last change
2303         regarding results for "%010a" of Infinity and NaN.
2304         * tests/test-vasprintf-posix.c (test_function): Likewise.
2305         * tests/test-snprintf-posix.h (test_function): Likewise.
2306         * tests/test-sprintf-posix.h (test_function): Likewise.
2307         * tests/test-fprintf-posix.h (test_function): Likewise.
2308         * tests/test-printf-posix.h (test_function): Likewise.
2309         * tests/test-fprintf-posix.out: Likewise.
2310
2311 2007-04-10  Bruno Haible  <bruno@clisp.org>
2312
2313         * modules/locale-tests: New file.
2314         * tests/test-locale.c: New file.
2315
2316         * modules/locale: New file.
2317         * lib/locale_.h: New file.
2318         * m4/locale_h.m4: New file.
2319
2320 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
2321             Bruno Haible  <bruno@clisp.org>
2322
2323         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
2324         be determined, test for availability of the copysignf, copysign,
2325         copysignl functions.
2326         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
2327         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
2328         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
2329
2330 2007-04-09  Eric Blake  <ebb9@byu.net>
2331
2332         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
2333         * modules/stdio (Makefile.am): Support fflush.
2334         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
2335         * modules/fflush: New file.
2336         * lib/fflush.c: Likewise.
2337         * m4/fflush.m4: Likewise.
2338         * modules/fflush-tests: New test.
2339         * tests/test-fflush.c: Likewise.
2340         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
2341
2342 2007-04-06  Bruno Haible  <bruno@clisp.org>
2343
2344         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
2345         (VASNPRINTF): Use signbit for faster determination whether to print a
2346         minus sign.
2347         * modules/vasnprintf (Files): Remove lib/float+.h.
2348         * modules/fprintf-posix (Depends-on): Add signbit.
2349         * modules/snprintf-posix (Depends-on): Likewise.
2350         * modules/sprintf-posix (Depends-on): Likewise.
2351         * modules/vasnprintf-posix (Depends-on): Likewise.
2352         * modules/vasprintf-posix (Depends-on): Likewise.
2353         * modules/vfprintf-posix (Depends-on): Likewise.
2354         * modules/vsnprintf-posix (Depends-on): Likewise.
2355         * modules/vsprintf-posix (Depends-on): Likewise.
2356
2357 2007-04-06  Bruno Haible  <bruno@clisp.org>
2358
2359         * tests/test-frexp.c (main): Test also the sign bit of zero results.
2360         * tests/test-frexpl.c (main): Likewise.
2361         * tests/test-ldexpl.c (main): Likewise.
2362         * modules/frexp-tests (Depends-on): Add signbit.
2363         * modules/frexpl-tests (Depdends-on): Likewise.
2364         * modules/ldexpl-tests (Depdends-on): Likewise.
2365
2366 2007-04-06  Bruno Haible  <bruno@clisp.org>
2367
2368         * modules/signbit-tests: New file.
2369         * tests/test-signbit.c: New file.
2370
2371         * modules/signbit: New file.
2372         * lib/signbitf.c: New file.
2373         * lib/signbitd.c: New file.
2374         * lib/signbitl.c: New file.
2375         * m4/signbit.m4: New file.
2376         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
2377         (signbit): New macro.
2378         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
2379         REPLACE_SIGNBIT.
2380         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
2381         REPLACE_FREXPL into math.h.
2382
2383 2007-04-06  Bruno Haible  <bruno@clisp.org>
2384
2385         * modules/isnanf-nolibm-tests: New file.
2386         * tests/test-isnanf.c: New file.
2387
2388         * modules/isnanf-nolibm: New file.
2389         * lib/isnanf.h: New file.
2390         * lib/isnanf.c: New file.
2391         * lib/isnan.c: Consider the USE_FLOAT macro.
2392         * m4/isnanf.m4: New file.
2393
2394 2007-04-06  Bruno Haible  <bruno@clisp.org>
2395
2396         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
2397         (Link): New section.
2398
2399         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
2400
2401 2007-04-06  Bruno Haible  <bruno@clisp.org>
2402
2403         Assume the 'long double' type.
2404         * m4/longdouble.m4: Remove file.
2405         * config/srclist.txt: Don't mention longdouble.m4.
2406         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
2407         * lib/float+.h: Likewise.
2408         * lib/frexp.c: Likewise.
2409         * lib/printf-args.h: Likewise.
2410         * lib/printf-args.c: Likewise.
2411         * lib/printf-frexp.c: Likewise.
2412         * lib/printf-parse.c: Likewise.
2413         * lib/vasnprintf.c: Likewise.
2414         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
2415         * m4/intl.m4: Likewise.
2416         * m4/isnanl.m4: Likewise.
2417         * m4/printf.m4: Likewise.
2418         * m4/printf-frexpl.m4: Likewise.
2419         * m4/vasnprintf.m4: Likewise.
2420         * modules/allocsa (Files): Remove m4/longdouble.m4.
2421         * modules/gettext (Files): Likewise.
2422         * modules/relocatable-prog-wrapper (Files): Likewise.
2423         * modules/vasnprintf (Files): Likewise.
2424         * modules/isnanl (Files): Likewise.
2425         (Include): Simplify.
2426         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
2427         (Include): Simplify.
2428         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
2429         (Include): Simplify.
2430         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
2431         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
2432         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
2433         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
2434         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
2435         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
2436         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
2437         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
2438         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
2439         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
2440         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
2441         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
2442         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
2443         * tests/test-isnanl.c: Likewise.
2444         * tests/test-snprintf-posix.h: Likewise.
2445         * tests/test-sprintf-posix.h: Likewise.
2446         * tests/test-vasnprintf-posix.c: Likewise.
2447         * tests/test-vasnprintf-posix2.c: Likewise.
2448         * tests/test-vasprintf-posix.c: Likewise.
2449
2450 2007-04-06  Bruno Haible  <bruno@clisp.org>
2451
2452         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
2453         * lib/math_.h [__DECC]: Include the overridden include file through
2454         #include_next, outside the double-inclusion guard.
2455         * lib/stdio_.h [__DECC]: Likewise.
2456         * lib/stdlib_.h [__DECC]: Likewise.
2457         * lib/string_.h [__DECC]: Likewise.
2458         * lib/time_.h [__DECC]: Likewise.
2459         * lib/wchar_.h [__DECC]: Likewise.
2460         * lib/wctype_.h [__DECC]: Likewise.
2461         * lib/inttypes_.h [__DECC]: Likewise.
2462         Reported by Albert Chin <china@thewrittenword.com> in
2463         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
2464
2465 2007-04-04  Eric Blake  <ebb9@byu.net>
2466
2467         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
2468         1.5.x.
2469
2470 2007-04-04  Bruno Haible  <bruno@clisp.org>
2471
2472         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
2473         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
2474
2475 2007-04-04  Bruno Haible  <bruno@clisp.org>
2476
2477         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
2478         results for "%010a" of Infinity and NaN.
2479         * tests/test-vasprintf-posix.c (test_function): Likewise.
2480         * tests/test-snprintf-posix.h (test_function): Likewise.
2481         * tests/test-sprintf-posix.h (test_function): Likewise.
2482         * tests/test-fprintf-posix.h (test_function): Remove these tests.
2483         * tests/test-printf-posix.h (test_function): Likewise.
2484         * tests/test-fprintf-posix.out: Update.
2485         Needed for FreeBSD 6.1.
2486
2487 2007-04-04  Bruno Haible  <bruno@clisp.org>
2488
2489         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
2490         directly used by the gnulib modules nor by gnulib-tool.
2491
2492 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
2493
2494         * DEPENDENCIES: Give overall description of version dependency
2495         desirability.  Use more-typical names for apps.
2496         Add shell, coreutils, diffutils, grep, tar, gzip.
2497
2498 2007-04-04  Simon Josefsson  <simon@josefsson.org>
2499
2500         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
2501
2502 2007-04-04  Karl Berry  <karl@gnu.org>
2503
2504         * MODULES.html.sh (func_module): missing '.
2505
2506 2007-04-03  Bruno Haible  <bruno@clisp.org>
2507
2508         * modules/argmatch-tests (Makefile.am): New variable
2509         test_argmatch_LDADD.
2510         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
2511         * modules/array-list-tests (Makefile.am): New variable
2512         test_array_list_LDADD.
2513         * modules/array-oset-tests (Makefile.am): New variable
2514         test_array_oset_LDADD.
2515         * modules/avltree-list-tests (Makefile.am): New variable
2516         test_avltree_list_LDADD.
2517         * modules/avltree-oset-tests (Makefile.am): New variable
2518         test_avltree_oset_LDADD.
2519         * modules/avltreehash-list-tests (Makefile.am): New variable
2520         test_avltreehash_list_LDADD.
2521         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
2522         test_canonicalize_lgpl_LDADD.
2523         * modules/carray-list-tests (Makefile.am): New variable
2524         test_carray_list_LDADD.
2525         * modules/dirname-tests (Makefile.am): New variable
2526         test_dirname_LDADD.
2527         * modules/linked-list-tests (Makefile.am): New variable
2528         test_linked_list_LDADD.
2529         * modules/linkedhash-list-tests (Makefile.am): New variable
2530         test_linkedhash_list_LDADD.
2531         * modules/rbtree-list-tests (Makefile.am): New variable
2532         test_rbtree_list_LDADD.
2533         * modules/rbtree-oset-tests (Makefile.am): New variable
2534         test_rbtree_oset_LDADD.
2535         * modules/rbtreehash-list-tests (Makefile.am): New variable
2536         test_rbtreehash_list_LDADD.
2537         * modules/xvasprintf-tests (Makefile.am): New variable
2538         test_xvasprintf_LDADD.
2539         Reported by Eric Blake.
2540
2541 2007-04-03  Eric Blake  <ebb9@byu.net>
2542
2543         * DEPENDENCIES: Weaken m4 requirements.
2544
2545 2007-04-03  Bruno Haible  <bruno@clisp.org>
2546
2547         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
2548         * modules/isnanl-tests (configure.ac): Likewise.
2549
2550 2007-04-03  Ben Pfaff  <blp@gnu.org>
2551
2552         * modules/iconv_open: Add $(srcdir)/ to source directory
2553         references in Makefile fragments that call gperf, to fix VPATH
2554         builds.
2555
2556 2007-04-03  Bruno Haible  <bruno@clisp.org>
2557
2558         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
2559         * lib/ldexpl.c: Undo last change.
2560
2561 2007-04-03  Bruno Haible  <bruno@clisp.org>
2562
2563         * modules/printf-frexpl (Depends-on): Undo last change.
2564         (Files): Add m4/ldexpl.m4.
2565
2566 2007-04-03  Bruno Haible  <bruno@clisp.org>
2567
2568         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
2569         * modules/isnanl (Link): New section.
2570
2571         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
2572         * modules/frexp (Link): New section.
2573
2574         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
2575         * modules/frexpl (Link): New section.
2576
2577         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
2578         * modules/ldexpl (Link): New section.
2579
2580 2007-04-03  Bruno Haible  <bruno@clisp.org>
2581
2582         * modules/TEMPLATE-EXTENDED: New file.
2583         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
2584
2585 2007-04-03  Bruno Haible  <bruno@clisp.org>
2586
2587         * DEPENDENCIES: New file.
2588         Suggested by Simon Josefsson.
2589
2590 2007-04-03  Bruno Haible  <bruno@clisp.org>
2591
2592         * doc/gnulib.texi: Escape @.
2593
2594 2007-04-03  James Youngman  <jay@gnu.org>
2595         and Paul Eggert  <eggert@cs.ucla.edu>
2596
2597         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
2598         birthtime on all systems that have birthtime, not just those which
2599         use st_birthtimensec rather than st_birthtim.  Putting zero in
2600         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
2601         that the birth time is not available for files on an NFS mount.
2602
2603 2007-04-03  Simon Josefsson  <simon@josefsson.org>
2604
2605         * modules/memxor: Move back from crypto/, suggested by Bruno.
2606         * modules/crypto/hmac-sha1: Fix memxor dependency.
2607
2608         * modules/crypto/gc: Moved from ../.
2609
2610 2007-04-02  Eric Blake  <ebb9@byu.net>
2611
2612         * lib/ldexpl.c (includes): Avoid libm.
2613
2614         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
2615
2616 2007-04-02  Bruno Haible  <bruno@clisp.org>
2617
2618         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
2619         on IRIX.
2620
2621 2007-04-02  Bruno Haible  <bruno@clisp.org>
2622
2623         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
2624         x86 or x86_64 platforms running MacOS X.
2625         Reported by Ryan Schmidt <@ryandesign.com>.
2626
2627 2007-04-02  Bruno Haible  <bruno@clisp.org>
2628
2629         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
2630         i386.
2631
2632 2007-04-01  Simon Josefsson  <simon@josefsson.org>
2633
2634         * modules/crypto/arcfour: Moved from ../.
2635         * modules/crypto/arcfour-tests: Moved from ../.
2636         * modules/crypto/arctwo: Moved from ../.
2637         * modules/crypto/arctwo-tests: Moved from ../.
2638         * modules/crypto/des: Moved from ../.
2639         * modules/crypto/des-tests: Moved from ../.
2640         * modules/crypto/gc-arcfour: Moved from ../.
2641         * modules/crypto/gc-arcfour-tests: Moved from ../.
2642         * modules/crypto/gc-arctwo: Moved from ../.
2643         * modules/crypto/gc-arctwo-tests: Moved from ../.
2644         * modules/crypto/gc-des: Moved from ../.
2645         * modules/crypto/gc-des-tests: Moved from ../.
2646         * modules/crypto/gc-hmac-md5: Moved from ../.
2647         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
2648         * modules/crypto/gc-hmac-sha1: Moved from ../.
2649         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
2650         * modules/crypto/gc-md2: Moved from ../.
2651         * modules/crypto/gc-md2-tests: Moved from ../.
2652         * modules/crypto/gc-md4: Moved from ../.
2653         * modules/crypto/gc-md4-tests: Moved from ../.
2654         * modules/crypto/gc-md5: Moved from ../.
2655         * modules/crypto/gc-md5-tests: Moved from ../.
2656         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
2657         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
2658         * modules/crypto/gc-random: Moved from ../.
2659         * modules/crypto/gc-rijndael: Moved from ../.
2660         * modules/crypto/gc-rijndael-tests: Moved from ../.
2661         * modules/crypto/gc-sha1: Moved from ../.
2662         * modules/crypto/gc-sha1-tests: Moved from ../.
2663         * modules/crypto/gc-tests: Moved from ../.
2664         * modules/crypto/hmac-md5: Moved from ../.
2665         * modules/crypto/hmac-md5-tests: Moved from ../.
2666         * modules/crypto/hmac-sha1: Moved from ../.
2667         * modules/crypto/hmac-sha1-tests: Moved from ../.
2668         * modules/crypto/md2: Moved from ../.
2669         * modules/crypto/md2-tests: Moved from ../.
2670         * modules/crypto/md4: Moved from ../.
2671         * modules/crypto/md4-tests: Moved from ../.
2672         * modules/crypto/md5: Moved from ../.
2673         * modules/crypto/md5-tests: Moved from ../.
2674         * modules/crypto/memxor: Moved from ../.
2675         * modules/crypto/rijndael: Moved from ../.
2676         * modules/crypto/rijndael-tests: Moved from ../.
2677         * modules/crypto/sha1: Moved from ../.
2678
2679 2007-03-30  James Youngman  <jay@gnu.org>
2680
2681         * tests/test-stat-time.c (prepare_test): use chmod() rather than
2682         rename() to change the ctime of a file (because ctime is unaffected
2683         by rename on jfs2 on AIX 5.1).
2684         (main): Start by doing cleanup, in case a previous run failed leaving
2685         test files behind.
2686
2687 2007-03-31  Bruno Haible  <bruno@clisp.org>
2688
2689         Support old proprietary implementations of iconv.
2690         * modules/iconv_open: New file.
2691         * lib/iconv_.h: New file.
2692         * m4/iconv_h.m4: New file.
2693         * lib/iconv_open.c: New file.
2694         * lib/iconv_open-aix.gperf: New file.
2695         * lib/iconv_open-hpux.gperf: New file.
2696         * lib/iconv_open-irix.gperf: New file.
2697         * lib/iconv_open-osf.gperf: New file.
2698         * m4/iconv_open.m4: New file.
2699         * modules/linebreak (Depends-on): Add iconv_open.
2700         * modules/striconv (Depends-on): Likewise.
2701         * modules/striconveh (Depends-on): Likewise.
2702         * modules/unicodeio (Depends-on): Likewise.
2703         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
2704         (iconv_t)(-1).
2705         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
2706         conversion if cd is (iconv_t)(-1).
2707         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
2708         is not possible.
2709
2710 2007-03-31  Bruno Haible  <bruno@clisp.org>
2711
2712         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
2713         work on Solaris either. Protect also second use of "autodetect_jp".
2714
2715 2007-03-31  Bruno Haible  <bruno@clisp.org>
2716
2717         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
2718         the function is not present.
2719
2720 2007-03-31  Bruno Haible  <bruno@clisp.org>
2721
2722         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
2723         the function is not present.
2724
2725 2007-03-31  Bruno Haible  <bruno@clisp.org>
2726
2727         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
2728         a bug in HP-UX iconv_open().
2729
2730 2007-03-31  Bruno Haible  <bruno@clisp.org>
2731
2732         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
2733         (Mathematics <math.h>): New section, add fpieee.
2734         (Input/output <stdio.h>): Add fseterr.
2735         (Mathematics <math.h>): New section, add printf-frexp.
2736         (Container data structures): Add sublist.
2737         (Core language properties): Add fpucw, inline.
2738         (Functions for greatest-width integer types <inttypes.h>): Add
2739         imaxabs, imaxdiv, inttypes.
2740         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
2741         isnanl-nolibm, ldexp.
2742         (Mathematics <math.h>): New section, add printf-frexpl.
2743         (Support for systems lacking POSIX:2001): Add fprintf-posix,
2744         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
2745         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
2746         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
2747         (Unicode string functions): Add unistr/u*-mbtoucr.
2748         (Java): Add javacomp-script, javaexec-script.
2749         (C#): Add csharpcomp-script, csharpexec-script.
2750         (Support for building libraries and executables): Add havelib,
2751         relocatable-*.
2752         (Support for maintaining and releasing projects): Renamed from
2753         'Support for maintaining and release projects'. Add announce-gen.
2754
2755 2007-03-31  Bruno Haible  <bruno@clisp.org>
2756
2757         * README: Talk primarily about git.
2758         (git and CVS): Renamed from CVS.
2759         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
2760         gnulib is available through git.
2761         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
2762
2763 2007-03-30  Bruno Haible  <bruno@clisp.org>
2764
2765         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
2766         * lib/poll_.h: Likewise.
2767         * lib/stat_.h: Likewise.
2768         * lib/sys_time_.h: Likewise.
2769         * lib/sysexit_.h: Likewise.
2770         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
2771         * lib/stdbool_.h: Likewise.
2772         * lib/byteswap_.h: Add double-inclusion guard.
2773
2774 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
2775
2776         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
2777
2778 2007-03-30  Karl Berry  <karl@gnu.org>
2779
2780         * config/srclist-update: double space after USA in the license
2781         substitution, since that's how it's usually (?) written.
2782
2783 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
2784
2785         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
2786         reported by Bruno Haible.
2787
2788 2007-03-29  Bruno Haible  <bruno@clisp.org>
2789
2790         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
2791         a bug in AIX iconv().
2792
2793 2007-03-29  Bruno Haible  <bruno@clisp.org>
2794
2795         * modules/ldexpl-tests: New file.
2796         * tests/test-ldexpl.c: New file.
2797
2798 2007-03-29  Bruno Haible  <bruno@clisp.org>
2799
2800         * lib/ldexpl.c: Include fpucw.h.
2801         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
2802         multiplication.
2803         * modules/ldexpl (Depends-on): Add fpucw.
2804
2805 2007-03-29  Bruno Haible  <bruno@clisp.org>
2806
2807         * modules/ldexpl: New file.
2808         * m4/ldexpl.m4: New file.
2809         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
2810         set.
2811         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
2812         REPLACE_LDEXPL.
2813         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
2814         REPLACE_LDEXPL.
2815         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
2816         gl_FUNC_LDEXPL_WORKS.
2817         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
2818         * modules/mathl (Files): Remove lib/ldexpl.c.
2819         (Depends-on): Add ldexpl.
2820
2821 2007-03-29  Bruno Haible  <bruno@clisp.org>
2822
2823         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
2824
2825 2007-03-29  Bruno Haible  <bruno@clisp.org>
2826
2827         * tests/test-striconveh.c (main): Don't assume that a direct conversion
2828         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
2829         and possibly also HP-UX.
2830         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
2831         work on AIX, IRIX, HP-UX, OSF/1.
2832         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
2833         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
2834         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
2835         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
2836         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
2837         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
2838
2839 2007-03-29  Bruno Haible  <bruno@clisp.org>
2840
2841         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
2842
2843 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
2844
2845         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
2846         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
2847
2848 2007-03-29  Eric Blake  <ebb9@byu.net>
2849
2850         * lib/acl-internal.h: Remove redundant include.
2851         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
2852         Cygwin when a file is locked.
2853
2854 2007-03-29  Bruno Haible  <bruno@clisp.org>
2855
2856         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
2857         file.
2858         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
2859
2860 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
2861
2862         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
2863         try to remove a parent directory if the child couldn't be removed
2864         (except for the first rmdir, which could fail because the child
2865         doesn't exist).  Problem reported by Jeff Blaine in
2866         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
2867
2868 2007-03-28  Bruno Haible  <bruno@clisp.org>
2869
2870         * lib/striconveh.c (utf8conv_carefully): New function.
2871         (mem_cd_iconveh_internal): Invoke it.
2872
2873 2007-03-28  Bruno Haible  <bruno@clisp.org>
2874
2875         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
2876         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
2877         input.
2878         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
2879         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
2880         unistr/u8-uctomb.
2881
2882 2007-03-28  Bruno Haible  <bruno@clisp.org>
2883
2884         * modules/unistr/u8-mbtoucr: New file.
2885         * lib/unistr/u8-mbtoucr.c: New file.
2886         * modules/unistr/u16-mbtoucr: New file.
2887         * lib/unistr/u16-mbtoucr.c: New file.
2888         * modules/unistr/u16-mbtoucr: New file.
2889         * lib/unistr/u16-mbtoucr.c: New file.
2890         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
2891
2892 2007-03-27  Simon Josefsson  <simon@josefsson.org>
2893             Bruno Haible  <bruno@clisp.org>
2894
2895         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
2896         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
2897         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
2898
2899         * m4/stdio_h.m4: Add stubs for vasprintf too.
2900
2901         * modules/stdio: Support vasprintf in sed command.
2902
2903         * modules/vasprintf: Depend on stdio for prototypes.  Remove
2904         vasprintf.h.  Add stdio module indicator.
2905
2906         * lib/stdio_.h: Declare asprintf and vasprintf, based on
2907         vasprintf.h.
2908
2909         * lib/vasprintf.h: File removed.
2910
2911         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
2912         * lib/vasprintf.c: Ditto.
2913         * lib/xvasprintf.c: Ditto.
2914         * tests/test-vasprintf-posix.c: Ditto.
2915         * tests/test-vasprintf.c: Ditto.
2916
2917 2007-03-27  Bruno Haible  <bruno@clisp.org>
2918
2919         Make vasnprintf multithread-safe.
2920         * lib/vasnprintf.c (decimal_point_char): New function.
2921         (VASNPRINTF): Use it.
2922         Suggested by Simon Josefsson.
2923
2924 2007-03-27  Eric Blake  <ebb9@byu.net>
2925
2926         Support sub-second birthtime on cygwin.
2927         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
2928         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
2929         (get_stat_birthtime): Also work with st_birthtim.
2930
2931 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
2932
2933         * lib/stat-time.h (USE_BIRTHTIME): Remove.
2934         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
2935         (get_stat_birthtime_ns): Do not try to use "spare" fields.
2936         (get_stat_birthtime_ns): Simplify compile-time tests.
2937         (get_stat_birthtime): Change the API to look like
2938         get_stat_mtime etc., except return a negative tv_nsec on error.
2939         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
2940         Don't check for "spare" fields.
2941         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
2942         or for struct stat.st_birthtime, as these tests aren't used.
2943         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
2944
2945 2007-03-27  Bruno Haible  <bruno@clisp.org>
2946
2947         * lib/stat-time.h: Include <sys/stat.h>.
2948
2949 2007-03-27  James Youngman  <jay@gnu.org>
2950
2951         * lib/stat-time.h (get_stat_birthtime): New function for
2952           retrieving st_birthtime as provided by UFS2 (hence *BSD).
2953         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
2954           and its variants.
2955         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
2956         * modules/stat-time-test: New file.
2957         * tests/test-stat-time.c: New test, devised by Bruno Haible.
2958
2959 2007-03-26  Bruno Haible  <bruno@clisp.org>
2960
2961         Better support of signalling NaNs.
2962         * lib/atanl.c: Include isnanl.h.
2963         (atanl): Perform test for NaN at the beginning of the function and
2964         through a call to isnanl.
2965         * lib/cosl.c: Include isnanl.h.
2966         (cosl): Perform test for NaN at the beginning of the function and
2967         through a call to isnanl.
2968         * lib/ldexpl.c: Include isnanl.h.
2969         (ldexpl): Perform test for NaN through a call to isnanl.
2970         * lib/logl.c: Include isnanl.h.
2971         (logl): Perform test for NaN at the beginning of the function and
2972         through a call to isnanl.
2973         * lib/sinl.c: Include isnanl.h.
2974         (sinl): Perform test for NaN at the beginning of the function and
2975         through a call to isnanl.
2976         * lib/sqrtl.c: Include isnanl.h.
2977         (sqrtl): Perform test for NaN at the beginning of the function and
2978         through a call to isnanl.
2979         * lib/tanl.c: Include isnanl.h.
2980         (tanl): Perform test for NaN at the beginning of the function and
2981         through a call to isnanl.
2982         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
2983         * modules/mathl (Depends-on): Add isnanl.
2984
2985 2007-03-26  Eric Blake  <ebb9@byu.net>
2986
2987         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
2988         regression in logic sense of previous patch.
2989
2990 2007-03-26  Bruno Haible  <bruno@clisp.org>
2991
2992         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
2993         unportable shell command "if ! ...".
2994         Reported by Ralf Wildenhues.
2995
2996 2007-03-25  Bruno Haible  <bruno@clisp.org>
2997
2998         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
2999         <sysexits.h> file, and only add EX_CONFIG.
3000         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
3001         absolute file name and whether it is sufficient. Substitute also
3002         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
3003         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
3004         ABSOLUTE_SYSEXITS_H into sysexits.h.
3005
3006 2007-03-25  Bruno Haible  <bruno@clisp.org>
3007
3008         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
3009         hints is NULL.
3010
3011 2007-03-25  Bruno Haible  <bruno@clisp.org>
3012
3013         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
3014         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
3015
3016 2007-03-25  Bruno Haible  <bruno@clisp.org>
3017
3018         * lib/vasnprintf.c: Include langinfo.h.
3019         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
3020         multithread-safe.
3021         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
3022         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
3023         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
3024         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
3025         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
3026         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
3027         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
3028         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
3029         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
3030         Reported by Simon Josefsson.
3031
3032 2007-03-25  Bruno Haible  <bruno@clisp.org>
3033
3034         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
3035         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
3036         * modules/vasnprintf (Depends-on): Add stdint.
3037
3038 2007-03-25  Bruno Haible  <bruno@clisp.org>
3039
3040         * modules/fpieee: New file.
3041         * m4/fpieee.m4: New file.
3042         * modules/isnan-nolibm (Depends-on): Add fpieee.
3043         * modules/isnanl-nolibm (Depends-on): Add fpieee.
3044         * modules/isnanl (Depends-on): Add fpieee.
3045
3046 2007-03-25  Bruno Haible  <bruno@clisp.org>
3047
3048         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
3049
3050 2007-03-25  Bruno Haible  <bruno@clisp.org>
3051
3052         Avoid test failures on IRIX 6.5.
3053         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
3054         (main): Use it.
3055         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
3056         macros.
3057         (main): Use them.
3058
3059 2007-03-25  Bruno Haible  <bruno@clisp.org>
3060
3061         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
3062         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
3063         exists but doesn't work.
3064         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
3065         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
3066         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
3067         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
3068
3069 2007-03-25  Bruno Haible  <bruno@clisp.org>
3070
3071         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
3072         returns inf. Needed on IRIX 6.5.
3073
3074 2007-03-25  Bruno Haible  <bruno@clisp.org>
3075
3076         * tests/test-frexpl.c: Include isnanl-nolibm.h.
3077         (main): Use isnanl instead of x != x idiom.
3078         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
3079
3080         * tests/test-frexp.c: Include isnan.h.
3081         (main): Use isnan instead of x != x idiom.
3082         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
3083
3084 2007-03-25  Bruno Haible  <bruno@clisp.org>
3085
3086         * tests/test-frexp.c (NaN): New function/macro.
3087         (main): Use it instead of 0.0 / 0.0.
3088         * tests/test-isnan.c (NaN): New function/macro.
3089         (main): Use it instead of 0.0 / 0.0.
3090         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
3091         (test_function): Use it instead of 0.0 / 0.0.
3092         * tests/test-vasprintf-posix.c (NaN): New function/macro.
3093         (test_function): Use it instead of 0.0 / 0.0.
3094         * tests/test-snprintf-posix.h (NaN): New function/macro.
3095         (test_function): Use it instead of 0.0 / 0.0.
3096         * tests/test-sprintf-posix.h (NaN): New function/macro.
3097         (test_function): Use it instead of 0.0 / 0.0.
3098         * tests/test-fprintf-posix.h (NaN): New function/macro.
3099         (test_function): Use it instead of 0.0 / 0.0.
3100         * tests/test-printf-posix.h (NaN): New function/macro.
3101         (test_function): Use it instead of 0.0 / 0.0.
3102
3103         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
3104
3105 2007-03-25  Bruno Haible  <bruno@clisp.org>
3106
3107         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
3108
3109 2007-03-25  Bruno Haible  <bruno@clisp.org>
3110
3111         * lib/regexec.c (merge_state_with_log): Make static.
3112
3113 2007-03-25  Bruno Haible  <bruno@clisp.org>
3114
3115         * lib/trigl.c (kernel_rem_pio2): Make static.
3116
3117 2007-03-25  Bruno Haible  <bruno@clisp.org>
3118
3119         * lib/sincosl.c (sincosl_table): Make static.
3120
3121 2007-03-25  Bruno Haible  <bruno@clisp.org>
3122
3123         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
3124         if the compiler does not support C99.
3125
3126 2007-03-25  Bruno Haible  <bruno@clisp.org>
3127
3128         * modules/time (Makefile.am): Ensure all rule action lines start with a
3129         tab.
3130
3131 2007-03-24  Bruno Haible  <bruno@clisp.org>
3132
3133         * modules/tsearch-tests: New file.
3134         * tests/test-tsearch.sh: New file.
3135         * tests/test-tsearch.c: New file, mostly copied from glibc.
3136
3137         * modules/search-tests: New file.
3138         * tests/test-search.c: New file.
3139
3140         * modules/search: New file.
3141         * lib/search_.h: New file, incorporating lib/tsearch.h.
3142         * m4/search_h.m4: New file.
3143         * lib/tsearch.h: Remove file.
3144         * lib/tsearch.c: Include search.h instead of tsearch.h.
3145         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
3146         HAVE_TSEARCH.
3147         * modules/tsearch (Files): Remove lib/tsearch.h.
3148         (Depends-on): Add search.
3149         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
3150         (Include): Change tsearch.h into search.h.
3151
3152 2007-03-24  Bruno Haible  <bruno@clisp.org>
3153
3154         * modules/fpucw: New file.
3155         * lib/fpucw.h: New file.
3156         * lib/frexp.c: Include fpucw.h.
3157         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
3158         (FUNC): Use them.
3159         * lib/printf-frexp.c: Include fpucw.h.
3160         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
3161         (FUNC): Use them.
3162         * lib/vasnprintf.c: Include fpucw.h.
3163         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
3164         'long double' calculations.
3165         * tests/test-frexpl.c: Include fpucw.h.
3166         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
3167         * tests/test-printf-frexpl.c: Include fpucw.h.
3168         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
3169         * modules/frexpl (Depends-on): Add fpucw.
3170         * modules/printf-frexpl (Depends-on): Likewise.
3171         * modules/fprintf-posix (Depends-on): Likewise.
3172         * modules/snprintf-posix (Depends-on): Likewise.
3173         * modules/sprintf-posix (Depends-on): Likewise.
3174         * modules/vasnprintf-posix (Depends-on): Likewise.
3175         * modules/vasprintf-posix (Depends-on): Likewise.
3176         * modules/vfprintf-posix (Depends-on): Likewise.
3177         * modules/vsnprintf-posix (Depends-on): Likewise.
3178         * modules/vsprintf-posix (Depends-on): Likewise.
3179         * modules/frexpl-tests (Depends-on): Likewise.
3180         * modules/printf-frexpl-tests (Depends-on): Likewise.
3181
3182 2007-03-24  Bruno Haible  <bruno@clisp.org>
3183
3184         * lib/float+.h: New file.
3185         * lib/isnan.c: Include float+.h.
3186         (SIZE): New macro.
3187         (FUNC): Compare only SIZE bytes of the value.
3188         * lib/vasnprintf.c: Include float+.h.
3189         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
3190         SIZEOF_LDBL or SIZEOF_DBL bytes.
3191         * modules/isnan-nolibm (Files): Add lib/float+.h.
3192         * modules/isnanl-nolibm (Files): Add lib/float+.h.
3193         * modules/isnanl (Files): Add lib/float+.h.
3194         * modules/vasnprintf (Files): Add lib/float+.h.
3195
3196 2007-03-24  Bruno Haible  <bruno@clisp.org>
3197
3198         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
3199         include isnanl-nolibm.h.
3200
3201 2007-03-24  Bruno Haible  <bruno@clisp.org>
3202
3203         * tests/test-read-file.c (main): Don't produce spurious output for
3204         expected situations. Make the test fail if it encountered unexpected
3205         results.
3206
3207 2007-03-24  Bruno Haible  <bruno@clisp.org>
3208
3209         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
3210         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
3211
3212 2007-03-24  Bruno Haible  <bruno@clisp.org>
3213
3214         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
3215
3216 2007-03-24  Bruno Haible  <bruno@clisp.org>
3217
3218         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
3219         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
3220
3221         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
3222         * modules/utf8-ucs4: Turn into a symbolic link to module
3223         unistr/u8-mbtouc.
3224
3225         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
3226         utf8-ucs4-unsafe.
3227         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
3228         unistr/u8-mbtouc-unsafe.
3229
3230         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
3231         * modules/utf16-ucs4: Turn into a symbolic link to module
3232         unistr/u16-mbtouc.
3233
3234         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
3235         utf16-ucs4-unsafe.
3236         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
3237         unistr/u16-mbtouc-unsafe.
3238
3239         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
3240         * modules/ucs4-utf8: Turn into a symbolic link to module
3241         unistr/u8-ubtomb.
3242
3243         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
3244         * modules/ucs4-utf16: Turn into a symbolic link to module
3245         unistr/u16-ubtomb.
3246
3247 2007-03-24  Bruno Haible  <bruno@clisp.org>
3248
3249         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
3250         Enable the function only if HAVE_INLINE.
3251         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
3252         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
3253         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
3254         Enable the function only if HAVE_INLINE.
3255         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
3256         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
3257         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
3258         Enable the function only if HAVE_INLINE.
3259         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
3260         Enable the function only if HAVE_INLINE.
3261         * modules/utf8-ucs4: Update.
3262         * modules/utf8-ucs4-unsafe: Update.
3263         * modules/utf16-ucs4: Update.
3264         * modules/utf16-ucs4-unsafe: Update.
3265         * modules/ucs4-utf8: Update.
3266         * modules/ucs4-utf16: Update.
3267
3268 2007-03-24  Bruno Haible  <bruno@clisp.org>
3269
3270         * lib/utf8-ucs4.h: Remove file.
3271         * lib/utf8-ucs4-unsafe.h: Remove file.
3272         * lib/utf16-ucs4.h: Remove file.
3273         * lib/utf16-ucs4-unsafe.h: Remove file.
3274         * lib/ucs4-utf8.h: Remove file.
3275         * lib/ucs4-utf16.h: Remove file.
3276         * lib/unistr.h: Include their previous contents.
3277         * m4/utf-ucs4.m4: Remove file.
3278         * m4/ucs4-utf.m4: Remove file.
3279         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
3280         (Depends-on): Add unistr/base.
3281         (configure.ac): Remove gl_UTF_UCS4.
3282         (Makefile.am): Update.
3283         (Include): Change to unistr.h.
3284         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
3285         (Depends-on): Add unistr/base.
3286         (configure.ac): Remove gl_UTF_UCS4.
3287         (Makefile.am): Update.
3288         (Include): Change to unistr.h.
3289         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
3290         (Depends-on): Add unistr/base.
3291         (configure.ac): Remove gl_UTF_UCS4.
3292         (Makefile.am): Update.
3293         (Include): Change to unistr.h.
3294         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
3295         (Depends-on): Add unistr/base.
3296         (configure.ac): Remove gl_UTF_UCS4.
3297         (Makefile.am): Update.
3298         (Include): Change to unistr.h.
3299         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
3300         (Depends-on): Add unistr/base.
3301         (configure.ac): Remove gl_UCS4_UTF.
3302         (Makefile.am): Update.
3303         (Include): Change to unistr.h.
3304         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
3305         (Depends-on): Add unistr/base.
3306         (configure.ac): Remove gl_UCS4_UTF.
3307         (Makefile.am): Update.
3308         (Include): Change to unistr.h.
3309         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
3310         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
3311         utf8-ucs4-unsafe.h.
3312         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
3313         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
3314         utf16-ucs4-unsafe.h.
3315         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
3316         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
3317         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
3318         * lib/unistr/u8-strchr.c: Likewise.
3319         * lib/unistr/u8-strrchr.c: Likewise.
3320         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
3321         * lib/unistr/u16-strchr.c: Likewise.
3322         * lib/unistr/u16-strrchr.c: Likewise.
3323         * lib/striconveh.c: Update.
3324         * lib/linebreak.c: Update.
3325
3326 2007-03-24  Bruno Haible  <bruno@clisp.org>
3327
3328         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
3329         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
3330
3331 2007-03-22  Bruno Haible  <bruno@clisp.org>
3332
3333         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
3334
3335 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
3336
3337         * MODULES.html.sh (File system functions): New module write-any-file.
3338         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
3339         * m4/write-any-file.m4: New files.
3340
3341 2007-03-23  Eric Blake  <ebb9@byu.net>
3342
3343         * gnulib-tool: Rearrange space-tab sequences, since some editors
3344         like to eat them.
3345
3346 2007-03-23  Eric Blake  <ebb9@byu.net>
3347
3348         * lib/version-etc.c (version_etc_va): Update license wording to
3349         be more concise.  Recommended by Richard Stallman.
3350
3351 2007-03-22  Bruno Haible  <bruno@clisp.org>
3352
3353         * lib/poll.c (MSG_PEEK): New fallback definition.
3354
3355 2007-03-22  Bruno Haible  <bruno@clisp.org>
3356
3357         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
3358         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
3359         (main): Update.
3360         Fixes a compilation error on BeOS.
3361
3362 2007-03-22  Bruno Haible  <bruno@clisp.org>
3363
3364         * modules/frexpl-tests: New file.
3365         * tests/test-frexpl.c: New file.
3366
3367         * modules/frexpl: New file.
3368         * m4/frexpl.m4: New file.
3369         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
3370         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
3371         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
3372         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
3373         (Depends-on): Add frexpl. Remove isnanl-nolibm.
3374         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
3375
3376 2007-03-22  Bruno Haible  <bruno@clisp.org>
3377
3378         * lib/frexpl.c: Share code with lib/frexp.c.
3379         * modules/mathl (Files): Add lib/frexp.c.
3380         (Depends-on): Add isnanl-nolibm.
3381
3382 2007-03-22  Bruno Haible  <bruno@clisp.org>
3383
3384         * modules/printf-frexp (Files): Add m4/frexp.m4.
3385         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
3386         only if the found frexp function actually works.
3387
3388 2007-03-22  Bruno Haible  <bruno@clisp.org>
3389
3390         * lib/frexp.c: Remove older implementation that uses divisions.
3391
3392 2007-03-21  Bruno Haible  <bruno@clisp.org>
3393
3394         * modules/frexp-tests: New file.
3395         * tests/test-frexp.c: New file.
3396
3397         * modules/frexp: New file.
3398         * lib/frexp.c: New file.
3399         * m4/frexp.m4: New file.
3400         * lib/math_.h (frexp): New declaration.
3401         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
3402         REPLACE_FREXP.
3403         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
3404
3405 2007-03-21  Bruno Haible  <bruno@clisp.org>
3406
3407         * modules/isnanl-tests: New file.
3408         * tests/test-isnanl.c: New file.
3409
3410         * modules/isnanl: New file.
3411         * lib/isnanl.h: New file.
3412         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
3413         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
3414         gl_FUNC_ISNANL_WORKS.
3415         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
3416         New macros.
3417
3418 2007-03-21  Bruno Haible  <bruno@clisp.org>
3419
3420         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
3421         lib/isnanl.h.
3422         (Include): Update.
3423         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
3424         * lib/vasnprintf.c: Update.
3425         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
3426         tests/test-isnanl.h, remove tests/test-isnanl.c.
3427         (Makefile.am): Update.
3428         * tests/test-isnanl-nolibm.c: New file.
3429         * tests/test-isnanl.h: New file.
3430         * tests/test-isnanl.c: Remove file.
3431
3432 2007-03-21  Jim Meyering  <jim@meyering.net>
3433
3434         When trying to open ".", treat ESTALE like EACCES.
3435         * lib/savewd.c (savewd_save): Resort to forking not just upon
3436         failure with EACCES, but also when errno is ESTALE.
3437
3438 2007-03-20  Bruno Haible  <bruno@clisp.org>
3439
3440         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
3441         Needed on AIX 5.1. Reported by Matthew Woehlke.
3442
3443 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
3444
3445         Suggestions by Bruno Haible:
3446         * lib/acl-internal.h: Include "gettext.h" rather than rolling
3447         our own.
3448         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
3449         * modules/acl (Depends-on): Add gettext.
3450
3451 2007-03-19  Bruno Haible  <bruno@clisp.org>
3452
3453         * modules/iconvme: Remove file.
3454         * lib/iconvme.h: Remove file.
3455         * lib/iconvme.c: Remove file.
3456         * m4/iconvme.m4: Remove file.
3457
3458 2007-03-19  Bruno Haible  <bruno@clisp.org>
3459
3460         * doc/relocatable-maint.texi: Break long shell script line.
3461         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
3462
3463 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
3464
3465         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
3466         handle file_has_acl.
3467         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
3468         * lib/acl.c: Move header inclusions and related macro defns into
3469         lib/acl-internal.h.
3470         (S_ISLNK): Remove defn, since that's now done for us.
3471         (file_has_acl): Move to lib/file-has-acl.c.
3472         Call acl_trivial if available.  This is the crucial part of the fix.
3473         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
3474         shared within the library.  Rewrite a bit, partly to make it compatible
3475         with the GNU coding style.
3476         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
3477         Remove unnecessary double-quotes.
3478         Don't test for acl_to_text; the build will catch that.
3479         Replace acl_entries if it doesn't exist and it is needed.
3480         Check for -lsec and acl_trivial (as used on Solaris 10).
3481         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
3482         lib/file-has-acl.c.
3483         (Depends-on): Add sys_stat, for S_ISLNK.
3484
3485 2007-03-19  Ben Pfaff  <blp@gnu.org>
3486
3487         * doc/gnulib.texi: Fix typos.
3488         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
3489
3490 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
3491
3492         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
3493         If size is zero here, buf must be zero.
3494
3495 2007-03-19  Simon Josefsson  <simon@josefsson.org>
3496
3497         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
3498         <bruno@clisp.org>.
3499
3500 2007-03-18  Bruno Haible  <bruno@clisp.org>
3501
3502         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
3503         Suggested by Eric Blake.
3504
3505 2007-03-18  Ben Pfaff  <blp@gnu.org>
3506
3507         * doc/relocatable.texi: Recommend using as prefix a directory
3508         that does not exist and will never be created.  Based on
3509         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
3510         and others.
3511
3512 2007-03-17  Bruno Haible  <bruno@clisp.org>
3513
3514         * lib/fchownat.c: Include lchown.h.
3515
3516 2007-03-17  Bruno Haible  <bruno@clisp.org>
3517
3518         Fix endless loop when the given allocated size was > INT_MAX.
3519         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
3520         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
3521         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
3522         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
3523         * lib/sprintf.c (sprintf): Likewise.
3524
3525 2007-03-17  Bruno Haible  <bruno@clisp.org>
3526
3527         * tests/test-argp-2.sh (func_compare): Output a context diff.
3528
3529 2007-03-17  Bruno Haible  <bruno@clisp.org>
3530
3531         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
3532         locale's decimal-point character.
3533
3534 2007-03-17  Bruno Haible  <bruno@clisp.org>
3535
3536         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
3537         before comparing it. Needed because on some platforms (e.g. x86) a
3538         'long double' occupies less bytes than sizeof (long double).
3539
3540 2007-03-17  Bruno Haible  <bruno@clisp.org>
3541
3542         * tests/test-crc.c (main): Make printf statements 64-bit clean.
3543         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
3544         * tests/test-getaddrinfo.c (simple): Likewise.
3545         * tests/test-read-file.c (main): Likewise.
3546
3547 2007-03-17  Bruno Haible  <bruno@clisp.org>
3548
3549         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
3550
3551 2007-03-17  Bruno Haible  <bruno@clisp.org>
3552
3553         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
3554         unused variable.
3555
3556 2007-03-17  Bruno Haible  <bruno@clisp.org>
3557
3558         * tests/test-c-strcasecmp.c: Include c-strcase.h.
3559         * tests/test-c-strncasecmp.c: Likewise.
3560
3561 2007-03-17  Bruno Haible  <bruno@clisp.org>
3562
3563         * modules/stdlib (Depends-on): Add unistd.
3564         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
3565         Needed for MacOS X 10.3.
3566
3567 2007-03-17  Bruno Haible  <bruno@clisp.org>
3568
3569         * lib/unistr/u-strdup.h: Include <stdlib.h>.
3570
3571 2007-03-17  Bruno Haible  <bruno@clisp.org>
3572
3573         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
3574
3575 2007-03-17  Bruno Haible  <bruno@clisp.org>
3576
3577         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
3578         to reflect files copied from gnulib (with or without modifications).
3579         Suggested by Jim Meyering.
3580
3581 2007-03-17  Eric Blake  <ebb9@byu.net>
3582
3583         * NEWS: Document stdlib change from 2007-02-18.
3584
3585 2007-03-17  Jim Meyering  <jim@meyering.net>
3586
3587         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
3588         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
3589         someone uses a name containing shell meta-characters.
3590         Reported by Alfred M. Szmidt.
3591
3592         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
3593
3594 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
3595
3596         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
3597         and copy gettext configuration files only if configure.ac contains
3598         a use of AM_GNU_GETTEXT_VERSION.
3599
3600 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
3601
3602         * build-aux/bootstrap (gnulib_name): New variable.
3603         (gnulib_tool_options): Use it.
3604
3605 2007-03-13  Simon Josefsson  <simon@josefsson.org>
3606
3607         * tests/test-des.c: Use new namespace.
3608
3609 2007-03-15  Bruno Haible  <bruno@clisp.org>
3610
3611         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
3612         Reported by James Youngman <jay@gnu.org>.
3613
3614 2007-03-15  Bruno Haible  <bruno@clisp.org>
3615
3616         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
3617         declared prototype. Needed with cc on OSF/1 5.1.
3618
3619 2007-03-15  Bruno Haible  <bruno@clisp.org>
3620
3621         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
3622         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
3623         (struct gl_list_implementation): Add dispose_fn argument to the
3624         'create_empty', 'create' methods.
3625         (struct gl_list_impl_base): Add field 'dispose_fn'.
3626         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
3627         argument.
3628         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
3629         dispose_fn argument.
3630         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
3631         dispose_fn on the dropped values.
3632         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
3633         dispose_fn argument.
3634         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
3635         dropped values.
3636         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
3637         (gl_tree_remove_node): Call dispose_fn on the dropped value.
3638         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
3639         (gl_tree_remove_node): Call dispose_fn on the dropped value.
3640         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
3641         argument.
3642         (gl_tree_list_free): Call dispose_fn on the dropped values.
3643         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
3644         the dropped values.
3645         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
3646         Add dispose_fn argument.
3647         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
3648         Call dispose_fn on the dropped values.
3649         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
3650         Add dispose_fn argument.
3651         (gl_sublist_create): Initialize the 'dispose_fn' field.
3652         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
3653         * tests/test-array_list.c (main): Update.
3654         * tests/test-carray_list.c (main): Update.
3655         * tests/test-avltree_list.c (main): Update.
3656         * tests/test-rbtree_list.c (main): Update.
3657         * tests/test-avltreehash_list.c (main): Update.
3658         * tests/test-rbtreehash_list.c (main): Update.
3659         * tests/test-linked_list.c (main): Update.
3660         * tests/test-linkedhash_list.c (main): Update.
3661         * tests/test-array_oset.c (main): Update.
3662
3663 2007-03-15  Bruno Haible  <bruno@clisp.org>
3664
3665         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
3666         (gl_oset_create_empty): Add dispose_fn argument.
3667         (struct gl_oset_implementation): Add dispose_fn argument to
3668         'create_empty' method.
3669         (struct gl_oset_impl_base): Add dispose_fn field.
3670         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
3671         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
3672         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
3673         values.
3674         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
3675         (gl_tree_oset_free): Call dispose_fn on the dropped values.
3676         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
3677         dropped value.
3678         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
3679         dropped value.
3680         * tests/test-array_oset.c (main): Update.
3681         * tests/test-avltree_oset.c (main): Update.
3682         * tests/test-rbtree_oset.c (main): Update.
3683         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
3684
3685 2007-03-13  Bruno Haible  <bruno@clisp.org>
3686
3687         * tests/test-stdbool.c (i): Update after last patch.
3688
3689 2007-03-12  Bruno Haible  <bruno@clisp.org>
3690
3691         * lib/quotearg.c: Include <wctype.h> early, before the definition of
3692         the iswprint macro. Needed on Solaris 2.5.1.
3693
3694 2007-03-12  Bruno Haible  <bruno@clisp.org>
3695
3696         * tests/test-printf-frexp.c (main): Declare x as volatile.
3697
3698 2007-03-12  Simon Josefsson  <simon@josefsson.org>
3699
3700         * doc/gnulib.texi (Build robot for gnulib): New section.
3701
3702 2007-03-12  Jim Meyering  <jim@meyering.net>
3703
3704         * build-aux/bootstrap: New file.
3705         * build-aux/bootstrap.conf: New file, from coreutils.
3706
3707 2007-03-11  Bruno Haible  <bruno@clisp.org>
3708
3709         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
3710
3711 2007-03-12  Simon Josefsson  <simon@josefsson.org>
3712
3713         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
3714         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
3715         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
3716
3717 2007-03-11  Bruno Haible  <bruno@clisp.org>
3718
3719         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
3720         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
3721
3722 2007-03-11  Bruno Haible  <bruno@clisp.org>
3723
3724         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
3725         formula. Needed for SunPRO C 5.0.
3726
3727 2007-03-11  Bruno Haible  <bruno@clisp.org>
3728
3729         * modules/long-options (Depends-on): Add getopt.
3730
3731 2007-03-11  Bruno Haible  <bruno@clisp.org>
3732
3733         * modules/modechange (Depends-on): Add stdbool.
3734
3735 2007-03-11  Bruno Haible  <bruno@clisp.org>
3736
3737         * modules/i-ring (Depends-on): Add stdbool.
3738
3739 2007-03-11  Bruno Haible  <bruno@clisp.org>
3740
3741         * modules/gc-des (Depends-on): Add stdbool.
3742
3743 2007-03-11  Bruno Haible  <bruno@clisp.org>
3744
3745         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
3746
3747 2007-03-11  Bruno Haible  <bruno@clisp.org>
3748
3749         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
3750
3751 2007-03-11  Bruno Haible  <bruno@clisp.org>
3752
3753         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
3754
3755 2007-03-11  Bruno Haible  <bruno@clisp.org>
3756
3757         * lib/vasnprintf.c (sprintf): Undefine.
3758
3759 2007-03-11  Bruno Haible  <bruno@clisp.org>
3760
3761         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
3762         initializers in SunPRO C and Compaq C compilers.
3763
3764 2007-03-11  Bruno Haible  <bruno@clisp.org>
3765
3766         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
3767         decrementing code ANSI C compliant.
3768
3769 2007-03-11  Bruno Haible  <bruno@clisp.org>
3770
3771         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
3772         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
3773
3774 2007-03-11  Bruno Haible  <bruno@clisp.org>
3775
3776         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
3777         <stdbool.h> substitute doesn't pass.
3778
3779 2007-03-11  Bruno Haible  <bruno@clisp.org>
3780
3781         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
3782
3783 2007-03-11  Bruno Haible  <bruno@clisp.org>
3784
3785         * gnulib-tool (func_create_megatestdir): Create also an autobuild
3786         script, for submission to autobuild.josefsson.org.
3787
3788 2007-03-10  Bruno Haible  <bruno@clisp.org>
3789
3790         * modules/canonicalize-lgpl-tests: New file.
3791         * tests/test-canonicalize-lgpl.sh: New file.
3792         * tests/test-canonicalize-lgpl.c: New file.
3793
3794         * modules/c-strcase-tests: New file.
3795         * tests/test-c-strcase.sh: New file.
3796         * tests/test-c-strcasecmp.c: New file.
3797         * tests/test-c-strncasecmp.c: New file.
3798
3799         * modules/atexit-tests: New file.
3800         * tests/test-atexit.sh: New file.
3801         * tests/test-atexit.c: New file.
3802
3803 2007-03-10  Bruno Haible  <bruno@clisp.org>
3804
3805         * tests/test-binary-io.sh: Use temporary filenames that are not so
3806         likely to clash with those of other tests (in a parallel make).
3807         * tests/test-binary-io.c: Likewise.
3808
3809 2007-03-10  Bruno Haible  <bruno@clisp.org>
3810
3811         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
3812         fallback; use #error instead.
3813         Suggested by Simon Josefsson.
3814
3815 2007-03-10  Bruno Haible  <bruno@clisp.org>
3816
3817         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
3818         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
3819         first and the last.
3820
3821 2007-03-10  Bruno Haible  <bruno@clisp.org>
3822
3823         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
3824
3825 2007-03-10  Bruno Haible  <bruno@clisp.org>
3826
3827         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
3828         "make distcheck".
3829         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
3830         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
3831         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
3832
3833 2007-03-10  Bruno Haible  <bruno@clisp.org>
3834
3835         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
3836         variable.
3837         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
3838         variable.
3839
3840 2007-03-09  Eric Blake  <ebb9@byu.net>
3841         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
3842
3843         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
3844         types are not being provided by gnulib.
3845         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
3846         types are supported.
3847
3848 2007-03-10  Bruno Haible  <bruno@clisp.org>
3849
3850         * lib/stdio_.h (__attribute__): New macro.
3851         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
3852         vsprintf): Specify __attribute__ __format__ for GCC.
3853         Suggested by Eric Blake.
3854
3855 2007-03-09  Bruno Haible  <bruno@clisp.org>
3856
3857         * modules/printf-posix-tests: New file.
3858         * tests/test-printf-posix.sh: New file.
3859         * tests/test-printf-posix.c: New file.
3860
3861         * modules/printf-posix: New file.
3862         * lib/printf.c: New file.
3863         * m4/printf-posix-rpl.m4: New file.
3864         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
3865         REPLACE_PRINTF.
3866         * lib/stdio_.h (printf): New declaration.
3867         (format, __format__, ____printf____, ____scanf____, ____strftime____,
3868         ____strfmon____): New macros.
3869         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
3870         REPLACE_PRINTF.
3871
3872 2007-03-09  Bruno Haible  <bruno@clisp.org>
3873
3874         * tests/test-vasnprintf-posix2.sh: New file.
3875         * tests/test-vasnprintf-posix2.c: New file.
3876         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
3877         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
3878         (Makefile.am): Activate test-vasnprintf-posix2.sh.
3879
3880         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
3881         a locale dependent decimal point, rather than always '.'.
3882
3883 2007-03-09  Eric Blake  <ebb9@byu.net>
3884
3885         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
3886         spite of platforms like Tandem/NSK that define it to -1.
3887
3888 2007-03-08  Bruno Haible  <bruno@clisp.org>
3889
3890         * modules/vprintf-posix-tests: New file.
3891         * tests/test-vprintf-posix.sh: New file.
3892         * tests/test-vprintf-posix.c: New file.
3893         * tests/test-printf-posix.h: New file.
3894
3895         * modules/vprintf-posix: New file.
3896         * lib/vprintf.c: New file.
3897         * m4/vprintf-posix.m4: New file.
3898         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
3899         REPLACE_VPRINTF.
3900         * lib/stdio_.h (vprintf): New declaration.
3901         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
3902         REPLACE_VPRINTF.
3903
3904 2007-03-08  Bruno Haible  <bruno@clisp.org>
3905
3906         * modules/fprintf-posix-tests: New file.
3907         * tests/test-fprintf-posix.sh: New file.
3908         * tests/test-fprintf-posix.c: New file.
3909
3910         * modules/fprintf-posix: New file.
3911         * lib/fprintf.c: New file.
3912         * m4/fprintf-posix.m4: New file.
3913         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
3914         REPLACE_FPRINTF.
3915         * lib/stdio_.h (fprintf): New declaration.
3916         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
3917         REPLACE_FPRINTF.
3918
3919 2007-03-08  Bruno Haible  <bruno@clisp.org>
3920
3921         * modules/vfprintf-posix-tests: New file.
3922         * tests/test-vfprintf-posix.sh: New file.
3923         * tests/test-vfprintf-posix.c: New file.
3924         * tests/test-fprintf-posix.h: New file.
3925         * tests/test-fprintf-posix.out: New file.
3926
3927         * modules/vfprintf-posix: New file.
3928         * lib/vfprintf.c: New file.
3929         * m4/vfprintf-posix.m4: New file.
3930         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
3931         REPLACE_VFPRINTF.
3932         * lib/stdio_.h (vfprintf): New declaration.
3933         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
3934         REPLACE_VFPRINTF.
3935
3936 2007-03-08  Bruno Haible  <bruno@clisp.org>
3937
3938         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
3939
3940 2007-03-08  Bruno Haible  <bruno@clisp.org>
3941
3942         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
3943         instead of 'expr' invocations.
3944         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
3945         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
3946         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
3947         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
3948         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
3949         Suggested by Paul Eggert.
3950
3951 2007-03-08  Bruno Haible  <bruno@clisp.org>
3952
3953         * modules/fseterr-tests: New file.
3954         * tests/test-fseterr.c: New file.
3955
3956         * modules/fseterr: New file.
3957         * lib/fseterr.h: New file.
3958         * lib/fseterr.c: New file.
3959
3960 2007-03-08  Bruno Haible  <bruno@clisp.org>
3961
3962         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
3963         * lib/getopt_.h: Likewise.
3964         * lib/mbswidth.h: Likewise.
3965         * lib/setenv.h: Likewise.
3966         * lib/vasnprintf.h: Likewise.
3967         * lib/vasprintf.h: Likewise.
3968         * lib/verror.h: Likewise.
3969         * lib/xsetenv.h: Likewise.
3970         * lib/xvasprintf.h: Likewise.
3971
3972 2007-03-08  Jim Meyering  <jim@meyering.net>
3973
3974         * users.txt: Add parted.
3975
3976         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
3977
3978 2007-03-07  Bruno Haible  <bruno@clisp.org>
3979
3980         * m4/printf.m4: Make the shell script snippets copy&pastable.
3981
3982 2007-03-02  Bruno Haible  <bruno@clisp.org>
3983
3984         * lib/netinet_in_.h: New file.
3985         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
3986         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
3987         * modules/netinet_in (Files): Add lib/netinet_in_.h.
3988         (Depends-on): Add absolute-header.
3989         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
3990         into netinet/in.h.
3991
3992 2007-03-03  Bruno Haible  <bruno@clisp.org>
3993
3994         * lib/sys_select_.h: New file.
3995         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
3996         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
3997         * modules/sys_select (Files): Add lib/sys_select_.h.
3998         (Depends-on): Add absolute-header.
3999         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
4000         into sys/select.h.
4001
4002 2007-03-02  Bruno Haible  <bruno@clisp.org>
4003
4004         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
4005         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
4006         values.
4007         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
4008         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
4009         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
4010         * modules/sys_socket (Depends-on): Add absolute-header.
4011         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
4012         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
4013         (Include): Remove requirement of inclusion of <sys/types.h>.
4014
4015 2007-03-02  Bruno Haible  <bruno@clisp.org>
4016
4017         * lib/byteswap_.h (bswap_32): Fix formula.
4018
4019 2007-03-06  Bruno Haible  <bruno@clisp.org>
4020
4021         * modules/sprintf-posix-tests: New file.
4022         * tests/test-sprintf-posix.c: New file.
4023
4024         * modules/sprintf-posix: New file.
4025         * lib/sprintf.c: New file.
4026         * m4/sprintf-posix.m4: New file.
4027         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
4028         REPLACE_SPRINTF.
4029         * lib/stdio_.h (sprintf): New declaration.
4030         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
4031         REPLACE_SPRINTF.
4032
4033 2007-03-06  Bruno Haible  <bruno@clisp.org>
4034
4035         * modules/vsprintf-posix-tests: New file.
4036         * tests/test-vsprintf-posix.c: New file.
4037         * tests/test-sprintf-posix.h: New file.
4038
4039         * modules/vsprintf-posix: New file.
4040         * lib/vsprintf.c: New file.
4041         * m4/vsprintf-posix.m4: New file.
4042         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
4043         REPLACE_VSPRINTF.
4044         * lib/stdio_.h (vsprintf): New declaration.
4045         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
4046         REPLACE_VSPRINTF.
4047
4048 2007-03-06  Bruno Haible  <bruno@clisp.org>
4049
4050         * modules/vsnprintf (Depend-on): Remove minmax.
4051
4052 2007-03-06  Bruno Haible  <bruno@clisp.org>
4053
4054         * modules/snprintf-posix-tests: New file.
4055         * tests/test-snprintf-posix.c: New file.
4056
4057         * modules/snprintf-posix: New file.
4058         * m4/snprintf-posix.m4: New file.
4059         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
4060         gl_FUNC_SNPRINTF.
4061         (gl_FUNC_SNPRINTF): Invoke it.
4062         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
4063         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
4064         is set.
4065         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
4066
4067 2007-03-06  Bruno Haible  <bruno@clisp.org>
4068
4069         * modules/vsnprintf-posix-tests: New file.
4070         * tests/test-vsnprintf-posix.c: New file.
4071         * tests/test-snprintf-posix.h: New file.
4072
4073         * modules/vsnprintf-posix: New file.
4074         * m4/vsnprintf-posix.m4: New file.
4075         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
4076         gl_FUNC_VSNPRINTF.
4077         (gl_FUNC_VSNPRINTF): Invoke it.
4078         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
4079         * lib/stdio_.h (vsnprintf): Define as a replacement if
4080         REPLACE_VSNPRINTF is set.
4081         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
4082
4083 2007-03-06  Bruno Haible  <bruno@clisp.org>
4084
4085         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
4086         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
4087
4088 2007-03-06  Bruno Haible  <bruno@clisp.org>
4089
4090         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
4091         (asinl): Declare also if HAVE_DECL_ASINL is set.
4092         (atanl): Declare also if HAVE_DECL_ATANL is set.
4093         (ceill): Declare also if HAVE_DECL_CEILL is set.
4094         (cosl): Declare also if HAVE_DECL_COSL is set.
4095         (expl): Declare also if HAVE_DECL_EXPL is set.
4096         (floorl): Declare also if HAVE_DECL_FLOORL is set.
4097         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
4098         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
4099         (logl): Declare also if HAVE_DECL_LOGL is set.
4100         (sinl): Declare also if HAVE_DECL_SINL is set.
4101         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
4102         (tanl): Declare also if HAVE_DECL_TANL is set.
4103         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
4104         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
4105         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
4106         declaration of frexpl, ldexpl.
4107         * modules/printf-frexpl (Depends-on): Add math.
4108         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
4109
4110 2007-03-05  Bruno Haible  <bruno@clisp.org>
4111
4112         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
4113         frexpl and ldexpl are declared.
4114         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
4115
4116 2007-03-05  Bruno Haible  <bruno@clisp.org>
4117
4118         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
4119         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
4120
4121 2007-03-05  Bruno Haible  <bruno@clisp.org>
4122
4123         * lib/stdio_.h: Include <stddef.h>.
4124
4125 2007-03-05  Bruno Haible  <bruno@clisp.org>
4126
4127         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
4128
4129 2007-03-05  Bruno Haible  <bruno@clisp.org>
4130
4131         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
4132         NetBSD 4, from Ralf Wildenhues.
4133
4134 2007-03-04  Bruno Haible  <bruno@clisp.org>
4135
4136         * lib/vasprintf.h: Update #if logic for the case when the functions
4137         exist but are overridden.
4138
4139 2007-03-04  Bruno Haible  <bruno@clisp.org>
4140
4141         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
4142         implementations: glibc-2.4 and MacOS X 10.3.
4143         * tests/test-vasnprintf-posix.c (test_function): Test also the case
4144         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
4145         * tests/test-vasprintf-posix.c (test_function): Likewise.
4146
4147 2007-03-04  Bruno Haible  <bruno@clisp.org>
4148
4149         * modules/vasprintf-posix-tests: New file.
4150         * tests/test-vasprintf-posix.c: New file.
4151
4152         * modules/vasprintf-posix: New file.
4153         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
4154         defined.
4155         * m4/vasprintf-posix.m4: New file.
4156         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
4157         gl_FUNC_VASPRINTF.
4158         (gl_FUNC_VASPRINTF): Invoke it.
4159         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
4160         here.
4161         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
4162
4163 2007-03-04  Bruno Haible  <bruno@clisp.org>
4164
4165         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
4166         REPLACE_GETTIMEOFDAY.
4167         * modules/sys_time (Makefile.am): Likewise.
4168         * m4/sys_time_h.m4: Likewise.
4169         * m4/gettimeofday.m4: Likewise.
4170
4171 2007-03-04  Bruno Haible  <bruno@clisp.org>
4172
4173         * modules/vasnprintf-posix-tests: New file.
4174         * tests/test-vasnprintf-posix.c: New file.
4175
4176         * modules/vasnprintf-posix: New file.
4177         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
4178         printf-frexpl.h.
4179         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
4180         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
4181         REPLACE_VASNPRINTF is defined.
4182         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
4183         gl_FUNC_VASNPRINTF.
4184         (gl_FUNC_VASNPRINTF): Invoke it.
4185         * m4/vasnprintf-posix.m4: New file.
4186         * m4/printf.m4: New file.
4187
4188 2007-03-04  Bruno Haible  <bruno@clisp.org>
4189
4190         Compile progreloc.c only if --enable-relocatable is specified.
4191         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
4192         if --enable-relocatable was specified.
4193         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
4194         lib_SOURCES.
4195
4196 2007-03-04  Jim Meyering  <jim@meyering.net>
4197
4198         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
4199         Use it consistently, rather than enumerating errno constants.
4200
4201 2007-03-04  Bruno Haible  <bruno@clisp.org>
4202
4203         * modules/xvasprintf-tests: New file.
4204         * tests/test-xvasprintf.c: New file.
4205
4206         * modules/vasprintf-tests: New file.
4207         * tests/test-vasprintf.c: New file.
4208
4209         * modules/vasnprintf-tests: New file.
4210         * tests/test-vasnprintf.c: New file.
4211
4212         * modules/vsnprintf-tests: New file.
4213         * tests/test-vsnprintf.c: New file.
4214
4215         * modules/snprintf-tests: New file.
4216         * tests/test-snprintf.c: New file.
4217
4218 2007-03-04  Bruno Haible  <bruno@clisp.org>
4219
4220         Compile relocatable.c only if --enable-relocatable is specified.
4221         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
4222         gl_RELOCATABLE_LIBRARY.
4223         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
4224         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
4225         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
4226         gl_RELOCATABLE_LIBRARY.
4227         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
4228         (Makefile.am): Remove lib_SOURCES.
4229         * modules/relocatable-lib-lgpl (configure.ac): Invoke
4230         gl_RELOCATABLE_LIBRARY.
4231         (Makefile.am): Remove lib_SOURCES.
4232         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
4233         always.
4234         * modules/relocatable-prog-wrapper (configure.ac): Invoke
4235         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
4236
4237 2007-03-04  Bruno Haible  <bruno@clisp.org>
4238
4239         * modules/argmatch-tests: New file.
4240         * tests/test-argmatch.c: New file.
4241
4242         * tests/test-allocsa.c (main): Halve the number of loop runs.
4243
4244         * modules/alloca-opt-tests: New file.
4245         * tests/test-alloca-opt.c: New file.
4246
4247 2007-03-04  Jim Meyering  <jim@meyering.net>
4248
4249         Work around difference between Linux ACLs and Solaris 10 ZFS.
4250         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
4251         for EINVAL.
4252
4253 2007-03-03  Bruno Haible  <bruno@clisp.org>
4254
4255         * modules/relocatable-prog (Depends-on): Add back progreloc's
4256         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
4257
4258 2007-03-03  Bruno Haible  <bruno@clisp.org>
4259
4260         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
4261         * modules/relocatable-lib: New file.
4262
4263 2007-03-03  Bruno Haible  <bruno@clisp.org>
4264
4265         * modules/relocatable-prog: Renamed from modules/relocatable.
4266         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
4267
4268 2007-03-03  Bruno Haible  <bruno@clisp.org>
4269
4270         * modules/relocatable-script (Files): Add doc/relocatable.texi,
4271         m4/relocatable-lib.m4.
4272         (Depends-on): Remove 'relocatable'.
4273         (configure.ac): Add gl_RELOCATABLE_NOP.
4274
4275 2007-03-03  Bruno Haible  <bruno@clisp.org>
4276
4277         * modules/relocatable-prog-wrapper: New file.
4278         * modules/relocatable (Depends-on): Add it. Remove all other
4279         dependencies except progname.
4280         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
4281
4282         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
4283         (gl_FUNC_STRERROR): Nop.
4284         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
4285
4286         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
4287         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
4288
4289         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
4290         (gl_FUNC_READLINK): Update.
4291
4292         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
4293
4294 2007-03-03  Bruno Haible  <bruno@clisp.org>
4295
4296         * lib/xreadlink.c: Include <unistd.h> unconditionally.
4297         * modules/xreadlink (Depends-on): Add unistd.
4298         * modules/xreadlink-with-size (Depends-on): Likewise.
4299
4300 2007-03-03  Bruno Haible  <bruno@clisp.org>
4301
4302         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
4303         extracted from gt_FUNC_SETENV.
4304         (gt_FUNC_SETENV): Remove macro.
4305         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
4306         remove gt_FUNC_SETENV.
4307
4308 2007-03-03  Bruno Haible  <bruno@clisp.org>
4309
4310         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
4311         ENABLE_RELOCATABLE here.
4312         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
4313
4314 2007-03-03  Bruno Haible  <bruno@clisp.org>
4315
4316         * modules/rbtreehash-list-tests (Depends-on): Add progname.
4317         * tests/test-rbtreehash_list.c: Include progname.h.
4318         (main): Call set_program_name.
4319
4320         * modules/rbtree-oset-tests (Depends-on): Add progname.
4321         * tests/test-rbtree_oset.c: Include progname.h.
4322         (main): Call set_program_name.
4323
4324         * modules/rbtree-list-tests (Depends-on): Add progname.
4325         * tests/test-rbtree_list.c: Include progname.h.
4326         (main): Call set_program_name.
4327
4328         * modules/linked-list-tests (Depends-on): Add progname.
4329         * tests/test-linked_list.c: Include progname.h.
4330         (main): Call set_program_name.
4331
4332 2007-03-03  Bruno Haible  <bruno@clisp.org>
4333
4334         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
4335         All uses of __restrict changed to _Restrict_.
4336         * lib/glob_.h (__restrict): Remove macro.
4337
4338 2007-03-02  Bruno Haible  <bruno@clisp.org>
4339
4340         * modules/gettext (configure.ac): Require gettext infrastructure
4341         from version 0.16.1.
4342
4343 2007-03-02  Bruno Haible  <bruno@clisp.org>
4344
4345         * modules/linkedhash-list-tests (Depends-on): Add progname.
4346         * tests/test-linkedhash_list.c: Include progname.h.
4347         (main): Call set_program_name.
4348
4349         * modules/carray-list-tests (Depends-on): Add progname.
4350         * tests/test-carray_list.c: Include progname.h.
4351         (main): Call set_program_name.
4352
4353         * modules/avltreehash-list-tests (Depends-on): Add progname.
4354         * tests/test-avltreehash_list.c: Include progname.h.
4355         (main): Call set_program_name.
4356
4357         * modules/avltree-oset-tests (Depends-on): Add progname.
4358         * tests/test-avltree_oset.c: Include progname.h.
4359         (main): Call set_program_name.
4360
4361         * modules/avltree-list-tests (Depends-on): Add progname.
4362         * tests/test-avltree_list.c: Include progname.h.
4363         (main): Call set_program_name.
4364
4365         * modules/array-oset-tests (Depends-on): Add progname.
4366         * tests/test-array_oset.c: Include progname.h.
4367         (main): Call set_program_name.
4368
4369         * modules/array-list-tests (Depends-on): Add progname.
4370         * tests/test-array_list.c: Include progname.h.
4371         (main): Call set_program_name.
4372
4373         * modules/argp-tests (Depends-on): Add progname.
4374         * tests/test-argp.c: Include argp.h first. Include progname.h.
4375         (main): Call set_program_name.
4376
4377 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
4378
4379         * doc/gnulib-tool.texi (Initial import): Reword description of
4380         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
4381         limited effect even if defined after the first system include.
4382
4383 2007-03-01  Bruno Haible  <bruno@clisp.org>
4384
4385         * build-aux/config.libpath: Update to libtool-1.5.22.
4386         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
4387
4388 2007-03-01  Bruno Haible  <bruno@clisp.org>
4389
4390         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
4391         foo_CFLAGS.
4392         Reported by Ralf Wildenhues.
4393
4394 2007-03-01  Bruno Haible  <bruno@clisp.org>
4395
4396         * build-aux/install-reloc: Remove object files left over by some
4397         compilers.
4398         Reported by Ralf Wildenhues.
4399
4400 2007-03-01  Bruno Haible  <bruno@clisp.org>
4401
4402         * build-aux/install-reloc: Break long lines.
4403
4404 2007-03-01  Bruno Haible  <bruno@clisp.org>
4405
4406         * doc/relocatable.texi: Document that it may not work on OpenBSD.
4407         Reported by Ralf Wildenhues.
4408
4409 2007-03-01  Bruno Haible  <bruno@clisp.org>
4410
4411         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
4412         include ordering constraints.
4413
4414 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
4415
4416         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
4417         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
4418         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
4419         as another example.
4420         * lib/time_.h: Fix misspelling.
4421         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
4422         Require gl_HEADER_TIME_H_DEFAULTS.
4423         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
4424         * m4/time_r.m4 (gl_TIME_R): Likewise.
4425         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
4426
4427 2007-03-01  Bruno Haible  <bruno@clisp.org>
4428
4429         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
4430         * m4/utimens.m4 (gl_UTIMENS): Likewise.
4431
4432 2007-03-01  Jim Meyering  <jim@meyering.net>
4433
4434         * modules/xreadlink (Maintainer): Add my name.
4435         * modules/xreadlink-with-size (Depends-on): Alphabetize.
4436
4437 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
4438             Bruno Haible  <bruno@clisp.org>
4439
4440         * build-aux/install-reloc: Compile also c-ctype.c.
4441         * build-aux/relocatable.sh.in: New file.
4442         * doc/relocatable.texi: New file.
4443         * doc/relocatable-maint.texi: New file.
4444         * doc/gnulib.texi: Include relocatable-maint.texi.
4445         * lib/progreloc.c: Include unistd.h unconditionally.
4446         * lib/relocwrapper.c: Include unistd.h unconditionally.
4447         Include c-ctype.h.
4448         (add_dotbin): Use c_tolower.
4449         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
4450         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
4451         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
4452         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
4453         to m4/relocatable-lib.m4.
4454         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
4455         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
4456         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
4457         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
4458         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
4459         * modules/relocatable: New file.
4460         * modules/relocatable-lib: New file.
4461         * modules/relocatable-script: New file.
4462
4463 2007-02-28  Bruno Haible  <bruno@clisp.org>
4464
4465         Import --enable-relocatable infrastructure.
4466         * build-aux/config.libpath: New file, from GNU gettext.
4467         * build-aux/install-reloc: New file, from GNU gettext.
4468         * build-aux/reloc-ldflags: New file, from GNU gettext.
4469         * lib/relocatable.h: New file, from GNU gettext.
4470         * lib/relocatable.c: New file, from GNU gettext.
4471         * lib/relocwrapper.c: New file, from GNU gettext.
4472         * m4/relocatable.m4: New file, from GNU gettext.
4473
4474 2007-02-28  Bruno Haible  <bruno@clisp.org>
4475
4476         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
4477
4478         * modules/xreadlink: New file, from GNU gettext with modifications.
4479         * lib/xreadlink.c: New file, from GNU gettext.
4480         * lib/xreadlink.h: Add comments.
4481         (xreadlink): New declaration.
4482
4483         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
4484         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
4485         lib/xreadlink-with-size.c.
4486         (configure.ac): Remove gl_XREADLINK invocation.
4487         (Makefile.am): Augment lib_SOURCES.
4488         * m4/xreadlink.m4: Remove file.
4489         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
4490         (xreadlink_with_size): Renamed from xreadink.
4491         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
4492         * modules/canonicalize (Depends-on): Replace xreadlink with
4493         xreadlink-with-size.
4494         * lib/canonicalize.c (canonicalize_filename_mode): Update.
4495
4496 2007-02-25  Jim Meyering  <jim@meyering.net>
4497
4498         * build-aux/announce-gen: When complaining about excess arguments,
4499         list them.
4500
4501 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
4502
4503         * README: Document signed integer overflow situation more
4504         accurately.
4505
4506 2007-02-25  Bruno Haible  <bruno@clisp.org>
4507
4508         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
4509         'a' or 'A' conversion.
4510
4511 2007-02-25  Bruno Haible  <bruno@clisp.org>
4512
4513         * modules/filename: Renamed from modules/pathname.
4514         (Files): Replace lib/pathname.h with lib/filename.h. Replace
4515         lib/concatpath.c with lib/concat-filename.c.
4516         (Makefile.am): Update.
4517         (Include): Replace pathname.h with filename.h.
4518         * lib/filename.h: Renamed from lib/pathname.h.
4519         (concatenated_filename): Renamed from concatenated_pathname.
4520         * lib/concat-filename.c: Renamed from lib/concatpath.c.
4521         (concatenated_filename): Renamed from concatenated_pathname.
4522         * lib/findprog.c: Include filename.h instead of pathname.h.
4523         (find_in_path): Update.
4524         * lib/javacomp.c: Include filename.h instead of pathname.h.
4525         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
4526         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
4527         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
4528         is_oldgcj_14_13_usable, is_javac_usable): Update.
4529         * lib/javaexec.c: Include filename.h instead of pathname.h.
4530         (execute_java_class): Update.
4531         * modules/findprog: Update.
4532         * modules/javacomp: Update.
4533         * modules/javaexec: Update.
4534         * MODULES.html.sh (File system functions): Add 'filename', remove
4535         'pathname'.
4536
4537 2007-02-25  Bruno Haible  <bruno@clisp.org>
4538
4539         * modules/printf-frexpl-tests: New file.
4540         * tests/test-printf-frexpl.c: New file.
4541
4542         * modules/printf-frexpl: New file.
4543         * lib/printf-frexpl.h: New file.
4544         * lib/printf-frexpl.c: New file.
4545         * m4/printf-frexpl.m4: New file.
4546
4547 2007-02-25  Bruno Haible  <bruno@clisp.org>
4548
4549         * modules/printf-frexp-tests: New file.
4550         * tests/test-printf-frexp.c: New file.
4551
4552         * modules/printf-frexp: New file.
4553         * lib/printf-frexp.h: New file.
4554         * lib/printf-frexp.c: New file.
4555         * m4/printf-frexp.m4: New file.
4556
4557 2007-02-25  Bruno Haible  <bruno@clisp.org>
4558
4559         Assume automake >= 1.10 for the tests.
4560         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
4561         * modules/arctwo-tests: Likewise.
4562         * modules/argp-tests: Likewise.
4563         * modules/avltree-list-tests: Likewise.
4564         * modules/avltree-oset-tests: Likewise.
4565         * modules/avltreehash-list-tests: Likewise.
4566         * modules/carray-list-tests: Likewise.
4567         * modules/crc-tests: Likewise.
4568         * modules/des-tests: Likewise.
4569         * modules/gc-arcfour-tests: Likewise.
4570         * modules/gc-arctwo-tests: Likewise.
4571         * modules/gc-des-tests: Likewise.
4572         * modules/gc-hmac-md5-tests: Likewise.
4573         * modules/gc-hmac-sha1-tests: Likewise.
4574         * modules/gc-md2-tests: Likewise.
4575         * modules/gc-md4-tests: Likewise.
4576         * modules/gc-md5-tests: Likewise.
4577         * modules/gc-pbkdf2-sha1-tests: Likewise.
4578         * modules/gc-rijndael-tests: Likewise.
4579         * modules/gc-sha1-tests: Likewise.
4580         * modules/gc-tests: Likewise.
4581         * modules/getaddrinfo-tests: Likewise.
4582         * modules/hmac-md5-tests: Likewise.
4583         * modules/hmac-sha1-tests: Likewise.
4584         * modules/linked-list-tests: Likewise.
4585         * modules/linkedhash-list-tests: Likewise.
4586         * modules/lock-tests: Likewise.
4587         * modules/md2-tests: Likewise.
4588         * modules/md4-tests: Likewise.
4589         * modules/md5-tests: Likewise.
4590         * modules/rbtree-list-tests: Likewise.
4591         * modules/rbtree-oset-tests: Likewise.
4592         * modules/rbtreehash-list-tests: Likewise.
4593         * modules/read-file-tests: Likewise.
4594         * modules/rijndael-tests: Likewise.
4595         * modules/stdint-tests: Likewise.
4596         * modules/tls-tests: Likewise.
4597
4598 2007-02-24  Bruno Haible  <bruno@clisp.org>
4599
4600         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
4601         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
4602         function; instead check whether isnan with a double argument links.
4603         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
4604         function; instead check whether isnan with a 'long double' argument
4605         links.
4606         Reported by Eric Blake <ebb9@byu.net>.
4607
4608 2007-02-24  Bruno Haible  <bruno@clisp.org>
4609
4610         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
4611         defined.
4612         * lib/isnanl.c: Remove all code. Just include isnan.c.
4613         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
4614
4615 2007-02-25  Jim Meyering  <jim@meyering.net>
4616
4617         Avoid conflicting types for 'unsetenv' on FreeBSD.
4618         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
4619         conflicting with FreeBSD's (5.0 and 6.1) function declaration
4620         in stdlib.h.
4621
4622 2007-02-24  Bruno Haible  <bruno@clisp.org>
4623
4624         * modules/isnanl-nolibm-tests: New file.
4625         * tests/test-isnanl.c: New file.
4626
4627         * modules/isnanl-nolibm: New file.
4628         * lib/isnanl.h: New file.
4629         * lib/isnanl.c: New file.
4630         * m4/isnanl.m4: New file.
4631
4632 2007-02-24  Bruno Haible  <bruno@clisp.org>
4633
4634         * modules/isnan-nolibm-tests: New file.
4635         * tests/test-isnan.c: New file.
4636
4637         * modules/isnan-nolibm: New file.
4638         * lib/isnan.h: New file.
4639         * lib/isnan.c: New file.
4640         * m4/isnan.m4: New file.
4641
4642 2007-02-24  Bruno Haible  <bruno@clisp.org>
4643
4644         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
4645         assume that an exponent fits in 20 bits.
4646
4647 2007-02-24  Jim Meyering  <jim@meyering.net>
4648
4649         * m4/regex.m4: Update the description of the configure-time option,
4650         --without-included-regex, to state accurately what the defaults are,
4651         and perhaps to give people an idea why using this option is risky.
4652
4653 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
4654
4655         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
4656         loops on small arguments.  This attempts to avoid the problem
4657         Bruno Haible reported for AIX 4.3.2 in
4658         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
4659
4660 2007-02-23  Bruno Haible  <bruno@clisp.org>
4661
4662         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
4663         Needed for help2man.
4664
4665 2007-02-23  Karl Berry  <karl@gnu.org>
4666
4667         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
4668         exists, foo.h should be cvs-ignored, not committed.
4669
4670 2007-02-23  Eric Blake  <ebb9@byu.net>
4671
4672         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
4673         * lib/stat-time.h (includes): Likewise.
4674         * lib/utimecmp.c (includes): Likewise.
4675         * lib/utimens.h (includes): Likewise.
4676         * lib/getdate.y (includes): Also include "timespec.h" for use
4677         internal to the module.
4678         * modules/utimens (Depends-on): Revert yesterday's patch.
4679         * modules/nanosleep (Depends-on): Add missing dependency.
4680
4681 2007-02-22  Bruno Haible  <bruno@clisp.org>
4682
4683         * lib/glob.c: Don't include getlogin_r.h.
4684
4685 2007-02-22  Jim Meyering  <jim@meyering.net>
4686
4687         * modules/utimens (Depends-on): Add timespec, required for
4688         utimens.h's inclusion of timespec.h.
4689
4690 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
4691
4692         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
4693         long unreadable paths in GNU/Linux.  Problem reported by Andreas
4694         Schwab in
4695         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
4696         I'll try to think of a better way to fix the Solaris problem.
4697
4698         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
4699         like glibc; on Solaris 10, it fails with errno == EINVAL.
4700         POSIX says the behavior is unspecified if the first argument is NULL,
4701         so play it safe and never pass NULL to the system getcwd.
4702
4703 2007-02-21  Jim Meyering  <jim@meyering.net>
4704
4705         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
4706         of gettimeofday.  It would conflict with the one now always
4707         provided via sys_time_.h.  Reported by Matthew Woehlke, as
4708         an IRIX 6.5 build failure.
4709
4710 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
4711
4712         Minor fixups to port to Solaris 10 with Sun C 5.8.
4713         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
4714         * modules/getcwd (Depends-on): Add dirfd.
4715         * lib/putenv.c (putenv): #undef it.
4716         (rpl_putenv): New decl.
4717         (malloc, free): Include <stdlib.h> rather than prototyping separately.
4718
4719 2007-02-20  Bruno Haible  <bruno@clisp.org>
4720
4721         * modules/stdio-tests: New file.
4722         * tests/test-stdio.c: New file.
4723
4724         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
4725         (Depends-on): Add stdio.
4726         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
4727         (Include): Use <stdio.h> instead of vsnprintf.h.
4728         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
4729         HAVE_DECL_VSNPRINTF.
4730         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
4731
4732         * modules/snprintf (Files): Remove lib/snprintf.h.
4733         (Depends-on): Add stdio.
4734         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
4735         (Include): Use <stdio.h> instead of snprintf.h.
4736         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
4737         HAVE_DECL_SNPRINTF.
4738         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
4739         * lib/getaddrinfo.c: Likewise.
4740
4741         * modules/stdio: New file.
4742         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
4743         * lib/snprintf.h: Remove file.
4744         * lib/vsnprintf.h: Remove file.
4745         * lib/.cppi-disable: Remove snprintf.h.
4746         * m4/stdio_h.m4: New file.
4747         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
4748
4749 2007-02-20  Jim Meyering  <jim@meyering.net>
4750
4751         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
4752         used by e.g., mingw.  From Bruno Haible.
4753
4754 2007-02-19  Bruno Haible  <bruno@clisp.org>
4755
4756         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
4757         warnings.
4758         Reported by Ben Pfaff <blp@cs.stanford.edu>.
4759
4760 2007-02-19  Bruno Haible  <bruno@clisp.org>
4761
4762         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
4763         from mingw users.
4764
4765 2007-02-19  Bruno Haible  <bruno@clisp.org>
4766
4767         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
4768         warnings.
4769         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
4770
4771 2007-02-19  Jim Meyering  <jim@meyering.net>
4772
4773         Don't use FD after a successful "fdopendir (fd)".
4774         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
4775         Reset it by calling dirfd on the just-obtained DIR*.
4776
4777         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
4778         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
4779
4780 2007-02-18  Bruno Haible  <bruno@clisp.org>
4781
4782         * lib/readlink.c: Include <unistd.h>.
4783         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
4784         HAVE_READLINK.
4785         * modules/readlink (Depends-on): Add unistd.
4786         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
4787         (Include): Add <unistd.h>.
4788
4789         * lib/getlogin_r.h: Remove file.
4790         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
4791         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
4792         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
4793         HAVE_DECL_GETLOGIN_R.
4794         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
4795         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
4796         (Include): Use <unistd.h> instead of getlogin_r.h.
4797
4798         * lib/getcwd.h: Remove file.
4799         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
4800         * lib/xgetcwd.c: Likewise.
4801         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
4802         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
4803         * modules/getcwd (Files): Remove lib/getcwd.h.
4804         (Depends-on): Add unistd.
4805         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
4806         (Include): Use <unistd.h> instad of getcwd.h.
4807
4808         * lib/ftruncate.c: Include <unistd.h> first.
4809         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
4810         Set HAVE_FTRUNCATE.
4811         * modules/ftruncate (Depends-on): Add unistd.
4812         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
4813
4814         * lib/fchdir.c: Include <unistd.h> first.
4815         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
4816         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
4817         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
4818         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
4819         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
4820
4821         * lib/dup2.c: Include <unistd.h> first.
4822         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
4823         HAVE_DUP2.
4824         * modules/dup2 (Depends-on): Add unistd.
4825         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
4826
4827         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
4828         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
4829         REPLACE_CHOWN. Don't define chown as a macro here.
4830         * modules/chown (Depends-on): Add unistd.
4831         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
4832
4833         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
4834         Add definition for GL_LINK_WARNING.
4835         (chown, dup2): New declarations.
4836         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
4837         link warning.
4838         (ftruncate): New declaration.
4839         (getcwd): New declaration, taken from old getcwd.h.
4840         (getlogin_r): New declaration, taken from old getlogin_r.h.
4841         (readlink): New declaration.
4842         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
4843         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
4844         (gl_PREREQ_UNISTD): Remove macro.
4845         (gl_UNISTD_MODULE_INDICATOR): New macro.
4846         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
4847         many new variables. Don't set UNISTD_H.
4848         * modules/unistd (Description): Change.
4849         (Depends-on): Add link-warning.
4850         (configure.ac): Update.
4851         (Makefile.am): Create unistd.h always. Substitute many new variables
4852         into it.
4853
4854 2007-02-18  Bruno Haible  <bruno@clisp.org>
4855
4856         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
4857         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
4858         HAVE_GETSUBOPT.
4859         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
4860         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
4861         * lib/getsubopt.h: Remove file.
4862         * modules/getsubopt (Files): Remove lib/getsubopt.h.
4863         (Depends-on): Add stdlib.
4864         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
4865         (Includes): Use <stdlib.h> instead of getsubopt.h.
4866         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
4867         Set HAVE_GETSUBOPT.
4868         * lib/getsubopt.c: Don't include getsubopt.h.
4869
4870 2007-02-18  Bruno Haible  <bruno@clisp.org>
4871
4872         * modules/fchdir (Depends-on): Add dup2.
4873
4874 2007-02-18  Bruno Haible  <bruno@clisp.org>
4875
4876         * lib/stdlib_.h: Handle glibc's special invocation convention
4877         specially.
4878
4879 2007-02-18  Bruno Haible  <bruno@clisp.org>
4880
4881         * modules/stdlib-tests: New file.
4882         * tests/test-stdlib.c: New file.
4883
4884         * modules/mkstemp (Files): Remove lib/mkstemp.h.
4885         (Depends-on): Add stdlib.
4886         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
4887         (Includes): Use <stdlib.h> instead of mkstemp.h.
4888         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
4889         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
4890         * lib/mkstemp.c: Don't include mkstemp.h.
4891         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
4892         * lib/stdlib--.h: Don't include mkstemp.h.
4893
4894         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
4895         (Depends-on): Add stdlib.
4896         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
4897         (Includes): Use <stdlib.h> instead of mkdtemp.h.
4898         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
4899         HAVE_MKDTEMP.
4900         * lib/mkdtemp.c: Don't include mkdtemp.h.
4901         * lib/clean-temp.c: Don't include mkdtemp.h.
4902
4903         * modules/exit (Files): Remove lib/exit.h.
4904         (Depends-on): Add stdlib.
4905         (Makefile.am): Remove lib_SOURCES.
4906         (Include): Use <stdlib.h> instead of exit.h.
4907         * lib/argmatch.c: Don't include exit.h.
4908         * lib/execute.c: Likewise.
4909         * lib/pagealign_alloc.c: Likewise.
4910         * lib/pipe.c: Likewise.
4911         * lib/wait-process.c: Likewise.
4912         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
4913         * lib/exitfail.c: Likewise.
4914         * lib/savewd.c: Likewise.
4915         * lib/xsetenv.c: Likewise.
4916
4917         * modules/stdlib: New file.
4918         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
4919         and extra comments about mkstemp().
4920         * lib/exit.h: Remove file.
4921         * lib/mkdtemp.h: Remove file.
4922         * lib/mkstemp.h: Remove file.
4923         * m4/stdlib_h.m4: New file.
4924         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
4925
4926 2007-02-18  Bruno Haible  <bruno@clisp.org>
4927
4928         * modules/math-tests: New file.
4929         * tests/test-math.c: New file.
4930
4931         * modules/math: New file.
4932         * modules/mathl (Files): Remove lib/mathl.h.
4933         (Depends-on): Add math.
4934         (Makefile.am): Don't mention mathl.h.
4935         (Include): Use <math.h> instead of mathl.h.
4936         * lib/math_.h: New file.
4937         * lib/mathl.h: Remove file.
4938         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
4939         mathl.h.
4940         * lib/asinl.c: Likewise.
4941         * lib/atanl.c: Likewise.
4942         * lib/ceill.c: Likewise.
4943         * lib/cosl.c: Likewise.
4944         * lib/expl.c: Likewise.
4945         * lib/floorl.c: Likewise.
4946         * lib/frexpl.c: Likewise.
4947         * lib/ldexpl.c: Likewise.
4948         * lib/logl.c: Likewise.
4949         * lib/sincosl.c: Likewise.
4950         * lib/sinl.c: Likewise.
4951         * lib/sqrtl.c: Likewise.
4952         * lib/tanl.c: Likewise.
4953         * lib/trigl.c: Likewise.
4954         * m4/math_h.m4: New file.
4955         * MODULES.html.sh (Mathematics): Add math.
4956
4957 2007-02-17  Bruno Haible  <bruno@clisp.org>
4958
4959         * modules/wctype-tests: New file.
4960         * tests/test-wctype.c: New file.
4961
4962         * modules/wchar-tests: New file.
4963         * tests/test-wchar.c: New file.
4964
4965         * modules/unistd-tests: New file.
4966         * tests/test-unistd.c: New file.
4967
4968         * modules/time-tests: New file.
4969         * tests/test-time.c: New file.
4970
4971         * modules/sysexits-tests: New file.
4972         * tests/test-sysexits.c: New file.
4973
4974         * modules/sys_time-tests: New file.
4975         * tests/test-sys_time.c: New file.
4976
4977         * modules/sys_stat-tests: New file.
4978         * tests/test-sys_stat.c: New file.
4979
4980         * modules/sys_socket-tests: New file.
4981         * tests/test-sys_socket.c: New file.
4982
4983         * modules/sys_select-tests: New file.
4984         * tests/test-sys_select.c: New file.
4985
4986         * modules/string-tests: New file.
4987         * tests/test-string.c: New file.
4988
4989         * modules/stdbool-tests: New file.
4990         * tests/test-stdbool.c: New file.
4991
4992         * modules/netinet_in-tests: New file.
4993         * tests/test-netinet_in.c: New file.
4994
4995         * modules/inttypes-tests: New file.
4996         * tests/test-inttypes.c: New file.
4997
4998         * modules/fcntl-tests: New file.
4999         * tests/test-fcntl.c: New file.
5000
5001         * modules/byteswap-tests: New file.
5002         * tests/test-byteswap.c: New file.
5003
5004         * modules/arpa_inet-tests: New file.
5005         * tests/test-arpa_inet.c: New file.
5006
5007 2007-02-17  Bruno Haible  <bruno@clisp.org>
5008
5009         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
5010         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
5011         if the corresponding module is not enabled. Emit link warnings if
5012         the function is used nevertheless.
5013         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
5014         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
5015         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
5016         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
5017         * modules/inttypes (Depends-on): Add link-warning.
5018         (Makefile.am): Copy the contents of build-aux/link-warning.h into
5019         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
5020         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
5021         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
5022         * modules/imaxdiv (configure.ac): Likewise.
5023         * modules/strtoimax (configure.ac): Likewise.
5024         * modules/strtoumax (configure.ac): Likewise.
5025
5026 2007-02-17  Bruno Haible  <bruno@clisp.org>
5027
5028         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
5029         gl_STRING_MODULE_INDICATOR_DEFAULTS.
5030         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
5031         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
5032
5033 2007-02-17  Bruno Haible  <bruno@clisp.org>
5034
5035         * modules/link-warning: New file.
5036         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
5037         * lib/string_.h (GL_LINK_WARNING): Remove definition.
5038         * modules/string (Depends-on): Add link-warning.
5039         (Makefile.am): Copy the contents of build-aux/link-warning.h into
5040         string.h.
5041         * MODULES.html.sh (Support for building libraries and executables): Add
5042         link-warning.
5043
5044 2007-02-17  Bruno Haible  <bruno@clisp.org>
5045
5046         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
5047         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
5048         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
5049         long lines.
5050
5051 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
5052             Bruno Haible  <bruno@clisp.org>
5053
5054         * modules/tmpfile: New file.
5055         * lib/tmpfile.c: New file.
5056         * m4/tmpfile.m4: New file.
5057         * MODULES.html.sh (func_all_modules): New section "Input/output".
5058
5059 2007-02-15  Bruno Haible  <bruno@clisp.org>
5060
5061         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
5062         (supports_delete_on_close): New function.
5063         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
5064
5065 2007-02-14  Bruno Haible  <bruno@clisp.org>
5066
5067         * modules/mbspcasecmp-tests: New file.
5068         * tests/test-mbspcasecmp.sh: New file.
5069         * tests/test-mbspcasecmp.c: New file.
5070
5071         New module mbspcasecmp.
5072         * modules/mbspcasecmp: New file.
5073         * lib/mbspcasecmp.c: New file.
5074         * lib/string_.h (strncasecmp): Change warning message.
5075         (mbspcasecmp): New declaration.
5076         * m4/mbspcasecmp.m4: New file.
5077         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
5078         GNULIB_MBSPCASECMP.
5079         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
5080         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
5081
5082 2007-02-14  Bruno Haible  <bruno@clisp.org>
5083
5084         * modules/mbsncasecmp-tests: New file.
5085         * tests/test-mbsncasecmp.sh: New file.
5086         * tests/test-mbsncasecmp.c: New file.
5087
5088         New module mbsncasecmp.
5089         * modules/mbsncasecmp: New file.
5090         * lib/mbsncasecmp.c: New file.
5091         * lib/string_.h (mbsncasecmp): New declaration.
5092         * m4/mbsncasecmp.m4: New file.
5093         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
5094         GNULIB_MBSNCASECMP.
5095         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
5096         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
5097
5098 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
5099
5100         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
5101         Verify that it doesn't overlap with our flags.
5102         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
5103         do not have the desired effect in multibyte locales; instead, use
5104         mbscasecmp.
5105         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
5106         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
5107         we don't require GNU fnmatch ourselves (if our users require it, they
5108         should do so explicitly).
5109
5110         Fix regex code so it doesn't rely on strcasecmp.
5111         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
5112         Otherwise, include gnulib's langinfo.h.
5113         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
5114         undesirable behavior in non-C locales.  Instead, rely on localecharset.
5115         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
5116         * modules/regex (FILES): Remove m4/codeset.m4.
5117         (Depends-on): Add localcharset.  Remove strcase.
5118
5119 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5120
5121         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
5122         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
5123
5124 2007-02-13  Bruno Haible  <bruno@clisp.org>
5125
5126         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
5127         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
5128
5129 2007-02-12  Bruno Haible  <bruno@clisp.org>
5130
5131         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
5132         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
5133         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
5134         time warning rather than a link error.
5135
5136 2007-02-12  Bruno Haible  <bruno@clisp.org>
5137
5138         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
5139         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
5140         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
5141
5142 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
5143
5144         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
5145         args, not 2.
5146
5147 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
5148
5149         New module 'time', so that apps can include <time.h> as per
5150         POSIX and GNU instead of separate include files like time_r.h
5151         and timegm.h.  This implementation tries out a simpler approach
5152         for replacing decls in standard include files (as compared to
5153         the string module), somewhat as an experiment.
5154
5155         * config/srclist.txt: Comment out mktime.c for now.
5156         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
5157         since it doesn't apply any more.  Use generic wording instead.
5158         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
5159         'time'.
5160         * lib/time_.h, m4/time_h.m4, modules/time: New files.
5161         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
5162         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
5163         Don't include <sys/types.h>; no longer needed since we assume C89.
5164         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
5165         * lib/strftime.c: Likewise.
5166         * lib/time_r.c: Likewise.
5167         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
5168         * lib/nanosleep.c: Include <time.h> first, to check interface.
5169         * lib/strptime.c: Likewise.
5170         * lib/time_r.c: Likewise.
5171         * lib/timegm.c: Likewise.
5172         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
5173         needed.
5174         * lib/timegm.c: Don't include timegm.h; no longer needed.
5175         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
5176         time.h now handles any problems in that area.
5177         (struct timespec, nanosleep): Remove; time.h now arranges for these.
5178         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
5179         that time.h defines struct timespec.
5180         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
5181         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
5182         handles that.
5183         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
5184         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
5185         needed.  Set REPLACE_LOCALTIME.
5186         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
5187         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
5188         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
5189         nanosleep; time_h.m4 now does that.  Don't require
5190         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
5191         module handles this now.
5192         * modules/getdate (Depends-on): Remove timespec.  Add time.
5193         * modules/nanosleep (Depends-on): Likewise.
5194         * modules/stat-time (Depends-on): Likewise.
5195         * modules/nanosleep (Include): Include time.h, not timespec.h.
5196         * modules/strptime (Files): Remove lib/strptime.h.
5197         (Depends-on): Add extensions, time.
5198         (Include): Include time.h, not strptime.h.
5199         * modules/time_r (Files): Remove lib/time_r.h.
5200         (Depends-on): Add time.
5201         (Include): Include time.h, not time_r.h.
5202         * modules/timegm: Likewise.
5203         * modules/timespec (Description): Now does timespec-related decls
5204         of our own, instead of struct timespec itself.
5205         (Depends-on): Add time; remove extensions.
5206         (Maintainer): Add self.
5207         * modules/utimecmp (Depends-on): Add time; remove timespec.
5208         * modules/utimens (Depends-on): Likewise.
5209         * modules/xnanosleep (Depends-on): Likewise.
5210
5211 2007-02-11  Bruno Haible  <bruno@clisp.org>
5212
5213         * lib/c-strstr.c: Include allocsa.h.
5214         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
5215         * lib/c-strcasestr.c: Include allocsa.h.
5216         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
5217         * lib/strcasestr.c: Include allocsa.h.
5218         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
5219         * lib/mbsstr.c: Include allocsa.h.
5220         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
5221         allocsa/freesa instead of malloc/free.
5222         * lib/mbscasestr.c: Include allocsa.h.
5223         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
5224         allocsa/freesa instead of malloc/free.
5225         * modules/c-strstr (Depends-on): Add allocsa.
5226         * modules/c-strcasestr (Depends-on): Likewise.
5227         * modules/strcasestr (Depends-on): Likewise.
5228         * modules/mbsstr (Depends-on): Likewise.
5229         * modules/mbscasestr (Depends-on): Likewise.
5230
5231 2007-02-11  Bruno Haible  <bruno@clisp.org>
5232
5233         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
5234
5235         * modules/mbsspn-tests: New file.
5236         * tests/test-mbsspn.sh: New file.
5237         * tests/test-mbsspn.c: New file.
5238
5239 2007-02-11  Bruno Haible  <bruno@clisp.org>
5240
5241         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
5242
5243         * modules/mbspbrk-tests: New file.
5244         * tests/test-mbspbrk.sh: New file.
5245         * tests/test-mbspbrk.c: New file.
5246
5247 2007-02-11  Bruno Haible  <bruno@clisp.org>
5248
5249         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
5250         unneeded cast.
5251
5252         * modules/mbscspn-tests: New file.
5253         * tests/test-mbscspn.sh: New file.
5254         * tests/test-mbscspn.c: New file.
5255
5256 2007-02-11  Bruno Haible  <bruno@clisp.org>
5257
5258         * modules/mbscasecmp-tests: New file.
5259         * tests/test-mbscasecmp.sh: New file.
5260         * tests/test-mbscasecmp.c: New file.
5261
5262 2007-02-11  Bruno Haible  <bruno@clisp.org>
5263
5264         Ensure O(n) worst-case complexity of mbscasestr.
5265         * lib/mbscasestr.c: Include stdbool.h.
5266         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
5267         functions.
5268         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
5269         the bookkeeping indicates that it's worth it.
5270         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
5271
5272         * modules/mbscasestr-tests: New file.
5273         * tests/test-mbscasestr1.c: New file.
5274         * tests/test-mbscasestr2.sh: New file.
5275         * tests/test-mbscasestr2.c: New file.
5276         * tests/test-mbscasestr3.sh: New file.
5277         * tests/test-mbscasestr3.c: New file.
5278         * tests/test-mbscasestr4.sh: New file.
5279         * tests/test-mbscasestr4.c: New file.
5280         * m4/locale-tr.m4: New file.
5281
5282 2007-02-11  Bruno Haible  <bruno@clisp.org>
5283
5284         Ensure O(n) worst-case complexity of mbsstr.
5285         * lib/mbsstr.c: Include stdbool.h.
5286         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
5287         functions.
5288         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
5289         bookkeeping indicates that it's worth it.
5290         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
5291
5292         * modules/mbsstr-tests: New file.
5293         * tests/test-mbsstr1.c: New file.
5294         * tests/test-mbsstr2.sh: New file.
5295         * tests/test-mbsstr2.c: New file.
5296         * tests/test-mbsstr3.sh: New file.
5297         * tests/test-mbsstr3.c: New file.
5298         * m4/locale-fr.m4: New file.
5299
5300 2007-02-11  Bruno Haible  <bruno@clisp.org>
5301
5302         * lib/mbsrchr.c (mbsrchr): Fix bug.
5303
5304         * modules/mbsrchr-tests: New file.
5305         * tests/test-mbsrchr.sh: New file.
5306         * tests/test-mbsrchr.c: New file.
5307
5308 2007-02-11  Bruno Haible  <bruno@clisp.org>
5309
5310         * lib/mbschr.c (mbschr): Fix bug.
5311
5312         * modules/mbschr-tests: New file.
5313         * tests/test-mbschr.sh: New file.
5314         * tests/test-mbschr.c: New file.
5315         * m4/locale-zh.m4: New file.
5316
5317 2007-02-11  Bruno Haible  <bruno@clisp.org>
5318
5319         Support for copying multibyte string iterators.
5320         * lib/mbiter.h: Include <string.h>.
5321         (mbiter_multi_copy): New function.
5322         (mbi_copy): New macro.
5323         * lib/mbuiter.h: Include <string.h>.
5324         (mbuiter_multi_copy): New function.
5325         (mbui_copy): New macro.
5326
5327 2007-02-11  Bruno Haible  <bruno@clisp.org>
5328
5329         New module mbslen.
5330         * modules/mbslen: New file.
5331         * lib/mbslen.c: New file.
5332         * lib/string_.h (mbslen): New declaration.
5333         * m4/mbslen.m4: New file.
5334         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
5335         GNULIB_MBSLEN.
5336         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
5337         * MODULES.html.sh (Internationalization functions): Add mbslen.
5338
5339 2007-02-11  Bruno Haible  <bruno@clisp.org>
5340
5341         Ensure O(n) worst-case complexity of strcasestr substitute.
5342         * lib/strcasestr.c: Include stdbool.h.
5343         (knuth_morris_pratt): New function.
5344         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
5345         bookkeeping indicates that it's worth it.
5346         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
5347
5348         * modules/strcasestr-tests: New file.
5349         * tests/test-strcasestr.c: New file.
5350
5351 2007-02-11  Bruno Haible  <bruno@clisp.org>
5352
5353         Ensure O(n) worst-case complexity of c_strcasestr.
5354         * lib/c-strcasestr.c: Include stdbool.h, string.h.
5355         (knuth_morris_pratt): New function.
5356         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
5357         the bookkeeping indicates that it's worth it.
5358         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
5359
5360         * modules/c-strcasestr-tests: New file.
5361         * tests/test-c-strcasestr.c: New file.
5362
5363 2007-02-11  Bruno Haible  <bruno@clisp.org>
5364
5365         Ensure O(n) worst-case complexity of c_strstr.
5366         * lib/c-strstr.c: Include stdbool.h, string.h.
5367         (knuth_morris_pratt): New function.
5368         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
5369         bookkeeping indicates that it's worth it.
5370         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
5371
5372         * lib/c-strstr.c: Complete rewrite for maintainability.
5373
5374         * modules/c-strstr-tests: New file.
5375         * tests/test-c-strstr.c: New file.
5376
5377 2007-02-11  Bruno Haible  <bruno@clisp.org>
5378
5379         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
5380         5.2.1 and earlier, whereby \055 was treated just like the range
5381         delimiter '-'.
5382         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
5383
5384 2007-02-08  Bruno Haible  <bruno@clisp.org>
5385
5386         * modules/regex (Depends-on): Add stdbool.
5387         Reported by Dalibor Topic <robilad@kaffe.org>.
5388
5389 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
5390
5391         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
5392         Prefer returning from main to exiting from it.
5393         Remove unnecessary parens after sizeof.
5394
5395 2007-02-05  Bruno Haible  <bruno@clisp.org>
5396
5397         New module mbssep.
5398         * modules/mbssep: New file.
5399         * lib/mbssep.c: New file.
5400         * lib/string_.h (strsep): Add a conditional link warning.
5401         (mbssep): New declaration.
5402         * m4/mbssep.m4: New file.
5403         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
5404         GNULIB_MBSSEP.
5405         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
5406         * MODULES.html.sh (Internationalization functions): Add mbssep.
5407
5408 2007-02-05  Bruno Haible  <bruno@clisp.org>
5409
5410         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
5411         Optimize search in case of 1 delimiter.
5412
5413 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
5414
5415         * lib/acl.h: Include sys/types.h before sys/acl.h.
5416
5417 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
5418
5419         Merge upstream fix for glibc bugzilla #3957:
5420
5421         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
5422
5423         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
5424         bit for RE_HAT_LISTS_NOT_NEWLINE.
5425         (build_charclass_op): Remove bogus comment.
5426
5427 2007-02-05  Simon Josefsson  <simon@josefsson.org>
5428
5429         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
5430
5431 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
5432
5433         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
5434         * lib/memmem.c [!defined _LIBC]: Include config.h.
5435
5436 2007-02-04  Bruno Haible  <bruno@clisp.org>
5437
5438         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
5439         warning message.
5440
5441 2007-02-04  Bruno Haible  <bruno@clisp.org>
5442
5443         New module mbstok_r.
5444         * modules/mbstok_r: New file.
5445         * lib/mbstok_r.c: New file.
5446         * lib/string_.h (strtok_r): Change argument names to match the
5447         comments. Add a conditional link warning.
5448         (mbstok_r): New declaration.
5449         * m4/mbstok_r.m4: New file.
5450         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
5451         GNULIB_MBSTOK_R.
5452         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
5453         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
5454
5455 2007-02-04  Bruno Haible  <bruno@clisp.org>
5456
5457         New module mbsspn.
5458         * modules/mbsspn: New file.
5459         * lib/mbsspn.c: New file.
5460         * lib/string_.h (strspn): Add a conditional link warning.
5461         (mbsspn): New declaration.
5462         * m4/mbsspn.m4: New file.
5463         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
5464         GNULIB_MBSSPN.
5465         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
5466         * MODULES.html.sh (Internationalization functions): Add mbsspn.
5467
5468 2007-02-04  Bruno Haible  <bruno@clisp.org>
5469
5470         New module mbspbrk.
5471         * modules/mbspbrk: New file.
5472         * lib/mbspbrk.c: New file.
5473         * lib/string_.h (strpbrk): Add a conditional link warning.
5474         (mbspbrk): New declaration.
5475         * m4/mbspbrk.m4: New file.
5476         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
5477         GNULIB_MBSPBRK.
5478         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
5479         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
5480
5481 2007-02-04  Bruno Haible  <bruno@clisp.org>
5482
5483         New module mbscspn.
5484         * modules/mbscspn: New file.
5485         * lib/mbscspn.c: New file.
5486         * lib/string_.h (strcspn): Add a conditional link warning.
5487         (mbscspn): New declaration.
5488         * m4/mbscspn.m4: New file.
5489         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
5490         GNULIB_MBSCSPN.
5491         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
5492         * MODULES.html.sh (Internationalization functions): Add mbscspn.
5493
5494 2007-02-04  Bruno Haible  <bruno@clisp.org>
5495
5496         New module mbscasestr, reduced goal of strcasestr.
5497         * modules/mbscasestr: New file.
5498         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
5499         (mbscasestr): Renamed from strcasestr.
5500         * lib/strcasestr.c: Don't include mbuiter.h.
5501         (strcasestr): Remove support for multibyte locales.
5502         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
5503         Change the conditional link warning.
5504         (mbscasestr): New declaration.
5505         * m4/mbscasestr.m4: New file.
5506         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
5507         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
5508         REPLACE_STRCASESTR.
5509         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
5510         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
5511         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
5512         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
5513         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
5514         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
5515         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
5516         (Depends-on): Remove mbuiter.
5517         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
5518
5519 2007-02-04  Bruno Haible  <bruno@clisp.org>
5520
5521         Simplify handling of strncasecmp.
5522         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
5523         the conditional link warning.
5524         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
5525         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
5526         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
5527         * modules/strcase (configure.ac): Don't invoke
5528         gl_STRING_MODULE_INDICATOR.
5529         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
5530
5531 2007-02-04  Bruno Haible  <bruno@clisp.org>
5532
5533         New module mbscasecmp, reduced goal of strcasecmp.
5534         * modules/mbscasecmp: New file.
5535         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
5536         (mbscasecmp): Renamed from strcasecmp.
5537         * lib/strcasecmp.c: Don't include mbuiter.h.
5538         (strcasecmp): Remove support for multibyte locales.
5539         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
5540         Change the conditional link warning.
5541         (mbscasecmp): New declaration.
5542         * m4/mbscasecmp.m4: New file.
5543         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
5544         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
5545         REPLACE_STRCASECMP.
5546         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
5547         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
5548         GNULIB_MBSCASECMP.
5549         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
5550         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
5551         * modules/strcase (Files): Remove m4/mbrtowc.m4.
5552         (Depends-on): Remove mbuiter.
5553         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
5554
5555 2007-02-04  Bruno Haible  <bruno@clisp.org>
5556
5557         New module mbsstr. Remove module strstr.
5558         * modules/mbsstr: New file.
5559         * modules/strstr: Remove file.
5560         * lib/mbsstr.c: Renamed from lib/strstr.c.
5561         (mbsstr): Renamed from strstr.
5562         * lib/string_.h (strstr): Remove declaration. Change the conditional
5563         link warning.
5564         (mbsstr): New declaration.
5565         * m4/mbsstr.m4: New file.
5566         * m4/strstr.m4: Remove file.
5567         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
5568         REPLACE_STRSTR.
5569         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
5570         Don't initialize GNULIB_STRSTR.
5571         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
5572         substitute GNULIB_STRSTR and REPLACE_STRSTR.
5573         * MODULES.html.sh (Internationalization functions): Add mbsstr.
5574         (Support for systems lacking ANSI C 89): Remove strstr.
5575
5576 2007-02-04  Bruno Haible  <bruno@clisp.org>
5577
5578         New module mbsrchr.
5579         * modules/mbsrchr: New file.
5580         * lib/mbsrchr.c: New file.
5581         * lib/string_.h (strrchr): Add a conditional link warning.
5582         (mbsrchr): New declaration.
5583         * m4/mbsrchr.m4: New file.
5584         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
5585         GNULIB_MBSRCHR.
5586         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
5587         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
5588
5589 2007-02-04  Bruno Haible  <bruno@clisp.org>
5590
5591         New module mbschr.
5592         * modules/mbschr: New file.
5593         * lib/mbschr.c: New file.
5594         * lib/string_.h (strchr): Add a conditional link warning.
5595         (mbschr): New declaration.
5596         * m4/mbschr.m4: New file.
5597         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
5598         GNULIB_MBSCHR.
5599         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
5600         * MODULES.html.sh (Internationalization functions): Add mbschr.
5601
5602 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
5603
5604         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
5605
5606         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
5607
5608 2007-02-04  Bruno Haible  <bruno@clisp.org>
5609
5610         New module description section 'configure.ac-early'.
5611         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
5612         (func_get_autoconf_early_snippet): New function.
5613         (func_import, func_create_testdir): Use it. Remove special cases for
5614         modules 'extensions' and 'lock'.
5615         * modules/extensions (configure.ac-early): Require
5616         gl_USE_SYSTEM_EXTENSIONS.
5617         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
5618
5619 2007-02-04  Bruno Haible  <bruno@clisp.org>
5620
5621         Make use of gcj-4.3's -fsource and -ftarget option.
5622         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
5623         and if so try the options -fsource and -ftarget.
5624         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
5625         source_version, ftarget_option, target_version arguments.
5626         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
5627         (is_envjavac_oldgcj_14_14_usable): Renamed from
5628         is_envjavac_gcj_14_14_usable.
5629         (is_envjavac_oldgcj_14_13_usable): Renamed from
5630         is_envjavac_gcj_14_13_usable.
5631         (is_gcj_present): Update.
5632         (is_gcj_43, is_gcj43_usable): New functions.
5633         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
5634         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
5635         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
5636         try the options -fsource and -ftarget.
5637
5638 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
5639
5640         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
5641         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
5642         larger value.
5643
5644 2007-02-03  Jim Meyering  <jim@meyering.net>
5645
5646         Give tools a better chance to allocate space for very large buffers.
5647         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
5648
5649         Make pwd and readlink work also when run with an unreadable parent dir
5650         on systems with openat support.
5651         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
5652         provided getcwd function, even when we have openat support.
5653         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
5654
5655 2007-02-02  Bruno Haible  <bruno@clisp.org>
5656
5657         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
5658         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
5659         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
5660         portability problems if one of these functions is only used on specific
5661         platforms.
5662         Reported by Paul Eggert.
5663
5664 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
5665
5666         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
5667         is causing more trouble than it's curing.
5668         * lib/regex_internal.h (__mempcpy): Remove.
5669         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
5670         (and make the code a tad smaller to boot).
5671         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
5672
5673 2007-02-02  Jim Meyering  <jim@meyering.net>
5674
5675         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
5676         section, not in the Makefile.am: one.
5677
5678 2007-02-02  Eric Blake  <ebb9@byu.net>
5679
5680         * lib/strchrnul.c: Always include config.h first.
5681
5682         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
5683         gnulib strstr is not necessary here.
5684
5685 2007-02-02  Simon Josefsson  <simon@josefsson.org>
5686
5687         * m4/socklen.m4: Fix typo.
5688
5689 2007-02-02  Eric Blake  <ebb9@byu.net>
5690
5691         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
5692         * modules/netinet_in (Makefile.am): Likewise.
5693
5694 2007-02-01  Bruno Haible  <bruno@clisp.org>
5695
5696         * lib/string_.h (GL_LINK_WARNING): New macro.
5697         (strcasecmp, strstr, strcasestr): If provided by the system,
5698         conditionally define as a macro that leads to a warning instead of to
5699         an error.
5700         (strncasecmp): Conditionally define as a macro that leads to a warning.
5701
5702 2007-02-01  Karl Berry  <karl@gnu.org>
5703
5704         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
5705
5706 2007-02-01  Bruno Haible  <bruno@clisp.org>
5707
5708         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
5709         renamings.
5710
5711 2007-02-01  Eric Blake  <ebb9@byu.net>
5712
5713         * modules/regex (Depends-on): Revert dependence on mempcpy.
5714         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
5715         module's definition of mempcpy.
5716         Reported by Paul Eggert.
5717
5718 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
5719
5720         * lib/string_.h: If the gnulib module XYZ is not present, undefine
5721         the symbol XYZ before redefining it.  This fixes a problem with
5722         programs that don't use XYZ, when compiled on systems that define
5723         XYZ to something else.
5724
5725 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
5726
5727         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
5728         occurs when "mkdir -m foo" creates a setgid directory that is (1)
5729         writeable to group or other and (2) is intended to have a special
5730         mode bit that is set or cleared.  In such a case, the directory
5731         should be neither group- nor other-writeable until the special
5732         mode bits are right.
5733
5734 2007-01-31  Eric Blake  <ebb9@byu.net>
5735
5736         * modules/mountlist (Depends-on): Add strstr.
5737
5738         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
5739         bug.
5740         * modules/string (Makefile.am): Remove redundant replacement.
5741         * modules/regex (Depends-on): Add mempcpy.
5742
5743 2007-01-31  Bruno Haible  <bruno@clisp.org>
5744
5745         New module description field 'Link'.
5746         * gnulib-tool (func_usage): Document --extract-link-directive.
5747         (sed_extract_prog): Recognize 'Link' directive.
5748         (func_get_link_directive): New function.
5749         (func_import): Show summary of link directives.
5750         Handle --extract-link-directive option.
5751         * modules/acl (Link): New section.
5752         * modules/clock-time (Link): New section.
5753         * modules/euidaccess (Link): New section.
5754         * modules/gettext (Link): New section.
5755         * modules/iconv (Link): New section.
5756         * modules/lock (Link): New section.
5757         * modules/nanosleep (Link): New section.
5758         * modules/readline (Link): New section.
5759
5760 2007-01-27  Bruno Haible  <bruno@clisp.org>
5761
5762         Enforce the use of gnulib modules for unportable <string.h> functions.
5763         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
5764         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
5765         (gl_HEADER_STRING_H_BODY): Require it.
5766         * lib/string_.h: If the gnulib module XYZ is not present, redefine
5767         the symbol XYZ to one that gives a link error.
5768         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
5769         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
5770         * modules/mempcpy (configure.ac): Likewise.
5771         * modules/memrchr (configure.ac): Likewise.
5772         * modules/stpcpy (configure.ac): Likewise.
5773         * modules/stpncpy (configure.ac): Likewise.
5774         * modules/strcase (configure.ac): Likewise.
5775         * modules/strcasestr (configure.ac): Likewise.
5776         * modules/strchrnul (configure.ac): Likewise.
5777         * modules/strdup (configure.ac): Likewise.
5778         * modules/strndup (configure.ac): Likewise.
5779         * modules/strnlen (configure.ac): Likewise.
5780         * modules/strpbrk (configure.ac): Likewise.
5781         * modules/strsep (configure.ac): Likewise.
5782         * modules/strstr (configure.ac): Likewise.
5783         * modules/strtok_r (configure.ac): Likewise.
5784
5785 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
5786
5787         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
5788
5789 2007-01-30  Jim Meyering  <jim@meyering.net>
5790
5791         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
5792
5793 2007-01-29  Bruno Haible  <bruno@clisp.org>
5794
5795         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
5796         * lib/execute.c: Likewise.
5797         * lib/pipe.c: Likewise.
5798         * lib/printf-args.h: Likewise.
5799         * lib/printf-args.c: Likewise.
5800         * lib/printf-parse.c: Likewise.
5801         * lib/vasnprintf.c: Likewise.
5802
5803 2007-01-29  Eric Blake  <ebb9@byu.net>
5804
5805         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
5806         declaration.
5807
5808 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
5809
5810         * lib/strptime.h (strptime): Use 'restrict' for args where
5811         POSIX requires this.
5812         * lib/strptime.c (strptime): Likewise.
5813         Change license notice from LGPL to GPL, since gnulib-tool will
5814         change this as needed.
5815         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
5816         defined.
5817         Include "strptime.h" first, to check interface.
5818         Do not #undef _LIBC and _NL_CURRENT.
5819         Do not include <stdlib.h>; no longer needed.
5820         Include "time_r.h" and declare ptime_locale_status
5821         only if _LIBC is not defined.
5822         (__P): Remove unused macro.
5823         (match_string): Bring back glibc version, but use it only if _LIBC
5824         is defined.
5825         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
5826         Remove unnecessary assertion and abort() call.
5827         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
5828         * m4/strptime.m4: Fix serial number comment.
5829         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
5830         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
5831         (Depends-on): Add time_r.
5832
5833 2007-01-29  Bruno Haible  <bruno@clisp.org>
5834
5835         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
5836         strptime.
5837         * modules/strptime (Depends-on): Add stdbool.
5838         * lib/strptime.h: Include <time.h> always. Add comments.
5839
5840 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
5841
5842         * modules/strptime: New file.
5843         * lib/strptime.h: New file.
5844         * lib/strptime.c: New file.
5845         * m4/strptime.m4: New file.
5846
5847 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
5848
5849         * MODULES.html.sh: New module mpsort.
5850         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
5851
5852         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
5853         a circularity problem with HP-UX ia64 reported by Bob Proulx in
5854         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
5855         All uses changed.
5856         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
5857         All uses changed.
5858         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
5859         to _Restrict_.
5860         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
5861         the parameter matches the prototype.
5862
5863 2007-01-28  Jim Meyering  <jim@meyering.net>
5864
5865         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
5866         sys/time.h here, reverting that part of the previous patch:
5867         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
5868
5869 2007-01-28  Bruno Haible  <bruno@clisp.org>
5870
5871         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
5872         value of $(SYS_TIME_H).
5873         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
5874         remove it conditionally, too. [added by Jim Meyering]
5875         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
5876         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
5877         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
5878         GETTIMEOFDAY_REPLACEMENT to 1.
5879
5880 2007-01-28  Bruno Haible  <bruno@clisp.org>
5881
5882         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
5883         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
5884         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
5885         Set UNISTD_H instead of UNISTD_H2.
5886         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
5887
5888 2007-01-28  Bruno Haible  <bruno@clisp.org>
5889
5890         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
5891         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
5892
5893 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5894
5895         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
5896         (func_create_testdir): Ensure C locale for `grep' and `tr'
5897         character ranges.
5898         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
5899         ACLOCAL_AMFLAGS parsing state machine.
5900
5901 2007-01-27  Bruno Haible  <bruno@clisp.org>
5902
5903         * modules/unistr/base: Update.
5904
5905 2007-01-27  Bruno Haible  <bruno@clisp.org>
5906
5907         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
5908         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
5909         * modules/unistr/u32-mbtouc-unsafe: Renamed from
5910         modules/unistr/u32-mbtouc.
5911         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
5912         * lib/unistr.h: Update.
5913         * lib/linebreak.c: Update.
5914         * modules/unistr/u32-mbtouc: Renamed from
5915         modules/unistr/u32-mbtouc-safe.
5916         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
5917         * lib/unistr.h: Update.
5918         * lib/unistr/u32-to-u8.c: Update.
5919         * lib/unistr/u32-to-u16.c: Update.
5920
5921 2007-01-27  Bruno Haible  <bruno@clisp.org>
5922
5923         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
5924         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
5925         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
5926         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
5927         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
5928         * modules/unistr/u16-mbtouc-unsafe: Renamed from
5929         modules/unistr/u16-mbtouc.
5930         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
5931         * lib/unistr.h: Update.
5932         * lib/linebreak.c: Update.
5933         * modules/linebreak: Update.
5934         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
5935         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
5936         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
5937         * modules/unistr/u16-mbtouc: Renamed from
5938         modules/unistr/u16-mbtouc-safe.
5939         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
5940         * lib/unistr.h: Update.
5941         * lib/unistr/u16-to-u8.c: Update.
5942         * modules/unistr/u16-to-u8: Update.
5943         * lib/unistr/u16-to-u32.c: Update.
5944         * modules/unistr/u16-to-u32: Update.
5945
5946 2007-01-27  Bruno Haible  <bruno@clisp.org>
5947
5948         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
5949         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
5950         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
5951         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
5952         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
5953         * modules/unistr/u8-mbtouc-unsafe: Renamed from
5954         modules/unistr/u8-mbtouc.
5955         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
5956         * lib/unistr.h: Update.
5957         * lib/striconveh.c: Update.
5958         * modules/striconveh: Update.
5959         * lib/linebreak.c: Update.
5960         * modules/linebreak: Update.
5961         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
5962         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
5963         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
5964         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
5965         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
5966         * lib/unistr.h: Update.
5967         * lib/striconveh.c: Update.
5968         * modules/striconveh: Update.
5969         * lib/unistr/u8-to-u16.c: Update.
5970         * modules/unistr/u8-to-u16: Update.
5971         * lib/unistr/u8-to-u32.c: Update.
5972         * modules/unistr/u8-to-u32: Update.
5973
5974 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5975
5976         Sync from Libtool.
5977         * lib/argz.c: Do not include strings.h nor memory.h, include
5978         string.h unconditionally.  Patch by Simon Josefsson.
5979
5980 2007-01-27  Bruno Haible  <bruno@clisp.org>
5981
5982         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
5983         from gl_HEADER_STRING_H_BODY.
5984         (gl_HEADER_STRING_H_BODY): Require it.
5985         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
5986         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
5987         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
5988         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
5989         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
5990         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
5991         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
5992         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
5993         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
5994         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
5995         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
5996         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
5997         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
5998         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
5999         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
6000
6001 2007-01-27  Bruno Haible  <bruno@clisp.org>
6002
6003         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
6004         check_PROGRAMS into noinst_PROGRAMS.
6005         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
6006         check_PROGRAMS in this case.
6007         (func_import): Set for_test to false.
6008         (func_create_testdir): Set for_test to true.
6009
6010 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
6011             Bruno Haible  <bruno@clisp.org>
6012
6013         * modules/strcasestr (Files): Remove lib/strcasestr.h.
6014         (Depends-on): Add string.
6015         (Includes): Use <string.h> instead of strcasestr.h.
6016         * modules/string (Makefile.am): Also substitute the value of
6017         REPLACE_STRCASESTR.
6018         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
6019         assume strcasestr is declared in <string.h> not <strings.h>. Also
6020         set REPLACE_STRCASESTR.
6021         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
6022         REPLACE_STRCASESTR.
6023         * lib/strcasestr.h: Remove file.
6024         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
6025         * lib/string_.h (strcasestr): New declaration.
6026
6027 2007-01-27  Bruno Haible  <bruno@clisp.org>
6028
6029         * lib/string_.h: Use 'extern'.
6030
6031 2007-01-27  Jim Meyering  <jim@meyering.net>
6032
6033         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
6034         of set-but-not-used local, "q".
6035
6036         * lib/mempcpy.c: Include <config.h> before <string.h>.
6037         This fixes a compilation error on HP-UX, due to the system's
6038         "restrict"-using mempcpy prototype.
6039
6040 2007-01-26  Bruno Haible  <bruno@clisp.org>
6041
6042         Small optimization.
6043         * lib/javacomp.c: Include c-strstr.h.
6044          (is_envjavac_gcj): Use c_strstr instead of strstr.
6045         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
6046
6047 2007-01-26  Bruno Haible  <bruno@clisp.org>
6048
6049         * MODULES.html.sh (Unicode string functions): Add the new modules.
6050
6051         * modules/uniconv/u32-strconv-to-locale: New file.
6052         * lib/uniconv/u32-strconv-to-locale.c: New file.
6053
6054         * modules/uniconv/u16-strconv-to-locale: New file.
6055         * lib/uniconv/u16-strconv-to-locale.c: New file.
6056
6057         * modules/uniconv/u8-strconv-to-locale: New file.
6058         * lib/uniconv/u8-strconv-to-locale.c: New file.
6059
6060         * modules/uniconv/u32-strconv-from-locale: New file.
6061         * lib/uniconv/u32-strconv-from-locale.c: New file.
6062
6063         * modules/uniconv/u16-strconv-from-locale: New file.
6064         * lib/uniconv/u16-strconv-from-locale.c: New file.
6065
6066         * modules/uniconv/u8-strconv-from-locale: New file.
6067         * lib/uniconv/u8-strconv-from-locale.c: New file.
6068
6069         * modules/uniconv/u32-strconv-to-enc: New file.
6070         * lib/uniconv/u32-strconv-to-enc.c: New file.
6071         * modules/uniconv/u32-strconv-to-enc-tests: New file.
6072         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
6073
6074         * modules/uniconv/u16-strconv-to-enc: New file.
6075         * lib/uniconv/u16-strconv-to-enc.c: New file.
6076         * lib/uniconv/u-strconv-to-enc.h: New file.
6077         * modules/uniconv/u16-strconv-to-enc-tests: New file.
6078         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
6079
6080         * modules/uniconv/u8-strconv-to-enc: New file.
6081         * lib/uniconv/u8-strconv-to-enc.c: New file.
6082         * modules/uniconv/u8-strconv-to-enc-tests: New file.
6083         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
6084
6085         * modules/uniconv/u32-strconv-from-enc: New file.
6086         * lib/uniconv/u32-strconv-from-enc.c: New file.
6087         * modules/uniconv/u32-strconv-from-enc-tests: New file.
6088         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
6089
6090         * modules/uniconv/u16-strconv-from-enc: New file.
6091         * lib/uniconv/u16-strconv-from-enc.c: New file.
6092         * modules/uniconv/u16-strconv-from-enc-tests: New file.
6093         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
6094
6095         * modules/uniconv/u8-strconv-from-enc: New file.
6096         * lib/uniconv/u8-strconv-from-enc.c: New file.
6097         * lib/uniconv/u-strconv-from-enc.h: New file.
6098         * modules/uniconv/u8-strconv-from-enc-tests: New file.
6099         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
6100
6101         * modules/uniconv/u32-conv-from-enc: New file.
6102         * lib/uniconv/u32-conv-from-enc.c: New file.
6103         * modules/uniconv/u32-conv-from-enc-tests: New file.
6104         * tests/uniconv/test-u32-conv-from-enc.c: New file.
6105
6106         * modules/uniconv/u16-conv-from-enc: New file.
6107         * lib/uniconv/u16-conv-from-enc.c: New file.
6108         * lib/uniconv/u-conv-from-enc.h: New file.
6109         * modules/uniconv/u16-conv-from-enc-tests: New file.
6110         * tests/uniconv/test-u16-conv-from-enc.c: New file.
6111
6112         * modules/uniconv/u8-conv-from-enc: New file.
6113         * lib/uniconv/u8-conv-from-enc.c: New file.
6114         * modules/uniconv/u8-conv-from-enc-tests: New file.
6115         * tests/uniconv/test-u8-conv-from-enc.c: New file.
6116
6117         * modules/uniconv/base: New file.
6118         * lib/uniconv.h: New file.
6119
6120 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
6121
6122         * doc/gnulib-tool.texi (Initial import): Update to match current
6123         behavior with strdup module.
6124         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
6125         * lib/memmem.h: Remove; all uses removed.  This is now done
6126         by <string.h>.
6127         * lib/mempcpy.h: Likewise.
6128         * lib/memrchr.h: Likewise.
6129         * lib/stpcpy.h: Likewise.
6130         * lib/stpncpy.h: Likewise.
6131         * lib/strcase.h: Likewise.
6132         * lib/strchrnul.h: Likewise.
6133         * lib/strdup.h: Likewise.
6134         * lib/strndup.h: Likewise.
6135         * lib/strnlen.h: Likewise.
6136         * lib/strpbrk.h: Likewise.
6137         * lib/strsep.h: Likewise.
6138         * lib/strstr.h: Likewise.
6139         * lib/strtok_r.h: Likewise.
6140         * lib/string_.h: New file.
6141         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
6142         Rely on <string.h> instead.
6143         * lib/canon-host.c: Likewise.
6144         * lib/chdir-long.c: Likewise.
6145         * lib/concatpath.c: Likewise.
6146         * lib/exclude.c: Likewise.
6147         * lib/fchdir.c: Likewise.
6148         * lib/getaddrinfo.c: Likewise.
6149         * lib/getcwd.c: Likewise.
6150         * lib/getsubopt.c: Likewise.
6151         * lib/glob.c: Likewise.
6152         * lib/hard-locale.c: Likewise.
6153         * lib/iconvme.c: Likewise.
6154         * lib/javacomp.c: Likewise.
6155         * lib/mempcpy.c: Likewise.
6156         * lib/memrchr.c: Likewise.
6157         * lib/regex_internal.h: Likewise.
6158         * lib/stpncpy.c: Likewise.
6159         * lib/strcasecmp.c: Likewise.
6160         * lib/strchrnul.c: Likewise.
6161         * lib/strdup.c: Likewise.
6162         * lib/striconv.c: Likewise.
6163         * lib/striconveh.c: Likewise.
6164         * lib/striconveha.c: Likewise.
6165         * lib/strncasecmp.c: Likewise.
6166         * lib/strndup.c: Likewise.
6167         * lib/strnlen.c: Likewise.
6168         * lib/strsep.c: Likewise.
6169         * lib/strstr.c: Likewise.
6170         * lib/strtok_r.c: Likewise.
6171         * lib/userspec.c: Likewise.
6172         * lib/w32spawn.h: Likewise.
6173         * lib/xstrndup.c: Likewise.
6174         * lib/mountlist.c (strstr): Remove decl.
6175         * m4/string_h.m4: New file.
6176         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
6177         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
6178         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
6179         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
6180         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
6181         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
6182         Set REPLACE_STRCASECMP if necessary.
6183         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
6184         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
6185         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
6186         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
6187         HAVE_DECL_STRDUP if necessary.
6188         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
6189         since gl_FUNC_STRNDUP does that now.
6190         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
6191         Check for decl here...
6192         (gl_PREREQ_STRNLEN): ... not here.
6193         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
6194         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
6195         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
6196         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
6197         necessary.
6198         * modules/string: New file.
6199         * modules/memmem (Files): Remove special-purpose include file.
6200         (Depends-on): Add string.
6201         (Include): Include <string.h>, not the removed file.
6202         * modules/mempcpy: Likewise.
6203         * modules/memrchr: Likewise.
6204         * modules/stpcpy: Likewise.
6205         * modules/stpncpy: Likewise.
6206         * modules/strcase: Likewise.
6207         * modules/strchrnul: Likewise.
6208         * modules/strdup: Likewise.
6209         * modules/strndup: Likewise.
6210         * modules/strnlen: Likewise.
6211         * modules/strpbrk: Likewise.
6212         * modules/strsep: Likewise.
6213         * modules/strstr: Likewise.
6214         * modules/strtok_r: Likewise.
6215         * tests/test-dirname.c: Don't include "strdup.h", since
6216         <string.h> now suffices.
6217         * tests/test-memmem.c: Don't include "memmem.h", since
6218         <string.h> now suffices.
6219
6220 2007-01-25  Bruno Haible  <bruno@clisp.org>
6221
6222         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
6223         *resultp is 0.
6224
6225         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
6226         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
6227         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
6228         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
6229
6230         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
6231         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
6232         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
6233         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
6234         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
6235         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
6236
6237 2007-01-24  Bruno Haible  <bruno@clisp.org>
6238
6239         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
6240         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
6241         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
6242         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
6243         gl_FUNC_FTS_CORE.
6244         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
6245         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
6246         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
6247         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
6248         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
6249         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
6250         gl_FUNC_FCHOWNAT.
6251         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
6252         gl_FUNC_STRFTIME.
6253         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
6254         Reported by Ralf Wildenhues.
6255
6256 2007-01-24  Bruno Haible  <bruno@clisp.org>
6257
6258         Drop AC_REQUIRE calls that are redundant with the module dependencies.
6259         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
6260         gl_GETADDRINFO.
6261         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
6262         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
6263         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
6264
6265 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
6266
6267         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
6268         Don't use 'exit'; just return from 'main'.
6269         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
6270
6271         * lib/fnmatch_.h: Readjust white space and comments to match
6272         glibc, to avoid spurious diffs.
6273
6274 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
6275
6276         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
6277         2004-12-01 change by Jakub Jelinek, since this code won't compile
6278         if !LIBC.  Problem reported by Bob Proulx.
6279
6280 2007-01-23  Bruno Haible  <bruno@clisp.org>
6281
6282         * lib/striconveh.c: Include c-strcaseeq.h.
6283         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
6284         * modules/striconveh (Depends-on): Add c-strcaseeq.
6285
6286 2007-01-23  Bruno Haible  <bruno@clisp.org>
6287
6288         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
6289
6290         * modules/c-strcaseeq: New file.
6291         * lib/c-strcaseeq.h: New file.
6292
6293         * modules/streq: New file.
6294         * lib/streq.h: New file.
6295
6296 2007-01-23  Bruno Haible  <bruno@clisp.org>
6297
6298         * modules/striconveha-tests: New file.
6299         * tests/test-striconveha.c: New file.
6300
6301         * lib/striconveha.h: Include <stdbool.h>.
6302         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
6303         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
6304         (mem_iconveha_notranslit): Renamed from mem_iconveha.
6305         (mem_iconveha): New function.
6306         (str_iconveha_notranslit): Renamed from str_iconveha.
6307         (str_iconveha): New function.
6308         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
6309         c-strcase.
6310
6311 2007-01-23  Bruno Haible  <bruno@clisp.org>
6312
6313         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
6314         encodings without forgiving before trying any encoding with handler.
6315         (str_iconveha): Try all encodings without forgiving before trying any
6316         encoding with handler.
6317
6318 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
6319
6320         Import the following changes from libc.
6321
6322         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
6323
6324         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
6325
6326         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
6327
6328         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
6329         normal_bracket label.
6330
6331         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
6332
6333         [BZ #361]
6334         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
6335         to normal_bracket after fetching the next character.
6336
6337 2007-01-22  Bruno Haible  <bruno@clisp.org>
6338
6339         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
6340         argument.
6341         * lib/striconveh.c (iconv_carefully_1): New function.
6342         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
6343         argument.
6344         (str_cd_iconveh): Update.
6345         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
6346         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
6347         * tests/test-striconveh.c (MAGIC): New macro.
6348         (new_offsets): New function.
6349         (main): Test call with and without offsets.
6350
6351 2007-01-22  Bruno Haible  <bruno@clisp.org>
6352
6353         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
6354         * modules/sys_select (Makefile.am): Likewise.
6355         * modules/sys_socket (Makefile.am): Likewise.
6356         * modules/sys_time (Makefile.am): Likewise.
6357
6358 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
6359
6360         * modules/gettimeofday (License): Change from GPL to LGPL, since
6361         gettimeofday is a library function.
6362
6363 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
6364
6365         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
6366
6367 2007-01-21  Bruno Haible  <bruno@clisp.org>
6368
6369         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
6370
6371 2007-01-21  Bruno Haible  <bruno@clisp.org>
6372
6373         * modules/striconveha: New file.
6374         * lib/striconveha.h: New file.
6375         * lib/striconveha.c: New file.
6376         * MODULES.html.sh (Internationalization functions): Add striconveha.
6377         * lib/striconv.c (str_iconv): Optimize the case of an empty input
6378         string.
6379         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
6380
6381 2007-01-21  Bruno Haible  <bruno@clisp.org>
6382
6383         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
6384         * lib/striconveh.c (str_iconveh): Likewise.
6385
6386 2007-01-21  Bruno Haible  <bruno@clisp.org>
6387
6388         * lib/striconveh.h (mem_iconveh): New declaration.
6389         * lib/striconveh.c (mem_iconveh): New function.
6390         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
6391
6392 2007-01-21  Bruno Haible  <bruno@clisp.org>
6393
6394         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
6395
6396         * lib/striconveh.h (mem_cd_iconveh): Change specification.
6397         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
6398         original result buffer.
6399         (str_cd_iconveh): Update.
6400         * tests/test-striconveh.c (main): Update.
6401
6402         * lib/striconv.h (mem_cd_iconv): Change specification.
6403         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
6404         result buffer.
6405         (str_cd_iconv): Update.
6406         * tests/test-striconv.c (main): Update.
6407
6408 2007-01-21  Bruno Haible  <bruno@clisp.org>
6409
6410         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
6411
6412 2007-01-20  Jim Meyering  <jim@meyering.net>
6413
6414         * lib/userspec.c (parse_with_separator): If a user or group string
6415         starts with "+", skip the corresponding name-to-ID look-up, since
6416         such a look-up must fail: user and group names may not include "+".
6417
6418 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
6419
6420         * lib/poll.c: Include sys/time.h and time.h unconditionally,
6421         since we now assume the sys_time module.
6422         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
6423         check for sys/time.h; no longer needed.
6424         * modules/poll (Depends-on): Depend on sys_time.
6425
6426 2007-01-18  Bruno Haible  <bruno@clisp.org>
6427
6428         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
6429         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
6430
6431         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
6432         gettimeofday.
6433
6434         * tests/test-gettimeofday.c: Include <time.h>.
6435         (dummy): Remove variable.
6436
6437         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
6438         gl_HEADER_SYS_TIME_H.
6439         (gl_HEADER_SYS_TIME_H): New macro.
6440
6441         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
6442         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
6443         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
6444         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
6445         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
6446         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
6447         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
6448         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
6449         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
6450         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
6451         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
6452
6453         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
6454         last change; it caused a compilation error when cross-compiling to
6455         Cygwin.
6456
6457 2007-01-18  Jim Meyering  <jim@meyering.net>
6458
6459         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
6460         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
6461         than the race-prone "test -d sys || mkdir sys".
6462         (configure.ac): Use AC_PROG_MKDIR_P.
6463         * modules/sys_select: Likewise.
6464         * modules/sys_socket: Likewise.
6465         * modules/sys_time: Likewise.
6466
6467 2007-01-18  Eric Blake  <ebb9@byu.net>
6468
6469         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
6470         replace gettimeofday.
6471         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
6472         name, to avoid infinite recursion.
6473
6474 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
6475
6476         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
6477         module sys_time.
6478         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
6479         assume timespec.h defines struct timeval.
6480         * lib/settime.c: Likewise.
6481         * lib/utimens.c: Likewise.
6482         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
6483         since we now assume the gettimeofday module.
6484         * lib/tempname.c (__gen_tempname): Likewise.
6485         * lib/gettimeofday.h: Remove.
6486         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
6487         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
6488         Include <time.h>, for 'time()'.
6489         (localtime_buffer_addr): Also use this workaround if
6490         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
6491         to simplify the uses.  All uses changed.
6492         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
6493         that #undef is inside {}, and 'const' follows type name consistently.
6494         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
6495         (gettimeofday): Do not use the maximum possible value for
6496         tv->tv_usec, since that might break usages other than ls.c.
6497         Instead, we'll leave ls.c alone.  This undoes today's patch
6498         by Bruno.  Add a compile-time warning for 1s-clock resolution;
6499         we've never observed the problem but might as well keep the
6500         canary.
6501         * lib/nanosleep.c: Include timespec.h first, for interface check.
6502         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
6503         now assume the sys_time module.
6504         * lib/tempname.c: Likewise.
6505         * lib/timespec.h: Likewise.
6506         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
6507         needed.
6508         * lib/strftime.c: Likewise.
6509         * lib/timespec.h: Likewise.
6510         * lib/posixtm.c: Include posixtm.h first, for interface check.
6511         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
6512         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
6513         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
6514         * lib/sys_time_.h: New file.
6515         * lib/timespec.h (struct timespec): Use long int, not long.
6516         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
6517         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
6518         Remove obsolescent call to AC_HEADER_TIME.
6519         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
6520         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
6521         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
6522         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
6523         Likewise.
6524         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
6525         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
6526         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
6527         into the sys_time module.  Check for gettimeofday just once.
6528         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
6529         for gettimeofday signature to just check the signature.  Merely
6530         compile it, since linking doesn't test signature.  Improve test for
6531         whether gettimeofday.o is actually needed.
6532         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
6533         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
6534         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
6535         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
6536         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
6537         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
6538         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
6539         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
6540         than worrying about sys/time.h.
6541         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
6542         Don't bother worrying about TIME_WITH_SYS_TIME.
6543         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
6544         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
6545         * m4/sys_time_h.m4: New file.
6546         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
6547         Don't include sys/time.h.  Return from main rather than exiting.
6548         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
6549         all uses changed.
6550         * modules/gethrxtime (Depends-on): Add sys_time.
6551         * modules/gettime (Depends-on): Likewise.
6552         * modules/gettimeofday (Depends-on): Likewise.
6553         * modules/nanosleep (Depends-on): Likewise.
6554         * modules/settime (Depends-on): Likewise.
6555         * modules/tempname (Depends-on): Likewise.
6556         * modules/utimens (Depends-on): Likewise.
6557         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
6558         (Include:) Change back to <sys/time.h>.
6559         (Maintainer:) Add self.
6560         * modules/sys_time: New file.
6561         * modules/tempname (Depends-on): Add gettimeofday.
6562         * tests/test-gettimeofday.c: Include <sys/time.h>
6563         rather than gettimeofday.h.
6564
6565 2007-01-17  Bruno Haible  <bruno@clisp.org>
6566
6567         * gnulib-tool (func_get_license): Revert last patch. Instead, let
6568         the license default to GPL.
6569         (func_create_testdir): Don't complain if a module is LGPL and its
6570         tests module depends on GPLed modules.
6571
6572 2007-01-17  Bruno Haible  <bruno@clisp.org>
6573
6574         * lib/gettimeofday.c (gettimeofday): Add code for the case
6575         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
6576         maximum possible value for tv->tv_usec, rather than the minimum one.
6577
6578 2005-10-08  Martin Lambers  <marlam@marlam.de>
6579 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
6580 2007-01-16  Bruno Haible  <bruno@clisp.org>
6581
6582         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
6583         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
6584         gl_FUNC_GETTIMEOFDAY.
6585         (Include): Add gettimeofday.h.
6586         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
6587         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
6588         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
6589         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
6590         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
6591         * lib/gettimeofday.h: New file.
6592         * lib/gettimeofday.c: Include <sys/timeb.h>.
6593         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
6594         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
6595         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
6596         fall back on time().
6597
6598         * tests/test-gettimeofday.c: New file.
6599         * modules/gettimeofday-tests: New file.
6600
6601 2007-01-16  Eric Blake  <ebb9@byu.net>
6602
6603         * modules/fnmatch (Depends-on): Depend on wchar.
6604         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
6605         * m4/fnmatch.m4: Likewise.
6606         * modules/mbchar (Makefile.am): Assume <wchar.h>.
6607         * m4/mbchar.m4: Likewise.
6608         * modules/mbswidth (Depends-on): Depend on wchar.
6609         * lib/mbswidth.c: Assume <wchar.h>.
6610         * m4/mbswidth.m4: Likewise.
6611         * modules/quotearg (Depends-on): Depend on wchar.
6612         * lib/quotearg.c: Assume <wchar.h>.
6613         * m4/quotearg.m4: Likewise.
6614         * modules/regex (Depends-on): Depend on wchar.
6615         * lib/regex_internal.h: Assume <wchar.h>.
6616         * m4/regex.m4: Likewise.
6617         * modules/stdint (Depends-on): Depend on wchar.
6618         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
6619         * m4/stdint.m4: Likewise.
6620         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
6621         * modules/strftime (Depends-on): Depend on wchar.
6622         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
6623         * modules/strtol (Depends-on): Depend on wchar.
6624         * lib/strtol.c: Assume <wchar.h>.
6625         * modules/wcwidth (Depends-on): Depend on wchar.
6626         * lib/wcwidth.h: Assume <wchar.h>.
6627         * m4/wcwidth.m4: Likewise.
6628
6629 2007-01-16  Bruno Haible  <bruno@clisp.org>
6630
6631         * modules/csharpexec-script: New, created from...
6632         * modules/csharpexec: ... this.
6633
6634 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
6635
6636         * modules/javaexec-script: New, created from...
6637         * modules/javaexec: ... this.
6638
6639 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
6640
6641         * modules/poll (Dependencies): Add sys_select.
6642
6643 2007-01-15  Jim Meyering  <jim@meyering.net>
6644
6645         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
6646         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
6647         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
6648         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
6649
6650 2007-01-15  Bruno Haible  <bruno@clisp.org>
6651
6652         * modules/striconveh: New file.
6653         * lib/striconveh.h: New file.
6654         * lib/striconveh.c: New file.
6655         * MODULES.html.sh (Internationalization functions): Add striconveh.
6656
6657         * modules/striconveh-tests: New file.
6658         * tests/test-striconveh.c: New file.
6659
6660 2007-01-15  Bruno Haible  <bruno@clisp.org>
6661
6662         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
6663         not from GNU libiconv or GNU libc.
6664
6665 2007-01-15  Bruno Haible  <bruno@clisp.org>
6666
6667         * doc/gnulib-intro.texi (Copyright): Explain the different license
6668         terms for module descriptions, autoconf macros, tests, documentation.
6669
6670 2007-01-14  Bruno Haible  <bruno@clisp.org>
6671
6672         * modules/striconv-tests: New file.
6673         * tests/test-striconv.c: New file.
6674
6675 2007-01-14  Bruno Haible  <bruno@clisp.org>
6676
6677         * modules/iconv-tests: New file.
6678         * tests/test-iconv.c: New file.
6679
6680 2007-01-14  Bruno Haible  <bruno@clisp.org>
6681
6682         * gnulib-tool (func_get_license): For test modules, use the license of
6683         the main module.
6684
6685 2007-01-14  Bruno Haible  <bruno@clisp.org>
6686
6687         * modules/iconv (Include): Clarify that <iconv.h> can only be included
6688         if iconv is found to exist.
6689
6690 2007-01-14  Bruno Haible  <bruno@clisp.org>
6691
6692         * modules/c-ctype-tests: New file.
6693         * tests/test-c-ctype.c: New file.
6694
6695 2007-01-14  Bruno Haible  <bruno@clisp.org>
6696
6697         * modules/binary-io-tests: New file.
6698         * tests/test-binary-io.sh: New file.
6699         * tests/test-binary-io.c: New file.
6700
6701 2007-01-14  Bruno Haible  <bruno@clisp.org>
6702
6703         * modules/array-oset-tests: New file.
6704         * tests/test-array_oset.c: New file.
6705
6706 2007-01-14  Bruno Haible  <bruno@clisp.org>
6707
6708         * modules/array-list-tests: New file.
6709         * tests/test-array_list.c: New file.
6710
6711 2007-01-14  Bruno Haible  <bruno@clisp.org>
6712
6713         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
6714         and make.
6715         Reported by Simon Josefsson in
6716         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
6717
6718 2007-01-14  Bruno Haible  <bruno@clisp.org>
6719
6720         * modules/allocsa-tests: New file.
6721         * tests/test-allocsa.c: New file.
6722
6723 2007-01-14  Bruno Haible  <bruno@clisp.org>
6724
6725         * modules/fchdir (Depends-on): Add absolute-header.
6726         * modules/unistd (Depends-on): Likewise.
6727
6728 2006-12-30  Bruno Haible  <bruno@clisp.org>
6729
6730         * modules/fchdir: New file.
6731         * modules/unistd (Files): Add lib/unistd_.h.
6732         (Makefile.am): Generate unistd.h from unistd_.h.
6733         * lib/fchdir.c: New file.
6734         * lib/dirent_.h: New file.
6735         * lib/unistd_.h: New file.
6736         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
6737         * m4/fchdir.m4: New file.
6738         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
6739         (gl_HEADER_UNISTD): Invoke it.
6740         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
6741         function.
6742         * lib/backupfile.c (opendir, closedir): Undefine.
6743         * lib/chown.c (open, close): Undefine.
6744         * lib/clean-temp.c (open, close): Undefine.
6745         * lib/copy-file.c (open, close): Undefine.
6746         * lib/execute.c (open, close): Undefine.
6747         * lib/fsusage.c (open, close): Undefine.
6748         * lib/gc-gnulib.c (open, close): Undefine.
6749         * lib/getcwd.c (opendir, closedir): Undefine.
6750         * lib/glob.c (opendir, closedir): Undefine.
6751         * lib/javacomp.c (open, close): Undefine.
6752         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
6753         * lib/openat-proc.c (open, close): Undefine.
6754         * lib/pagealign_alloc.c (open, close): Undefine.
6755         * lib/pipe.c (open, close): Undefine.
6756         * lib/progreloc.c (open, close): Undefine.
6757         * lib/savedir.c (opendir, closedir): Undefine.
6758         * lib/utime.c (open, close): Undefine.
6759         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
6760
6761 2007-01-10  Bruno Haible  <bruno@clisp.org>
6762
6763         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
6764
6765 2007-01-12  Eric Blake  <ebb9@byu.net>
6766
6767         Provide a robust <wchar.h>.  Further simplifications are now
6768         possible in other modules, but not included here.
6769         * modules/wchar: New module.
6770         * m4/wchar.m4: New file.
6771         * lib/wchar_.h: Likewise.
6772         * modules/mbchar (Depends-on): Depend on wchar, as the first use
6773         of the new module.
6774         * MODULES.html.sh (Extended multibyte and wide character utilities):
6775         New section.
6776
6777 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
6778
6779         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
6780         to a reasonable default for memory allocation.
6781         (xreadlink): Don't allocate a huge buffer, to work around a buggy
6782         file system that reports garbage st_size values for symlinks.
6783         Problem reported by Liyang Hu.
6784
6785 2007-01-11  Simon Josefsson  <simon@josefsson.org>
6786
6787         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
6788         Emacs .#* auto-save files).
6789
6790 2007-01-11  Bruno Haible  <bruno@clisp.org>
6791
6792         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
6793         directory.
6794
6795 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
6796
6797         Use @...@ consistently in lib/wctype_.h.
6798         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
6799         on it being set to 1 or 0.
6800         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
6801         go back to AC_SUBSTing it.
6802         * modules/wctype (Makefile.am): Undo previous change.
6803
6804 2007-01-10  Eric Blake  <ebb9@byu.net>
6805
6806         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
6807         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
6808         * modules/wctype (Makefile.am): Likewise.
6809         Reported by Chris McGuire.
6810
6811 2007-01-10  Jim Meyering  <jim@meyering.net>
6812
6813         fts.c: a small readability/maintainability improvement
6814         * lib/fts.c (fts_read): Make this code slightly more readable and
6815         maintainable by hoisting the "sp->fts_cur = p" assignments to
6816         immediately follow the statements that set P.  Derived from
6817         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
6818
6819 2007-01-10  Eric Blake  <ebb9@byu.net>
6820
6821         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
6822         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
6823         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
6824         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
6825         Reported by Chris McGuire.
6826
6827 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6828
6829         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
6830         in sed script.
6831
6832 2007-01-09  Bruno Haible  <bruno@clisp.org>
6833
6834         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
6835         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
6836         variables.
6837         (func_module): Use them.
6838
6839 2007-01-09  Bruno Haible  <bruno@clisp.org>
6840
6841         * modules/unistr/base: New file.
6842         * lib/unistr.h: New file.
6843
6844         * modules/unistr/u8-to-u16: New file.
6845         * lib/unistr/u8-to-u16.c: New file.
6846
6847         * modules/unistr/u8-to-u32: New file.
6848         * lib/unistr/u8-to-u32.c: New file.
6849
6850         * modules/unistr/u16-to-u8: New file.
6851         * lib/unistr/u16-to-u8.c: New file.
6852
6853         * modules/unistr/u16-to-u32: New file.
6854         * lib/unistr/u16-to-u32.c: New file.
6855
6856         * modules/unistr/u32-to-u8: New file.
6857         * lib/unistr/u32-to-u8.c: New file.
6858
6859         * modules/unistr/u32-to-u16: New file.
6860         * lib/unistr/u32-to-u16.c: New file.
6861
6862         * modules/unistr/u8-check: New file.
6863         * modules/unistr/u16-check: New file.
6864         * modules/unistr/u32-check: New file.
6865         * lib/unistr/u8-check.c: New file.
6866         * lib/unistr/u16-check.c: New file.
6867         * lib/unistr/u32-check.c: New file.
6868
6869         * modules/unistr/u8-chr: New file.
6870         * modules/unistr/u16-chr: New file.
6871         * modules/unistr/u32-chr: New file.
6872         * lib/unistr/u8-chr.c: New file.
6873         * lib/unistr/u16-chr.c: New file.
6874         * lib/unistr/u32-chr.c: New file.
6875
6876         * modules/unistr/u8-cmp: New file.
6877         * modules/unistr/u16-cmp: New file.
6878         * modules/unistr/u32-cmp: New file.
6879         * lib/unistr/u8-cmp.c: New file.
6880         * lib/unistr/u16-cmp.c: New file.
6881         * lib/unistr/u32-cmp.c: New file.
6882
6883         * modules/unistr/u8-cpy: New file.
6884         * modules/unistr/u16-cpy: New file.
6885         * modules/unistr/u32-cpy: New file.
6886         * lib/unistr/u8-cpy.c: New file.
6887         * lib/unistr/u16-cpy.c: New file.
6888         * lib/unistr/u32-cpy.c: New file.
6889         * lib/unistr/u-cpy.h: New file.
6890
6891         * modules/unistr/u8-cpy-alloc: New file.
6892         * modules/unistr/u16-cpy-alloc: New file.
6893         * modules/unistr/u32-cpy-alloc: New file.
6894         * lib/unistr/u8-cpy-alloc.c: New file.
6895         * lib/unistr/u16-cpy-alloc.c: New file.
6896         * lib/unistr/u32-cpy-alloc.c: New file.
6897         * lib/unistr/u-cpy-alloc.h: New file.
6898
6899         * modules/unistr/u8-endswith: New file.
6900         * modules/unistr/u16-endswith: New file.
6901         * modules/unistr/u32-endswith: New file.
6902         * lib/unistr/u8-endswith.c: New file.
6903         * lib/unistr/u16-endswith.c: New file.
6904         * lib/unistr/u32-endswith.c: New file.
6905         * lib/unistr/u-endswith.h: New file.
6906
6907         * modules/unistr/u8-mblen: New file.
6908         * modules/unistr/u16-mblen: New file.
6909         * modules/unistr/u32-mblen: New file.
6910         * lib/unistr/u8-mblen.c: New file.
6911         * lib/unistr/u16-mblen.c: New file.
6912         * lib/unistr/u32-mblen.c: New file.
6913
6914         * modules/unistr/u8-mbtouc: New file.
6915         * modules/unistr/u16-mbtouc: New file.
6916         * modules/unistr/u32-mbtouc: New file.
6917         * lib/unistr/u8-mbtouc.c: New file.
6918         * lib/unistr/u16-mbtouc.c: New file.
6919         * lib/unistr/u32-mbtouc.c: New file.
6920
6921         * modules/unistr/u8-mbtouc-safe: New file.
6922         * modules/unistr/u16-mbtouc-safe: New file.
6923         * modules/unistr/u32-mbtouc-safe: New file.
6924         * lib/unistr/u8-mbtouc-safe.c: New file.
6925         * lib/unistr/u16-mbtouc-safe.c: New file.
6926         * lib/unistr/u32-mbtouc-safe.c: New file.
6927
6928         * modules/unistr/u8-move: New file.
6929         * modules/unistr/u16-move: New file.
6930         * modules/unistr/u32-move: New file.
6931         * lib/unistr/u8-move.c: New file.
6932         * lib/unistr/u16-move.c: New file.
6933         * lib/unistr/u32-move.c: New file.
6934         * lib/unistr/u-move.h: New file.
6935
6936         * modules/unistr/u8-next: New file.
6937         * modules/unistr/u16-next: New file.
6938         * modules/unistr/u32-next: New file.
6939         * lib/unistr/u8-next.c: New file.
6940         * lib/unistr/u16-next.c: New file.
6941         * lib/unistr/u32-next.c: New file.
6942
6943         * modules/unistr/u8-prev: New file.
6944         * modules/unistr/u16-prev: New file.
6945         * modules/unistr/u32-prev: New file.
6946         * lib/unistr/u8-prev.c: New file.
6947         * lib/unistr/u16-prev.c: New file.
6948         * lib/unistr/u32-prev.c: New file.
6949
6950         * modules/unistr/u8-set: New file.
6951         * modules/unistr/u16-set: New file.
6952         * modules/unistr/u32-set: New file.
6953         * lib/unistr/u8-set.c: New file.
6954         * lib/unistr/u16-set.c: New file.
6955         * lib/unistr/u32-set.c: New file.
6956         * lib/unistr/u-set.h: New file.
6957
6958         * modules/unistr/u8-startswith: New file.
6959         * modules/unistr/u16-startswith: New file.
6960         * modules/unistr/u32-startswith: New file.
6961         * lib/unistr/u8-startswith.c: New file.
6962         * lib/unistr/u16-startswith.c: New file.
6963         * lib/unistr/u32-startswith.c: New file.
6964         * lib/unistr/u-startswith.h: New file.
6965
6966         * modules/unistr/u8-stpcpy: New file.
6967         * modules/unistr/u16-stpcpy: New file.
6968         * modules/unistr/u32-stpcpy: New file.
6969         * lib/unistr/u8-stpcpy.c: New file.
6970         * lib/unistr/u16-stpcpy.c: New file.
6971         * lib/unistr/u32-stpcpy.c: New file.
6972         * lib/unistr/u-stpcpy.h: New file.
6973
6974         * modules/unistr/u8-stpncpy: New file.
6975         * modules/unistr/u16-stpncpy: New file.
6976         * modules/unistr/u32-stpncpy: New file.
6977         * lib/unistr/u8-stpncpy.c: New file.
6978         * lib/unistr/u16-stpncpy.c: New file.
6979         * lib/unistr/u32-stpncpy.c: New file.
6980         * lib/unistr/u-stpncpy.h: New file.
6981
6982         * modules/unistr/u8-strcat: New file.
6983         * modules/unistr/u16-strcat: New file.
6984         * modules/unistr/u32-strcat: New file.
6985         * lib/unistr/u8-strcat.c: New file.
6986         * lib/unistr/u16-strcat.c: New file.
6987         * lib/unistr/u32-strcat.c: New file.
6988         * lib/unistr/u-strcat.h: New file.
6989
6990         * modules/unistr/u8-strchr: New file.
6991         * modules/unistr/u16-strchr: New file.
6992         * modules/unistr/u32-strchr: New file.
6993         * lib/unistr/u8-strchr.c: New file.
6994         * lib/unistr/u16-strchr.c: New file.
6995         * lib/unistr/u32-strchr.c: New file.
6996
6997         * modules/unistr/u8-strcmp: New file.
6998         * modules/unistr/u16-strcmp: New file.
6999         * modules/unistr/u32-strcmp: New file.
7000         * lib/unistr/u8-strcmp.c: New file.
7001         * lib/unistr/u16-strcmp.c: New file.
7002         * lib/unistr/u32-strcmp.c: New file.
7003
7004         * modules/unistr/u8-strcpy: New file.
7005         * modules/unistr/u16-strcpy: New file.
7006         * modules/unistr/u32-strcpy: New file.
7007         * lib/unistr/u8-strcpy.c: New file.
7008         * lib/unistr/u16-strcpy.c: New file.
7009         * lib/unistr/u32-strcpy.c: New file.
7010         * lib/unistr/u-strcpy.h: New file.
7011
7012         * modules/unistr/u8-strcspn: New file.
7013         * modules/unistr/u16-strcspn: New file.
7014         * modules/unistr/u32-strcspn: New file.
7015         * lib/unistr/u8-strcspn.c: New file.
7016         * lib/unistr/u16-strcspn.c: New file.
7017         * lib/unistr/u32-strcspn.c: New file.
7018         * lib/unistr/u-strcspn.h: New file.
7019
7020         * modules/unistr/u8-strdup: New file.
7021         * modules/unistr/u16-strdup: New file.
7022         * modules/unistr/u32-strdup: New file.
7023         * lib/unistr/u8-strdup.c: New file.
7024         * lib/unistr/u16-strdup.c: New file.
7025         * lib/unistr/u32-strdup.c: New file.
7026         * lib/unistr/u-strdup.h: New file.
7027
7028         * modules/unistr/u8-strlen: New file.
7029         * modules/unistr/u16-strlen: New file.
7030         * modules/unistr/u32-strlen: New file.
7031         * lib/unistr/u8-strlen.c: New file.
7032         * lib/unistr/u16-strlen.c: New file.
7033         * lib/unistr/u32-strlen.c: New file.
7034         * lib/unistr/u-strlen.h: New file.
7035
7036         * modules/unistr/u8-strmblen: New file.
7037         * modules/unistr/u16-strmblen: New file.
7038         * modules/unistr/u32-strmblen: New file.
7039         * lib/unistr/u8-strmblen.c: New file.
7040         * lib/unistr/u16-strmblen.c: New file.
7041         * lib/unistr/u32-strmblen.c: New file.
7042
7043         * modules/unistr/u8-strmbtouc: New file.
7044         * modules/unistr/u16-strmbtouc: New file.
7045         * modules/unistr/u32-strmbtouc: New file.
7046         * lib/unistr/u8-strmbtouc.c: New file.
7047         * lib/unistr/u16-strmbtouc.c: New file.
7048         * lib/unistr/u32-strmbtouc.c: New file.
7049
7050         * modules/unistr/u8-strncat: New file.
7051         * modules/unistr/u16-strncat: New file.
7052         * modules/unistr/u32-strncat: New file.
7053         * lib/unistr/u8-strncat.c: New file.
7054         * lib/unistr/u16-strncat.c: New file.
7055         * lib/unistr/u32-strncat.c: New file.
7056         * lib/unistr/u-strncat.h: New file.
7057
7058         * modules/unistr/u8-strncmp: New file.
7059         * modules/unistr/u16-strncmp: New file.
7060         * modules/unistr/u32-strncmp: New file.
7061         * lib/unistr/u8-strncmp.c: New file.
7062         * lib/unistr/u16-strncmp.c: New file.
7063         * lib/unistr/u32-strncmp.c: New file.
7064
7065         * modules/unistr/u8-strncpy: New file.
7066         * modules/unistr/u16-strncpy: New file.
7067         * modules/unistr/u32-strncpy: New file.
7068         * lib/unistr/u8-strncpy.c: New file.
7069         * lib/unistr/u16-strncpy.c: New file.
7070         * lib/unistr/u32-strncpy.c: New file.
7071         * lib/unistr/u-strncpy.h: New file.
7072
7073         * modules/unistr/u8-strnlen: New file.
7074         * modules/unistr/u16-strnlen: New file.
7075         * modules/unistr/u32-strnlen: New file.
7076         * lib/unistr/u8-strnlen.c: New file.
7077         * lib/unistr/u16-strnlen.c: New file.
7078         * lib/unistr/u32-strnlen.c: New file.
7079         * lib/unistr/u-strnlen.h: New file.
7080
7081         * modules/unistr/u8-strpbrk: New file.
7082         * modules/unistr/u16-strpbrk: New file.
7083         * modules/unistr/u32-strpbrk: New file.
7084         * lib/unistr/u8-strpbrk.c: New file.
7085         * lib/unistr/u16-strpbrk.c: New file.
7086         * lib/unistr/u32-strpbrk.c: New file.
7087         * lib/unistr/u-strpbrk.h: New file.
7088
7089         * modules/unistr/u8-strrchr: New file.
7090         * modules/unistr/u16-strrchr: New file.
7091         * modules/unistr/u32-strrchr: New file.
7092         * lib/unistr/u8-strrchr.c: New file.
7093         * lib/unistr/u16-strrchr.c: New file.
7094         * lib/unistr/u32-strrchr.c: New file.
7095
7096         * modules/unistr/u8-strspn: New file.
7097         * modules/unistr/u16-strspn: New file.
7098         * modules/unistr/u32-strspn: New file.
7099         * lib/unistr/u8-strspn.c: New file.
7100         * lib/unistr/u16-strspn.c: New file.
7101         * lib/unistr/u32-strspn.c: New file.
7102         * lib/unistr/u-strspn.h: New file.
7103
7104         * modules/unistr/u8-strstr: New file.
7105         * modules/unistr/u16-strstr: New file.
7106         * modules/unistr/u32-strstr: New file.
7107         * lib/unistr/u8-strstr.c: New file.
7108         * lib/unistr/u16-strstr.c: New file.
7109         * lib/unistr/u32-strstr.c: New file.
7110         * lib/unistr/u-strstr.h: New file.
7111
7112         * modules/unistr/u8-strtok: New file.
7113         * modules/unistr/u16-strtok: New file.
7114         * modules/unistr/u32-strtok: New file.
7115         * lib/unistr/u8-strtok.c: New file.
7116         * lib/unistr/u16-strtok.c: New file.
7117         * lib/unistr/u32-strtok.c: New file.
7118         * lib/unistr/u-strtok.h: New file.
7119
7120         * modules/unistr/u8-uctomb: New file.
7121         * modules/unistr/u16-uctomb: New file.
7122         * modules/unistr/u32-uctomb: New file.
7123         * lib/unistr/u8-uctomb.c: New file.
7124         * lib/unistr/u16-uctomb.c: New file.
7125         * lib/unistr/u32-uctomb.c: New file.
7126
7127         * MODULES.html.sh (Unicode string functions): Add the new modules.
7128
7129 2007-01-08  Bruno Haible  <bruno@clisp.org>
7130
7131         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
7132         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
7133         subdirectories.
7134
7135 2007-01-08  Karl Berry  <karl@gnu.org>
7136
7137         * doc/error.texi: mention that main() fns must set program_name
7138         when progname is used.
7139
7140 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
7141
7142         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
7143         WCTYPE_H is empty, for the benefit of builds from non-distclean
7144         directories.  Problem reported by Eric Blake in
7145         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
7146
7147 2007-01-08  Bruno Haible  <bruno@clisp.org>
7148
7149         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
7150         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
7151         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
7152         PROVIDE_CANONICALIZE_FILENAME_MODE.
7153         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
7154
7155 2007-01-08  Bruno Haible  <bruno@clisp.org>
7156
7157         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
7158         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
7159         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
7160         * lib/fts.c: Likewise.
7161         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
7162
7163 2006-12-25  Bruno Haible  <bruno@clisp.org>
7164
7165         * modules/utf8-ucs4-safe: New file.
7166         * lib/utf8-ucs4-safe.h: New file.
7167         * lib/unistr/utf8-ucs4-safe.c: New file.
7168
7169         * modules/utf16-ucs4-safe: New file.
7170         * lib/utf16-ucs4-safe.h: New file.
7171         * lib/unistr/utf16-ucs4-safe.c: New file.
7172
7173         * MODULES.html.sh (Unicode string functions): Add the new modules.
7174
7175 2007-01-08  Bruno Haible  <bruno@clisp.org>
7176
7177         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
7178         (Depends-on): Add unitypes.
7179         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
7180         (u8_mbtouc_aux): Move out to separate file.
7181         (u8_mbtouc): Use ucs4_t, uint8_t types.
7182         * lib/unistr/utf8-ucs4.c: New file.
7183
7184         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
7185         (Depends-on): Add unitypes.
7186         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
7187         (u16_mbtouc_aux): Move out to separate file.
7188         (u16_mbtouc): Use ucs4_t, uint16_t types.
7189         * lib/unistr/utf16-ucs4.c: New file.
7190
7191         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
7192         (Depends-on): Add unitypes.
7193         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
7194         (u8_uctomb_aux): Move out to separate file.
7195         (u8_uctomb): Use ucs4_t, uint8_t types.
7196         * lib/unistr/ucs4-utf8.c: New file.
7197
7198         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
7199         (Depends-on): Add unitypes.
7200         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
7201         (u16_uctomb_aux): Move out to separate file.
7202         (u16_uctomb): Use ucs4_t, uint16_t types.
7203         * lib/unistr/ucs4-utf16.c: New file.
7204
7205 2006-12-25  Bruno Haible  <bruno@clisp.org>
7206
7207         * modules/unitypes: New file.
7208         * lib/unitypes.h: New file.
7209         * MODULES.html.sh (func_all_modules): New section "Unicode string
7210         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
7211         this section. Add unitypes.
7212
7213 2007-01-08  Bruno Haible  <bruno@clisp.org>
7214
7215         Avoid variable names that conflict with those from libtool.
7216         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
7217         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
7218         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
7219         library_names_spec to acl_library_names_spec, hardcode_* to
7220         acl_hardcode_*.
7221         Reported by Ralf Wildenhues.
7222
7223 2007-01-08  Bruno Haible  <bruno@clisp.org>
7224
7225         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
7226         definition.
7227         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
7228         definition.
7229         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
7230         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
7231         definition.
7232         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
7233         definition.
7234         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
7235         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
7236         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
7237         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
7238         definition.
7239         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
7240         definition.
7241         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
7242         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
7243         GC_USE_<algorithm>.
7244         * lib/gc-libgcrypt.c: Likewise.
7245         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
7246         * modules/gc-arctwo (configure.ac): Likewise.
7247         * modules/gc-des (configure.ac): Likewise.
7248         * modules/gc-hmac-md5 (configure.ac): Likewise.
7249         * modules/gc-hmac-sha1 (configure.ac): Likewise.
7250         * modules/gc-md2 (configure.ac): Likewise.
7251         * modules/gc-md4 (configure.ac): Likewise.
7252         * modules/gc-md5 (configure.ac): Likewise.
7253         * modules/gc-random (configure.ac): Likewise.
7254         * modules/gc-rijndael (configure.ac): Likewise.
7255         * modules/gc-sha1 (configure.ac): Likewise.
7256
7257 2007-01-08  Bruno Haible  <bruno@clisp.org>
7258
7259         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
7260         macro definition.
7261         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
7262         definition.
7263         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
7264         definition.
7265         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
7266         * modules/fcntl-safer (configure.ac): Likewise.
7267         * modules/fopen-safer (configure.ac): Likewise.
7268         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
7269         GNULIB_FWRITEERROR macro definition.
7270
7271 2007-01-08  Bruno Haible  <bruno@clisp.org>
7272
7273         * m4/gnulib-common.m4: New file.
7274         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
7275         (func_get_filelist): Add m4/gnulib-common.m4.
7276
7277 2007-01-08  Bruno Haible  <bruno@clisp.org>
7278
7279         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
7280         command.
7281
7282 2007-01-08  Jim Meyering  <jim@meyering.net>
7283
7284         Use a more robust test for a "can't happen" condition.
7285         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
7286         narrowed the st_size value.  Presuming the "can't happen" condition
7287         is true, that narrowing could conceivably convert an invalid st_size
7288         value into a valid one.  Instead, use a change based on Matthew
7289         Woehlke's original patch.
7290
7291         Slight readability improvement: use an assert-like macro
7292         in place of literal "abort ()" uses.
7293         * lib/fts.c (fts_assert): Define.
7294         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
7295         Use this macro instead of a bare 'abort'.
7296
7297 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
7298
7299         Don't worry about using IRIX 5.3's wctype.h broken definitions;
7300         simply work around them.
7301         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
7302         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
7303         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
7304         declaring.
7305         Don't bother to define as macros, since the standard doesn't require it.
7306         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
7307         longer worry about IRIX 5.3.
7308         (HAVE_WCTYPE_CTMP_BUG): Remove.
7309
7310 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
7311
7312         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
7313         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
7314         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
7315         Problems reported by Georg Schwarz for IRIX 5.3.
7316
7317         * gnulib-tool (autoconf_minversion): Take the maximum version number
7318         found, not the minimum.  Problem reported by James Youngman.
7319
7320 2007-01-03  Karl Berry  <karl@gnu.org>
7321
7322         * doc/error.texi: new file, explaining interaction with progname.
7323         * doc/gnulib.texi: include it.  Update copyright.
7324
7325 2007-01-03  Simon Josefsson  <simon@josefsson.org>
7326
7327         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
7328         AC_CANONICAL_HOST, to improve autobuild outputs.
7329
7330 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
7331             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
7332
7333         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
7334         sockets, server sockets, and other file descriptors.  Count errors
7335         to compute the return value.  Reorder the code a bit to be easier
7336         to follow.  Don't set event bits that were not requested (except
7337         POLLERR and POLLHUP).
7338
7339 2007-01-01  Bruno Haible  <bruno@clisp.org>
7340
7341         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
7342
7343 2007-01-03  Jim Meyering  <jim@meyering.net>
7344
7345         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
7346
7347 2007-01-02  Bruno Haible  <bruno@clisp.org>
7348
7349         * modules/settime (Include): Require timespec.h.
7350         * modules/nanosleep (Include): Likewise.
7351
7352 2007-01-01  Bruno Haible  <bruno@clisp.org>
7353
7354         * gnulib-tool (func_emit_copyright_notice): Bump year.
7355         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
7356
7357 2007-01-01  Bruno Haible  <bruno@clisp.org>
7358
7359         Improve support for OpenBSD.
7360         * build-aux/config.rpath (libname_spec): Export.
7361         (library_names_spec): New variable. Export.
7362         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
7363         library_names_spec from the config.rpath output. Locate shared library
7364         through the name pattern in library_names_spec.
7365
7366 2007-01-01  Eric Blake  <ebb9@byu.net>
7367
7368         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
7369
7370 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
7371
7372         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
7373         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
7374         assume the C locale, and avoid an "eval" that could cause trouble.
7375         Problem with SORT reported by Bob Proulx.
7376
7377         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
7378         Define.  Trivial patch from Henning Nielsen Lund, originally
7379         sent to bug-grep@gnu.org today.
7380
7381 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
7382
7383         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
7384         struct stat.  Problem reported by Henning Nielsen Lund.
7385         * lib/acl.c: Include acl.h first, to check interface.  Don't
7386         bother to include sys/types.h and sys/stat.h again.
7387
7388 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
7389
7390         Import the following change from libc; problem reported by
7391         Sven Verdoolaege.
7392
7393         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
7394
7395         [BZ #1373]
7396         * lib/argp.h: Remove __NTH for __argp_usage inline function.
7397
7398 2006-12-28  Jim Meyering  <jim@meyering.net>
7399
7400         * build-aux/announce-gen: Do not assume that the package
7401         builds any of tar.gz, tar.bz2, and .xdelta files.
7402         Suggestion from Simon Josefsson.
7403
7404 2006-12-28  Simon Josefsson  <simon@josefsson.org>
7405
7406         * modules/announce-gen: New file.
7407
7408 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
7409
7410         * lib/mbchar.h: Just include <wctype.h>; the wctype module
7411         handles its gotchas now.
7412         * lib/mbswidth.c: Likewise.
7413         * lib/wcwidth.h: Likewise.
7414         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
7415         and iswcntrl; the wctype module does this stuff now.
7416         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
7417         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
7418         * modules/mbchar (Depends-on): Add wctype.
7419         * modules/mbswidth (Depends-on): Likewise.
7420         * modules/wcwidth (Depends-on): Likewise.
7421
7422 2006-12-27  Eric Blake  <ebb9@byu.net>
7423
7424         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
7425         module uses more than what <wctype.h> is required to provide.
7426
7427 2006-12-26  Eric Blake  <ebb9@byu.net>
7428
7429         * gnulib-tool (sed_extract_prog): Avoid space-tab.
7430
7431 2006-12-26  Eric Blake  <ebb9@byu.net>
7432
7433         * modules/absolute-header: New module.
7434         * modules/fcntl (Depends-on): Depend on it.
7435         * modules/inttypes (Depends-on): Likewise.
7436         * modules/stdint (Depends-on): Likewise.
7437         * modules/sys_stat (Depends-on): Likewise.
7438         * modules/wctype (Depends-on): Likewise.
7439         * MODULES.html.sh (Support for building libraries and
7440         executables): Document it.
7441
7442 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
7443
7444         * gnulib-tool (SED): Remove, undoing previous change.
7445         The problem was that it broke coreutils on Solaris, because
7446         "sed --posix" leaked into a makefile.
7447         (sed): New alias, if 'alias' and GNU sed.
7448
7449 2006-12-24  Jim Meyering  <jim@meyering.net>
7450
7451         Work around an fchownat bug in glibc-2.4:
7452         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
7453         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
7454         in spite of the -P option.
7455         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
7456         New macros.
7457         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
7458         * modules/openat (Files): Add lib/fchownat.c.
7459         * lib/openat.c (fchownat): Don't define here.  Move to...
7460         * lib/fchownat.c: ...this new file.
7461
7462 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
7463
7464         Fix bug reported by Bruno Haible in
7465         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
7466         where quotearg.c didn't compile on Mac OS X 10.2 because it
7467         lacks <wchar.h> and wint_t.
7468         * lib/wctype_.h (__wctype_wint_t): New type.
7469         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
7470         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
7471         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
7472         Arg is now of type __wctype_wint_t, not wint_t.
7473         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
7474         substitute HAVE_WINT_T.
7475         * modules/wctype (Files): Add m4/wint_t.m4.
7476         (wctype.h): Substitute HAVE_WINT_T.
7477
7478 2006-12-23  Bruno Haible  <bruno@clisp.org>
7479
7480         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
7481
7482 2006-12-23  Bruno Haible  <bruno@clisp.org>
7483
7484         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
7485         S_ISLNK.
7486         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
7487         mingw.
7488
7489 2006-12-22  Bruno Haible  <bruno@clisp.org>
7490
7491         * lib/copy-file.c: Include acl.h.
7492         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
7493         Close the file descriptors only after being done with copy_acl.
7494         * modules/copy-file (Depends-on): Add acl.
7495
7496 2006-12-22  Bruno Haible  <bruno@clisp.org>
7497
7498         * gnulib-tool (SED): New variable.
7499         Use $SED instead of sed everywhere.
7500
7501 2006-12-22  Bruno Haible  <bruno@clisp.org>
7502
7503         * modules/no-c++: New file.
7504         * m4/no-c++.m4: New file.
7505         * MODULES.html.sh (Support for building libraries and executables):
7506         Add no-c++.
7507
7508 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
7509
7510         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
7511         Include <limits.h>, and use its INT_MAX to rewrite the
7512         j loop so that it does not overflow 'int'.  Problem reported by
7513         Ralf Wildenhues in
7514         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
7515         Play it safe by shifting left by 1 rather than multiplying by 2,
7516         as GCC is less likely to optimize this away when the value
7517         is signed (when it assumes overflow leads to undefined behavior).
7518         Also, don't assume time_t uses two's complement.
7519
7520 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
7521
7522         * MODULES.html.sh: New module wctype.
7523         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
7524         * lib/fnmatch.c: Don't bother to include <wchar.h> before
7525         <wctype.h>, since the new wctype module should fix this.
7526         * lib/quotearg.c: Include <wctype.h> unconditionally, since
7527         the wctype module should arrange for it.
7528         * lib/regex_internal.h: Likewise.
7529         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
7530         since the wctype module should handle this now.
7531         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
7532         * modules/fnmatch (Depends-on): Add wctype.
7533         * modules/quotearg (Depends-on): Likewise.
7534         * modules/regex (Depends-on): Likewise.
7535
7536 2006-12-19  Bruno Haible  <bruno@clisp.org>
7537
7538         * lib/strdup.h [C++]: Wrap definitions in extern "C".
7539         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
7540
7541 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7542
7543         * modules/savewd (Depends-on): Fix dependency on fcntl.
7544
7545 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
7546
7547         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
7548         conforms to C99, rather than relying on the user's environment
7549         setting of STDINT_H.
7550
7551 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
7552         and Eric Blake  <ebb9@byu.net>
7553
7554         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
7555         This is more consistent with the other defines here.
7556         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
7557         Port to z/OS.  Problem reported by Paul Gilmartin.
7558         Change local vars to use gl_ prefix rather than ac_.
7559         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
7560         with other defines.
7561         * modules/double-slash-root: New module.
7562         * modules/dirname (Files): Remove m4/double-slash-root.m4.
7563         (Depends-on): Add double-slash-root.
7564         * MODULES.html.sh (File system functions): Mention new module.
7565
7566 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
7567
7568         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
7569         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
7570         This is for the benefit of gzip, which doesn't do i18n.
7571
7572 2006-12-12  Jim Meyering  <jim@meyering.net>
7573
7574         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
7575         Reported by Andreas Schwab <schwab@suse.de>.
7576
7577 2006-12-12  Bruno Haible  <bruno@clisp.org>
7578
7579         Merge these changes.
7580         2006-09-05  Bruno Haible  <bruno@clisp.org>
7581         * lib/iconvme.c (iconv_string): No need to save and restore errno when
7582         iconv_alloc succeeded.
7583         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
7584         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
7585         test for " && dest " at the end - dest is always != NULL there. Call
7586         iconv with 4xNULL arguments initially, to reset the state. Call iconv
7587         with 2xNULL arguments, also to flush the state storage. Handle the
7588         IRIX iconv behaviour. Realloc the final result, to throw away unused
7589         memory.
7590
7591 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
7592
7593         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
7594         and fchmodat unconditionally, since glibc 2.4 has them.
7595         Problem reported by Arkadiusz Miskiewicz.
7596
7597 2006-12-10  Bruno Haible  <bruno@clisp.org>
7598
7599         * gnulib-tool (func_import): Show the include files only for those
7600         modules that are copied and specified.
7601         Reported by Karl Berry.
7602
7603 2006-12-08  Jim Meyering  <jim@meyering.net>
7604
7605         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
7606         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
7607
7608         * build-aux/announce-gen: Add two new options, both optional:
7609         --bootstrap-tools=TOOL_LIST
7610               a comma-separated list of tools, e.g.,
7611               autoconf,automake,bison,gnulib
7612         --gnulib-snapshot-date=DATE
7613               if gnulib is in the bootstrap tool list,
7614               then report this as the snapshot date.
7615               If not specified, use the current date/time.
7616               If you specify a date here, be sure it's UTC.
7617
7618 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7619
7620         * tests/test-argp-2.sh: Fix test to match actual output.
7621         (func_compare): Fix sed script to be portable.
7622
7623 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
7624
7625         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
7626         workaround for this case.  It is not autoconfigured now; offhand
7627         it's hard to see how to autoconfigure it.
7628
7629 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
7630
7631         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
7632         a directory that is about to be chowned.  Such a directory's
7633         initial file permissions should permit the owner only and this
7634         should not be changed until after the chown, since the group and
7635         other bits would be incorrect if they granted permission before
7636         the chown.
7637
7638         Fix porting problem for iswctype reported by Georg Schwarz in:
7639         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
7640         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
7641         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
7642         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
7643         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
7644
7645 2006-12-03  Jim Meyering  <jim@meyering.net>
7646
7647         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
7648         p->fts_statp may not yet be defined.
7649         (fts_read): Instead, set it in the caller, once p->fts_statp is
7650         sure to be defined, and corresponds to a top-level directory.
7651         This bug made du -x fail.  Here's the coreutils test case:
7652         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
7653         Reported by Mike Frysinger.
7654
7655 2006-12-01  Jim Meyering  <jim@meyering.net>
7656
7657         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
7658         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
7659         Reported by Simon Josefsson.
7660
7661 2006-11-30  Jim Meyering  <jim@meyering.net>
7662
7663         * m4/warning.m4: Use the all-permissive copyright notice
7664         recommended by RMS (rather than LGPL).
7665         * m4/vararrays.m4: Likewise.
7666         * m4/flexmember.m4: Likewise.
7667
7668 2006-11-29  Bruno Haible  <bruno@clisp.org>
7669
7670         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
7671         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
7672         using +=.
7673         Reported by Simon Josefsson <simon@josefsson.org>.
7674
7675 2006-11-28  James Youngman <jay@gnu.org>
7676
7677         * README: Advise users that they might find the bug-gnulib@gnu.org
7678         and autotools-announce@gnu.org mailing lists useful.
7679
7680 2006-11-28  Bruno Haible  <bruno@clisp.org>
7681
7682         * m4/ptrdiff_max.m4: Remove file.
7683
7684 2006-11-21  Bruno Haible  <bruno@clisp.org>
7685
7686         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
7687         _AC_COMPUTE_INT.
7688         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
7689         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
7690         _AC_COMPUTE_INT.
7691         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
7692         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
7693         _AC_COMPUTE_INT.
7694         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
7695
7696 2006-11-28  Jim Meyering  <jim@meyering.net>
7697
7698         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
7699         warning from "gcc -Wshadow" about shadowing the builtin.
7700
7701 2006-11-27  Bruno Haible  <bruno@clisp.org>
7702
7703         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
7704         _AC_COMPUTE_INT.
7705         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
7706
7707 2006-11-27  Bruno Haible  <bruno@clisp.org>
7708             Paul Eggert  <eggert@cs.ucla.edu>
7709
7710         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
7711
7712 2006-11-26  Bruno Haible  <bruno@clisp.org>
7713
7714         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
7715         noinst_LTLIBRARIES.
7716
7717 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
7718             Bruno Haible  <bruno@clisp.org>
7719
7720         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
7721         if compiling with "gcc -ansi".
7722
7723 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
7724
7725         Fix some incompatibilities with gcc -ansi -pedantic.
7726         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
7727         if compiling pedantically with GCC, unless it's C99 or later.
7728         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
7729         it mishandles gcc -ansi -pedantic as well.
7730         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
7731         if gcc -pedantic.
7732         * lib/regexec.c (check_node_accept_bytes): Don't use auto
7733         initializers for struct if -pedantic, unless it's C99 or later.
7734
7735 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
7736
7737         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
7738         Don't close an fd more than once. Identical atimes indicate
7739         success, not failure.
7740
7741 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
7742
7743         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
7744
7745 2006-11-23  Jim Meyering  <jim@meyering.net>
7746
7747         * build-aux/announce-gen: New file.  From coreutils.
7748
7749 2006-11-22  Jim Meyering  <jim@meyering.net>
7750
7751         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
7752         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
7753         (fts_read): Use a temporary to narrow the overused st_size member
7754         before using it in a switch statement.  Reported by Matthew Woehlke.
7755
7756         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
7757         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
7758
7759 2006-11-20  Bruno Haible  <bruno@clisp.org>
7760
7761         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
7762         changequote instead of pairs of brackets.
7763         Reported by Andreas Schwab <schwab@suse.de>.
7764
7765 2006-11-21  Jim Meyering  <jim@meyering.net>
7766
7767         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
7768         so as to remain compatible with older compilers.
7769         Patch from Michael Deutschmann.
7770
7771 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
7772
7773         * MODULES.html.sh (File system functions): Add openat.
7774
7775         * lib/openat.h (rpl_fstatat): New macro, if
7776         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
7777         (fstatat): Define to rpl_fstatat under the same conditions,
7778         unless COMPILING_FSTATAT.
7779         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
7780         seems to have the bug.
7781         * lib/fstatat.c: New file.
7782         * modules/openat (Files): Add it.
7783
7784 2006-11-20  Bruno Haible  <bruno@clisp.org>
7785
7786         * Makefile: New file.
7787
7788 2006-11-20  Jim Meyering  <jim@meyering.net>
7789
7790         The beginnings of syntax-related checks for gnulib.
7791         * lib/Makefile: New file.
7792         * lib/t-idcache: New script.  Ensure that the two halves of
7793         idcache.c stay in sync.
7794
7795         * lib/idcache.c: Adjust comments in user- and group- portions to
7796         be more accurate, and to be consistent with one another.
7797
7798 2006-11-20  Jim Meyering  <jim@meyering.net>
7799
7800         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
7801         continue using the flexible array member (thus, this module performs
7802         half as many malloc calls), with the addition that...
7803         (getgroup, getuser): Consistently record a non-match via an empty
7804         "name" string, and map an empty string match to a NULL return value.
7805         * modules/idcache (Depends-on): Re-add flexmember.
7806
7807         * lib/idcache.c (getuser): Remove all uses of the register keyword.
7808         (getuidbyname, getgroup, getgidbyname): Likewise.
7809
7810         Use cleaner syntax: NULL rather than 0.
7811         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
7812
7813 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
7814
7815         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
7816         It mishandled the case where the group was missing.
7817         Problem reported by Greg Schafer.
7818         * modules/idcache: Likewise.
7819
7820 2006-11-18  Jim Meyering  <jim@meyering.net>
7821
7822         * check-module (%exempt_header): Add exception for some
7823         conditionally-included headers.
7824
7825         * modules/i-ring (Depends-on): Add verify.
7826         (License): Change to LGPL.
7827
7828 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
7829
7830         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
7831         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
7832         and inttostr.h.  Use snprintf rather than uinttostr, so that
7833         LGPLed code doesn't depend on GPLed.
7834
7835 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
7836
7837         * modules/inline (License): Change from GPL to LGPL.
7838
7839 2006-11-17  Jim Meyering  <jim@meyering.net>
7840
7841         * modules/d-type (License): Switch to LGPL.
7842
7843 2006-11-15  Bruno Haible  <bruno@clisp.org>
7844
7845         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
7846
7847 2006-11-15  Eric Blake  <ebb9@byu.net>
7848
7849         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
7850         the module dependency.
7851
7852 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
7853             Bruno Haible  <bruno@clisp.org>
7854
7855         * gnulib-tool (func_create_testdir): Add license consistency check.
7856
7857 2006-11-15  Eric Blake  <ebb9@byu.net>
7858
7859         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
7860         random "(cached)" in configure output.
7861
7862 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7863
7864         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
7865         test for conforming inttypes.h is both announced and cached.
7866
7867         * MODULES.html.sh (seen_modules, seen_files): New variables.
7868         (func_module): Rewrite to use a few less gnulib-tool and sed
7869         invocations.  Avoid a couple of quadratic algorithms for ...
7870         (missed_modules, missed_files): ... these, with ...
7871         (func_append, func_tmpdir): ... these new functions, from
7872         gnulib-tool.  Analogously, install traps for cleanup.
7873
7874         * tests/test-gc.c (main): Remove unused variables.
7875         * tests/test-read-file.c: Include stdlib.h, for 'free'.
7876
7877 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
7878
7879         * modules/inttostr (License): Change to LGPL.
7880
7881 2006-11-14  Eric Blake  <ebb9@byu.net>
7882
7883         * modules/tempname (License): Change to LGPL.
7884
7885 2006-11-14  Eric Blake  <ebb9@byu.net>
7886
7887         * doc/functions.texi (Function Portability): *printf functions on
7888         Cygwin now understand all POSIX size specifiers.
7889
7890 2006-11-14  Bruno Haible  <bruno@clisp.org>
7891
7892         * modules/c-ctype (License): Change to LGPL.
7893
7894 2006-11-12  Bruno Haible  <bruno@clisp.org>
7895
7896         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
7897         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
7898         for GNOME libraries, for which the include files are installed in
7899         subdirectories of $prefix/include.
7900
7901 2006-11-12  Bruno Haible  <bruno@clisp.org>
7902
7903         * m4/lib-link.m4: Require at least autoconf-2.54.
7904         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
7905         name to underscores for the --with option.
7906
7907 2006-11-13  Bruno Haible  <bruno@clisp.org>
7908
7909         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
7910         the tests directory.
7911         Reported by Ralf Wildenhues.
7912
7913 2006-11-13  Bruno Haible  <bruno@clisp.org>
7914
7915         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
7916         (func_emit_initmacro_end): Undo the override here.
7917         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
7918         Works around the famous automake error in coreutils.
7919
7920 2006-11-13  Eric Blake  <ebb9@byu.net>
7921
7922         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
7923         element, not its node.
7924
7925 2006-11-12  Bruno Haible  <bruno@clisp.org>
7926
7927         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
7928         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
7929
7930 2006-11-12  Bruno Haible  <bruno@clisp.org>
7931
7932         * gnulib-tool: New option --local-symlink.
7933         (func_usage): Document it.
7934         (lsymbolic): New variable.
7935         (func_import, func_create_testdir): If --symlink was not specified,
7936         test whether --local-symlink was specified and the file comes from
7937         the local_gnulib_dir.
7938
7939 2006-11-12  Bruno Haible  <bruno@clisp.org>
7940
7941         * gnulib-tool (func_ln): New function.
7942         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
7943
7944 2006-11-12  Bruno Haible  <bruno@clisp.org>
7945
7946         Finish support for source files in subdirectories.
7947         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
7948         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
7949         AUTOMAKE_OPTIONS.
7950         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
7951
7952 2006-11-12  Bruno Haible  <bruno@clisp.org>
7953
7954         * gnulib-tool (func_get_automake_snippet): Synthesize also an
7955         EXTRA_lib_SOURCES augmentation.
7956         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
7957
7958 2006-11-12  Jim Meyering  <jim@meyering.net>
7959
7960         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
7961         file descriptors.  This also averts a failure on systems with
7962         native openat support when a traversed directory lacks "x" access.
7963         * lib/fts_.h: Include "i-ring.h"
7964         (struct FTS) [fts_fd_ring]: New member.
7965         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
7966         (FCHDIR): Add parentheses.
7967         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
7968         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
7969         When descending, rather than simply closing the previous
7970         fts_cwd_fd value, push that file descriptor onto the ring.
7971         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
7972         (fts_open): Initialize the new fd_ring member.
7973         (fts_close): Clear the ring.
7974         (fts_safe_changedir): When possible, use our new fd_ring to skip
7975         the diropen and fstat and dev/ino comparison that would normally
7976         accompany a virtual `chdir ("..")'.
7977
7978         * modules/fts (Depends-on): Add i-ring.
7979         * modules/i-ring: New module.
7980         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
7981         * m4/i-ring.m4: New file.
7982
7983 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7984
7985         * gnulib-tool (func_create_testdir): Fix replacement of
7986         `build-aux' in configure.ac.  Run autotools in gltests
7987         subdirectory.
7988         (func_create_testdir, func_create_megatestdir, test): There is
7989         no need for '--force' in most autotool invocations in a new
7990         tree.  Actually fail the whole test if any of the tools, or the
7991         configure or make stages fail.
7992
7993         Sync from Automake.
7994         * build-aux/gnupload: Revert last change.  Add pointer to upload
7995         instructions of the GNU Maintenance Instructions.
7996         Suggestion by Karl Berry.
7997
7998 2006-11-10  Jim Meyering  <jim@meyering.net>
7999
8000         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
8001
8002 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
8003
8004         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
8005         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
8006         (bind_textdomain_codeset) [! ENABLE_NLS]:
8007         Evaluate all the arguments.  That way, callers get compatible behavior
8008         if the arguments have side effects.  Also, it avoids some GCC
8009         diagnostics in some cases; Joel E. Denny reported problems when Bison
8010         was configured with --enable-gcc-warnigs.
8011
8012 2006-11-10  Jim Meyering  <jim@meyering.net>
8013
8014         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
8015         relevant options in CFLAGS (like -O, -fno-inline) are taken into
8016         account.
8017
8018 2006-11-10  Jim Meyering  <jim@meyering.net>
8019
8020         * modules/inline: New file/module.
8021         * modules/xalloc (Files): Remove m4/inline.m4.
8022         (Depends-on): Add inline, instead.
8023         * modules/oset: Likewise.
8024         * modules/list: Likewise.
8025
8026 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
8027
8028         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
8029         Problem reported by Matthew Woehlke.
8030
8031 2006-11-09  Bruno Haible  <bruno@clisp.org>
8032
8033         * lib/tempname.c (gen_tempname): Remove variant that invokes
8034         __gen_tempname.
8035         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
8036         __gen_tempname.
8037
8038 2006-11-08  Bruno Haible  <bruno@clisp.org>
8039
8040         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
8041         to 'yes' instead of 'cross-compiling'.
8042
8043 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
8044
8045         * lib/quotearg.h (quotearg_free): New decl.
8046         * lib/quotearg.c (quotearg_free): New function.
8047         (slot0, nslots, slotvec0, slotvec):
8048         Now file-scope so that quotearg_free can get at them.
8049
8050 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8051
8052         Sync from Automake.
8053         * build-aux/gnupload: Add missing 'gnu' to example URL.
8054         Report by Karl Berry.
8055
8056 2006-11-08  Bruno Haible  <bruno@clisp.org>
8057
8058         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
8059         Suggested by Paul Eggert.
8060
8061 2006-11-08  Jim Meyering  <jim@meyering.net>
8062
8063         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
8064         It's already included if !_LIBC.
8065         (fts_safe_changedir): Add a comment.
8066
8067 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
8068
8069         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
8070         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
8071         Matthew Woehlke.
8072
8073         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
8074         definitions up, to avoid colliding with change below.
8075         (static_inline) [HAVE_INLINE]: New macro.
8076         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
8077         Provide extern decls when !HAVE_INLINE.  Do not define unless
8078         static_inline is defined, either by us or by xmalloc.c.  Use
8079         static_inline rather than static inline.
8080         (XCALLOC): Optimize sizeof(T) = 1 case.
8081         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
8082
8083 2006-11-07  Bruno Haible  <bruno@clisp.org>
8084
8085         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
8086         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
8087         AC_C_INLINE.
8088         * modules/xalloc (Files): Add m4/inline.m4.
8089
8090 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8091
8092         * README: Fix typo.
8093         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
8094         (Miscellanous Notes): ...from this.
8095
8096 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
8097
8098         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
8099         Mention that offsetof should be used instead of sizeof.
8100         From Bruno Haible.
8101
8102 2006-11-07  Bruno Haible  <bruno@clisp.org>
8103
8104         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
8105
8106 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
8107
8108         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
8109         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
8110         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
8111         (gl_tree_add_before, gl_tree_add_after):
8112         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
8113         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
8114         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
8115         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
8116         (gl_linked_add_after, gl_linked_add_at): Likewise.
8117         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
8118         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
8119         (gl_tree_add_before, gl_tree_add_after): Likewise.
8120         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
8121         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
8122         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
8123
8124 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8125
8126         * lib/gl_oset.h: Use C comment style, not C++ comment style.
8127
8128 2006-11-06  Bruno Haible  <bruno@clisp.org>
8129
8130         * m4/inline.m4: New file.
8131         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
8132         * modules/list (Files): Add m4/inline.m4.
8133         * modules/oset (Files): Likewise.
8134
8135 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
8136
8137         * lib/idcache.c: Include <stddef.h>, for offsetof.
8138         (struct userid.name): Change from char * to a flexible array member.
8139         All uses changed.
8140         * modules/idcache (Depends-on): Add flexmember.
8141
8142         * MODULES.html.sh (Core language properties): New module flexmember.
8143         * modules/flexmember, m4/flexmember.m4: New files.
8144
8145         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
8146         inline functions that are identical with the old xnmalloc_inline,
8147         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
8148         that we can avoid some unnecessary integer multiplications and
8149         divisions in the common case where the element size is known at
8150         compile time.
8151         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
8152         needed.
8153         (xnboundedmalloc): Remove.
8154         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
8155         arguments, for consistency with rest of this header.
8156         (xcharalloc): Rewrite using XNMALLOC.
8157         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
8158         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
8159         versions have been moved to lib/xalloc.h and renamed to be the
8160         non-*_inline versions.
8161         (xmalloc, xrealloc): Implement without reference to the xnmalloc
8162         and xnrealloc functions, since those functions are now inline and
8163         now call us.
8164         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
8165         renaming described above.
8166         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
8167         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
8168         captures the dependency in AC_C_INLINE.
8169
8170         New module canonicalize-lgpl, proposed by Charles Wilson in
8171         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
8172         with a few small changes afterwards.
8173         * MODULES.html.sh (File system functions): New module
8174         canonicalize-lgpl.
8175         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
8176         and canonicalize_file_name.
8177         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
8178         * modules/canonicalize-lgpl: New files.
8179
8180 2006-11-05  Bruno Haible  <bruno@clisp.org>
8181
8182         * gnulib-tool (func_import, func_create_testdir): Create directories
8183         also for files in subdirectories of lib/.
8184
8185 2006-11-05  Bruno Haible  <bruno@clisp.org>
8186
8187         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
8188         ANSI C compliant.
8189
8190 2006-11-03  Bruno Haible  <bruno@clisp.org>
8191
8192         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
8193         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
8194         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
8195         (xnboundedmalloc): New inline function.
8196         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
8197         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
8198         xmalloc.
8199         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
8200         xmalloc.
8201         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
8202         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
8203         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
8204         xmalloc.
8205         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
8206         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
8207         xmalloc.
8208         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
8209         gl_tree_add_after): Use XMALLOC instead of xmalloc.
8210         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
8211         xmalloc.
8212         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
8213         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
8214         gl_tree_add_after): Use XMALLOC instead of xmalloc.
8215         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
8216         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
8217         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
8218         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
8219
8220 2006-11-03  Bruno Haible  <bruno@clisp.org>
8221
8222         * lib/c-ctype.h [C++]: Define functions without name mangling.
8223         * lib/fwriteerror.h [C++]: Likewise.
8224         * lib/gcd.h [C++]: Likewise.
8225         * lib/linebreak.h [C++]: Likewise.
8226
8227 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
8228
8229         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
8230         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
8231         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
8232         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
8233         Check for functions and headers just once.
8234         Check for declaration of canonicalize_file_name.
8235         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
8236
8237 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
8238
8239         * gnulib-tool (func_import): Fix typo in actioncmd.
8240
8241 2006-11-02  Bruno Haible  <bruno@clisp.org>
8242
8243         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
8244         newline sequence in the Makefile.am snippet as a space, like "make"
8245         does.
8246         Reported by Roger Persson <perrog@gmail.com>.
8247
8248 2006-11-01  Bruno Haible  <bruno@clisp.org>
8249
8250         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
8251         already declared in <string.h>.
8252         * lib/strcase.h (strncasecmp): Don't declare it if yes.
8253
8254 2006-11-01  Bruno Haible  <bruno@clisp.org>
8255
8256         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
8257         * lib/strcase.h: Include <string.h>.
8258         (strcasecmp): Define to rpl_strcasecmp here.
8259
8260 2006-11-01  Bruno Haible  <bruno@clisp.org>
8261
8262         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
8263
8264 2006-11-01  Eric Blake  <ebb9@byu.net>
8265
8266         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
8267
8268         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
8269
8270 2006-10-29  Bruno Haible  <bruno@clisp.org>
8271
8272         Make it compile in C++ mode.
8273         * lib/full-write.c (full_rw): Add a cast.
8274
8275 2006-11-01  Bruno Haible  <bruno@clisp.org>
8276
8277         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
8278         be POSIX compliant.
8279         Reported by Roger Persson <perrog@gmail.com>.
8280
8281 2006-11-01  Eric Blake  <ebb9@byu.net>
8282
8283         * lib/getopt_.h: Fix comments.
8284
8285 2006-10-31  Eric Blake  <ebb9@byu.net>
8286
8287         * modules/tmpdir (Depends-on): Add sys_stat.
8288         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
8289         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
8290         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
8291         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
8292         tempname.
8293
8294 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
8295
8296         Avoid some C++ diagnostics reported by Bruno Haible.
8297         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
8298         xmalloc.
8299         (quotearg_alloc): Use xcharalloc rather than xmalloc.
8300         (struct slotvec): Move to top level.
8301         (quotearg_n_options): Rewrite to avoid xmalloc.
8302         * lib/xalloc.h (xcharalloc): New function.
8303         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
8304         [defined __cplusplus]: Add function template that provides result
8305         type propagation.  This part of the change is from Bruno Haible.
8306
8307 2006-10-29  Bruno Haible  <bruno@clisp.org>
8308
8309         Make it compile in C++ mode.
8310         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
8311         * lib/strnlen1.c (strnlen1): Cast memchr result.
8312         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
8313         * lib/clean-temp.c (string_equals, string_hash): Add casts.
8314         (create_temp_dir): Rename local variable 'template'.
8315         (compile_csharp_using_sscli): Add cast.
8316         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
8317         * lib/findprog.c (find_in_path): Likewise.
8318         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
8319         * lib/wait-process.c (register_slave_subprocess): Likewise.
8320
8321 2006-10-22  Bruno Haible  <bruno@clisp.org>
8322
8323         * modules/tsearch: New file.
8324         * lib/tsearch.h: New file.
8325         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
8326         * m4/tsearch.m4: New file.
8327         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
8328
8329 2006-10-29  Eric Blake  <ebb9@byu.net>
8330
8331         * lib/arcfour.c: Assume config.h.
8332         * lib/arctwo.c: Likewise.
8333         * lib/base64.c: Likewise.
8334         * lib/check-version.c: Likewise.
8335         * lib/crc.c: Likewise.
8336         * lib/des.c: Likewise.
8337         * lib/gc-gnulib.c: Likewise.
8338         * lib/gc-libgcrypt.c: Likewise.
8339         * lib/gc-pbkdf2-sha1.c: Likewise.
8340         * lib/getaddrinfo.c: Likewise.
8341         * lib/getdelim.c: Likewise.
8342         * lib/getline.c: Likewise.
8343         * lib/hmac-md5.c: Likewise.
8344         * lib/hmac-sha1.c: Likewise.
8345         * lib/iconvme.c: Likewise.
8346         * lib/md2.c: Likewise.
8347         * lib/md4.c: Likewise.
8348         * lib/memxor.c: Likewise.
8349         * lib/read-file.c: Likewise.
8350         * lib/readline.c: Likewise.
8351         * lib/rijndael-alg-fst.c: Likewise.
8352         * lib/rijndael-api-fst.c: Likewise.
8353         * lib/xgetdomainname.c: Likewise.
8354
8355 2006-10-28  Eric Blake  <ebb9@byu.net>
8356
8357         * lib/xstrndup.c: Assume config.h.
8358
8359 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
8360
8361         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
8362         stat-macros.h is now for our own macros, whereas stat_h is for
8363         macros in the <sys/stat.h> name space.
8364         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
8365         (STAT_MACROS_H): Remove.
8366         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
8367         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
8368         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
8369         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
8370         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
8371         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
8372         Move these macros to ...
8373         * lib/stat_.h: here.  Don't include stat-macros.h.
8374         * lib/canonicalize.c: Don't include stat-macros.h.
8375         * lib/chown.c: Likewise.
8376         * lib/euidaccess.c: Likewise.
8377         * lib/file-type.c: Likewise.
8378         * lib/filemode.c: Likewise.
8379         * lib/glob.c: Likewise.
8380         * lib/isapipe.c: Likewise.
8381         * lib/lchown.c: Likewise.
8382         * lib/lstat.c: Likewise.
8383         * lib/mkdir-p.c: Likewise.
8384         * lib/rmdir.c: Likewise.
8385         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
8386         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
8387         unless mkdir isn't declared, to speed up 'configure'.
8388         Always create sys/stat.h, since it's unlikely any real sys/stat.h
8389         would define all the S_* symbols.
8390         * modules/canonicalize (Depends-on):
8391         Depend on sys_stat, not stat-macros.
8392         * modules/chown: Likewise.
8393         * modules/euidaccess: Likewise.
8394         * modules/filemode: Likewise.
8395         * modules/file-type: Likewise.
8396         * modules/glob: Likewise.
8397         * modules/isapipe: Likewise.
8398         * modules/lchown: Likewise.
8399         * modules/lstat: Likewise.
8400         * modules/mkancesdirs: Likewise.
8401         * modules/rmdir: Likewise.
8402         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
8403         * modules/modechange: Likewise.
8404         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
8405         (configure.ac): Remove gl_STAT_MACROS.
8406         * modules/sys_stat (Depends-on): Remove stat-macros.
8407
8408 2006-10-27  Bruno Haible  <bruno@clisp.org>
8409
8410         * m4/signed.m4: Remove file.
8411         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
8412         invocation.
8413         * modules/vasnprintf (Files): Remove m4/signed.m4.
8414
8415 2006-10-27  Bruno Haible  <bruno@clisp.org>
8416
8417         Update to GNU gettext 0.16.
8418         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
8419         m4/inttypes-h.m4, m4/signed.m4.
8420         * m4/gettext.m4: Update to GNU gettext 0.16.
8421         * m4/intl.m4: New file, from GNU gettext.
8422         * m4/intldir.m4: New file, from GNU gettext.
8423         * config/srclist.txt: Update
8424
8425 2006-10-27  Eric Blake  <ebb9@byu.net>
8426
8427         * MODULES.html.sh: Document tempname.
8428         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
8429         dependencies.
8430         (Files): Move lib/tempname.c...
8431         * modules/tempname: ...to this new module.
8432         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
8433         (gl_PREREQ_TEMPNAME): Move...
8434         * m4/tempname.m4: ...to this new file.
8435         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
8436         * modules/sys_stat (Depends-on): Add stat-macros.
8437         * lib/stat_.h (includes): Pick up stat macros.
8438         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
8439         if stat macros are broken.
8440         * lib/tempname.c (includes): No need to include "stat-macros.h".
8441         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
8442         (direxists, __path_search) [!_LIBC]: Don't compile these in
8443         gnulib; the tmpdir module covers that.
8444         * lib/tempname.h: New file.
8445
8446 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
8447
8448         * COPYING: Explain how gnulib-tool converts licence headers.
8449         Almost all wording by Eric Blake.
8450
8451 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
8452
8453         * lib/mbchar.h (is_basic_table): Make read-only.
8454         * lib/mbchar.c (is_basic_table): Likewise.
8455         Reported by John Darrington.
8456
8457 2006-10-25  Bruno Haible  <bruno@clisp.org>
8458
8459         * lib/progname.h (set_program_name): Undefine before defining.
8460
8461 2006-10-25  Bruno Haible  <bruno@clisp.org>
8462
8463         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
8464         false for non-gcc C++ compilers.
8465         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
8466
8467 2006-10-24  Bruno Haible  <bruno@clisp.org>
8468
8469         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
8470         iconv implementations like Irix iconv.
8471
8472 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
8473
8474         * modules/vararrays: New file.
8475         * m4/vararrays.m4: New file, taken from diffutils.
8476         * MODULES.html.sh: New module vararrays.
8477
8478 2006-10-24  Karl Berry  <karl@gnu.org>
8479
8480         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
8481         Don't call GNU Unix.
8482
8483 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8484
8485         * users.txt: Add Libtool.
8486
8487         Sync from Libtool:
8488
8489         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
8490
8491         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
8492         to gnulib's policy of including config.h unconditionally.
8493
8494 2006-10-24  Bruno Haible  <bruno@clisp.org>
8495
8496         * modules/wcwidth (Files): Add m4/wint_t.m4.
8497         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
8498         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
8499
8500 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
8501
8502         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
8503         to pacify GCC with some -W flags enabled.  Problem reported by
8504         Bruno Haible.
8505
8506 2006-10-24  Jim Meyering  <jim@meyering.net>
8507
8508         * MODULES.html.sh: Remove uinttostr.  It's not a module.
8509         Reported by Karl Berry.
8510
8511 2006-10-23  Bruno Haible  <bruno@clisp.org>
8512
8513         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
8514
8515 2006-10-24  Bruno Haible  <bruno@clisp.org>
8516
8517         * lib/gl_list.h: Use C comment style, not C++ comment style.
8518
8519 2006-10-23  Eric Blake  <ebb9@byu.net>
8520
8521         * lib/getaddrinfo.c (includes): Add missing include.
8522
8523 2006-10-23  Bruno Haible  <bruno@clisp.org>
8524             Paul Eggert  <eggert@cs.ucla.edu>
8525
8526         Ability to rename obstack_free.
8527         * lib/obstack.h (__obstack_free): New macro. Declare instead of
8528         obstack_free.
8529         (obstack_free): Invoke the __obstack_free macro.
8530         * lib/obstack.c (obstack_free): Use __obstack_free macro.
8531
8532 2006-10-23  Bruno Haible  <bruno@clisp.org>
8533             Paul Eggert  <eggert@cs.ucla.edu>
8534
8535         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
8536         __argc, __argv from the declaration. (They are defined as macros on
8537         mingw.)
8538
8539 2006-10-22  Bruno Haible  <bruno@clisp.org>
8540
8541         * doc/gnulib-intro.texi: New file.
8542         * doc/gnulib.texi: Include it.
8543
8544 2006-10-21  Bruno Haible  <bruno@clisp.org>
8545
8546         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
8547         "Introduction", "Miscellanous Notes", "Particular Modules".
8548
8549 2006-10-21  Bruno Haible  <bruno@clisp.org>
8550
8551         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
8552         Change mostlyclean-local rule to avoid sh syntax error from bash
8553         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
8554
8555 2006-10-23  Jim Meyering  <jim@meyering.net>
8556
8557         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
8558         in place of snprintf.
8559
8560         * modules/inttostr (Files): Add lib/uinttostr.c.
8561         * lib/uinttostr.c (inttostr): New file/function.
8562         * lib/inttostr.h (uinttostr): Declare.
8563         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
8564         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
8565         Add uinttostr.
8566         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
8567
8568 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
8569
8570         * lib/canonicalize.c (ELOOP): Define if not already defined.
8571         Problem reported by Bruno Haible in
8572         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
8573
8574 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
8575
8576         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
8577         Problem reported by Perry Smith and Ville Laurikari.
8578
8579         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
8580         uses.
8581
8582 2006-10-19  Bruno Haible  <bruno@clisp.org>
8583
8584         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
8585         for mingw.
8586
8587 2006-10-19  Bruno Haible  <bruno@clisp.org>
8588
8589         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
8590         Needed for mingw.
8591
8592 2006-10-19  Bruno Haible  <bruno@clisp.org>
8593
8594         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
8595
8596 2006-10-19  Bruno Haible  <bruno@clisp.org>
8597
8598         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
8599         it.
8600
8601 2006-10-19  Bruno Haible  <bruno@clisp.org>
8602
8603         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
8604         invocation.
8605
8606 2006-10-19  Bruno Haible  <bruno@clisp.org>
8607
8608         * gnulib-tool (func_create_testdir): Don't include ftruncate and
8609         mountlist by default.
8610
8611 2006-10-16  Bruno Haible  <bruno@clisp.org>
8612
8613         * lib/c-strstr.c: Include c-strstr.h.
8614
8615 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
8616
8617         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
8618         in a slash.
8619
8620 2006-10-18  Bruno Haible  <bruno@clisp.org>
8621
8622         * lib/lock.h [C++]: Wrap definitions in extern "C".
8623
8624 2006-10-18  Bruno Haible  <bruno@clisp.org>
8625
8626         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
8627         gl_LIBOBJS list.
8628
8629 2006-10-18  Bruno Haible  <bruno@clisp.org>
8630
8631         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
8632
8633 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
8634
8635         * lib/xstrtol.h: Include gettext.h.
8636         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
8637         Problem reported by Eric Blake.
8638         * modules/xstrtol (Depends-on): Add gettext-h.
8639
8640 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
8641
8642         * lib/strftime.c (advance): New macro.
8643         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
8644         incomplete type, so you can't add 0 to it.  Problem and patch
8645         reported by Eelco Dolstra for dietlibc.
8646
8647 2006-10-18  Jim Meyering  <jim@meyering.net>
8648
8649         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
8650         type for a local, and rename it: s/up/user_proc/.
8651
8652 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
8653
8654         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
8655         READ_UTMP_USER_PROCESS.
8656         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
8657
8658 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
8659
8660         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
8661         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
8662
8663 2006-10-17  Eric Blake  <ebb9@byu.net>
8664
8665         * lib/sigprocmask.c (sigprocmask): Fix typo.
8666
8667         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
8668
8669         * modules/clean-temp (Makefile.am): Don't add to make output...
8670         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
8671         config.h.
8672
8673 2006-10-17  Bruno Haible  <bruno@clisp.org>
8674
8675         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
8676         differently if DEFAULT_TEXT_DOMAIN is set.
8677
8678 2006-10-16  Bruno Haible  <bruno@clisp.org>
8679
8680         * lib/clean-temp.c: Include fwriteerror.h.
8681
8682 2006-10-16  Bruno Haible  <bruno@clisp.org>
8683
8684         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
8685
8686 2006-10-16  Bruno Haible  <bruno@clisp.org>
8687
8688         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
8689         * lib/sigprocmask.h: Include <sys/types.h>.
8690         (sigset_t): Use the system's definition if present.
8691
8692 2006-10-17  Eric Blake  <ebb9@byu.net>
8693
8694         * lib/xvasprintf.c (includes): Assume config.h.
8695         * lib/xasprintf.c (includes): Likewise.
8696
8697 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
8698
8699         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
8700         at least as wide as intmax_t.
8701
8702 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
8703
8704         (Imported from Automake.)
8705         * build-aux/gnupload: Update to version 1.1 of directive file.
8706
8707 2006-10-16  Eric Blake  <ebb9@byu.net>
8708
8709         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
8710         match Automake 1.10a.
8711
8712 2006-10-14  Bruno Haible  <bruno@clisp.org>
8713
8714         * modules/sigprocmask: New file.
8715         * lib/sigprocmask.h: New file.
8716         * lib/sigprocmask.c: New file.
8717         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
8718         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
8719         request sigprocmask.o.
8720         (gl_PREREQ_SIGPROCMASK): New macro.
8721         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
8722         (Depends-on): Add sigprocmask.
8723         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
8724         gt_SIGNALBLOCKING. Test for 'raise' only once.
8725         * lib/fatal-signal.c: Include sigprocmask.h.
8726         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
8727         unblock_fatal_signals): Define always.
8728         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
8729         sigprocmask.
8730
8731 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
8732
8733         Sync from Automake.
8734         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
8735         which incorrectly sets the mode of an existing destination
8736         directory.  In some cases the unpatched install-sh could do the
8737         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
8738         system.  We hope this is rare in practice, but it's clearly worth
8739         fixing.  Problem reported by Alex Unleashed in
8740         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
8741         Also, don't bother to check for -m bugs unless we're using -m;
8742         suggested by Stepan Kasal.
8743
8744 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8745
8746         Sync from Automake.
8747         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
8748         `-c' flag, so they appear at the same position as in %FASTDEP%
8749         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
8750         which ignores unknown options only after the first non-option.
8751         Bug report against M4 by Nelson H. F. Beebe.
8752
8753 2006-10-13  Jim Meyering  <jim@meyering.net>
8754
8755         Fix a bug in yesterday's change.
8756         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
8757         p->fts_statp->st_dev would be used uninitialized.
8758         Ensures that we always call fts_stat on the very first entry.
8759         Miklos Szeredi reported that find -xdev stopped working.
8760
8761 2006-10-12  Bruno Haible  <bruno@clisp.org>
8762
8763         * gnulib-tool (func_get_automake_snippet): Append an automatically
8764         computed EXTRA_DIST augmentation.
8765         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
8766         * modules/alloca-opt (Makefile.am): Likewise.
8767         * modules/allocsa (Makefile.am): Likewise.
8768         * modules/arcfour (Makefile.am): Likewise.
8769         * modules/arctwo (Makefile.am): Likewise.
8770         * modules/argmatch (Makefile.am): Likewise.
8771         * modules/argz (Makefile.am): Likewise.
8772         * modules/atexit (Makefile.am): Likewise.
8773         * modules/backupfile (Makefile.am): Likewise.
8774         * modules/byteswap (Makefile.am): Likewise.
8775         * modules/c-strtod (Makefile.am): Likewise.
8776         * modules/c-strtold (Makefile.am): Likewise.
8777         * modules/calloc (Makefile.am): Likewise.
8778         * modules/canon-host (Makefile.am): Likewise.
8779         * modules/canonicalize (Makefile.am): Likewise.
8780         * modules/chdir-long (Makefile.am): Likewise.
8781         * modules/chdir-safer (Makefile.am): Likewise.
8782         * modules/check-version (Makefile.am): Likewise.
8783         * modules/chown (Makefile.am): Likewise.
8784         * modules/cloexec (Makefile.am): Likewise.
8785         * modules/close-stream (Makefile.am): Likewise.
8786         * modules/closeout (Makefile.am): Likewise.
8787         * modules/crc (Makefile.am): Likewise.
8788         * modules/csharpexec (Makefile.am): Likewise.
8789         * modules/cycle-check (Makefile.am): Likewise.
8790         * modules/des (Makefile.am): Likewise.
8791         * modules/dev-ino (Makefile.am): Likewise.
8792         * modules/dirfd (Makefile.am): Likewise.
8793         * modules/dirname (Makefile.am): Likewise.
8794         * modules/dup2 (Makefile.am): Likewise.
8795         * modules/eealloc (Makefile.am): Likewise.
8796         * modules/error (Makefile.am): Likewise.
8797         * modules/euidaccess (Makefile.am): Likewise.
8798         * modules/exclude (Makefile.am): Likewise.
8799         * modules/exitfail (Makefile.am): Likewise.
8800         * modules/fcntl-safer (Makefile.am): Likewise.
8801         * modules/fcntl (Makefile.am): Likewise.
8802         * modules/file-type (Makefile.am): Likewise.
8803         * modules/fileblocks (Makefile.am): Likewise.
8804         * modules/filemode (Makefile.am): Likewise.
8805         * modules/filenamecat (Makefile.am): Likewise.
8806         * modules/fnmatch (Makefile.am): Likewise.
8807         * modules/fopen-safer (Makefile.am): Likewise.
8808         * modules/fpending (Makefile.am): Likewise.
8809         * modules/fprintftime (Makefile.am): Likewise.
8810         * modules/free (Makefile.am): Likewise.
8811         * modules/fsusage (Makefile.am): Likewise.
8812         * modules/ftruncate (Makefile.am): Likewise.
8813         * modules/fts (Makefile.am): Likewise.
8814         * modules/gc-arcfour (Makefile.am): Likewise.
8815         * modules/gc-des (Makefile.am): Likewise.
8816         * modules/gc-hmac-md5 (Makefile.am): Likewise.
8817         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
8818         * modules/gc-md4 (Makefile.am): Likewise.
8819         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
8820         * modules/gc-sha1 (Makefile.am): Likewise.
8821         * modules/gc (Makefile.am): Likewise.
8822         * modules/getaddrinfo (Makefile.am): Likewise.
8823         * modules/getcwd (Makefile.am): Likewise.
8824         * modules/getdelim (Makefile.am): Likewise.
8825         * modules/getdomainname (Makefile.am): Likewise.
8826         * modules/getgroups (Makefile.am): Likewise.
8827         * modules/gethostname (Makefile.am): Likewise.
8828         * modules/gethrxtime (Makefile.am): Likewise.
8829         * modules/getline (Makefile.am): Likewise.
8830         * modules/getloadavg (Makefile.am): Likewise.
8831         * modules/getlogin_r (Makefile.am): Likewise.
8832         * modules/getndelim2 (Makefile.am): Likewise.
8833         * modules/getopt (Makefile.am): Likewise.
8834         * modules/getpagesize (Makefile.am): Likewise.
8835         * modules/getpass-gnu (Makefile.am): Likewise.
8836         * modules/getpass (Makefile.am): Likewise.
8837         * modules/getsubopt (Makefile.am): Likewise.
8838         * modules/gettime (Makefile.am): Likewise.
8839         * modules/gettimeofday (Makefile.am): Likewise.
8840         * modules/getugroups (Makefile.am): Likewise.
8841         * modules/getusershell (Makefile.am): Likewise.
8842         * modules/glob (Makefile.am): Likewise.
8843         * modules/group-member (Makefile.am): Likewise.
8844         * modules/hard-locale (Makefile.am): Likewise.
8845         * modules/hash (Makefile.am): Likewise.
8846         * modules/hmac-md5 (Makefile.am): Likewise.
8847         * modules/hmac-sha1 (Makefile.am): Likewise.
8848         * modules/human (Makefile.am): Likewise.
8849         * modules/idcache (Makefile.am): Likewise.
8850         * modules/imaxabs (Makefile.am): Likewise.
8851         * modules/imaxdiv (Makefile.am): Likewise.
8852         * modules/inet_ntop (Makefile.am): Likewise.
8853         * modules/inet_pton (Makefile.am): Likewise.
8854         * modules/intprops (Makefile.am): Likewise.
8855         * modules/inttostr (Makefile.am): Likewise.
8856         * modules/inttypes (Makefile.am): Likewise.
8857         * modules/isapipe (Makefile.am): Likewise.
8858         * modules/javaversion (Makefile.am): Likewise.
8859         * modules/lchmod (Makefile.am): Likewise.
8860         * modules/lchown (Makefile.am): Likewise.
8861         * modules/localcharset (Makefile.am): Likewise.
8862         * modules/long-options (Makefile.am): Likewise.
8863         * modules/lstat (Makefile.am): Likewise.
8864         * modules/malloc (Makefile.am): Likewise.
8865         * modules/mathl (Makefile.am): Likewise.
8866         * modules/mbchar (Makefile.am): Likewise.
8867         * modules/md2 (Makefile.am): Likewise.
8868         * modules/md4 (Makefile.am): Likewise.
8869         * modules/md5 (Makefile.am): Likewise.
8870         * modules/memcasecmp (Makefile.am): Likewise.
8871         * modules/memchr (Makefile.am): Likewise.
8872         * modules/memcmp (Makefile.am): Likewise.
8873         * modules/memcoll (Makefile.am): Likewise.
8874         * modules/memcpy (Makefile.am): Likewise.
8875         * modules/memmem (Makefile.am): Likewise.
8876         * modules/memmove (Makefile.am): Likewise.
8877         * modules/mempcpy (Makefile.am): Likewise.
8878         * modules/memrchr (Makefile.am): Likewise.
8879         * modules/memset (Makefile.am): Likewise.
8880         * modules/memxor (Makefile.am): Likewise.
8881         * modules/mkancesdirs (Makefile.am): Likewise.
8882         * modules/mkdir-p (Makefile.am): Likewise.
8883         * modules/mkdir (Makefile.am): Likewise.
8884         * modules/mkdtemp (Makefile.am): Likewise.
8885         * modules/mkstemp (Makefile.am): Likewise.
8886         * modules/mktime (Makefile.am): Likewise.
8887         * modules/modechange (Makefile.am): Likewise.
8888         * modules/mountlist (Makefile.am): Likewise.
8889         * modules/nanosleep (Makefile.am): Likewise.
8890         * modules/obstack (Makefile.am): Likewise.
8891         * modules/openat (Makefile.am): Likewise.
8892         * modules/pagealign_alloc (Makefile.am): Likewise.
8893         * modules/pathmax (Makefile.am): Likewise.
8894         * modules/physmem (Makefile.am): Likewise.
8895         * modules/poll (Makefile.am): Likewise.
8896         * modules/posixtm (Makefile.am): Likewise.
8897         * modules/posixver (Makefile.am): Likewise.
8898         * modules/putenv (Makefile.am): Likewise.
8899         * modules/quote (Makefile.am): Likewise.
8900         * modules/quotearg (Makefile.am): Likewise.
8901         * modules/raise (Makefile.am): Likewise.
8902         * modules/read-file (Makefile.am): Likewise.
8903         * modules/readline (Makefile.am): Likewise.
8904         * modules/readlink (Makefile.am): Likewise.
8905         * modules/readtokens (Makefile.am): Likewise.
8906         * modules/readutmp (Makefile.am): Likewise.
8907         * modules/realloc (Makefile.am): Likewise.
8908         * modules/regex (Makefile.am): Likewise.
8909         * modules/rename-dest-slash (Makefile.am): Likewise.
8910         * modules/rename (Makefile.am): Likewise.
8911         * modules/rijndael (Makefile.am): Likewise.
8912         * modules/rmdir (Makefile.am): Likewise.
8913         * modules/rpmatch (Makefile.am): Likewise.
8914         * modules/safe-read (Makefile.am): Likewise.
8915         * modules/safe-write (Makefile.am): Likewise.
8916         * modules/same-inode (Makefile.am): Likewise.
8917         * modules/same (Makefile.am): Likewise.
8918         * modules/save-cwd (Makefile.am): Likewise.
8919         * modules/savedir (Makefile.am): Likewise.
8920         * modules/setenv (Makefile.am): Likewise.
8921         * modules/settime (Makefile.am): Likewise.
8922         * modules/sha1 (Makefile.am): Likewise.
8923         * modules/sig2str (Makefile.am): Likewise.
8924         * modules/snprintf (Makefile.am): Likewise.
8925         * modules/stat-macros (Makefile.am): Likewise.
8926         * modules/stat-time (Makefile.am): Likewise.
8927         * modules/stdbool (Makefile.am): Likewise.
8928         * modules/stdint (Makefile.am): Likewise.
8929         * modules/stdlib-safer (Makefile.am): Likewise.
8930         * modules/stpcpy (Makefile.am): Likewise.
8931         * modules/stpncpy (Makefile.am): Likewise.
8932         * modules/strcase (Makefile.am): Likewise.
8933         * modules/strcasestr (Makefile.am): Likewise.
8934         * modules/strchrnul (Makefile.am): Likewise.
8935         * modules/strcspn (Makefile.am): Likewise.
8936         * modules/strdup (Makefile.am): Likewise.
8937         * modules/strerror (Makefile.am): Likewise.
8938         * modules/strftime (Makefile.am): Likewise.
8939         * modules/strndup (Makefile.am): Likewise.
8940         * modules/strnlen (Makefile.am): Likewise.
8941         * modules/strpbrk (Makefile.am): Likewise.
8942         * modules/strsep (Makefile.am): Likewise.
8943         * modules/strstr (Makefile.am): Likewise.
8944         * modules/strtod (Makefile.am): Likewise.
8945         * modules/strtoimax (Makefile.am): Likewise.
8946         * modules/strtok_r (Makefile.am): Likewise.
8947         * modules/strtol (Makefile.am): Likewise.
8948         * modules/strtoll (Makefile.am): Likewise.
8949         * modules/strtoul (Makefile.am): Likewise.
8950         * modules/strtoull (Makefile.am): Likewise.
8951         * modules/strtoumax (Makefile.am): Likewise.
8952         * modules/strverscmp (Makefile.am): Likewise.
8953         * modules/sys_socket (Makefile.am): Likewise.
8954         * modules/sys_stat (Makefile.am): Likewise.
8955         * modules/sysexits (Makefile.am): Likewise.
8956         * modules/time_r (Makefile.am): Likewise.
8957         * modules/timegm (Makefile.am): Likewise.
8958         * modules/timespec (Makefile.am): Likewise.
8959         * modules/tmpfile-safer (Makefile.am): Likewise.
8960         * modules/trim (Makefile.am): Likewise.
8961         * modules/unistd-safer (Makefile.am): Likewise.
8962         * modules/unlinkdir (Makefile.am): Likewise.
8963         * modules/unlocked-io (Makefile.am): Likewise.
8964         * modules/userspec (Makefile.am): Likewise.
8965         * modules/utime (Makefile.am): Likewise.
8966         * modules/utimecmp (Makefile.am): Likewise.
8967         * modules/utimens (Makefile.am): Likewise.
8968         * modules/vasnprintf (Makefile.am): Likewise.
8969         * modules/vasprintf (Makefile.am): Likewise.
8970         * modules/vsnprintf (Makefile.am): Likewise.
8971         * modules/xalloc (Makefile.am): Likewise.
8972         * modules/xgetcwd (Makefile.am): Likewise.
8973         * modules/xnanosleep (Makefile.am): Likewise.
8974         * modules/xreadlink (Makefile.am): Likewise.
8975         * modules/xstrtod (Makefile.am): Likewise.
8976         * modules/xstrtol (Makefile.am): Likewise.
8977         * modules/xstrtold (Makefile.am): Likewise.
8978         * modules/yesno (Makefile.am): Likewise.
8979         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
8980
8981 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
8982
8983         * modules/error (Makefile.am): Distribute files through
8984         EXTRA_DIST, not lib_SOURCES.
8985
8986 2006-10-12  Eric Blake  <ebb9@byu.net>
8987
8988         * modules/error (Makefile.am): Distribute files in /lib.
8989         * modules/obstack (Makefile.am): Likewise.
8990
8991 2006-10-12  Bruno Haible  <bruno@clisp.org>
8992
8993         * modules/acl (Makefile.am): Distribute all files in lib/ through
8994         EXTRA_DIST.
8995         * modules/arcfour (Makefile.am): Likewise.
8996         * modules/arctwo (Makefile.am): Likewise.
8997         * modules/argmatch (Makefile.am): Likewise.
8998         * modules/argz (Makefile.am): Likewise.
8999         * modules/atexit (Makefile.am): Likewise.
9000         * modules/backupfile (Makefile.am): Likewise.
9001         * modules/c-strtod (Makefile.am): Likewise.
9002         * modules/c-strtold (Makefile.am): Likewise.
9003         * modules/calloc (Makefile.am): Likewise.
9004         * modules/canon-host (Makefile.am): Likewise.
9005         * modules/canonicalize (Makefile.am): Likewise.
9006         * modules/chdir-long (Makefile.am): Likewise.
9007         * modules/chdir-safer (Makefile.am): Likewise.
9008         * modules/check-version (Makefile.am): Likewise.
9009         * modules/chown (Makefile.am): Likewise.
9010         * modules/cloexec (Makefile.am): Likewise.
9011         * modules/close-stream (Makefile.am): Likewise.
9012         * modules/closeout (Makefile.am): Likewise.
9013         * modules/crc (Makefile.am): Likewise.
9014         * modules/cycle-check (Makefile.am): Likewise.
9015         * modules/des (Makefile.am): Likewise.
9016         * modules/dirfd (Makefile.am): Likewise.
9017         * modules/dirname (Makefile.am): Likewise.
9018         * modules/dup2 (Makefile.am): Likewise.
9019         * modules/euidaccess (Makefile.am): Likewise.
9020         * modules/exclude (Makefile.am): Likewise.
9021         * modules/exitfail (Makefile.am): Likewise.
9022         * modules/fcntl-safer (Makefile.am): Likewise.
9023         * modules/file-type (Makefile.am): Likewise.
9024         * modules/fileblocks (Makefile.am): Likewise.
9025         * modules/filemode (Makefile.am): Likewise.
9026         * modules/filenamecat (Makefile.am): Likewise.
9027         * modules/fnmatch (Makefile.am): Likewise.
9028         * modules/fopen-safer (Makefile.am): Likewise.
9029         * modules/fpending (Makefile.am): Likewise.
9030         * modules/fprintftime (Makefile.am): Likewise.
9031         * modules/free (Makefile.am): Likewise.
9032         * modules/fsusage (Makefile.am): Likewise.
9033         * modules/ftruncate (Makefile.am): Likewise.
9034         * modules/fts (Makefile.am): Likewise.
9035         * modules/gc (Makefile.am): Likewise.
9036         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
9037         * modules/getaddrinfo (Makefile.am): Likewise.
9038         * modules/getcwd (Makefile.am): Likewise.
9039         * modules/getdelim (Makefile.am): Likewise.
9040         * modules/getdomainname (Makefile.am): Likewise.
9041         * modules/getgroups (Makefile.am): Likewise.
9042         * modules/gethostname (Makefile.am): Likewise.
9043         * modules/gethrxtime (Makefile.am): Likewise.
9044         * modules/getline (Makefile.am): Likewise.
9045         * modules/getloadavg (Makefile.am): Likewise.
9046         * modules/getlogin_r (Makefile.am): Likewise.
9047         * modules/getopt (Makefile.am): Likewise.
9048         * modules/getpass (Makefile.am): Likewise.
9049         * modules/getpass-gnu (Makefile.am): Likewise.
9050         * modules/getsubopt (Makefile.am): Likewise.
9051         * modules/gettime (Makefile.am): Likewise.
9052         * modules/gettimeofday (Makefile.am): Likewise.
9053         * modules/getugroups (Makefile.am): Likewise.
9054         * modules/getusershell (Makefile.am): Likewise.
9055         * modules/glob (Makefile.am): Likewise.
9056         * modules/group-member (Makefile.am): Likewise.
9057         * modules/hard-locale (Makefile.am): Likewise.
9058         * modules/hash (Makefile.am): Likewise.
9059         * modules/hmac-md5 (Makefile.am): Likewise.
9060         * modules/hmac-sha1 (Makefile.am): Likewise.
9061         * modules/human (Makefile.am): Likewise.
9062         * modules/idcache (Makefile.am): Likewise.
9063         * modules/imaxabs (Makefile.am): Likewise.
9064         * modules/imaxdiv (Makefile.am): Likewise.
9065         * modules/inet_ntop (Makefile.am): Likewise.
9066         * modules/inet_pton (Makefile.am): Likewise.
9067         * modules/inttostr (Makefile.am): Likewise.
9068         * modules/isapipe (Makefile.am): Likewise.
9069         * modules/lchown (Makefile.am): Likewise.
9070         * modules/long-options (Makefile.am): Likewise.
9071         * modules/lstat (Makefile.am): Likewise.
9072         * modules/malloc (Makefile.am): Likewise.
9073         * modules/mathl (Makefile.am): Likewise.
9074         * modules/mbchar (Makefile.am): Likewise.
9075         * modules/md2 (Makefile.am): Likewise.
9076         * modules/md4 (Makefile.am): Likewise.
9077         * modules/md5 (Makefile.am): Likewise.
9078         * modules/memcasecmp (Makefile.am): Likewise.
9079         * modules/memchr (Makefile.am): Likewise.
9080         * modules/memcmp (Makefile.am): Likewise.
9081         * modules/memcoll (Makefile.am): Likewise.
9082         * modules/memcpy (Makefile.am): Likewise.
9083         * modules/memmem (Makefile.am): Likewise.
9084         * modules/memmove (Makefile.am): Likewise.
9085         * modules/mempcpy (Makefile.am): Likewise.
9086         * modules/memrchr (Makefile.am): Likewise.
9087         * modules/memset (Makefile.am): Likewise.
9088         * modules/memxor (Makefile.am): Likewise.
9089         * modules/mkancesdirs (Makefile.am): Likewise.
9090         * modules/mkdir (Makefile.am): Likewise.
9091         * modules/mkdir-p (Makefile.am): Likewise.
9092         * modules/mkdtemp (Makefile.am): Likewise.
9093         * modules/mkstemp (Makefile.am): Likewise.
9094         * modules/mktime (Makefile.am): Likewise.
9095         * modules/modechange (Makefile.am): Likewise.
9096         * modules/mountlist (Makefile.am): Likewise.
9097         * modules/nanosleep (Makefile.am): Likewise.
9098         * modules/openat (Makefile.am): Likewise.
9099         * modules/pagealign_alloc (Makefile.am): Likewise.
9100         * modules/physmem (Makefile.am): Likewise.
9101         * modules/poll (Makefile.am): Likewise.
9102         * modules/posixtm (Makefile.am): Likewise.
9103         * modules/posixver (Makefile.am): Likewise.
9104         * modules/putenv (Makefile.am): Likewise.
9105         * modules/quote (Makefile.am): Likewise.
9106         * modules/quotearg (Makefile.am): Likewise.
9107         * modules/raise (Makefile.am): Likewise.
9108         * modules/read-file (Makefile.am): Likewise.
9109         * modules/readline (Makefile.am): Likewise.
9110         * modules/readlink (Makefile.am): Likewise.
9111         * modules/readtokens (Makefile.am): Likewise.
9112         * modules/readutmp (Makefile.am): Likewise.
9113         * modules/realloc (Makefile.am): Likewise.
9114         * modules/regex (Makefile.am): Likewise.
9115         * modules/rename (Makefile.am): Likewise.
9116         * modules/rename-dest-slash (Makefile.am): Likewise.
9117         * modules/rijndael (Makefile.am): Likewise.
9118         * modules/rmdir (Makefile.am): Likewise.
9119         * modules/rpmatch (Makefile.am): Likewise.
9120         * modules/safe-read (Makefile.am): Likewise.
9121         * modules/safe-write (Makefile.am): Likewise.
9122         * modules/same (Makefile.am): Likewise.
9123         * modules/save-cwd (Makefile.am): Likewise.
9124         * modules/savedir (Makefile.am): Likewise.
9125         * modules/setenv (Makefile.am): Likewise.
9126         * modules/settime (Makefile.am): Likewise.
9127         * modules/sha1 (Makefile.am): Likewise.
9128         * modules/sig2str (Makefile.am): Likewise.
9129         * modules/snprintf (Makefile.am): Likewise.
9130         * modules/stdlib-safer (Makefile.am): Likewise.
9131         * modules/stpcpy (Makefile.am): Likewise.
9132         * modules/stpncpy (Makefile.am): Likewise.
9133         * modules/strcase (Makefile.am): Likewise.
9134         * modules/strcasestr (Makefile.am): Likewise.
9135         * modules/strchrnul (Makefile.am): Likewise.
9136         * modules/strcspn (Makefile.am): Likewise.
9137         * modules/strdup (Makefile.am): Likewise.
9138         * modules/strerror (Makefile.am): Likewise.
9139         * modules/strftime (Makefile.am): Likewise.
9140         * modules/strndup (Makefile.am): Likewise.
9141         * modules/strnlen (Makefile.am): Likewise.
9142         * modules/strpbrk (Makefile.am): Likewise.
9143         * modules/strsep (Makefile.am): Likewise.
9144         * modules/strstr (Makefile.am): Likewise.
9145         * modules/strtod (Makefile.am): Likewise.
9146         * modules/strtoimax (Makefile.am): Likewise.
9147         * modules/strtok_r (Makefile.am): Likewise.
9148         * modules/strtol (Makefile.am): Likewise.
9149         * modules/strtoll (Makefile.am): Likewise.
9150         * modules/strtoul (Makefile.am): Likewise.
9151         * modules/strtoull (Makefile.am): Likewise.
9152         * modules/strtoumax (Makefile.am): Likewise.
9153         * modules/strverscmp (Makefile.am): Likewise.
9154         * modules/time_r (Makefile.am): Likewise.
9155         * modules/timegm (Makefile.am): Likewise.
9156         * modules/tmpfile-safer (Makefile.am): Likewise.
9157         * modules/unistd-safer (Makefile.am): Likewise.
9158         * modules/unlinkdir (Makefile.am): Likewise.
9159         * modules/userspec (Makefile.am): Likewise.
9160         * modules/utime (Makefile.am): Likewise.
9161         * modules/utimecmp (Makefile.am): Likewise.
9162         * modules/utimens (Makefile.am): Likewise.
9163         * modules/vasnprintf (Makefile.am): Likewise.
9164         * modules/vasprintf (Makefile.am): Likewise.
9165         * modules/vsnprintf (Makefile.am): Likewise.
9166         * modules/xalloc (Makefile.am): Likewise.
9167         * modules/xgetcwd (Makefile.am): Likewise.
9168         * modules/xnanosleep (Makefile.am): Likewise.
9169         * modules/xreadlink (Makefile.am): Likewise.
9170         * modules/xstrtod (Makefile.am): Likewise.
9171         * modules/xstrtol (Makefile.am): Likewise.
9172         * modules/xstrtold (Makefile.am): Likewise.
9173         * modules/yesno (Makefile.am): Likewise.
9174
9175 2006-10-12  Jim Meyering  <jim@meyering.net>
9176
9177         * m4/getloadavg.m4: Revert the change below.
9178
9179         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
9180         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
9181         fail with a symlink, which is what coreutils' ./bootstrap now
9182         creates by default.
9183
9184 2006-10-12  Bruno Haible  <bruno@clisp.org>
9185
9186         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
9187         mingw.
9188         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
9189         MSVC and mingw explicitly.
9190
9191 2006-10-11  Simon Josefsson  <jas@extundo.com>
9192             Bruno Haible  <bruno@clisp.org>
9193
9194         Add support for multiple gnulib-tool invocations in the scope of a
9195         single configure.ac file.
9196         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
9197         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
9198         with the same contents as the _LIBADD variable.
9199         (func_emit_initmacro_start, func_emit_initmacro_end,
9200         func_emit_initmacro_done): New functions.
9201         (func_import, func_create_testdir): Invoke them. Allow the identifiers
9202         gl_LIBOBJS and gl_LTLIBOBJS.
9203
9204 2006-10-11  Bruno Haible  <bruno@clisp.org>
9205
9206         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
9207         (func_create_testdir): Don't create po/Makefile.am, don't invoke
9208         autoreconf. Instead, invoke autopoint explicitly but move back the
9209         *.m4 files from gnulib.
9210
9211 2006-10-11  Bruno Haible  <bruno@clisp.org>
9212
9213         * gnulib-tool (func_usage): Make module names after --create-testdir
9214         optional.
9215         (func_create_testdir): If no module was specified, use nearly all
9216         modules.
9217
9218 2006-10-12  Jim Meyering  <jim@meyering.net>
9219
9220         Big performance improvement for fts-based tools that use FTS_NOSTAT.
9221         Avoid spurious inode-mismatch problems on non-POSIX file systems.
9222         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
9223         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
9224         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
9225         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
9226         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
9227         (fts_set_stat_required): New function.
9228         (fts_open): Defer the calls to fts_stat, if possible or requested.
9229         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
9230         into fts_stat itself.
9231         (fts_read): Perform any required (deferred) fts_stat call.
9232         (fts_build): Likewise, for the directory we're about to open and read.
9233         In the readdir loop, carefully decide whether each entry will require
9234         an eventual call to fts_stat, using dirent.d_type info if available.
9235         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
9236         a command line argument into this function.  Update all callers.
9237         Map a return value of FTS_DOT to FTS_D for a command line argument.
9238         * modules/fts (Depends-on): Add d-type.  Alphabetize.
9239         Thanks to Miklos Szeredi for his tenacity and for the initial
9240         bug report about "find" failing on a FUSE-based file system.
9241
9242         * lib/fts.c (fts_open): Use consistent indentation.
9243
9244 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
9245
9246         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
9247         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
9248         reported by Jim Meyering.  All uses of cache variables renamed
9249         to match Autoconf's.
9250         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
9251         the other one.
9252
9253         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
9254         Fix misspelling in diagnostic.
9255
9256 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
9257
9258         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
9259         defined.  Problem reported by Matthew Woehlke.
9260
9261         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
9262         Add support for Tandem NonStop R series.
9263         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
9264         Use new macro.
9265
9266         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
9267         (has_trailing_slash): Omit size arg; all callers changed.
9268         Omit 'inline', since it doesn't help performance and we'd
9269         need to configure it.
9270         Don't count //, ///, etc. as having a trailing slash.
9271         As a side effect, this removes a C99ism reported by Matthew Woehlke.
9272         (rpl_rename_dest_slash): On failure, use rename's errno rather
9273         than (in some cases) an incorrect or junk errno.
9274         Simplify code by removing need to compute length; this does
9275         cause it to make two passes instead of one over the file name,
9276         but it's worth it.
9277
9278         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
9279         change, since Autoconf's version may no longer be appropriate now
9280         that we are using CVS Autoconf's version.  Add support for Tandem.
9281
9282 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
9283             Bruno Haible  <bruno@clisp.org>
9284
9285         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
9286         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
9287         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
9288         gl_AC_TYPE_LONG_LONG.
9289
9290         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
9291         instead of HAVE_LONG_LONG.
9292         * lib/printf-args.c (printf_fetchargs): Likewise.
9293         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
9294         * lib/vasnprintf.c (VASNPRINTF): Likewise.
9295         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
9296         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
9297         gl_AC_TYPE_LONG_LONG.
9298
9299 2006-10-11  Bruno Haible  <bruno@clisp.org>
9300
9301         * m4/longlong.m4: Add comments.
9302         * m4/ulonglong.m4: Likewise.
9303
9304 2006-10-10  Bruno Haible  <bruno@clisp.org>
9305
9306         Make it possible to #define stpcpy, strdup to aliases.
9307         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
9308         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
9309
9310 2006-10-10  Bruno Haible  <bruno@clisp.org>
9311
9312         Make it possible to #define gcd to an alias.
9313         * lib/gcd.c: Include config.h.
9314
9315 2006-10-10  Bruno Haible  <bruno@clisp.org>
9316
9317         Make it possible to #define c_isascii to an alias.
9318         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
9319         defined. Undefine the macros before defining them, to avoid gcc
9320         warnings.
9321         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
9322         define NO_C_CTYPE_MACROS early.
9323
9324 2006-10-10  Bruno Haible  <bruno@clisp.org>
9325
9326         Make it possible to #define set_program_name to an alias.
9327         * lib/progname.c: Don't undefine set_program_name; instead, undefine
9328         ENABLE_RELOCATABLE early.
9329
9330 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
9331
9332         Port to Tandem NSK OSS, which has 64-bit signed int but at most
9333         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
9334         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
9335         More generally, don't assume that 64-bit signed int is available
9336         if unsigned int is, and vice versa.
9337         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
9338         unsigned symbols, not on their signed counterparts.
9339         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
9340         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
9341         (UINT64_C, UINTMAX_C):
9342         Likewise.
9343         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
9344         unsigned counterparts.
9345         (Have_long_long, Unsigned): New macros.
9346         (Int): Renamed from INT.
9347         (strtoimax): Use the new macros.
9348         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
9349         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
9350         * modules/inttypes (inttypes.h): Substitute
9351         HAVE_UNSIGNED_LONG_LONG_INT.
9352         * modules/stdint (stdint.h): Likewise.
9353         (Files): Add m4/ulonglong.m4.
9354
9355 2006-10-10  Bruno Haible  <bruno@clisp.org>
9356
9357         Fix a gcc -Wshadow warning.
9358         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
9359         to 'bucket'.
9360         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
9361         gl_linked_indexof_from_to): Likewise.
9362         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
9363         Likewise.
9364         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
9365         Likewise.
9366         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
9367         Reported by Eric Blake.
9368
9369 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
9370
9371         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
9372         for NetBSD.  Problem reported by Bruno Haible.
9373
9374 2006-10-09  Jim Meyering  <jim@meyering.net>
9375
9376         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
9377         Patch from Bruno Haible.
9378
9379 2006-10-09  Jim Meyering  <jim@meyering.net>
9380
9381         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
9382         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
9383         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
9384
9385 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
9386
9387         Don't include <config.h> twice; this doesn't work in some cases,
9388         e.g., when config.h has "#define intmax_t long long int" and
9389         we include <config.h>, <inttypes.h>, <config.h> in that order.
9390         Problem reported by Matthew Woehlke in:
9391         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
9392         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
9393         * lib/fts-cycle.c: Don't include config.h.
9394         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
9395         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
9396         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
9397         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
9398         inttypes.h.
9399         * lib/xstrtoumax.c: Likewise.
9400         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
9401         __strtol and the like, so that this module is more like its siblings.
9402         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
9403         Remove; no longer needed now that we assume gnulib inttypes.h.
9404
9405 2006-10-08  Bruno Haible  <bruno@clisp.org>
9406
9407         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
9408         option.
9409
9410 2006-10-07  Jim Meyering  <jim@meyering.net>
9411
9412         * modules/inttypes (inttypes.h): Revert what seems to have been
9413         an inadvertent part of today's change: use "|", not "/" in the
9414         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
9415
9416 2006-10-07  Bruno Haible  <bruno@clisp.org>
9417
9418         * modules/sublist: New file.
9419
9420 2006-10-07  Bruno Haible  <bruno@clisp.org>
9421
9422         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
9423         * modules/argz (argz.h): Likewise.
9424         * modules/arpa_inet (arpa/inet.h): Likewise.
9425         * modules/byteswap (byteswap.h): Likewise.
9426         * modules/configmake (configmake.h): Likewise.
9427         * modules/fcntl (fcntl.h): Likewise.
9428         * modules/fnmatch (fnmatch.h): Likewise.
9429         * modules/getopt (getopt.h): Likewise.
9430         * modules/glob (glob.h): Likewise.
9431         * modules/inttypes (inttypes.h): Likewise.
9432         * modules/netinet_in (netinet/in.h): Likewise.
9433         * modules/poll (poll.h): Likewise.
9434         * modules/stdbool (stdbool.h): Likewise.
9435         * modules/stdint (stdint.h): Likewise.
9436         * modules/sys_select (sys/select.h): Likewise.
9437         * modules/sys_socket (sys/socket.h): Likewise.
9438         * modules/sys_stat (sys/stat.h): Likewise.
9439         * modules/sysexits (sysexits.h): Likewise.
9440         * modules/unistd (unistd.h): Likewise.
9441         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
9442         Add a "DO NOT EDIT" comment to the generated file.
9443         (func_import): Likewise for gnulib-comp.m4.
9444
9445 2006-10-07  Bruno Haible  <bruno@clisp.org>
9446
9447         * lib/gl_sublist.h: New file.
9448         * lib/gl_sublist.c: New file.
9449
9450 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
9451
9452         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
9453         name (relative to the original working directory) and the file
9454         name component (relative to the temporary working directory).  All
9455         callers changed.
9456         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
9457         * lib/mkdir-p.c (make_dir_parents): Likewise.
9458         * lib/mkdir-p.h (make_dir_parents): Likewise.
9459
9460 2006-10-06  Eric Blake  <ebb9@byu.net>
9461
9462         Define several macros for use by the clean-temp module.
9463         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
9464         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
9465         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
9466
9467         * lib/clean-temp.h (close_stream_temp): New declaration.
9468         * lib/clean-temp.c (includes): Pull in headers according to what
9469         other modules are in use.
9470         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
9471
9472 2006-10-06  Bruno Haible  <bruno@clisp.org>
9473
9474         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
9475         instead of fopen, fwriteerror.
9476
9477 2006-10-06  Bruno Haible  <bruno@clisp.org>
9478
9479         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
9480         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
9481         int.
9482         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
9483         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
9484         Return an error indicator.
9485         Suggested by Eric Blake.
9486
9487 2006-10-06  Bruno Haible  <bruno@clisp.org>
9488
9489         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
9490         Reported by Eric Blake.
9491
9492 2006-10-06  Bruno Haible  <bruno@clisp.org>
9493
9494         * modules/closeout (Description): Mention stderr too.
9495
9496 2006-10-06  Bruno Haible  <bruno@clisp.org>
9497         and Paul Eggert  <eggert@cs.ucla.edu>
9498
9499         * lib/closeout.c (close_stdout): Also close stderr.
9500         * lib/closeout.h: Update comment.
9501
9502 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
9503
9504         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
9505         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
9506         * lib/dirchownmod.c: Include lchown.h.
9507         * lib/lchown.c: Don't include files that lchown.h now includes.
9508         Don't declare chown, since lchown.h now does that.
9509         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
9510         (lchown): Define to rpl_chown if lchown is declared but
9511         does not exist.  Declare using a prototype if lchown is not
9512         declared.  Add a copyright notice.
9513         * lib/mkstemp.h: Include <unistd.h>.
9514         * lib/openat.c: Include lchown.h.
9515
9516         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
9517         we now test for that separately.
9518         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
9519         rather than O_NOFOLLOW, when testing whether it's possible to
9520         avoid a race condition reliably.
9521         * lib/savewd.c (savewd_chdir): Likewise.
9522
9523         Remove macros that are no longer needed now that stdint.h is
9524         reliable.
9525         * lib/fsusage.c (UINTMAX_MAX): Remove.
9526         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
9527         * lib/utimecmp.c (SIZE_MAX): Remove.
9528
9529         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
9530
9531         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
9532         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
9533         O_NOATIME works.
9534
9535 2006-10-05  Bruno Haible  <bruno@clisp.org>
9536
9537         * lib/gl_list.h (gl_sortedlist_search_from_to,
9538         gl_sortedlist_indexof_from_to): New declarations.
9539         (gl_list_implementation): New fields sortedlist_search_from_to,
9540         sortedlist_indexof_from_to.
9541         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
9542         inline functions.
9543         * lib/gl_list.c (gl_sortedlist_search_from_to,
9544         gl_sortedlist_indexof_from_to): New functions.
9545         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
9546         function.
9547         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
9548         (gl_array_sortedlist_search_from_to): New function.
9549         (gl_array_list_implementation): Update.
9550         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
9551         function.
9552         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
9553         (gl_carray_sortedlist_search_from_to): New function.
9554         (gl_carray_list_implementation): Update.
9555         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
9556         gl_linked_sortedlist_indexof_from_to): New functions.
9557         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
9558         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
9559         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
9560         gl_tree_sortedlist_indexof_from_to): New functions.
9561         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
9562         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
9563         Update.
9564         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
9565         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
9566         Update.
9567
9568 2006-10-05  Bruno Haible  <bruno@clisp.org>
9569
9570         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
9571         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
9572         (struct gl_list_implementation): Add fields search_from_to,
9573         indexof_from_to. Remove fields search, indexof.
9574         (gl_list_search): Use the search_from_to method.
9575         (gl_list_search_from, gl_list_search_from_to): New functions.
9576         (gl_list_indexof): Use the indexof_from_to method.
9577         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
9578         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
9579         (gl_list_search_from, gl_list_search_from_to): New functions.
9580         (gl_list_indexof): Use the indexof_from_to method.
9581         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
9582         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
9583         gl_array_indexof. Add start_index, end_index arguments.
9584         (gl_array_search_from_to): Renamed from gl_array_search. Add
9585         start_index, end_index arguments.
9586         (gl_array_remove, gl_array_list_implementation): Update.
9587         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
9588         gl_carray_indexof. Add start_index, end_index arguments.
9589         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
9590         start_index, end_index arguments.
9591         (gl_carray_remove, gl_carray_list_implementation): Update.
9592         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
9593         gl_linked_search. Add start_index, end_index arguments.
9594         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
9595         start_index, end_index arguments.
9596         (gl_linked_remove): Update.
9597         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
9598         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
9599         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
9600         field to 'size_t'.
9601         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
9602         gl_tree_search. Add start_index, end_index arguments.
9603         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
9604         start_index, end_index arguments.
9605         (gl_tree_remove): Update.
9606         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
9607         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
9608         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
9609         function.
9610         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
9611         gl_tree_search. Add start_index, end_index arguments.
9612         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
9613         start_index, end_index arguments.
9614         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
9615         Update.
9616         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
9617
9618 2006-10-05  Bruno Haible  <bruno@clisp.org>
9619
9620         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
9621
9622         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
9623         fwriteerror_temp): New declarations.
9624         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
9625         (descriptors): New variable.
9626         (cleanup): First, close the descriptors.
9627         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
9628         fclose_temp, fwriteerror_temp): New functions.
9629
9630 2006-10-04  Jim Meyering  <jim@meyering.net>
9631
9632         * lib/fts.c (fts_open): Tiny comment change.
9633
9634 2006-10-04  Bruno Haible  <bruno@clisp.org>
9635
9636         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
9637         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
9638         gl_LOCK_BODY.
9639         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
9640         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
9641         gl_LOCK_EARLY_BODY.
9642         (gl_LOCK): Require gl_LOCK_BODY.
9643
9644 2006-10-04  Bruno Haible  <bruno@clisp.org>
9645
9646         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
9647         (gl_oset_search_atleast): New declaration.
9648         (struct gl_oset_implementation): Add field 'search_atleast'.
9649         (gl_oset_search_atleast): New inline function.
9650         * lib/gl_oset.c (gl_oset_search_atleast): New function.
9651         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
9652         (gl_array_oset_implementation): Update.
9653         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
9654         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
9655         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
9656
9657 2006-10-04  Bruno Haible  <bruno@clisp.org>
9658
9659         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
9660
9661 2006-10-03  Bruno Haible  <bruno@clisp.org>
9662
9663         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
9664         from gl_avltreehash_list_implementation.
9665
9666 2006-10-03  Bruno Haible  <bruno@clisp.org>
9667
9668         * lib/gl_oset.c (gl_oset_add): Fix return type.
9669
9670 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
9671
9672         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
9673
9674 2006-10-02  Eric Blake  <ebb9@byu.net>
9675
9676         * modules/strnlen (Depends-on): Add extensions.
9677
9678 2006-10-02  Eric Blake  <ebb9@byu.net>
9679
9680         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
9681         definition in 2.60+.
9682
9683 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
9684
9685         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
9686         checks.
9687
9688 2006-10-02  Bruno Haible  <bruno@clisp.org>
9689
9690         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
9691         to the AUTOMAKE_OPTIONS.
9692         Reported by Jim Meyering.
9693
9694 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
9695
9696         Work around bug in Solaris 10 /proc file system:
9697         /proc/self/fd/NNN/.. isn't the parent directory of
9698         the directory whose file descriptor is NNN.  This needs to
9699         be worked around at run time, not compile time, since a
9700         program might be built on Solaris 8, where things work, and
9701         run on Solaris 10.
9702         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
9703         to use the following interface instead:
9704         (OPENAT_BUFFER_SIZE): New macro.
9705         (openat_proc_name): New function.
9706         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
9707         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
9708         Likewise.
9709         * lib/openat-proc.c: New file.
9710         * modules/openat (Files): Add lib/openat-proc.c.
9711         (Depends-on): Add same-inode, stdbool.
9712         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
9713
9714 2006-09-29  Bruno Haible  <bruno@clisp.org>
9715
9716         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
9717         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
9718         argument. Set stdout_closed before testing for ferror, not after.
9719         (fwriteerror, fwriteerror_no_ebadf): New functions.
9720
9721 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9722
9723         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
9724
9725 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
9726
9727         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
9728         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
9729
9730 2006-09-28  Jim Meyering  <jim@meyering.net>
9731
9732         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
9733         Include <unistd.h>.
9734
9735 2006-09-28  Bruno Haible  <bruno@clisp.org>
9736
9737         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
9738         * modules/linkedhash-list (Depends-on): Likewise.
9739         * modules/rbtreehash-list (Depends-on): Likewise.
9740
9741 2006-09-28  Bruno Haible  <bruno@clisp.org>
9742
9743         * lib/strndup.h: Simplify the redefinition of strndup.
9744         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
9745         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
9746
9747 2006-09-28  Bruno Haible  <bruno@clisp.org>
9748
9749         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
9750         * lib/gl_linkedhash_list.c: Likewise.
9751         * lib/gl_rbtreehash_list.c: Likewise.
9752
9753 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
9754
9755         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
9756         getaddrinfo.
9757
9758         * lib/__fpending.h: Don't include <stdio_ext.h> unless
9759         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
9760         it causes <stdio_ext.h> to cause a compile-time error.
9761         Problem reported by Nelson H. F. Beebe.
9762         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
9763         of HAVE_DECL___PENDING.
9764
9765         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
9766         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
9767         declaration.
9768
9769 2006-09-27  Jim Meyering  <jim@meyering.net>
9770
9771         This file could end up with a definition for a function
9772         named __strndup, rather than rpl_strndup on a system with
9773         incomplete weak_alias support.
9774         * lib/strndup.c (strndup): Rename from __strndup.
9775         Remove #defines that used to map __strndup to strndup.
9776         Don't use K&R prototypes.
9777         Remove LIBC-related code, since this file is not sync'd with glibc.
9778         * lib/strndup.h: Revamp, accordingly.
9779         * m4/strndup.m4: Modernize.
9780
9781 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
9782
9783         * modules/savewd (Depends-on): Add 'raise'.
9784         * lib/savewd.c: Include <signal.h>, for 'raise'.
9785
9786 2006-09-26  Jim Meyering  <jim@meyering.net>
9787
9788         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
9789         when we detect Darwin 8.7.0's acl_get_file bug.
9790         Rearrange to perform the new (below) run-test while $LIBS
9791         contains any acl-related library.  Set USE_ACL at the end.
9792         (gl_ACL_GET_FILE): New function.
9793
9794 2006-09-26  Eric Blake  <ebb9@byu.net>
9795
9796         * lib/verror.c: Include <config.h> unconditionally.
9797
9798 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
9799
9800         * modules/clock-time (Maintainer): Add self.
9801         * modules/getlogin_r (Depends-on): Add extensions.
9802
9803 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9804
9805         * modules/clock-time: New module.
9806         * modules/nanosleep (Depends-on): Add clock-time.
9807         * modules/gethrxtime (Depends-on): Likewise.
9808         * modules/gettime (Depends-on): Likewise.
9809         * modules/settime (Depends-on): Likewise.
9810
9811         * modules/fts-lgpl: Depend on openat.
9812         * modules/mkancesdirs: Depend on savewd.
9813         * modules/mkdir-p: Likewise.
9814
9815 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9816
9817         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
9818
9819         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
9820         `gl_have_arbitrary_file_name_length_limit' to
9821         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
9822         actually works between configure runs.
9823
9824 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9825             Bruno Haible  <bruno@clisp.org>
9826
9827         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
9828
9829 2006-09-25  Jim Meyering  <jim@meyering.net>
9830
9831         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
9832         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
9833
9834 2006-09-25  Eric Blake  <ebb9@byu.net>
9835
9836         * gnulib-tool (func_import, func_create_testdir): Fix typos in
9837         exec's in 2006-09-18 patch when shuffling fds.
9838
9839 2006-09-25  Bruno Haible  <bruno@clisp.org>
9840
9841         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
9842         Reported by Jim Meyering.
9843
9844 2006-09-24  Jim Meyering  <jim@meyering.net>
9845
9846         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
9847         compare a pointer against a literal "0".  That caused failures with
9848         at least HP-UX's hpcc.
9849
9850 2006-09-22  Simon Josefsson  <jas@extundo.com>
9851
9852         * modules/gc-sha1:
9853         * modules/gc-md4:
9854         * modules/gc-hmac-sha1:
9855         * modules/gc-hmac-md5:
9856         * modules/gc-des:
9857         * modules/gc-arcfour: Distribute more files.
9858
9859 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9860
9861         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
9862         (gl_linked_iterator_from_to): Initialize struct completely.
9863         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
9864         (gl_tree_iterator_from_to): Likewise
9865         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
9866         * lib/gl_array_list.c [lint] (gl_array_iterator)
9867         (gl_array_iterator_from_to): Likewise.
9868         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
9869         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
9870         (gl_carray_iterator_from_to): Likewise.
9871
9872         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
9873         * lib/md4.c (md4_process_block): Remove unused variable.
9874         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
9875         parentheses for clarity.
9876
9877 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9878
9879         * modules/bison-i18n (Depends-on): Add gettext.
9880
9881 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9882
9883         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
9884         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
9885         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
9886         also add missing comma that caused broken test.
9887         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
9888         stdlib.h, for `abort'.
9889         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
9890         variables.
9891         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
9892         include unistd.h if present, for `rmdir'.
9893         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
9894         variables.
9895         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
9896         in the process include standard headers for prototypes.
9897         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
9898         gets declared on GNU/Linux.
9899         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
9900         unistd.h, for `rmdir'.
9901         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
9902
9903         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
9904         always true.
9905         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
9906
9907         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
9908
9909 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9910
9911         * gnulib-tool (func_version): Create output all at once.  This
9912         may help avoid triggering unnecessary SIGPIPEs, and at any
9913         rate it doesn't hurt.
9914
9915 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9916             Bruno Haible  <bruno@clisp.org>
9917
9918         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
9919         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
9920         * m4/signed.m4 (bh_C_SIGNED): Likewise.
9921
9922         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
9923         (gl_FUNC_VASPRINTF): Invoke it.
9924
9925 2006-09-22  Bruno Haible  <bruno@clisp.org>
9926
9927         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
9928         getloadavg.c as first argument.
9929
9930 2006-09-22  Bruno Haible  <bruno@clisp.org>
9931
9932         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
9933         at the beginning of the gl_INIT macro.
9934         * modules/getloadavg (configure.ac): Pass $gl_source_base to
9935         gl_GETLOADAVG.
9936
9937 2006-09-22  Bruno Haible  <bruno@clisp.org>
9938
9939         * gnulib-tool (func_create_megatestdir): Don't include the config-h
9940         module.
9941         Suggested by Ralf Wildenhues.
9942
9943 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
9944
9945         Import this patch from libc:
9946
9947         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
9948
9949         * lib/regex_internal.c (re_string_reconstruct): Handle
9950         offset < pstr->valid_raw_len && pstr->offsets_needed case.
9951         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
9952         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
9953         re_string_context_at.
9954
9955         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
9956         now requires it.
9957         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
9958         gl_REGEX now does it for us.
9959         (gl_REGEX): Add test taken from
9960         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
9961
9962         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
9963         Check that large offsets work.  Modernize Autoconf usages.
9964         Prefer "yes" to mean a good thing rather than a bad.
9965         Don't put "#define mkstemp" in config.h, as this might interfere
9966         with standard system headers that "#define mkstemp mkstemp64".
9967
9968         * modules/mkstemp (Depends-on): Add extensions, so that
9969         mkstemp is visible on some platforms.
9970         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
9971         (Include): Change to "mkstemp.h" from <stdlib.h>.
9972         (Files): Add mkstemp.h.
9973
9974         * lib/mkstemp.h: New file, since some standard headers
9975         #define mkstemp.
9976         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
9977         Include "mkstemp.h".
9978         Make the _LIBC code resemble glibc original more,
9979         e.g., use K&R style.
9980         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
9981         (mkstemp): Remove, since mkstemp.h does this for us.
9982         * lib/stdlib--.h: Include mkstemp.h.
9983
9984         Import this patch from libc:
9985
9986         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
9987
9988         * lib/tempname.c (__gen_tempname): Change attempts_min
9989         into a macro.  Use preprocessor to decide how to initialize
9990         attempts [Coverity CID 67].
9991
9992 2006-09-20  Bruno Haible  <bruno@clisp.org>
9993
9994         * lib/mkdtemp.c: Import from libc.
9995         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
9996                 * sysdeps/posix/tempname.c (__gen_tempname): Change
9997                 attempts_min into a macro.  Use preprocessor to decide how to
9998                 initialize attempts [Coverity CID 67].
9999         2001-11-27  Paul Eggert  <eggert@twinsun.com>
10000                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
10001                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
10002
10003 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10004
10005         * gnulib-tool (func_exit): New function, to allow to pass the
10006         exit status portably through the trap.  Use everywhere.
10007         (--help, --version): Signal a write error.
10008         (trap): catch SIGPIPE, for write errors.
10009         Exit at the end of the trap, with the correct exit status.
10010
10011 2006-09-19  Karl Berry  <karl@gnu.org>
10012
10013         * doc/gnulib.texi: note about the license texinfo files.
10014
10015 2006-09-19  Eric Blake  <ebb9@byu.net>
10016
10017         * gnulib-tool: Avoid space-tab.
10018
10019 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
10020
10021         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
10022         that prevented coreutils 6.1 from building.  Problem reported
10023         by Petter Reinholdtsen.
10024
10025 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
10026
10027         * gnulib-tool (avoidlist): Fix typo that broke options like
10028         --avoid=lock that are used by coreutils bootstrap.
10029
10030 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
10031
10032         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
10033         more systematically.
10034
10035 2006-09-18  Jim Meyering  <jim@meyering.net>
10036
10037         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
10038
10039 2006-09-18  Bruno Haible  <bruno@clisp.org>
10040
10041         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
10042
10043 2006-09-18  Bruno Haible  <bruno@clisp.org>
10044
10045         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
10046         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
10047         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
10048         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
10049         * m4/gettext.m4: Require autoconf >= 2.52.
10050         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
10051         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
10052         of gl_cv_header_inttypes_h.
10053
10054 2006-09-18  Bruno Haible  <bruno@clisp.org>
10055
10056         * lib/javaversion.c: Include configmake.h.
10057
10058 2006-09-18  Bruno Haible  <bruno@clisp.org>
10059
10060         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
10061         avoid that the while loops be executed in a subshell.
10062
10063 2006-09-18  Bruno Haible  <bruno@clisp.org>
10064
10065         * MODULES.html.sh (func_module): Break long lines.
10066         Suggested by Bruce Korb <bkorb@gnu.org>.
10067
10068 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10069
10070         Speed up by a factor of 1.12.
10071         * gnulib-tool (nl): New variable.
10072         (func_import): Rewrite include directive extraction to only read each
10073         directive once.
10074
10075 2006-09-17  Bruno Haible  <bruno@clisp.org>
10076
10077         * modules/javaversion (Makefile.am): Remove DEFS setting.
10078         (Depends-on): Add configmake, for PKGDATADIR definition.
10079
10080 2006-09-17  Bruno Haible  <bruno@clisp.org>
10081
10082         * gnulib-tool (func_create_testdir): Rewrite all files at once.
10083
10084 2006-09-17  Bruno Haible  <bruno@clisp.org>
10085
10086         * gnulib-tool (func_append): New function, stolen from libtool.m4.
10087         (func_modules_transitive_closure, func_modules_add_dummy,
10088         func_modules_to_filelist, func_import, func_create_testdir,
10089         func_create_megatestdir, ...): Use it wherever possible.
10090         Suggested by Ralf Wildenhues.
10091
10092 2006-09-16  Karl Berry  <karl@gnu.org>
10093
10094         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
10095         to avoid sectioning errors.
10096         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
10097         [ifinfo]: blank line after @center-ed titles.
10098         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
10099         Spell FSF address consistently with others.
10100         (These changes approved by rms.)
10101
10102 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10103
10104         Speed up by a factor of 1.61.
10105         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
10106         already checked module names again.
10107
10108 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10109
10110         Speed up by a factor of 1.13.
10111         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
10112         for new_files, and the input to func_add_or_update.
10113
10114 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10115
10116         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
10117         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
10118
10119 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
10120
10121         * modules/mkancesdirs (Depends-on): Add fcntl.
10122         * modules/savewd: New file.
10123         * MODULES.html.sh (File system functions): Add savewd.
10124
10125         * modules/configmake (Makefile.am): Add support for the
10126         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
10127
10128 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
10129
10130         * m4/savewd.m4: New file.
10131
10132 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
10133
10134         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
10135         (dirchownmod): New arg FD.  All callers changed.
10136         Use FD rather than opening the directory ourself, as opening is
10137         now the caller's responsibility.
10138         * lib/dirchownmod.h: Likewise.
10139         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
10140         hosts that require <sys/types.h> before <sys/stat.h>.  Include
10141         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
10142         (test_dir): Remove.
10143         (mkancesdirs): Return length of prefix of FILE that has already
10144         been made, or -2 if there is a child doing the work.  Redo
10145         algorithm so that it is O(N) rather than O(N**2).  Optimize away
10146         ".", and treat ".." specially since it might stray back into
10147         already-created areas.  Use a subprocess if necessary.  New arg
10148         WD; all users changed.  MAKE_DIR function should now return 1
10149         if it creates a directory that is not readable.  Return -2 if
10150         a child process is spun off.
10151         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
10152         Adjust signature to match code.
10153         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
10154         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
10155         all users changed.
10156         * lib/savewd.c, lib/savewd.h: New files.
10157
10158 2006-09-15  Jim Meyering  <jim@meyering.net>
10159
10160         * modules/rename-dest-slash: New module.
10161         * MODULES.html.sh (posix_compat): Add it here.
10162
10163         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
10164
10165 2006-09-15  Jim Meyering  <jim@meyering.net>
10166
10167         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
10168         file.
10169
10170         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
10171
10172 2006-09-15  Jim Meyering  <jim@meyering.net>
10173
10174         * lib/rename-dest-slash.c (has_trailing_slash): Use
10175         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
10176         (rpl_rename_dest_slash): Perform the cheaper trailing slash
10177         test before testing whether SRC is a directory.
10178         Suggestions from Bruno Haible.
10179
10180         Avoid a warning about an unused variable.
10181         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
10182         into the #ifdef block where it's used.
10183
10184         * lib/rename-dest-slash.c: New file.
10185
10186 2006-09-14  Bruno Haible  <bruno@clisp.org>
10187
10188         * lib/allocsa.c: Include <config.h> unconditionally.
10189         * lib/asnprintf.c: Likewise.
10190         * lib/asprintf.c: Likewise.
10191         * lib/c-strcasecmp.c: Likewise.
10192         * lib/c-strcasestr.c: Likewise.
10193         * lib/c-strncasecmp.c: Likewise.
10194         * lib/c-strstr.c: Likewise.
10195         * lib/classpath.c: Likewise.
10196         * lib/clean-temp.c: Likewise.
10197         * lib/concatpath.c: Likewise.
10198         * lib/copy-file.c: Likewise.
10199         * lib/csharpcomp.c: Likewise.
10200         * lib/csharpexec.c: Likewise.
10201         * lib/execute.c: Likewise.
10202         * lib/fatal-signal.c: Likewise.
10203         * lib/findprog.c: Likewise.
10204         * lib/fwriteerror.c: Likewise.
10205         * lib/gl_array_list.c: Likewise.
10206         * lib/gl_array_oset.c: Likewise.
10207         * lib/gl_avltree_list.c: Likewise.
10208         * lib/gl_avltree_oset.c: Likewise.
10209         * lib/gl_avltreehash_list.c: Likewise.
10210         * lib/gl_carray_list.c: Likewise.
10211         * lib/gl_linked_list.c: Likewise.
10212         * lib/gl_linkedhash_list.c: Likewise.
10213         * lib/gl_list.c: Likewise.
10214         * lib/gl_oset.c: Likewise.
10215         * lib/gl_rbtree_list.c: Likewise.
10216         * lib/gl_rbtree_oset.c: Likewise.
10217         * lib/gl_rbtreehash_list.c: Likewise.
10218         * lib/imaxabs.c: Likewise.
10219         * lib/imaxdiv.c: Likewise.
10220         * lib/javacomp.c: Likewise.
10221         * lib/javaexec.c: Likewise.
10222         * lib/javaversion.c: Likewise.
10223         * lib/linebreak.c: Likewise.
10224         * lib/localcharset.c: Likewise.
10225         * lib/lock.c: Likewise.
10226         * lib/mbchar.c: Likewise.
10227         * lib/mbswidth.c: Likewise.
10228         * lib/mkdtemp.c: Likewise.
10229         * lib/pipe.c: Likewise.
10230         * lib/printf-args.c: Likewise.
10231         * lib/printf-parse.c: Likewise.
10232         * lib/progname.c: Likewise.
10233         * lib/progreloc.c: Likewise.
10234         * lib/readlink.c: Likewise.
10235         * lib/sh-quote.c: Likewise.
10236         * lib/stpcpy.c: Likewise.
10237         * lib/stpncpy.c: Likewise.
10238         * lib/strcasecmp.c: Likewise.
10239         * lib/strcasestr.c: Likewise.
10240         * lib/strcspn.c: Likewise.
10241         * lib/striconv.c: Likewise.
10242         * lib/strncasecmp.c: Likewise.
10243         * lib/strnlen1.c: Likewise.
10244         * lib/strstr.c: Likewise.
10245         * lib/strtok_r.c: Likewise.
10246         * lib/tls.c: Likewise.
10247         * lib/tmpdir.c: Likewise.
10248         * lib/unicodeio.c: Likewise.
10249         * lib/unsetenv.c: Likewise.
10250         * lib/vasnprintf.c: Likewise.
10251         * lib/vasprintf.c: Likewise.
10252         * lib/wait-process.c: Likewise.
10253         * lib/xallocsa.c: Likewise.
10254         * lib/xsetenv.c: Likewise.
10255         * lib/xstriconv.c: Likewise.
10256
10257 2006-09-13  Simon Josefsson  <jas@extundo.com>
10258
10259         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
10260         that internally, suggested by Ralf Wildenhues
10261         <Ralf.Wildenhues@gmx.de>.
10262
10263 2006-09-13  Simon Josefsson  <jas@extundo.com>
10264
10265         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
10266         @LIBOBJS@.
10267         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10268
10269 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
10270
10271         * lib/_fpending.c: Include <config.h> unconditionally, since we no
10272         longer worry about uses that don't define HAVE_CONFIG_H.
10273         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
10274         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
10275         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
10276         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
10277         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
10278         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
10279         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
10280         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
10281         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
10282         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
10283         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
10284         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
10285         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
10286         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
10287         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
10288         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
10289         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
10290         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
10291         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
10292         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
10293         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
10294         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
10295         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
10296         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
10297         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
10298         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
10299         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
10300         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
10301         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
10302         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
10303         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
10304         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
10305         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
10306         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
10307         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
10308         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
10309         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
10310         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
10311         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
10312         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
10313         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
10314         Likewise.
10315
10316 2006-09-13  Eric Blake  <ebb9@byu.net>
10317
10318         * lib/getopt.c: Fix typo in last commit.
10319
10320 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
10321
10322         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
10323         dgettext.
10324
10325 2006-09-12  Jim Meyering  <jim@meyering.net>
10326
10327         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
10328         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
10329         Reported by Nelson H. F. Beebe.
10330
10331 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
10332
10333         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
10334         program_invocation_name and program_invocation_short_name are
10335         initialized.
10336         * lib/argp-namefrob.h: Move declarations of program_invocation_name
10337         and program_invocation_short_name to argp.h, so they are visible
10338         to user programs.
10339         * lib/argp.h: Likewise
10340
10341 2006-09-10  Bruno Haible  <bruno@clisp.org>
10342
10343         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
10344         m4/inttypes_h.m4, m4/uintmax_t.m4.
10345
10346 2006-09-10  Bruno Haible  <bruno@clisp.org>
10347
10348         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
10349         gl_AC_TYPE_UINTMAX_T.
10350
10351 2006-09-10  Bruno Haible  <bruno@clisp.org>
10352
10353         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
10354
10355 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
10356
10357         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
10358         convention.  Text proposed by Bruno Haible.
10359         (struct argp_option): Document the use of N_() wrappers.
10360
10361         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
10362         '\v', and translate the two parts separately, instead of feeding
10363         the whole string to gettext.  This allows to exclude
10364         '\v' from the strings visible to the translator by writing doc
10365         strings as N_("..") "\v" N_("..").
10366
10367 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
10368
10369         * config/srclist.txt: Undo latest change; the bug was fixed.
10370
10371 2006-09-09  Bruno Haible  <bruno@clisp.org>
10372
10373         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
10374         assignments if building a library without libtool.
10375         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
10376         in func_emit_lib_Makefile_am.
10377         (func_import): When building a static library libfoo.a, arrange to
10378         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
10379         (func_create_testdir): Likewise.
10380         * modules/gc (configure.ac, Makefile.am): If building statically,
10381         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
10382         * modules/iconvme (configure.ac, Makefile.am): Likewise.
10383         * modules/striconv (configure.ac, Makefile.am): Likewise.
10384         Based on a suggestion by Ralf Wildenhues.
10385
10386 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
10387
10388         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
10389         Check for unistd.h too, since Autoconf doesn't assume POSIX.
10390         Also:
10391
10392         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
10393         Add year_2050_test to catch glibc bug 2821
10394         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
10395
10396         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
10397         Prefer #ifdef to #if.
10398
10399         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
10400         Return from 'main' instead of calling 'exit'.
10401
10402 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
10403
10404         * lib/mktime.c (guess_time_tm): Fix bug where mktime
10405         returned the maximum time_t value rather than (time_t) -1.
10406         Problem originally reported by William Bardwell
10407         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
10408
10409         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
10410         Moved to here ...
10411         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
10412         ... from here.
10413
10414 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
10415
10416         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
10417         2821 is fixed.
10418
10419 2006-09-08  Jim Meyering  <jim@meyering.net>
10420
10421         Don't make generated files read-only.  That would bother too many
10422         people.  However, do retain the ability to work when targets are
10423         read-only: remove the destination and temporary files before writing
10424         them (when generated via sed or echo), or by using the -f option for
10425         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
10426         * modules/alloca-opt, modules/argz, modules/arpa_inet:
10427         * modules/byteswap, modules/configmake, modules/fcntl:
10428         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
10429         * modules/localcharset, modules/netinet_in, modules/poll:
10430         * modules/stdbool, modules/stdint, modules/sys_select:
10431         * modules/sys_socket, modules/sys_stat, modules/sysexits:
10432
10433 2006-09-08  Jim Meyering  <jim@meyering.net>
10434
10435         Avoid new build failure on FreeBSD 6.0.
10436         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
10437         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
10438         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
10439
10440 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10441
10442         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
10443
10444 2006-09-07  Jim Meyering  <jim@meyering.net>
10445
10446         Fix global typo in last change: use chmod u-w, not chmod u-x.
10447         Spotted by Paul Eggert and Bruce Korb.
10448         * modules/alloca-opt, modules/argz, modules/arpa_inet:
10449         * modules/byteswap, modules/configmake, modules/fcntl:
10450         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
10451         * modules/localcharset, modules/netinet_in, modules/poll:
10452         * modules/stdbool, modules/stdint, modules/sys_select:
10453         * modules/sys_socket, modules/sys_stat, modules/sysexits:
10454
10455 2006-09-06  Jim Meyering  <jim@meyering.net>
10456
10457         Make generated files be read-only.
10458         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
10459         Ensure that each generated file is now read-only.
10460         * modules/argz: Likewise.
10461         * modules/arpa_inet: Likewise.
10462         * modules/byteswap: Likewise.
10463         * modules/configmake: Likewise.
10464         * modules/fcntl: Likewise.
10465         * modules/fnmatch: Likewise.
10466         * modules/getopt: Likewise.
10467         * modules/glob: Likewise.
10468         * modules/inttypes: Likewise.
10469         * modules/netinet_in: Likewise.
10470         * modules/poll: Likewise.
10471         * modules/stdbool: Likewise.
10472         * modules/stdint: Likewise.
10473         * modules/sys_select: Likewise.
10474         * modules/sys_socket: Likewise.
10475         * modules/sys_stat: Likewise.
10476         * modules/sysexits: Likewise.
10477         * modules/localcharset: Same as above, but continue using temporary
10478         file named "t-$@" (why different?) rather than the "$@-t" used
10479         everywhere else.
10480
10481         * modules/sysexits (Makefile.am): Replace literal occurrences
10482         of "sysexit.h" more readable, and more consistent, "$@".
10483
10484 2006-09-06  Bruno Haible  <bruno@clisp.org>
10485
10486         * modules/striconv: New file.
10487         * modules/xstriconv: New file.
10488         * MODULES.html.sh (Internationalization functions): Add striconv,
10489         xstriconv.
10490
10491 2006-09-06  Bruno Haible  <bruno@clisp.org>
10492
10493         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
10494         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
10495         not using libtool correctly.
10496
10497 2006-09-06  Bruno Haible  <bruno@clisp.org>
10498
10499         * lib/striconv.h: New file.
10500         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
10501         iconvstring.c.
10502         * lib/xstriconv.h: New file.
10503         * lib/xstriconv.c: New file.
10504
10505 2006-09-06  Bruno Haible  <bruno@clisp.org>
10506
10507         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
10508         lib_..._LDFLAGS.
10509
10510 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10511
10512         * lib/argz_.h: Sync from Libtool.
10513
10514         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
10515                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10516
10517         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
10518
10519 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
10520
10521         * modules/trim: New file.
10522
10523 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
10524
10525         * lib/trim.h: New file.
10526         * lib/trim.c: New file.
10527
10528 2006-09-05  Bruno Haible  <bruno@clisp.org>
10529
10530         * MODULES.html.sh (String handling): Add trim.
10531
10532 2006-09-04  Karl Berry  <karl@gnu.org>
10533
10534         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
10535         until next release.
10536
10537 2006-09-03  Bruno Haible  <bruno@clisp.org>
10538
10539         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
10540         correctly.
10541
10542 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
10543
10544         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
10545         not gl_GETLOADAVG.  Omit unneeded semicolons.
10546         Problems reported by Ralf Wildenhues in
10547         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
10548         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
10549         at the end, which is the usual gnulib style.
10550
10551         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
10552         of doing all the work ourselves.
10553         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
10554         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
10555
10556 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
10557
10558         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
10559         Problem reported by Ralf Wildenhues in
10560         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
10561
10562         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
10563         HAVE_STRUCT_STATFS_F_FSTYPENAME.
10564
10565 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
10566
10567         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
10568         yesterday's patch by changing test -n to test -z.
10569
10570 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
10571
10572         * modules/getloadavg (Files): Add m4/getloadavg.m4.
10573         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
10574         the former is now obsolescent.
10575
10576         * modules/chdir-long (Depends-on): Add fcntl.
10577
10578 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
10579
10580         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
10581         obsolescent, and programs should use gnulib instead.
10582         * m4/getloadavg.m4: New file, with contents taken from Autoconf
10583         but with prefixes changed.
10584
10585 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
10586
10587         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
10588         or stdbool.h, because they might not exist while configuring.
10589
10590         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
10591         Don't include unistd.h or limits.h; not needed, since chdir-long.h
10592         does that for us.
10593         (O_DIRECTORY): Remove.
10594
10595 2006-08-31  Eric Blake  <ebb9@byu.net>
10596
10597         * gnulib-tool: Don't let emacs change spaces to TAB.
10598
10599 2006-08-31  Bruno Haible  <bruno@clisp.org>
10600
10601         * gnulib-tool: When calling func_import more than once, do it in a
10602         subshell.
10603         Reported by Eric Blake <ebb9@byu.net>.
10604
10605 2006-08-31  Bruno Haible  <bruno@clisp.org>
10606
10607         * gnulib-tool (nl): Remove variable.
10608         (sed_transform_lib_file): Use more robust test for config-h module.
10609         (func_import): Fix typo in 2006-08-25 patch.
10610
10611 2006-08-31  Bruno Haible  <bruno@clisp.org>
10612
10613         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
10614         specified, augment Makefile.am variables instead of assigning them.
10615
10616 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
10617
10618         Work around a bug in both the Linux and SunOS 64-bit kernels:
10619         nanosleep mishandles sleeps for longer than 2**31 seconds.
10620         Problem reported by Frank v Waveren in
10621         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
10622         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
10623         Check for nanosleep bug.
10624         (LIB_NANOSLEEP): Append clock_gettime library if needed.
10625
10626 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
10627
10628         Work around a bug in both the Linux and SunOS 64-bit kernels:
10629         nanosleep mishandles sleeps for longer than 2**31 seconds.
10630         Problem reported by Frank v Waveren in
10631         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
10632         * lib/nanosleep.c (BILLION): New constant.
10633         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
10634         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
10635         implementation.
10636
10637 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
10638
10639         * modules/nanosleep (Depends-on): Add gettime.
10640
10641 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
10642         and Simon Josefsson  <jas@extundo.com>
10643         and Oskar Liljeblad  <oskar@osk.mine.nu>
10644
10645         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
10646         * gnulib-tool (func_import): New license type 'unmodifiable license
10647         text'.
10648         * modules/fdl: Use it.  Longer description.
10649         * module/gpl, module/lgpl: New files.
10650
10651 2006-08-30  Jim Meyering  <jim@meyering.net>
10652
10653         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
10654         shadowing the parameter.
10655
10656 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10657
10658         Sync from Libtool:
10659
10660         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10661
10662         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
10663         sharing with gnulib.  Report by Eric Blake.
10664
10665 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
10666
10667         * modules/isapipe: New file.
10668         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
10669
10670 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
10671
10672         * modules/configmake (Makefile.am): Add a comment, and omit
10673         the CONFIGMAKE_ prefix from generated macro names.  Suggested
10674         by Bruno Haible.
10675
10676 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
10677
10678         * m4/isapipe.m4: New file.
10679
10680 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
10681
10682         * lib/isapipe.c, lib/isapipe.h: New files.
10683
10684 2006-08-29  Jim Meyering  <jim@meyering.net>
10685
10686         * modules/configmake (Makefile.am): Make configmake.h depend on
10687         Makefile.  Otherwise, a stale configmake.h could hang around.
10688
10689 2006-08-29  Eric Blake  <ebb9@byu.net>
10690
10691         * lib/error.c (error_at_line, print_errno_message): Match libc, after
10692         resolution of upstream bug 3044.
10693
10694 2006-08-29  Bruno Haible  <bruno@clisp.org>
10695
10696         * modules/localcharset (Depends-on): Add configmake.
10697         (Makefile.am): Remove setting of LIBDIR through DEFS.
10698
10699 2006-08-29  Bruno Haible  <bruno@clisp.org>
10700
10701         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
10702         defined.
10703
10704 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
10705
10706         * modules/fcntl: New file.
10707         * modules/chdir-safer (Depends-on): Add fcntl.
10708         * modules/fts: Likewise.
10709         * modules/mkdir-p: Likewise.
10710
10711         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
10712         This undoes the most recent change, since we're now addressing the
10713         problem in a different way.
10714
10715         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
10716         into output, since the output might be called Makefile.am even
10717         if $makefile_name is something different.
10718         (func_import): Use $makefile_am rather than
10719         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
10720         empty.
10721
10722         * modules/inttypes (Files): Add m4/inttypes-h.m4.
10723
10724 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
10725
10726         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
10727         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
10728         recent change to stdint.m4, since we're now addressing the problem in a
10729         different way.
10730
10731 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
10732
10733         * m4/fcntl_h.m4: New file.
10734
10735 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
10736
10737         * lib/fcntl_.h: New file.
10738         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
10739         the fcntl module.
10740         * lib/dirchownmod.c: Likewise.
10741         * lib/fts.c: Likewise.
10742
10743         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
10744         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
10745         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
10746         just before including <inttypes.h>, to avoid circular inclusion.
10747
10748 2006-08-28  Jim Meyering  <jim@meyering.net>
10749
10750         * doc/visibility.texi: Actually read and correct the grammar of the
10751         sentence affected by yesterday's change.
10752
10753 2006-08-28  Eric Blake  <ebb9@byu.net>
10754
10755         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
10756         needs wrapper.
10757
10758 2006-08-28  Eric Blake  <ebb9@byu.net>
10759
10760         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
10761
10762 2006-08-28  Eric Blake  <ebb9@byu.net>
10763
10764         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
10765
10766 2006-08-28  Bruno Haible  <bruno@clisp.org>
10767
10768         * modules/c-strstr: New file, from GNU gettext.
10769         * MODULES.html.sh (String handling): Add c-strstr.
10770
10771 2006-08-28  Bruno Haible  <bruno@clisp.org>
10772
10773         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
10774         macros.
10775         Reported by Eric Blake.
10776
10777 2006-08-28  Bruno Haible  <bruno@clisp.org>
10778
10779         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
10780         (VASNPRINTF): Return a string of length > INT_MAX without failing.
10781         * lib/vasprintf.c: Include errno.h, limits.h.
10782         (EOVERFLOW): New fallback definition.
10783         (vasprintf): Test here whether the string length is > INT_MAX.
10784         * lib/vsnprintf.c: Include errno.h, limits.h.
10785         (EOVERFLOW): New fallback definition.
10786         (vsnprintf): Fix bug when generated string was too long for the buffer.
10787         Test here whether the string length is > INT_MAX.
10788
10789 2006-08-28  Bruno Haible  <bruno@clisp.org>
10790
10791         * lib/inttypes_.h (SCNX*): Remove definitions.
10792         Reported by Eric Blake.
10793
10794 2006-08-28  Bruno Haible  <bruno@clisp.org>
10795
10796         * lib/c-strstr.h: New file, from GNU gettext.
10797         * lib/c-strstr.c: New file, from GNU gettext.
10798
10799 2006-08-28  Bruno Haible  <bruno@clisp.org>
10800
10801         * gnulib-tool: Reorder some statements.
10802
10803 2006-08-28  Bruno Haible  <bruno@clisp.org>
10804
10805         * gnulib-tool: New option --makefile-name.
10806         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
10807         $makefile_name.
10808         (func_import): Write $makefile_name to the cache file, and read it from
10809         there unless explicitly specified. Use $makefile_name as file name
10810         instead of Makefile.am. Adjust the recommendations accordingly.
10811
10812 2006-08-28  Bruno Haible  <bruno@clisp.org>
10813
10814         * gnulib-tool (func_verify_module): Check against misapplying patch.
10815
10816 2006-08-28  Bruno Haible  <bruno@clisp.org>
10817
10818         * gnulib-tool (func_relativize, func_relconcat): New functions.
10819         Give an error if --local-dir is given with --update.
10820         Remove trailing slashes from $local_gnulib_dir.
10821         (func_import): Store the relativized $local_gnulib_dir in
10822         gnulib-cache.m4, and read it from there if not specified explicitly.
10823
10824 2006-08-28  Bruno Haible  <bruno@clisp.org>
10825
10826         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
10827         is the current directory. Respect also $local_gnulib_dir.
10828
10829 2006-08-28  Bruno Haible  <bruno@clisp.org>
10830             Simon Josefsson  <jas@extundo.com>
10831
10832         BeOS portability.
10833         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
10834
10835 2006-08-27  Jim Meyering  <jim@meyering.net>
10836
10837         * doc/visibility.texi: Remove duplicate word: "pointer".
10838
10839 2006-08-26  Bruno Haible  <bruno@clisp.org>
10840
10841         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
10842         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
10843         (Makefile.am): Create inttypes.h from inttypes_.h.
10844         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
10845
10846         * modules/imaxabs: New file.
10847
10848         * modules/imaxdiv: New file.
10849
10850 2006-08-26  Bruno Haible  <bruno@clisp.org>
10851
10852         * m4/inttypes.m4: New file.
10853         * m4/_inttypes_h.m4: Remove file.
10854         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
10855         PRI_MACROS_BROKEN.
10856         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
10857
10858         * m4/imaxabs.m4: New file.
10859
10860         * m4/imaxdiv.m4: New file.
10861
10862 2006-08-26  Bruno Haible  <bruno@clisp.org>
10863
10864         * lib/inttypes_.h: New file.
10865         * lib/inttypes.h: Remove file.
10866         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
10867
10868         * lib/imaxabs.c: New file.
10869
10870         * lib/imaxdiv.c: New file.
10871
10872 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
10873
10874         New config-h module, so that "make" output needn't be cluttered
10875         by -DHAVE_CONFIG_H.
10876         * MODULES.html.sh (Support for building libraries and executables):
10877         Add config-h.
10878         * modules/config-h: New file.
10879         * gnulib-tool (nl, sed_transform_lib_file): New vars.
10880         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
10881         the config-h module is used.
10882
10883         New configmake module, so that "make" output needn't be cluttered
10884         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
10885         * MODULES.html.sh (Support for building libraries and executables):
10886         Add configmake.
10887         * modules/configmake: New file.
10888
10889 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
10890
10891         * m4/config-h.m4: New file.
10892
10893 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
10894
10895         * config/srclist.txt: Add elisp-comp.
10896
10897 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
10898
10899         * MODULES.html.sh (Support for building libraries and executables):
10900         Add elisp-comp.
10901         * build-aux/elisp-comp: New file.
10902         * modules/elisp-comp: New file.
10903
10904 2006-08-24  Bruno Haible  <bruno@clisp.org>
10905
10906         * gnulib-tool (func_create_testdir): Use non-default values of
10907         sourcebase and m4base.
10908
10909 2006-08-24  Bruno Haible  <bruno@clisp.org>
10910
10911         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
10912         HTML structure.
10913
10914 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
10915
10916         * modules/openat (Depends-on): Add lchown.
10917
10918 2006-08-23  Bruno Haible  <bruno@clisp.org>
10919
10920         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
10921         of gl_LOCK_EARLY instead of gl_LOCK.
10922
10923 2006-08-23  Bruno Haible  <bruno@clisp.org>
10924
10925         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
10926         on OSF/1 to no.
10927         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
10928
10929 2006-08-23  Bruno Haible  <bruno@clisp.org>
10930
10931         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
10932         as unusable.
10933
10934         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
10935         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
10936         (gl_LOCK): New macro.
10937
10938 2006-08-22  Simon Josefsson  <jas@extundo.com>
10939
10940         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
10941         to md5 module.
10942
10943 2006-08-22  Simon Josefsson  <jas@extundo.com>
10944
10945         * MODULES.html.sh: Add "Support for maintaining and release
10946         projects".
10947
10948         * build-aux/gnupload: New file, from coreutils.
10949
10950 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
10951
10952         Avoid the need for AC_LIBSOURCES in m4 macros.
10953         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
10954         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
10955         * modules/check-version (EXTRA_DIST): Add check-version.h.
10956         * modules/crc (EXTRA_DIST): Add crc.h.
10957         * modules/des (EXTRA_DIST): Add des.h.
10958         * modules/gc (EXTRA_DIST): Add gc.h.
10959         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
10960         * modules/getline (EXTRA_DIST): Add getline.h.
10961         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
10962         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
10963         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
10964         * modules/md2 (EXTRA_DIST): Add md2.h.
10965         * modules/md4 (EXTRA_DIST): Add md4.h.
10966         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
10967         * modules/read-file (EXTRA_DIST): Add read-file.h.
10968         * modules/readline (EXTRA_DIST): Add readline.h.
10969         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
10970         rijndael-api-fst.h.
10971
10972 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
10973
10974         * m4/rijndael.m4 (gl_ARCFOUR):
10975         * m4/arctwo.m4 (gl_ARCTWO):
10976         * m4/check-version.m4 (gl_CHECK_VERSION):
10977         * m4/crc.m4 (gl_CRC):
10978         * m4/des.m4 (gl_DES):
10979         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
10980         * m4/gc.m4 (gl_GC):
10981         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
10982         * m4/getline.m4 (gl_FUNC_GETLINE):
10983         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
10984         * m4/hmac-md5.m4 (gl_HMAC_MD5):
10985         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
10986         * m4/md2.m4 (gl_MD2):
10987         * m4/md4.m4 (gl_MD4):
10988         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
10989         * m4/read-file.m4 (gl_FUNC_READ_FILE):
10990         * m4/readline.m4 (gl_FUNC_READLINE):
10991         * m4/rijndael.m4 (gl_RIJNDAEL):
10992         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
10993         to get the necessary .h files and whatnot.
10994
10995 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
10996
10997         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
10998         gnulib rather than the other way around.
10999         * config/srclistvars.sh (COREUTILS): Remove.
11000
11001 2006-08-22  Jim Meyering  <jim@meyering.net>
11002
11003         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
11004
11005         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
11006
11007 2006-08-22  Eric Blake  <ebb9@byu.net>
11008
11009         * modules/regexprops-generic: New file.
11010         * MODULES.html.sh (Support for building documentation): List it.
11011
11012 2006-08-22  Eric Blake  <ebb9@byu.net>
11013
11014         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
11015         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
11016         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
11017         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
11018
11019 2006-08-22  Bruno Haible  <bruno@clisp.org>
11020
11021         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
11022         and lib_LTLIBRARIES like the other lib_* variables.
11023
11024 2006-08-22  Bruno Haible  <bruno@clisp.org>
11025
11026         * build-aux/x-to-1.in: New file, from GNU gettext.
11027
11028 2006-08-22  Bruno Haible  <bruno@clisp.org>
11029
11030         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
11031         <utmpx.h> exists.
11032
11033 2006-08-22  Bruno Haible  <bruno@clisp.org>
11034
11035         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
11036         <utmpx.h> exists.
11037
11038 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
11039
11040         BeOS portability.
11041         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
11042         exist.
11043         Problem reported by Bruno Haible.
11044
11045 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
11046
11047         Avoid the need for AC_LIBSOURCES in m4 macros.
11048         * modules/acl (EXTRA_DIST): Add acl.h.
11049         * modules/argmatch (Files): Add m4/argmatch.m4.
11050         (configure.ac): Add gl_ARGMATCH.
11051         (EXTRA_DIST): Renamed from lib_SOURCES, for
11052         consistency with the other modules.  Remove argmatch.c.
11053         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
11054         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
11055         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
11056         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
11057         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
11058         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
11059         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
11060         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
11061         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
11062         * modules/closeout (EXTRA_DIST): Add closeout.h.
11063         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
11064         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
11065         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
11066         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
11067         dirname.h; remove basename.c and stripslash.c.
11068         * modules/exclude (EXTRA_DIST): Add exclude.h.
11069         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
11070         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
11071         * modules/file-type (EXTRA_DIST): Add file-type.h.
11072         * modules/filemode (EXTRA_DIST): Add filemode.h.
11073         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
11074         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
11075         * modules/fpending (EXTRA_DIST): Add __fpending.h.
11076         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
11077         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
11078         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
11079         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
11080         * modules/getdate (EXTRA_DIST): Add getdate.c.
11081         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
11082         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
11083         * modules/getpass (EXTRA_DIST): Add getpass.h.
11084         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
11085         * modules/group-member (EXTRA_DIST): Add group-member.h.
11086         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
11087         * modules/hash (EXTRA_DIST): Add hash.h.
11088         * modules/human (EXTRA_DIST): Add human.h.
11089         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
11090         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
11091         * modules/lchown (EXTRA_DIST): Add lchown.h.
11092         * modules/long-options (EXTRA_DIST): Add long-options.h.
11093         * modules/lstat (EXTRA_DIST): Add lstat.h.
11094         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
11095         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
11096         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
11097         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
11098         * modules/memxor (EXTRA_DIST): Add memxor.h.
11099         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
11100         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
11101         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
11102         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
11103         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
11104         * modules/physmem (EXTRA_DIST): Add physmem.h.
11105         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
11106         * modules/posixver (EXTRA_DIST): Add posixver.h.
11107         * modules/quote (EXTRA_DIST): Add quote.h.
11108         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
11109         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
11110         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
11111         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
11112         regex_internal.h regexec.c.
11113         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
11114         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
11115         * modules/same (EXTRA_DIST): Add same.h.
11116         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
11117         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
11118         * modules/savedir (EXTRA_DIST): Add savedir.h.
11119         * modules/sha1 (EXTRA_DIST): Add sha1.h.
11120         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
11121         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
11122         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
11123         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
11124         * modules/strdup (EXTRA_DIST): Add strdup.h.
11125         * modules/strftime (EXTRA_DIST): Add strftime.h.
11126         * modules/strndup (EXTRA_DIST): Add strndup.h.
11127         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
11128         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
11129         * modules/time_r (EXTRA_DIST): Add time_r.h.
11130         * modules/timespec (EXTRA_DIST): Add timespec.h.
11131         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
11132         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
11133         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
11134         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
11135         * modules/userspec (EXTRA_DIST): Add userspec.h.
11136         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
11137         * modules/utimens (EXTRA_DIST): Add utimens.h.
11138         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
11139         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
11140         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
11141         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
11142         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
11143         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
11144         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
11145         * modules/yesno (EXTRA_DIST): Add yesno.h.
11146
11147 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
11148
11149         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
11150
11151         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
11152         * m4/dev-ino.m4, same-inode.m4: Remove.
11153
11154         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
11155         * m4/acl.m4 (AC_FUNC_ACL):
11156         * m4/backupfile.m4 (gl_BACKUPFILE):
11157         * m4/c-strtod.m4 (gl_C99_STRTOLD):
11158         * m4/canon-host.m4 (gl_CANON_HOST):
11159         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
11160         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
11161         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
11162         * m4/cloexec.m4 (gl_CLOEXEC):
11163         * m4/close-stream.m4 (gl_CLOSE_STREAM):
11164         * m4/closeout.m4 (gl_CLOSEOUT):
11165         * m4/dirfd.m4 (gl_FUNC_DIRFD):
11166         * m4/dirname.m4 (gl_DIRNAME):
11167         * m4/exclude.m4 (gl_EXCLUDE):
11168         * m4/exitfail.m4 (gl_EXITFAIL):
11169         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
11170         * m4/file-type.m4 (gl_FILE_TYPE):
11171         * m4/filemode.m4 (gl_FILEMODE):
11172         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
11173         * m4/fpending.m4 (gl_FUNC_FPENDING):
11174         * m4/fprintftime.m4 (gl_FPRINTFTIME):
11175         * m4/fts.m4 (gl_FUNC_FTS):
11176         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
11177         * m4/getdate.m4 (gl_GETDATE):
11178         * m4/gethrxtime.m4 (gl_GETHRXTIME):
11179         * m4/getpagesize.m4 (gl_GETPAGESIZE):
11180         * m4/getpass.m4 (gl_FUNC_GETPASS):
11181         * m4/gettime.m4 (gl_GETTIME):
11182         * m4/getugroups.m4 (gl_GETUGROUPS):
11183         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
11184         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
11185         * m4/hard-locale.m4 (gl_HARD_LOCALE):
11186         * m4/hash.m4 (gl_HASH):
11187         * m4/idcache.m4 (gl_IDCACHE):
11188         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
11189         * m4/lchown.m4 (gl_FUNC_LCHOWN):
11190         * m4/long-options.m4 (gl_LONG_OPTIONS):
11191         * m4/lstat.m4 (gl_FUNC_LSTAT):
11192         * m4/md5.m4 (gl_MD5):
11193         * m4/memcasecmp.m4 (gl_MEMCASECMP):
11194         * m4/memcoll.m4 (gl_MEMCOLL):
11195         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
11196         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
11197         * m4/memxor.m4 (gl_MEMXOR):
11198         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
11199         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
11200         * m4/modechange.m4 (gl_MODECHANGE):
11201         * m4/mountlist.m4 (gl_MOUNTLIST):
11202         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
11203         * m4/openat.m4 (gl_FUNC_OPENAT):
11204         * m4/pathmax.m4 (gl_PATHMAX):
11205         * m4/physmem.m4 (gl_PHYSMEM):
11206         * m4/posixtm.m4 (gl_POSIXTM):
11207         * m4/posixver.m4 (gl_POSIXVER):
11208         * m4/quote.m4 (gl_QUOTE):
11209         * m4/quotearg.m4 (gl_QUOTEARG):
11210         * m4/readtokens.m4 (gl_READTOKENS):
11211         * m4/readutmp.m4 (gl_READUTMP):
11212         * m4/regex.m4 (gl_REGEX):
11213         * m4/safe-read.m4 (gl_SAFE_READ):
11214         * m4/safe-write.m4 (gl_SAFE_WRITE):
11215         * m4/same.m4 (gl_SAME):
11216         * m4/save-cwd.m4 (gl_SAVE_CWD):
11217         * m4/savedir.m4 (gl_SAVEDIR):
11218         * m4/settime.m4 (gl_SETTIME):
11219         * m4/sha1.m4 (gl_SHA1):
11220         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
11221         * m4/stat-macros.m4 (gl_STAT_MACROS):
11222         * m4/stat-time.m4 (gl_STAT_TIME):
11223         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
11224         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
11225         * m4/strdup.m4 (gl_FUNC_STRDUP):
11226         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
11227         * m4/strndup.m4 (gl_FUNC_STRNDUP):
11228         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
11229         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
11230         * m4/time_r.m4 (gl_TIME_R):
11231         * m4/timespec.m4 (gl_TIMESPEC):
11232         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
11233         * m4/unlinkdir.m4 (gl_UNLINKDIR):
11234         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
11235         * m4/userspec.m4 (gl_USERSPEC):
11236         * m4/utimecmp.m4 (gl_UTIMECMP):
11237         * m4/utimens.m4 (gl_UTIMENS):
11238         * m4/xalloc.m4 (gl_XALLOC):
11239         * m4/xgetcwd.m4 (gl_XGETCWD):
11240         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
11241         * m4/xreadlink.m4 (gl_XREADLINK):
11242         * m4/xstrtod.m4 (gl_XSTRTOD):
11243         * m4/yesno.m4 (gl_YESNO):
11244         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
11245         to get the necessary .h files and whatnot.
11246
11247 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
11248             Bruno Haible  <bruno@clisp.org>
11249
11250         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
11251         /bin/sh understanding of '!' conditional negation.
11252
11253 2006-08-21  Jim Meyering  <jim@meyering.net>
11254
11255         * modules/openat (Depends-on): Really alphabetize.
11256
11257         * modules/acl (Depends-on): Add error and quote.
11258
11259         * check-module (find_included_lib_files): Add at-func.c to the
11260         ok-to-include-more-than-once white list.
11261
11262         * modules/openat (Depends-on): Add lstat.  Alphabetize.
11263
11264 2006-08-21  Bruno Haible  <bruno@clisp.org>
11265
11266         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
11267         Emit a pkgdata_DATA variable only if some snippets add contents to it.
11268         Reported by Martin Lambers <marlam@marlam.de>.
11269
11270 2006-08-21  Bruno Haible  <bruno@clisp.org>
11271
11272         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
11273         specify an installation location, don't emit a noinst_LIBRARIES or
11274         noinst_LTLIBRARIES assignment.
11275
11276 2006-08-21  Bruno Haible  <bruno@clisp.org>
11277
11278         BeOS portability.
11279         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
11280         BeOS has mbrtowc() but no <wctype.h>.
11281
11282 2006-08-21  Bruno Haible  <bruno@clisp.org>
11283
11284         BeOS portability.
11285         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
11286         exist.
11287
11288 2006-08-21  Bruno Haible  <bruno@clisp.org>
11289
11290         BeOS portability.
11291         * lib/mbchar.h: Include <wctype.h> only if it exists.
11292
11293 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
11294
11295         Remove files that are no longer needed by their respective modules.
11296         * m4/obstack.m4: Remove.
11297         * m4/strerror_r.m4: Remove.
11298         * m4/uint32_t.m4: Remove.
11299         * m4/uintptr_t.m4: Remove.
11300         * m4/ullong_max.m4: Remove.
11301         * m4/xstrtoimax.m4: Remove.
11302         * m4/xstrtoumax.m4: Remove.
11303
11304         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
11305         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
11306         dependencies now capture this.
11307
11308         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
11309         Do not use AC_LIBSOURCES, since gnulib modules now do this.
11310         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
11311         * m4/human.m4 (gl_HUMAN): Likewise.
11312         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
11313         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
11314
11315         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
11316
11317         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
11318         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
11319         stdint.
11320         * m4/human.m4 (gl_HUMAN): Likewise.
11321         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
11322         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
11323         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
11324         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
11325         * m4/xstrtol (gl_XSTRTOL): Likewise.
11326
11327         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
11328         AC_TYPE_LONG_LONG_INT.
11329         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
11330         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
11331         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
11332         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
11333
11334         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
11335         on stdbool.
11336
11337         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
11338         (gl_PREREQ_XSTRTOUL): Remove.
11339
11340         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
11341
11342         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
11343         mode.
11344
11345 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
11346
11347         Add and change modules to make it easier for coreutils to use
11348         gnulib-tool.
11349         * modules/backupfile (Files): Remove m4/d-ino.m4.
11350         (Depends-on): Add d-ino.
11351         * modules/cycle-check (Depends-on): Add stdint.
11352         (lib_SOURCES): Add cycle-check.h.
11353         * modules/d-ino: New module.
11354         * modules/d-type: New module.
11355         * modules/error (Files): Remove m4/strerror_r.m4.
11356         * modules/filemode (Files): Add m4/st_dm_mode.m4.
11357         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
11358         m4/inttypes_h.m4, m4/uintmax_t.m4.
11359         (Depends-on): Add stdint.
11360         (lib_SOURCES): Add fsusage.h.
11361         * modules/getcwd (Files): Remove d-ino.m4.
11362         (Depends-on): Add d-ino.
11363         * modules/getndelim2 (Depends-on): Add stdint.
11364         * modules/glob (Files): Remove m4/d-type.m4.
11365         (Depends-on): Add d-type.
11366         * modules/host-os: New module.
11367         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
11368         m4/inttypes_h.m4, m4/uintmax_t.m4.
11369         * Depends-on: Add stdint.
11370         (lib_SOURCES): Add human.h.
11371         * modules/inttostr (Files): Remove m4/intmax_t.m4,
11372         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
11373         m4/uintmax_t.m4, m4/ulonglong.m4.
11374         (Depends-on): Add stdint.
11375         (EXTRA_DIST): Add inttostr.h.
11376         * modules/lchmod: New module.
11377         * modules/link-follow: New module.
11378         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
11379         (Depends-on): Add lchmod.
11380         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
11381         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
11382         (Depends-on): Add stdint.
11383         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
11384         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
11385         (Depends-on): Add stdint.
11386         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
11387         * modules/perl: New module.
11388         * modules/regex (Depends-on): Add stdint.
11389         * modules/rmdir-errno: New module.
11390         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
11391         m4/intmax_t.m4.
11392         (Depends-on): Add stdint.
11393         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
11394         m4/uintmax_t.m4.
11395         (Depends-on): Add stdint.
11396         * modules/unlink-busy: New module.
11397         * modules/utimecmp (Depends-on): Add stdint.
11398         * modules/uptime: New module.
11399         * modules/winsz-ioctl: New module.
11400         * modules/winsz-termios: New module.
11401         * modules/xnanosleep (Depends-on): Add nanosleep.
11402         * modules/ullong_max: Remove.
11403         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
11404         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
11405         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
11406         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
11407         (Depends-on): Add inttypes.
11408         (lib_SOURCES): Add xstrtol.h.
11409         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
11410         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
11411         * MODULES.html.sh: Move 'assert' into the assert section.
11412         Move 'dummy' into the linking section.
11413         Remove ullong_max.
11414         Add section for compatibility checks for POSIX:2001 functions,
11415         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
11416         winsz-ioctl, and winsz-termios into it.
11417         Add lchmod.
11418         Add top-level Misc section and put host-os, perl, and uptime
11419         into it.
11420
11421 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
11422
11423         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
11424         now assume the stdint module.  Do not include inttypes.h.
11425         * lib/fsusage.h: Likewise.
11426         * lib/getndelim2.c: Likewise.
11427         * lib/human.h: Likewise.
11428         * lib/inttostr.h: Likewise.
11429         * lib/obstack.c: Likewise.
11430         * lib/regex_internal.h: Likewise.
11431         * lib/tempname.c: Likewise.
11432         * lib/utimecmp.c: Likewise.
11433         * lib/xstrtol.h: Likewise.
11434
11435         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
11436
11437         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
11438         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
11439         * lib/xtime.h: Likewise.
11440
11441 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
11442
11443         * modules/openat (Files): Add lib/fchmodat.c.
11444         Fixes problem reported by Jay Youngman.
11445
11446 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
11447
11448         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
11449         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
11450
11451 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
11452             Bruno Haible  <bruno@clisp.org>
11453
11454         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
11455         and is a script that invokes bison. Tighten the code. Add comments.
11456
11457 2006-08-18  Jim Meyering  <jim@meyering.net>
11458
11459         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
11460         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
11461         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
11462         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
11463
11464 2006-08-18  Bruno Haible  <bruno@clisp.org>
11465
11466         * modules/bison-i18n: New file.
11467         * MODULES.html.sh (Internationalization functions): Add it.
11468
11469 2006-08-18  Bruno Haible  <bruno@clisp.org>
11470
11471         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
11472         sys/statvfs.h. When getmntinfo was found, check its declaration and
11473         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
11474
11475 2006-08-18  Bruno Haible  <bruno@clisp.org>
11476
11477         * m4/bison-i18n.m4: New file, from bison.
11478
11479 2006-08-18  Bruno Haible  <bruno@clisp.org>
11480
11481         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
11482         (ME_DUMMY): Treat "kernfs" as a dummy.
11483         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
11484
11485 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
11486
11487         Update from coreutils.
11488
11489         2006-08-15  Jim Meyering  <jim@meyering.net>
11490
11491         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
11492
11493         2006-01-17  Jim Meyering  <jim@meyering.net>
11494
11495         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
11496
11497         2006-01-11  Jim Meyering  <jim@meyering.net>
11498
11499         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
11500         Check for the lchmod function.
11501
11502 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
11503
11504         Update from coreutils.
11505
11506         * lib/__fpending.h: Add copyright notice.
11507         * lib/fprintftime.h: Likewise.
11508         * lib/savedir.c: Use (C) in copyright notice.
11509         * lib/savedir.h: Likewise.
11510
11511         2006-08-15  Jim Meyering  <jim@meyering.net>
11512
11513         * lib/at-func.c: New file, with the logic of all emulated at-functions.
11514         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
11515         in support of the EXPECTED_ERRNO macro.
11516         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
11517         definitions.  Instead, define the appropriate symbols and include
11518         "at-func.c".
11519         * lib/mkdirat.c (mkdirat): Likewise.
11520         * lib/fchmodat.c (fchmodat): Likewise.
11521         (ENOSYS): Remove definition.
11522         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
11523         it.  Don't include "unistd--.h" -- it wasn't ever used.
11524
11525         2006-01-17  Jim Meyering  <jim@meyering.net>
11526
11527         Rewrite fts.c not to change the current working directory,
11528         by using openat, fstatat, fdopendir, etc..
11529
11530         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
11531         (HAVE_OPENAT_SUPPORT): Define.
11532         [_LIBC] (fchdir): Don't undef or define; no longer used.
11533         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
11534         Now, this `function' always succeeds, and consumes its file descriptor
11535         parameter -- so callers must not close such FDs.  Update callers.
11536         (diropen_fd, opendirat, cwd_advance_fd): New functions.
11537         (diropen): Add parameter, SP.  Adjust all callers.
11538         Implement using diropen_fd, rather than open.
11539         (fts_open): Initialize new member, fts_cwd_fd.
11540         Remove fts_rft-setting code.
11541         (fts_close): Close fts_cwd_fd, if necessary.
11542         (__opendir2): Define in terms of opendir or opendirat,
11543         depending on whether the FST_NOCHDIR flag is set.
11544         (fts_build): Since fts_safe_changedir consumes its FD, and since
11545         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
11546         and close the dup'd file descriptor upon failure.
11547         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
11548         (fts_safe_changedir): Tweak semantics to reflect that this function
11549         now calls cwd_advance_fd and hence consumes its FD argument.
11550         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
11551         [struct FTS] (fts_rft): Remove now-unused member.
11552         [struct FTS] (fts_cycle.state): Improve comment.
11553
11554         * lib/openat.c (openat_needs_fchdir): New function.
11555         * lib/openat.h (openat_needs_fchdir): Declare it.
11556
11557 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
11558
11559         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
11560         Problem and fix reported by Pádraig Brady in
11561         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
11562
11563 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
11564
11565         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
11566
11567 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
11568
11569         * lib/memcoll.c (memcoll): Optimize for the common case where the
11570         arguments are bytewise equal.
11571
11572 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
11573
11574         * doc/regexprops-generic.texi: Add a copyright notice.
11575
11576 2006-08-15  Bruno Haible  <bruno@clisp.org>
11577
11578         * modules/tmpdir (License): Change to LGPL.
11579
11580 2006-08-15  Bruno Haible  <bruno@clisp.org>
11581
11582         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
11583         module.
11584
11585 2006-08-14  Simon Josefsson  <jas@extundo.com>
11586
11587         * config/srclist.txt: Add gnupload.
11588
11589 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
11590
11591         Change copyright notice from LGPL 2 to GPL 2, since that's the
11592         standard form used in the gnulib repository.
11593         * tests/test-lock.c: Likewise.
11594         * tests/test-stdint.c: Likewise.
11595         * tests/test-tls.c: Likewise.
11596
11597         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
11598         prelude-manager.  User shorter URLs for GNU projects, without '?'.
11599         Add copyright notice.
11600
11601         * check-module: Add copyright notice.  Output a copyright
11602         notice if "--version" is specified.
11603         * modules/COPYING: New file.
11604         * tests/test-getaddrinfo.c: Add copyright notice.
11605         * tests/test-verify.c: Likewise.
11606
11607 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
11608
11609         Change copyright notice from LGPL 2 to GPL 2, since that's the
11610         standard form used in the gnulib repository.
11611         * lib/lock.c: LGPL -> GPL.
11612         * lib/lock.h: Likewise.
11613         * lib/strnlen1.c: Likewise.
11614         * lib/strnlen1.h: Likewise.
11615         * lib/tls.c: Likewise.
11616         * lib/tls.h: Likewise.
11617         * lib/tmpdir.c: Likewise.
11618
11619         * lib/TODO: Remove; this belongs only in coreutils.
11620
11621 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
11622
11623         Add copyright notices to long-enough files that lack them, since
11624         otherwise the files aren't clearly free.  Use the same notice that
11625         getdate.texi already uses.
11626         * doc/alloca-opt.texi: Add copyright notice.
11627         * doc/alloca.texi: Likewise.
11628         * doc/ctime.texi: Likewise.
11629         * doc/functions.texi: Likewise.
11630         * doc/gcd.texi: Likewise.
11631         * doc/gnulib-tool.texi: Likewise.
11632         * doc/inet_ntoa.texi: Likewise.
11633         * doc/visibility.texi: Likewise.
11634
11635         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
11636         * doc/quote.texi: Add copyright notice.
11637
11638         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
11639         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
11640         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
11641         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
11642         is now obsolete, and give a pointer to the Sun list.
11643         Add copyright notice.
11644
11645 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
11646
11647         * config/srclistvars.sh: Add copyright notice.
11648
11649 2006-08-14  Eric Blake  <ebb9@byu.net>
11650
11651         Import the following change from libc:
11652
11653         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
11654
11655         Upstream bug 2997.
11656         * lib/misc/error.c: Add space between program name and message if file
11657         name is missing.
11658
11659 2006-08-12  Karl Berry  <karl@gnu.org>
11660
11661         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
11662         remove, these originate in gnulib now.
11663
11664 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11665
11666         * doc/Makefile (standards.info standards.html standards.dvi):
11667         Also depend on make-stds.texi.
11668
11669 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
11670
11671         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
11672         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
11673
11674         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
11675         in wchar_t.  Problem reported by Eric Blake.
11676
11677         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
11678         LEN is smaller than SIZE.  Suggested by Bruno Haible.
11679         Also, help the compiler to keep LEN in a register.
11680
11681 2006-08-11  Eric Blake  <ebb9@byu.net>
11682
11683         * users.txt: Sort.  Add tar.
11684
11685 2006-08-11  Bruno Haible  <bruno@clisp.org>
11686
11687         * users.txt: New file.
11688
11689 2006-08-11  Bruno Haible  <bruno@clisp.org>
11690
11691         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
11692         before <wchar.h>. Needed for OSF/1 and BSD/OS.
11693
11694 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
11695
11696         * modules/snprintf (Depends-on): Remove minmax.
11697         (Maintainer): Add self and Bruno.
11698
11699 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
11700
11701         * lib/.cppi-disable: Add snprintf.h, socket_.h.
11702         * lib/snprintf.c: Include <errno.h> and <limits.h>.
11703         (EOVERFLOW): Define if the system does not.
11704         Do not include "minmax.h"; it wasn't used.
11705         (snprintf): Don't assume size_t promotes to an unsigned type.
11706         Fix bug when generated string was too long for the buffer: the
11707         buffer's contents are supposed to be the initial prefix of the
11708         output.  Don't assume vasnprintf returns EOVERFLOW if the size
11709         exceeds INT_MAX; do the check ourselves.
11710
11711         Import the following changes from libc:
11712
11713         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
11714
11715         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
11716         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
11717         set wc to the byte which couldn't be converted.
11718         (re_string_reconstruct): Don't clear valid_raw_len before calling
11719         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
11720         tip_context using re_string_context_at.
11721
11722         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
11723
11724         * lib/posix/regex.h: g++ still cannot handled [restrict].
11725
11726         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
11727
11728         * lib/posix/regex.h: Remove special handling for VMS.
11729
11730 2006-08-10  Jim Meyering  <jim@meyering.net>
11731
11732         * modules/same-inode: New module.
11733         * modules/dev-ino: New module.
11734         * modules/cycle-check: Depend on these modules, rather than simply
11735         including their .h files.
11736         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
11737         required via m4/cycle-check.m4.
11738         * modules/same: Depend on new same-inode module, rather than
11739         including same-inode.h.
11740         * modules/chdir-safer: New file.
11741
11742         * modules/chown (Depends-on): Add stat-macros.
11743
11744 2006-08-10  Jim Meyering  <jim@meyering.net>
11745
11746         * m4/cycle-check.m4: New file.
11747         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
11748         * m4/dev-ino.m4, m4/same-inode.m4: New files.
11749
11750 2006-08-10  Eric Blake  <ebb9@byu.net>
11751
11752         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
11753         in from original proposal.
11754
11755 2006-08-10  Eric Blake  <ebb9@byu.net>
11756         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11757
11758         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
11759         namespace.
11760
11761 2006-08-10  Bruno Haible  <bruno@clisp.org>
11762
11763         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
11764         as well.
11765
11766 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
11767
11768         Sync from coreutils.
11769
11770         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
11771
11772         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
11773         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
11774
11775 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
11776
11777         * modules/restrict: Remove; no longer needed now that we assume
11778         Autoconf 2.59 or later.
11779         * MODULES.html.sh: Remove 'restrict'.
11780         * modules/argp (Depends-on): Remove 'restrict'.
11781         * modules/base64 (Depends-on): Likewise.
11782         * modules/gc (Depends-on): Likewise.
11783         * modules/getaddrinfo (Depends-on): Likewise.
11784         * modules/glob (Depends-on): Likewise.
11785         * modules/inet_ntop (Depends-on): Likewise.
11786         * modules/inet_pton (Depends-on): Likewise.
11787         * modules/memxor (Depends-on): Likewise.
11788         * modules/regex (Depends-on): Likewise.
11789         * modules/strtok_r (Depends-on): Likewise.
11790         * modules/time_r (Depends-on): Likewise.
11791
11792 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
11793
11794         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
11795         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
11796         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
11797         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
11798         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
11799         * m4/memxor.m4 (gl_MEMXOR): Likewise.
11800         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
11801         gl_C_RESTRICT replaced by AC_C_RESTRICT.
11802
11803         Merge from coreutils.
11804         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
11805         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
11806         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
11807         * m4/time_r.m4 (gl_TIME_R): Likewise.
11808
11809 2006-08-09  Karl Berry  <karl@gnu.org>
11810
11811         * config/srclist.txt: no more gettext-tools, per Bruno.
11812
11813 2006-08-08  Eric Blake  <ebb9@byu.net>
11814
11815         * modules/verror: New module.
11816         * MODULES.html.sh: Document it.
11817
11818 2006-08-08  Eric Blake  <ebb9@byu.net>
11819
11820         * lib/verror.h, lib/verror.c: New files.
11821
11822 2006-08-08  Eric Blake  <ebb9@byu.net>
11823
11824         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
11825         verror_at_line output complies with GNU Coding Standards even when
11826         file is NULL.
11827
11828 2006-08-07  Bruno Haible  <bruno@clisp.org>
11829
11830         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
11831         versions of AIX.
11832         Reported by Ralf Wildenhues.
11833
11834 2006-08-07  Bruno Haible  <bruno@clisp.org>
11835
11836         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
11837         in an AC_DEFUN. Needed so that the autoconf snippets can use
11838         AC_REQUIRE.
11839
11840 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11841
11842         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
11843         Initialize pkgdata_DATA.
11844         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
11845         overriding it.
11846
11847 2006-08-06  Eric Blake  <ebb9@byu.net>
11848
11849         * lib/error.h: Fold in some upstream changes from glibc.
11850         * lib/error.c: Likewise.
11851
11852 2006-08-04  Bruno Haible  <bruno@clisp.org>
11853
11854         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
11855         Make the mostlyclean-local rule depend on mostlyclean-generic.
11856         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
11857
11858 2006-07-31  Bruno Haible  <bruno@clisp.org>
11859
11860         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
11861         <stdlib.h>, <string.h>.
11862
11863 2006-07-30  Bruno Haible  <bruno@clisp.org>
11864
11865         * modules/readlink (License): Change to LGPL.
11866
11867 2006-07-30  Bruno Haible  <bruno@clisp.org>
11868
11869         * modules/javaversion (Makefile.am): Distribute javaversion.java and
11870         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
11871         set PKGDATADIR to point to it.
11872
11873 2006-07-30  Bruno Haible  <bruno@clisp.org>
11874
11875         * modules/csharpexec (configure.ac): Comment out macro invocation.
11876         * modules/javaexec (configure.ac): Likewise.
11877         * modules/javacomp-script (configure.ac): Likewise.
11878
11879         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
11880
11881 2006-07-30  Bruno Haible  <bruno@clisp.org>
11882
11883         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
11884         linked-list.
11885
11886 2006-07-30  Bruno Haible  <bruno@clisp.org>
11887
11888         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
11889
11890 2006-07-30  Bruno Haible  <bruno@clisp.org>
11891
11892         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
11893         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
11894         get removed.
11895
11896 2006-07-29  Bruno Haible  <bruno@clisp.org>
11897
11898         Make it possible for gnulib-tool to work with locally modified or
11899         augmented gnulib repositories.
11900         * gnulib-tool (func_usage): Document --local-dir option.
11901         (local_gnulib_dir): New variable.
11902         Handle --local-dir option.
11903         (func_lookup_file): New function.
11904         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
11905         (func_get_description, func_get_filelist, func_get_description,
11906         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
11907         func_get_automake_snippet, func_get_include_directive,
11908         func_get_license, func_get_maintainer): Use func_lookup_file.
11909         (func_import, func_create_testdir): Use func_lookup_file.
11910
11911 2006-07-29  Bruno Haible  <bruno@clisp.org>
11912
11913         * modules/setenv (Depends-on): Add unistd.
11914
11915 2006-07-29  Bruno Haible  <bruno@clisp.org>
11916
11917         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
11918
11919 2006-07-29  Bruno Haible  <bruno@clisp.org>
11920
11921         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
11922
11923 2006-07-29  Bruno Haible  <bruno@clisp.org>
11924
11925         * gnulib-tool (import, update): If there is no Makefile.am, look at
11926         aclocal.m4, instead of bailing out.
11927
11928 2006-07-29  Bruno Haible  <bruno@clisp.org>
11929
11930         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
11931         Categorize the options by when they are useful.
11932
11933 2006-07-29  Bruno Haible  <bruno@clisp.org>
11934
11935         * gnulib-tool (func_usage): Document option --no-libtool.
11936         Handle option --no-libtool.
11937         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
11938         for changed semantics of $libtool variable.
11939         (func_import): Likewise. If libtool is not used, show this through
11940         an option --no-libtool.
11941         (func_create_testdir): Update.
11942
11943 2006-07-29  Bruno Haible  <bruno@clisp.org>
11944
11945         * gnulib-tool (func_import): Extend error message about missing
11946         --doc-base.
11947
11948 2006-07-29  Bruno Haible  <bruno@clisp.org>
11949
11950         * gnulib-tool (func_import): Don't create the $docbase directory if
11951         there is no file to store there.
11952
11953 2006-07-29  Bruno Haible  <bruno@clisp.org>
11954
11955         * gnulib-tool (autoconf_minversion): If a --dir option is given and
11956         relevant, look for configure.ac there, not in the current directory.
11957         Also use a simple search for AC_PREREQ, not "autoconf --trace".
11958
11959 2006-07-29  Bruno Haible  <bruno@clisp.org>
11960
11961         * gnulib-tool (SORT): New variable.
11962         (func_usage): Undocument --assume-autoconf option.
11963         Remove --assume-autoconf option handling.
11964         (autoconf_minversion): Determine from the contents of configure.ac.
11965         (func_import): Remove autoconf_minversion handling.
11966         Suggested by Eric Blake.
11967
11968 2006-07-29  Bruno Haible  <bruno@clisp.org>
11969
11970         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
11971
11972 2006-07-29  Bruno Haible  <bruno@clisp.org>
11973
11974         * config/srclist.txt (*setenv.[ch]): Remove rules.
11975
11976 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
11977
11978         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
11979
11980 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
11981
11982         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
11983         arpa/inet.h.
11984
11985 2006-07-28  Simon Josefsson  <jas@extundo.com>
11986
11987         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
11988         * modules/inet_pton (Depends-on): Likewise.
11989
11990 2006-07-28  Simon Josefsson  <jas@extundo.com>
11991
11992         * m4/netinet_in_h.m4: New file.
11993
11994 2006-07-28  Simon Josefsson  <jas@extundo.com>
11995
11996         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
11997         #include's.
11998
11999 2006-07-28  Simon Josefsson  <jas@extundo.com>
12000
12001         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
12002         #include's.
12003
12004 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
12005
12006         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
12007         setgid on directories only if they set these bits.
12008         * lib/modechange.h: Remove obsolete comment about masks.
12009
12010 2006-07-28  Eric Blake  <ebb9@byu.net>
12011
12012         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
12013         macro expansion.
12014
12015 2006-07-28  Bruno Haible  <bruno@clisp.org>
12016
12017         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
12018
12019 2006-07-28  Bruno Haible  <bruno@clisp.org>
12020
12021         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
12022
12023 2006-07-28  Bruno Haible  <bruno@clisp.org>
12024
12025         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
12026         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
12027         Define fallbacks.
12028         Avoids link error on FreeBSD 4.x.
12029         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
12030
12031         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
12032         encoding.
12033         * lib/mbswidth.c (iswcntrl): Likewise.
12034
12035 2006-07-27  Bruno Haible  <bruno@clisp.org>
12036
12037         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
12038         test.
12039
12040 2006-07-27  Bruno Haible  <bruno@clisp.org>
12041
12042         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
12043         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
12044         defined.
12045
12046 2006-07-26  Eric Blake  <ebb9@byu.net>
12047
12048         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
12049
12050 2006-07-26  Eric Blake  <ebb9@byu.net>
12051
12052         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
12053         like mingw that lack mkstemp.
12054         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
12055         avoid compilation warning on mingw.
12056
12057 2006-07-26  Bruno Haible  <bruno@clisp.org>
12058
12059         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
12060         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
12061         INT_FAST*_MIN, INTPTR_MIN.
12062
12063 2006-07-25  Bruno Haible  <bruno@clisp.org>
12064
12065         * modules/version-etc (Depends-on): Add stdarg.
12066
12067 2006-07-25  Bruno Haible  <bruno@clisp.org>
12068
12069         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
12070         complex commands.
12071
12072 2006-07-25  Bruno Haible  <bruno@clisp.org>
12073
12074         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
12075         defined in <stdarg.h> or config.h.
12076
12077 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
12078
12079         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
12080         (gl_STDIO_SAFER): Remove.
12081
12082 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
12083
12084         * MODULES.html.sh (File stream based Input/Output):
12085         Add fopen-safer, tmpfile-safer; remove stdio-safer.
12086         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
12087         * modules/fopen-safer, modules/tmpfile-safer: New files.
12088         * modules/stdio-safer: Remove.
12089
12090 2006-07-24  Bruno Haible  <bruno@clisp.org>
12091
12092         * modules/tmpdir: New file.
12093         * MODULES.html.sh (File system functions): Add it.
12094
12095 2006-07-24  Bruno Haible  <bruno@clisp.org>
12096
12097         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
12098         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
12099
12100 2006-07-24  Bruno Haible  <bruno@clisp.org>
12101
12102         * modules/clean-temp: New file.
12103
12104 2006-07-24  Bruno Haible  <bruno@clisp.org>
12105
12106         * m4/tmpdir.m4: New file, from GNU gettext.
12107
12108 2006-07-24  Bruno Haible  <bruno@clisp.org>
12109
12110         * lib/tmpdir.h: New file, from GNU gettext.
12111         * lib/tmpdir.c: New file, from GNU gettext.
12112
12113 2006-07-24  Bruno Haible  <bruno@clisp.org>
12114
12115         * lib/clean-temp.h: New file, from GNU gettext.
12116         * lib/clean-temp.c: New file, from GNU gettext.
12117
12118 2006-07-23  Eric Blake  <ebb9@byu.net>
12119
12120         * modules/stdio-safer (Files): Add tmpfile-safer.c.
12121         (Depends-on): Add binary-io.
12122
12123 2006-07-23  Eric Blake  <ebb9@byu.net>
12124
12125         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
12126
12127 2006-07-23  Eric Blake  <ebb9@byu.net>
12128
12129         * lib/tmpfile-safer.c: New file.
12130         * lib/stdio-safer.h (fopen_safer): Add prototype.
12131         * lib/stdio--.h (tmpfile): Make safer.
12132
12133 2006-07-23  Bruno Haible  <bruno@clisp.org>
12134
12135         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
12136         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
12137         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
12138         gl_linked_remove_at): Use it.
12139
12140 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
12141         and Simon Josefsson <jas@extundo.com>
12142
12143         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
12144
12145         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
12146
12147 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
12148
12149         * modules/close-stream: New file.
12150         * modules/closeout (Description): Make it clear that it exits
12151         with a diagnostic on error.
12152         (Depends-on): Add close-stream.  Remove fpending, stdbool.
12153         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
12154
12155 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
12156
12157         * m4/close-stream.m4: New file.
12158
12159 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
12160
12161         * lib/close-stream.c, lib/close-stream.h: New files.
12162
12163 2006-07-22  Bruno Haible  <bruno@clisp.org>
12164
12165         Merge from GNU gettext 0.15.
12166
12167         2006-05-01  Bruno Haible  <bruno@clisp.org>
12168
12169                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
12170
12171         2006-07-22  Bruno Haible  <bruno@clisp.org>
12172
12173                 * modules/javaversion: New file.
12174                 * MODULES.html.sh (Java): Add javaversion.
12175
12176         2006-03-12  Bruno Haible  <bruno@clisp.org>
12177
12178                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
12179
12180         2005-12-04  Bruno Haible  <bruno@clisp.org>
12181
12182                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
12183                 (untested).
12184
12185         2006-06-21  Bruno Haible  <bruno@clisp.org>
12186
12187                 Avoid warnings from recent versions of mcs.
12188                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
12189                 -o, -L, -r any more. Use options documented since mcs-1.0
12190                 instead. Similarly for -g.
12191
12192         2005-12-04  Bruno Haible  <bruno@clisp.org>
12193
12194                 * build-aux/csharpcomp.sh.in: Suffix for resources is
12195                 .resources, not .resource.
12196
12197         2005-07-09  Bruno Haible  <bruno@clisp.org>
12198
12199                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
12200                 add a .dll suffix.
12201                 Reported by Mark Junker <mjscod@gmx.de>.
12202
12203         2006-07-22  Bruno Haible  <bruno@clisp.org>
12204
12205                 * modules/gettext: Upgrade to gettext-0.15.
12206                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
12207                 m4/visibility.m4.
12208                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
12209
12210 2006-07-22  Bruno Haible  <bruno@clisp.org>
12211
12212         Merge from GNU gettext 0.15.
12213
12214         2006-03-25  Bruno Haible  <bruno@clisp.org>
12215
12216                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
12217
12218         2006-07-21  Bruno Haible  <bruno@clisp.org>
12219
12220                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
12221                 "1.1".
12222
12223         2006-05-09  Bruno Haible  <bruno@clisp.org>
12224
12225                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
12226                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
12227                 for the conftestver execution.
12228
12229         2006-05-01  Bruno Haible  <bruno@clisp.org>
12230
12231                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
12232                 optional target-version argument. Verify that the compiler
12233                 groks source of the specified source-version, or add -source
12234                 option as necessary. Verify that the compiler produces
12235                 bytecode in the specified target-version, or add -target and
12236                 -source options as necessary. Make the result of the test
12237                 available as variable CONF_JAVAC. Also log error output in
12238                 config.log.
12239
12240         2006-03-11  Bruno Haible  <bruno@clisp.org>
12241
12242                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
12243
12244         2006-05-09  Bruno Haible  <bruno@clisp.org>
12245
12246                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
12247                 CLASSPATH_SEPARATOR to a semicolon.
12248
12249         2006-03-12  Bruno Haible  <bruno@clisp.org>
12250
12251                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
12252                 available as variable CONF_JAVA, for subsequent autoconf
12253                 tests. Also log error output in config.log.
12254
12255         2006-07-19  Bruno Haible  <bruno@clisp.org>
12256
12257                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
12258                 that getline works on glibc2 systems. Needed to avoid trouble
12259                 in relocatable.c.
12260                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
12261
12262         2005-12-04  Bruno Haible  <bruno@clisp.org>
12263
12264                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
12265                 launcher (untested).
12266
12267         2005-12-04  Bruno Haible  <bruno@clisp.org>
12268
12269                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
12270
12271         2006-07-22  Bruno Haible  <bruno@clisp.org>
12272
12273                 * gettext.m4: Update from GNU gettext-0.15.
12274                 * nls.m4: Likewise.
12275                 * po.m4: Likewise.
12276                 * inttypes-pri.m4: Likewise.
12277                 * inttypes-h.m4: Renamed from inttypes.m4.
12278                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
12279
12280 2006-07-22  Bruno Haible  <bruno@clisp.org>
12281
12282         Merge from GNU gettext 0.15.
12283
12284         2005-07-05  Bruno Haible  <bruno@clisp.org>
12285
12286                 * printf-args.c (printf_fetchargs): Work around broken
12287                 definition of wint_t on mingw.
12288
12289         2005-02-12  Bruno Haible  <bruno@clisp.org>
12290
12291                 * xallocsa.h: Add extern "C" for C++.
12292
12293         2006-05-17  Bruno Haible  <bruno@clisp.org>
12294
12295                 Cygwin portability.
12296                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
12297
12298         2006-04-30  Bruno Haible  <bruno@clisp.org>
12299
12300                 * progreloc.c: Include <mach-o/dyld.h> if available.
12301                 (find_executable): Use _NSGetExecutablePath when possible.
12302
12303         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
12304
12305                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
12306                 function.
12307
12308         2005-12-29  Bruno Haible  <bruno@clisp.org>
12309
12310                 * progreloc.c (set_program_name_and_installdir): Fix
12311                 compilation error.
12312
12313         2005-12-04  Bruno Haible  <bruno@clisp.org>
12314
12315                 Cygwin portability.
12316                 * progreloc.c: Include <windows.h> also on Cygwin.
12317                 (find_executable): Add support for Cygwin.
12318                 (set_program_name_and_installdir): Handle also platforms with
12319                 nonempty EXEEXT.
12320
12321         2006-07-11  Bruno Haible  <bruno@clisp.org>
12322
12323                 * javacomp.c: Fix a comment.
12324                 Reported by Jim Meyering.
12325
12326         2006-04-30  Bruno Haible  <bruno@clisp.org>
12327
12328                 * javacomp.h (compile_java_class): Add source_version,
12329                 target_version arguments.
12330                 * javacomp.c: Rewritten to choose only a compiler that
12331                 respects the specified source_version and target_version.
12332
12333         2006-06-27  Bruno Haible  <bruno@clisp.org>
12334
12335                 Assume correct S_ISDIR macro.
12336                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
12337
12338         2006-07-22  Bruno Haible  <bruno@clisp.org>
12339
12340                 * javaversion.h: New file, from GNU gettext.
12341                 * javaversion.c: New file, from GNU gettext.
12342                 * javaversion.java: New file, from GNU gettext.
12343                 * javaversion.class: New file, from GNU gettext.
12344
12345         2006-05-17  Bruno Haible  <bruno@clisp.org>
12346
12347                 Cygwin portability.
12348                 * javaexec.c (execute_java_class): Test for jview program
12349                 also on Cygwin.
12350
12351         2006-04-09  Bruno Haible  <bruno@clisp.org>
12352
12353                 * fatal-signal.c: Don't include string.h.
12354                 (at_fatal_signal): Use a copying loop instead of memcpy.
12355
12356         2005-12-04  Bruno Haible  <bruno@clisp.org>
12357
12358                 * csharpexec.c: Add support for 'clix' launcher (untested).
12359                 (execute_csharp_using_sscli): New function.
12360                 (execute_csharp_program): Call it.
12361
12362         2006-06-21  Bruno Haible  <bruno@clisp.org>
12363
12364                 Avoid warnings from recent versions of mcs.
12365                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
12366                 -o, -L, -r any more. Use options documented since mcs-1.0
12367                 instead. Similarly for -g.
12368
12369         2005-07-09  Bruno Haible  <bruno@clisp.org>
12370
12371                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
12372                 add a .dll suffix.
12373                 Reported by Mark Junker <mjscod@gmx.de>.
12374
12375         2006-06-17  Bruno Haible  <bruno@clisp.org>
12376
12377                 * config.charset: Update for NetBSD 3.0.
12378
12379         2006-05-17  Bruno Haible  <bruno@clisp.org>
12380
12381                 Cygwin portability.
12382                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
12383
12384         2006-05-16  Bruno Haible  <bruno@clisp.org>
12385
12386                 * localcharset.c [CYGWIN]: Include <windows.h>.
12387                 (get_charset_aliases): For Cygwin, return the same CPxxx
12388                 aliases list as under WIN32.
12389                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
12390                 the environment variables. Fall back to GetACP().
12391
12392         2006-04-05  Bruno Haible  <bruno@clisp.org>
12393
12394                 * config.charset: Update Juan Manuel Guerrero's address.
12395
12396         2005-02-12  Bruno Haible  <bruno@clisp.org>
12397
12398                 * allocsa.h: Add extern "C" for C++.
12399
12400         2005-02-10  Bruno Haible  <bruno@clisp.org>
12401
12402                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
12403                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
12404
12405         2006-07-22  Bruno Haible  <bruno@clisp.org>
12406
12407                 * gettext.h: Update to GNU gettext-0.15.
12408
12409 2006-07-22  Bruno Haible  <bruno@clisp.org>
12410
12411         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
12412         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
12413         lib-prefix.m4, longdouble.m4, ssize_t.m4.
12414
12415 2006-07-21  Eric Blake  <ebb9@byu.net>
12416
12417         * modules/stdlib-safer: New file.
12418         * MODULES.html.sh (File stream based Input/Output): Add
12419         stdlib-safer.
12420
12421 2006-07-21  Eric Blake  <ebb9@byu.net>
12422
12423         * lib/stdlib-safer.h: New file from coreutils, required by
12424         stdlib--.h.
12425
12426 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
12427
12428         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
12429
12430 2006-07-20  Bruno Haible  <bruno@clisp.org>
12431
12432         * gnulib-tool: Recognize new option --assume-autoconf.
12433         (autoconf_minversion): New variable.
12434         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
12435
12436 2006-07-20  Bruno Haible  <bruno@clisp.org>
12437
12438         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
12439
12440 2006-07-19  Derek R. Price  <derek@ximbiot.com>
12441
12442         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
12443         Reindent and repaginate.
12444
12445 2006-07-19  Derek Price  <derek@ximbiot.com>
12446
12447         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
12448         Correct grammar.
12449
12450 2006-07-17  Bruno Haible  <bruno@clisp.org>
12451
12452         * modules/list: New file.
12453         * modules/array-list: New file.
12454         * modules/carray-list, modules/carray-list-tests: New files.
12455         * modules/linked-list, modules/linked-list-tests: New files.
12456         * modules/avltree-list, modules/avltree-list-tests: New files.
12457         * modules/rbtree-list, modules/rbtree-list-tests: New files.
12458         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
12459         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
12460         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
12461         * modules/oset: New file.
12462         * modules/array-oset: New file.
12463         * modules/avltree-oset, modules/avltree-oset-tests: New files.
12464         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
12465         * tests/test-carray_list.c: New file.
12466         * tests/test-linked_list.c: New file.
12467         * tests/test-avltree_list.c: New file.
12468         * tests/test-rbtree_list.c: New file.
12469         * tests/test-linkedhash_list.c: New file.
12470         * tests/test-avltreehash_list.c: New file.
12471         * tests/test-rbtreehash_list.c: New file.
12472         * tests/test-avltree_oset.c: New file.
12473         * tests/test-rbtree_oset.c: New file.
12474         * MODULES.html.sh (Container data structures): New section.
12475
12476 2006-07-17  Bruno Haible  <bruno@clisp.org>
12477
12478         * m4/gl_list.m4: New file.
12479
12480 2006-07-17  Bruno Haible  <bruno@clisp.org>
12481
12482         * lib/gl_list.h: New file.
12483         * lib/gl_list.c: New file.
12484         * lib/gl_array_list.h: New file.
12485         * lib/gl_array_list.c: New file.
12486         * lib/gl_carray_list.h: New file.
12487         * lib/gl_carray_list.c: New file.
12488         * lib/gl_linked_list.h: New file.
12489         * lib/gl_linked_list.c: New file.
12490         * lib/gl_anylinked_list1.h: New file.
12491         * lib/gl_anylinked_list2.h: New file.
12492         * lib/gl_avltree_list.h: New file.
12493         * lib/gl_avltree_list.c: New file.
12494         * lib/gl_anyavltree_list1.h: New file.
12495         * lib/gl_anyavltree_list2.h: New file.
12496         * lib/gl_rbtree_list.h: New file.
12497         * lib/gl_rbtree_list.c: New file.
12498         * lib/gl_anyrbtree_list1.h: New file.
12499         * lib/gl_anyrbtree_list2.h: New file.
12500         * lib/gl_anytree_list1.h: New file.
12501         * lib/gl_anytree_list2.h: New file.
12502         * lib/gl_linkedhash_list.h: New file.
12503         * lib/gl_linkedhash_list.c: New file.
12504         * lib/gl_anyhash_list1.h: New file.
12505         * lib/gl_anyhash_list2.h: New file.
12506         * lib/gl_avltreehash_list.h: New file.
12507         * lib/gl_avltreehash_list.c: New file.
12508         * lib/gl_rbtreehash_list.h: New file.
12509         * lib/gl_rbtreehash_list.c: New file.
12510         * lib/gl_anytreehash_list1.h: New file.
12511         * lib/gl_anytreehash_list2.h: New file.
12512
12513         * lib/gl_oset.h: New file.
12514         * lib/gl_oset.c: New file.
12515         * lib/gl_array_oset.h: New file.
12516         * lib/gl_array_oset.c: New file.
12517         * lib/gl_avltree_oset.h: New file.
12518         * lib/gl_avltree_oset.c: New file.
12519         * lib/gl_rbtree_oset.h: New file.
12520         * lib/gl_rbtree_oset.c: New file.
12521         * lib/gl_anytree_oset.h: New file.
12522
12523 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
12524
12525         * m4/mkancesdirs.m4: New file.
12526         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
12527         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
12528         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
12529         it.
12530
12531 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
12532
12533         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
12534         * lib/mkancesdirs.h: New files.
12535         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
12536         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
12537         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
12538         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
12539         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
12540         callers changed.  Revamp internals significantly, by not
12541         attempting to create directories that are temporarily more
12542         permissive than the final results.  Do not attempt to use
12543         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
12544         This removes some race conditions, fixes some bugs, and simplifies
12545         things.  Use new dirchownmod function to do owner and mode changes.
12546         * lib/mkdir-p.h: Likewise.
12547         * lib/modechange.c (octal_to_mode): New function.
12548         (struct mode_change): New member mentioned.
12549         (make_node_op_equals): New arg mentioned.  All callers changed.
12550         (mode_compile): Keep track of which mode bits the user has explicitly
12551         mentioned.
12552         (mode_adjust): New arg DIR, so that we implement the X op correctly.
12553         New arg PMODE_BITS, to keep track of which mode bits the user
12554         mentioned; it treats S_ISUID and S_ISGID speciall.
12555         All callers changed.
12556         * lib/modechange.h: Likewise.
12557
12558 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
12559
12560         * MODULES.html.sh: Add mkancestors.
12561         * modules/mkancesdirs: New module.
12562         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
12563         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
12564         The chdir-safer and afs files are now orphans; I'll remove them
12565         unless someone speaks up.
12566         Add lib/dirchownmod.c, lib/dirchownmod.h.
12567         (Depends-on): Remove alloca, chown, save-cwd, dirname.
12568         Add lchown, mkancesdirs.
12569         (Maintainer): Add self.
12570
12571 2006-07-15  Karl Berry  <karl@gnu.org>
12572
12573         * gnulib-tool: help message wording/arrangement.
12574
12575 2006-07-14  Simon Josefsson  <jas@extundo.com>
12576
12577         * doc/gnulib.texi (Libtool and Windows): New section.
12578
12579 2006-07-12  Simon Josefsson  <jas@extundo.com>
12580
12581         * modules/gendocs (License): Fix license, approved by Karl.
12582
12583 2006-07-12  Eric Blake  <ebb9@byu.net>
12584
12585         * MODULES.html.sh: Add gendocs.
12586
12587 2006-07-11  Eric Blake  <ebb9@byu.net>
12588
12589         * modules/fdl: New module, to install doc/fdl.texi.
12590         * MODULES.html.sh: Add new section for documentation modules.
12591         * gnulib-tool: Avoid space-tab.
12592         (--doc-base): New option, to manage files from doc.
12593
12594 2006-07-11  Eric Blake  <ebb9@byu.net>
12595
12596         * m4/absolute-header.m4: Fix comments to match recent change.
12597
12598 2006-07-11  Eric Blake  <ebb9@byu.net>
12599
12600         * gnulib-tool: List --doc-base before --tests-base.
12601
12602 2006-07-11  Derek R. Price  <derek@ximbiot.com>
12603
12604         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
12605
12606 2006-07-11  Bruno Haible  <bruno@clisp.org>
12607
12608         * README: Mention where to put documentation.
12609
12610 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12611
12612         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
12613
12614 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
12615
12616         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
12617         to stdint.m4.
12618
12619 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
12620
12621         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
12622         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
12623         "no/such/file/stdint.h" when there is no such file, so that
12624         the resulting C code can be parsed by dodgy compilers.
12625         Problems reported by Bob Proulx.
12626
12627 2006-07-10  Derek R. Price  <derek@ximbiot.com>
12628
12629         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
12630         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
12631         macros into the GNU _D_EXACT_NAMLEN.
12632         * lib/savedir.c:  Likewise.
12633         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
12634
12635 2006-07-10  Derek R. Price  <derek@ximbiot.com>
12636         and Paul Eggert  <eggert@cs.ucla.edu>
12637
12638         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
12639         * m4/savedir.m4:
12640         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
12641         macros into the GNU _D_EXACT_NAMLEN.
12642
12643 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
12644
12645         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
12646         around the absolute name, to work around a problem with the HP-UX
12647         11.23 native C compiler, reported by Bob Proulx.
12648
12649 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
12650
12651         * doc/maintain.texi, make-stds.texi: Sync from
12652         <http://savannah.gnu.org/projects/gnustandards>.
12653
12654 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
12655
12656         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
12657
12658 2006-07-09  Jim Meyering  <jim@meyering.net>
12659
12660         * m4/glob.m4: Remove a doubled word in a comment.
12661
12662 2006-07-09  Jim Meyering  <jim@meyering.net>
12663
12664         * lib/argp-pv.c: Remove a doubled word in a comment.
12665         * lib/check-version.c (check_version): Likewise.
12666         * lib/javacomp.c (compile_java_class): Likewise.
12667
12668 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
12669
12670         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
12671         for the benefit of people using Autoconf 2.60.  If you want to
12672         support older Autoconf versions you can copy m4/onceonly_2_57.m4
12673         (or m4/onceonly.m4, if pre-2.57) manually.
12674
12675 2006-07-08  Jim Meyering  <jim@meyering.net>
12676
12677         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
12678         comment.
12679         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
12680         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
12681         comment.
12682
12683 2006-07-08  Jim Meyering  <jim@meyering.net>
12684
12685         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
12686
12687 2006-07-07  Simon Josefsson  <jas@extundo.com>
12688
12689         * tests/test-crc.c: Change expected crc value, the test vector
12690         were probably computed using the old broken crc.c?
12691
12692 2006-07-06  Simon Josefsson  <jas@extundo.com>
12693
12694         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
12695         now the canonical place for the M4 file).
12696
12697         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
12698         from the sys_socket dependency now.
12699
12700         * modules/inet_pton (Files): Ditto.
12701
12702         * modules/inet_ntop (Files): Ditto.
12703
12704 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
12705
12706         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
12707         not gl_PREREQ_GETUSERSHELL.
12708
12709 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12710
12711         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
12712         with only one argument, for Autoconf 2.60.
12713         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
12714         expand to nothing, so add a shell command to avoid syntax error.
12715         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
12716
12717 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12718
12719         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
12720
12721 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
12722
12723         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
12724         no longer needed.  Check for isblank decl.
12725         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
12726         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
12727         of existence.
12728
12729 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
12730
12731         * lib/getloadavg.c: Use __VMS, not VMS.
12732         * lib/getopt.c: Likewise.
12733         * lib/getpagesize.h: Likewise.
12734         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
12735         and probably does not work.
12736
12737 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
12738
12739         * lib/.cppi-disable: Add wcwidth.
12740         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
12741         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
12742         (ISGRAPH): Remove.  All uses changed to isgraph.
12743         (FOLD) [!defined _LIBC]: Remove special case.
12744         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
12745         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
12746         HAVE_ISBLANK.
12747         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
12748         case.
12749
12750 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
12751
12752         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
12753         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
12754         brackets.  Other minor changes to suppress some compiler
12755         warnings.
12756
12757 2006-07-06  Derek R. Price  <derek@ximbiot.com>
12758         and Paul Eggert  <eggert@cs.ucla.edu>
12759
12760         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
12761         of invoking obsolescent AC_HEADER_DIRENT macro.
12762         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
12763         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
12764         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
12765         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
12766         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
12767         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
12768         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
12769         * m4/readdir.m4: Remove; no longer needed.
12770
12771 2006-07-06  Derek R. Price  <derek@ximbiot.com>
12772         and Paul Eggert  <eggert@cs.ucla.edu>
12773
12774         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
12775         Don't worry about this obsolete case any more.
12776         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
12777         directories.
12778         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
12779         worry about this obsolete case any more.
12780         * lib/fts.c: Likewise.
12781         * lib/getcwd.c: Likewise.
12782         * lib/glob.h: Likewise.
12783         * lib/savedir.c: Likewise.
12784
12785 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
12786
12787         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
12788         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
12789         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
12790         needed.
12791         All uses removed.
12792         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
12793         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
12794         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
12795         needed.
12796         * m4/getdate.m4 (gl_GETDATE): Likewise.
12797         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
12798         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
12799         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
12800         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
12801         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
12802         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
12803         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
12804         needed.
12805
12806 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
12807
12808         * lib/memcasecmp.c: Include <limits.h>.
12809         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
12810         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
12811         Don't assume isdigit succeeds only on '0' through '9'.
12812
12813 2006-07-05  Eric Blake  <ebb9@byu.net>
12814
12815         * modules/getaddrinfo (Depends-on): Add snprintf.
12816
12817 2006-07-05  Eric Blake  <ebb9@byu.net>
12818
12819         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
12820         to avoid 'header present but could not be compiled' on cygwin.
12821
12822 2006-07-05  Eric Blake  <ebb9@byu.net>
12823
12824         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
12825         missing from netdb.h.
12826         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
12827
12828 2006-07-05  Derek R. Price  <derek@ximbiot.com>
12829
12830         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
12831         no longer needed.
12832         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
12833         * m4/getdate.m4 (gl_GETDATE): Likewise.
12834         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
12835         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
12836         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
12837         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
12838         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
12839
12840 2006-07-05  Derek R. Price  <derek@ximbiot.com>
12841
12842         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
12843         All uses of is_space replaced by isspace.
12844         * lib/exit.h: Don't talk about STDC_HEADERS.
12845         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
12846         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
12847         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
12848         replaced by isprint etc.
12849         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
12850         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
12851         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
12852         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
12853         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
12854         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
12855
12856 2006-07-05  Bruno Haible  <bruno@clisp.org>
12857
12858         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
12859         the function exists, before testing against AIX.
12860         Reported by Martin Lambers <marlam@marlam.de>.
12861
12862 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
12863
12864         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
12865         From Mark D. Baushke.
12866
12867 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
12868
12869         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
12870         to the absolute name, not just one, to bypass Sun C 5.8's
12871         "warning: #include of /usr/include/... may be non-portable".
12872
12873 2006-07-04  Eric Blake  <ebb9@byu.net>
12874
12875         * modules/dirname-tests: New test module.
12876         * tests/test-dirname.c: New file, replacing dirname.c
12877         TEST_DIRNAME section that was recently deleted.
12878
12879 2006-07-04  Bruno Haible  <bruno@clisp.org>
12880
12881         Assume ANSI C header files and <ctype.h> functions.
12882         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
12883         (mbsnwidth): Use isprint, iscntrl instead.
12884
12885 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
12886
12887         Merge from coreutils.
12888         * MODULES.html.sh: Add xstrtold.
12889         * modules/xstrtold: New file.
12890         * modules/cycle-check (Files): Add lib/same-inode.h.
12891         * modules/dirname (Files): Add m4/double-slash-root.m4.
12892         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
12893         * modules/mkdir-p (Files): Add lib/same-inode.h.
12894         * modules/same (Files): Add lib/same-inode.h.
12895
12896 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
12897
12898         * m4/absolute-header.m4: Renamed from full-header-path.m4.
12899         This is to keep the terminology clean; POSIX talks about
12900         "absolute pathnames", not "full pathnames", but the GNU
12901         Coding Standards say to use "path" for something else;
12902         so use "absolute" to keep both sides happy.
12903         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
12904         Set gl_absolute_header, not gl_full_header_path.
12905         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
12906         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
12907         All uses changed.
12908
12909         Merge from coreutils.
12910
12911         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
12912
12913         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
12914         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
12915         want to require the building of c-strtod.o.
12916         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
12917         needs -lm directly.
12918         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
12919
12920         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
12921
12922         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
12923         --as-needed option if available.  Problem reported by Albert Chin in
12924         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
12925         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
12926         cc merely issues a bunch of annoying warnings for --as-needed
12927         (this problem was reported by Bob Proulx).  Also, try linking with
12928         -lm to detect a bug in binutils 2.16 (this problem was reported
12929         by Ralf Wildenhues).
12930
12931         2006-06-18  Jim Meyering  <jim@meyering.net>
12932
12933         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
12934         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
12935         macro.
12936         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
12937         also check for glibc-2.4's abort-inducing bug.
12938
12939         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
12940         Low-probability clean-up should be to use rmdir to get rid of
12941         the just-created directory, not unlink.
12942
12943         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
12944         configure fail, and request a bug report to inform us about it.
12945         Add a comment that, barring reports to the contrary, in 2007 we'll
12946         assume ftruncate is universally available.
12947
12948         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
12949
12950         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
12951
12952         2006-03-12  Jim Meyering  <jim@meyering.net>
12953
12954         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
12955         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
12956         * m4/same.m4 (gl_SAME): Likewise.
12957         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
12958
12959         2006-03-11  Eric Blake  <ebb9@byu.net>
12960
12961         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
12962         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
12963         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
12964         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
12965
12966 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
12967
12968         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
12969         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
12970         reported by Mark D. Baushke, one in
12971         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
12972
12973         Merge from coreutils.
12974
12975         * lib/.cppi-disable: Add stdint_.h.
12976         * lib/.cvsignore: Add stdint.h.
12977
12978         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
12979
12980         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
12981         both double and long double versions.
12982         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
12983         * lib/xstrtold.c: New file.
12984         * lib/xstrtod.h (xstrtold): New decl.
12985
12986         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
12987
12988         * lib/filemode.c (setst): Remove.
12989         (strmode): Rewrite to avoid setst.  This makes the code shorter,
12990         (arguably) clearer, and the generated code is a bit smaller on my
12991         Debian GNU/Linux stable x86 host.
12992
12993         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
12994
12995         * lib/filemode.c: Include "filemode.h" first, to test the interface.
12996         Assume that filemode.h includes sys/types.h and sys/stat.h.
12997         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
12998         (ftypelet): Reorder to put common cases first, for efficiency.
12999         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
13000         to do 'M'.
13001         (strmode): Renamed from mode_string, and now stores 12 bytes instead
13002         of 10, for compatibility with FreeBSD.  All callers changed.
13003         (filemodestring): Now stores 12 bytes instead of 10, and sets file
13004         types that can't be deduced solely from st_mode.  First arg is now a
13005         const pointer.
13006         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
13007         (strmode): Renamed from mode_string.
13008         (filemodestring): New decl.
13009         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
13010         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
13011         needed.
13012         (S_ISPORT, S_ISWHT): New macros, if not already defined.
13013
13014         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
13015
13016         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
13017         fsusage.h now does that.  Include fsusage.h first, to test interface.
13018         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
13019         at most one method (the old code could have generated decls that
13020         didn't conform to C89, not that this was ever exercised).
13021         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
13022
13023         2006-03-19  Jim Meyering  <jim@meyering.net>
13024
13025         Work even in a chroot where d_ino values for entries in "/"
13026         don't match the stat.st_ino values for the same names.
13027         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
13028         number, iterate through all entries again, using lstat instead.
13029         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
13030         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
13031
13032         * lib/getcwd.c (__getcwd): Clarify a comment.
13033         Use memcpy in place of a call to strcpy.
13034
13035         2006-03-12  Jim Meyering  <jim@meyering.net>
13036
13037         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
13038         matches that of the current directory (which we're about to chdir ".."
13039         out of), then save the dev-ino of the parent, instead.
13040
13041         * lib/same-inode.h (SAME_INODE): New file/macro.
13042         * lib/chdir-safer.c (SAME_INODE): Remove definition.
13043         Include "same-inode.h", instead.
13044         * lib/same.c: Likewise.
13045         * lib/cycle-check.h: Include "same-inode.h".
13046         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
13047         * lib/cycle-check.c (SAME_INODE): Remove definition.
13048         * lib/root-dev-ino.h: Include "same-inode.h".
13049
13050         2006-03-11  Eric Blake  <ebb9@byu.net>
13051
13052         * lib/same.c (same_name): s/base_name/last_component/
13053         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
13054         * lib/filenamecat.c (file_name_concat): Likewise.
13055
13056         2006-03-11  Eric Blake  <ebb9@byu.net>,
13057                     Paul Eggert  <eggert@cs.ucla.edu>
13058
13059         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
13060         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
13061         drive prefix.
13062         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
13063         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
13064         (last_component): New method.
13065         * lib/dirname.c (dir_len): Determine when drive letters need a
13066         subsequent slash.  Preserve // when it is special.
13067         (dir_name): Don't append dot when drive letter is absolute.
13068         [TEST_DIRNAME]: Move into a full-blown gnulib test.
13069         * lib/basename.c (base_name): New semantics - malloc the result.
13070         Preserve // when it is special.  Preserve relative files that look
13071         like drive letters.
13072         (base_len): Preserve // when it is special.
13073         (last_component): New method, similar to old base_name semantics.
13074         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
13075         base_name.  Strip redundant slashes from ///.
13076
13077 2006-07-03  Jim Meyering  <jim@meyering.net>
13078
13079         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
13080         macro is used before the first cycle_check call.
13081
13082 2006-07-03  Eric Blake  <ebb9@byu.net>
13083
13084         * modules/dirname (Depends-on): Add xstrndup.
13085
13086 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
13087
13088         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
13089         test cases, so that config.log is a bit easier to follow.
13090
13091 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
13092
13093         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
13094         both are 64 bits, since this seems to be the tradition, and this
13095         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
13096         we ever run into a host that prefers long long to long in this
13097         case, we'll need another configure-time test.  Problem reported by
13098         Jim Meyering.
13099
13100 2006-07-02  Eric Blake  <ebb9@byu.net>
13101
13102         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
13103
13104 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
13105
13106         * modules/inttypes (Depends-on): No longer depends on stdint.
13107         * modules/stdint (Description): Say more about assumptions.
13108         Say that the fast types might differ.  Say macros are used.
13109         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
13110         (Makefile.am): Revise list of substituted symbols to match
13111         new stdint.m4.
13112         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
13113         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
13114         * tests/test-stdint.c (verify_same_types)
13115         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
13116         the code conforms to C99/C89.
13117         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
13118         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
13119
13120 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
13121
13122         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
13123         but fix a bug, by requiring at least 64 bits.
13124         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
13125         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
13126         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
13127         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
13128
13129         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
13130         changes.  Make 2.59 a prerequisite.  Check and substitute for
13131         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
13132         inttypes.h.  Do not use special include files; just use the
13133         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
13134         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
13135         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
13136         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
13137         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
13138         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
13139         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
13140         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
13141         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
13142         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
13143         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
13144         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
13145         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
13146         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
13147         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
13148         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
13149         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
13150         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
13151         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
13152         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
13153         WINT_MAX.  Check for C99 conformance more strictly, by detecting
13154         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
13155         not check for things that C99 does not require, e.g., int8_t.  If
13156         a test isn't needed unless <stdint.h> isn't working, and is
13157         unlikely to be needed for any other reason, then don't do it
13158         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
13159         size_t, since we assume C89 freestanding at least.  Do not check
13160         for sig_atomic_t, wchar_t, or wint_t, since the code now does
13161         the right thing even if the types are not defined.  Instead use:
13162         (gl_STDINT_TYPE_PROPERTIES): New macro.
13163         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
13164         testing whether <sys/types.h> clashes, as Autoconf does this for
13165         us now.  All uses removed.
13166         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
13167         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
13168         (gl_CHECK_TYPE_SAME):
13169         Remove; no longer needed.
13170         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
13171         exists, since we'll return 0 anyway in that case.
13172         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
13173
13174 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
13175
13176         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
13177         possible collision with system files.
13178         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
13179         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
13180         WCHAR_MIN and WCHAR_MAX in this case.
13181         (<stddef.h>): Do not include; no longer needed.
13182         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
13183         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
13184         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
13185         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
13186         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
13187         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
13188         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
13189         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
13190         !defined(__c99))]: Include in this case too, since it's harmless
13191         now.
13192         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
13193         dangerous to do so.
13194         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
13195         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
13196         (_STDINT_MIN, _STDINT_MAX): New macros.
13197         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
13198         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
13199         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
13200         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
13201         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
13202         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
13203         macros, not typedefs; this simplifies things quite a bit.
13204         Use long int for all types narrower than int64_t.
13205         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
13206         Define in terms of long long int or int64_t or long int,
13207         not int64_t or int32_t.  This saves some compile-time testing.
13208         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
13209         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
13210         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
13211         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
13212         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
13213         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
13214         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
13215         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
13216         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
13217         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
13218         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
13219         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
13220         undef any previous version and define our own version, for
13221         simplicity and consistency with the new macros for types.
13222         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
13223         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
13224         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
13225         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
13226         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
13227         @WINT_T_SUFFIX@ to keep things simple here.
13228         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
13229         Simplify by assuming typical 8/16/32/64 host, since we're
13230         already doing that elsewhere anyway.
13231         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
13232         and assume long long int is 64 bits if available.  This
13233         speeds up 'configure'.
13234
13235 2006-07-01  Eric Blake  <ebb9@byu.net>
13236
13237         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
13238         Reported by Andreas Buening.
13239
13240 2006-07-01  Eric Blake  <ebb9@byu.net>
13241
13242         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
13243
13244 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
13245
13246         * lib/getaddrinfo.c: fixed typo
13247
13248 2006-06-29  Jim Meyering  <jim@meyering.net>
13249
13250         * modules/strftime (Maintainer): Add my name, since with the
13251         FPRINTFTIME changes strftime.c has forked from glibc.
13252
13253 2006-06-29  Eric Blake  <ebb9@byu.net>
13254
13255         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
13256
13257 2006-06-29  Eric Blake  <ebb9@byu.net>
13258
13259         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
13260
13261 2006-06-29  Eric Blake  <ebb9@byu.net>
13262
13263         * lib/stat_.h: New file.
13264
13265 2006-06-29  Eric Blake  <ebb9@byu.net>
13266
13267         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
13268         unused static function.
13269
13270 2006-06-29  Eric Blake  <ebb9@byu.net>
13271
13272         * doc/functions.texi (Function Portability): Document missing lstat
13273         on mingw.
13274
13275 2006-06-29  Eric Blake  <ebb9@byu.net>
13276
13277         * MODULES.html.sh: Add sys_stat.
13278         * modules/sys_stat: New module.
13279         * modules/mkstemp (Depends-on): Add sys_stat.
13280
13281 2006-06-29  Derek R. Price  <derek@ximbiot.com>
13282
13283         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
13284
13285 2006-06-29  Derek R. Price  <derek@ximbiot.com>
13286
13287         * m4/c-bs-a.m4: Removed.
13288
13289 2006-06-29  Derek R. Price  <derek@ximbiot.com>
13290
13291         * lib/strftime.c: Assume strftime() exists.
13292
13293 2006-06-29  Derek Price  <derek@ximbiot.com>
13294
13295         * modules/c-bs-a: Removed - \a is C89.
13296         * MODULES.html.sh: Remove c-bs-a.
13297
13298 2006-06-29  Bruno Haible  <bruno@clisp.org>
13299
13300         * modules/wcwidth (License): Change to LGPL.
13301
13302 2006-06-28  Simon Josefsson  <jas@extundo.com>
13303
13304         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
13305         on _WIN32.
13306
13307         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
13308         getnameinfo.
13309
13310 2006-06-28  Simon Josefsson  <jas@extundo.com>
13311
13312         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
13313
13314 2006-06-28  Simon Josefsson  <jas@extundo.com>
13315
13316         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
13317         functions there.  It will succeed on Windows XP, but on Windows
13318         2000 and (presumably) earlier, it will fail, and use the internal
13319         re-implementation.
13320         (use_win32_p): New function.
13321         (getaddrinfo): Use strtoul on servname, to support numeric ports.
13322         Support AI_NUMERICSERV to disable getservbyname.
13323         (getnameinfo): New function, only supports
13324         NI_NUMERICHOST|NI_NUMERICSERV for now.
13325
13326         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
13327         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
13328         getnameinfo.
13329
13330 2006-06-28  Eric Blake  <ebb9@byu.net>
13331
13332         * modules/wcwidth: New file.
13333         * modules/mbchar (Depends-on): Add wcwidth.
13334         * modules/mbswidth (Depends-on): Add wcwidth.
13335         * MODULES.html.sh: Add wcwidth.
13336
13337 2006-06-28  Eric Blake  <ebb9@byu.net>
13338
13339         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
13340         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
13341
13342 2006-06-28  Eric Blake  <ebb9@byu.net>
13343
13344         * lib/xvasprintf.h: Fix comments.
13345
13346 2006-06-28  Eric Blake  <ebb9@byu.net>
13347
13348         * lib/mbchar.h (wcwidth): Include wcwidth.h.
13349         * lib/mbswidth.c (wcwidth): Move from here...
13350         * lib/wcwidth.h: ...to this new file.
13351
13352 2006-06-28  Derek R. Price  <derek@ximbiot.com>
13353
13354         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
13355
13356         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
13357         it's obsolete.
13358         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
13359
13360 2006-06-28  Derek R. Price  <derek@ximbiot.com>
13361
13362         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
13363         Autoconf 2.60 says this stuff was obsolete.
13364
13365 2006-06-28  Bruno Haible  <bruno@clisp.org>
13366
13367         * modules/wcwidth (Files): Add m4/wchar_t.m4.
13368
13369 2006-06-28  Bruno Haible  <bruno@clisp.org>
13370
13371         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
13372         gt_TYPE_WCHAR_T.
13373
13374 2006-06-28  Bruno Haible  <bruno@clisp.org>
13375
13376         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
13377         declaration for wcwidth.
13378         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
13379
13380 2006-06-28  Bruno Haible  <bruno@clisp.org>
13381
13382         * lib/mkdtemp.c [MINGW]: Include <io.h>.
13383         (mkdir): Define using _mkdir.
13384
13385 2006-06-28  Bruno Haible  <bruno@clisp.org>
13386
13387         * lib/getaddrinfo.h: Fix POSIX URL.
13388         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
13389         _WIN32.
13390         (use_win32_p): Make static.
13391         (getaddrinfo): Reject service name if it is empty or does not consist
13392         solely of decimal digits, or if its value is > 65535.
13393         (getnameinfo): Remove useless casts.
13394
13395 2006-06-27  Simon Josefsson  <jas@extundo.com>
13396
13397         * modules/sys_select: New file, suggested by Bruno Haible, Paul
13398         Eggert and Martin Lambers.
13399
13400 2006-06-27  Simon Josefsson  <jas@extundo.com>
13401
13402         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
13403         Eggert and Martin Lambers.
13404
13405 2006-06-27  Bruno Haible  <bruno@clisp.org>
13406
13407         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
13408         result to 0, not to empty.
13409         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
13410
13411 2006-06-27  Bruno Haible  <bruno@clisp.org>
13412
13413         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
13414
13415 2006-06-26  Simon Josefsson  <jas@extundo.com>
13416
13417         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
13418         present.
13419
13420 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
13421
13422         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
13423         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
13424         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
13425
13426 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
13427
13428         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
13429
13430 2006-06-26  Bruno Haible  <bruno@clisp.org>
13431
13432         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
13433
13434 2006-06-26  Bruno Haible  <bruno@clisp.org>
13435
13436         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
13437
13438 2006-06-26  Bruno Haible  <bruno@clisp.org>
13439
13440         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
13441         SGI C compiler in pre-C99 mode.
13442         Suggested by Mark D. Baushke and Larry Jones.
13443
13444 2006-06-26  Bruno Haible  <bruno@clisp.org>
13445
13446         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
13447         WCHAR_MAX.
13448         Reported by Mark D. Baushke and Larry Jones.
13449
13450 2006-06-26  Bruno Haible  <bruno@clisp.org>
13451
13452         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
13453         in pre-C99 mode.
13454         Suggested by Mark D. Baushke and Larry Jones.
13455
13456 2006-06-23  Simon Josefsson  <jas@extundo.com>
13457             Bruno Haible  <bruno@clisp.org>
13458
13459         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
13460         Emit mostlyclean-local rule.
13461         (func_emit_tests_Makefile_am): Likewise.
13462         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
13463
13464 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
13465
13466         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
13467
13468 2006-06-23  Bruno Haible  <bruno@clisp.org>
13469
13470         * tests/test-stdint.c: Update to match ISO C 99 Technical
13471         Corrigendum 1.
13472
13473 2006-06-23  Bruno Haible  <bruno@clisp.org>
13474
13475         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
13476
13477 2006-06-23  Bruno Haible  <bruno@clisp.org>
13478
13479         * lib/stdint_.h: Treat IRIX like OpenBSD.
13480
13481 2006-06-23  Bruno Haible  <bruno@clisp.org>
13482
13483         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
13484         ISO C 99 Technical Corrigendum 1.
13485
13486 2006-06-22  Simon Josefsson  <jas@extundo.com>
13487
13488         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
13489         MinGW.
13490
13491 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
13492
13493         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
13494         needed.  Some compiler complained about some of them.  Problem reported
13495         by Larry Jones in
13496         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
13497
13498 2006-06-21  Simon Josefsson  <jas@extundo.com>
13499
13500         * tests/test-getaddrinfo.c: New file.
13501
13502         * modules/getaddrinfo-tests: New file.
13503
13504         * MODULES.html.sh: Add inet_pton.
13505
13506         * modules/inet_pton: New file.
13507
13508 2006-06-21  Simon Josefsson  <jas@extundo.com>
13509
13510         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
13511         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
13512         of using the (limited) gnulib implementation on Windows XP.
13513
13514         * m4/inet_pton.m4: New file.
13515
13516 2006-06-21  Simon Josefsson  <jas@extundo.com>
13517
13518         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
13519         variable.
13520
13521         * lib/socket_.h: Don't define WINVER.
13522
13523         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
13524         slightly modified to work in gnulib.
13525
13526 2006-06-21  Simon Josefsson  <jas@extundo.com>
13527
13528         * doc/gnulib.texi (Windows sockets): Add.
13529
13530 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
13531
13532         * lib/read-file.c (fread_file): Start with buffer allocation of
13533         0 bytes rather than 1 byte; this simplifies the code.
13534         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
13535         code to free buffer and save/restore errno.
13536         (internal_read_file): Remove unused local.
13537
13538 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
13539
13540         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
13541         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
13542         Problem reported by Denis Excoffier in
13543         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
13544
13545 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
13546
13547         * modules/sys_socket, modules/socklen: Include sys/types since
13548         FreeBSD 4.x's sys/socket.h needs it.
13549
13550 2006-06-19  Simon Josefsson  <jas@extundo.com>
13551
13552         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
13553
13554 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
13555
13556         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
13557
13558 2006-06-19  Bruno Haible  <bruno@clisp.org>
13559
13560         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
13561         and FULL_PATH_INTTYPES_H in angle brackets.
13562         Reported by Mark D. Baushke <mdb@gnu.org>.
13563
13564 2006-06-17  Eric Blake  <ebb9@byu.net>
13565
13566         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
13567         errno.
13568
13569 2006-06-17  Bruno Haible  <bruno@clisp.org>
13570
13571         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
13572         <sys/inttypes.h>.
13573
13574 2006-06-17  Bruno Haible  <bruno@clisp.org>
13575
13576         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
13577         whether errno is declared. Assume <errno.h> declares errno.
13578
13579 2006-06-17  Bruno Haible  <bruno@clisp.org>
13580
13581         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
13582
13583 2006-06-17  Bruno Haible  <bruno@clisp.org>
13584
13585         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
13586         problem on Solaris 2.5.1.
13587
13588 2006-06-16  Eric Blake  <ebb9@byu.net>
13589
13590         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
13591         * lib/unicodeio.c [!defined errno]: Likewise.
13592         * lib/strtol.c [!defined errno]: Likewise.
13593         * lib/strtod.c [!defined errno]: Likewise.
13594
13595 2006-06-15  Eric Blake  <ebb9@byu.net>
13596
13597         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
13598
13599 2006-06-15  Eric Blake  <ebb9@byu.net>
13600
13601         * config/srclist.txt (ssize_t.m4): Lose sync.
13602
13603 2006-06-15  Bruno Haible  <bruno@clisp.org>
13604
13605         * modules/stdint (Files): Include m4/full-header-path.m4,
13606         m4/size_max.m4, m4/wchar_t.m4.
13607         (Makefile.am): Many more substitutions.
13608         * modules/stdint-tests: New file.
13609         * tests/test-stdint.c: New file.
13610
13611 2006-06-15  Bruno Haible  <bruno@clisp.org>
13612
13613         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
13614         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
13615         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
13616         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
13617         gl_CHECK_TYPE_SAME): New macros.
13618
13619 2006-06-15  Bruno Haible  <bruno@clisp.org>
13620
13621         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
13622
13623 2006-06-15  Bruno Haible  <bruno@clisp.org>
13624
13625         * lib/stdint_.h: Rewritten to be fully auto-configured.
13626         Fixes bug on HP-UX/IA64.
13627
13628 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
13629
13630         * lib/getdate.y (__attribute__): Don't define if already defined.
13631         Problem reported by Larry Jones.
13632         * lib/utimens.c (__attribute__): Likewise.
13633
13634 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
13635
13636         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
13637         reported by Andreas Schwab.
13638
13639 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13640             Bruno Haible  <bruno@clisp.org>
13641
13642         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
13643         check for the declaration of strnlen and a run test that exposes the
13644         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
13645         rpl_strndup.
13646
13647 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13648             Bruno Haible  <bruno@clisp.org>
13649
13650         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
13651
13652 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13653
13654         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
13655         compile test, for Tru64 4.0D.
13656
13657 2006-05-28  Karl Berry  <karl@gnu.org>
13658
13659         * config/srclist.txt (printf-args.c): lose sync.
13660
13661 2006-05-26  Martin Lambers  <marlam@marlam.de>
13662
13663         * lib/getpass.c: Updates the test for the native W32 API, and adds
13664         missing includes, thus fixing compilation warnings.
13665
13666 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
13667
13668         * lib/exclude.c (exclude_fnmatch): New function.
13669         (excluded_file_name): Call exclude_fnmatch.
13670         * lib/exclude.h (excluded_file_name): New prototype
13671
13672 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
13673
13674         * lib/tempname.c (small_open, large_open): New macros.
13675         (__open, __open64) [!_LIBC]: Remove.
13676         (__gen_tempname): Use small_open and large_open instead of __open
13677         and __open64.  This fixes a portability bug on HP-UX 11.11i
13678         reported by Simon Wing-Tang in
13679         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
13680
13681 2006-05-24  Bruno Haible  <bruno@clisp.org>
13682
13683         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
13684         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
13685         Reported by Thorsten Maerz <torte@netztorte.de> via
13686         Aaron Stone <aaron@serendipity.cx>.
13687
13688 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
13689
13690         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
13691         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
13692         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
13693         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
13694         not really conditional on the cache.
13695         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
13696
13697 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
13698
13699         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
13700         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
13701         (my_usleep): Don't mishandle maximum value.
13702
13703 2006-05-19  Jim Meyering  <jim@meyering.net>
13704
13705         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
13706
13707 2006-05-17  Bruno Haible  <bruno@clisp.org>
13708
13709         Cygwin portability.
13710         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
13711
13712 2006-05-17  Bruno Haible  <bruno@clisp.org>
13713
13714         * lib/stdint_.h: Fix recognition of Cygwin.
13715
13716 2006-05-15  Bruno Haible  <bruno@clisp.org>
13717
13718         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
13719         on libtool patch by Ralf Wildenhues.
13720
13721 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
13722
13723         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
13724         test for C99 conformance; (bool) 0.5 is an integer constant
13725         expression, but (bool) -0.5 is not.  Problem reported by Fedor
13726         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
13727
13728 2006-05-11  Simon Josefsson  <jas@extundo.com>
13729
13730         * m4/xvasprintf.m4: Fix obvious typo.
13731
13732 2006-05-11  Jim Meyering  <jim@meyering.net>
13733
13734         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
13735         James Lemley.
13736
13737 2006-05-10  Simon Josefsson  <jas@extundo.com>
13738
13739         * lib/md4.c: Typo fix, update copyright years.
13740         (K1, K2): Don't use L because it turn computations into 64-bit on
13741         64-bit platforms.
13742
13743 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
13744
13745         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
13746         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
13747         unwanted sign propagation, e.g., on hosts with 64-bit int.
13748         There still are some problems with reeelly weird theoretical hosts
13749         (e.g., 33-bit int) but it's not worth worrying about now.
13750         * lib/sha1.c (rol): Likewise.
13751         (K1, K2, K3, K4): Remove unnecessary L suffix.
13752
13753 2006-05-10  Bruno Haible  <bruno@clisp.org>
13754
13755         * lib/des.c: Cast to avoid warnings.
13756
13757 2006-05-09  Bruno Haible  <bruno@clisp.org>
13758
13759         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
13760         (Depends-on): Depend also on xsize, stdarg.
13761         (configure.ac): Add gl_XVASPRINTF.
13762
13763 2006-05-09  Bruno Haible  <bruno@clisp.org>
13764
13765         * m4/xvasprintf.m4: New file.
13766
13767 2006-05-09  Bruno Haible  <bruno@clisp.org>
13768
13769         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
13770         (EOVERFLOW): Define fallback value.
13771         (xstrcat): New function.
13772         (xvasprintf): Recognize the special case of a string concatenation.
13773
13774 2006-05-08  Eric Blake  <ebb9@byu.net>
13775
13776         * gnulib-tool (func_version): Base copyright year on CVS date.
13777         (func_emit_copyright_notice): New function.
13778         (func_emit_lib_Makefile_am): Use it.
13779         (func_emit_tests_Makefile_am): Likewise.
13780         (func_import): Likewise.
13781
13782 2006-05-08  Bruno Haible  <bruno@clisp.org>
13783
13784         * modules/stdarg: New file.
13785         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
13786
13787 2006-05-08  Bruno Haible  <bruno@clisp.org>
13788
13789         * m4/stdarg.m4: New file, from GNU gettext.
13790
13791 2006-05-08  Bruno Haible  <bruno@clisp.org>
13792
13793         * config/srclist.txt (build-aux/config.rpath): different from latest
13794         release.
13795
13796 2006-05-08  Bruno Haible  <bruno@clisp.org>
13797
13798         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
13799
13800 2006-05-05  Jim Meyering  <jim@meyering.net>
13801
13802         * m4/warning.m4: New file, derived from bison's file by the same name.
13803
13804 2006-05-03  Bruno Haible  <bruno@clisp.org>
13805
13806         * lib/stdint_.h: Shorter URL.
13807         * lib/inttypes.h: Likewise.
13808
13809 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
13810
13811         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
13812
13813 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
13814
13815         * lib/verify.h: Document the internals better.  Most of this change
13816         was written by Bruno Haible.
13817
13818 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
13819
13820         * doc/verify.texi: New file, partly based on a proposal by
13821         Bruno Haible.
13822
13823 2006-05-02  Bruno Haible  <bruno@clisp.org>
13824
13825         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
13826         test from here...
13827         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
13828
13829 2006-04-29  Bruno Haible  <bruno@clisp.org>
13830
13831         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
13832         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
13833
13834 2006-04-29  Bruno Haible  <bruno@clisp.org>
13835
13836         * gnulib-tool: Make --update option actually work.
13837
13838 2006-04-29  Bruno Haible  <bruno@clisp.org>
13839
13840         * doc/gcd.texi: New file.
13841         * doc/gnulib.texi: Include it.
13842
13843 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
13844
13845         * lib/getdate.y (get_date): When adding relative date, start with the
13846         initial time, not with the result of the first mktime call.
13847
13848 2006-04-25  Bruno Haible  <bruno@clisp.org>
13849
13850         * gnulib-tool (func_import): Output the include directives in three
13851         blocks, sorted separately.
13852         Reported by Ben Pfaff <blp@cs.stanford.edu>.
13853
13854 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
13855
13856         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
13857         to define main with arguments, for C++.  Reported by Eric Blake.
13858         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
13859         Prefer 'int main ()' to 'int main (void)', for C++.
13860         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
13861         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
13862         for 'main', for C99 and C++.
13863
13864 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
13865
13866         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
13867         Don't assume that exit status -1 is valid.
13868         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
13869         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
13870         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
13871         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
13872         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
13873         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
13874         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
13875         functions can be used without declaring them, or that you can
13876         exit with status -1.
13877         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
13878
13879 2006-04-24  Karl Berry  <karl@gnu.org>
13880
13881         * config/srclist.txt (longdouble.m4): sync lost.
13882
13883 2006-04-24  Eric Blake  <ebb9@byu.net>
13884
13885         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
13886
13887 2006-04-24  Bruno Haible  <bruno@clisp.org>
13888
13889         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
13890         poll() implementation in AIX.
13891         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13892
13893 2006-04-24  Bruno Haible  <bruno@clisp.org>
13894
13895         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
13896         assigned exactly once.
13897
13898 2006-04-23  Claudio Fontana  <claudio@gnu.org>
13899             Bruno Haible  <bruno@clisp.org>
13900
13901         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
13902         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
13903         for AM_CPPFLAGS.
13904
13905 2006-04-23  Bruno Haible  <bruno@clisp.org>
13906
13907         * modules/copy-file: Depend on unistd.
13908         * modules/execute: Likewise.
13909         * modules/fatal-signal: Likewise.
13910         * modules/findprog: Likewise.
13911         * modules/mkdtemp : Likewise.
13912         * modules/pipe: Likewise.
13913         * modules/wait-process: Likewise.
13914
13915 2006-04-23  Bruno Haible  <bruno@clisp.org>
13916
13917         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
13918         condition was already detected.
13919         Reported by Ben Pfaff <blp@cs.stanford.edu>.
13920
13921 2006-04-23  Bruno Haible  <bruno@clisp.org>
13922
13923         * lib/copy-file.c: Include <unistd.h> unconditionally.
13924         * lib/execute.c: Likewise.
13925         * lib/fatal-signal.c: Likewise.
13926         * lib/findprog.c: Likewise.
13927         * lib/mkdtemp.c: Likewise.
13928         * lib/pipe.h: Likewise.
13929         * lib/pipe.c: Likewise.
13930         * lib/wait-process.h: Likewise.
13931
13932 2006-04-23  Bruno Haible  <bruno@clisp.org>
13933
13934         * gnulib-tool (func_usage): Fix --import description. Document
13935         --update.
13936         (func_import): Create temporary file in a temporary directory, if
13937         --dry-run is specified. Silence errors from 'grep' when there are no
13938         m4 files in $m4dir.
13939         (func_create_testdir): Silence errors from 'grep' when there are no
13940         m4 files in $m4dir.
13941         Reported by Karl Berry <karl@freefriends.org>.
13942
13943 2006-04-20  Bruno Haible  <bruno@clisp.org>
13944
13945         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
13946         one argument, so that the code will be portable to Autoconf 2.60.
13947         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
13948         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
13949         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
13950
13951 2006-04-19  Derek Price  <derek@ximbiot.com>
13952             Eric Blake  <ebb9@byu.net>
13953
13954         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
13955         rather than "/full/path.h".  Update comment to match.  Shorten &
13956         generalize m4_translit call via AS_TR_CPP.
13957
13958 2006-04-19  Derek Price  <derek@ximbiot.com>
13959             Eric Blake  <ebb9@byu.net>
13960
13961         * lib/inttypes.h: Correct grammar in comment.
13962
13963 2006-04-18  Derek Price  <derek@ximbiot.com>
13964             Paul Eggert  <eggert@cs.ucla.edu>
13965
13966         * modules/inttypes: New file.
13967         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
13968
13969 2006-04-18  Derek Price  <derek@ximbiot.com>
13970             Paul Eggert  <eggert@cs.ucla.edu>
13971
13972         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
13973         New files.
13974
13975 2006-04-18  Derek Price  <derek@ximbiot.com>
13976             Paul Eggert  <eggert@cs.ucla.edu>
13977
13978         * lib/inttypes.h: New file.
13979         * lib/strtoimax.c: Assume <inttypes.h>.
13980
13981 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
13982
13983         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
13984         isn't mounted.  Problem reported by Kir Kolyshkin.
13985
13986 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
13987
13988         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
13989         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
13990         Derek R. Price.
13991         * lib/regex.h (RE_DUP_MAX): Update comment to match current
13992         implementation.
13993
13994 2006-04-12  Eric Blake  <ebb9@byu.net>
13995
13996         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
13997         is now done automatically by the corresponding Autoconf macro.
13998
13999 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
14000
14001         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
14002         time_r.h.
14003
14004 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
14005
14006         Merge regex changes from libc, removing some of our
14007         POSIX-conformance changes that were rejected and redoing them in a
14008         less-intrusive way.
14009
14010         * lib/regcomp.c (re_compile_internal, init_dfa):
14011         Length arg is now size_t, not Idx.  All uses changed.
14012         (peek_token): Forward decl now says internal_function.
14013         (__re_error_msgid, __re_error_msgid_idx):
14014         Now static rather than extern with attribute_hidden.
14015         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
14016         For some reason libc prefers K&R style defns for external functions.
14017         (regerror) [!defined _LIBC]: Likewise.
14018         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
14019         (seek_collating_symbol_entry, lookup_collation_sequence_value):
14020         (build_range_exp, build_collating_symbol):
14021         Use K&R-style defn.
14022         (re_compile_fastmap): Use '\0' to memset, not 0.
14023         (utf8_sb_map): Make the calculations more obvious.
14024         (init_dfa, parse_bracket_exp, build_charclass_op):
14025         Call calloc and cast result, as glibc does.
14026         (init_word_char, fetch_token, peek_token, peek_token_bracket):
14027         (build_range_exp, build_collating_symbol):
14028         Now internal functions.
14029
14030         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
14031
14032         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
14033         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
14034         Don't depend on VMS; depend on __VMS instead, for POSIX
14035         namespace cleanness.
14036         (regoff_t): Define to ssize_t, not long int.
14037
14038         Remove the REG_ macros named below.  Instead, make the old names
14039         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
14040         __USE_GNU_REGEX.
14041         (REG_BACKSLASH_ESCAPE_IN_LISTS):
14042         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
14043         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
14044         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
14045         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
14046         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
14047         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
14048         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
14049         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
14050         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
14051         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
14052         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
14053         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
14054         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
14055         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
14056         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
14057         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
14058         (REG_NREGS):
14059         Remove.  All uses replaced by the old RE_* names.
14060         (RE_BACKSLASH_ESCAPE_IN_LISTS):
14061         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
14062         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
14063         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
14064         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
14065         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
14066         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
14067         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
14068         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
14069         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
14070         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
14071         Don't bother having these macros be independent of each others'
14072         values, since they no longer exist in the POSIX name space.
14073
14074         Rename the following member names back to their old names,
14075         unless !__USE_GNU_REGEX.  All uses changed back.
14076         (buffer): Renamed from re_buffer.
14077         (allocated): Renamed from re_allocated.
14078         (used): Renamed from re_used.
14079         (syntax): Renamed from re_syntax.
14080         (fastmap): Renamed from re_fastmap.
14081         (translate): Renamed from re_translate.
14082         (can_be_null): Renamed from re_can_be_null.
14083         (regs_allocated): Renamed from re_regs_allocated.
14084         (fastmap_accurate): Renamed from re_fastmap_accurate.
14085         (no_sub): Renamed from re_no_sub.
14086         (not_bol): Renamed from re_not_bol.
14087         (not_eol): Renamed from re_not_eol.
14088         (newline_anchor): Renamed from re_newline_anchor.
14089         (num_regs): Renamed from rm_num_regs.
14090         (start): Renamed from rm_start.
14091         (end): Renamed from rm_end.
14092
14093         (free_state): Move up a bit.
14094
14095         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
14096         #define to be empty.
14097         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
14098         when that is what is intended.
14099         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
14100         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
14101         (MAX): New macro.
14102         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
14103         All uses changed back to re_malloc, etc.  It's now the caller's
14104         responsibility to check for overflow; all callers changed.
14105         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
14106         (re_x2nrealloc): Remove.
14107         (free_state): Remove decl.
14108
14109         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
14110         (re_set_registers, re_exec):
14111         Use K&R-style defn.
14112
14113         2006-01-31  Roland McGrath  <roland@redhat.com>
14114
14115         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
14116         Reported by Mike Frysinger <vapier@gentoo.org>.
14117
14118         2006-01-15  Andreas Jaeger  <aj@suse.de>
14119
14120         [BZ #1950]
14121         * lib/regex_internal.c (re_string_reconstruct): Adjust for
14122         build_wcs_upper_buffer change.
14123         (build_wcs_upper_buffer): Change return type.
14124
14125         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
14126
14127         * lib/regex_internal.h: Include <stdint.h> if available.
14128
14129         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
14130
14131         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
14132
14133         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
14134
14135         * lib/regcomp.c: Adjust for changed secondary hash function.
14136
14137         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
14138
14139         * lib/regex.h: Pretty printing.
14140         Clean up namespace a bit.
14141
14142         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
14143
14144         * lib/regexec.c (update_cur_sifted_state, check_arrival,
14145         check_arrival_add_next_nodes): Avoid using uninitialized variable.
14146
14147         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
14148                     Ulrich Drepper  <drepper@redhat.com>
14149
14150         [BZ #1302]
14151         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
14152         changed.
14153         (bitset_word_t): Renamed from bitset_word.  All uses changed.
14154
14155         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
14156
14157         [BZ #281]
14158         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
14159         * lib/regcomp.c: Remove unnecessary uses of
14160         unsigned RE_TRANSLATE_TYPE.
14161         * lib/regex_internal.h: Likewise.
14162         * lib/regex_internal.c: Likewise.
14163         * lib/regexec.c: Likewise.
14164         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
14165
14166         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
14167
14168         * lib/regexec.c (find_recover_state): Remove unnecessary
14169         initialization.
14170         (transit_state_bkref): Make DFA a const pointer.
14171         (get_subexp): Likewise.
14172         (check_arrival): Likewise.
14173         (update_cur_sifted_state): Likewise.
14174         (re_search_internal): Likewise.
14175         (prune_impossible_nodes): Likewise.
14176         (acquire_init_state_context): Likewise.
14177         (proceed_next_node): Likewise.
14178         (set_regs): Likewise.
14179         (free_fail_stack_return): Likewise.
14180         (check_arrival_expand_ecl): Mark DFA parameter as const.
14181         (check_arrival_expand_ecl_sub): Likewise.
14182         (check_subexp_limits): Likewise.
14183         (sub_epsilon_src_nodes):  Likewise.
14184         (add_epsilon_src_nodes):  Likewise.
14185         (merge_state_array): Likewise.
14186         (update_regs): Likewise.
14187         (build_trtable): Likewise.
14188         (sift_states_backward): Mark MCTX parameter as const.
14189         (build_sifted_states): Likewise.
14190         (update_cur_sifted_state): Likewise.
14191         (sift_states_mkref): Likewise.
14192         (check_arrival_expand_ecl): Mark eclosure as const.
14193         (check_dst_limits_calc_pos_1): Likewise.
14194         * lib/regex_internal.h (re_match_context_t): Make dfa a const
14195         pointer.
14196
14197         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
14198
14199         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
14200         (transit_state_sb): Likewise.
14201         (transit_state_mb): Likewise.
14202         (sift_states_iter_mb): Likewise.
14203         (check_arrival_add_next_nodes): Likewise.
14204         (check_node_accept_bytes): Change first parameter to pointer-to-const.
14205         [_LIBC] (re_search_2_stub): Use mempcpy.
14206
14207         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
14208         mbrtowc for very simple UTF-8 case.
14209
14210         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
14211         a pointer-to-const.
14212         (re_acquire_state_context): Likewise.
14213         * lib/regex_internal.h: Adjust prototypes.
14214
14215         * lib/regex.c: Prevent using C++ compilers.
14216
14217         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
14218         (re_acquire_state_context): Likewise.
14219
14220 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
14221
14222         * modules/regex (Depends-on): Add ssize_t.
14223
14224 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
14225
14226         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
14227         translation table.
14228
14229 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
14230
14231         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
14232
14233 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
14234             Bruno Haible  <bruno@clisp.org>
14235
14236         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
14237         <sys/types.h> and <inttypes.h>.
14238
14239 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14240
14241         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
14242         `__error_t_defined', so argp.h will not typedef the former.
14243
14244 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
14245
14246         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
14247         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
14248         glibc names.  Even if glibc is changed to conform to POSIX, the
14249         traditional names will be available anyway, since regex depends on
14250         the extensions module.  Also, fix a longstanding typo in the
14251         implementation of Spencer ERE test #75 from grep 2.3.  Problems
14252         reported by Emanuele Giaquinta.  Also, change sense of cached
14253         variable, so that the message makes sense.
14254
14255 2006-03-24  Simon Josefsson  <jas@extundo.com>
14256
14257         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
14258         including some doc fixes.
14259         (base64_encode_alloc): Fix +1 bug on allocation failures.
14260
14261 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14262
14263         * lib/base64.c (base64_encode): Do not read past end of array with
14264         unsanitized input on systems with CHAR_BIT > 8.
14265
14266 2006-03-24  Eric Blake  <ebb9@byu.net>
14267
14268         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
14269
14270 2006-03-22  Karl Berry  <karl@gnu.org>
14271
14272         * config/srclist.txt (*setenv.[ch]): get from coreutils.
14273         * config/srclistvars.sh (COREUTILS): new var.
14274
14275 2006-03-17  Jim Meyering  <jim@meyering.net>
14276
14277         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
14278         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
14279
14280 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
14281
14282         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
14283         no longer needs it.  Instead, check that regoff_t is as least
14284         as wide as ptrdiff_t.
14285
14286         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
14287         so that our regex.h stays compatible with the installed regex.
14288         This is helpful for installers who configure --without-included-regex.
14289         Problem reported by Emanuele Giaquinta.
14290
14291 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
14292
14293         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
14294         Typedef to long int, not to off_, as POSIX will likely change
14295         in that direction.
14296
14297 2006-03-15  Eric Blake  <ebb9@byu.net>
14298
14299         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
14300
14301 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
14302
14303         * lib/argp-help.c (validate_uparams): Fix typo
14304         * lib/argp-parse.c (argp_default_options): Consistently begin help
14305         messages with a lowercase letter.
14306
14307 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
14308
14309         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
14310         overrun buffers and shouldn't be used (much as gets shouldn't be
14311         used).
14312         * lib/time_r.c (asctime_r, ctime_r): Likewise.
14313
14314 2006-03-08  Simon Josefsson  <jas@extundo.com>
14315
14316         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
14317         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
14318
14319 2006-03-08  Simon Josefsson  <jas@extundo.com>
14320
14321         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
14322         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
14323
14324 2006-03-08  Simon Josefsson  <jas@extundo.com>
14325
14326         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
14327         signal that configure disabled the device.
14328
14329 2006-03-08  Simon Josefsson  <jas@extundo.com>
14330
14331         * build-aux/maint.mk: Fix refresh-po, to handle no translated
14332         languages.
14333
14334 2006-03-07  Simon Josefsson  <jas@extundo.com>
14335
14336         * modules/getopt (Depends-on): Add unistd.
14337
14338         * modules/unistd: New file.
14339
14340 2006-03-07  Simon Josefsson  <jas@extundo.com>
14341
14342         * modules/gc-random: New file.
14343
14344 2006-03-07  Simon Josefsson  <jas@extundo.com>
14345
14346         * m4/unistd_h.m4: New file.
14347
14348 2006-03-07  Simon Josefsson  <jas@extundo.com>
14349
14350         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
14351         test to be side-effect free by storing the result in the cache
14352         variable gl_cv_lib_readline, and moving the assignment of
14353         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
14354         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
14355
14356 2006-03-07  Simon Josefsson  <jas@extundo.com>
14357
14358         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
14359         error on missing devices (the functions will return an error).
14360
14361         * m4/gc.m4: Move random stuff to gc-random.m4
14362
14363 2006-03-07  Simon Josefsson  <jas@extundo.com>
14364
14365         * lib/unistd_.h: New file.
14366
14367 2006-03-07  Simon Josefsson  <jas@extundo.com>
14368
14369         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
14370
14371 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
14372
14373         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
14374         Problem reported by Juan Manuel Guerrero.
14375
14376 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
14377
14378         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
14379         the unistd module.
14380         * lib/getlogin_r.c: Likewise.
14381         * lib/getlogin_r.h: Likewise.
14382         * lib/glob.c: Likewise.
14383         * lib/pagealign_alloc.c: Likewise.
14384         * lib/unistd_.h: Remove; no longer needed.
14385
14386 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
14387
14388         * MODULES.html.sh (Support for systems lacking POSIX:2001):
14389         Add unistd.
14390         * modules/c-stack (Depends-on): Add unistd.
14391         * modules/getlogin_r: Likewise.
14392         * modules/glob: Likewise.
14393         * modules/pagealign_alloc: Likewise.
14394         * modules/unistd (Files): Remove lib/unistd_.h.
14395         (EXTRA_DIST): Remove.
14396         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
14397         need unistd_.h.
14398         (MOSTLYCLEANFILES): Remove unistd.h-t.
14399
14400 2006-03-03  Simon Josefsson  <jas@extundo.com>
14401
14402         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
14403
14404 2006-03-03  Simon Josefsson  <jas@extundo.com>
14405
14406         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
14407         libidn and bison.
14408
14409 2006-03-03  Simon Josefsson  <jas@extundo.com>
14410
14411         * build-aux/maint.mk: Add indent target.
14412
14413 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
14414
14415         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
14416         our replacement poll.h in any case, to avoid a differing
14417         declaration from a system header.  Seen on AIX.
14418
14419 2006-03-01  Simon Josefsson  <jas@extundo.com>
14420
14421         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
14422         <kasal@ucw.cz>.
14423
14424 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
14425
14426         * modules/gettime (Depends-on): Add extensions module.
14427         * modules/nanosleep (Depends-on): Likewise.
14428         * modules/settime (Depends-on): Likewise.
14429
14430 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
14431
14432         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
14433         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
14434         pedantically.
14435         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
14436         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
14437
14438         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
14439         not "==".  Reported by Ralf Wildenhues.
14440
14441 2006-03-01  Karl Berry  <karl@gnu.org>
14442
14443         * doc/Copyright/request-*: new files, synced from gnuorg.
14444
14445 2006-03-01  Karl Berry  <karl@gnu.org>
14446
14447         * config/srclist.txt (Copyright/*): new entries.
14448
14449 2006-02-28  Simon Josefsson  <jas@extundo.com>
14450
14451         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
14452
14453 2006-02-27  Simon Josefsson  <jas@extundo.com>
14454
14455         * lib/base64.h: Indent #define's.  From Jim Meyering
14456         <jim@meyering.net>.
14457
14458 2006-02-27  Jim Meyering  <jim@meyering.net>
14459
14460         Revert the change of 2006-02-24, so these files can continue
14461         to be sync'd from gettext.
14462         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
14463         of `config.h'.
14464
14465 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
14466
14467         * modules/intprops: New file.
14468         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
14469         Add intprops.
14470         * modules/getloadavg (Files): Remove lib/intprops.h.
14471         (Depends-on): Add intprops.
14472         * modules/human: Likewise.
14473         * modules/inttostr: Likewise.
14474         * modules/openat: Likewise.
14475         * modules/sig2str: Likewise.
14476         * modules/userspec: Likewise.
14477         * modules/utimecmp: Likewise.
14478         * modules/xnanosleep: Likewise.
14479         * modules/xstrtol: Likewise.
14480
14481 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
14482
14483         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
14484         * modules/lock-tests (TESTS): Use $(EXEEXT).
14485         * modules/tls-tests: Likewise.
14486         * modules/argp-tests: Likewise.
14487         (check_PROGRAMS): New var, replacing...
14488         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
14489
14490 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14491
14492         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
14493         `config.h'.
14494
14495 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
14496
14497         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
14498
14499 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14500
14501         Sync from coreutils.
14502         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
14503         gl_CHDIR_SAFER.
14504
14505 2006-02-22  Jim Meyering  <jim@meyering.net>
14506
14507         Sync from coreutils.
14508         * m4/chdir-safer.m4: New file.
14509
14510 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
14511
14512         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
14513         AT_FDCWD exceeds INT_MAX.
14514         * lib/openat.h (AT_FDCWD): Likewise.
14515
14516 2006-02-17  Eric Blake  <address@hidden>
14517
14518         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
14519
14520 2006-02-16  Simon Josefsson  <jas@extundo.com>
14521
14522         * modules/getaddrinfo (Depends-on): Add sys_socket.
14523
14524 2006-02-15  Simon Josefsson  <jas@extundo.com>
14525
14526         * build-aux/maint.mk: Add dsyntax-check rule.
14527
14528 2006-02-15  Eric Blake  <ebb9@byu.net>
14529
14530         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
14531         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
14532         'present but cannot compile' warnings on cygwin.
14533         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
14534         use ws2tcpip.h if sys/socket.h works.
14535         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
14536         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
14537
14538 2006-02-14  Simon Josefsson  <jas@extundo.com>
14539
14540         * modules/maintainer-makefile (Files): Rename.
14541
14542         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
14543         and (the local) Makefile.cfg to maint-cfg.mk.
14544
14545         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
14546         to the latter.
14547
14548         * modules/maintainer-makefile: New module.
14549
14550         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
14551         severaly stripped to make it possible to build it up from scratch
14552         with reliable tests.
14553
14554         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
14555         fixes to permit overriding the default actions when configure and
14556         makefile are not available.
14557
14558 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
14559
14560         Sync from coreutils.
14561         * modules/lstat (Depends-on): Don't depend on xalloc.
14562         (License): Change from GPL to LGPL, since this is now simply a
14563         replacement for a libc function.
14564
14565 2006-02-14  Jim Meyering  <jim@meyering.net>
14566
14567         Sync from coreutils.
14568
14569         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
14570         failure on deficient systems, and simplify gnulib lgpl dependencies.
14571         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
14572         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
14573
14574         * lib/xalloc-die.c: Remove unused definition of N_.
14575
14576 2006-02-14  Jim Meyering  <jim@meyering.net>
14577
14578         Sync from coreutils.
14579         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
14580         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
14581         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
14582         double-quote uses of that variable, to accommodate the rare case in
14583         which getmntent is available in none of the libraries checked.  This
14584         happens at least on FreeBSD 5.0.
14585
14586 2006-02-13  Simon Josefsson  <jas@extundo.com>
14587
14588         * gnulib-tool (Usage): Fix --import, from
14589         karl@freefriends.org (Karl Berry).
14590
14591 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
14592
14593         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
14594
14595 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
14596
14597         * lib/argp-namefrob.h: Restore changes accidentally lost during the
14598         "autoupdate" on 2005-12-12.
14599
14600 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
14601
14602         * modules/closeout (Depends-on): Remove atexit.
14603
14604 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
14605
14606         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
14607         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
14608
14609 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
14610
14611         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
14612         __EXTENSIONS__ if this causes compilation to fail.  Problem
14613         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
14614         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
14615
14616 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
14617
14618         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
14619         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
14620         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
14621         All uses changed.
14622
14623 2006-01-26  Simon Josefsson  <jas@extundo.com>
14624
14625         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
14626         prototype is visible on mingw32.
14627
14628         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
14629         for mingw32.
14630
14631         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
14632         mingw32).
14633
14634 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
14635
14636         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
14637         attempt to open for write; this always fails, at least on POSIX
14638         hosts.  This reinstates the 2006-01-09 change, which was
14639         inadvertently removed.
14640
14641 2006-01-26  Bruno Haible  <bruno@clisp.org>
14642
14643         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
14644         Reported by Paul Eggert.
14645
14646 2006-01-26  Bruno Haible  <bruno@clisp.org>
14647             Paul Eggert  <eggert@cs.ucla.edu>
14648
14649         * lib/stdbool_.h (_Bool)
14650         [(! (defined __cplusplus || defined __BEOS__)
14651           && !defined __GNUC__
14652           && !(defined __HP_cc || defined __xlc__
14653                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
14654                || defined __sgi))]:
14655         #define to signed char in these cases too; this simplifies
14656         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
14657         etc., separately) and makes it more conservative.
14658
14659 2006-01-25  Simon Josefsson  <jas@extundo.com>
14660
14661         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
14662         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
14663         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
14664
14665 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
14666
14667         * lib/argp-namefrob.h: Bugfix. Remove stray #
14668
14669 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
14670
14671         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
14672         so that we test the test.
14673         Check for yet another HP-UX cc bug involving *bool |= bool.
14674
14675 2006-01-25  Karl Berry  <karl@gnu.org>
14676
14677         * config/srclist.txt (vasnprintf.c): sync lost.
14678
14679 2006-01-25  Jim Meyering  <jim@meyering.net>
14680
14681         Sync from the stable (b5) branch of coreutils:
14682
14683         * lib/fts.c (fts_children): Don't let close() clobber errno from
14684         failed fchdir().
14685
14686         * lib/fts.c (fts_stat): When following a symlink-to-directory,
14687         don't necessarily interpret stat-fails+lstat-succeeds as indicating
14688         a dangling symlink.  That can also happen at least for ELOOP.
14689         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
14690         FYI, this bug predates the inclusion of fts.c in coreutils.
14691
14692         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
14693         in their own block, so pre-c99 compilers don't object.
14694
14695         Avoid the double-free (first in fts_read, second in fts_close) that
14696         would occur when an `active' directory is made inaccessible (e.g.,
14697         via chmod a-x) during a traversal.
14698         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
14699         before returning.  Reproduce this failure by
14700         mkdir -p a/b; cd a; chmod a-x . b
14701         Reported by Stavros Passas.
14702
14703 2006-01-25  Jim Meyering  <jim@meyering.net>
14704
14705         * lib/fileblocks.c: Remove more useless parentheses.
14706         * lib/readutmp.h: Likewise.
14707
14708 2006-01-25  Bruno Haible  <bruno@clisp.org>
14709
14710         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
14711         warnings.
14712         Reported by Paul Eggert.
14713
14714 2006-01-25  Bruno Haible  <bruno@clisp.org>
14715
14716         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
14717         rid of a trap command. For Solaris sh.
14718         Reported by Mark D. Baushke <mdb@gnu.org>.
14719
14720 2006-01-24  Simon Josefsson  <jas@extundo.com>
14721
14722         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
14723         Bruno.
14724
14725 2006-01-24  Karl Berry  <karl@gnu.org>
14726
14727         * config/srclist.txt (argp-namefrob.h): sync lost.
14728
14729 2006-01-24  Jim Meyering  <jim@meyering.net>
14730
14731         * modules/openat (Files): Add lib/intprops.h.
14732         From Mark D. Baushke.
14733
14734 2006-01-24  Jim Meyering  <jim@meyering.net>
14735
14736         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
14737         Reported by Mark D. Baushke.
14738
14739 2006-01-24  Jim Meyering  <jim@meyering.net>
14740
14741         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
14742
14743 2006-01-24  Bruno Haible  <bruno@clisp.org>
14744
14745         * modules/strnlen (Maintainer): Change from glibc to all.
14746
14747 2006-01-24  Bruno Haible  <bruno@clisp.org>
14748
14749         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
14750         Patch by Paul Eggert.
14751
14752 2006-01-24  Bruno Haible  <bruno@clisp.org>
14753
14754         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
14755         already has it.
14756         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
14757         2005-11-26.
14758
14759         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
14760         'signed char' to avoid problems with the built-in _Bool type.
14761         Reported by Paul Eggert on 2005-11-26.
14762
14763 2006-01-24  Bruno Haible  <bruno@clisp.org>
14764
14765         * gnulib-tool (func_import): Avoid constructing complicated sed
14766         expressions inside backquote.
14767         Report and solution by Mark D. Baushke <mdb@gnu.org>.
14768
14769 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
14770
14771         These changes imported from libc.
14772         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
14773         test and two separate function calls.
14774         * lib/strndup.c (__strndup): Add libc_hidden_def.
14775
14776 2006-01-23  Simon Josefsson  <jas@extundo.com>
14777
14778         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
14779         Remove the test_*_SOURCES variable: automake infers it by default.
14780         * modules/tls-tests: Likewise.
14781
14782 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
14783
14784         Work around porting bugs reported by Dieter in
14785         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
14786         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
14787         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
14788         Include "getopt.h" first, to check interface.
14789         (getenv): Declare only if defined HAVE_DECL_GETENV &&
14790         !HAVE_DECL_GETENV.
14791         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
14792         (__strndup): Revert to K&R-style function dfns, the glibc style.
14793         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
14794         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
14795         Include strnlen.h first, to get prototype properly.
14796         (strnlen): Renamed from __strnlen.
14797         Remove weak alias.
14798
14799 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
14800
14801         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
14802
14803 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
14804
14805         * config/srclist.txt: Adjust to reflect glibc reorganization.
14806         This affects only comments.
14807
14808 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
14809
14810          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
14811          Reported by Bruce Korb <bkorb@gnu.org>.
14812
14813 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
14814
14815         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
14816         to pacify gcc -Wswitch-default.
14817
14818 2006-01-22  Bruno Haible  <bruno@clisp.org>
14819
14820         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
14821         temporary buffer for sprintf, take into account the precision also
14822         for 'd', 'i', 'u', 'o', 'x', 'X'.
14823
14824 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
14825
14826         * modules/argp-tests: New module
14827         * tests/test-argp.c: New file
14828         * tests/test-argp-2.sh: New file
14829
14830 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
14831
14832         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
14833         (__argp_base_name): Removed
14834         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
14835         typo.
14836         (__argp_base_name): Provide macro definition or extern declaration
14837         depending on the configuration
14838
14839 2006-01-20  Simon Josefsson  <jas@extundo.com>
14840
14841         * modules/inet_ntop (Depends-on): Depend on sys_socket.
14842
14843 2006-01-20  Simon Josefsson  <jas@extundo.com>
14844
14845         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
14846
14847 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
14848
14849         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
14850         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
14851         Suggested by Bruno Haible.
14852
14853 2006-01-20  Karl Berry  <karl@gnu.org>
14854
14855         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
14856         until changes propagate, I guess.
14857
14858 2006-01-19  Simon Josefsson  <jas@extundo.com>
14859
14860         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
14861
14862 2006-01-19  Simon Josefsson  <jas@extundo.com>
14863
14864         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
14865
14866 2006-01-19  Simon Josefsson  <jas@extundo.com>
14867
14868         * gnulib-tool: Set check_PROGRAMS.
14869
14870         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
14871         modules/des-tests, modules/gc-arcfour-tests,
14872         modules/gc-arctwo-tests, modules/gc-des-tests,
14873         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
14874         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
14875         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
14876         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
14877         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
14878         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
14879         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
14880         test_*_SOURCES.
14881
14882 2006-01-18  Simon Josefsson  <jas@extundo.com>
14883
14884         * modules/socklen (Depends-on): Depend on sys_socket.
14885
14886 2006-01-18  Simon Josefsson  <jas@extundo.com>
14887
14888         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
14889         modules/des-tests, modules/gc-arcfour-tests,
14890         modules/gc-arctwo-tests, modules/gc-des-tests,
14891         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
14892         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
14893         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
14894         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
14895         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
14896         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
14897         $(EXEEXT) to automake TESTS variable, for mingw32.
14898
14899 2006-01-17  Simon Josefsson  <jas@extundo.com>
14900
14901         * modules/socklen (Include): Need sys/socket.h.
14902
14903 2006-01-17  Bruno Haible  <bruno@clisp.org>
14904
14905         * modules/ssize_t (Include): Add <sys/types.h>.
14906
14907 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
14908
14909         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
14910         it's not portable and it doesn't work with cross-compiles.
14911         Problem reported by Bruno Haible.  Fix missing-$ typo in
14912         'test "gl_cv_ignore_unused_libraries" ...' that prevented
14913         -zignore from being used with Sun's C compiler.
14914
14915 2006-01-12  Simon Josefsson  <jas@extundo.com>
14916
14917         * lib/base64.c: Fix warning, reported by Bruno Haible
14918         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
14919
14920 2006-01-12  Bruno Haible  <bruno@clisp.org>
14921
14922         * modules/ldd: New file.
14923         * build-aux/ldd.sh.in: New file.
14924         * MODULES.html.sh (Support for building libraries and executables): Add
14925         ldd.
14926
14927 2006-01-12  Bruno Haible  <bruno@clisp.org>
14928
14929         * m4/ldd.m4: New file.
14930
14931 2006-01-12  Bruno Haible  <bruno@clisp.org>
14932
14933         * gnulib-tool (func_import, func_create_testdir): Don't go into an
14934         endless loop while replacing $auxdir with build-aux.
14935
14936 2006-01-11  Simon Josefsson  <jas@extundo.com>
14937
14938         * lib/stdint_.h (SIZE_MAX): Add missing (.
14939
14940 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
14941
14942         Sync from coreutils.
14943         * lib/md5.c: Fix commentary typos.
14944         (alignof, UNALIGNED_P): No need for a GCC-specific version.
14945         * lib/md5.h (__attribute__): Remove; unused.
14946         * lib/sha1.c: Fix commentary to match md5 better.
14947         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
14948         so that we don't need to worry about alignment.  All uses changed.
14949         This merges the 2005-10-28 md5 change into sha1.
14950
14951 2006-01-11  Jim Meyering  <jim@meyering.net>
14952
14953         Sync from coreutils.
14954         * lib/md5.c (OP): Fix spacing.
14955
14956 2006-01-11  Bruno Haible  <bruno@clisp.org>
14957
14958         Ensure automatic ordering between gl_LOCK and gl_ARGP.
14959         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
14960         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
14961
14962 2006-01-11  Bruno Haible  <bruno@clisp.org>
14963
14964         Ensure automatic ordering between gl_LOCK and gl_ARGP.
14965         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
14966         the "early" section as well.
14967
14968 2006-01-11  Bruno Haible  <bruno@clisp.org>
14969
14970         Avoid "ar: no archive members specified" error on MacOS X.
14971         * gnulib-tool (func_modules_add_dummy): New function.
14972         (func_import, func_create_testdir): Invoke it.
14973
14974 2006-01-11  Bruno Haible  <bruno@clisp.org>
14975
14976         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
14977         with $auxdir in AC_CONFIG_FILES statements.
14978
14979 2006-01-11  Bruno Haible  <bruno@clisp.org>
14980
14981         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
14982         Initialize also noinst_HEADERS to empty.
14983
14984 2006-01-11  Bruno Haible  <bruno@clisp.org>
14985
14986         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
14987         variables.
14988         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
14989         autoreconf.
14990
14991 2006-01-11  Bruno Haible  <bruno@clisp.org>
14992
14993         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
14994         overridable by the user.
14995         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
14996
14997 2006-01-10  Simon Josefsson  <jas@extundo.com>
14998
14999         * modules/sys_socket: New file.
15000
15001 2006-01-10  Simon Josefsson  <jas@extundo.com>
15002
15003         * m4/sys_socket_h.m4: New file.
15004
15005 2006-01-10  Simon Josefsson  <jas@extundo.com>
15006
15007         * lib/socket_.h: New file.
15008
15009 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
15010
15011         * modules/readutmp (Maintainer): Add myself.
15012
15013 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
15014
15015         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
15016         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
15017         People who are still concerned with buggy memcmp implementations
15018         can invoke gl_FUNC_MEMCMP themselves.
15019
15020 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
15021
15022         * lib/regex_internal.h (BITSET_WORD_BITS):
15023         Work around a bug in 64-bit PGC (before version 6.1-2), where the
15024         preprocessor mishandles large unsigned values as if they were signed.
15025         Problem reported by Claudio Fontana in
15026         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
15027
15028 2006-01-10  Jim Meyering  <jim@meyering.net>
15029
15030         Avoid the double-free (first in fts_read, second in fts_close) that
15031         would occur when an `active' directory is made inaccessible (e.g.,
15032         via chmod a-x) during a traversal.
15033         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
15034         before returning.  Reproduce this failure by
15035         mkdir -p a/b; cd a; chmod a-x . b
15036         Reported by Stavros Passas.
15037
15038         Sync from coreutils.
15039         * lib/sha1.c: Tweak grammar in a comment.
15040
15041 2006-01-10  Jim Meyering  <jim@meyering.net>
15042
15043         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
15044         Patch by Joerg Sonnenberger.
15045
15046 2006-01-10  Bruno Haible  <bruno@clisp.org>
15047
15048         * modules/readutmp: Depend on module free.
15049         * modules/strtok_r: Depend on module restrict.
15050
15051 2006-01-10  Bruno Haible  <bruno@clisp.org>
15052
15053         * modules/gettext (configure.ac): Add an invocation of
15054         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
15055
15056 2006-01-10  Bruno Haible  <bruno@clisp.org>
15057
15058         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
15059         Reported by Werner Lemberg <wl@gnu.org>.
15060
15061 2006-01-10  Bruno Haible  <bruno@clisp.org>
15062
15063         * lib/localcharset.c: Update from GNU gettext.
15064
15065 2006-01-10  Bruno Haible  <bruno@clisp.org>
15066
15067         * lib/argp.h (__const): Remove macro. Use const instead.
15068         * lib/argp-fmtstream.h (__const): Likewise.
15069         * lib/glob_.h (__const): Remove macro.
15070         * lib/glob-libc.h: Use const instead of __const.
15071
15072 2006-01-10  Bruno Haible  <bruno@clisp.org>
15073
15074         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
15075         variable.
15076         Needed to avoid an automake error regarding the 'gettext' module.
15077
15078 2006-01-09  Simon Josefsson  <jas@extundo.com>
15079
15080         * modules/inet_ntop (Depends-on): Add restrict.
15081
15082 2006-01-09  Simon Josefsson  <jas@extundo.com>
15083
15084         * modules/gc-rijndael-tests (License): Put under LGPL.
15085
15086         * modules/gc-des-tests (License): Likewise.
15087
15088         * modules/gc-arcfour-tests (License): Likewise.
15089
15090         * modules/gc-arctwo-tests (License): Likewise.
15091
15092         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
15093
15094         * modules/gc-hmac-sha1-tests (Files): Likewise.
15095
15096         * modules/gc-hmac-md5-tests (License): Likewise.
15097
15098         * modules/gc-sha1-tests (License): Likewise.
15099
15100         * modules/gc-md5-tests (License): Likewise.
15101
15102         * modules/gc-md4-tests (License): Likewise.
15103
15104         * modules/gc-md2-tests (License): Likewise.
15105
15106         * modules/gc-tests (License): Likewise.
15107
15108         * modules/des-tests (License): Likewise.
15109
15110         * modules/md4-tests (License): Likewise.
15111
15112         * modules/md2-tests (License): Likewise.
15113
15114 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
15115
15116         Sync from coreutils:
15117
15118         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
15119         * modules/lib-ignore: New file.
15120         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
15121         chdir-safer.m4, lchmod.m4.
15122         * modules/openat: Add mkdirat.c, openat-priv.h.
15123
15124 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
15125
15126         Sync from coreutils.
15127         * m4/lib-ignore.m4: New file.
15128         * m4/lchmod.m4: New file.
15129
15130 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
15131
15132         Sync from coreutils.
15133         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
15134         for write access: POSIX says that must fail.
15135         * lib/fts.c (diropen): Likewise.
15136         * lib/save-cwd.c (save_cwd): Likewise.
15137         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
15138         well, for minor improvements on hosts that lack O_DIRECTORY.
15139         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
15140         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
15141         Fall back on chown if open failed with EACCES.
15142
15143         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
15144         Report an error at compile-time if only a 1-second nominal clock
15145         resolution is found.
15146
15147         * lib/lchmod.h: New file.
15148         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
15149         (make_dir_parents): Use lchown rather than chown, and
15150         lchmod rather than chmod.
15151
15152         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
15153         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
15154         "proc" reported by n0dalus.
15155
15156         * lib/mountlist.c: Include <limits.h>.
15157         (dev_from_mount_options)
15158         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
15159         New function.  It no longer assumes "dev=" has the System V meaning
15160         on Linux (since it doesn't).  It also parses "dev=" more carefully.
15161         (read_file_system_list)
15162         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
15163         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
15164         dev= in that case.
15165
15166         * lib/posixtm.h (PDS_PRE_2000): New macro.
15167         * lib/posixtm.c (year): Arg is now syntax_bits rather than
15168         allow_century.  All usages changed.  Reject dates outside the range
15169         1969-1999 if PDS_PRE_2000 is used.
15170
15171 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
15172
15173         Sync from coreutils.
15174         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
15175         (Time of day items): Mention the possibility of leap seconds.
15176         Problem reported by Dr. David Alan Gilbert.
15177
15178 2006-01-09  Jim Meyering  <jim@meyering.net>
15179
15180         Sync from coreutils.
15181
15182         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
15183
15184         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
15185
15186         * lib/modechange.c (mode_compile): Reject an invalid mode string
15187         that starts with an octal digit.  From Andreas Gruenbacher.
15188
15189         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
15190         and dup to open_safer and dup_safer, respectively.
15191         (openat_permissive): Fix typo in comment.
15192
15193         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
15194         "gettext.h"; either no longer needed or are guaranteed by openat.h.
15195         (_): Remove; no longer needed.
15196         (openat): Renamed from rpl_openat; no need for rpl_openat
15197         since openat.h renames openat for us.
15198         Replace most of the body with a call to openat_permissive,
15199         to avoid duplicate code.
15200         Port to (probably hypothetical) environments were mode_t is
15201         wider than int.
15202         (openat_permissive): Require mode arg, so that we can check
15203         types better.  Put it just after flags.  Change cwd failure
15204         indicator from pointer-to-bool to pointer-to-errno-value.
15205         All callers changed.
15206         Invoke openat_save_fail and/or openat_restore_fail if
15207         cwd_errno is null, so that openat can call us.
15208         (openat_permissive, fdopendir, fstatat, unlinkat):
15209         Simplify errno handling to avoid some duplicate code,
15210         as it's OK to set errno on success.
15211         * lib/openat.h: Revamp code so that function macros depend on
15212         __OPENAT_PREFIX only, not also on AT_FDCWD.
15213         (openat_ro): Remove.  Caller changed to use openat_permissive.
15214         (openat_permissive): Now a macro, if not a function.
15215         (openat_restore_fail, openat_save_fail): Now always functions,
15216         since mkdirat needs them even if __OPENAT_PREFIX is defined.
15217
15218         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
15219         and openat.c.
15220         * lib/mkdirat.c: Include openat-priv.h.
15221         Remove definitions of macros defined therein.
15222         * lib/openat.c: Likewise.
15223
15224         * lib/mkdirat.c (mkdirat): New file and function.
15225         * lib/openat.h (mkdirat): Declare.
15226
15227         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
15228
15229         * lib/openat.h (openat_permissive): Declare.
15230         (openat_ro): Define.
15231
15232         * lib/openat.c (EXPECTED_ERRNO): New macro.
15233         (openat_permissive): New function -- used in remove.c rewrite.
15234         (all functions): Set errno just before returning, only if there
15235         was an actual failure.
15236         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
15237
15238         Emulate openat-family functions using Linux's procfs, if possible.
15239         Idea and some code based on Ulrich Drepper's glibc changes.
15240
15241         * lib/openat.c: (BUILD_PROC_NAME): New macro.
15242         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
15243         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
15244         before falling back on save_cwd and restore_cwd.
15245         (fdopendir, fstatat, unlinkat): Likewise.
15246
15247         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
15248         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
15249
15250         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
15251         as second argument to va_arg.  Otherwise, some versions of gcc
15252         warn that `if this code is reached, the program will abort'.
15253
15254 2006-01-09  Jim Meyering  <jim@meyering.net>
15255
15256         Sync from coreutils.
15257         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
15258         Require openat-priv.h.
15259
15260 2006-01-09  Bruno Haible  <bruno@clisp.org>
15261
15262         * modules/strnlen (Include): Use strnlen.h.
15263
15264 2006-01-09  Bruno Haible  <bruno@clisp.org>
15265
15266         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
15267
15268 2006-01-09  Bruno Haible  <bruno@clisp.org>
15269
15270         * lib/sysexit_.h (EX_OK): New macro.
15271         Suggested by Martin Lambers <marlam@marlam.de>.
15272
15273 2006-01-09  Bruno Haible  <bruno@clisp.org>
15274
15275         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
15276         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
15277
15278 2006-01-09  Bruno Haible  <bruno@clisp.org>
15279
15280         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
15281         numbers.
15282
15283 2006-01-09  Bruno Haible  <bruno@clisp.org>
15284
15285         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
15286         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
15287         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
15288         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
15289
15290 2006-01-09  Bruno Haible  <bruno@clisp.org>
15291
15292         * build-aux/javacomp.sh.in: New file, moved from lib/.
15293         * modules/javacomp-script (Files): Update.
15294         (configure.ac): Add AC_CONFIG_FILES invocation.
15295         (EXTRA_DIST): Remove variable.
15296
15297         * build-aux/javaexec.sh.in: New file, moved from lib/.
15298         * modules/javaexec (Files): Update.
15299         (configure.ac): Add AC_CONFIG_FILES invocation.
15300         (EXTRA_DIST): Remove javaexec.sh.in.
15301
15302         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
15303         * modules/csharpcomp-script (Files): Update.
15304         (configure.ac): Add AC_CONFIG_FILES invocation.
15305         (EXTRA_DIST): Remove variable.
15306
15307         * build-aux/csharpexec.sh.in: New file, moved from lib/.
15308         * modules/csharpexec (Files): Update.
15309         (configure.ac): Add AC_CONFIG_FILES invocation.
15310         (EXTRA_DIST): Remove csharpexec.sh.in.
15311
15312 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
15313
15314         Sync from coreutils.
15315
15316         Add POSIX ACL support
15317         * lib/acl.h (copy_acl, set_acl): Add declarations.
15318         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
15319         systems other than Linux.
15320         (chmod_or_fchmod): New function: use fchmod when possible,
15321         and chmod otherwise.
15322         (file_has_acl): Add a POSIX ACL implementation, with a
15323         Linux-specific subcase.
15324         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
15325         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
15326         acls are unsupported.
15327         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
15328         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
15329         are unsupported.
15330
15331 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
15332
15333         Sync from coreutils.
15334         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
15335
15336 2006-01-07  Bruno Haible  <bruno@clisp.org>
15337
15338         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
15339         gl_EARLY.
15340
15341 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
15342
15343         * lib/strftime.c (tzname): Don't declare if it is already #defined.
15344         Problem reported for Mingw by Mark Junker.
15345
15346 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
15347
15348         * README: Gnulib normally doesn't generate a tarball.
15349
15350 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
15351
15352         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
15353         long int, not int, for nanosecond counts, so that people who are
15354         used to POSIX struct timespec won't be surprised.  Reported by Jim
15355         Meyering.
15356
15357 2005-12-28  Bruno Haible  <bruno@clisp.org>
15358
15359         * build-aux/config.rpath: Update from GNU gettext.
15360
15361 2005-12-16  Jim Meyering  <jim@meyering.net>
15362
15363         * modules/fprintftime: New module.
15364         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
15365
15366 2005-12-16  Jim Meyering  <jim@meyering.net>
15367
15368         * m4/fprintftime.m4: New file.
15369
15370 2005-12-16  Jim Meyering  <jim@meyering.net>
15371
15372         * lib/fprintftime.c, lib/fprintftime.h: New files.
15373
15374 2005-12-15  Simon Josefsson  <jas@extundo.com>
15375
15376         * modules/socklen (configure.ac): Fix M4 macro name, to align with
15377         new m4/socklen.m4.
15378
15379 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
15380
15381         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
15382         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
15383
15384 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
15385
15386         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
15387         * lib/argp-help.c (fill_in_uparams): Check if the constructed
15388         struct uparams is valid. Fall back to the default values if it is
15389         not.
15390
15391 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
15392
15393         * modules/argp (Files): Add argp-pin.c
15394         (Depends-on): dirname
15395         (lib_SOURCES): Add argp-pin.c
15396
15397 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
15398
15399         * m4/argp.m4:  Check if program_invocation_name and
15400         program_invocation_short_name are declared and define appropriate
15401         macros if they are not.
15402
15403 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
15404
15405         * lib/argp-help.c (__argp_base_name): New function
15406         (__argp_short_program_name): Rewrite using __argp_base_name
15407         * lib/argp-namefrob.h: Define program_invocation_name and
15408         program_invocation_short_name if requested
15409         (__argp_base_name): Add prototype
15410         * lib/argp-parse.c (argp_def): Use gettext wrappers
15411         (argp_default_parser): Use __argp_base_name
15412         * lib/argp-pin.c: New file. Defines program_invocation_name and
15413         program_invocation_short_name on systems that lack them.
15414
15415 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
15416
15417         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
15418         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
15419         porting problem reported by Georg Schwarz in
15420         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
15421
15422 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
15423
15424         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
15425         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
15426         porting problem reported by Georg Schwarz in
15427         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
15428
15429 2005-12-05  Bruno Haible  <bruno@clisp.org>
15430
15431         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
15432         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
15433         Reported by Mark Junker <mjscod@gmx.de>.
15434
15435 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
15436
15437         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
15438         Use implementation from Albert Chin, with some
15439         comments/corrections by Stepan Kasal and myself.
15440
15441 2005-12-02  Bruno Haible  <bruno@clisp.org>
15442
15443         * gnulib-tool (func_import): Accept GPLed build tool modules when
15444         --lgpl is given.
15445         * modules/csharpcomp-script: New file.
15446         * modules/csharpcomp: Depend on it.
15447         * modules/javacomp-script: New file.
15448         * modules/javacomp: Depend on it.
15449         Suggested by Simon Josefsson.
15450
15451 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
15452
15453         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
15454         statement, to work around an HP-UX 10.20 compiler bug reported by
15455         Peter O'Gorman.
15456
15457 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
15458
15459         * modules/savedir (Depends-on): Add openat.
15460
15461 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
15462
15463         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
15464         (uintmax_t) [defined uintmax_t]: Do not declare.
15465         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
15466         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
15467         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
15468         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
15469         sake of portability to weird hosts that C allows (though we don't
15470         know of any practical examples).
15471
15472         * lib/savedir.h (fdsavedir): New decl.
15473         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
15474         contains most of the former guts of savedir.
15475         (savedir): Use savedirstream.
15476         Include "openat.h".
15477
15478 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
15479
15480         * modules/obstack (Files): Add m4/ulonglong.m4.
15481         Problem reported by Davide Angelocola.
15482
15483 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
15484
15485         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
15486         coreutils no longer futzes with rounding modes.
15487
15488 2005-11-14  Jim Meyering  <jim@meyering.net>
15489
15490         * lib/mkstemp-safer.c: Include <config.h>, required for possible
15491         replacement of mkstemp.
15492
15493 2005-11-10  Simon Josefsson  <jas@extundo.com>
15494
15495         * lib/readline.c: Remove EOL.
15496
15497 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
15498
15499         * modules/gethrxtime (Depends-on): Add gettime.
15500
15501 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
15502
15503         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
15504         or gettimeofday; no longer needed.
15505
15506 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
15507
15508         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
15509         time business.
15510         (gethrxtime) [! (HAVE_NANOUPTIME
15511         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
15512         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
15513         our own approximation.
15514
15515 2005-11-08  Eric Blake  <ebb9@byu.net>
15516
15517         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
15518
15519 2005-11-08  Eric Blake  <ebb9@byu.net>
15520
15521         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
15522
15523 2005-11-04  Bruno Haible  <bruno@clisp.org>
15524
15525         * gnulib-tool: Implement --update mode.
15526
15527 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
15528
15529         Fix porting problem reported by Theodoros V. Kalamatianos.
15530         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
15531         Don't assume that futimes failing means we must fail.
15532
15533 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
15534
15535         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
15536         variables to suggest the intended function of the PATH_MAX check.
15537
15538 2005-10-30  Kean Johnston  <jkj@sco.com>
15539
15540         Trivial changes to support SCO systems.
15541         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
15542         as PATH_MAX.
15543         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
15544         where __ptr is null when no I/O is pending.
15545
15546 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
15547
15548         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
15549         leave errno alone.  Problem reported by Dmitry V. Levin.
15550
15551 2005-10-28  Simon Josefsson  <jas@extundo.com>
15552
15553         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
15554         Test more.
15555
15556         * tests/test-gc-md2.c, tests/test-md2.c: New files.
15557
15558         * modules/md2, modules/md2-tests: New files.
15559
15560 2005-10-28  Simon Josefsson  <jas@extundo.com>
15561
15562         * m4/inet_ntop.m4: More tests.
15563
15564         * m4/gc-md2.m4, md2.m4: New file.
15565
15566 2005-10-28  Simon Josefsson  <jas@extundo.com>
15567
15568         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
15569         "restrict" keywords, as per POSIX.  Protect the function
15570         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
15571         Don't use K&R prototypes.  Check the sprintf return values.
15572         Re-define EAFNOSUPPORT if not present.  Indent.
15573
15574         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
15575         suggested by Bruno Haible <bruno@clisp.org>.
15576
15577         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
15578
15579         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
15580
15581         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
15582         libgcrypt).
15583
15584         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
15585
15586         * lib/md2.h, lib/md2.c: New files.
15587
15588 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
15589
15590         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
15591         errno alone.  Problem reported by Frederic Jolliton.
15592
15593 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
15594
15595         * modules/verify (License): Change from GPL to LGPL.  This is a
15596         tiny module and there are apparently near-equivalents that are
15597         under the BSD license.
15598
15599 2005-10-24  Simon Josefsson  <jas@extundo.com>
15600
15601         * modules/sha1: Relicense to LGPL.
15602
15603 2005-10-24  Simon Josefsson  <jas@extundo.com>
15604
15605         * lib/md4.h: Shrink buffer size, now that we changed the type.
15606
15607 2005-10-23  Simon Josefsson  <jas@extundo.com>
15608
15609         * gnulib-tool (func_import): Fix --tests-base.
15610
15611 2005-10-22  Simon Josefsson  <jas@extundo.com>
15612
15613         * modules/arcfour (Depends-on): Need stdint.
15614
15615 2005-10-22  Simon Josefsson  <jas@extundo.com>
15616
15617         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
15618         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
15619
15620 2005-10-22  Simon Josefsson  <jas@extundo.com>
15621
15622         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
15623         suggested by Bruno Haible <bruno@clisp.org>.
15624
15625 2005-10-22  Simon Josefsson  <jas@extundo.com>
15626
15627         * lib/crc.h: Include stddef.h, for size_t.
15628
15629 2005-10-22  Simon Josefsson  <jas@extundo.com>
15630
15631         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
15632         arcfour_context struct (simplify test vector testing in GNU
15633         Shishi).
15634
15635 2005-10-21  Simon Josefsson  <jas@extundo.com>
15636
15637         * modules/des, modules/des-tests: New files.
15638
15639         * modules/gc-des, modules/gc-des-tests: New files.
15640
15641         * tests/test-des.c, tests/test-gc-des.c: New file.
15642
15643 2005-10-21  Simon Josefsson  <jas@extundo.com>
15644
15645         * modules/arctwo, modules/arctwo-tests: New files.
15646
15647         * tests/test-arctwo.c: New file.
15648
15649         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
15650
15651         * tests/test-gc-arctwo.c: New file.
15652
15653 2005-10-21  Simon Josefsson  <jas@extundo.com>
15654
15655         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
15656         Bruno Haible <bruno@clisp.org>.
15657
15658         * m4/gc-des.m4: New file.
15659
15660 2005-10-21  Simon Josefsson  <jas@extundo.com>
15661
15662         * m4/arctwo.m4: New file.
15663
15664         * m4/gc-arctwo.m4: New file.
15665
15666 2005-10-21  Simon Josefsson  <jas@extundo.com>
15667
15668         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
15669         block.
15670
15671 2005-10-21  Simon Josefsson  <jas@extundo.com>
15672
15673         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
15674         <bruno@clisp.org>.
15675
15676         * lib/hmac-sha1.c (hmac_sha1): Likewise.
15677
15678         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
15679         Bruno Haible <bruno@clisp.org>.
15680
15681         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
15682         <bruno@clisp.org>.
15683
15684 2005-10-21  Simon Josefsson  <jas@extundo.com>
15685
15686         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
15687
15688 2005-10-21  Simon Josefsson  <jas@extundo.com>
15689
15690         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
15691
15692 2005-10-21  Simon Josefsson  <jas@extundo.com>
15693
15694         * lib/des.h, lib/des.c: New files.
15695
15696         * lib/gc-gnulib.c: Support DES.c
15697
15698 2005-10-21  Simon Josefsson  <jas@extundo.com>
15699
15700         * lib/arctwo.h, lib/arctwo.c: New files.
15701
15702         * lib/gc-gnulib.c: Support ARCTWO.
15703
15704 2005-10-21  Simon Josefsson  <jas@extundo.com>
15705
15706         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
15707         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15708
15709 2005-10-21  Simon Josefsson  <jas@extundo.com>
15710
15711         * gnulib-tool (func_import, func_create_testdir): Define automake
15712         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
15713         Makefile.am snippet),
15714         suggested by Bruno Haible <bruno@clisp.org>.
15715
15716         * modules/gc (Makefile.am): Use it.
15717
15718 2005-10-21  Bruno Haible  <bruno@clisp.org>
15719
15720         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
15721         patch.
15722
15723 2005-10-19  Simon Josefsson  <jas@extundo.com>
15724
15725         * tests/test-gc-rijndael.c: New file.
15726
15727         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
15728
15729 2005-10-19  Simon Josefsson  <jas@extundo.com>
15730
15731         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
15732         interface too.
15733
15734 2005-10-19  Simon Josefsson  <jas@extundo.com>
15735
15736         * tests/test-gc-arcfour.c: New file.
15737
15738         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
15739
15740 2005-10-19  Simon Josefsson  <jas@extundo.com>
15741
15742         * modules/gc-md4, modules/gc-md4-tests: New file.
15743
15744         * tests/test-gc-md4.c: New file.
15745
15746 2005-10-19  Simon Josefsson  <jas@extundo.com>
15747
15748         * m4/gc-md4.m4: New file.
15749
15750 2005-10-19  Simon Josefsson  <jas@extundo.com>
15751
15752         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
15753         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
15754         <kasal@ucw.cz>.
15755
15756 2005-10-19  Simon Josefsson  <jas@extundo.com>
15757
15758         * m4/gc-arcfour.m4: New file.
15759
15760         * m4/gc-rijndael.m4: New file.
15761
15762 2005-10-19  Simon Josefsson  <jas@extundo.com>
15763
15764         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
15765
15766 2005-10-19  Simon Josefsson  <jas@extundo.com>
15767
15768         * lib/gc-gnulib.c: Support ARCFOUR.
15769
15770 2005-10-19  Simon Josefsson  <jas@extundo.com>
15771
15772         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
15773         support.
15774
15775         * lib/gc.h: Add ECB enum type.
15776
15777         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
15778
15779 2005-10-18  Simon Josefsson  <jas@extundo.com>
15780
15781         * tests/test-md5.c: New file.
15782
15783         * modules/md5-tests: New file.
15784
15785 2005-10-18  Simon Josefsson  <jas@extundo.com>
15786
15787         * tests/test-md4.c: New file.
15788
15789         * modules/md4, modules/md4-tests: New files.
15790
15791 2005-10-18  Simon Josefsson  <jas@extundo.com>
15792
15793         * m4/md4.m4: New file.
15794
15795 2005-10-18  Simon Josefsson  <jas@extundo.com>
15796
15797         * lib/md4.h, lib/md4.c: New files, based on md5.?.
15798
15799 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
15800
15801         * gnulib-tool (func_create_testdir): Omit the second check whether
15802         BUILT_SOURCES in nonempty.
15803
15804 2005-10-17  Simon Josefsson  <jas@extundo.com>
15805
15806         * tests/test-rijndael.c: New file.
15807
15808 2005-10-17  Simon Josefsson  <jas@extundo.com>
15809
15810         * modules/sha1: Depend on stdint instead of md5.
15811
15812         * modules/md5: Depend on stdint, remove uint32_t.
15813
15814 2005-10-17  Simon Josefsson  <jas@extundo.com>
15815
15816         * modules/gc-sha1-tests: New file.
15817
15818         * tests/test-gc-sha1.c: New file.
15819
15820 2005-10-17  Simon Josefsson  <jas@extundo.com>
15821
15822         * m4/md5.m4: Remove call to uint32_t.m4.
15823
15824 2005-10-17  Simon Josefsson  <jas@extundo.com>
15825
15826         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
15827
15828         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
15829         md5.h.
15830
15831         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
15832
15833         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
15834
15835 2005-10-17  Simon Josefsson  <jas@extundo.com>
15836
15837         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
15838
15839 2005-10-17  Simon Josefsson  <jas@extundo.com>
15840
15841         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
15842
15843 2005-10-17  Simon Josefsson  <jas@extundo.com>
15844
15845         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
15846
15847         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
15848
15849 2005-10-17  Bruno Haible  <bruno@clisp.org>
15850
15851         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
15852         that it can also be used in a test.
15853
15854 2005-10-16  Bruno Haible  <bruno@clisp.org>
15855
15856         * gnulib-tool (func_emit_tests_Makefile_am): Also define
15857         TESTS_ENVIRONMENT, so that individual tests can augment it.
15858
15859         * gnulib-tool (func_create_testdir): Use an intermediate target for
15860         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
15861         macros, like $(ALLOCA_H), which cannot be passed through the command
15862         line.
15863
15864 2005-10-15  Simon Josefsson  <jas@extundo.com>
15865
15866         * modules/rijndael-tests: New file.
15867
15868         * modules/rijndael: New file.
15869
15870 2005-10-15  Simon Josefsson  <jas@extundo.com>
15871
15872         * m4/rijndael.m4: New file.
15873
15874 2005-10-15  Simon Josefsson  <jas@extundo.com>
15875
15876         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
15877
15878         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
15879
15880 2005-10-14  Simon Josefsson  <jas@extundo.com>
15881
15882         * tests/test-arcfour.c: New file.
15883
15884         * modules/arcfour, modules/arcfour-tests: New files.
15885
15886 2005-10-14  Simon Josefsson  <jas@extundo.com>
15887
15888         * m4/arcfour.m4: New file.
15889
15890 2005-10-14  Simon Josefsson  <jas@extundo.com>
15891
15892         * lib/arcfour.h, lib/arcfour.c: New files.
15893
15894 2005-10-14  Roland McGrath  <roland@redhat.com>
15895
15896         Import from libc.  [BZ #1331]
15897         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
15898         macro argument.
15899         Reported by Matej Vela <vela@debian.org>.
15900
15901 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
15902
15903         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
15904         include <wchar.h>; no longer needed.
15905
15906 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
15907
15908         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
15909
15910 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
15911         and  Ulrich Drepper  <drepper@redhat.com>
15912
15913         Import from libc.
15914         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
15915         instead of inline stream orientation test and two separate
15916         function calls.  Pay no attention to USE_IN_LIBIO.
15917
15918 2005-10-13  Simon Josefsson  <jas@extundo.com>
15919
15920         * modules/gc-hmac-md5-tests: New file.
15921
15922         * tests/test-gc-hmac-sha1.c: New file.
15923
15924         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
15925
15926         * modules/gc-hmac-md5-tests: New file.
15927
15928         * tests/test-gc-md5.c: New file.
15929
15930         * modules/gc-md5-tests: New file.
15931
15932 2005-10-13  Simon Josefsson  <jas@extundo.com>
15933
15934         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
15935         Move memory allocation outside of loop.
15936
15937 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
15938
15939         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
15940         intermediate directory is in a read-only file system.  Problem
15941         reported by Eric Blake.
15942
15943 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
15944
15945         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
15946
15947 2005-10-12  Simon Josefsson  <jas@extundo.com>
15948
15949         * tests/test-hmac-sha1.c: New file.
15950
15951         * modules/hmac-sha1-tests: New file.
15952
15953         * modules/hmac-sha1: New file.
15954
15955 2005-10-12  Simon Josefsson  <jas@extundo.com>
15956
15957         * modules/gc-sha1: New file.
15958
15959 2005-10-12  Simon Josefsson  <jas@extundo.com>
15960
15961         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
15962
15963         * tests/test-gc-pbkdf2-sha1.c: New file.
15964
15965 2005-10-12  Simon Josefsson  <jas@extundo.com>
15966
15967         * modules/gc-md5, modules/gc-hmac-md5: New files.
15968
15969         * modules/gc (Files): Remove md5, memxor and hmac files.
15970
15971 2005-10-12  Simon Josefsson  <jas@extundo.com>
15972
15973         * m4/gc-pbkdf2-sha1.m4: New file.
15974
15975         * m4/gc-hmac-sha1.m4: New file.
15976
15977         * m4/gc-sha1: New file.
15978
15979         * m4/hmac-sha1.m4: New file.
15980
15981 2005-10-12  Simon Josefsson  <jas@extundo.com>
15982
15983         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
15984
15985         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
15986
15987 2005-10-12  Simon Josefsson  <jas@extundo.com>
15988
15989         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
15990         suggested by Bruno Haible <bruno@clisp.org>.
15991
15992 2005-10-12  Simon Josefsson  <jas@extundo.com>
15993
15994         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
15995
15996 2005-10-12  Simon Josefsson  <jas@extundo.com>
15997
15998         * lib/gc-pbkdf2-sha1.c: New file.
15999
16000         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
16001
16002 2005-10-12  Simon Josefsson  <jas@extundo.com>
16003
16004         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
16005
16006         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
16007
16008 2005-10-12  Simon Josefsson  <jas@extundo.com>
16009
16010         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
16011         GC_USE_HMAC_MD5, respectively.
16012
16013         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
16014         (gc_md5): Fix typo.
16015
16016         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
16017
16018         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
16019
16020         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
16021
16022 2005-10-12  Bruno Haible  <bruno@clisp.org>
16023
16024         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
16025         Reported by Stepan Kasal <kasal@ucw.cz>.
16026
16027 2005-10-11  Simon Josefsson  <jas@extundo.com>
16028
16029         * tests/test-crc.c: New file.
16030
16031         * modules/crc, modules/crc-tests: New files.
16032
16033 2005-10-11  Simon Josefsson  <jas@extundo.com>
16034
16035         * m4/crc.m4: New file.
16036
16037 2005-10-11  Simon Josefsson  <jas@extundo.com>
16038
16039         * lib/gc.h: Add gc_hash and gc_hash_buffer.
16040
16041         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
16042
16043         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
16044
16045 2005-10-11  Simon Josefsson  <jas@extundo.com>
16046
16047         * lib/crc.h, lib/crc.c: New files.
16048
16049         * lib/gc.h (gc_hash_buffer): Add doc.
16050
16051 2005-10-11  Bruno Haible  <bruno@clisp.org>
16052
16053         * modules/c-strcasestr: New file.
16054         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
16055
16056 2005-10-11  Bruno Haible  <bruno@clisp.org>
16057
16058         * modules/c-strcase: New file.
16059         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
16060
16061 2005-10-11  Bruno Haible  <bruno@clisp.org>
16062
16063         * lib/strcasecmp.c: Include limits.h.
16064         (strcasecmp): Avoid integer overflow on exotic platforms.
16065         * lib/strncasecmp.c: Include limits.h.
16066         (strncasecmp): Avoid integer overflow on exotic platforms.
16067         Reported by Paul Eggert.
16068
16069 2005-10-11  Bruno Haible  <bruno@clisp.org>
16070
16071         * lib/c-strcasestr.h: New file, from GNU gettext.
16072         * lib/c-strcasestr.c: New file, from GNU gettext.
16073
16074 2005-10-11  Bruno Haible  <bruno@clisp.org>
16075
16076         * lib/c-strcase.h: New file, from GNU gettext.
16077         * lib/c-strcasecmp.c: New file, from GNU gettext.
16078         * lib/c-strncasecmp.c: New file, from GNU gettext.
16079
16080 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
16081
16082         * modules/mempcpy (License): GPL -> LGPL.
16083         * modules/strchrnul (License): Likewise.
16084         * modules/sysexits (License): Likewise.
16085
16086 2005-10-08  Simon Josefsson  <jas@extundo.com>
16087
16088         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
16089
16090 2005-10-07  Simon Josefsson  <jas@extundo.com>
16091
16092         * m4/memxor.m4: Remove gl_C_RESTRICT call.
16093
16094 2005-10-06  Simon Josefsson  <jas@extundo.com>
16095
16096         * tests/test-hmac-md5.c: New file.
16097
16098         * modules/hmac-md5-tests: New file.
16099
16100         * modules/hmac-md5: New file.
16101
16102 2005-10-06  Simon Josefsson  <jas@extundo.com>
16103
16104         * m4/hmac-md5.m4: New file.
16105
16106         * m4/memxor.m4: Require gl_C_RESTRICT.
16107
16108 2005-10-06  Simon Josefsson  <jas@extundo.com>
16109
16110         * lib/memxor.c (memxor): Avoid casts and warnings.
16111
16112 2005-10-06  Simon Josefsson  <jas@extundo.com>
16113
16114         * lib/hmac-md5.c: New file.
16115
16116         * lib/hmac.h: New file.
16117
16118 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
16119
16120         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
16121         promotes to int, not unsigned int, to catch the AIX 5.3
16122         compiler bug.
16123
16124 2005-10-05  Simon Josefsson  <jas@extundo.com>
16125
16126         * modules/memxor: New file.
16127
16128         * modules/iconv (Files): Move config.rpath to havelib, it is used
16129         there.
16130
16131         * modules/havelib (Files): Add config.rpath.
16132
16133 2005-10-05  Simon Josefsson  <jas@extundo.com>
16134
16135         * m4/memxor.m4: New file.
16136
16137 2005-10-05  Simon Josefsson  <jas@extundo.com>
16138
16139         * lib/memxor.c (memxor): Fix compiler error.
16140
16141         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
16142         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
16143
16144         * lib/memxor.h, lib/memxor.c: New files.
16145
16146         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
16147         we assume all systems have it, suggested by Jim Meyering
16148         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
16149         any systems lack sys/socket.h; mingw32 is known to lack it, but we
16150         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
16151         same reasons.
16152
16153 2005-10-05  Simon Josefsson  <jas@extundo.com>
16154
16155         * config/srclist.txt: Add glibc bug 1423 for md5.h.
16156
16157 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
16158
16159         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
16160         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
16161         needed, since the source code now assumes these .h files.
16162
16163 2005-10-05  Derek Price  <derek@ximbiot.com>
16164
16165         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
16166
16167 2005-10-05  Bruno Haible  <bruno@clisp.org>
16168
16169         * modules/stdint (License): Change to LGPL.
16170
16171 2005-10-04  Simon Josefsson  <jas@extundo.com>
16172
16173         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
16174         D. Baushke" <mdb@gnu.org>.
16175
16176 2005-10-04  Bruno Haible  <bruno@clisp.org>
16177
16178         * lib/verify.h (verify_true): Provide alternative definition for C++.
16179
16180 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
16181
16182         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
16183         (SSIZE_MAX): New macro, if not already defined.
16184         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
16185         than 2 GiB.
16186
16187 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
16188
16189         Sync from coreutils.
16190         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
16191         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
16192         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
16193         ULLONG_MAX doesn't work with 2.7.2.1.
16194
16195 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
16196
16197         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
16198         From Ben Pfaff.
16199
16200         * modules/exclude (Depends-on): Depend on verify.
16201         * modules/strtoimax (Depends-on): Likewise.
16202         * modules/utimecmp (Depends-on): Likewise.
16203
16204 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
16205
16206         * lib/exclude.c: Include verify.h.
16207         (verify): Remove.  All callers changed to use verify.h's version.
16208         * lib/strtoimax.c: Likewise.
16209         * lib/utimecmp.c: Likewis.e
16210
16211         Sync from coreutils.
16212         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
16213         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
16214         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
16215         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
16216         bother returning ENOSYS if settimeofday or stime fails; just let
16217         them return whatever errno they want to return.
16218         * lib/utimens.c: Include unistd.h, for dup2.
16219         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
16220         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
16221
16222 2005-10-02  Jim Meyering  <jim@meyering.net>
16223
16224         Sync from coreutils.
16225         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
16226         from glibc-2.2.5 that fails for read-only files.
16227
16228 2005-10-02  Jim Meyering  <jim@meyering.net>
16229
16230         Sync from coreutils.
16231         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
16232         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
16233         `#if HAVE_CONFIG_H'.
16234         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
16235         Remove AT_FDCWD test.
16236         Do not consume the fd unless successful.
16237         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
16238         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
16239         block, so that we don't even try to compile it if settimeofday is
16240         available.  This works around a compilation failure on OSF1 V5.1,
16241         due to stime requiring a `long int*' while tv_sec is `int'.
16242
16243 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
16244
16245         Sync from coreutils.
16246         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
16247         against `yes', rather than just testing for nonempty.
16248
16249 2005-10-01  Simon Josefsson  <jas@extundo.com>
16250
16251         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
16252         and Darwin.
16253
16254         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
16255         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
16256         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
16257         freeaddrinfo and gai_strerror are declared by the POSIX headers.
16258         Check if struct addrinfo is declared.
16259
16260 2005-10-01  Simon Josefsson  <jas@extundo.com>
16261
16262         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
16263         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
16264         AI_* and EAI_* definitions.  Protect function declarations.
16265
16266 2005-10-01  Jim Meyering  <jim@meyering.net>
16267
16268         Sync from coreutils.
16269
16270         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
16271         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
16272         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
16273         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
16274         in the inet and nsl libraries.  Required on Solaris 5.7.
16275
16276 2005-10-01  Jim Meyering  <jim@meyering.net>
16277
16278         Sync from coreutils.
16279         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
16280         in the inet and nsl libraries.  Required on Solaris 5.7.
16281
16282 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
16283
16284         * lib/getdelim.c (getdelim): Remove unused variables.
16285
16286 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
16287
16288         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
16289         so that the code works even with ancient cpp.  Portability problem
16290         with GCC 2.7.2.1 reported by Thomas M.Ott.
16291
16292 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
16293
16294         * modules/regex (Depends-on): Add strcase.
16295
16296         * modules/gethostname (Licence): Change from GPL to LGPL, since
16297         gethostname.c is a trivial implementation of a standard library
16298         function.
16299         * modules/poll (License): Change from GPL to LGPL, since it's
16300         derived from LGPL code.
16301
16302 2005-09-27  Jim Meyering  <jim@meyering.net>
16303
16304         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
16305         HAVE_CONFIG_H.
16306
16307         * lib/intprops.h (signed_type_or_expr__): Define.
16308         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
16309         for unsigned types.
16310
16311 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
16312
16313         * lib/verify.h (verify_expr): Remove, replacing with:
16314         (verify_true): New macro that returns true instead of void.
16315         (verify_type__): Remove.
16316         (verify): Use verify_true rather than verify_type__.
16317
16318 2005-09-26  Bruno Haible  <bruno@clisp.org>
16319
16320         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
16321         is necessary.
16322         (lib_SOURCES): Remove mbchar.c.
16323         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
16324         (Files): Add m4/mbrtowc.m4.
16325         * modules/mbiter: Likewise.
16326         * modules/mbuiter: Likewise.
16327
16328 2005-09-26  Bruno Haible  <bruno@clisp.org>
16329
16330         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
16331         compile mbchar.c if they are not both present.
16332         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
16333         * m4/mbiter.m4 (gl_MBITER): Likewise.
16334         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
16335         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
16336         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
16337
16338 2005-09-25  Jim Meyering  <jim@meyering.net>
16339
16340         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
16341         also uses socklen_t.
16342
16343 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
16344
16345         * lib/utimens.c (ENOSYS): Define if not already defined.
16346         (futimens): Support having a null PATH if the file descriptor
16347         is nonnegative.
16348
16349         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
16350         Remove.
16351         (__attribute): Define to empty unless GCC 3.1 or later.
16352         This works around a core dump on OpenBSD 3.4, which has GCC
16353         2.95.3, which dumps core when given __attribute__(()).  It also
16354         simplifies other tests, since we really don't want to bother with
16355         worrying about which ancient version of GCC supported what.
16356         Original problem reported by Yoann Vandoorselaere, with part of
16357         the fix suggested by Derek Price.
16358
16359 2005-09-24  Jim Meyering  <jim@meyering.net>
16360
16361         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
16362         so we can once again use a positive bitfield width of 1 -- now we
16363         don't have to explain why we were using a bitfield width of 2.
16364
16365 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
16366
16367         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
16368         and similarly for the other external symbols.  Problem reported
16369         by James Gallager.
16370
16371         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
16372         bug reported by Jim Meyering.
16373
16374         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
16375         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
16376         not needed, since socklen is a prerequisite module.
16377
16378 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
16379
16380         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
16381         Problem reported by Eric Blake.
16382         (getaddrinfo): Initialize se so that it's not garbage.
16383         Redo internal storage allocation so that it doesn't make unportable
16384         assumptions about alignment.
16385         Fix a memory leak.
16386
16387         * lib/utimens.c (futimens): Use futimesat if available.
16388         Prefer it to futimes since it doesn't have the futimes bug.
16389
16390         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
16391         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
16392         Instead, declare a function that returns a pointer to an array,
16393         and use verify_type__ to declare the size of the array.
16394         Problem and germ of a solution reported by Bruno Haible.
16395         (verify_type__): Use 2, not 1, for bitfield size, to avoid
16396         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
16397
16398 2005-09-23  Jim Meyering  <jim@meyering.net>
16399
16400         Sync from coreutils.
16401         Correct build failure (socklen_t not defined) on at least
16402         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
16403         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
16404
16405 2005-09-23  Jim Meyering  <jim@meyering.net>
16406
16407         * modules/getaddrinfo (Depends-on): Add socklen.
16408
16409 2005-09-23  Bruno Haible  <bruno@clisp.org>
16410
16411         * tests/test-verify.c: New file.
16412
16413 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
16414
16415         Sync from coreutils.
16416
16417         * modules/argmatch (Depends-on): Add verify.
16418         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
16419         unistd-safer.
16420         * modules/save-cwd (Depends-on): Likewise.
16421
16422         * modules/openat (Files): Add lib/openat-die.c.
16423         (Depends-on): Remove error, exitfail.
16424         Add dirname.
16425
16426         * modules/verify: New file.
16427         * MODULES.html.sh (Diagnostics <assert.h>): New section,
16428         with "verify" module.
16429
16430 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
16431
16432         Sync from coreutils.
16433
16434         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
16435         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
16436         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
16437         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
16438         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
16439         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
16440         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
16441         Don't bother checking for string.h, stdlib.h, unistd.h.
16442         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
16443         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
16444         module's job.
16445         * m4/jm-macros.m4 (gl_MACROS): Likewise.
16446         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
16447
16448         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
16449         (gl_GETDATE): Use it.
16450
16451         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
16452
16453 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
16454
16455         Sync from coreutils.
16456
16457         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
16458         stat-time.h.
16459         * lib/argmatch.h: Include verify.h
16460         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
16461         (ARGMATCH_ASSERT): Remove; unused.
16462         * lib/canonicalize.c: Assume STDC_HEADERS.
16463         * lib/exclude.c: Include "strcase.h".
16464         * lib/regex_internal.h [!defined _LIBC]: Likewise.
16465         * lib/getusershell.c: Include stdio--.h rather than stdio.h
16466         and stdio-safer.h.
16467         (getusershell): Call fopen, not fopen_safer.
16468         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
16469         Do not include unistd-safer.h.
16470         (save_cwd): Don't call fd_safer; no longer needed
16471         now that we include fcntl--.h.
16472
16473         * lib/getdate.y (relative_time): New type.
16474         (RELATIVE_TIME_0): New constant.
16475         (parser_control): Use relative_time instead of doing it ourselves.
16476         (%union): Add new relative_time rel member.
16477         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
16478         Now typeless.
16479         (relunit, relunit_snumber): Now of type rel.
16480         (zone, rel, relunit, get_date): Adjust to above changes.
16481
16482         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
16483         Do not include unistd-safer.h.
16484         (getloadavg): Don't call fd_safer; no longer needed
16485         now that we include fcntl--.h.
16486
16487         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
16488         (make_dir_parents): Treat ENOSYS like EEXIST.
16489
16490         Improve quality of diagnostics on restore_cwd failure.
16491         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
16492         (make_dir_parents): Last arg is now int * (for errno), not bool *.
16493         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
16494         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
16495         each time through the loop.  Do not diagnose restore_cwd failure;
16496         that is the caller's job (and perhaps the caller does not care).
16497
16498         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
16499         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
16500         If the file already exists but is not a directory, don't bother
16501         to try to make its parents.
16502         Close potential file descriptor leak if we can't chdir("/") (!).
16503         Don't always return true if chdir($PWD) fails; return true only
16504         if the requested action was done successfully (except for the
16505         chdir($PWD)).
16506         Don't log final directory unless we actually made it.
16507         Refactor to avoid duplicate code to fix up permissions.
16508         Don't attempt to fix up parent permissions if chdir($PWD) fails.
16509
16510         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
16511         to make it a bit faster and (I hope) clearer.
16512         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
16513         Fix bug in formats like %2N.
16514
16515         * lib/verify.h: New file.
16516
16517 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
16518
16519         Sync from coreutils.
16520         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
16521
16522 2005-09-22  Jim Meyering  <jim@meyering.net>
16523
16524         Sync from coreutils.
16525
16526         * m4/lstat.m4 (gl_FUNC_LSTAT):
16527         Use AC_LIBSOURCES to require lstat.c and lstat.h.
16528         Remove obsolete comment.
16529         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
16530         * m4/xstrtod.m4: Likewise.
16531
16532         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
16533
16534 2005-09-22  Jim Meyering  <jim@meyering.net>
16535
16536         Sync from coreutils.
16537
16538         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
16539
16540         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
16541         the .tm_year member, since otherwise gcc-4.0 would now warn about
16542         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
16543
16544         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
16545         order to avoid an unsuppressible warning from gcc on 64-bit systems.
16546
16547         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
16548         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
16549         when run in a time zone for which daylight savings time is in effect
16550         for the starting date.
16551
16552         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
16553         stop us from restricting permissions of just-created absolute-named
16554         directories.
16555         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
16556         to restore initial working directory.
16557         * lib/mkdir-p.c (make_dir_parents): New parameter:
16558         different_working_dir, to tell caller if/when we change the working
16559         directory and are unable to return to the initial one.
16560         * lib/mkdir-p.h (make_dir_parents): Update prototype.
16561         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
16562         `return false'.  This fixes a bug introduced on 2004-07-30.
16563
16564         * lib/openat.c (fdopendir): Be sure to close the supplied
16565         file descriptor before returning.  This makes our replacement
16566         implementation a little closer to Solaris's, where fdopendir
16567         ties the file descriptor to the returned DIR* pointer.
16568         * lib/openat.c (unlinkat): New function.
16569         * lib/openat.h (unlinkat): Add prototype.
16570         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
16571         (openat_restore_fail): Rename from openat_restore_die.
16572         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
16573
16574         Provide an alternative to exiting immediately upon save_cwd or
16575         restore_cwd failure.  Now, an application can arrange e.g.,
16576         to perform a longjump in that case.
16577         * lib/openat.c: Include dirname.h.
16578         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
16579         (rpl_openat, fdopendir, fstatat): Call openat_save_die
16580         and openat_restore_die rather than calling error directly.
16581         Don't include "error.h" or "exitfail.h"; they're no longer needed.
16582
16583         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
16584         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
16585         define.
16586
16587         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
16588         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
16589                             int utc, int nanoseconds);
16590         Background:
16591         date should not have to allocate a megabyte of virtual memory to
16592         handle a format argument like +%1048575T.  When implemented with
16593         strftime, it must allocate such a buffer, use strftime to fill it
16594         in, print it, then free it.
16595         With fprintftime, it simply prints everything and exits.
16596         With no need for memory allocation, that's one fewer way to fail.
16597         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
16598         optional field width, not before, so we accept %9:z, not %:9z.
16599         (my_strftime): Be sure to use L_('x') for literals.
16600
16601         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
16602         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
16603         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
16604         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
16605         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
16606         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
16607         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
16608         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
16609         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
16610         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
16611         * lib/xgethostname.c, lib/xreadlink.c:
16612         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
16613
16614         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
16615         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
16616         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
16617         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
16618         and don't include <sys/file.h>).
16619
16620 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
16621
16622         Sync from coreutils.
16623
16624         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
16625         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
16626         [!LDAV_DONE]: Avoid unused variable warning.
16627
16628 2005-09-21  Bruno Haible  <bruno@clisp.org>
16629
16630         * lib/unicodeio.h (unicode_to_mb): New declaration.
16631
16632 2005-09-20  Derek Price  <derek@ximbiot.com>
16633
16634         * lib/getaddrinfo.c: Don't include <netdb.h> included from
16635         getaddrinfo.h.
16636
16637 2005-09-20  Bruno Haible  <bruno@clisp.org>
16638
16639         * gnulib-tool: Remove trailing slashes from the values specified for
16640         --source-base, --m4-base, --tests-base, --aux-dir.
16641         Suggested by Simon Josefsson <jas@extundo.com>.
16642
16643 2005-09-20  Bruno Haible  <bruno@clisp.org>
16644
16645         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
16646         func_modules_to_filelist, func_import, func_create_testdir): Make all
16647         sorting results locale-independent, so that gnulib-cache.m4 doesn't
16648         change when gnulib-tool is invoked in a different locale.
16649
16650 2005-09-19  Simon Josefsson  <jas@extundo.com>
16651
16652         * m4/socklen.m4: Fix typo.
16653
16654 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16655
16656         Use a consistent style for including <config.h>.
16657         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
16658         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
16659         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
16660         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
16661         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
16662         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
16663         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
16664         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
16665         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
16666         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
16667         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
16668         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
16669         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
16670         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
16671         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
16672         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
16673         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
16674         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
16675         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
16676         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
16677         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
16678         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
16679         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
16680         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
16681         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
16682         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
16683         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
16684         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
16685         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
16686         lib/xstrtoumax.c, lib/yesno.c:
16687         Standardize inclusion of config.h.
16688         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
16689         lib/inttostr.h:  Removed inclusion of config.h from header files.
16690         * lib/inttostr.c:  Adjusted in-tree users.
16691         * lib/timespec.h: Remove superfluous warning to include config.h.
16692         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
16693         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
16694         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
16695         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
16696         config.h with HAVE_CONFIG_H.
16697
16698 2005-09-19  Jim Meyering  <jim@meyering.net>
16699
16700         * modules/pathmax (License): Change to LGPL.
16701
16702 2005-09-19  Derek Price  <derek@ximbiot.com>
16703
16704         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
16705
16706 2005-09-19  Bruno Haible  <bruno@clisp.org>
16707
16708         * gnulib-tool (import): Provide default for --tests-base.
16709
16710 2005-09-19  Bruno Haible  <bruno@clisp.org>
16711
16712         * doc/quote.texi: New file, extracted from gnulib.texi.
16713         * doc/ctime.texi: New file, extracted from gnulib.texi.
16714         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
16715         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
16716         * doc/gnulib.texi: Include them.
16717
16718 2005-09-18  Bruno Haible  <bruno@clisp.org>
16719
16720         Portability fix.
16721         * gnulib-tool (func_readlink): New function.
16722         (func_ln_if_changed): Use it.
16723
16724 2005-09-18  Bruno Haible  <bruno@clisp.org>
16725
16726         * gnulib-tool: Support --with-tests also with --import.
16727         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
16728         (func_import): Use variables $testsbase and $inctests. Emit a
16729         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
16730         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
16731         SUBDIRS += $testsdir.
16732         (func_create_testdir): Update.
16733
16734 2005-09-18  Bruno Haible  <bruno@clisp.org>
16735
16736         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
16737         instead of $dry_run.
16738         (func_cp_if_changed, func_mv_if_changed): Remove functions.
16739         (func_ln_if_changed): Don't handle dry-run here.
16740         (func_import): In dry-run mode, detect more precisely which actions
16741         would be performed, and don't use "...ing" verbs.
16742
16743 2005-09-18  Bruno Haible  <bruno@clisp.org>
16744
16745         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
16746         (func_import): Use join on two temporary files instead of three nested
16747         loops, in order to determine which files are new or old.
16748
16749 2005-09-18  Bruno Haible  <bruno@clisp.org>
16750
16751         * gnulib-tool (func_import): Comment out code that spits out the
16752         new files with --dry-run.
16753
16754 2005-09-18  Bruno Haible  <bruno@clisp.org>
16755
16756         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
16757
16758 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
16759
16760         * lib/stat-time.h: New file.
16761         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
16762         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
16763         in a different way.
16764         (timespec_cmp): New function.
16765         * lib/utimecmp.c: Include stat-time.h.
16766         (SYSCALL_RESOLUTION): Depend on whether various struct stat
16767         members exist, not on the obsolescent ST_MTIM_NSEC.
16768         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
16769
16770 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
16771
16772         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
16773
16774 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
16775
16776         * MODULES.html.sh (File system functions): Add stat-time.
16777         * modules/stat-time: New file.
16778         * modules/timespec (Files): Remove m4/st_mtim.m4; this
16779         is now done in a different way, by the stat-time module.
16780         * modules/utimecmp (Depends-on): Add stat-time.
16781
16782 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
16783
16784         * m4/st_mtim.m4: Remove.  Superseded by...
16785         * m4/stat-time.m4: New file.
16786         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
16787         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
16788
16789 2005-09-15  Derek Price  <derek@ximbiot.com>
16790
16791         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
16792
16793 2005-09-15  Derek Price  <derek@ximbiot.com>
16794
16795         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
16796         * lib/regex_internal.c: Ditto, using this...
16797         (__GNUC_PREREQ): ...new macro.
16798         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
16799         using...
16800         (__GNUC_PREREQ): ...this new macro.
16801
16802         * lib/strstr.h: Include string.h. Define strstr as a macro here.
16803
16804 2005-09-15  Derek Price  <derek@ximbiot.com>
16805             Paul Eggert  <eggert@cs.ucla.edu>
16806
16807         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
16808         changes, consolidating in...
16809         * lib/regex_internal.h: ...this file.
16810
16811 2005-09-13  Jim Meyering  <jim@meyering.net>
16812
16813         * lib/canon-host.c: Filter through gnu indent and reword comments
16814         slightly.
16815         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
16816
16817 2005-09-13  Derek Price  <derek@ximbiot.com>
16818
16819         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
16820         failure.
16821         Reported by Jim Meyering  <jim@meyering.net>.
16822
16823 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
16824
16825         * lib/base64.c: Typo.
16826         (base64_encode): Put b64str in initialized data section.
16827
16828 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
16829
16830         Merge glibc and coreutils changes into gnulib, plus a few
16831         extra fixes.
16832         * lib/md5.c: Use #error rather than a string.
16833         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
16834         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
16835         (__attribute__): Define to empty for non recent-GCC.
16836         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
16837         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
16838         Renamed from their non-__ counterparts, with new macros replacing
16839         them if not _LIBC.  Add __THROW attribute.
16840         (rol): Remove.
16841         (struct md5_ctx): Align buffer if using GCC.
16842         * lib/sha1.h (struct sha1_ctx): Likewise.
16843         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
16844         The old name was backwards.
16845         (NOTSWAP): Remove; not used.
16846         (rol): New macro, moved here from md5.h.
16847         (sha1_process_block): Remove a FIXME that doesn't make sense.
16848
16849 2005-09-12  Derek Price  <derek@ximbiot.com>
16850
16851         Return usable errors from canon-host.
16852         * lib/canon-host.h: New file.
16853         * lib/canon-host.c (canon_host): Wrap...
16854         (canon_host_r): ...this new function, which now relies exclusively on
16855         getaddrinfo.
16856         (ch_strerror): New function.
16857         (last_cherror): New global.
16858         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
16859         interface.
16860         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
16861         void *.
16862         (freeaddrinfo): Free ai->ai_canonname when set.
16863
16864 2005-09-12  Derek Price  <derek@ximbiot.com>
16865
16866         Make canon-host require getaddrinfo.
16867         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
16868         AC_LIBSOURCE canon-host.h.  Call...
16869         (gl_PREREQ_CANON_HOST): ...this new function, which requires
16870         gl_GETADDRINFO.
16871         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
16872
16873 2005-09-12  Derek Price  <derek@ximbiot.com>
16874
16875         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
16876         LGPL.
16877         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
16878
16879 2005-09-12  Derek Price  <derek@ximbiot.com>
16880
16881         * lib/gai_strerror.c: Include config.h when available.  Include
16882         getaddrinfo.h before other headers to test interface.
16883         Reported by Larry Jones <lawrence.jones@ugs.com>.
16884
16885 2005-09-12  Derek Price  <derek@ximbiot.com>
16886             Paul Eggert  <eggert@cs.ucla.edu>
16887
16888         * modules/glob (Files): Add glob-libc.h.
16889
16890 2005-09-12  Derek Price  <derek@ximbiot.com>
16891             Paul Eggert  <eggert@cs.ucla.edu>
16892
16893         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
16894         glob_.h, glob-libc.h.
16895         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
16896
16897 2005-09-12  Derek Price  <derek@ximbiot.com>
16898             Paul Eggert  <eggert@cs.ucla.edu>
16899
16900         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
16901         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
16902         protecting things that should be done only in gnulib contexts.
16903         * lib/glob_.h: New file, containing only the glob things needed for
16904         gnulib.
16905         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
16906         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
16907         (glob, globfree, glob_pattern_p): Now defined simply in terms of
16908         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
16909         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
16910         and to respect the namespace rules better.
16911
16912 2005-09-08  Simon Josefsson  <jas@extundo.com>
16913
16914         * modules/socklen: New file.
16915
16916 2005-09-08  Simon Josefsson  <jas@extundo.com>
16917
16918         * m4/socklen.m4: New file.
16919
16920 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
16921
16922         * modules/utimens (Files): Add m4/utimbuf.m4, since
16923         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
16924         Reported by Sergey Poznyakoff.
16925
16926 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
16927
16928         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
16929         definitions, since that's the preferred style in glibc.
16930         Fix a minor spacing issue, and update copyright notice to match
16931         glibc's.
16932
16933 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
16934
16935         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
16936
16937 2005-09-06  Simon Josefsson  <jas@extundo.com>
16938
16939         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
16940         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
16941
16942 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
16943
16944         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
16945         warning.
16946
16947 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
16948
16949         * config/srclist.txt: Add glibc bug 1302.
16950
16951 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
16952
16953         Change bitset word type from unsigned int to unsigned long int,
16954         as this has better performance on typical 64-bit hosts.
16955         Port bitset code to hosts with unusual word sizes.
16956         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
16957         (build_collating_symbol):
16958         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
16959         argument is a bitset.  This is merely a style issue, but it makes
16960         it clearer that an entire array is expected.
16961         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
16962         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
16963         Port to the case where bitset_word is not the same as unsigned int.
16964         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
16965         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
16966         Likewise.
16967         * lib/regexec.c (check_dst_limits_calc_pos_1,
16968         check_subexp_matching_top):
16969         (build_trtable, group_nodes_into_DFAstates):
16970         Likewise.
16971         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
16972         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
16973         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
16974         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
16975         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
16976         * lib/regcomp.c (optimize_subexps, lower_subexp):
16977         Work even if bitset_word has holes in its bitwise representation.
16978         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
16979         * lib/regexec.c (check_dst_limits_calc_pos_1,
16980         check_subexp_matching_top):
16981         Likewise.
16982         * lib/regex_internal.c (re_string_reconstruct):
16983         Don't assume UCHAR_MAX == 255.
16984         * lib/regex_internal.h (bitset_set_all): Likewise.
16985         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
16986         All uses changed.
16987         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
16988         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
16989         All uses changed.
16990         (BITSET_WORD_MAX): New macro.
16991         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
16992         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
16993         (bitset_empty, bitset_copy):
16994         Prefer sizeof (bitset) to multiplying it out ourselves.
16995         (bitset_not_merge): Remove; unused.
16996         (bitset_contain): Return bool, not unsigned int with one bit on.
16997         All callers changed.
16998         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
16999         alignment than re_node_set; do this by defining a new internal
17000         type struct dests_alloc and using it to allocate memory.
17001
17002 2005-09-05  Bruno Haible  <bruno@clisp.org>
17003
17004         * gnulib-tool (func_import): Fix comparison in handling of symbolic
17005         links.
17006
17007 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
17008
17009         * modules/size_max (Makefile.am): Add size_max.h
17010
17011 2005-09-04  Derek Price  <derek@ximbiot.com>
17012
17013         * gnulib-tool (func_import): Fix reversed $symbolic logic.
17014
17015 2005-09-03  Simon Josefsson  <jas@extundo.com>
17016
17017         * gnulib-tool: Fix typo.
17018
17019 2005-09-03  Simon Josefsson  <jas@extundo.com>
17020
17021         * config/srclist.txt: Add glibc bug 1293.
17022
17023 2005-09-03  Derek Price  <derek@ximbiot.com>
17024
17025         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
17026         From Larry Jones <lawrence.jones@ugs.com>.
17027
17028 2005-09-02  Simon Josefsson  <jas@extundo.com>
17029
17030         * modules/socklen: New file.
17031
17032 2005-09-02  Simon Josefsson  <jas@extundo.com>
17033
17034         * modules/havelib: New module.
17035
17036         * modules/gettext, modules/iconv, modules/lock, modules/readline:
17037         Use havelib.
17038
17039 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
17040
17041         Check for arithmetic overflow when calculating sizes, to prevent
17042         some buffer-overflow issues.  These patches are conservative, in the
17043         sense that when I couldn't determine whether an overflow was possible,
17044         I inserted a run-time check.
17045         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
17046         macros.
17047         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
17048         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
17049         (re_xnrealloc, re_x2nrealloc): New inline functions.
17050         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
17051         parse_bracket_exp):
17052         (build_equiv_class, build_charclass): Check for arithmetic overflow
17053         in size expression calculations.
17054         * lib/regex_internal.c (re_string_realloc_buffers):
17055         (build_wcs_upper_buffer, re_node_set_add_intersect):
17056         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
17057         (re_dfa_add_node, register_state): Likewise.
17058         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
17059         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
17060         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
17061         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
17062
17063 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
17064
17065         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
17066         m4/ulonglong.m4.  Problem reported by Martin Lambers.
17067
17068 2005-09-02  Bruno Haible  <bruno@clisp.org>
17069
17070         Support for lib vs. lib64 distinction on biarch platforms.
17071         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
17072         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
17073         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
17074
17075 2005-09-02  Bruno Haible  <bruno@clisp.org>
17076
17077         * gnulib-tool (import): In the other first-use case, provide defaults
17078         as well.
17079
17080 2005-09-02  Bruno Haible  <bruno@clisp.org>
17081
17082         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
17083         patches not yet found in the latest gettext release.
17084
17085 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
17086
17087         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
17088         to avoid a collision with bits/local_lim.h in glibc.
17089         All uses changed.  Problem reported by Dmitry V. Levin in
17090         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
17091
17092         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
17093         bugs in int versus size_t comparisons.
17094         (re_string_context_at): Fix bug where the code assumed that
17095         Idx is signed.
17096
17097         Use bool where appropriate.
17098         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
17099         All callers changed.
17100         (calc_eclosure_iter): Likewise, for ROOT arg.
17101         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
17102         (build_charclass_op): Likewise, for NON_MATCH arg.
17103         * lib/regex_internal.c (re_string_allocate, re_string_construct):
17104         (re_string_construct_common): Likewise, for ICASE arg.
17105         * lib/regexec.c (re_search_2_stub, re_search_stub):
17106         Likewise, for RET_LEN arg.
17107         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
17108         (set_regs): Likewise, for FL_BACKTRACK arg.
17109         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
17110         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
17111         (calc_eclosure_iter, parse_bracket_exp):
17112         Use bool for internal variables that are booleans.
17113         * lib/regexec.c (re_search_internal, check_matching,
17114         proceed_next_node):
17115         (set_regs, build_sifted_states, sift_states_bkref):
17116         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
17117         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
17118         (find_collation_sequence_value):
17119         Likewise.
17120         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
17121         (re_node_set_compare):
17122         Return bool, not int. All callers changed.
17123         * lib/regexec.c (check_halt_node_context, check_dst_limits):
17124         (build_trtable, check_node_accept): Likewise.
17125         * lib/regex_internal.h: Include stdbool.h.
17126
17127         Fix bugs uncovered when converting to bool.
17128         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
17129         failure instead of charging ahead blindly.
17130         * lib/regex_internal.c (register_state): Likewise.
17131         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
17132         for freeing internal storage.
17133         (group_nodes_into_DFA_states): Use unsigned int, not int, for
17134         bitset pieces used as boolean, to avoid undefined behavior
17135         on hosts that do int overflow checking.
17136
17137 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
17138
17139         * config/srclist.txt: Add glibc bugs 1285-1287.
17140
17141 2005-09-01  Jim Meyering  <jim@meyering.net>
17142
17143         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
17144         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
17145         Require gl_STAT_MACROS, too.
17146
17147 2005-09-01  Bruno Haible  <bruno@clisp.org>
17148
17149         * gnulib-tool (import): In the first-use case, provide defaults.
17150
17151 2005-09-01  Bruno Haible  <bruno@clisp.org>
17152
17153         * gnulib-tool (func_import): Remove the .tmp files.
17154
17155 2005-09-01  Bruno Haible  <bruno@clisp.org>
17156
17157         * gnulib-tool (func_import): Fix handling of symbolic links.
17158
17159 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
17160
17161         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
17162         old glibc regex code mishandles strings longer than 2**31 bytes.
17163         This patch fixes this when the regex code is used in gnulib
17164         (i.e., outside glibc).
17165
17166         This patch should not affect the use of the regex code inside
17167         glibc.  No doubt this problem also needs to be handled for glibc
17168         as well, but the result will be an incompatible change to the
17169         glibc ABI, and the old ABI will have to be supported too.  That
17170         can be the the subject for another patch.
17171
17172         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
17173         governing whether the rest of this patch is active.  By default,
17174         the macro is disabled and the patch has no effect.
17175         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
17176         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
17177         (struct re_pattern_buffer, re_search, re_search_2, re_match):
17178         (re_match_2, re_set_registers): Use the new types.
17179         * lib/regex_internal.h (Idx, re_hashval_t): New types.
17180         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
17181         New macros.
17182         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
17183         (re_string_context_at, bin_tree_t, re_dfastate_t):
17184         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
17185         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
17186         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
17187         (re_string_char_size_at, re_string_wchar_at):
17188         (re_string_elem_size_at):
17189         Use the new types and macros to port to 64-bit hosts.
17190         Use unsigned types for internal values, so that the code
17191         mostly works even for arrays larger than SSIZE_MAX.
17192         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
17193         (search_duplicated_node, calc_eclosure_iter, fetch_number):
17194         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
17195         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
17196         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
17197         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
17198         (calc_inveclosure, parse_dup_op, build_range_exp):
17199         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
17200         (fetch_number, create_token_tree, mark_opt_subexp):
17201         Likewise.
17202         * lib/regex_internal.c (re_string_construct_common,
17203         create_ci_newstate):
17204         (create_cd_newstate, re_string_allocate, re_string_construct):
17205         (re_string_realloc_buffers, build_wcs_upper_buffer):
17206         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
17207         (re_string_reconstruct, re_string_peek_byte_case):
17208         (re_string_fetch_byte_case, re_string_context_at):
17209         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
17210         (re_node_set_init_copy, re_node_set_add_intersect):
17211         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
17212         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
17213         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
17214         (re_acquire_state, re_acquire_state_context, register_state):
17215         Likewise.
17216         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
17217         search_cur_bkref_entry):
17218         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
17219         (re_search_internal, re_search_2_stub, re_search_stub)
17220         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
17221         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
17222         (update_cur_sifted_state, check_dst_limits):
17223         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
17224         (check_subexp_limits, sift_states_bkref, merge_state_array):
17225         (check_subexp_matching_top, get_subexp, get_subexp_sub):
17226         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
17227         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
17228         (expand_bkref_cache, check_node_accept_bytes):
17229         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
17230         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
17231         (acquire_init_state_context, check_halt_node_context):
17232         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
17233         (sift_states_backward, clean_state_log_if_needed):
17234         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
17235         (find_recover_state, transit_state_sb, transit_state_mb):
17236         (transit_state_bkref, build_trtable, match_ctx_clean):
17237         Likewise.
17238         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
17239         to work around an assumption that REG_MISSING is negative.
17240
17241         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
17242         (seek_collating_symbol_entry) [defined _LIBC]:
17243         (lookup_collation_sequence_value) [defined _LIBC]:
17244         (build_range_exp, build_collating_symbol) [defined _LIBC]:
17245         Use prototypes rather than old-style function definitions.
17246         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
17247         (transit_state_sb) [0]:
17248         (find_collation_sequence_value) [defined _LIBC]: Likewise.
17249
17250         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
17251         rm_eo.
17252
17253         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
17254         (optimize_subexps, lower_subexp):
17255         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
17256         since the signed shift might overflow.  Use 1u<<31 instead.
17257         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
17258         Likewise.
17259         * lib/regexec.c (check_dst_limits_calc_pos_1,
17260         check_subexp_matching_top): Likewise.
17261
17262         * lib/regcomp.c (optimize_subexps, lower_subexp):
17263         Use CHAR_BIT rather than 8, for clarity.
17264         * lib/regexec.c (check_dst_limits_calc_pos_1):
17265         (check_subexp_matching_top): Likewise.
17266         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
17267         have to worry about portability issues when shifting it left.
17268         Remove no-longer-needed test for table_size > 0.
17269         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
17270         in a word, as the resulting behavior is undefined.
17271         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
17272         in one case, a <= should have been an <, and in another case the
17273         whole test was missing.
17274         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
17275         the standard name CHAR_BIT.
17276         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
17277         this is not true on one's complement and signed-magnitude hosts.
17278
17279         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
17280         next_last_offset.
17281         (struct re_dfa_t): Remove unused member states_alloc.
17282         * lib/regcomp.c (init_dfa): Don't initialize unused members.
17283
17284 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
17285
17286         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
17287         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
17288         and large-file glibc and in 32-bit large-file Solaris.
17289
17290 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
17291
17292         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
17293         lengths fit in regoff_t; this isn't true if regoff_t is the same
17294         width as size_t.
17295         * lib/regex.c (re_search_internal): 5th arg is LAST_START
17296         (= START + RANGE) instead of RANGE.  This avoids overflow
17297         problems when regoff_t is the same width as size_t.
17298         All callers changed.
17299         (re_search_2_stub): Check for overflow when adding the
17300         sizes of the two strings.
17301         (re_search_stub): Check for overflow when adding START
17302         to RANGE; if it occurs, substitute the extreme value.
17303
17304 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
17305
17306         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
17307
17308 2005-08-31  Jim Meyering  <jim@meyering.net>
17309
17310         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
17311         a pointer-to-const.
17312         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
17313         (register_state): Likewise.
17314         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
17315         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
17316         (group_nodes_into_DFAstates): Likewise.
17317
17318 2005-08-31  Jim Meyering  <jim@meyering.net>
17319
17320         * check-module: Add a FIXME comment.
17321
17322 2005-08-31  Eric Blake  <ebb9@byu.net>
17323
17324         * modules/unistd-safer (Files): Add unistd--.h.
17325         * modules/stdio-safer (Files): Add stdio--.h.
17326
17327 2005-08-31  Derek Price  <derek@ximbiot.com>
17328
17329         * lib/getdelim.c (getdelim): Return EOF on EOF.
17330         Reported by Larry Jones <lawrence.jones@ugs.com>.
17331
17332 2005-08-31  Bruno Haible  <bruno@clisp.org>
17333
17334         Avoid unnecessary diffs in the generated lib/Makefile.am.
17335         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
17336         the generated files.
17337         (func_import): Don't set cmd.
17338
17339 2005-08-31  Bruno Haible  <bruno@clisp.org>
17340
17341         * lib/strstr.c: Include <stddef.h>, for NULL.
17342         * lib/strcasestr.c: Likewise.
17343         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
17344
17345 2005-08-31  Bruno Haible  <bruno@clisp.org>
17346
17347         * gnulib-tool: New option --macro-prefix.
17348         (func_import): Use macro_prefix.
17349         (import): Handle option --macro-prefix.
17350
17351 2005-08-31  Bruno Haible  <bruno@clisp.org>
17352
17353         * gnulib-tool (import): Rename most ac_* variables to cached_*.
17354         Also use new variables cached_lgpl, cached_libtool.
17355
17356 2005-08-31  Bruno Haible  <bruno@clisp.org>
17357
17358         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
17359         always instantiating them.
17360
17361 2005-08-31  Bruno Haible  <bruno@clisp.org>
17362
17363         * gnulib-tool (func_import): Read the previous cached settings
17364         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
17365         earlier added by gnulib but are now dropped. Warn when a gnulib file
17366         overwrites a non-gnulib file.
17367
17368 2005-08-31  Bruno Haible  <bruno@clisp.org>
17369
17370         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
17371         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
17372         projects that don't keep autogenerated files in CVS. Put into
17373         actioncmd only the specified modules, not the transitive closure.
17374
17375 2005-08-31  Bruno Haible  <bruno@clisp.org>
17376
17377         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
17378         Create directories that shall be filled.
17379         (import): Don't look for gl_* macros in configure.ac. Recurse across
17380         all directories containing a gnulib-cache.m4 files, if meaningful.
17381
17382 2005-08-31  Bruno Haible  <bruno@clisp.org>
17383
17384         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
17385         (import): Set seen_libtool when we see gl_LIBTOOL.
17386
17387 2005-08-31  Bruno Haible  <bruno@clisp.org>
17388
17389         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
17390         declaration macro definitions from generated gnulib.m4.
17391
17392 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
17393
17394         * lib/iconvme.h: Add prototype for iconv_alloc.
17395
17396 2005-08-29  Simon Josefsson  <jas@extundo.com>
17397
17398         * lib/iconvme.c: Fix errno.
17399
17400 2005-08-29  Bruno Haible  <bruno@clisp.org>
17401
17402         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
17403         that it works when the directory contains spaces.
17404
17405 2005-08-29  Bruno Haible  <bruno@clisp.org>
17406
17407         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
17408
17409 2005-08-29  Bruno Haible  <bruno@clisp.org>
17410
17411         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
17412         Emit more advice.
17413
17414 2005-08-29  Bruno Haible  <bruno@clisp.org>
17415         and Stepan Kasal  <kasal@ucw.cz>
17416
17417         * check-module: If more parameters are given, check each of them
17418         separately; add more exceptions, as noted by Jim Meyering.
17419         (check_module): New procedure.
17420         (%exempt_header): Now contains all exceptions.
17421
17422 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
17423
17424         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
17425
17426 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
17427
17428         * lib/iconvme.c: Split iconv_string into iconv_alloc.
17429
17430 2005-08-28  Bruno Haible  <bruno@clisp.org>
17431
17432         * m4/gnulib-tool.m4: New file.
17433
17434 2005-08-27  Jim Meyering  <jim@meyering.net>
17435
17436         * modules/unistd-safer (Files): Add pipe-safer.c.
17437         * modules/fcntl-safer (Files): Add creat-safer.c.
17438
17439 2005-08-27  Jim Meyering  <jim@meyering.net>
17440
17441         * m4/stdlib-safer.m4: New file.  From coreutils.
17442         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
17443         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
17444         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
17445         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
17446         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
17447
17448 2005-08-27  Jim Meyering  <jim@meyering.net>
17449
17450         * lib/fopen-safer.c: Merge minor changes from coreutils.
17451         * lib/dup-safer.c: Likewise.
17452         * lib/fd-safer.c: Likewise.
17453
17454         Merge from coreutils.
17455         * lib/stdio--.h: New file.
17456         * lib/stdlib--.h: New file.
17457         * lib/mkstemp-safer.c: New file.
17458
17459         GNU tar needs these.
17460         * lib/pipe-safer.c: New file.
17461         * lib/creat-safer.c: New file.
17462         * lib/fcntl--.h (creat): Define to creat_safer.
17463         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
17464         * lib/unistd--.h (pipe): Define to pipe_safer.
17465         * lib/unistd-safer.h: Declare pipe_safer.
17466
17467 2005-08-26  Simon Josefsson  <jas@extundo.com>
17468
17469         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
17470         Haible <bruno@clisp.org>.
17471
17472 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
17473
17474         * lib/regex_internal.h: Remove all references to
17475         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
17476         or better.
17477         (bitset_not, bitset_merge, bitset_not_merge):
17478         (bitset_mask, re_string_allocate, re_string_construct):
17479         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
17480         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
17481         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
17482         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
17483         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
17484         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
17485         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
17486         (re_acquire_state_context):
17487         Remove unnecessary forward decls.
17488         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
17489         Put __attribute at function definition,
17490         now that the function decl has been removed.
17491         * lib/regex_internal.c (re_string_peek_byte_case):
17492         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
17493         Likewise.
17494
17495 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
17496
17497         * m4/regex.m4: Add AC_PREREQ(2.50).
17498         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
17499
17500 2005-08-25  Simon Josefsson  <jas@extundo.com>
17501
17502         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
17503         __fsetlocking.
17504
17505 2005-08-25  Simon Josefsson  <jas@extundo.com>
17506
17507         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
17508         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
17509         GLIBC specific code.
17510
17511 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
17512
17513         Make regex safe for g++.  This fixes one real bug (an "err"
17514         that should have been "*err").  g++ problem reported by
17515         Sam Steingold.
17516         * lib/regex_internal.h (re_calloc): New macro, consistent with
17517         re_malloc etc.  All callers of calloc changed to use re_calloc.
17518         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
17519         not int.  All callers changed.
17520         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
17521         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
17522         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
17523         (find_recover_state): Change "err" to "*err"; this fixes what
17524         appears to be a real bug.
17525         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
17526         versus int.
17527
17528 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
17529
17530         * modules/regex (Depends-on): Add malloc, since the code
17531         assumes that !malloc(0) means failure.
17532
17533 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
17534
17535         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
17536
17537         alloca modernization/simplification for regex.
17538         * lib/regex.c: Remove portability cruft for alloca.  This no longer
17539         needs to be at the start of the file, and can be moved into
17540         regex_internal.h and simplified.
17541         * lib/regex_internal.h: Include <alloca.h>.
17542         (__libc_use_alloca) [!defined _LIBC]: New macro.
17543         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
17544         now works outside glibc.
17545
17546 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
17547
17548         * config/srclist.txt: Add glibc bugs 1241, 1245.
17549
17550 2005-08-25  Jim Meyering  <jim@meyering.net>
17551
17552         * lib/open-safer.c: Include <config.h>.
17553         Otherwise, we'd lose LARGEFILE support in any file using
17554         e.g. "fcntl--.h"
17555
17556 2005-08-25  Bruno Haible  <bruno@clisp.org>
17557
17558         * m4/minmax.m4: Require autoconf 2.52.
17559         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
17560         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
17561         alternatives of translit over the alphabet.
17562         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
17563
17564 2005-08-24  Simon Josefsson  <jas@extundo.com>
17565
17566         * tests/test-getpass.c: New file.
17567
17568 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
17569
17570         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
17571         for GNU regex features.
17572
17573 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
17574
17575         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
17576         * lib/regex.h (regerror): Likewise.
17577
17578         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
17579         requires this.  (The code never needed it.)
17580
17581         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
17582         All uses of recently-renamed identifiers changed to use the new,
17583         POSIX-compliant names.  The code will build and run just fine
17584         without these changes, but it's better to eat our own dog food
17585         and use the standard-conforming names.
17586
17587         * lib/regex.h: Fix a multitude of POSIX name space violations.
17588         These changes have an effect only for programs that define
17589         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
17590         do not change anything for programs compiled in the normal way.
17591         Also, there is no effect on the ABI.
17592
17593         (_REGEX_SOURCE): New macro.
17594         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
17595         defined and _GNU_SOURCE is not; this fixes a name space violation.
17596
17597         Rename the following macros to obey POSIX requirements.
17598         The old names are still visible as macros if _REGEX_SOURCE is defined.
17599         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
17600         RE_BACKSLASH_ESCAPE_IN_LISTS.
17601         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
17602         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
17603         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
17604         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
17605         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
17606         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
17607         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
17608         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
17609         (REG_INTERVALS): renamed from RE_INTERVALS.
17610         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
17611         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
17612         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
17613         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
17614         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
17615         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
17616         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
17617         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
17618         RE_UNMATCHED_RIGHT_PAREN_ORD.
17619         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
17620         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
17621         (REG_DEBUG): renamed from RE_DEBUG.
17622         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
17623         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
17624         unusual, since we can't clash with the POSIX REG_ICASE.
17625         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
17626         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
17627         (REG_NO_SUB): renamed from RE_NO_SUB.
17628         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
17629         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
17630         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
17631         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
17632         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
17633         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
17634         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
17635         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
17636         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
17637         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
17638         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
17639         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
17640         RE_SYNTAX_POSIX_MINIMAL_BASIC.
17641         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
17642         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
17643         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
17644         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
17645         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
17646         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
17647         (REG_FIXED): Renamed from REGS_FIXED.
17648         (REG_NREGS): Renamed from RE_NREGS.
17649
17650         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
17651         of other REG_* macros, since POSIX says the user is allowed to
17652         #undef these macros selectively.
17653
17654         (reg_errcode_t): Update comment stating what other tables need
17655         to be consistent.
17656
17657         Rename the following enum values to obey POSIX requirements.
17658         The old names are still visible as macros.
17659         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
17660         is not defined, since GNU is supposed to be a superset of POSIX as
17661         much as possible, and since we want reg_errcode_t to be a signed
17662         type for implementation consistency.
17663         (_REG_NOERROR): Renamed from REG_NOERROR.
17664         (_REG_NOMATCH): Renamed from REG_NOMATCH.
17665         (_REG_BADPAT): Renamed from REG_BADPAT.
17666         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
17667         (_REG_ECTYPE): Renamed from REG_ECTYPE.
17668         (_REG_EESCAPE): Renamed from REG_EESCAPE.
17669         (_REG_ESUBREG): Renamed from REG_ESUBREG.
17670         (_REG_EBRACK): Renamed from REG_EBRACK.
17671         (_REG_EPAREN): Renamed from REG_EPAREN.
17672         (_REG_EBRACE): Renamed from REG_EBRACE.
17673         (_REG_BADBR): Renamed from REG_BADBR.
17674         (_REG_ERANGE): Renamed from REG_ERANGE.
17675         (_REG_ESPACE): Renamed from REG_ESPACE.
17676         (_REG_BADRPT): Renamed from REG_BADRPT.
17677         (_REG_EEND): Renamed from REG_EEND.
17678         (_REG_ESIZE): Renamed from REG_ESIZE.
17679         (_REG_ERPAREN): Renamed from REG_ERPAREN.
17680         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
17681         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
17682         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
17683         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
17684
17685         (_REG_RE_NAME, _REG_RM_NAME): New macros.
17686         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
17687         changed.  But support the old name if the new one is not defined
17688         and if _REGEX_SOURCE.
17689
17690         Change the following member names in struct re_pattern_buffer.
17691         The old names are still supported if !_REGEX_SOURCE.
17692         The new names are always supported, regardless of _REGEX_SOURCE.
17693         (re_buffer): Renamed from buffer.
17694         (re_allocated): Renamed from allocated.
17695         (re_used): Renamed from used.
17696         (re_syntax): Renamed from syntax.
17697         (re_fastmap): Renamed from fastmap.
17698         (re_translate): Renamed from translate.
17699         (re_can_be_null): Renamed from can_be_null.
17700         (re_regs_allocated): Renamed from regs_allocated.
17701         (re_fastmap_accurate): Renamed from fastmap_accurate.
17702         (re_no_sub): Renamed from no_sub.
17703         (re_not_bol): Renamed from not_bol.
17704         (re_not_eol): Renamed from not_eol.
17705         (re_newline_anchor): Renamed from newline_anchor.
17706
17707         Change the following member names in struct re_registers.
17708         The old names are still supported if !_REGEX_SOURCE.
17709         The new names are always supported, regardless of _REGEX_SOURCE.
17710         (rm_num_regs): Renamed from num_regs.
17711         (rm_start): Renamed from start.
17712         (rm_end): Renamed from end.
17713
17714         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
17715         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
17716         Prepend __ to parameter names.
17717
17718         Undo yesterday's changes.
17719
17720 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
17721
17722         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
17723         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
17724         lib/regex.c.
17725
17726 2005-08-24  Jim Meyering  <jim@meyering.net>
17727
17728         Sync from coreutils.
17729         * m4/fcntl-safer.m4: New file.
17730
17731         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
17732         and object files for this module.
17733
17734 2005-08-24  Jim Meyering  <jim@meyering.net>
17735
17736         Sync from coreutils.
17737         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
17738
17739 2005-08-24  Jim Meyering  <jim@meyering.net>
17740
17741         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
17742         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
17743
17744 2005-08-24  Jim Meyering  <jim@meyering.net>
17745
17746         * modules/fcntl-safer: New module.
17747         * modules/fts (Depends-on): Add fcntl-safer.
17748         * MODULES.html.sh (File descriptor based Input/Output):
17749         Add fcntl-safer.
17750
17751 2005-08-24  Bruno Haible  <bruno@clisp.org>
17752
17753         Support for unit test modules.
17754         * modules/README: Mention tests modules.
17755         * modules/TEMPLATE-TESTS: New file.
17756         * gnulib-tool: New options --extract-tests-module, --with-tests and
17757         --tests-base (unused for the moment).
17758         (testsbase, inctests): New variables.
17759         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
17760         (func_verify_module): Exclude TEMPLATE-TESTS.
17761         (func_verify_nontests_module, func_verify_tests_module): New functions.
17762         (func_get_dependencies): Add implicit dependency for tests modules.
17763         (func_get_tests_module): New function.
17764         (func_modules_transitive_closure): When --with-tests was specified,
17765         include the unit tests as well, unless explicitly avoided.
17766         (func_emit_lib_Makefile_am): Ignore the tests modules here.
17767         (func_emit_tests_Makefile_am): New function.
17768         (func_create_testdir): When --with-tests was specified, emit a
17769         tests/ directory.
17770         * MODULES.html.sh (Future developments): Update.
17771
17772 2005-08-24  Bruno Haible  <bruno@clisp.org>
17773
17774         * modules/tls-tests: New file.
17775         * tests/test-tls.c: New file, from GNU gettext.
17776
17777 2005-08-24  Bruno Haible  <bruno@clisp.org>
17778
17779         * modules/lock-tests: New file.
17780         * tests/test-lock.c: New file, from GNU gettext.
17781
17782 2005-08-24  Bruno Haible  <bruno@clisp.org>
17783
17784         * lib/lock.h: Add multiple inclusion guard.
17785         * lib/tls.h: Add multiple inclusion guard.
17786
17787 2005-08-24  Bruno Haible  <bruno@clisp.org>
17788
17789         * gnulib-tool: Add support for the --aux-dir option to
17790         --create-testdir, --create-megatestdir, --test, --megatest.
17791         (func_create_testdir, func_create_megatestdir): Optionally emit a
17792         AC_CONFIG_AUX_DIR directive.
17793         (create-testdir, create-megatestdir, test, megatest): Provide a
17794         default value for $auxdir.
17795
17796 2005-08-24  Bruno Haible  <bruno@clisp.org>
17797
17798         * gnulib-tool (import): Use compound statement instead of subshell
17799         where possible.
17800
17801 2005-08-24  Bruno Haible  <bruno@clisp.org>
17802
17803         * gnulib-tool (import): Change --aux-dir default to "build-aux".
17804
17805 2005-08-24  Bruno Haible  <bruno@clisp.org>
17806
17807         * gnulib-tool (func_version): Update.
17808
17809 2005-08-24  Bruno Haible  <bruno@clisp.org>
17810
17811         * gnulib-tool (func_import, func_create_testdir,
17812         func_create_megatestdir): Quote all autoconf macro arguments.
17813
17814 2005-08-24  Bruno Haible  <bruno@clisp.org>
17815
17816         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
17817         option --force, because --force causes the aclocal.m4 of each
17818         subdirectory to be newer than the corresponding config.h.in.
17819
17820 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
17821
17822         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
17823         All contents moved to gl_REGEX.
17824         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
17825         assume that it does.
17826
17827 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
17828
17829         * lib/regex.h (REG_NOSYS)
17830         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
17831         Define, since POSIX requires it as of 2001.
17832         (_REG_ENOSYS)
17833         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
17834         New private symbol, used to keep the enum signed in all cases.
17835         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
17836         Youngman in
17837         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
17838
17839         * lib/regex_internal.c (re_string_skip_chars, register_state):
17840         (calc_state_hash):
17841         Remove forward decls; no longer needed now that we use prototypes.
17842         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
17843         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
17844         (clean_state_log_if_needed): Likewise.
17845
17846 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
17847
17848         * config/srclist.txt: Add glibc bugs 1231-1233.
17849
17850 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
17851
17852         Fix problems reported by Sam Steingold in
17853         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
17854         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
17855         assumed that reg_errcode_t is a signed type, which is not
17856         necessarily true if _XOPEN_SOURCE is not defined.
17857         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
17858         since some compilers warn about it otherwise.
17859
17860 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
17861
17862         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
17863         (init_word_char, create_initial_state, duplicate_node_closure):
17864         (fetch_token, peek_token_bracket, build_range_exp):
17865         (build_collating_symbol): Remove forward decls; no longer needed
17866         now that we use prototypes.
17867
17868         * lib/regcomp.c:
17869         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
17870         (re_compile_fastmap_iter, regcomp, regerror, regfree):
17871         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
17872         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
17873         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
17874         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
17875         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
17876         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
17877         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
17878         (build_range_exp, build_collating_symbol, parse_bracket_exp):
17879         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
17880         (build_charclass, build_charclass_op, fetch_number, create_tree):
17881         (create_token_tree, mark_opt_subexp, duplicate_tree):
17882         Use prototypes rather than old-style definitions.
17883
17884         * lib/regex_internal.c:
17885         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
17886         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
17887         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
17888         (re_string_reconstruct, re_string_peek_byte_case):
17889         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
17890         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
17891         (re_node_set_init_copy, re_node_set_add_intersect):
17892         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
17893         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
17894         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
17895         (re_acquire_state, re_acquire_state_context, register_state):
17896         (create_ci_newstate, create_cd_newstate, free_state):
17897         Likewise.
17898         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
17899         re_search_2):
17900         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
17901         (re_search_internal, prune_impossible_nodes):
17902         (acquire_init_state_context, check_matching, static):
17903         (check_halt_node_context, check_halt_state_context, proceed_next_node):
17904         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
17905         (update_regs, sift_states_backward, build_sifted_states):
17906         (clean_state_log_if_needed, merge_state_array):
17907         (update_cur_sifted_state, add_epsilon_src_nodes):
17908         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
17909         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
17910         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
17911         (find_recover_state, check_subexp_matching_top, transit_state_mb):
17912         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
17913         (check_arrival, check_arrival_add_next_nodes):
17914         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
17915         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
17916         (check_node_accept_bytes, check_node_accept, extend_buffers):
17917         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
17918         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
17919         (sift_ctx_init):
17920         Likewise.
17921
17922         * lib/regex_internal.h:
17923         (re_string_allocate, re_string_construct, re_string_reconstruct):
17924         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
17925         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
17926         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
17927         (re_string_context_at, re_string_peek_byte_case):
17928         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
17929         is defined, since we now use prototypes always.
17930
17931         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
17932         C89 or better.  All uses removed.
17933
17934 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
17935
17936         * config/srclist.txt: Add glibc bugs 1220-1227.
17937
17938 2005-08-20  Jim Meyering  <jim@meyering.net>
17939
17940         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
17941         of unused local, dfa.
17942
17943 2005-08-20  Bruno Haible  <bruno@clisp.org>
17944
17945         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
17946
17947 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
17948
17949         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
17950         (re_node_set_insert_last, re_dfa_add_node):
17951         Rename local variables to avoid GCC shadowing warnings.
17952
17953 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
17954
17955         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
17956         [defined lint]: Suppress bogus uninitialized-variable warnings.
17957
17958         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
17959         and let the caller return REG_ESPACE if out of space.  This
17960         removes an uninitialied-variable warning with GCC 4.0.1, and also
17961         avoids taking the address of a local variable.  All callers
17962         changed.
17963
17964 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
17965
17966         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
17967         $LIBCSRC/posix/regexec.c.
17968         Add glibc bug 1217 for regcomp.c.
17969
17970 2005-08-19  Jim Meyering  <jim@meyering.net>
17971
17972         * lib/regexec.c (proceed_next_node): Redo local variables to
17973         avoid GCC shadowing warnings.
17974
17975 2005-08-18  Bruno Haible  <bruno@clisp.org>
17976
17977         * lib/strstr.c (strstr): Fix return value in multibyte case.
17978         * lib/strcasestr.c (strcasestr): Likewise.
17979
17980 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
17981
17982         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
17983
17984 2005-08-17  Jim Meyering  <jim@meyering.net>
17985
17986         Make the %s format (seconds since the epoch) work for a negative
17987         number and when used with a zero-padded field width, e.g. %015s.
17988
17989         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
17990         label so that it precedes the code to set `digits'.  Otherwise,
17991         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
17992         print `00-22'.  Now, it prints `-0022', as it should.
17993
17994 2005-08-17  Bruno Haible  <bruno@clisp.org>
17995
17996         * modules/strstr (Files): Add m4/mbrtowc.m4.
17997         (Depends-on): Add mbuiter.
17998
17999 2005-08-17  Bruno Haible  <bruno@clisp.org>
18000
18001         * modules/strcasestr: New file.
18002         * MODULES.html.sh (String handling, based on ANSI C 89): Add
18003         strcasestr.
18004
18005 2005-08-17  Bruno Haible  <bruno@clisp.org>
18006
18007         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
18008
18009 2005-08-17  Bruno Haible  <bruno@clisp.org>
18010
18011         * modules/mbuiter: New file.
18012         * MODULES.html.sh (Extended multibyte and wide character utilities):
18013         Add mbuiter.
18014
18015 2005-08-17  Bruno Haible  <bruno@clisp.org>
18016
18017         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
18018         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
18019
18020 2005-08-17  Bruno Haible  <bruno@clisp.org>
18021
18022         * m4/strcasestr.m4: New file.
18023
18024 2005-08-17  Bruno Haible  <bruno@clisp.org>
18025
18026         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
18027         * lib/strstr.c: Completely rewritten, with multibyte locale support.
18028
18029 2005-08-17  Bruno Haible  <bruno@clisp.org>
18030
18031         * lib/strcasestr.h: New file.
18032         * lib/strcasestr.c: New file.
18033
18034 2005-08-17  Bruno Haible  <bruno@clisp.org>
18035
18036         * lib/strcasecmp.c: Use mbuiter.h.
18037
18038 2005-08-17  Bruno Haible  <bruno@clisp.org>
18039
18040         * lib/mbuiter.h: New file.
18041
18042 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
18043
18044         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
18045         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
18046         and gl_GETOPT are both invoked via different paths (as happens
18047         with GNU tar CVS because it uses both argp and getopt), the former
18048         wins.
18049
18050 2005-08-16  Bruno Haible  <bruno@clisp.org>
18051
18052         * modules/tls: New file.
18053         * MODULES.html.sh (Multithreading): Add tls.
18054
18055 2005-08-16  Bruno Haible  <bruno@clisp.org>
18056
18057         * modules/strnlen1: New file.
18058         * MODULES.html.sh (String handling): Add strnlen1.
18059
18060 2005-08-16  Bruno Haible  <bruno@clisp.org>
18061
18062         * modules/strcase (Files): Add m4/mbrtowc.m4.
18063         (Depends-on): Add strnlen1, mbchar.
18064
18065 2005-08-16  Bruno Haible  <bruno@clisp.org>
18066
18067         * modules/mbiter: New file.
18068         * MODULES.html.sh (Extended multibyte and wide character utilities):
18069         Add mbiter.
18070
18071 2005-08-16  Bruno Haible  <bruno@clisp.org>
18072
18073         * modules/mbfile: New file.
18074         * MODULES.html.sh (Extended multibyte and wide character utilities):
18075         Add mbfile.
18076
18077 2005-08-16  Bruno Haible  <bruno@clisp.org>
18078
18079         * modules/mbchar: New file.
18080         * MODULES.html.sh (Extended multibyte and wide character utilities):
18081         New section.
18082
18083 2005-08-16  Bruno Haible  <bruno@clisp.org>
18084
18085         * m4/tls.m4: New file, from GNU gettext.
18086
18087 2005-08-16  Bruno Haible  <bruno@clisp.org>
18088
18089         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
18090         always.
18091         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
18092
18093 2005-08-16  Bruno Haible  <bruno@clisp.org>
18094
18095         * m4/mbiter.m4: New file.
18096
18097 2005-08-16  Bruno Haible  <bruno@clisp.org>
18098
18099         * m4/mbfile.m4: New file.
18100
18101 2005-08-16  Bruno Haible  <bruno@clisp.org>
18102
18103         * m4/mbchar.m4: New file.
18104
18105 2005-08-16  Bruno Haible  <bruno@clisp.org>
18106
18107         * lib/tls.h: New file, from GNU gettext.
18108         * lib/tls.c: New file, from GNU gettext.
18109
18110 2005-08-16  Bruno Haible  <bruno@clisp.org>
18111
18112         * lib/strnlen1.h: New file.
18113         * lib/strnlen1.c: New file.
18114
18115 2005-08-16  Bruno Haible  <bruno@clisp.org>
18116
18117         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
18118         (mbi_init): Update.
18119         (mbi_avail, mbi_advance): Let the iteration end before the terminating
18120         NUL byte, not after it.
18121
18122 2005-08-16  Bruno Haible  <bruno@clisp.org>
18123
18124         * lib/strcase.h (strcasecmp): Add note in comments.
18125         * lib/strncasecmp.c: Use code from strcasecmp.c.
18126         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
18127         (strcasecmp): Work correctly in multibyte locales.
18128
18129 2005-08-16  Bruno Haible  <bruno@clisp.org>
18130
18131         * lib/mbiter.h: New file.
18132
18133 2005-08-16  Bruno Haible  <bruno@clisp.org>
18134
18135         * lib/mbfile.h: New file.
18136
18137 2005-08-16  Bruno Haible  <bruno@clisp.org>
18138
18139         * lib/mbchar.h: New file.
18140         * lib/mbchar.c: New file.
18141
18142 2005-08-16  Bruno Haible  <bruno@clisp.org>
18143
18144         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
18145         the valid ones. Makes the comparison operations transitive:
18146         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
18147         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
18148
18149 2005-08-15  Simon Josefsson  <jas@extundo.com>
18150
18151         * modules/ssize_t (License): Change to 'unlimited'.
18152
18153         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
18154
18155 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
18156
18157         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
18158         Add comments for each pending glibc patch.
18159
18160 2005-08-15  Bruno Haible  <bruno@clisp.org>
18161
18162         * lib/regex.h (__restrict_arr): Don't define to __restrict if
18163         __cplusplus is defined.
18164
18165 2005-08-14  Jim Meyering  <jim@meyering.net>
18166
18167         Sync from coreutils.
18168
18169         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
18170         Use the hash-table-based cycle-detection code not just when
18171         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
18172         Reported by James Youngman in
18173         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
18174         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
18175         FTS_TIGHT_CYCLE_CHECK.
18176         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
18177         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
18178         once again.
18179         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
18180         * lib/fts.c (fd_safer): Remove decl.
18181         Include fcntl--.h rather than unistd-safer.h
18182         (fts_safe_changedir): Don't call fd_safer; no longer needed
18183         now that we include fcntl--.h.
18184
18185 2005-08-12  Simon Josefsson  <jas@extundo.com>
18186
18187         * modules/getndelim2: Use ssize_t module.
18188         * modules/getnline: Likewise.
18189         * modules/safe-read: Likewise.
18190         * modules/xreadlink: Likewise.
18191
18192         * modules/ssize_t: New file.
18193
18194 2005-08-12  Simon Josefsson  <jas@extundo.com>
18195
18196         * m4/readline.m4: Look for termcap, curses or ncurses if required.
18197
18198 2005-08-12  Simon Josefsson  <jas@extundo.com>
18199
18200         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
18201         ssize_t.
18202
18203 2005-08-12  Simon Josefsson  <jas@extundo.com>
18204
18205         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
18206         readline, getdelim and check_version.
18207         (Support for systems lacking ISO C 99: Sizes of integer types):
18208         Add size_max.
18209
18210 2005-08-12  Bruno Haible  <bruno@clisp.org>
18211
18212         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
18213
18214 2005-08-11  Simon Josefsson  <jas@extundo.com>
18215
18216         * modules/readline: New file.
18217
18218         * modules/strnlen (Files): Add strnlen.h.
18219
18220 2005-08-11  Simon Josefsson  <jas@extundo.com>
18221
18222         * m4/readline.m4: New file.
18223
18224 2005-08-11  Simon Josefsson  <jas@extundo.com>
18225
18226         * lib/readline.h, readline.c: New file.
18227
18228 2005-08-11  Simon Josefsson  <jas@extundo.com>
18229
18230         * doc/gnulib.texi (Initial import, Finishing touches): Mention
18231         gl_AVOID.
18232
18233 2005-08-11  Bruno Haible  <bruno@clisp.org>
18234
18235         * lib/strnlen.h (strnlen): Change parameter name to match comment.
18236
18237 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
18238
18239         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
18240
18241 2005-08-10  Simon Josefsson  <jas@extundo.com>
18242
18243         * tests/test-iconvme.c: New file.
18244
18245 2005-08-10  Simon Josefsson  <jas@extundo.com>
18246
18247         * m4/strnlen.m4: New file.
18248
18249         * m4/strndup.m4: Don't check for strnlen declaration, done in
18250         strnlen.m4.
18251
18252 2005-08-10  Simon Josefsson  <jas@extundo.com>
18253
18254         * lib/strndup.c: Use strnlen.h.
18255
18256         * lib/strnlen.h: New file.
18257
18258 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
18259
18260         * README: Typos.
18261
18262 2005-08-02  Simon Josefsson  <jas@extundo.com>
18263
18264         * modules/readline: New file.
18265
18266 2005-08-02  Simon Josefsson  <jas@extundo.com>
18267
18268         * modules/getdelim: New file.
18269
18270         * modules/getline: Rewrite, don't use getndelim2.
18271
18272 2005-08-02  Simon Josefsson  <jas@extundo.com>
18273
18274         * m4/getline.m4: Separate out getdelim stuff into separate module.
18275
18276         * m4/getdelim.m4: New file.
18277
18278 2005-08-02  Simon Josefsson  <jas@extundo.com>
18279
18280         * lib/getline.h, getline.c: Rewrite.
18281
18282         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
18283
18284 2005-07-31  Bruno Haible  <bruno@clisp.org>
18285
18286         * lib/lock.h (gl_lock_initializer): New macro.
18287         (gl_lock_define_initialized): Use it.
18288         (gl_rwlock_initializer): New macro.
18289         (gl_rwlock_define_initialized): Use it.
18290         (gl_recursive_lock_initializer): New macro.
18291         (gl_recursive_lock_define_initialized): Use it.
18292
18293 2005-07-30  Karl Berry  <karl@gnu.org>
18294
18295         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
18296         Report from Ben Pfaff, regarding getopt.
18297
18298 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
18299
18300         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
18301         normal way.
18302         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
18303         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
18304         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
18305         (gl_GETOPT): Use the new macros.  Most of the implementation
18306         is moved to the new macros.  This is for programs like Emacs
18307         that don't want all the functionality of gl_GETOPT.
18308
18309 2005-07-26  Bruno Haible  <bruno@clisp.org>
18310
18311         * m4/lock.m4: Update from GNU gettext.
18312
18313 2005-07-26  Bruno Haible  <bruno@clisp.org>
18314
18315         * lib/lock.h: Update from GNU gettext.
18316         * lib/lock.c: Update from GNU gettext.
18317
18318 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
18319
18320         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
18321         obsolescent AC_TRY_RUN.  Include the default includes files, for
18322         'exit'.
18323
18324 2005-07-24  Bruno Haible  <bruno@clisp.org>
18325
18326         * modules/visibility: New file.
18327         * MODULES.html.sh (Misc): Add visibility.
18328
18329 2005-07-24  Bruno Haible  <bruno@clisp.org>
18330
18331         * m4/visibility.m4: New file.
18332
18333 2005-07-24  Bruno Haible  <bruno@clisp.org>
18334
18335         * doc/visibility.texi: New file.
18336
18337 2005-07-22  Bruno Haible  <bruno@clisp.org>
18338
18339         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
18340         $(ALLOCA_H), redundant through BUILT_SOURCES.
18341         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
18342         redundant through BUILT_SOURCES.
18343         * modules/byteswap (Makefile.am): Remove explicit dependency on
18344         $(BYTESWAP_H), redundant through BUILT_SOURCES.
18345         * modules/fnmatch (Makefile.am): Remove explicit dependency on
18346         $(FNMATCH_H), redundant through BUILT_SOURCES.
18347         * modules/getopt (Makefile.am): Remove explicit dependency on
18348         $(GETOPT_H), redundant through BUILT_SOURCES.
18349         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
18350         redundant through BUILT_SOURCES.
18351         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
18352         redundant through BUILT_SOURCES.
18353         * modules/stdbool (Makefile.am): Remove explicit dependency on
18354         $(STDBOOL_H), redundant through BUILT_SOURCES.
18355         * modules/stdint (Makefile.am): Remove explicit dependency on
18356         $(STDINT_H), redundant through BUILT_SOURCES.
18357         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
18358         Remove explicit dependency on $(SYSEXITS_H).
18359         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
18360
18361 2005-07-18  Simon Josefsson  <jas@extundo.com>
18362
18363         * lib/check-version.c (check_version): Accept identical versions too.
18364
18365 2005-07-18  Bruno Haible  <bruno@clisp.org>
18366
18367         * modules/lock: New file.
18368         * MODULES.html.sh (Multithreading): New section.
18369
18370 2005-07-18  Bruno Haible  <bruno@clisp.org>
18371
18372         * m4/lock.m4: New file, from GNU gettext.
18373
18374 2005-07-18  Bruno Haible  <bruno@clisp.org>
18375
18376         * lib/lock.h: New file, from GNU gettext.
18377         * lib/lock.c: New file, from GNU gettext.
18378
18379 2005-07-18  Bruno Haible  <bruno@clisp.org>
18380
18381         * lib/lock.h (gl_once_t): New type.
18382         (gl_once_define, gl_once): New macros.
18383         * lib/lock.c (fresh_once): New variable.
18384         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
18385         functions.
18386
18387 2005-07-16  Simon Josefsson  <jas@extundo.com>
18388
18389         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
18390         workaround, suggested by Bruno.
18391
18392 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
18393
18394         * modules/xalloc (Depends-on): Add xalloc-die.
18395         * modules/xvasprintf (Depends-on): Add xalloc-die.
18396
18397 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
18398
18399         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
18400         with a minor change.
18401
18402 2005-07-15  Bruno Haible  <bruno@clisp.org>
18403
18404         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
18405         When using lib/poll.c, define poll as rpl_poll.
18406
18407 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
18408
18409         * modules/argp (Depends-on): Remove unlocked-io.
18410
18411 2005-07-14  Derek Price  <derek@ximbiot.com>
18412
18413         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
18414         for glob symlink bug.
18415
18416 2005-07-14  Bruno Haible  <bruno@clisp.org>
18417
18418         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
18419         Instead, test for *_unlocked function declarations directly.
18420
18421 2005-07-11  Simon Josefsson  <jas@extundo.com>
18422
18423         * modules/size_max: New file.
18424
18425         * modules/xsize: Depend on size_max module for size_max.m4.
18426
18427 2005-07-11  Simon Josefsson  <jas@extundo.com>
18428
18429         * lib/size_max.h: New file.
18430
18431 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
18432
18433         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
18434         copyright symbol and the year.
18435         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
18436         (version_etc_va): Use parameterized copyright notice.
18437         Reword to conform to the current GNU coding standards.
18438
18439 2005-07-11  Karl Berry  <karl@gnu.org>
18440
18441         * doc/gnulib.texi (Quoting): new node.
18442         (Initial import): more info, from Patrice.
18443
18444 2005-07-11  Bruno Haible  <bruno@clisp.org>
18445
18446         * gnulib-tool (func_usage): Document option --avoid.
18447         (Command line options): Handle --avoid.
18448         (func_acceptable): New function.
18449         (func_modules_transitive_closure): Use it.
18450
18451 2005-07-11  Bruno Haible  <bruno@clisp.org>
18452
18453         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
18454         Reported by Jim Meyering.
18455
18456 2005-07-10  Bruno Haible  <bruno@clisp.org>
18457
18458         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
18459         Needed when size_t is smaller than 'unsigned int'.
18460         Reported by Paul Eggert.
18461
18462 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
18463
18464         * modules/argp (Depends-on): Add unlocked-io
18465
18466 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
18467
18468         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
18469         block of defines.
18470
18471 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
18472
18473         * config/srclist.txt: Comment out regcomp.c, since we have a porting
18474         fix now.
18475
18476 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
18477         and Paul Eggert  <eggert@cs.ucla.edu>
18478
18479         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
18480         in wint_t, not wchar_t.  Remove now-unnecessary cast.
18481
18482 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
18483
18484         * modules/regex (Files): Add lib/regex_internal.c,
18485         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
18486         (Depends-on): Add extensions.
18487         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
18488
18489 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
18490
18491         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
18492         pathconf.
18493         * m4/same.m4 (gl_SAME): Likewise.
18494         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
18495
18496         * m4/regex.m4: Adjust to new libc regex implementation.
18497         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
18498         all the .c and .h parts of (the new) regex.
18499         Quote the m4 stuff better.
18500         Check for RE_ICASE bug of old gnulib.
18501         Check for REG_STARTEND of recent libc.
18502         Rename local variables from jm_* to gl_*.
18503         Quote operand of "test -f".
18504         Say "recent enough" version of libc, not "version 2".
18505         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
18506         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
18507         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
18508         Remove check for btowc, isascii.
18509         Require AM_LANGINFO_CODESET.
18510
18511 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
18512
18513         * lib/regex.c, regex.h: Sync from libc.
18514         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
18515         * lib/regexec.c:
18516         New files, synced from libc, except that regex_internal.h
18517         currently has a small porting fix.
18518
18519 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
18520
18521         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
18522         regex_internal.c, regexec.c.
18523         Add regex_internal.h too, but as a comment, since the libc version
18524         is currently broken in gnulib mode.
18525
18526 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
18527
18528         Support programs like Emacs that use gnulib but not gettext.
18529         * MODULES.html.sh (Internationalization functions): Add gettext-h.
18530         * modules/gettext-h: New file.
18531         * modules/gettext (Files): Remove lib/gettext.h.
18532         (Depends-on): Add gettext-h.
18533         (Makefile.am): Remove lib_SOURCES.
18534         * modules/argmatch, modules/c-stack, modules/closeout:
18535         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
18536         * modules/execute, modules/file-type, modules/getaddrinfo:
18537         * modules/getopt, modules/human, modules/javacomp:
18538         * modules/javaexec, modules/mkdir-p, modules/obstack:
18539         * modules/openat, modules/pagealign_alloc, modules/pipe:
18540         * modules/quotearg, modules/regex, modules/rpmatch:
18541         * modules/unicodeio, modules/userspec, modules/version-etc:
18542         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
18543         * modules/xsetenv:
18544         Depend on gettext-h, not gettext.
18545
18546 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
18547
18548         * gnulib-tool (func_import): Add support for 'public domain' license.
18549         * modules/alloca, modules/atexit, modules/memmove:
18550         Now public domain, not GPL.
18551         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
18552         * modules/realloc, modules/strerror, modules/strtod:
18553         Now LGPL, not GPL.
18554
18555 2005-07-05  Bruno Haible  <bruno@clisp.org>
18556
18557         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
18558         autoconf CVS. Needed for mingw.
18559
18560 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
18561
18562         Remove the dependency of the strftime module on the tzset module.
18563         * modules/strftime (Depends-on): Remove dependency on tzset.
18564
18565 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
18566
18567         Remove the dependency of the strftime module on the tzset module.
18568         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
18569         gl_FUNC_TZSET_CLOBBER.
18570
18571 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
18572
18573         Remove the dependency of the strftime module on the tzset module.
18574         * lib/strftime.c (my_strftime)
18575         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
18576         Copy the input structure, to work around some of the bug with
18577         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
18578         Solaris releases, you should also use the tzset module, but we won't
18579         require it as a dependency any more since we don't want LGPLed code
18580         to depend on GPLed code.
18581
18582 2005-07-02  Jim Meyering  <jim@meyering.net>
18583
18584         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
18585         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
18586         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
18587         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
18588
18589 2005-07-02  Jim Meyering  <jim@meyering.net>
18590
18591         * lib/backupfile.c (backup_args): Change a `0' to NULL.
18592
18593 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
18594
18595         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
18596         declares only 'struct timespec;' (!).
18597
18598 2005-07-01  Jim Meyering  <jim@meyering.net>
18599
18600         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
18601         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
18602         * lib/save-cwd.c, tempname.c:
18603         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
18604         and don't include <sys/file.h>).
18605
18606 2005-06-29  Jim Meyering  <jim@meyering.net>
18607
18608         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
18609         type name.  Use the variable name instead.
18610         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
18611         Likewise.
18612
18613 2005-06-28  Simon Josefsson  <jas@extundo.com>
18614
18615         * modules/check-version (Files): Add check-version.m4.
18616
18617 2005-06-28  Simon Josefsson  <jas@extundo.com>
18618
18619         * m4/check-version.m4: New file, suggested by Jim Meyering
18620         <jim@meyering.net>.
18621
18622 2005-06-28  Simon Josefsson  <jas@extundo.com>
18623
18624         * lib/check-version.h, lib/check-version.c: New files.
18625
18626 2005-06-28  Simon Josefsson  <jas@extundo.com>
18627
18628         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
18629         collision with global variable.  Better indentation.  Don't
18630         increment buffer pointer beyond buffer end.  Based on comments
18631         from Paul Eggert <eggert@cs.ucla.edu>.
18632
18633         * lib/base64.h: Indent.
18634
18635 2005-06-28  Simon Josefsson  <jas@extundo.com>
18636
18637         * doc/gnulib.texi (Library version handling): New section.
18638
18639 2005-06-28  Jim Meyering  <jim@meyering.net>
18640
18641         * check-module (find_included_lib_files): Hard-code another
18642         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
18643         but modules/fts-lgpl (correctly) does not list those files.
18644
18645         * modules/canonicalize (Files): Add lib/pathmax.h.
18646
18647 2005-06-25  Simon Josefsson  <jas@extundo.com>
18648
18649         * modules/check-version: New file.
18650
18651 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
18652
18653         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
18654         initializer of struct addrinfo, as an indication that we don't
18655         care how many members the structure has.
18656
18657 2005-06-24  Derek Price  <derek@ximbiot.com>
18658         and Bruno Haible  <bruno@clisp.org>
18659
18660         Remove stat module & update lstat.
18661         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
18662         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
18663         * m4/stat.m4: Remove this file.
18664
18665 2005-06-24  Derek Price  <derek@ximbiot.com>
18666         and Bruno Haible  <bruno@clisp.org>
18667
18668         Remove stat module & update lstat.
18669         * lib/stat.c: Remove this file...
18670         (slash_aware_lstat): ...moving this content and its support...
18671         * lib/lstat.c (rpl_lstat): ...into here.
18672         * lib/lstat.h: New file.
18673
18674 2005-06-24  Derek Price  <derek@ximbiot.com>
18675         and Bruno Haible  <bruno@clisp.org>
18676
18677         Remove stat module & update lstat.
18678         * config/srclist.txt (libc sources): Remove stat.
18679
18680 2005-06-24  Derek Price  <derek@ximbiot.com>
18681         and Bruno Haible  <bruno@clisp.org>
18682
18683         Remove stat module & update lstat.
18684         * MODULES.html.sh (stat): Remove.
18685         * MODULES.html: Regenerated.
18686         * modules/lstat (Description): Correct function name.
18687         (Files): Add "lstat.h".
18688         (Depends-on): Remove stat, add xalloc, stat-macros.
18689         * modules/stat: Remove this file.
18690         (Include): Add "lstat.h", remove <sys/stat.h>.
18691
18692 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
18693
18694         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
18695         (ranged_convert): Don't save conversion in a temporary struct.
18696         This causes a warning with GCC 4.0.0, and anyway in the typical
18697         case it's not worth the extra 100 bytes or so of code.
18698         (ranged_convert, __mktime_internal): When calling a function via a
18699         pointer P, use P () rather than (*P) (), as we now assume C89 or
18700         better.
18701
18702 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
18703
18704         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
18705         "who -r" failed to give output.  Problem reported by Tim Waugh.
18706
18707         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
18708         (xcalloc): Use it to avoid needless tests.
18709         Problem reported by Jim Meyering.
18710
18711 2005-06-20  Derek Price  <derek@ximbiot.com>
18712
18713         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
18714         unnecessary for Autoconfs > 2.59c.
18715
18716 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
18717
18718         * lib/argp.h (__option_is_short): Check upper limit of
18719         __key. Isprint() requires its argument to have the value
18720         of an unsigned char or EOF.
18721
18722 2005-06-16  Jim Meyering  <jim@meyering.net>
18723
18724         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
18725         when either N or S is zero.
18726
18727 2005-06-16  Derek Price  <derek@ximbiot.com>
18728
18729         * m4/bison.m4: Declare YACC & YFLAGS precious.
18730
18731 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
18732
18733         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
18734         multibyte string or pattern, fall back on unibyte matching.
18735         Problem reported by James Youngman.
18736
18737 2005-06-08  Bruno Haible  <bruno@clisp.org>
18738
18739         * modules/csharpcomp: New file.
18740         * MODULES.html.sh (C#): Add csharpcomp.
18741
18742 2005-06-08  Bruno Haible  <bruno@clisp.org>
18743
18744         * m4/csharpcomp.m4: New file, from GNU gettext.
18745
18746 2005-06-08  Bruno Haible  <bruno@clisp.org>
18747
18748         * lib/csharpcomp.h: New file, from GNU gettext.
18749         * lib/csharpcomp.c: New file, from GNU gettext.
18750         * lib/csharpcomp.sh.in: New file, from GNU gettext.
18751
18752 2005-06-08  Bruno Haible  <bruno@clisp.org>
18753
18754         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
18755         warning on mingw.
18756
18757 2005-06-07  Derek Price  <derek@ximbiot.com>
18758
18759         Sync from CVS.
18760         * lib/glob_.h: Indent nested #ifdef.
18761
18762 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
18763
18764         Sync from coreutils.
18765         Use "file name" when talking about file names, instead of "filename"
18766         or "path", as per the GNU coding standards.
18767         * lib/mkdir-p.c: Renamed from makepath.c.
18768         (make_dir_parents): Renamed from make_path.  All callers changed.
18769         * lib/mkdir-p.h: Likewise.  All includers changed.
18770         * lib/filenamecat.c: Renamed from path-concat.c.
18771         (file_name_concat): Renamed from path_concat.  All callers changed.
18772         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
18773         * lib/filenamecat.h: Likewise.  All includers changed.
18774         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
18775         in comments or local variable names.
18776         * lib/basename.c: Likewise.
18777         * lib/canonicalize.c, canonicalize.h: Likewise.
18778         * lib/dirname.c, dirname.h: Likewise.
18779         * lib/euidaccess.c: Likewise.
18780         * lib/exclude.c: Likewise
18781         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
18782         * lib/fsusage.c, fsuage.h: Likewise.
18783         * lib/fts.c, fts_.h: Likewise.
18784         * lib/getcwd.c: Likewise.
18785         * lib/getloadavg.c: Likewise.
18786         * lib/mkstemp.c: Likewise.
18787         * lib/mountlist.c, mountlist.h: Likewise.
18788         * lib/openat.c, openat.h: Likewise.
18789         * lib/readlink-stub.c: Likewise.
18790         * lib/readutmp.c, readutmp.h: Likewise.
18791         * lib/rename.c: Likewise.
18792         * lib/rmdir.c: Likewise.
18793         * lib/same.c: Likewise.
18794         * lib/savedir.c: Likewise.
18795         * lib/stripslash.c: Likewise.
18796         * lib/tempname.c: Likewise.
18797         * lib/xreadlink.c: Likewise.
18798         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
18799         All uses changed.
18800         * lib/exclude.h: Likewise.
18801
18802         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
18803         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
18804         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
18805         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
18806         * lib/pathmax.h: Include <limits.h> unconditionally, since other
18807         files have been getting away with it for years (MORE/BSD 4.3
18808         is extinct now).
18809         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
18810         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
18811
18812         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
18813         Define to 256, not 255, as per modern POSIX.
18814
18815 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
18816
18817         Sync from coreutils.
18818         Use "file name" when talking about file names, instead of "filename"
18819         or "path", as per the GNU coding standards.
18820         * MODULES.html.sh: mkdir-p renamed from makepath.
18821         filenamecat renamed from path-concat.
18822         * modules/filenamecat: Renamed from modules/path-concat.
18823         (Files): filenamecat.h and filenamecat.c renamed from
18824         path-concat.h and path-concat.c.
18825         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
18826         (Include): filenamecat.h, not path-concat.h.
18827         * modules/mkdir-p: Renamed from modules/makepath.
18828         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
18829         makepath.c.
18830         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
18831         (Include): mkdir-p.h, not makepath.h.
18832
18833 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
18834
18835         Sync from coreutils.
18836         * m4/mkdir-p.m4: Renamed from makepath.m4.
18837         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
18838         Rename files from makepath.c to mkdir-p.c, and from
18839         makepath.h to mkdir-p.h.
18840         * m4/filenamecat.m4: Renamed from path-concat.m4.
18841         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
18842         Rename files from path-concat.c to filenamecat.c,
18843         and from path-concat.h to filenamecat.h.
18844         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
18845         "file name" in local variables or comments.
18846         * m4/rename.m4: Likewise.
18847
18848 2005-06-01  Bruno Haible  <bruno@clisp.org>
18849
18850         * modules/csharpexec: New file.
18851         * MODULES.html.sh (C#): New section.
18852
18853 2005-06-01  Bruno Haible  <bruno@clisp.org>
18854
18855         * m4/csharp.m4: New file, from GNU gettext.
18856         * m4/csharpexec.m4: New file, from GNU gettext.
18857
18858 2005-06-01  Bruno Haible  <bruno@clisp.org>
18859
18860         * lib/csharpexec.h: New file, from GNU gettext.
18861         * lib/csharpexec.c: New file, from GNU gettext.
18862         * lib/csharpexec.sh.in: New file, from GNU gettext.
18863
18864 2005-05-31  Derek Price  <derek@ximbiot.com>
18865             Paul Eggert  <eggert@cs.ucla.edu>
18866
18867         Sync from cvs.
18868         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
18869
18870 2005-05-31  Derek Price  <derek@ximbiot.com>
18871             Paul Eggert  <eggert@cs.ucla.edu>
18872
18873         Sync from cvs.
18874         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
18875
18876 2005-05-29  Derek Price  <derek@ximbiot.com>
18877
18878         * config/srclist.txt (glob_.h, glob.c): Add these files.
18879
18880 2005-05-29  Derek Price  <derek@ximbiot.com>
18881
18882         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
18883         * modules/glob: New file.
18884         * modules/getlogin_r: Add link to POSIX spec in description.
18885
18886 2005-05-29  Derek Price  <derek@ximbiot.com>
18887             Paul Eggert  <eggert@cs.ucla.edu>
18888
18889         * m4/glob.m4: New file.
18890
18891 2005-05-29  Derek Price  <derek@ximbiot.com>
18892             Paul Eggert  <eggert@cs.ucla.edu>
18893
18894         * lib/glob_.h, lib/glob.c: New files.
18895
18896 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
18897
18898         * modules/fts (Files): Remove m4/inttypes-pri.m4.
18899         * modules/fts-lgpl (Depends-on): Remove gettext.
18900
18901 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
18902
18903         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
18904         and don't require gt_INTTYPES_PRI.
18905
18906 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
18907
18908         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
18909
18910         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
18911         the configuration hassle isn't worth it.
18912         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
18913         (LONGEST_MODIFIER, PRIuMAX): Remove.
18914
18915 2005-05-27  Bruno Haible  <bruno@clisp.org>
18916
18917         * lib/getlogin_r.h: Remove second include of <stddef.h>.
18918
18919 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
18920
18921         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
18922         _POSIX_PTHREAD_SEMANTICS for Solaris.
18923
18924 2005-05-25  Derek Price  <derek@ximbiot.com>
18925
18926         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
18927
18928 2005-05-25  Derek Price  <derek@ximbiot.com>
18929             Paul Eggert  <eggert@cs.ucla.edu>
18930
18931         * modules/getlogin_r, m4/getlogin_r.m4: New files.
18932         * lib/getlogin_r.c, getlogin_r.h: New files.
18933
18934 2005-05-25  Bruno Haible  <bruno@clisp.org>
18935             Derek Price  <derek@ximbiot.com>
18936
18937         * lib/getlogin_r.h: Simplify API documentation.
18938
18939 2005-05-23  Derek Price  <derek@ximbiot.com>
18940
18941         * modules/minmax (Files): Add m4/minmax.m4.
18942         (configure.ac): Add gl_MINMAX.
18943
18944 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
18945
18946         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
18947         so that unistd-safer.h (GPL'ed code) need not be included.
18948
18949 2005-05-22  Bruno Haible  <bruno@clisp.org>
18950
18951         * m4/minmax.m4: New file.
18952         Based on a patch by Derek Price <derek@ximbiot.com>.
18953
18954 2005-05-22  Bruno Haible  <bruno@clisp.org>
18955
18956         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
18957         (INT64_MIN): Fix definition.
18958         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
18959
18960         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
18961         NEED_SIGNED_INT_TYPES.
18962
18963         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
18964         HAVE_SYSTEM_INTTYPES.
18965
18966 2005-05-22  Bruno Haible  <bruno@clisp.org>
18967
18968         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
18969         Also include <sys/param.h> if it defines MIN, MAX.
18970         Based on a patch by Derek Price <derek@ximbiot.com>.
18971
18972 2005-05-21  Jim Meyering  <jim@meyering.net>
18973
18974         * modules/fts (Files): Add m4/inttypes-pri.m4.
18975         (Depends-on): Add lstat and remove gettext.  Alphabetize.
18976
18977 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
18978
18979         New fts module.
18980         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
18981         (setup_dir, free_dir): New functions.
18982         (enter_dir, leave_dir): Define trivial
18983         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
18984         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
18985         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
18986         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
18987         Move to fts-cycle.c.
18988         (fts_open): Use setup_dir.
18989         (fts_close): Use free_dir.
18990         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
18991         This adds a label and some gotos, but the alternatives were messier.
18992         Check for memory allocation failure when entering a dir.
18993         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
18994         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
18995         (FTS): New member fts_cycle, that is a union that contains the
18996         old active_dir_ht and cycle_state.  All uses changed to mention
18997         fts_cycle.ht and fts_cycle.state.
18998         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
18999         fts.c, with the following changes:
19000         (setup_dir, free_dir): New functions.
19001         (enter_dir): Now returns bool.  Return true if successful, false
19002         if memory exhausted.  All callers changed.
19003         Do not bother partly cleaning up on
19004         memory allocation failure; that is free_dir's job.
19005         However, free ad if hash_insert fails, to avoid memory leak.
19006         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
19007         fts->fts_options to see which union member to use.
19008
19009 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
19010
19011         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
19012         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
19013
19014 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
19015
19016         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
19017
19018 2005-05-20  Jim Meyering  <jim@meyering.net>
19019
19020         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
19021         Now a macro, to pacify GCC.
19022
19023 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
19024
19025         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
19026         of -1.
19027
19028 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
19029
19030         * lib/chown.c (rpl_chown): Return -1 on failure.
19031
19032 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
19033
19034         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
19035         Don't check for stddef.h.
19036         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
19037         don't use its results.
19038         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
19039         since we include them unconditionally.  Don't require
19040         AM_STDBOOL_H, since stdbool is a prerequisite.
19041         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
19042         since we assume C89 or better.
19043         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
19044         as we don't use their results.
19045         Don't check for fchdir, memmove, memset, strrchr, as we use
19046         them unconditionally.
19047         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
19048         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
19049
19050 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
19051
19052         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
19053         Include <stddef.h> unconditionally, since we assume C89 now.
19054         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
19055         * lib/fts.c: Include fts_.h first, to check interface.
19056         Do not include intprops.h; no longer needed.
19057         Include cycle-check.h and hash.h, since fts_.h no longer does.
19058         Remove unnecessary casts of closedir to void.
19059         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
19060         decide whether to decrement nlinks.
19061         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
19062         (FTS): Use struct hash_table * instead of Hash_table, so that
19063         we no longer need to include hash.h here.
19064
19065 2005-05-18  Jim Meyering  <jim@meyering.net>
19066
19067         * modules/dirfd (License): Change to LGPL.  Most of the code
19068         is already in the public domain.
19069
19070 2005-05-18  Jim Meyering  <jim@meyering.net>
19071
19072         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
19073         Reported by Yoann Vandoorselaere.
19074
19075 2005-05-17  Jim Meyering  <jim@meyering.net>
19076
19077         * m4/fts.m4: New file, from coreutils.
19078
19079 2005-05-17  Jim Meyering  <jim@meyering.net>
19080
19081         * lib/fts.c, lib/fts_.h: New files, from coreutils.
19082
19083 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
19084
19085         Sync from coreutils.
19086         * m4/unlinkdir.m4: New file.
19087
19088 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
19089
19090         Sync from coreutils.
19091         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
19092         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
19093         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
19094         White space changes only.
19095         * lib/makepath.c (make_path): Port to hosts where leading "//" is
19096         special.
19097         * lib/yesno.c: Include getline.h, not ctype.h.
19098         (yesno): Don't remove leading white space; POSIX doesn't allow it.
19099         Use getline to remove arbitrary restriction on response length.
19100
19101 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
19102
19103         * config/srclist-update: Spell out "Street" in FSF postal
19104         mail address; this is the style the FSF seems to prefer.
19105
19106         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
19107         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
19108         this updates FSF postal mail address.
19109
19110         Sync from coreutils.
19111         * modules/unlinkdir: New file.
19112         * modules/yesno (Depends-on): Add getline.
19113         * MODULES.html.sh (File system functions): Add unlinkdir.
19114
19115 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
19116
19117         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
19118         lib/strsep.h:
19119         Change the initial comment to refer to GPL, not LGPL.
19120         gnulib-tool will change it to LGPL as needed.
19121
19122         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
19123         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
19124         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
19125         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
19126         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
19127         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
19128         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
19129         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
19130         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
19131         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
19132         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
19133         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
19134         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
19135         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
19136         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
19137         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
19138         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
19139         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
19140         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
19141         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
19142         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
19143         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
19144         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
19145         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
19146         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
19147         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
19148         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
19149         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
19150         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
19151         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
19152         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
19153         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
19154         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
19155         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
19156         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
19157         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
19158         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
19159         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
19160         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
19161         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
19162         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
19163         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
19164         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
19165         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
19166         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
19167         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
19168         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
19169         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
19170         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
19171         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
19172         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
19173         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
19174         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
19175         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
19176         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
19177         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
19178         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
19179         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
19180         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
19181         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
19182         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
19183         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
19184         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
19185         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
19186         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
19187         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
19188         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
19189         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
19190         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
19191         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
19192         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
19193         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
19194         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
19195         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
19196         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
19197         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
19198         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
19199         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
19200         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
19201         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
19202         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
19203         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
19204         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
19205         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
19206         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
19207         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
19208         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
19209         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
19210         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
19211         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
19212         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
19213         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
19214         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
19215         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
19216         lib/yesno.c, lib/yesno.h:
19217         Update FSF postal mail address.
19218
19219 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
19220
19221         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
19222         tests/test-memmem.c, tests/test-stpncpy.c:
19223         Update FSF postal mail address.
19224
19225 2005-05-13  Bruno Haible  <bruno@clisp.org>
19226
19227         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
19228         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
19229         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
19230         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
19231         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
19232         Add support for 64-bit integers in the MSVC compiler.
19233
19234 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
19235
19236         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
19237
19238 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
19239
19240         * gnulib-tool (func_import): Sort and uniquify recommended includes.
19241
19242 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
19243
19244         * doc/getdate.texi (General date syntax): Don't say that date
19245         date --iso-8601=ns generates acceptable dates; it doesn't yet.
19246         Problem reported by Nic Ferrier.
19247
19248 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19249
19250         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
19251         specified in ai_socktype. Fix invalid ai_protocol
19252         check. ai_protocol is usually set to 0 or depending on
19253         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
19254         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
19255         ai_socktype / ai_protocol in the returned addrinfo structure.
19256
19257 2005-05-10  Simon Josefsson  <jas@extundo.com>
19258
19259         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
19260         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
19261
19262 2005-05-10  Karl Berry  <karl@gnu.org>
19263
19264         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
19265         (from http://www.gnu.org/licenses).
19266         * doc/COPYING.LIB: also rename to COPYING.LESSER.
19267         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
19268         fdl.texi suffices.
19269
19270 2005-05-10  Karl Berry  <karl@gnu.org>
19271
19272         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
19273         (COPYING.DOC): remove.
19274
19275         * config/srclist-update: new FSF address.
19276
19277 2005-05-10  Derek Price  <derek@ximbiot.com>
19278
19279         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
19280         possible.
19281
19282 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19283             Bruno Haible  <bruno@clisp.org>
19284
19285         * modules/inet_ntop: New file.
19286         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
19287         inet_ntop.
19288
19289 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19290             Bruno Haible  <bruno@clisp.org>
19291
19292         * m4/inet_ntop.m4: New file.
19293
19294 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19295             Bruno Haible  <bruno@clisp.org>
19296
19297         * lib/inet_ntop.h: New file.
19298         * lib/inet_ntop.c: New file, from glibc with modifications.
19299
19300 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
19301
19302         * modules/time_r (License): Change to LGPL.
19303         * modules/extensions (License): Change to LGPL.  Actually,
19304         the license is more permissive than that, but currently gnulib-tool
19305         doesn't know how to handle more-permissive licenses.
19306
19307         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
19308         Problem reported by Dave Love.
19309
19310 2005-05-08  Jim Meyering  <jim@meyering.net>
19311
19312         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
19313         blank.
19314
19315 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
19316
19317         * modules/argmatch (Depends-on): Add stdbool.
19318         * modules/backupfile (Depends-on): Likewise.
19319         * modules/chdir-long (Depends-on): Likewise.
19320         * modules/closeout (Depends-on): Likewise.
19321         * modules/cycle-check (Depends-on): Likewise.
19322         * modules/dirname (Depends-on): Likewise.
19323         * modules/fnmatch (Depends-on): Likewise.
19324         * modules/fsusage (Depends-on): Likewise.
19325         * modules/fwriteerror (Depends-on): Likewise.
19326         * modules/getcwd (Depends-on): Likewise.
19327         * modules/getloadavg (Depends-on): Likewise.
19328         * modules/hard-locale (Depends-on): Likewise.
19329         * modules/makepath (Depends-on): Likewise.
19330         * modules/mountlist (Depends-on): Likewise.
19331         * modules/nanosleep (Depends-on): Likewise.
19332         * modules/posixtm (Depends-on): Likewise.
19333         * modules/quotearg (Depends-on): Likewise.
19334         * modules/readtokens (Depends-on): Likewise.
19335         * modules/readtokens0 (Depends-on): Likewise.
19336         * modules/readutmp (Depends-on): Likewise.
19337         * modules/save-cwd (Depends-on): Likewise.
19338         * modules/strftime (Depends-on): Likewise.
19339         * modules/userspec (Depends-on): Likewise.
19340         * modules/utimecmp (Depends-on): Likewise.
19341         * modules/xgetcwd (Depends-on): Likewise.
19342         * modules/xnanosleep (Depends-on): Likewise.
19343         * modules/xstrtod (Depends-on): Likewise.
19344         * modules/yesno (Depends-on): Likewise.
19345
19346 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
19347
19348         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
19349         needless checks.
19350
19351 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
19352
19353         Merge from coreutils.  Among other things,
19354         add bulletproofing for cases where stdin, stdout, or stderr are closed.
19355         * lib/fd-safer.c: New file.
19356         * lib/fcntl-safer.h, open-safer.c: Remove.
19357         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
19358         * lib/dup-safer.c: Include unistd-safer.h first.
19359         Don't include errno.h.
19360         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
19361         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
19362         * lib/file-type.c: Rely on file-type.h change.
19363         * lib/getloadavg.c: Include unistd-safer.h.
19364         (getloadavg): Use safer open.
19365         * lib/getusershell.c: Include "stdio-safer.h".
19366         (getusershell): Use safer fopen.
19367         * lib/long-options.c (long_options): Use NULL rather than 0.
19368         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
19369         'free'.
19370         * lib/modechange.c: Likewise.
19371         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
19372         (MODE_DONE): New constant.
19373         (struct mode_change): Remove 'next' member.
19374         (make_node_op_equals): New function; like the old one of the
19375         same name, except it allocates an array.
19376         (mode_compile, mode_create_from_ref): Use it.
19377         (mode_compile): Allocate result as an array, not a linked list.
19378         Parse octal string ourself, so that we catch mistakes like "+0".
19379         (mode_adjust): Arg is an array, not a linked list.
19380         * lib/modechange.c: Include stat-macros.h, xalloc.h.
19381         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
19382         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
19383         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
19384         Remove.  This is now stat-macros.h's job.
19385         (talloc): Remove.  All callers replaced by xalloc, so that
19386         our invokers don't have to worry about reporting memory failures.
19387         (make_node_op_equals): Remove.
19388         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
19389         New constants.
19390         (struct mode_change): Moved here from modechange.h.
19391         (mode_append_entry): Remove.
19392         (mode_compile): Remove MASKED_OPS arg, since it encouraged
19393         apps to have incorrect behavior.  Use simpler algorithm for head
19394         and tail.  Don't futz with umask; that's now the job of mode_adjust.
19395         Detect more invalid usages rather than having somewhat-random behavior.
19396         Don't insert an "a=" action, as that leads to incorrect behavior.
19397         (mode_compile, mode_create_from_ref): Return NULL on error instead
19398         of an enum, since now there's only one way to have an error.  All
19399         callers changed.
19400         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
19401         at the correct time.  Simplify calculation of "+u" and its ilk.
19402         Don't mishandle "+X".
19403         (mode_free): Remove "register" and localize decls.
19404         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
19405         (struct mode_change): Move to modechange.c; callers don't
19406         need to see this stuff.
19407         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
19408         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
19409         (mode_change, mode_adjust): Reflect the new signatures noted above.
19410         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
19411         that might redefine system include files.
19412         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
19413         (my_usleep): Use NULL rather than (void *) 0.
19414         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
19415         Use siginterrupt to specify that system calls should be interrupted.
19416         (rpl_nanosleep): Move initialization of suspended closer to call of
19417         my_usleep.
19418         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
19419         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
19420         (desirable_utmp_entry): New function.
19421         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
19422         using x2nrealloc, to simplify logic.
19423         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
19424         size calculation.  Do not assume utmp file is a regular file.
19425         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
19426         (READ_UTMP_CHECK_PIDS): New constant.
19427         * lib/save-cwd.c: Include unistd-safer.h.
19428         (save_cwd): Use fd_safer.
19429         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
19430         [!_LIBC] Include "stat-macros.h" instead.
19431         * lib/unistd-safer.h (fd_safer): New decl.
19432
19433 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
19434
19435         * modules/getloadavg (Depends-on): Add unistd-safer.
19436         * modules/getusershell (Depends-on): Add stdio-safer.
19437         * modules/lstat (Depends-on): Remove xalloc.
19438         * modules/mkstemp (Depends-on): Add stat-macros.
19439         * modules/modechange (Depends-on): Remove xstrtol.
19440         Add stat-macros, xalloc.
19441         * modules/save-cwd (Depends-on): Add unistd-safer.
19442         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
19443         * modules/unistd-safer (Files): Add lib/fd-safer.c
19444         (Makefile.am): Remove lib_SOURCES.
19445
19446         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
19447         Remove fcntl-safer; unistd-safer supersedes it.
19448
19449 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
19450
19451         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
19452         AC_HEADER_STAT.
19453         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
19454         (gl_PREREQ_CHOWN): Remove.
19455         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
19456         it.  Don't require AC_HEADER_STAT.
19457         (gl_PREREQ_LSTAT): Remove.
19458         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
19459         Don't require AC_HEADER_STAT.
19460         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
19461         (gl_PREREQ_RMDIR): Remove.
19462         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
19463         mention stat-macros.h or AC_HEADER_STAT, since we'll make
19464         the stat-macros module a prerequisite.
19465         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
19466         * m4/filemode.m4 (gl_FILEMODE): Likewise.
19467         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
19468         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
19469         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
19470         variable names.
19471         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
19472         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
19473         variable prefixes.
19474         * m4/fcntl-safer.m4: Remove.
19475         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
19476         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
19477         Invoke gl_PREREQ_FD_SAFER.
19478         (gl_PREREQ_FD_SAFER): New macro.
19479         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
19480         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
19481         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
19482         Remove duplicate call to AC_LIBOBJ(readutmp).
19483         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
19484
19485         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
19486         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
19487
19488 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
19489
19490         * MODULES.html.sh (Misc): Add byteswap.
19491
19492 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
19493
19494         * modules/getcwd (Depends-on): Add extensions.
19495         * modules/openat (Depends-on): Likewise.
19496
19497 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
19498
19499         * modules/byteswap: New file.
19500
19501 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
19502
19503         * m4/byteswap.m4: New file.
19504
19505 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
19506
19507         * lib/byteswap_.h: New file.
19508
19509 2005-04-25  Karl Berry  <karl@gnu.org>
19510
19511         * m4/gettext.m4: Update from GNU gettext 0.14.4.
19512
19513 2005-04-25  Albert Chin  <china@thewrittenword.com>
19514
19515         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
19516         Toolkit C bug.
19517
19518 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
19519
19520         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
19521         (func_ln_if_changed) Remove forcibly for no error message
19522         in case file does not exist.
19523
19524 2005-04-19  Simon Josefsson  <jas@extundo.com>
19525
19526         * gnulib-tool (Options): Make --symlink mean --symbolic.
19527
19528 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
19529
19530         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
19531
19532 2005-04-16  Simon Josefsson  <jas@extundo.com>
19533
19534         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
19535
19536 2005-04-15  Simon Josefsson  <jas@extundo.com>
19537
19538         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
19539
19540 2005-04-15  Simon Josefsson  <jas@extundo.com>
19541
19542         * gnulib-tool: Rename --symlink to --symbolic.
19543
19544 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
19545
19546         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
19547         symbolic links to files instead of copying/moving.  Add --aux-dir,
19548         specifying directory relative --dir where auxiliary build tools
19549         are placed.
19550
19551 2005-04-14  Bruno Haible  <bruno@clisp.org>
19552
19553         * modules/allocsa (License): Change to LGPL.
19554         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
19555
19556 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
19557
19558         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
19559         that "UTC +1 second" continues to work.  Problem reported
19560         by Dmitry V. Levin.
19561         (relunit_snumber): New rule.
19562         (relunit): Use it.
19563
19564 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
19565
19566         * lib/getdate.y (universal_time_zone_table): New constant.
19567         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
19568         universal_time_zone_table.
19569         (lookup_zone): Prefer universal_time_zone_table to
19570         local_time_zone_table, so that "GMT" time stamps are allowed in
19571         London during the summer.  Problem reported by Ian Abbott.
19572
19573 2005-04-12  Jim Meyering  <jim@meyering.net>
19574
19575         * lib/human.c (humblock): Set *options even when returning due to
19576         xstrtoumax conversion failure.  Thanks to a used-uninitialized
19577         warning from gcc-4.
19578
19579 2005-04-09  Jim Meyering  <jim@meyering.net>
19580
19581         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
19582         -Wuninitialized: initialize tm0.tm_year.
19583
19584 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
19585
19586         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
19587         count, since there's no maximum.  All uses changed.
19588         Add member dsts_seen.
19589         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
19590         not being INT_MAX.
19591         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
19592         Use pc_rels_seen to decide whther a date is absolute.
19593
19594         * lib/getdate.y (number): Don't overwrite year.
19595         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
19596         check.
19597
19598 2005-04-02  Simon Josefsson  <jas@extundo.com>
19599
19600         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
19601         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
19602
19603 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
19604
19605         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
19606         where no absolute path name can be longer than PATH_MAX.
19607
19608 2005-03-27  Jim Meyering  <jim@meyering.net>
19609
19610         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
19611
19612 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
19613
19614         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
19615         "one's complement" -> "ones' complement" in comment, as per Knuth.
19616         "value of type" -> "type or expression" in comment.
19617         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
19618
19619 2005-03-26  Jim Meyering  <jim@meyering.net>
19620
19621         Comment nits.
19622         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
19623         Correct typos: s/or/of/.
19624
19625 2005-03-26  Jim Meyering  <jim@meyering.net>
19626
19627         * modules/check-include-files: Move to ../ and rename to...
19628         * check-module: ...this.
19629
19630 2005-03-25  Jim Meyering  <jim@meyering.net>
19631
19632         * modules/xvasprintf (Files): Add xalloc.h.
19633
19634 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
19635
19636         * modules/gettext (Files): config/config.rpath ->
19637         build-aux/config.rpath
19638         * modules/iconv (Files): Likewise.
19639         Problem reported by Oskar Liljeblad.
19640
19641 2005-03-23  Jim Meyering  <jim@meyering.net>
19642
19643         * modules/check-include-files: New script to check for
19644         missing dependencies, multiple includes, etc.
19645
19646         * modules/c-strtold (Depends-on): Add xalloc.
19647         * modules/c-strtod (Depends-on): Add xalloc.
19648         * modules/hash (Depends-on): Add xalloc.
19649         (Files): Remove lib/xalloc.h.
19650
19651         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
19652         * modules/userspec (Files): Add lib/inttostr.h.
19653
19654 2005-03-23  Jim Meyering  <jim@meyering.net>
19655
19656         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
19657
19658 2005-03-22  Jim Meyering  <jim@meyering.net>
19659
19660         * modules/stat-macros: New module.
19661         * modules/canonicalize, modules/euidaccess, modules/file-type,
19662         * modules/filemode, modules/lchown, modules/makepath,
19663         * modules/rmdir, modules/stat: Depend on new stat-macros module
19664         rather than listing lib/stat-macros.h manually.
19665         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
19666
19667 2005-03-22  Jim Meyering  <jim@meyering.net>
19668
19669         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
19670
19671 2005-03-22  Bruno Haible  <bruno@clisp.org>
19672
19673         * config/srclist.txt: Replace target directory 'config' with
19674         'build-aux'.
19675         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
19676         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
19677         ../build-aux/.
19678
19679 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
19680
19681         * modules/chdir-long (Depends-on): Add mempcpy.
19682
19683         * modules/acl, modules/backupfile, modules/c-strtod,
19684         modules/c-strtold, modules/canon-host, modules/canonicalize,
19685         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
19686         modules/exclude, modules/exitfail, modules/file-type,
19687         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
19688         modules/getdate, modules/getline, modules/getpagesize,
19689         modules/getpass, modules/getugroups, modules/group-member,
19690         modules/hard-locale, modules/hash, modules/human, modules/idcache,
19691         modules/inttostr, modules/long-options, modules/makepath,
19692         modules/md5, modules/memcasecmp, modules/memcoll,
19693         modules/modechange, modules/mountlist, modules/path-concat,
19694         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
19695         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
19696         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
19697         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
19698         modules/strftime, modules/strndup, modules/strverscmp,
19699         modules/timespec, modules/unlocked-io, modules/userspec,
19700         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
19701         modules/yesno:
19702         Remove lib_SOURCES line from Makefile.am section, as this is now
19703         done automatically by the corresponding Autoconf macro.
19704
19705 2005-03-21  Jim Meyering  <jim@meyering.net>
19706
19707         Changes imported from coreutils.
19708
19709         * lib/cycle-check.c: Don't include xalloc.h.
19710
19711         * lib/path-concat.c: Don't include assert.h.
19712         (path_concat): Remove assertion that would have triggered
19713         for ABASE starting with more than one slash.
19714         Reported by Andreas Schwab.
19715
19716         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
19717         properly when ABASE is an absolute file name.
19718         Correct the description of this function.
19719         Include <assert.h>.
19720         Add an assertion and a test driver.
19721         This fixes a bug introduced on 2004-07-02.
19722         Andreas Schwab reported the resulting failure of cp --parents:
19723         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
19724
19725 2005-03-21  Jim Meyering  <jim@meyering.net>
19726
19727         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
19728         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
19729
19730 2005-03-21  Jim Meyering  <jim@meyering.net>
19731         and  Paul Eggert  <eggert@cs.ucla.edu>
19732
19733         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
19734         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
19735         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
19736         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
19737         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
19738         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
19739         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
19740         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
19741         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
19742         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
19743         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
19744         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
19745         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
19746         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
19747         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
19748         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
19749         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
19750         for these modules.
19751
19752 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
19753
19754         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
19755         (which shouldn't happen), generate nothing instead of returning 0
19756         immediately, so that nstrftime (NULL, ...) doesn't return 0.
19757
19758 2005-03-16  Bruno Haible  <bruno@clisp.org>
19759
19760         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
19761         HAVE_LONGLONG_64BIT.
19762
19763 2005-03-16  Bruno Haible  <bruno@clisp.org>
19764
19765         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
19766         HAVE_LONGLONG_64BIT.
19767
19768 2005-03-16  Bruno Haible  <bruno@clisp.org>
19769
19770         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
19771         HAVE_LONGLONG_64BIT.
19772
19773 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
19774
19775         * lib/strftime.c (my_strftime): Prepend space to format so that we can
19776         reliably distinguish strftime failure from empty output on POSIX
19777         hosts.
19778
19779 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
19780
19781         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
19782         (iconv_string): Don't guess a size-zero buffer, as that might cause
19783         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
19784         result would be 'too large', where 'too large' is (heuristically)
19785         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
19786         overflow concerns.  This will prevent some unwanted malloc failures
19787         when the inputs are very large.
19788
19789 2005-03-15  Karl Berry  <karl@gnu.org>
19790
19791         * config/srclist.txt (config.rpath): from gettext.
19792         * config/config.rpath: update.
19793
19794 2005-03-15  Bruno Haible  <bruno@clisp.org>
19795
19796         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
19797         to 'negate'.
19798
19799         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
19800         variable.
19801
19802         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
19803         results.
19804
19805 2005-03-14  Simon Josefsson  <jas@extundo.com>
19806
19807         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
19808         <fx@gnu.org>.
19809
19810 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
19811
19812         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
19813         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
19814         intprops.h.
19815         * lib/strtol.c: Likewise.
19816
19817 2005-03-14  Jim Meyering  <jim@meyering.net>
19818
19819         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
19820         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
19821         to be nonzero so that we (and caller) can detect the difference
19822         between a valid zero-length expansion and an error return, even
19823         when the underlying strftime fails before writing anything into
19824         that location.
19825
19826 2005-03-14  Bruno Haible  <bruno@clisp.org>
19827
19828         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
19829         Update from GNU gettext 0.14.3.
19830
19831 2005-03-10  Jim Meyering  <jim@meyering.net>
19832
19833         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
19834
19835 2005-03-10  Jim Meyering  <jim@meyering.net>
19836
19837         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
19838         so that this module works on systems without fchdir.
19839
19840 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
19841
19842         Factor int-properties macros into a single file, except for
19843         glibc-related files.
19844         * lib/intprops.h: New file.
19845         * lib/getloadavg.c: Include it instead of limits.h.
19846         (INT_STRLEN_BOUND): Remove.
19847         * lib/human.c: Include intprops.h.
19848         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
19849         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
19850         302/1000.
19851         * lib/inttostr.h: Include intprops.h instead of limits.h.
19852         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
19853         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
19854         for consistency with intprops.h.
19855         (time_t_is_integer, twos_complement_arithmetic): Use them.
19856         * lib/sig2str.h: Include <signal.h>, intprops.h.
19857         (INT_STRLEN_BOUND): Remove.
19858         * lib/strftime.c (TYPE_SIGNED): Remove.
19859         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
19860         * lib/strtol.c: Adjust comments to match intprops.h.
19861         * lib/userspec.c: Include intprops.h.
19862         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
19863         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
19864         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
19865         instead of rolling our own expressions.
19866         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
19867
19868         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
19869         instead of int.
19870         (my_strftime): Do not mishandle years close to INT_MAX, by doing
19871         the right thing even if adding 1900 would overflow.  Similarly
19872         for tm_mon + 1 and tm_yday + 1.
19873         Make %Y always equivalent to %C%y, and similarly for %G and %g.
19874         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
19875         (DO_SIGNED_NUMBER): New macro.
19876         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
19877
19878 2005-03-07  Bruno Haible  <bruno@clisp.org>
19879
19880         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
19881
19882 2005-03-07  Bruno Haible  <bruno@clisp.org>
19883
19884         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
19885
19886 2005-03-04  Derek R. Price  <derek@ximbiot.com>
19887
19888         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
19889         (func_import): Only replace files via --import when they have actually
19890         changed.
19891
19892 2005-03-03  Derek R. Price  <derek@ximbiot.com>
19893
19894         * m4/mmap-anon.m4: New file.
19895         * m4/pagealign_alloc.m4: New file.
19896
19897 2005-03-03  Derek R. Price  <derek@ximbiot.com>
19898             Bruno Haible  <bruno@clisp.org>
19899
19900         * modules/pagealign_alloc: New file.
19901         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
19902
19903 2005-03-03  Derek R. Price  <derek@ximbiot.com>
19904             Bruno Haible  <bruno@clisp.org>
19905
19906         * lib/pagealign_alloc.h: New file.
19907         * lib/pagealign_alloc.c: New file.
19908
19909 2005-03-03  Bruno Haible  <bruno@clisp.org>
19910
19911         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
19912         Use an all-permissive copyright notice, recommended by RMS.
19913
19914 2005-03-02  Bruno Haible  <bruno@clisp.org>
19915
19916         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
19917         of AIX, the replacement has to be done only after <string.h> is
19918         included, therefore not in config.h. stpncpy.h does the replacement,
19919         and stpncpy.c uses it.
19920
19921 2005-03-02  Bruno Haible  <bruno@clisp.org>
19922
19923         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
19924         stpncpy.c uses it.
19925
19926 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
19927
19928         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
19929         The workaround isn't strictly needed for POSIX conformance, and
19930         it's too much of a pain to configure and maintain.  We'll ask
19931         people to fix their kernels instead.
19932         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
19933         (NANOSLEEP_BUG_WORKAROUND): Remove.
19934         (xnanosleep): Remove the workaround.
19935
19936 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
19937
19938         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
19939         Reported by Derek Price.
19940         (Include): Add "timespec.h".
19941
19942         * modules/xnanosleep (Depends-on): Remove gethrxtime.
19943
19944 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
19945
19946         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
19947         to detect nanosleep bug.
19948
19949 2005-03-01  Bruno Haible  <bruno@clisp.org>
19950
19951         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
19952
19953 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
19954
19955         * modules/gethrxtime: New file.
19956         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
19957         (Depends-on): Add gethrxtime.
19958         (configure.ac): Add gl_XNANOSLEEP.
19959         (Makefile.am): Remove lib_SOURCES line.
19960
19961 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
19962
19963         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
19964         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
19965
19966 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
19967
19968         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
19969         * lib/timespec.h (gettime): Return void, since it always
19970         succeeds now.  All uses changed.
19971         * lib/gettime.c (gettime) Likewise.
19972         [HAVE_NANOTIME]: Prefer nanotime.
19973         Assume gettimeofday succeeds, as POSIX requires.
19974         Assime time () succeeds, since other code already does.
19975         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
19976         (timespec_subtract): Remove.
19977         (NANOSLEEP_BUG_WORKAROUND): New constant.
19978         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
19979         things considerably.  Use it only on GNU/Linux hosts, since the
19980         workaround shouldn't be needed elsewhere.
19981
19982 2005-02-24  Bruno Haible  <bruno@clisp.org>
19983
19984         * modules/gettext (Files): Add m4/glibc2.m4.
19985
19986 2005-02-24  Bruno Haible  <bruno@clisp.org>
19987
19988         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
19989         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
19990         * m4/progtest.m4:
19991         Update from GNU gettext 0.14.2.
19992         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
19993
19994 2005-02-24  Bruno Haible  <bruno@clisp.org>
19995
19996         * lib/localcharset.c: Update from GNU gettext 0.14.2.
19997         * lib/config.charset: Update from GNU gettext 0.14.2.
19998
19999 2005-02-24  Bruno Haible  <bruno@clisp.org>
20000
20001         * lib/gettext.h: Update from GNU gettext 0.14.2.
20002
20003 2005-02-23  Simon Josefsson  <jas@extundo.com>
20004
20005         * m4/iconvme.m4: New file.
20006
20007 2005-02-23  Jim Meyering  <jim@meyering.net>
20008
20009         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
20010         change.
20011         Thanks to Bruno Haible for catching it.
20012
20013 2005-02-22  Simon Josefsson  <jas@extundo.com>
20014
20015         * modules/iconvme: New file.
20016
20017         * MODULES.html.sh: Add iconvme.
20018
20019 2005-02-22  Simon Josefsson  <jas@extundo.com>
20020
20021         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
20022
20023 2005-02-22  Simon Josefsson  <jas@extundo.com>
20024
20025         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
20026
20027 2005-02-22  Jim Meyering  <jim@meyering.net>
20028
20029         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
20030         s/ifndef/ifdef/.
20031
20032 2005-02-20  Neil Conway  <neilc@samurai.com>
20033
20034         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
20035         returned by OSX/Darwin if the specified buffer is not large
20036         enough for the hostname.
20037
20038 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
20039
20040         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
20041         pass it to _help, otherwise the latter coredumps trying to
20042         dereference state.root_argp.
20043
20044 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
20045
20046         * modules/chdir-long (Depends-on): Add memrchr.
20047         * modules/memrchr (Files): Add lib/memrchr.h.
20048         (Include): "memrchr.h".
20049
20050 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
20051
20052         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
20053
20054 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
20055
20056         * lib/memrchr.h: New file.
20057         * lib/chdir-long.c: Include it.
20058         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
20059         Don't bother including stddef.h.
20060
20061 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
20062
20063         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
20064         inclusion.
20065         Include <sys/types.h>, for dev_t.
20066         (ME_DUMMY, ME_REMOTE): Move from here....
20067         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
20068         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
20069         Dmitry V. Levin.
20070         Include mountlist.h first, to test the interface.
20071
20072 2005-01-29  Bruno Haible  <bruno@clisp.org>
20073
20074         * lib/progname.c (program_name): Initialize.
20075         Needed when linking statically on MacOS X.
20076
20077 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
20078
20079         Sync from coreutils.
20080         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
20081         (Depends-on): Add c-strtod.
20082         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
20083
20084 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
20085
20086         Sync from coreutils.
20087         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
20088
20089         Remove files that are specific to coreutils.
20090         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
20091
20092 2005-01-28  Bruno Haible  <bruno@clisp.org>
20093
20094         * modules/javacomp: New file.
20095         * MODULES.html.sh (Java): Add javacomp.
20096
20097 2005-01-28  Bruno Haible  <bruno@clisp.org>
20098
20099         * m4/javacomp.m4: New file, from GNU gettext.
20100
20101 2005-01-28  Bruno Haible  <bruno@clisp.org>
20102
20103         * lib/javacomp.sh.in: New file, from GNU gettext.
20104         * lib/javacomp.h: New file, from GNU gettext.
20105         * lib/javacomp.c: New file, from GNU gettext.
20106
20107 2005-01-26  Simon Josefsson  <jas@extundo.com>
20108
20109         * lib/gai_strerror.c: Use GPL in header.
20110
20111 2005-01-26  Bruno Haible  <bruno@clisp.org>
20112
20113         * modules/javaexec: New file.
20114         * MODULES.html.sh (Java): Add javaexec.
20115
20116 2005-01-26  Bruno Haible  <bruno@clisp.org>
20117
20118         * m4/javaexec.m4: New file, from GNU gettext.
20119
20120 2005-01-26  Bruno Haible  <bruno@clisp.org>
20121
20122         * lib/javaexec.sh.in: New file, from GNU gettext.
20123         * lib/javaexec.h: New file, from GNU gettext.
20124         * lib/javaexec.c: New file, from GNU gettext.
20125
20126 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
20127
20128         * modules/lchown (Depends-on): Remove lchown.h
20129
20130 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
20131
20132         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
20133         must be defined if the header file was not found, in order
20134         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
20135
20136 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
20137
20138         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
20139         initializers for struct pentry_state.
20140         (__argp_error): Check return value of __asprintf
20141         (__argp_failure): Translate error message
20142
20143         * lib/argp-parse.c: Removed braces around the expansion of N_()
20144
20145 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
20146
20147         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
20148         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
20149         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
20150         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
20151         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
20152         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
20153         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
20154         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
20155         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
20156         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
20157         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
20158         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
20159         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
20160         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
20161         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
20162         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
20163         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
20164         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
20165         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
20166         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
20167         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
20168         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
20169         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
20170         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
20171         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
20172         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
20173         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
20174         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
20175         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
20176         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
20177         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
20178         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
20179         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
20180         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
20181         xstrtol.m4, xstrtoumax.m4, yesno.m4:
20182         Use an all-permissive copyright notice, recommended by RMS.
20183
20184 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
20185
20186         * modules/chdir-long (Depends-on): Remove mempcpy.
20187
20188 2005-01-21  Jim Meyering  <jim@meyering.net>
20189
20190         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
20191         same value as for Solaris 9.
20192
20193         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
20194         component length.  This included changing the parameter to be
20195         of type `char *' rather than `char const *'.
20196         * lib/chdir-long.h (chdir_long): Update prototype.
20197
20198         * lib/openat.c (fdopendir, fstatat): New functions.
20199         * lib/openat.h: Include headers required for use of DIR and struct
20200         stat.
20201         [AT_SYMLINK_NOFOLLOW]: Define.
20202         (fdopendir, fstatat): Add prototypes.
20203
20204 2005-01-21  Bruno Haible  <bruno@clisp.org>
20205
20206         * modules/classpath: New file.
20207         * MODULES.html.sh (Java): Add classpath.
20208
20209 2005-01-21  Bruno Haible  <bruno@clisp.org>
20210
20211         * lib/classpath.h: New file, from GNU gettext.
20212         * lib/classpath.c: New file, from GNU gettext.
20213
20214 2005-01-20  Simon Josefsson  <jas@extundo.com>
20215
20216         * modules/version-etc-fsf: New file.
20217
20218 2005-01-20  Simon Josefsson  <jas@extundo.com>
20219
20220         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
20221         * lib/version-etc.c: Remove version_etc_copyright.
20222         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
20223         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
20224
20225 2005-01-20  Simon Josefsson  <jas@extundo.com>
20226
20227         * lib/base64.h (isbase64): Add.
20228
20229         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
20230         using a unsigned prototype, don't inline.
20231         (base64_decode): Use it.
20232
20233 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
20234
20235         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
20236         it.
20237
20238 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
20239
20240         * lib/save-cwd.c (save_cwd): Remove code to support the case
20241         where fchdir is missing or flaky.
20242
20243 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
20244
20245         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
20246
20247 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
20248
20249         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
20250         AC_LIBSOURCES now does this.
20251         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
20252         with new ullong_max module.
20253
20254 2005-01-19  Bruno Haible  <bruno@clisp.org>
20255
20256         * modules/sh-quote: New file.
20257         * MODULES.html.sh (Executing programs): Add sh-quote.
20258
20259 2005-01-19  Bruno Haible  <bruno@clisp.org>
20260
20261         * lib/sh-quote.h: New file, from GNU gettext.
20262         * lib/sh-quote.c: New file, from GNU gettext.
20263
20264 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
20265
20266         Merge from coreutils.
20267         * m4/ullong_max.m4: New file.
20268         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
20269         (gl_MACROS): Assume localeconv exists.
20270
20271 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
20272
20273         Merge changes from coreutils, as described below in several
20274         changelogs dated today.
20275
20276         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
20277         (O_DIRECTORY): Remove; not needed here, since "." must be
20278         a directory.  All uses removed.
20279         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
20280         universal on Suns, and we also need to test for IRIX.
20281         Revamp code to use 'if' rather than '#if'.
20282         Avoid unnecessary comparison of cwd->desc to 0.
20283
20284         * lib/utimens.c (futimens): Robustify the previous patch, by checking
20285         for known valid error numbers rather than observed invalid ones.
20286
20287 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
20288
20289         * modules/ullong_max: New file.
20290
20291         * modules/chdir-long, modules/openat: New files.
20292         * modules/save-cwd (Depends-on): Depend on chdir-long.
20293         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
20294
20295 2005-01-18  Jim Meyering  <jim@meyering.net>
20296
20297         Merge from coreutils.
20298         * m4/chdir-long.m4, m4/openat.m4: New files.
20299         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
20300         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
20301         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
20302         is sane and DOES follow symlinks.  Besides, testing 20 different
20303         systems found no broken chown implementations.
20304         Prompted by a change in rsync's copy of this macro.
20305         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
20306
20307         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
20308
20309         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
20310         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
20311         NULL-means-set-to-current-time semantics.
20312         Remove temporary file immediately, rather than waiting
20313         for configure's at-exit trap code to do it.
20314
20315 2005-01-18  Jim Meyering  <jim@meyering.net>
20316
20317         * lib/version-etc.c (version_etc_copyright): Update copyright date.
20318
20319         * lib/utimens.c (futimens): Account for the fact that futimes
20320         can also fail with errno == ENOSYS or errno == ENOENT.
20321         Patch from Dmitry V. Levin.
20322
20323         Change the name of the robust chdir function from chdir to chdir_long.
20324         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
20325         (restore_cwd): Use chdir_long, not chdir.
20326         * lib/chdir-long.c: Renamed from chdir.c.
20327         * lib/chdir-long.h: Renamed from chdir.h.
20328         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
20329         Hurd.
20330
20331 2005-01-18  Bruno Haible  <bruno@clisp.org>
20332
20333         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
20334         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
20335         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
20336         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
20337         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
20338         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
20339         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
20340         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
20341         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
20342         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
20343         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
20344         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
20345         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
20346         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
20347         Use an all-permissive copyright notice, recommended by RMS.
20348
20349 2005-01-18  Bob Proulx  <bob@proulx.com>
20350
20351         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
20352         simplify offsetof() macro construct to avoid compile failure with
20353         native HP-UX 11.0 ANSI C compiler.
20354
20355 2005-01-17  Bruno Haible  <bruno@clisp.org>
20356
20357         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
20358         redundant because stpncpy.m4 takes care of it.
20359
20360 2005-01-17  Bruno Haible  <bruno@clisp.org>
20361
20362         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
20363
20364 2005-01-17  Bruno Haible  <bruno@clisp.org>
20365
20366         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
20367         used.
20368
20369 2005-01-17  Bruno Haible  <bruno@clisp.org>
20370
20371         * lib/fwriteerror.h (fwriteerror): Change specification to include
20372         fclose.
20373         * lib/fwriteerror.c: Include <stdbool.h>.
20374         (fwriteerror): At the end, close the file stream. Record whether
20375         stdout was already closed.
20376
20377 2005-01-17  Bruno Haible  <bruno@clisp.org>
20378
20379         * lib/execute.c (environ): Declare if needed.
20380         * lib/pipe.c (environ): Likewise.
20381         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
20382
20383 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
20384
20385         * modules/argp: Depend on vsnprintf
20386
20387 2005-01-10  Jim Meyering  <jim@meyering.net>
20388
20389         * modules/closeout (Depends-on): Add atexit.
20390
20391 2005-01-06  Bruno Haible  <bruno@clisp.org>
20392
20393         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
20394
20395 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
20396
20397         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
20398         definitions to be after all include files, to avoid collisions.
20399         Problem reported by Bob Proulx.
20400
20401 2005-01-04  Jim Meyering  <jim@meyering.net>
20402
20403         Changes imported from coreutils.
20404         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
20405         as the mkstemp template, use a temporary directory and an
20406         8.3-friendly template to avoid trouble on systems like DJGPP.
20407         Reported by Juan M. Guerrero via Stepan Kasal.
20408         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
20409         close. Remove the temporary directory right away, rather than waiting
20410         for configure's at-exit trap code to do it.
20411         Suggestion from Stepan Kasal.
20412
20413 2005-01-01  Simon Josefsson  <jas@extundo.com>
20414
20415         * gnulib-tool: Print #include directives when --import'ing.
20416
20417 2004-12-28  Simon Josefsson  <jas@extundo.com>
20418
20419         * tests/test-base64.c: Include required header files.  Remove
20420         unused variables.
20421
20422 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
20423
20424         * modules/error (Depends-on): Remove gettext.
20425
20426 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
20427
20428         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
20429         not needed.  This removes a dependency on the gettext module.
20430         [defined _LIBC]: Do not include <libintl.h>; not needed.
20431
20432 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
20433
20434         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
20435         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
20436
20437 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
20438
20439         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
20440         HAVE_DECL_STRTOLD.
20441
20442 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
20443
20444         * modules/getdate (Depends-on): Remove alloca-opt.
20445
20446 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
20447
20448         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
20449
20450 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
20451
20452         * lib/argp-parse.c: Include <stddef.h>.
20453         (alignof, alignto): New macros.
20454         (parser_init): Don't assume that void * is aligned sufficiently
20455         for struct option.
20456
20457         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
20458         need to extend the stack.
20459         (YYINITDEPTH): New macro, so that the initial stack isn't overly
20460         large.
20461
20462 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
20463
20464         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
20465
20466 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
20467
20468         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
20469         (2004-10-24) change.  Apparently this was a false alarm.
20470
20471         * modules/getdate: Depend on alloca-opt, not alloca.
20472
20473 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
20474
20475         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
20476         Remove now-obsolete comment about AIX.
20477         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
20478         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
20479         (YYMAXDEPTH): New macro.
20480
20481 2004-12-18  Simon Josefsson  <jas@extundo.com>
20482
20483         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
20484
20485 2004-12-18  Bruno Haible  <bruno@clisp.org>
20486
20487         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
20488
20489 2004-12-18  Bruno Haible  <bruno@clisp.org>
20490
20491         * lib/fatal-signal.c (fatal_signals): Make non-const.
20492         (init_fatal_signals): New function.
20493         (uninstall_handlers, install_handlers): Ignore signals that were set to
20494         SIG_IGN.
20495         (at_fatal_signal): Call init_fatal_signals.
20496         (init_fatal_signal_set): Likewise. Ignore signals that were set to
20497         SIG_IGN.
20498         Reported by Paul Eggert.
20499
20500 2004-12-18  Bruno Haible  <bruno@clisp.org>
20501
20502         * doc/alloca.texi: New file.
20503         * doc/alloca-opt.texi: New file.
20504
20505 2004-12-17  Jim Meyering  <jim@meyering.net>
20506
20507         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
20508         Otherwise, install-sh could exit with improper exit status when
20509         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
20510
20511 2004-12-16  Simon Josefsson  <jas@extundo.com>
20512
20513         * tests/test-base64.c: Add license.
20514
20515 2004-12-15  Stepan Kasal  <address@hidden>
20516
20517         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
20518
20519 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
20520
20521         * modules/getcwd (Files): Add m4/d-ino.m4.
20522         Suggested by Mark D. Baushke.
20523
20524 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
20525
20526         * lib/getdate.y (textint): New member "negative".
20527         (time_zone_hhmm): New function.
20528         Expect 14 shift-reduce conflicts, not 13.
20529         (o_colon_minutes): New rule.
20530         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
20531         (yylex): Set the "negative" member of signed numbers.
20532
20533 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
20534
20535         * doc/getdate.texi (Time of day items, Time zone items):
20536         Describe new formats +00:00, UTC+00:00.
20537
20538 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
20539
20540         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
20541         spurious "-l"s.  Problem reported by Stepan Kasal.
20542
20543 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
20544
20545         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
20546         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
20547
20548 2004-12-04  Simon Josefsson  <jas@extundo.com>
20549
20550         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
20551         Vandoorselaere <yoann@prelude-ids.org>.
20552
20553 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
20554
20555         Changes imported from coreutils.
20556         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
20557         exist.
20558         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
20559
20560 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
20561
20562         Changes imported from coreutils.
20563         * lib/hard-locale.c: Assume <locale.h> exists.
20564         Include "strdup.h".
20565         (GLIBC_VERSION): New macro.
20566         (hard_locale): Assume setlocale exists.
20567         Rewrite to avoid #ifdef.
20568         Use strdup rather than malloc + strcpy.
20569         * lib/human.c: Assume <locale.h> exists.
20570         (human_readable): Assume localeconv exists.
20571
20572 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
20573
20574         * modules/hard-locale (Depends-on): Add strdup.
20575
20576 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
20577
20578         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
20579         convert T2, not T.  (Imported from libc.)
20580
20581 2004-11-30  Simon Josefsson  <jas@extundo.com>
20582
20583         * modules/restrict (License): Change to LGPL.
20584
20585 2004-11-30  Simon Josefsson  <jas@extundo.com>
20586
20587         * m4/restrict.m4: Add copyright and copying conditions.
20588
20589 2004-11-30  Simon Josefsson  <jas@extundo.com>
20590
20591         * m4/base64.m4: New file.
20592
20593 2004-11-30  Simon Josefsson  <jas@extundo.com>
20594
20595         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
20596         base64.
20597
20598         * tests/test-base64.c: New file.
20599
20600         * modules/base64: New file.
20601
20602 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
20603
20604         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
20605         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
20606
20607         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
20608
20609 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
20610
20611         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
20612         (__getcwd.c): Don't restore errno; glibc doesn't.
20613         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
20614         first, falling back to our code only if its results look suspicious.
20615         Ensure that the resulting buffer is only as large as necessary.
20616
20617         * lib/readutmp.c: Include readutmp.h first.
20618         Include <errno.h>, since readutmp.h no longer does that.
20619         * lib/readutmp.h: Don't include <errno.h>,
20620         <sys/param.h>, <time.h>; not needed to establish interface.
20621         (errno): Remove decl.
20622         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
20623         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
20624         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
20625
20626 2004-11-28  Simon Josefsson  <jas@extundo.com>
20627
20628         * lib/base64.h, base64.c: New file.
20629
20630 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
20631
20632         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
20633
20634 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
20635
20636         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
20637         (Depends-on): Remove pathmax, same.  Add mempcpy.
20638         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
20639         (Makefile.am): Append getcwd.h to lib_SOURCES.
20640         (Include): Add getcwd.h.
20641         (Maintainer): Change from Jim Meyering to "all, glibc",
20642         since getdate now uses intended-for-glibc code.
20643         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
20644         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
20645
20646 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
20647
20648         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
20649         HP's ANSI C compiler.
20650         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
20651         Declaring int functions causes warnings on some modern systems and
20652         shouldn't be needed to compile on ancient ones.
20653         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
20654         defined.
20655
20656         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
20657         with the following changes.
20658         (__set_errno): Parenthesize properly.
20659         Include <stdbool.h>.
20660         (MIN, MAX, MATCHING_INO): New macros.
20661         (__getcwd): Define with prototype, not K&R form.
20662         Use heuristics to allocate default buffer on stack if possible.
20663         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
20664         behavior, and to avoid the PATH_MAX limit when computing
20665         ../../../../...
20666         Use MATCHING_INO to compare inode number to file.
20667         Check for arithmetic overflow in size calculations.
20668         Fix bug in reallocation of dot array that caused getcwd to fail
20669         on directories nested deeper than 75.
20670         Be more careful about saving errno on error.
20671         Do not use realloc; use only free+malloc, as this is a bit
20672         more flexible and avoids a needless copy operation.
20673         Do not inspect st_dev and st_ino for symbolic links; POSIX
20674         doesn't specify the latter.
20675         Check for closedir errors.
20676         Avoid needless casts.
20677         Use "#ifdef weak_alias" around weak_alias, to be like other
20678         glibc code.
20679         The following changes to getcwd.c have effect only when used in
20680         gnulib; they have no effect inside glibc proper.
20681         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
20682         as alloca isn't used.
20683         (alloca, __alloca): Likewise.
20684         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
20685         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
20686         unconditionally, as gnulib assumes C89 or better.
20687         Do not include <sys/param.h>.
20688         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
20689         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
20690         better.
20691         (NULL) [!defined NULL]: Remove; we assume C89 or better.
20692         Include <dirent.h> in a way that is compatible with modern Autoconf.
20693         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
20694         New macros, if not already defined.
20695         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
20696         Use "_LIBC", not "defined _LIBC", for consistency.
20697         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
20698         a mempcpy module.
20699         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
20700         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
20701         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
20702         credit only to Jim Meyering and adjust the copyright dates.
20703         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
20704         <stdlib.h>, <unistd.h>, "pathmax.h".
20705         Instead, include "xgetcwd.h" (first) and "getcwd.h".
20706         (INITIAL_BUFFER_SIZE): Remove.
20707         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
20708
20709 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
20710
20711         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
20712         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
20713         Use the _ONCE methods, for efficiency.
20714         Check for fcntl.h.  In test program, include <errno.h>
20715         and <fcntl.h> if available.  Remove old K&R cruft from
20716         test program.  Check for common errors in GNU/Linux,
20717         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
20718         don't do AC_LIBOBJ, as that's getcwd.m4's job.
20719         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
20720         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
20721         name accordingly.
20722         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
20723         accommodate new getcwd.c.
20724         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
20725         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
20726         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
20727         that's all we need now.
20728
20729 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
20730
20731         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
20732         argp-parse.c depends on getopt internals, that means we should
20733         always use our getopt, to be on the safe side.
20734         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
20735         order not to spoil the result of an eventual previous invocation
20736         of gl_GETOPT_SUBSTITUTE.
20737
20738 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
20739
20740         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
20741         redefinition warnings. To avoid them, include the defines
20742         in `#if !defined __need_getopt ... #endif'. The only place
20743         where __getopt_argv_const is used is in definitions
20744         of getopt_long and getopt_long_only below, which are as well
20745         protected by `#ifndef __need_getopt'.
20746         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
20747         __need_getopt after including <stdio.h> and <unistd.h> These
20748         headers might have defined it.
20749
20750 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
20751
20752         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
20753
20754 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
20755
20756         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
20757         (futimens): New function, which uses futimes if available.
20758         (futimens, utimens): Support timespec==NULL, with same semantics
20759         as utime and utimens.
20760         * lib/utimens.h (futimens): New decl.
20761
20762 2004-11-23  Jim Meyering  <jim@meyering.net>
20763
20764         * lib/getopt_.h: Remove trailing blanks.
20765
20766 2004-11-23  Jim Meyering  <jim@meyering.net>
20767
20768         * lib/__fpending.c: Add comment.
20769
20770 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
20771
20772         * modules/canonicalize (Depends-on): Add xreadlink.
20773         Problem reported by James Youngman.
20774
20775 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
20776
20777         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
20778         New macros.
20779         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
20780         optopt): Use them instead of invoking ## directly; otherwise, the
20781         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
20782
20783 2004-11-19  Bruno Haible  <bruno@clisp.org>
20784
20785         * lib/strtok_r.c: Move comments from here...
20786         * lib/strtok_r.h: ... to here.
20787
20788 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
20789
20790         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
20791         implementations that mishandle size_t overflow.
20792
20793 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
20794
20795         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
20796         might fail.  Problem reported by Yoann Vandoorselaere.
20797         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
20798         implementations that mishandle size_t overflow.
20799
20800 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
20801
20802         * modules/canon-host (Depends-on): Add strdup.
20803
20804 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
20805
20806         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
20807
20808 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
20809
20810         * lib/canon-host.c: Include "strdup.h".
20811         (canon_host): Use getaddrinfo if available, so that IPv6 works.
20812         Use strdup instead of malloc/strcpy to duplicate strings.
20813
20814         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
20815         (human_space_before_unit): New constant.
20816         * lib/human.c (human_readable): Support it.
20817
20818         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
20819         (xgetcwd): Set errno correctly when failing.
20820         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
20821         the failure is actually due to a PATH_MAX problem.
20822
20823         Further getopt changes to make it more likely that glibc will
20824         buy the changes back.
20825         * lib/getopt.c (POSIXLY_CORRECT): New constant.
20826         (getopt): Use it, so to preserve glibc semantic
20827         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
20828         when compiling for libc.
20829         * lib/getopt_.h (__getopt_argv_const): Bring it back.
20830         (getopt_long, getopt_long_only): Use it.
20831
20832         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
20833         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
20834         (getopt): Argv is now char * const *, as per standard.
20835         (_getopt_internal_r, _getopt_internal): Argv is now char **,
20836         not char *__getopt_argv_const *.
20837         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
20838         _getopt_long_only_r): Likewise.
20839         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
20840         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
20841         _getopt_long_r, _getopt_long_only_r): Likewise.
20842         * lib/getopt_.h (__getopt_argv_const): Remove.
20843         (getopt): Argv is now char * const *, as per standard.
20844
20845         * lib/getdate.y (tORDINAL): New token.
20846         (day, relunit): Allow it for relative times.
20847         (relative_time_table): Use tORDINAL for ordinals.
20848
20849 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
20850
20851         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
20852         Document that "second" isn't allowed as an ordinal number.
20853
20854 2004-11-16  Jim Meyering  <jim@meyering.net>
20855
20856         * modules/closeout (Depends-on): Add fpending.
20857
20858 2004-11-15  Jim Meyering  <jim@meyering.net>
20859
20860         * lib/closeout.c: Include "__fpending.h" once again.
20861         Include <stdbool.h>.
20862         (close_stdout): Don't fail just because stdout was closed initially,
20863         since some programs don't write to stdout in the normal course of
20864         operation (other than --version and --help), and we don't want this
20865         function to make e.g. `touch file >&-' fail.
20866         But do fail if it was closed and someone has tried to write to it.
20867         E.g., `printf foo >&-' must fail.
20868
20869 2004-11-13  Jim Meyering  <jim@meyering.net>
20870
20871         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
20872
20873 2004-11-12  Simon Josefsson  <jas@extundo.com>
20874
20875         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
20876         small doc fix is still pending.
20877
20878 2004-11-11  Simon Josefsson  <jas@extundo.com>
20879
20880         * modules/strtok_r: New file.
20881
20882         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
20883         strtok_r.
20884
20885 2004-11-11  Simon Josefsson  <jas@extundo.com>
20886
20887         * m4/strtok_r.m4: New file.
20888
20889         * m4/getopt.m4: Replace opterr.
20890
20891 2004-11-11  Simon Josefsson  <jas@extundo.com>
20892
20893         * lib/strtok_r.h, strtok_r.c: New file.
20894
20895 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
20896
20897         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
20898         of replacing opterr, getopt, etc.  This should handle the
20899         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
20900
20901 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
20902
20903         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
20904         we can stop lying to compilers about the constness of argv when we
20905         are compiled outside glibc.
20906         (getopt, getopt_long, getopt_long_only): Use it.
20907         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
20908         _getopt_internal, getopt): Likewise.
20909         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
20910         _getopt_long_only_r): Likewise.
20911         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
20912         _getopt_long_r, _getopt_long_only_r): Likewise.
20913
20914         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
20915         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
20916         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
20917         the other external symbols.
20918         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
20919         declaration, since the above renaming now works around collisions.
20920
20921 2004-11-11  Jim Meyering  <jim@meyering.net>
20922
20923         * lib/linebreak.c: Remove trailing blanks.
20924         * lib/alloca_.h: Likewise.
20925         * lib/acosl.c: Likewise.
20926         * lib/euidaccess.c: Likewise.
20927         * lib/allocsa.h: Likewise.
20928
20929 2004-11-10  Simon Josefsson  <jas@extundo.com>
20930
20931         * m4/getaddrinfo.m4: New file.
20932
20933 2004-11-10  Simon Josefsson  <jas@extundo.com>
20934
20935         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
20936
20937 2004-11-10  Simon Josefsson  <jas@extundo.com>
20938
20939         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
20940         getaddrinfo.
20941
20942         * modules/getaddrinfo: New file.
20943
20944 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
20945
20946         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
20947
20948 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
20949
20950         * lib/mktime.c (SHR): New macro, which is a portable
20951         substitute for >> that should work even on Crays.
20952         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
20953         Problem reported by Mark D. Baushke in
20954         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
20955         * lib/getdate.y (SHR): Likewise.
20956         (tm_diff): Use it.
20957         * lib/strftime.c (SHR): Likewise.
20958         (tm_diff): Use it.
20959         * lib/quotearg.c (struct quoting_options): Use unsigned int for
20960         quote_these_too, so that right shifts are well defined.  All uses
20961         changed.
20962
20963 2004-11-10  Jim Meyering  <jim@meyering.net>
20964
20965         Ensure that no close failure goes unreported.
20966         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
20967         return early when it seems there's nothing to flush.
20968         Don't include __fpending.h.
20969
20970 2004-11-10  Jim Meyering  <jim@meyering.net>
20971
20972         * modules/closeout (Depends-on): Remove fpending.
20973
20974 2004-11-10  Jim Meyering  <jim@meyering.net>
20975
20976         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
20977
20978 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
20979
20980         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
20981         gl_FUNC_STRFTIME.
20982         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
20983         and AC_REQUIRE when possible, to avoid duplicate checks.
20984         Check for <wchar.h>.
20985
20986 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
20987
20988         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
20989
20990 2004-11-09  Bruno Haible  <bruno@clisp.org>
20991
20992         * m4/sockpfaf.m4: New file.
20993
20994 2004-11-05  Bruno Haible  <bruno@clisp.org>
20995
20996         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
20997         Reported by Mark D. Baushke <mdb@cvshome.org>.
20998
20999 2004-11-04  Bruno Haible  <bruno@clisp.org>
21000
21001         2004-09-11  Bruno Haible  <bruno@clisp.org>
21002                 * allocsa.valgrind: New file.
21003         2004-02-06  Bruno Haible  <bruno@clisp.org>
21004                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
21005                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
21006                 Reported by Christopher Seip <chris.seip@hp.com>.
21007
21008 2004-11-04  Bruno Haible  <bruno@clisp.org>
21009
21010         * modules/allocsa (Files): Add lib/allocsa.valgrind.
21011         (Makefile.am): Distribute it.
21012
21013 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
21014
21015         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
21016         with errno == ERANGE if the buffer is too small.
21017         Problem reported by Mark D. Baushke.
21018
21019 2004-11-03  Albert Chin  <china@thewrittenword.com>
21020             Paul Eggert  <eggert@cs.ucla.edu>
21021
21022         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
21023         equivalent, substitute $ac_type for equivalent type rather than
21024         blindly using uint32_t *always* which won't work if uint32_t is not
21025         available.  Define _UINT32_T to work around typedef of uint32_t if
21026         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
21027         2.5.1.
21028
21029 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
21030
21031         * m4/jm-macros.m4: Sync from coreutils.
21032         (gl_MACROS): Check for mbrlen, for pathchk.
21033         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
21034
21035 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
21036
21037         * lib/xreadlink.c (MAXSIZE): New macro.
21038         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
21039         size does not exceed MAXSIZE.  Avoid cast.
21040         As suggested by Mark D. Baushke in
21041         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
21042         if readlink fails with buffer size just under MAXSIZE, try again
21043         with MAXSIZE.
21044
21045 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
21046
21047         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
21048
21049 2004-11-02  Derek R. Price  <derek@ximbiot.com>
21050         and  Paul Eggert  <eggert@cs.ucla.edu>
21051
21052         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
21053         (get_date): Overparenthesize to avoid GCC warning.
21054
21055 2004-11-02  Bruno Haible  <bruno@clisp.org>
21056
21057         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
21058         returns void.
21059
21060 2004-11-02  Bruno Haible  <bruno@clisp.org>
21061
21062         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
21063         function returns void.
21064
21065 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
21066
21067         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
21068         fflush_unlocked, flockfile, funlockfile, funlockfile,
21069         fputs_unlocked, putc_unlocked.
21070
21071 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
21072
21073         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
21074         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
21075         already declared.
21076
21077 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
21078
21079         * modules/getdate (Files): Add doc/getdate.texi.
21080         (Depends-on): Add setenv, xalloc.
21081
21082 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
21083
21084         * lib/getdate.y: Add support for TZ="foo" within a date string.
21085         Fix some bugs near time_t boundaries.  Reject dates with
21086         out-of-range components, e.g., "Sept 31".
21087         Include <stdlib.h>, "setenv.h", "xalloc.h".
21088         (ISDIGIT_LOCALE): Remove; unused.
21089         Note that the TZ and time functions used here are not reentrant.
21090         (mktime_ok, get_tz): New functions.
21091         (TZBUFSIZE): New constant.
21092         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
21093         This requires that we sometimes generate our own TZ="XXX..." setting.
21094
21095 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
21096
21097         * doc/getdate.texi: New file, from coreutils with modifications for
21098         the new TZ parsing.
21099
21100 2004-10-27  Derek R. Price  <derek@ximbiot.com>
21101
21102         * lib/mktime.c (not_equal_tm): Remove redundant check.
21103
21104 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
21105
21106         * modules/regex (lib_SOURCES): Add regex.c.
21107         Reported by James Youngman in
21108         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
21109
21110 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
21111
21112         * lib/getdate.y: Use Bison 1.875 features, and some minor
21113         code cleanups.  This change does not affect semantics.
21114         Don't include <stdlib.h>; no longer needed.
21115         Don't include unlocked-io.h; only the "#if TEST" code uses
21116         stdio, and performance isn't crucial there.
21117         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
21118         Bison 1.875 features as described below.
21119         All uses of "PC." replaced by "pc->".
21120         (YYSTYPE): Add a forward declaration.
21121         (yylex, yyerror): Use full prototypes in forward decls.
21122         Use "%pure-parser" rather than obsolescent "%pure_parser".
21123         Use %parse-param and %lex-param instead of obsolescent
21124         YYPARSE_PARAM and YYLEX_PARAM.
21125         (meridian_table, month_and_day_table, time_units_table,
21126         relative_time_table, time_zone_table, military_table,
21127         lookup_zone, lookup_word, get_date):
21128         Use NULL instead of 0 where appropriate.
21129         (to_hour): Avoid abort (), to avoid a dependency on
21130         stdlib.h.
21131         (yyerror, yylex): Now accepts parser_control * arg.
21132         (main) [TEST]: Use '\0' rather than 0 for char.
21133
21134 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
21135
21136         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
21137
21138 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
21139
21140         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
21141         It's now the caller's responsibility to handle the case where
21142         !HAVE_GETPAGESIZE && !defined getpagesize.
21143
21144         * lib/mktime.c (leapyear): Arg is long int, not int.
21145
21146 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
21147
21148         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
21149
21150 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
21151
21152         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
21153         missing.  Problem reported by James Youngman.
21154
21155 2004-10-16  Simon Josefsson  <jas@extundo.com>
21156
21157         * gnulib-tool: Fix comments.  Fix parse problem.
21158         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
21159
21160 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
21161
21162         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
21163         implementation of getopt_long.  Problem reported by Alexander Taler in:
21164         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
21165
21166 2004-10-15  Bruno Haible  <bruno@clisp.org>
21167
21168         * gnulib-tool: Untabify. Initialize supplied_libname.
21169         (func_usage): More homogenous output.
21170         (func_modules_transitive_closure, func_modules_to_filelist,
21171         func_emit_lib_Makefile_am): New functions.
21172         (func_import): New function, extracted from big case statement. Use
21173         func_get_license, func_modules_transitive_closure,
21174         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
21175         opt_lgpl. Don't use test -a, as it's not portable.
21176         (func_create_testdir): Use func_modules_transitive_closure,
21177         func_modules_to_filelist, func_emit_lib_Makefile_am.
21178
21179 2004-10-15  Bruno Haible  <bruno@clisp.org>
21180
21181         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
21182
21183 2004-10-15  Bruno Haible  <bruno@clisp.org>
21184
21185         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
21186         the portions belonging to each module.
21187         Suggested by Derek Robert Price <derek@ximbiot.com>.
21188
21189 2004-10-12  Simon Josefsson  <jas@extundo.com>
21190
21191         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
21192         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
21193         to real functions.
21194
21195 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
21196
21197         * modules/vsnprintf: New file.
21198
21199 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
21200
21201         * m4/vsnprintf.m4: New file.
21202
21203 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
21204
21205         * lib/vsnprintf.h: New file.
21206         * lib/vsnprintf.c: New file.
21207
21208 2004-10-11  Bruno Haible  <bruno@clisp.org>
21209
21210         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
21211         vsnprintf.
21212
21213 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
21214
21215         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
21216
21217 2004-10-07  Bruno Haible  <bruno@clisp.org>
21218
21219         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
21220         fits into the provided buffer.
21221
21222 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
21223
21224         * lib/diacrit.c, diacrit.h: Add GPL notice.
21225
21226         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
21227         notice.
21228         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
21229         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
21230         This avoids a potential constant-folding bug.
21231
21232 2004-10-05  Bruno Haible  <bruno@clisp.org>
21233
21234         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
21235         for the declaration of strsep.
21236
21237 2004-10-05  Bruno Haible  <bruno@clisp.org>
21238
21239         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
21240
21241 2004-10-04  Simon Josefsson  <jas@extundo.com>
21242
21243         * modules/memmem: New file.
21244         * tests/test-memmem.c: New file.
21245         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
21246
21247 2004-10-04  Simon Josefsson  <jas@extundo.com>
21248
21249         * m4/memmem.m4: New file.
21250
21251 2004-10-04  Simon Josefsson  <jas@extundo.com>
21252
21253         * lib/memmem.h: New file.
21254         * lib/memmem.c: New file, taken from glibc.
21255
21256 2004-10-04  Simon Josefsson  <jas@extundo.com>
21257
21258         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
21259         '#ifdef USE_UNLOCKED_IO'.
21260
21261 2004-10-04  Simon Josefsson  <jas@extundo.com>
21262
21263         * config/srclist.txt: Add memmem from glibc.
21264
21265 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
21266
21267         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
21268
21269         * modules/argmatch, modules/argp, modules/closeout, modules/error,
21270         modules/exclude, modules/getdate, modules/getline,
21271         modules/getndelim2, modules/getpass, modules/getpass-gnu,
21272         modules/getusershell, modules/linebuffer, modules/md5,
21273         modules/mountlist, modules/posixtm, modules/readtokens,
21274         modules/readutmp, modules/regex, modules/sha1,
21275         modules/version-etc, modules/yesno:
21276         Remove dependency on unlocked-io.
21277
21278 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
21279
21280         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
21281
21282         * m4/unlocked-io.m4: Add copyright notice.
21283         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
21284
21285 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
21286
21287         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
21288         * lib/xmalloc.c (xmemdup): Likewise.
21289         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
21290         XFREE): Remove these long-obsolescent macros.
21291         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
21292         * lib/xstrdup.c: Remove.
21293
21294         * lib/regex.c (re_comp): Cast gettext return value to char *,
21295         Problem reported by Martin Neitzel via Mark D. Baushke.
21296
21297 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
21298
21299         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
21300         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
21301         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
21302         regex.c, sha1.c, version-etc.c, yesno.c:
21303         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
21304         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
21305         the includer's responsibility.
21306
21307         Sync from coreutils.
21308
21309         * lib/modechange.c (mode_compile): Don't decrement a pointer that
21310         points to the start of a string, as the C Standard says the
21311         resulting behavior is undefined.
21312
21313         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
21314         simple -> simple_backups, numbered_existing ->
21315         numbered_existing_backups, numbered -> numbered_backups
21316         to avoid shadowing problems.  All uses changed.
21317         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
21318         * lib/backupfile.c (check_extension, numbered_backup):
21319         Rename locals to avoid shadowing 'basename'.
21320         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
21321         once.
21322
21323         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
21324         * lib/.cvsignore: Add getopt.h.
21325
21326 2004-10-04  Bruno Haible  <bruno@clisp.org>
21327
21328         * modules/README: New file.
21329         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
21330         not a module.
21331
21332 2004-10-02  Jim Meyering  <jim@meyering.net>
21333
21334         * lib/dirfd.h, getpagesize.h: Add copyright notice.
21335
21336 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
21337
21338         * modules/strsep: New file.
21339
21340 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
21341
21342         * m4/strsep.m4: New file.
21343
21344 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
21345
21346         * lib/strsep.h: New file.
21347         * lib/strsep.c: New file.
21348
21349 2004-10-01  Simon Josefsson  <jas@extundo.com>
21350
21351         * lib/snprintf.c (snprintf): Handle size==0.
21352
21353 2004-10-01  Simon Josefsson  <jas@extundo.com>
21354             Bruno Haible  <bruno@clisp.org>
21355
21356         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
21357         (snprintf): Declare 'args'.
21358
21359 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
21360
21361         * lib/snprintf.c: Remove comments as to why each header is needed.
21362
21363 2004-10-01  Bruno Haible  <bruno@clisp.org>
21364
21365         * MODULES.html.sh: Add strsep.
21366
21367 2004-09-30  Simon Josefsson  <jas@extundo.com>
21368
21369         * modules/snprintf: New file.
21370
21371 2004-09-30  Simon Josefsson  <jas@extundo.com>
21372
21373         * m4/snprintf.m4: New file.
21374
21375 2004-09-30  Simon Josefsson  <jas@extundo.com>
21376
21377         * lib/snprintf.h, lib/snprintf.c: New files.
21378
21379 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
21380
21381         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
21382         (hol_entry_help): Never translate an empty string.
21383         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
21384         * lib/argp.h (OPTION_NO_TRANS): New option.
21385
21386 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
21387
21388         * modules/argp (Maintainer): Replace Simon Josefsson
21389         by Sergey Poznyakoff.
21390
21391 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
21392
21393         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
21394         changes merged back into glibc.
21395
21396 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
21397
21398         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
21399
21400 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
21401
21402         * lib/xvasprintf.c: Include xalloc.h.
21403         (xvasprintf): Use xalloc_die, not xmalloc_die.
21404
21405 2004-09-29  Bruno Haible  <bruno@clisp.org>
21406
21407         * modules/alloca-opt: New file, derived from modules/alloca.
21408         * modules/allocsa: Depend on alloca-opt instead of alloca.
21409         * modules/setenv: Likewise.
21410         * modules/vasnprintf: Likewise.
21411         * MODULES.html.sh: Add alloca-opt.
21412
21413 2004-09-28  Simon Josefsson  <jas@extundo.com>
21414
21415         * gnulib-tool: New parameter --lgpl, to asseert that modules are
21416         LGPL, and to replace license template from GPL to LGPL.
21417
21418 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
21419
21420         * modules/dummy: Change license to LGPL.
21421
21422 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
21423
21424         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
21425
21426 2004-09-24  Simon Josefsson  <jas@extundo.com>
21427
21428         * modules/minmax (License): Change from GPL to LGPL.
21429
21430 2004-09-23  Simon Josefsson  <jas@extundo.com>
21431
21432         * gnulib-tool (--import): Typo.
21433
21434 2004-09-23  Simon Josefsson  <jas@extundo.com>
21435
21436         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
21437
21438 2004-09-22  Bruno Haible  <bruno@clisp.org>
21439
21440         * modules/*: Add 'License' field.
21441         * gnulib-tool: Accept --extract-license option.
21442         (func_get_license): New function.
21443
21444 2004-09-21  Bruno Haible  <bruno@clisp.org>
21445
21446         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
21447         Reported by Simon Josefsson.
21448
21449 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
21450
21451         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
21452         gl_AC_TYPE_LONG_LONG.
21453
21454 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
21455
21456         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
21457
21458 2004-09-18  Simon Josefsson  <jas@extundo.com>
21459         and  Paul Eggert  <eggert@cs.ucla.edu>
21460
21461         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
21462         calls with autoreconf.  Define GL_LIB.
21463
21464 2004-09-14  Karl Berry  <karl@gnu.org>
21465
21466         * config/srclist.txt: unsync setenv.c, sigh.
21467
21468 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
21469
21470         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
21471         Problem reported by Bruno Haible in:
21472         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
21473
21474 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
21475
21476         * config/srclist.txt: Comment out argp-pvh.c.
21477
21478 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
21479
21480         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
21481         in case some system header has #define'd it.  Problem reported by
21482         Soeren D. Schulze in
21483         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
21484
21485 2004-09-09  Karl Berry  <karl@gnu.org>
21486
21487         * regex.[ch]: delete from the root.  These were supposed to be
21488                 synced with emacs cvs, but this has not happened for about
21489                 a year, and anyway nothing else uses emacs regex.[ch].
21490                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
21491                 lib/regex[.ch] is untouched.
21492
21493 2004-09-09  Bruno Haible  <bruno@clisp.org>
21494
21495         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
21496
21497 2004-09-09  Bruno Haible  <bruno@clisp.org>
21498
21499         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
21500         modifications.
21501         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
21502
21503 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
21504
21505         * modules/xvasprintf: New file.
21506         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
21507
21508 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
21509
21510         * lib/xvasprintf.h: New file.
21511         * lib/xvasprintf.c: New file.
21512         * lib/xasprintf.c: New file.
21513
21514 2004-09-08  Bruno Haible  <bruno@clisp.org>
21515
21516         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
21517
21518 2004-09-08  Bruno Haible  <bruno@clisp.org>
21519
21520         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
21521         length is > INT_MAX.
21522         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
21523         more.
21524
21525 2004-09-08  Bruno Haible  <bruno@clisp.org>
21526
21527         * lib/stdint_.h: New file, taken from GNU clisp.
21528
21529 2004-09-08  Bruno Haible  <bruno@clisp.org>
21530             Oskar Liljeblad  <oskar@osk.mine.nu>
21531
21532         * modules/stdint: New file.
21533         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
21534
21535 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
21536
21537         Import from coreutils.
21538         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
21539         strings on unbounded length.  alloca's performance benefits aren't
21540         that important here.
21541         (V_STRDUP): Remove.
21542         (parse_with_separator): New function, with most of the internals
21543         of the old parse_user_spec.  Allow user to omit both user and group,
21544         for compatibility with FreeBSD.
21545         Clone only the user name, not the entire spec.
21546         Do not set *uid, *gid unless entirely successful.
21547         Avoid memory leak in some failing cases.
21548         Fix regression for USER.GROUP reported by Dmitry V. Levin in
21549         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
21550         (parse_user_spec): Rewrite to use parse_with_separator.
21551
21552 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
21553
21554         * modules/userspec: Don't depend on alloca.
21555
21556 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
21557
21558         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
21559
21560 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
21561
21562         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
21563         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
21564         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
21565
21566 2004-08-16  Simon Josefsson  <jas@extundo.com>
21567
21568         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
21569         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
21570         Add --dry-run for --import.
21571         Let user provided command line parameters override configure.ac
21572         settings.
21573
21574 2004-08-12  Simon Josefsson  <jas@extundo.com>
21575
21576         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
21577         as discussed with Paul Eggert in threads rooted at
21578         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
21579         and
21580         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
21581         Before, the test was empty, and relied on ELIDE_CODE in source
21582         code.)
21583         (gl_PREREQ_GETOPT): New macro.
21584         (gl_GETOPT): Use them.
21585
21586 2004-08-12  Simon Josefsson  <jas@extundo.com>
21587
21588         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
21589         * lib/getopt_.h: Renamed from getopt.h.
21590
21591 2004-08-12  Simon Josefsson  <jas@extundo.com>
21592
21593         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
21594         Change default library name from libfoo to libgnu.
21595         Now, if you have a configure.ac that says:
21596                 gl_SOURCE_BASE(gl)
21597                 gl_M4_BASE(gl/m4)
21598                 gl_MODULES(error getopt etcetera)
21599                 gl_INIT
21600         you can import all you need by running:
21601                 ../gnulib/gnulib-tool --import
21602
21603         * modules/getopt (Files): Rename getopt.h to getopt_.h.
21604         (Makefile.am): Rewrite, use logic from argz.
21605         (Include): Use <getopt.h> instead of "getopt.h".
21606
21607 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
21608
21609         * modules/argp (Files): Add m4/unlocked-io.m4.
21610         (Depends-on): Add extensions.
21611
21612 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
21613
21614         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
21615         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
21616         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
21617         Check for program_invocation_name, program_invocation_short_name,
21618         flockfile, funlockfile, features.h, _getopt_long_only_r.
21619
21620 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
21621
21622         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
21623         its complicated substitute.
21624         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
21625         and program_invocation_name.
21626         (__argp_basename) [!_LIBC]: Remove; the only use was
21627         replaced by its body.
21628         (__argp_short_program_name): Change condition from
21629         !defined __argp_short_program_name to
21630         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
21631         to match argp-namefrob.h.
21632         (__argp_failure): Don't assume strerror_r returns char *.
21633         * lib/argp-parse.c (N_): Define unconditionally.
21634         (argp_default_options): Fill out initializers with 0 to avoid
21635         gcc warnings.
21636
21637 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
21638
21639         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
21640         getopt1.c.
21641
21642 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
21643
21644         Merge from coreutils.
21645
21646         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
21647
21648         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
21649         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
21650
21651 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
21652
21653         Merge from coreutils.
21654
21655         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
21656         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
21657         for Reliant Unix 5.43.
21658
21659         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
21660         (union fooround): Use uintmax_t, not long int.
21661         The rest is a merge from libc:
21662         [defined _LIBC]: Include <shlib-compat.h>.
21663         (_obstack) [defined _LIBC]: Remove after 2.3.4.
21664
21665         * lib/settime.c (settime): Recode to avoid warning with
21666         Sun Forte C 6U2.
21667
21668         * lib/strverscmp.c: Convert to UTF-8.
21669
21670 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
21671
21672         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
21673         m4/uintmax_t.m4.
21674
21675 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
21676
21677         * modules/xalloc-die: New file.
21678         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
21679
21680         * modules/md5 (Files): Add m4/uint32_t.m4.
21681         * modules/sha1: Renamed from modules/sha.
21682         (Files):
21683         Rename lib/sha.h to lib/sha1.h.
21684         Rename lib/sha.c to lib/sha1.c.
21685         Rename m4/sha.m4 to m4/sha1.m4.
21686         (lib_SOURCES): Likewise.
21687         (configure.ac): Rename gl_SHA to gl_SHA1.
21688         (Include): sha.h -> sha1.h.
21689
21690 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
21691
21692         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
21693         * m4/sha1.m4: Renamed from sha.m4.
21694         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
21695
21696 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
21697
21698         * lib/obstack.h (obstack_empty_p):
21699         Don't assume that chunk->contents is suitably aligned.
21700         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
21701         Likewise. Problem reported by Benno in
21702         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
21703
21704         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
21705         readable.  This could be improved further but it'd take some work.
21706
21707 2004-08-08  Simon Josefsson  <jas@extundo.com>
21708
21709         * modules/xgethostname (Depends-on): Remove exit and error (not
21710         used).
21711
21712         * modules/getpass-gnu: Add getpass.h.
21713         (Depends-on): Add stdbool.
21714         * modules/getpass: Add getpass.h.
21715
21716 2004-08-08  Simon Josefsson  <jas@extundo.com>
21717
21718         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
21719         Check getpass declaration.
21720
21721 2004-08-08  Simon Josefsson  <jas@extundo.com>
21722
21723         * lib/xgethostname.c: Don't include error.h (not used).
21724
21725         * lib/getpass.h: Add.
21726         * lib/getpass.c: Include getpass.h first.
21727
21728 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
21729
21730         * lib/xalloc-die.c: New file.
21731         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
21732         All uses removed.
21733         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
21734         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
21735         xalloc-die.c.
21736         (_, N_, xalloc_die): Move to xalloc-die.c.
21737         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
21738         so that we needn't mess with xalloc_msg_memory_exhausted.
21739
21740         * lib/sha1.h: Renamed from sha.h.
21741         (SHA1_H): Renamed from _SHA_H.
21742         (sha1_ctx): Renamed from sha_ctx.
21743         (sha1_init_ctx): Renamed from sha_init_ctx.
21744         (sha1_process_block): Renamed from sha_process_block.
21745         (sha1_process_bytes): Renamed from sha_process_bytes.
21746         (sha1_finish_ctx): Renamed from sha_finish_ctx.
21747         (sha1_read_ctx): Renamed from sha_read_ctx.
21748         (sha1_stream): Renamed from sha_stream.
21749         (sha1_buffer): Renamed from sha_buffer.
21750         * lib/sha1.c: Likewise; renamed from sha.c.
21751         Do not include <sys/types.h>.
21752         Include <stddef.h> rather than <stdlib.h>.
21753
21754 2004-08-08  Bruno Haible  <bruno@clisp.org>
21755
21756         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
21757         FILESYSTEM_PREFIX_LEN.
21758         * lib/progreloc.c: Likewise.
21759         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
21760
21761 2004-08-06  Simon Josefsson  <jas@extundo.com>
21762
21763         * modules/progname (Depends-on): Don't depend on stdbool.
21764
21765 2004-08-06  Simon Josefsson  <jas@extundo.com>
21766
21767         * modules/getsubopt: New file.
21768         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
21769         getsubopt.
21770
21771 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
21772
21773         More merge from coreutils.
21774
21775         * m4/utimens.m4, m4/utimecmp.m4: New files.
21776         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
21777         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
21778         prereq.m4, sha.m4: Import changes from coreutils.
21779
21780 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
21781
21782         More merge from coreutils.
21783         * modules/raise, modules/readtokens0, modules/utimens:
21784         * modules/utimecmp, module/xnanosleep: New files.
21785         * modules/strftime: Add lib/strftime.h.
21786         Change include from <time.h> to "strftime.h".
21787         * modules/yesno: Add lib/yesno.h.
21788         * modules/backupfile: Remove lib/addext.c.
21789         * modules/euidaccess: Add stat-macros.h.
21790         * modules/canonicalize, modules/euidaccess,
21791         modules/filemode, modules/lchown, modules/makepath,
21792         modules/rmdir, modules/stat: Likewise.
21793
21794 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
21795
21796         Merge from tar.
21797         * lib/argp-help.c (make_hol, hol_append): Don't assume that
21798         SIZE_MAX is a valid preprocessor constant.
21799         (__argp_basename): Change from "#ifndef _LIBC"
21800         to "#ifndef __argp_short_program_name", so that
21801         we don't compile these functions for tar.
21802
21803         More merges from coreutils.
21804         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
21805         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
21806         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
21807         * lib/addext.c: Remove; no longer needed.
21808         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
21809         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
21810         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
21811         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
21812         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
21813         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
21814         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
21815         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
21816         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
21817         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
21818         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
21819         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
21820         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
21821         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
21822         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
21823         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
21824         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
21825         Import changes from coreutils.
21826
21827 2004-08-05  Simon Josefsson  <jas@extundo.com>
21828
21829         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
21830
21831 2004-08-05  Simon Josefsson  <jas@extundo.com>
21832
21833         * m4/getsubopt.m4: New file.
21834
21835 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
21836
21837         Merge from coreutils.
21838
21839         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
21840         * m4/getcwd-path-max.m4: New files.
21841
21842         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
21843         FILESYSTEM_PREFIX_LEN ->
21844         FILE_SYSTEM_PREFIX_LEN.
21845         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
21846         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
21847         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
21848         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
21849
21850         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
21851         prerequisite modules now handle the DOS stuff.
21852         Don't check for unistd.h.
21853
21854 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
21855
21856         Merge from coreutils.
21857
21858         * lib/.gdb-history: Remove; this doesn't belong here.
21859
21860         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
21861         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
21862         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
21863         * lib/getcwd.c: New files.
21864
21865         * lib/dirname.h: Include <stdbool.h>.
21866         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
21867         for consistency with POSIX terminology.  All uses changed.
21868         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
21869         (strip_trailing_slashes): Use bool for booleans.
21870         * lib/stripslash.c (strip_trailing_slashes): Likewise.
21871
21872         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
21873         sometimes returns a positive errno value even when it succeeds.
21874         (print_errno_message) [!LIBC]: Fall back on strerror if
21875         __strerror_r fails.
21876
21877         * lib/path-concat.c (mempcpy): Don't define if a system header defines
21878         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
21879         (longest_relative_suffix): New function.
21880         (path_concat): Use it.  Assume first argument is not NULL.
21881         Port to DOS.  Omit redundant separators.
21882         Report an error instead of returning NULL.
21883         Use mempcpy instead of memcpy.
21884         (xpath_concat): Remove: not declared or used.
21885
21886         * lib/same.h: Include <stdbool.h>
21887         (same_name): Return bool, not int.
21888         * lib/same.c (same_name): Likewise.
21889         (errno): Don't declare; we assume C89 or better now.
21890
21891         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
21892         if not already defined.
21893
21894         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
21895         * lib/dup-safer.c (errno): Likewise.
21896
21897 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
21898
21899         Merge from coreutils.
21900         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
21901         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
21902         * modules/path-concat: Don't depend on strdup.
21903
21904 2004-08-03  Simon Josefsson  <jas@extundo.com>
21905
21906         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
21907         * lib/progname.h: Don't include stdbool.h.
21908
21909 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
21910
21911         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
21912         * MODULES.html.sh (func_all_modules): Remove fatal.
21913
21914 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
21915
21916         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
21917
21918 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
21919
21920         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
21921         working.
21922
21923 2004-08-02  Simon Josefsson  <jas@extundo.com>
21924
21925         * lib/getsubopt.h: New file, with comments from Bruno Haible.
21926         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
21927         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
21928
21929 2004-08-01  Simon Josefsson  <jas@extundo.com>
21930
21931         * lib/xgetdomainname.c: Include stdlib.h, for free().
21932
21933 2004-07-19  Bruno Haible  <bruno@clisp.org>
21934
21935         * MODULES.html.sh (func_all_modules): Add dummy.
21936
21937 2004-07-16  Simon Josefsson  <jas@extundo.com>
21938
21939         * modules/dummy: New file.
21940
21941 2004-07-16  Simon Josefsson  <jas@extundo.com>
21942
21943         * lib/dummy.c: New file.
21944
21945 2004-07-16  Bruno Haible  <bruno@clisp.org>
21946
21947         * lib/backupfile.h: Add extern "C" for C++.
21948         * lib/closeout.h: Likewise.
21949         * lib/copy-file.h: Likewise.
21950         * lib/findprog.h: Likewise.
21951         * lib/full-write.h: Likewise.
21952         * lib/pathname.h: Likewise.
21953         * lib/progname.h: Likewise.
21954         * lib/stpcpy.h: Likewise.
21955         * lib/stpncpy.h: Likewise.
21956         * lib/strcase.h: Likewise.
21957         * lib/strstr.h: Likewise.
21958         * lib/xalloc.h: Likewise.
21959
21960         * lib/mbswidth.h: Add extern "C" for C++.
21961         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
21962
21963 2004-07-13  Robert Millan  <robertmh@gnu.org>
21964
21965         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
21966
21967 2004-07-09  Simon Josefsson  <jas@extundo.com>
21968
21969         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
21970         failed without this.)
21971
21972 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
21973
21974         * modules/chown (Files): Add lib/fchown-stub.c, since
21975         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
21976
21977 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
21978
21979         * lib/fchown-stub.c: New file.
21980
21981 2004-06-24  Jim Meyering  <jim@meyering.net>
21982
21983         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
21984
21985 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
21986
21987         * modules/argz: Omit "#include".
21988
21989         * MODULES.html.sh (func_all_modules): Add calloc, to match
21990         2004-06-01 addition of calloc module.
21991
21992 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
21993
21994         * m4/argz.m4: New file, which is autoupdated from libtool.
21995
21996 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
21997
21998         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
21999         libtool.
22000
22001 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
22002
22003         * config/srclist-update: Don't insist on "USA." before the
22004         close-comment, as libtool omits the period and puts the */ on a
22005         separate line.
22006         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
22007         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
22008
22009 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
22010
22011         * modules/argz: New file.
22012         * MODULES.html.sh (func_all_modules): Add argz.
22013
22014 2004-06-12  Jim Meyering  <jim@meyering.net>
22015         and  Paul Eggert  <eggert@cs.ucla.edu>
22016
22017         * modules/hash (Files): Add lib/xalloc.h.
22018         * modules/pipe (Depends-on): Add wait-process.
22019         * modules/stat (Depends-on): Add xalloc.
22020         * modules/userspec (Files): Add lib/userspec.h.
22021         * modules/xstrto
22022
22023         Upgrade from gettext-0.13.
22024         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
22025         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
22026         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
22027
22028 2004-06-10  Jim Meyering  <jim@meyering.net>
22029
22030         * lib/calloc.c: New file.
22031
22032 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
22033
22034         * lib/getdate.y (yylex): Allow space between sign and number.
22035         Problem reported by Dan Jacobson.
22036
22037 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
22038
22039         Merge from coreutils CVS.
22040
22041         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
22042         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
22043         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
22044         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
22045         xstrtol.m4: Fix copyright date and/or serial number.
22046
22047         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
22048         See if we need an fchown replacement.
22049         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
22050         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
22051         and use the replacement function if we detect either defect.
22052
22053         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
22054         gl_UTIMECMP.
22055
22056 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
22057         and  Jim Meyering  <jim@meyering.net>
22058
22059         Merge from coreutils CVS.
22060
22061         * lib/stat-macros.h: New file, with contents from file-type.h
22062         and coreutils' system.h.
22063         * lib/file-type.c: Include "stat-macros.h".
22064         * lib/file-type.h (file_type): Move all macro definitions to new file,
22065         stat-macros.h.
22066
22067         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
22068         Wrap old code with this conditional.
22069         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
22070         function that does not dereference symlinks.
22071         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
22072
22073         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
22074         dependency problems.
22075         (xreadlink): Accept new arg SIZE, for efficiency.
22076         All decls and uses changed.
22077         * lib/xreadlink.h: Include <stddef.h>, for size_t.
22078
22079         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
22080         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
22081
22082         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
22083         sysexits.h.
22084
22085 2004-06-01  Jim Meyering  <jim@meyering.net>
22086
22087         * m4/calloc.m4: New file.
22088
22089 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
22090
22091         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
22092         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
22093         Also, fix a typo in a diagnostic.
22094
22095 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
22096
22097         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
22098         or AC_FUNC_REALLOC.
22099
22100 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
22101
22102         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
22103         macros to be defined.
22104         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
22105         the allocator returns NULL because the requested size is zero.
22106
22107 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
22108
22109         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
22110         var.  Add comment explaining why libc still defines it.  This
22111         merges the following patch from glibc:
22112         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
22113
22114 2004-05-20  Andreas Schwab  <schwab@suse.de>
22115
22116         * m4/free.m4: Replace free if it not known to work, not the other
22117         way round.
22118
22119 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
22120
22121         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
22122         present in glibc since revision 1.1 of this file.
22123         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
22124         obstack_alignment_mask, obstack_alloc, obstack_base,
22125         obstack_blank, obstack_blank_fast, obstack_chunk_size,
22126         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
22127         obstack_grow0, obstack_init, obstack_int_grow,
22128         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
22129         obstack_next_free, obstack_object_size, obstack_ptr_grow,
22130         obstack_ptr_grow_fast, obstack_room): Remove declarations of
22131         nonexistent functions.
22132
22133 2004-05-18  Karl Berry  <karl@gnu.org>
22134
22135         * config/srclist.txt: break link for vasnprintf.c.
22136
22137 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
22138
22139         Port obstack to the AS/400, where pointers are 16 bytes wide and
22140         you cannot cast an integer to a valid pointer.  This patch is
22141         currently waiting to be integrated into glibc; see
22142         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
22143
22144         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
22145         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
22146         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
22147         (struct obstack): temp member is now a union of a pointer and
22148         an integer, instead of an integer.  All integer uses changed.
22149         This does not affect the physical layout of struct obstack,
22150         except on hosts (like the AS/400) where the size or alignment of
22151         void * is greater than that of ptrdiff_t.
22152         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
22153         __STDC__)]: Store temporary in pointer member of union, not
22154         integer member.
22155         * lib/obstack.c: Include <stddef.h>, for offsetof.
22156         (struct fooalign): Remove; it doesn't need a name.
22157         (union fooround): Change double to long double, and add void *.
22158         (DEFAULT_ALIGNMENT): Use offsetof to compute.
22159         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
22160         not a macro.  Hence the values are always int; so remove all
22161         casts-to-int in uses.
22162
22163 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
22164
22165         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
22166         we can get this patch merged into glibc.
22167
22168 2004-05-17  Derek R. Price  <derek@ximbiot.com>
22169             Paul Eggert  <eggert@cs.ucla.edu>
22170
22171         * m4/argp: Depend on alloca.
22172
22173 2004-05-17  Derek R. Price  <derek@ximbiot.com>
22174             Paul Eggert  <eggert@cs.ucla.edu>
22175
22176         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
22177         freecoding.
22178
22179 2004-05-17  Bruno Haible  <bruno@clisp.org>
22180
22181         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
22182         precision that consists of a '.' followed by an empty digit string.
22183         Patch by Tor Lillqvist <tml@iki.fi>.
22184
22185 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
22186
22187         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
22188         for backward compatibility with older code.  We need our own
22189         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
22190         it under some other name, and our alloca.h will define it.
22191
22192 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
22193             Derek Price  <derek@ximbiot.com>
22194
22195         * lib/alloca.c: Include <alloca.h>, to get our interface.
22196         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
22197         include <alloca.h> first.  Use C89 prototype for alloca; this
22198         requires including <stddef.h> for size_t.  Use extern "C" if C++.
22199         Use #elif for simplicity, since we can assume C89 now.
22200         Don't try to source the system alloca.h since it will not be found
22201         and to prevent recursively including its replacement.
22202         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
22203         * lib/regex.c: Likewise.
22204
22205 2004-05-16  Derek Price  <derek@ximbiot.com>
22206             Paul Eggert  <eggert@cs.ucla.edu>
22207
22208         getline cleanup.  This changes the getndelim2 API: both order of
22209         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
22210         no delimiter).
22211
22212         * lib/getline.c: Don't include stddef.h or stdio.h, since our
22213         interface does that.
22214         (getline): Always use getdelim, so that we don't have two
22215         copies of this code.
22216         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
22217         if available.
22218         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
22219         (GETNDELIM2_MAXIMUM): New macro.
22220         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
22221         instead of the old practice of delim2==0.  All callers changed.
22222         Return -1 on overflow, instead of returning junk.
22223         Do not set *linesize unless allocation succeeds.
22224         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
22225         that we include sys/types.h.
22226         * lib/getnline.h: Likewise.
22227         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
22228         (getndelim2): Reorder arguments.
22229         * lib/getnline.c (getnline, getndelim):
22230         Don't discard the NMAX argument.
22231         (getnline): Invoke getndelim, to avoid code duplication.
22232         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
22233         of (size_t) -1 by callers of the getnline family.
22234
22235 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
22236
22237         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
22238         Check for gettimeofday.
22239         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
22240         Check for settimeofday, stime.
22241
22242 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
22243
22244         * lib/nanosleep.c (suspended): Change its type from int to
22245         sig_atomic_t volatile.
22246         (first_call): Make it private to rpl_nanosleep, and have it
22247         be zero initially as that's a bit faster.
22248         (my_usleep): Round up fractional times instead of truncating them,
22249         as this is the usual meaning for 'sleep'.
22250
22251         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
22252         doesn't work.
22253         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
22254         (ENOSYS): Define if not defined.
22255         (settime): Fall back on stime if it exists and settimeofday fails.
22256         But don't bother with fallbacks if a method fails with errno == EPERM.
22257
22258 2004-05-11  Jim Meyering  <jim@meyering.net>
22259
22260         Prior to this change, the save_cwd caller required read access to the
22261         current directory on most systems (ones with the fchdir function).
22262
22263         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
22264         fails, try write-only, and finally, resort to using xgetcwd.
22265
22266 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
22267
22268         * lib/obstack.c, obstack.h: Import changes from libc.
22269
22270 2004-04-28  Bruno Haible  <bruno@clisp.org>
22271
22272         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
22273         also implicitly appends .exe to executables.
22274         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
22275         accepts Windows pathnames.
22276         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
22277         Treat Cygwin like Windows, since it now accepts Windows pathnames.
22278         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
22279         Treat Cygwin like Windows, since it now accepts Windows pathnames.
22280         Reported by Derek Robert Price <derek@ximbiot.com>.
22281
22282 2004-04-21  Karl Berry  <karl@gnu.org>
22283
22284         * config/srclist.txt (localcharset.c): break sync.
22285
22286 2004-04-20  Paul Eggert  <eggert@twinsun.com>
22287
22288         * m4/host-os.m4: Add a copyright notice.
22289
22290 2004-04-20  Jim Meyering  <jim@meyering.net>
22291
22292         Change UTILS_ to gl_ in AC_DEFINE'd names.
22293         Change utils_- and jm_-prefixed variables, too.
22294         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
22295         UTILS_FUNC_MKDIR_TRAILING_SLASH.
22296         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
22297
22298         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
22299         Don't emit trailing blanks.
22300         Also rename jm_-prefixed variables to have gl_ prefix.
22301
22302         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
22303         Also rename jm_-prefixed variables to have gl_ prefix.
22304
22305         * m4/jm-macros.m4: Reflect the renamings.
22306         * m4/prereq.m4: Likewise.
22307
22308 2004-04-20  Jim Meyering  <jim@meyering.net>
22309
22310         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
22311         memory.
22312
22313 2004-04-20  Jim Meyering  <jim@meyering.net>
22314             Bruno Haible  <bruno@clisp.org>
22315
22316         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
22317         memory when realloc fails.
22318
22319 2004-04-19  Jim Meyering  <jim@meyering.net>
22320
22321         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
22322         now that readutmp.c may call `free (0)'.
22323
22324 2004-04-19  Bruno Haible  <bruno@clisp.org>
22325
22326         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
22327         * m4/inttypes_h.m4: Likewise.
22328         * m4/stdint_h.m4: Likewise.
22329         * m4/intmax_t.m4: Likewise.
22330         * m4/uintmax_t.m4: Likewise.
22331
22332 2004-04-18  Jim Meyering  <jim@meyering.net>
22333
22334         * m4/prereq.m4: Don't forbid jm_ prefix.
22335
22336         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
22337         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
22338         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
22339         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
22340         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
22341         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
22342         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
22343         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
22344         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
22345         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
22346         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
22347         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
22348         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
22349         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
22350         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
22351         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
22352         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
22353         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
22354         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
22355
22356 2004-04-18  Jim Meyering  <jim@meyering.net>
22357
22358         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
22359         failure, don't leak memory and do call END_UTMP_ENT.
22360
22361 2004-04-16  Jim Meyering  <jim@meyering.net>
22362
22363         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
22364         coreutils' stat program.
22365         (gl_PREREQ): Don't require jm_PREREQ_STAT.
22366
22367 2004-04-11  Paul Eggert  <eggert@twinsun.com>
22368
22369         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
22370         C89.
22371         (CHAR_BIT): Remove, since we assume C89.
22372         Include <stdint.h> if available, as per current Autoconf CVS advice.
22373
22374 2004-03-31  Jim Meyering  <jim@meyering.net>
22375
22376         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
22377         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
22378         * m4/xalloc.m4: Likewise.
22379
22380 2004-03-30  Paul Eggert  <eggert@twinsun.com>
22381
22382         Merge from coreutils.
22383
22384         * m4/inttostr.m4: New file.
22385         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
22386         Require AM_STDBOOL_H and gl_TIMESPEC instead.
22387         Require gl_CLOCK_TIME.
22388         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
22389
22390 2004-03-30  Paul Eggert  <eggert@twinsun.com>
22391
22392         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
22393         not bool, to be more consistent with Unix conventions.
22394         Suggested by Bruno Haible.
22395
22396         Merge from coreutils.
22397
22398         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
22399         * lib/umaxtostr.c: New files.
22400
22401         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
22402         the usual <time.h> dance.
22403         (get_date): Change signature to support fractional time stamps.
22404         All callers changed.
22405         * lib/getdate.y: Include "getdate.h" first, as we can now
22406         assume C89 and don't need to worry about 'const'.
22407         Similarly, include "unlocked-io.h" near start, not in middle.
22408         Include <limits.h>.
22409         (textint.value): Use long int rather than int.
22410         (textint.digits): Use size_t rather than int.
22411         (BILLION, LOG10_BILLION): New constants.
22412         (parser_control): New member rel_ns.  Members day_ordinal,
22413         time_zone, month, day, hour, minutes, rel_year, rel_month,
22414         rel_day, rel_hour, rel_minutes, rel_seconds
22415         are now long int, not int.  Member seconds is now struct timespec,
22416         not int.  New member timespec_seen.  Members dates_seen, days_seen,
22417         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
22418         not int.
22419         (%union.intval): Now long int, not int.
22420         New member timespec.
22421         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
22422         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
22423         (spec): Now is a timespec or an item list.
22424         (timespec, items): New nonterminals.
22425         (time, rel, relunit, number, get_date):
22426         Add support for fractional seconds.
22427         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
22428         (gmtime, localtime, mktime): Remove decls; not needed with C89.
22429         (to_hour): First arg is now long int, not int.
22430         (to_year): Returns long int, not int.
22431         Don't treat year -70 like 70.
22432         (tm_diff): Returns long int, not int.
22433         (lookup_word): Use bool instead of int when appropriate.
22434         (yylex): Use size_t for count, not int.
22435         Detect overflow when parsing large integer constants.
22436         Add support for fractions.
22437         (get_date): Make pointers 'const' if possible.
22438         Use more-portable code to detect integer overflow.
22439         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
22440         Don't use ctime; it's not reliable if the year has >4 digits.
22441
22442         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
22443         This is for compatibility with BSD.
22444
22445         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
22446         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
22447         From coreutils' system.h.
22448
22449         * lib/userspec.c: Don't include "posixver.h".
22450         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
22451         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
22452         compatible extension.  Simplify code by removing a boolean int
22453         that was always nonzero if a string was nonnull.
22454
22455 2004-03-30  Jim Meyering  <jim@meyering.net>
22456
22457         Merge from coreutils.
22458
22459         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
22460         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
22461         on some systems one must include <grp.h> before it.
22462         Reported by Christian Krackowizer.
22463
22464 2004-03-30  Jim Meyering  <jim@meyering.net>
22465
22466         Merge from coreutils.
22467
22468         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
22469
22470         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
22471         an empty input stream.
22472
22473         * lib/readtokens.c: Include <stdbool.h>.
22474         (readtoken): Use `size_t' rather than int/long.
22475         All callers adjusted.
22476         Use `bool' rather than `int' where appropriate.
22477         Use memset rather than an explicit loop.
22478         Use x2nrealloc rather than xrealloc.
22479         Allow the use of `\0' as a delimiter.
22480         (readtokens): Likewise.
22481         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
22482
22483 2004-03-30  Jim Meyering  <jim@meyering.net>
22484
22485         * m4/realloc.m4: Remove file, since now it does no more than
22486         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
22487         the `configure.ac' section of module/realloc.
22488         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
22489
22490 2004-03-30  Bruno Haible  <bruno@clisp.org>
22491
22492         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
22493         nonnull.
22494
22495 2004-03-29  Paul Eggert  <eggert@twinsun.com>
22496
22497         Merge changes to getloadavg.c from coreutils and Emacs.
22498
22499         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
22500         Define to an expression, not to the empty string.
22501         Include cloexec.h and xalloc.h.
22502         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
22503         Use set_cloexec_flag rather than rolling our own.
22504         * lib/cloexec.c, lib/cloexec.h: New files.
22505
22506 2004-03-29  Paul Eggert  <eggert@twinsun.com>
22507
22508         * m4/cloexec.m4: New file.
22509
22510 2004-03-18  Paul Eggert  <eggert@twinsun.com>
22511
22512         * lib/getopt.h: Sync with libc CVS.
22513
22514 2004-03-18  Paul Eggert  <eggert@twinsun.com>
22515             Bruno Haible  <bruno@clisp.org>
22516
22517         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
22518         mbswidth.
22519
22520 2004-03-18  Paul Eggert  <eggert@twinsun.com>
22521             Bruno Haible  <bruno@clisp.org>
22522
22523         * lib/mbswidth.h: Include <wchar.h> only if
22524         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
22525         <wchar.h>.
22526         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
22527
22528 2004-03-09  Paul Eggert  <eggert@twinsun.com>
22529
22530         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
22531         Sync with libc CVS.
22532         * lib/getopt_int.h: New file, also synced from libc.
22533
22534 2004-03-09  Paul Eggert  <eggert@twinsun.com>
22535
22536         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
22537         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
22538         Bring back getopt.c, getopt.h, getopt1.c.
22539
22540 2004-03-07  Paul Eggert  <eggert@twinsun.com>
22541
22542         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
22543         All uses changed.  Check for sa_sigaction member; this fixes
22544         a bug first reported by Jason Andrade in
22545         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
22546
22547 2004-03-07  Paul Eggert  <eggert@twinsun.com>
22548
22549         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
22550         '#if' expressions.  Unlike the code it replaces, it does not
22551         depend on (defined _SC_PAGESIZE).  However, it does depend on
22552         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
22553         first reported by Jason Andrade in
22554         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
22555
22556 2004-02-25  Simon Josefsson  <jas@extundo.com>
22557
22558         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
22559
22560 2004-02-25  Simon Josefsson  <jas@extundo.com>
22561
22562         * lib/strdup.h: New file.
22563         * lib/strdup.c: Include it.
22564         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
22565         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
22566
22567 2004-02-23  Karl Berry  <karl@gnu.org>
22568
22569         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
22570         (from fencepost.gnu.org:/gd/gnuorg).
22571
22572 2004-02-23  Karl Berry  <karl@gnu.org>
22573
22574         * config/srclistvars.sh (GNUORG) [karl]: redefine.
22575         * config/srclist.txt: add maintain/standards documents.
22576
22577 2004-02-18  Bruno Haible  <bruno@clisp.org>
22578
22579         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
22580         Reported by Derek Robert Price <derek@ximbiot.com>.
22581
22582 2004-02-16  Karl Berry  <karl@gnu.org>
22583
22584         * config/mkinstalldirs, install-sh: update from automake.
22585
22586 2004-02-06  Karl Berry  <karl@gnu.org>
22587
22588         * m4/po.m4: update from gettext 0.14.1.
22589
22590 2004-02-06  Karl Berry  <karl@gnu.org>
22591
22592         * lib/config.charset: update from gettext 0.14.1.
22593
22594 2004-02-05  Paul Eggert  <eggert@twinsun.com>
22595
22596         Add comments and code, prompted by suggestions from Bruno Haible
22597         for sh-quote.
22598         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
22599         describing the enum quoting_style values.
22600         * lib/quotearg.c (quotearg_alloc): New function.
22601         (quotearg_buffer_restyled): Treat lone { and } as special.
22602         Treat = as special.  Work around bug with older shells
22603         that "see" a '\' that is really the 2nd byte of a multibyte char.
22604         Quote empty string with shell_quoting_style.
22605
22606 2004-02-03  Bruno Haible  <bruno@clisp.org>
22607
22608         * m4/pipe.m4: New file, from GNU gettext.
22609
22610 2004-02-03  Bruno Haible  <bruno@clisp.org>
22611
22612         * lib/pipe.h: New file, from GNU gettext.
22613         * lib/pipe.c: New file, from GNU gettext.
22614
22615 2004-01-27  Bruno Haible  <bruno@clisp.org>
22616
22617         * m4/execute.m4: New file, from GNU gettext.
22618
22619 2004-01-27  Bruno Haible  <bruno@clisp.org>
22620
22621         * lib/execute.h: New file, from GNU gettext.
22622         * lib/execute.c: New file, from GNU gettext.
22623         * lib/w32spawn.h: New file, from GNU gettext.
22624
22625 2004-01-24  Paul Eggert  <eggert@twinsun.com>
22626
22627         Merge from diffutils.
22628
22629         * lib/file-type.c (file_type): Add typed memory objects.
22630         * lib/file-type.h (S_TYPEISTMO): New macro.
22631
22632         * lib/c-stack.h (c_stack_action): Remove argv argument.
22633         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
22634         (die): Don't calculate message unless segv_action returns.
22635         (get_stack_location, min_address_from_argv, max_address_from_argv,
22636         volatile stack_base, volatile_stack_size): Remove.
22637         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
22638         that every segmentation violation is a stack overflow.  (Ouch!)
22639         See Debian bug 136249 (still outstanding) for more info about why
22640         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
22641
22642 2004-01-24  Paul Eggert  <eggert@twinsun.com>
22643
22644         Exit-status fix from coreutils.
22645
22646         Use exit_failure consistently in place of EXIT_FAILURE,
22647         so that program exit statuses are consistent on failure.
22648
22649         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
22650         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
22651         * lib/argmatch.h: Comment fix to match the above.
22652         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
22653         Now a macro referring to exit_failure, instead of a separate
22654         variable.  Include "exitfail.h" to get it.
22655         * lib/xstrtol.h: Include "exitfail.h".
22656         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
22657
22658         * lib/long-options.c (parse_long_options): Use prototype
22659         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
22660         for clarity.
22661
22662 2004-01-21  Jim Meyering  <jim@meyering.net>
22663
22664         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
22665         so as not to conflict with a different-sized __mktime_internal
22666         function in GNU libc.
22667         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
22668         Problem building statically-linked `ls' reported by Michael Brunnbauer.
22669
22670 2004-01-20  Karl Berry  <karl@gnu.org>
22671
22672         * config/config.guess: update from config.
22673
22674         * config/srclistvars.sh: GNUWWWLICENSES for karl.
22675
22676 2004-01-20  Bruno Haible  <bruno@clisp.org>
22677
22678         Safer stack allocation.
22679         * lib/setenv.c: Include allocsa.h.
22680         (alloca): Remove fallback definition.
22681         (freea): Remove macro.
22682         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
22683         instead of freea.
22684
22685 2004-01-20  Bruno Haible  <bruno@clisp.org>
22686
22687         * m4/eealloc.m4: New file, from GNU gettext.
22688
22689 2004-01-20  Bruno Haible  <bruno@clisp.org>
22690
22691         * m4/allocsa.m4: New file, from GNU gettext.
22692
22693 2004-01-20  Bruno Haible  <bruno@clisp.org>
22694
22695         * lib/xallocsa.h: New file, from GNU gettext.
22696         * lib/xallocsa.c: New file, from GNU gettext.
22697
22698 2004-01-20  Bruno Haible  <bruno@clisp.org>
22699
22700         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
22701
22702 2004-01-20  Bruno Haible  <bruno@clisp.org>
22703
22704         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
22705         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
22706         specially.
22707
22708 2004-01-20  Bruno Haible  <bruno@clisp.org>
22709
22710         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
22711         patch.
22712
22713 2004-01-20  Bruno Haible  <bruno@clisp.org>
22714
22715         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
22716
22717 2004-01-20  Bruno Haible  <bruno@clisp.org>
22718
22719         * lib/eealloc.h: New file.
22720
22721 2004-01-20  Bruno Haible  <bruno@clisp.org>
22722
22723         * lib/binary-io.h: Avoid warnings on Cygwin.
22724
22725 2004-01-20  Bruno Haible  <bruno@clisp.org>
22726
22727         * lib/allocsa.h: New file, from GNU gettext.
22728         * lib/allocsa.c: New file, from GNU gettext.
22729
22730 2004-01-18  Karl Berry  <karl@gnu.org>
22731
22732         * doc/gpl.texi, doc/lgpl.texi: new files.
22733
22734 2004-01-18  Karl Berry  <karl@gnu.org>
22735
22736         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
22737         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
22738
22739 2004-01-15  Paul Eggert  <eggert@twinsun.com>
22740
22741         Merge from coreutils.
22742
22743         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
22744         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
22745         (gl_DEFAULT_POSIX2_VERSION): Move
22746         the documentation from 'configure' into 'config.hin',
22747         so that 'configure --help' isn't burdened by it and
22748         we don't have to worry about its formatting there.
22749         Reword the documentation so that it's more succinct
22750         and can be run together into a single paragraph.
22751         * m4/same.m4 (gl_SAME): Check for pathconf.
22752
22753 2004-01-15  Paul Eggert  <eggert@twinsun.com>
22754
22755         Merge from coreutils.
22756
22757         * lib/posixver.c: Include posixver.h.
22758
22759         * lib/same.c: Include <stdbool.h>, <limits.h>.
22760         (_POSIX_NAME_MAX): Define if not defined.
22761         (MIN): New macro.
22762         (same_name): If file names are silently truncated, report
22763         that the file names are the same if they are the same after
22764         the silent truncation.
22765
22766         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
22767         conversion function.
22768         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
22769         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
22770         longer needed.
22771
22772 2004-01-15  Jim Meyering  <jim@meyering.net>
22773
22774         Merge from coreutils.
22775
22776         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
22777         if no library is required.
22778         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
22779         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
22780         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
22781         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
22782         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
22783         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
22784         value, $ac_cv_search_crypt, if it's "none required".
22785         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
22786         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
22787         not gl_FUNC_GETLOADAVG.
22788         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
22789         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
22790
22791 2004-01-15  Jim Meyering  <jim@meyering.net>
22792
22793         Merge from coreutils.
22794
22795         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
22796         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
22797         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
22798
22799         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
22800         optional configure-time default.
22801
22802         * lib/version-etc.c (version_etc_copyright): Update copyright date.
22803
22804         * lib/xreadlink.c (xreadlink): Correct outdated comment.
22805
22806 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
22807
22808         Merge from coreutils.
22809
22810         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
22811         value, $ac_cv_search_nanosleep, if it's "none required".
22812
22813 2004-01-14  Paul Eggert  <eggert@twinsun.com>
22814
22815         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
22816         with like-named macro in fnmatch.c.
22817         (EXT): Use an internal constant instead.
22818
22819         Merge fnmatch patches from glibc.
22820         * lib/fnmatch.c (mbsinit): Remove define.
22821         Add libc_hidden_ver (__fnmatch, fnmatch).
22822         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
22823         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
22824
22825 2004-01-14  Karl Berry  <karl@gnu.org>
22826
22827         * config/install-sh: update from automake.
22828
22829 2004-01-13  Karl Berry  <karl@gnu.org>
22830
22831         * config/install-sh: update from automake.
22832
22833 2004-01-09  Karl Berry  <karl@gnu.org>
22834
22835         * config/install-sh: update from automake.
22836
22837 2004-01-05  Karl Berry  <karl@gnu.org>
22838
22839         * config/config.{sub,guess}: update from config.
22840
22841 2003-12-31  Karl Berry  <karl@gnu.org>
22842
22843         * config/depcomp: update from automake.
22844
22845 2003-12-14  Karl Berry  <karl@gnu.org>
22846
22847         * lib/config.charset: update from gettext-runtime.
22848
22849 2003-12-03  Paul Eggert  <eggert@twinsun.com>
22850
22851         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
22852         Bug reported by Alfred M. Szmidt.
22853
22854 2003-12-03  Bruno Haible  <bruno@clisp.org>
22855
22856         * m4/gettext.m4: Upgrade from gettext-0.13.
22857         * m4/po.m4: Upgrade from gettext-0.13.
22858         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
22859         * m4/intmax.m4: New file, from gettext-0.13.
22860         * m4/printf-posix.m4: New file, from gettext-0.13.
22861
22862 2003-11-29  Karl Berry  <karl@gnu.org>
22863
22864         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
22865
22866 2003-11-25  Paul Eggert  <eggert@twinsun.com>
22867             Bruno Haible  <bruno@clisp.org>
22868
22869         * lib/printf-parse.h: Don't include sys/types.h.
22870         (ARG_NONE): New macro.
22871         (char_directive): Change type of *arg_index fields to size_t.
22872         * lib/printf-parse.c: Don't include sys/types.h.
22873         (SSIZE_MAX): Remove macro.
22874         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
22875         Remove unnecessary overflow check.
22876         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
22877         fields.
22878
22879 2003-11-25  Bruno Haible  <bruno@clisp.org>
22880
22881         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
22882
22883 2003-11-25  Bruno Haible  <bruno@clisp.org>
22884
22885         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
22886         gt_TYPE_SSIZE_T.
22887
22888 2003-11-24  Paul Eggert  <eggert@twinsun.com>
22889
22890         * modules/alloca: Remove dependency on xalloc.
22891
22892 2003-11-24  Paul Eggert  <eggert@twinsun.com>
22893
22894         * lib/alloca.c: Remove dependency on xalloc module.
22895         (xalloc_die): Remove.
22896         (memory_full) [!defined emacs]: New macro.
22897         [!defined emacs]: Don't include xalloc.h.
22898         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
22899         address arithmetic overflows.  Change datatypes a bit to avoid
22900         unnecessary casts.
22901
22902 2003-11-22  Jim Meyering  <jim@meyering.net>
22903
22904         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
22905         s/size/size_t/.
22906
22907 2003-11-21  Karl Berry  <karl@gnu.org>
22908
22909         * config/config.{sub,guess}: update from config.
22910
22911 2003-11-18  Karl Berry  <karl@gnu.org>
22912
22913         * config/config.{sub,guess}: update from config.
22914
22915         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
22916
22917 2003-11-17  Paul Eggert  <eggert@twinsun.com>
22918
22919         * README: Mention that S+T cannot overflow if S is the size of
22920         an existing object and T is sufficiently small.
22921
22922 2003-11-17  Jim Meyering  <jim@meyering.net>
22923
22924         On systems without utime and without a utimes function capable of
22925         dealing with a NULL struct utimbuf* argument, this utime replacement
22926         could -- in unusual circumstances -- leak a file descriptor.
22927         * lib/utime.c: Include <unistd.h> and <errno.h>.
22928         (utime_null): Be sure to close `fd' and to preserve errno.
22929         Reported by Geoff Collyer via Arnold Robbins.
22930
22931 2003-11-17  Bruno Haible  <bruno@clisp.org>
22932
22933         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
22934         (Depends-on): Add xsize.
22935
22936 2003-11-17  Bruno Haible  <bruno@clisp.org>
22937
22938         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
22939
22940 2003-11-17  Bruno Haible  <bruno@clisp.org>
22941
22942         * lib/vasnprintf.c (alloca): Remove fallback definition.
22943         (freea): Remove definition.
22944         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
22945         Reported by Paul Eggert.
22946
22947 2003-11-16  Paul Eggert  <eggert@twinsun.com>
22948             Bruno Haible  <bruno@clisp.org>
22949
22950         Protect against address arithmetic overflow.
22951         * lib/printf-args.h: Include stddef.h.
22952         (arguments): Change type of field 'count' to size_t.
22953         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
22954         'unsigned int' where appropriate.
22955         * lib/printf-parse.h: Include sys/types.h.
22956         (char_directive): Change type of *arg_index fields to ssize_t.
22957         (char_directives): Change type of fields 'count', max_*_length to
22958         size_t.
22959         * lib/printf-parse.c: Include sys/types.h and xsize.h.
22960         (SSIZE_MAX): Define fallback value.
22961         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
22962         instead of 'int' where appropriate. Check a_allocated, d_allocated
22963         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
22964         * lib/vasnprintf.c: Include xsize.h.
22965         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
22966         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
22967         overflow. Avoid wraparound when converting a width or precision from
22968         decimal to binary.
22969
22970 2003-11-16  Bruno Haible  <bruno@clisp.org>
22971
22972         Update from GNU gettext.
22973         * lib/printf-parse.c: Generalize to it can be compiled for wide
22974         strings.
22975         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
22976         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
22977         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
22978         SNPRINTF): New macros.
22979         Don't include <alloca.h> if the file is used inside libintl.
22980         (local_wcslen): New function, for Solaris 2.5.1.
22981         (VASNPRINTF): Use it instead of wcslen.
22982
22983 2003-11-16  Bruno Haible  <bruno@clisp.org>
22984
22985         * lib/xsize.h (xmax): New function.
22986         (xsum, xsum3, xsum4): Declare as "pure" functions.
22987
22988 2003-11-12  Paul Eggert  <eggert@twinsun.com>
22989
22990         * modules/xalloc (Files): Undo latest change, since xalloc.h
22991         no longer needs SIZE_MAX or PTRDIFF_MAX.
22992
22993 2003-11-12  Paul Eggert  <eggert@twinsun.com>
22994
22995         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
22996         gl_PTRDIFF_MAX.
22997
22998 2003-11-12  Paul Eggert  <eggert@twinsun.com>
22999
23000         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
23001         "return", to pacify some unknown compiler.  Problem reported
23002         by Joerg Schilling.
23003
23004 2003-11-12  Paul Eggert  <eggert@twinsun.com>
23005
23006         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
23007         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
23008         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
23009         heuristic is just as accurate as far as we know, and it removes a
23010         dependency on size_max.m4 and ptrdiff_max.m4.
23011
23012 2003-11-11  Bruno Haible  <bruno@clisp.org>
23013
23014         * modules/xsize (Files): Add m4/size_max.m4.
23015         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
23016
23017 2003-11-11  Bruno Haible  <bruno@clisp.org>
23018
23019         * m4/size_max.m4: New file.
23020         * m4/ptrdiff_max.m4: New file.
23021         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
23022         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
23023         (gl_XALLOC): Invoke it.
23024
23025 2003-11-11  Bruno Haible  <bruno@clisp.org>
23026
23027         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
23028         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
23029         defined.
23030
23031 2003-11-10  Paul Eggert  <eggert@twinsun.com>
23032
23033         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
23034         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
23035         rejected some allocations of exactly SIZE_MAX - 2 bytes.
23036         From Bruno Haible.
23037         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
23038         not (size_t) -1, since it's defined here.
23039
23040 2003-11-09  Karl Berry  <karl@gnu.org>
23041
23042         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
23043
23044 2003-11-06  Paul Eggert  <eggert@twinsun.com>
23045
23046         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
23047         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
23048         Reject sizes of exactly SIZE_MAX bytes.
23049         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
23050         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
23051
23052 2003-11-05  Bruno Haible  <bruno@clisp.org>
23053
23054         * lib/xsize.h: Include limits.h, to avoid a possible collision with
23055         SIZE_MAX defined in <limits.h> on Solaris.
23056
23057 2003-11-04  Jim Meyering  <jim@meyering.net>
23058
23059         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
23060         variable names, rather than @VAR@.
23061         * modules/poll: Likewise.
23062
23063 2003-11-04  Bruno Haible  <bruno@clisp.org>
23064
23065         * modules/xsize: New file.
23066         * modules/linebreak: Depend on xsize.
23067         * MODULES.html.sh (func_all_modules): Add xsize.
23068
23069 2003-11-04  Bruno Haible  <bruno@clisp.org>
23070
23071         * m4/xsize.m4: New file.
23072
23073 2003-11-04  Bruno Haible  <bruno@clisp.org>
23074
23075         * lib/xsize.h: New file.
23076         * lib/linebreak.c: Include xsize.h.
23077         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
23078         argument for overflow.
23079         Suggested by Paul Eggert.
23080
23081 2003-11-03  Karl Berry  <karl@gnu.org>
23082
23083         * config/config.{guess,sub}: update from config.
23084
23085 2003-11-03  Jim Meyering  <jim@meyering.net>
23086
23087         * modules/userspec (lib_SOURCES): Add userspec.h.
23088         (Include): Add "userspec.h".
23089         Improve description.
23090
23091 2003-11-03  Jim Meyering  <jim@meyering.net>
23092
23093         * lib/userspec.c: Include "userspec.h".
23094         * lib/userspec.h: New file.
23095
23096 2003-11-03  Bruno Haible  <bruno@clisp.org>
23097
23098         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
23099
23100 2003-11-03  Bruno Haible  <bruno@clisp.org>
23101
23102         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
23103         available, to avoid (extremely rare) race condition.
23104         Suggested by Paul Eggert.
23105
23106 2003-11-02  Karl Berry  <karl@gnu.org>
23107
23108         * config/srclist.txt (vasprintf.c): sync broken, sigh.
23109
23110 2003-10-31  Paul Eggert  <eggert@twinsun.com>
23111
23112         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
23113         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
23114         (read_filesystem_list): Set and use me_type_malloced.
23115         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
23116         whatever the type happens to be), for brevity and consistency.
23117         Check for size calculation overflow on Alphas running OSF/1.
23118
23119 2003-10-31  Jim Meyering  <jim@meyering.net>
23120
23121         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
23122
23123         * lib/linebuffer.c: Include <string.h> for declaration of memset.
23124
23125 2003-10-30  Paul Eggert  <eggert@twinsun.com>
23126             Bruno Haible  <bruno@clisp.org>
23127
23128         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
23129         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
23130
23131 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
23132
23133         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
23134         netbsd*-gnu*.  Suggested by Robert Millan.
23135
23136 2003-10-29  Paul Eggert  <eggert@twinsun.com>
23137
23138         * modules/group-member: Depend on stdbool.
23139
23140 2003-10-29  Paul Eggert  <eggert@twinsun.com>
23141
23142         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
23143
23144 2003-10-29  Paul Eggert  <eggert@twinsun.com>
23145
23146         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
23147         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
23148         after the 'gnu' in these cases.  This fixes some bugs in the
23149         previous change, and is based on suggestions by Robert Millan.
23150
23151 2003-10-29  Paul Eggert  <eggert@twinsun.com>
23152
23153         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
23154         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
23155         no longer needed.
23156         * lib/quotearg.c (quotearg_n_options): Use it.
23157         * lib/group-member.c: Include <stdbool.h>.
23158         (free_group_info): Arg is now const *; don't free arg.
23159         (get_group_info): Now returns bool and accepts struct group_info *,
23160         rather than returning a malloc'ed struct group_info *.
23161         All uses changed.  Check for overflow in internal size calculation.
23162
23163         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
23164         rather than xmalloc/xrealloc.
23165         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
23166         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
23167         conformance bug: the old code used a pointer after freeing the
23168         storage that it addressed.
23169         * lib/hash.c (hash_initialize): Simplify the code by using
23170         xalloc_oversized rather than doing it by hand.
23171         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
23172         the buffer preserved.  Use free and xmalloc instead.
23173         * lib/quotearg.c (quotearg_n_options): Likewise.
23174         Use a simpler test for size overflow.  Don't use xalloc_oversized
23175         because unsigned int might be wider than size_t (!); this suggests
23176         that we should switch from unsigned int to size_t for slot numbers.
23177
23178 2003-10-28  Paul Eggert  <eggert@twinsun.com>
23179
23180         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
23181         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
23182         NetBSD kernels.  Requested by Richard Stallman.
23183
23184 2003-10-27  Paul Eggert  <eggert@twinsun.com>
23185
23186         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
23187         to allocate the returned structure.  Do not allocate a subarray,
23188         as x2nrealloc will do that.
23189         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
23190         instead of xnrealloc.
23191         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
23192
23193 2003-10-27  Bruno Haible  <bruno@clisp.org>
23194
23195         * lib/stdbool_.h: Better support for BeOS.
23196
23197 2003-10-26  Paul Eggert  <eggert@twinsun.com>
23198
23199         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
23200         now uses inline.
23201
23202 2003-10-26  Paul Eggert  <eggert@twinsun.com>
23203
23204         * lib/xalloc.h (xalloc_oversized): New static inline function, for
23205         callers that want to do their own size-overflow checking.  Include
23206         <stdbool.h>, since xalloc_oversized returns bool.
23207         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
23208         to use xalloc_oversized.
23209
23210         Add two functions x2realloc, x2nrealloc, for programs that grow
23211         arrays dynamically by doubling their sizes.
23212         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
23213         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
23214         New functions.
23215
23216         Port to C99 semantics for 'inline' of external functions.
23217         Bug reported by Bruno Haible.
23218         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
23219         with the old contents of xnmalloc.
23220         (xnmalloc, xmalloc): Use it.
23221         (xnrealloc_inline): New static inline function,
23222         with the old contents of xnrealloc.
23223         (xnrealloc, xrealloc): Use it.
23224
23225         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
23226         that.
23227
23228 2003-10-26  Karl Berry  <karl@gnu.org>
23229
23230         * config/srclist.txt (COPYING.DOC): no longer available from
23231         /gd/gnuorg; don't know where the ultimate source is.
23232
23233 2003-10-25  Paul Eggert  <eggert@twinsun.com>
23234
23235         Fix several address-calculation bugs in the hash modules,
23236         plus some minor code cleanup.
23237
23238         * lib/hash.h: Include <stdbool.h>, for bool.
23239         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
23240         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
23241         hash_get_n_entries, hash_get_max_bucket_length,
23242         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
23243         hash_rehash): Use size_t rather than unsigned.
23244         * lib/hash.c (struct hash_table, hash_get_n_buckets,
23245         hash_get_n_buckets_used, hash_get_n_entries,
23246         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
23247         hash_get_entries, hash_do_for_each, hash_string, is_prime,
23248         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
23249         Likewise.
23250         (SIZE_MAX): Define if not defined.
23251         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
23252         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
23253         hash_print):
23254         Use const * when possible.
23255         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
23256         (check_tuning): Fix bug: if tuning parameters were very close to
23257         0 or 1, rounding errors could have caused subscript violations.
23258         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
23259         (hash_initialize): Add 'fail:' label
23260         to free table and return NULL, and use it to simplify code.
23261         Use calloc rather than clearing the storage ourself.
23262         (hash_initialize, hash_rehash): Check for arithmetic overflow in
23263         buffer size calculations.
23264         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
23265         Include <stddef.h>, for size_t.
23266         * lib/hash-pjw.c (hash_pjw): Likewise.
23267         Switch to method described by Bruno Haible.
23268         Include <limits.h>, for CHAR_BIT.
23269         (SIZE_BITS): New macro.
23270
23271 2003-10-23  Paul Eggert  <eggert@twinsun.com>
23272
23273         * m4/getline.m4 (AM_FUNC_GETLINE):
23274         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
23275         hosts.  Problem reported by Derek Robert Price in
23276         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
23277         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
23278         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
23279
23280 2003-10-21  Paul Eggert  <eggert@twinsun.com>
23281
23282         * lib/getndelim2.c (getndelim2): When size calculation overflows,
23283         ceiling the allocation at NMAX bytes rather than silently
23284         discarding input bytes before NMAX is reached.  This makes
23285         a difference only if NMAX exceeds SIZE_MAX / 2.
23286
23287         * lib/obstack.c: Merge from glibc.
23288         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
23289         Add libc_hidden_def (_obstack_newchunk).
23290         (_obstack_free) [! defined _LIBC]: Remove.
23291         [defined _LIBC]: Make a strong alias from obstack_free, rather than
23292         a clone of the function body.
23293         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
23294         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
23295
23296         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
23297         glibc.
23298         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
23299         arg to memcpy.
23300
23301         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
23302         (obstack_ptr_grow_fast, obstack_int_grow_fast):
23303         Don't use lvalue casts, as GCC plans to remove support for them
23304         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
23305         was also present in the non-GCC version, indicating that this
23306         code had always been buggy and had never been widely used.
23307         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
23308         Use the fast variant of each macro, rather than copying the
23309         definiens of the fast variant; that way, we'll be more likely to
23310         catch future bugs in the fast variants.
23311
23312 2003-10-20  Bruno Haible  <bruno@clisp.org>
23313
23314         * modules/wait-process: New file.
23315         * MODULES.html.sh (func_all_modules): Add wait-process.
23316
23317 2003-10-20  Bruno Haible  <bruno@clisp.org>
23318
23319         * m4/wait-process.m4: New file.
23320
23321 2003-10-20  Bruno Haible  <bruno@clisp.org>
23322
23323         * lib/wait-process.h: New file, from GNU gettext.
23324         * lib/wait-process.c: New file, from GNU gettext.
23325
23326 2003-10-19  Jim Meyering  <jim@meyering.net>
23327
23328         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
23329         HPUX 10.20.
23330
23331 2003-10-18  Karl Berry  <karl@gnu.org>
23332
23333         * config/config.guess: update from config.
23334
23335 2003-10-16  Paul Eggert  <eggert@twinsun.com>
23336
23337         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
23338         (getgroups): First arg is int, not size_t.
23339         Don't let 'free' mangle errno.
23340
23341 2003-10-16  Paul Eggert  <eggert@twinsun.com>
23342
23343         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
23344
23345 2003-10-16  Karl Berry  <karl@gnu.org>
23346
23347         * config/config.{guess,sub}: update from config.
23348
23349 2003-10-16  Jim Meyering  <jim@meyering.net>
23350
23351         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
23352         memcpy.
23353
23354 2003-10-15  Paul Eggert  <eggert@twinsun.com>
23355
23356         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
23357         (SIZE_MAX): Remove.
23358         (new_exclude, add_exclude_file): Initial size no longer needs to
23359         be a power of 2.
23360         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
23361         our own address arithmetic overflow checking.
23362
23363         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
23364         (fnmatch): Do not alloca more than 2000 wide characters;
23365         instead, use malloc for large buffers.
23366         Check for address arithmetic overflow, and return -1
23367         with errno set to ENOMEM in that case.
23368         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
23369         (NEW_PATTERN): Do not alloca more than 8000 bytes;
23370         instead, return -1.  Check for address arithmetic overflow.
23371
23372 2003-10-14  Paul Eggert  <eggert@twinsun.com>
23373
23374         Handle invalid suffixes and overflow independently, so that
23375         callers can treat them independently as needed.  Fix some bugs in
23376         suffix handling, e.g., "100k@" was not diagnosed as an invalid
23377         suffix for a human-readable blocksize.  The major caller-visible
23378         change is the addition of a new
23379         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
23380         that both overflow and suffix chars were found.
23381
23382         * lib/human.c (humblock): Don't check separately for invalid suffix
23383         char; that is xstrtoumax's job (now that its bug is fixed).
23384         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
23385         INTMAX_MAX]: New macros.
23386         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
23387         TYPE_MAXIMUM): New macros.
23388         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
23389         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
23390         if overflow occurs, as it's what __strtol does and it's more useful
23391         in practice.
23392         (__xstrtol): If __strtol reports some error other than ERANGE,
23393         reflect it to the caller as LONGINT_INVALID.  If it reports
23394         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
23395         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
23396         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
23397         value.
23398         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
23399         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
23400         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
23401         [defined UINTMAX_MAX]: New macros.
23402
23403 2003-10-14  Bruno Haible  <bruno@clisp.org>
23404
23405         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
23406
23407 2003-10-14  Bruno Haible  <bruno@clisp.org>
23408
23409         * m4/sig_atomic_t: New file, from GNU gettext.
23410         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
23411
23412 2003-10-14  Bruno Haible  <bruno@clisp.org>
23413
23414         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
23415         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
23416         Also use volatile where needed.
23417
23418 2003-10-12  Paul Eggert  <eggert@twinsun.com>
23419
23420         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
23421         Change maintainer from Bruno Haible to 'all'.
23422
23423 2003-10-12  Paul Eggert  <eggert@twinsun.com>
23424
23425         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
23426
23427 2003-10-12  Paul Eggert  <eggert@twinsun.com>
23428
23429         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
23430         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
23431         and define in terms of the other primitives.
23432         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
23433         (SIZE_MAX): Define if not already defined.
23434         (array_size_overflow): New function.
23435         (xalloc_die): Abort instead of exiting if 'error' returns.
23436         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
23437         (xmalloc, xrealloc): Use them.
23438         (xcalloc): Check for address arithmetic overflow.
23439         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
23440         a bit faster than strcpy.
23441
23442 2003-10-10  Simon Josefsson  <jas@extundo.com>
23443
23444         * modules/argp (Depends-on): Add restrict and strcase.
23445
23446 2003-10-10  Simon Josefsson  <jas@extundo.com>
23447
23448         * m4/argp.m4: Add AC_C_INLINE.
23449
23450 2003-10-08  Paul Eggert  <eggert@twinsun.com>
23451
23452         Merge getpass from libc, plus a few fixes.
23453
23454         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
23455         Include <stdbool.h>.
23456         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
23457         __fsetlocking to empty.
23458         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
23459         do include <bits/libc-lock.h>.
23460         Do not include <fcntl.h>; not needed.
23461         [_LIBC]: Include <wchar.h>.
23462         (NOTCANCEL_MODE): New macro.
23463         (flockfile, funlockfile) [_LIBC]: New macros.
23464         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
23465         [!_LIBC]: New macros.
23466         (call_fclose): New function.
23467         (getpass): Use it.  Save tty stream separately; this simplifies the
23468         code and makes it more reliable if stdin happens to equal stdout.
23469         Invoke __fsetlocking on tty.
23470         Handle thread cancellation if needed.
23471         Namespace cleanup (use __tcgetattr, __getline).
23472         Use bool for Booleans.
23473         [USE_IN_LIBIO]: Handle wide streams.
23474         [!_LIBC]: Unconditionally do the fseek, since we don't know what
23475         stream might go where.
23476
23477         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
23478         doesn't have to include <stdio.h> before us.
23479         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
23480         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
23481         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
23482         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
23483         if not declared, so that we can use getpass.c code from libc without
23484         rewriting it.
23485         (flockfile, ftrylockfile, funlockfile): New macros.
23486
23487 2003-10-08  Paul Eggert  <eggert@twinsun.com>
23488
23489         * modules/getpass: Depend on stdbool.
23490
23491 2003-10-08  Paul Eggert  <eggert@twinsun.com>
23492
23493         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
23494
23495 2003-10-07  Karl Berry  <karl@gnu.org>
23496
23497         * config/config.{guess,sub}: update from config.
23498
23499 2003-10-06  Jim Meyering  <jim@meyering.net>
23500             Bruno Haible  <bruno@clisp.org>
23501
23502         This lets translators provide better translations for the
23503         "Written by ..." part of --version output.
23504         * lib/version-etc.h: Include stdarg.h.
23505         (version_etc_copyright): Declare as readonly.
23506         (version_etc): Make this function variadic with a NULL-terminated list
23507         of author name strings.
23508         (version_etc_va): New declaration.
23509         * lib/version-etc.c: Include stdarg.h, stdlib.h.
23510         (version_etc_copyright): Declare as readonly.
23511         (version_etc_va): New function. Provide a different translatable string
23512         for each possible number of authors < 10. Abbreviate when there are 10
23513         authors or more.
23514         (version_etc): Make this function variadic. Call version_etc_va.
23515         Suggestion from Gary V. Vaughan.
23516
23517         * lib/long-options.h (parse_long_options): Change prototype: the
23518         authors string is moved to the end and becomes variadic.
23519         * lib/long-options.c: Include stdarg.h.
23520         (parse_long_options): Make this function variadic, too.
23521         Call version_etc_va, not version_etc.
23522
23523 2003-10-06  Bruno Haible  <bruno@clisp.org>
23524
23525         * modules/version-etc-2: Remove file.
23526         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
23527
23528 2003-10-06  Bruno Haible  <bruno@clisp.org>
23529
23530         * modules/fatal-signal: New file.
23531         * MODULES.html.sh (func_all_modules): Add fatal-signal.
23532
23533 2003-10-06  Bruno Haible  <bruno@clisp.org>
23534
23535         * m4/fatal-signal.m4: New file.
23536         * m4/signalblocking.m4: New file, from GNU gettext.
23537
23538 2003-10-06  Bruno Haible  <bruno@clisp.org>
23539
23540         * lib/version-etc-2.h: Remove file.
23541         * lib/version-etc-2.c: Remove file.
23542
23543 2003-10-06  Bruno Haible  <bruno@clisp.org>
23544
23545         * lib/fatal-signal.h: New file, from GNU gettext.
23546         * lib/fatal-signal.c: New file, from GNU gettext.
23547
23548 2003-10-05  Paul Eggert  <eggert@twinsun.com>
23549
23550         * README: Rework advice for preventing empty .o files.
23551         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
23552         not <sys/types.h>.
23553
23554 2003-10-04  Karl Berry  <karl@gnu.org>
23555
23556         * lib/argp*: update from libc.
23557
23558 2003-10-04  Karl Berry  <karl@gnu.org>
23559
23560         * config/config.{guess,sub}: update from config.
23561
23562 2003-10-02  Bruno Haible  <bruno@clisp.org>
23563
23564         * modules/lchown (Include): Add lchown.h.
23565         * modules/time_r (Include): Use "..." syntax.
23566         * modules/xgetdomainname (Include): Add xgetdomainname.h.
23567
23568 2003-10-01  Simon Josefsson  <jas@extundo.com>
23569
23570         * MODULES.html.sh (func_all_modules): Move gethostname from section
23571         'based on' to section 'lacking' POSIX:2001.
23572
23573 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
23574
23575         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
23576         to output mode on the same stream.
23577
23578 2003-09-29  Paul Eggert  <eggert@twinsun.com>
23579
23580         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
23581         Fix arg typo in previous patch.
23582
23583 2003-09-28  Jim Meyering  <jim@meyering.net>
23584
23585         * lib/error.c: Correct cpp indentation.
23586
23587 2003-09-27  Paul Eggert  <eggert@twinsun.com>
23588
23589         * modules/free: New file.
23590
23591 2003-09-27  Paul Eggert  <eggert@twinsun.com>
23592
23593         * m4/free.m4: New file.
23594
23595 2003-09-27  Paul Eggert  <eggert@twinsun.com>
23596
23597         * lib/minmax.h (MIN, MAX)
23598         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
23599         Omit the special code that used __typeof__, since we worry that
23600         it could be more trouble than it's worth.  See:
23601         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
23602         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
23603
23604         * lib/free.c: New file.
23605
23606 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
23607
23608         Trivial fixes to Makefile.am parts of module listings.
23609         * modules/strstr: Append strstr.h to lib_SOURCES.
23610         * modules/strcase: Likewise, for strcase.h.
23611
23612 2003-09-27  Karl Berry  <karl@gnu.org>
23613
23614         * config/mkinstalldirs: update from automake.
23615
23616 2003-09-26  Paul Eggert  <eggert@twinsun.com>
23617
23618         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
23619         (error_tail): Do not loop, reallocating temporary buffer, since
23620         the output cannot contain more wide characters than the input
23621         contains bytes, the size must be big enough already.  This avoids
23622         one potential size overflow calculation.  Check for size overflow
23623         when calculating temporary buffer size.  Free temporary buffer
23624         when done, if it was allocated with malloc; this plugs a memory
23625         leak.  Remove casts from void * to pointers, that are no longer
23626         needed now that we're assuming C89 or better.
23627
23628         Merge error changes from glibc.
23629
23630         * lib/error.c, error.h: Update copyright notice header to match glibc.
23631         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
23632         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
23633         Disable cancellation while printing error.
23634         * lib/error.h: Prepend __ to parameter names.
23635
23636 2003-09-26  Jim Meyering  <jim@meyering.net>
23637
23638         * lib/error.c (error_tail): Move some declarations
23639         into inner scope where the local variables are used.
23640
23641 2003-09-26  Bruno Haible  <bruno@clisp.org>
23642
23643         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
23644         stpncpy().
23645         Don't define stpncpy through config.h; it's now done through stpncpy.h.
23646
23647 2003-09-26  Bruno Haible  <bruno@clisp.org>
23648
23649         * lib/stpncpy.h (gnu_stpncpy): New declaration.
23650         (stpncpy): Define as alias for gnu_stpncpy.
23651         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
23652
23653 2003-09-25  Simon Josefsson  <jas@extundo.com>
23654
23655         * lib/xgetdomainname.h: New file.
23656         * lib/xgetdomainname.c: New file.
23657
23658 2003-09-25  Simon Josefsson  <jas@extundo.com>
23659             Bruno Haible  <bruno@clisp.org>
23660
23661         * modules/getdomainname: New file.
23662         * modules/xgetdomainname: New file.
23663         * MODULES.html.sh (func_all_modules): Add getdomainname,
23664         xgetdomainname.
23665
23666 2003-09-25  Simon Josefsson  <jas@extundo.com>
23667             Bruno Haible  <bruno@clisp.org>
23668
23669         * m4/getdomainname.m4: New file.
23670
23671 2003-09-25  Simon Josefsson  <jas@extundo.com>
23672             Bruno Haible  <bruno@clisp.org>
23673
23674         * lib/getdomainname.h: New file.
23675         * lib/getdomainname.c: New file.
23676
23677 2003-09-25  Karl Berry  <karl@gnu.org>
23678
23679         * lib/argp-fmtstream.c, argp-help.c: update from libc.
23680
23681 2003-09-25  Karl Berry  <karl@gnu.org>
23682
23683         * config/install-sh: update from automake.
23684
23685 2003-09-25  Bruno Haible  <bruno@clisp.org>
23686
23687         * modules/version-etc-2: New file, from modules/version-etc with
23688         modifications.
23689         * MODULES.html.sh (func_all_modules): Add version-etc-2.
23690
23691 2003-09-25  Bruno Haible  <bruno@clisp.org>
23692
23693         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
23694         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
23695
23696 2003-09-24  Simon Josefsson  <jas@extundo.com>
23697
23698         * modules/xgethostname: Add xgethostname.h.
23699
23700 2003-09-24  Paul Eggert  <eggert@twinsun.com>
23701
23702         * lib/linebuffer.c (freebuffer): Don't free the argument, just
23703         the buffer associated with the argument.  Bug reported by
23704         Simon Josefsson.
23705
23706 2003-09-24  Paul Eggert  <eggert@twinsun.com>
23707
23708         * README: Document assumptions that 'int' is at least 32 bits
23709         wide, that integer arithmetic is 2's complement without overflow,
23710         that there are no holes in integer values, that adding sizes of
23711         two nonoverlapping objects can't overflow, and that all-bits-zero
23712         yields scalar zero.  Fix spelling and capitalization typos.
23713
23714 2003-09-19  Karl Berry  <karl@gnu.org>
23715
23716         * lib/argp.h: update from libc.
23717
23718 2003-09-17  Paul Eggert  <eggert@twinsun.com>
23719
23720         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
23721         to avoid spurious warnings like "AC_RUN_IFELSE was called before
23722         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
23723
23724 2003-09-17  Paul Eggert  <eggert@twinsun.com>
23725
23726         * gnulib-tool: Use "test -h", not "test -L", for portability
23727         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
23728         (tags_regexp): Remove, since \| doesn't conform to POSIX.
23729         (sed_extract_prog): Issue s commands one-by-one, rather than
23730         using \| in one s command.
23731
23732 2003-09-16  Paul Eggert  <eggert@twinsun.com>
23733
23734         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
23735         input error, instead of returning NULL the next time we are called
23736         (and therefore losing track of errno).
23737
23738 2003-09-16  Bruno Haible  <bruno@clisp.org>
23739
23740         * gnulib-tool (func_create_testdir): Warn about duplicated
23741         dependencies.
23742
23743 2003-09-15  Paul Eggert  <eggert@twinsun.com>
23744
23745         * modules/argmatch, modules/fatal, modules/obstack,
23746         modules/xalloc, modules/xgethostname: Sort dependencies by
23747         importance, not alphabetically.
23748
23749 2003-09-15  Paul Eggert  <eggert@twinsun.com>
23750
23751         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
23752         fails, so that the caller gets the proper errno.
23753
23754         * lib/readutmp.c (read_utmp): Likewise.
23755         Check for fstat error.  Close stream and free storage
23756         when failing.
23757
23758 2003-09-14  Karl Berry  <karl@gnu.org>
23759
23760         * config/srclist.txt (strdup.c): disable for c89 changes.
23761
23762 2003-09-14  Jim Meyering  <jim@meyering.net>
23763
23764         * lib/getloadavg.c: Correct cpp indentation.
23765         * lib/strdup.c: Likewise.
23766         * lib/vasnprintf.c: Likewise.
23767
23768 2003-09-14  Bruno Haible  <bruno@clisp.org>
23769
23770         * modules/fwriteerror: New file.
23771         * MODULES.html.sh (func_all_modules): Add fwriteerror.
23772
23773 2003-09-14  Bruno Haible  <bruno@clisp.org>
23774
23775         * lib/fwriteerror.h: New file.
23776         * lib/fwriteerror.c: New file.
23777
23778 2003-09-12  Paul Eggert  <eggert@twinsun.com>
23779
23780         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
23781         modules/xgethostname, modules/xalloc: Depend on exit.
23782
23783 2003-09-12  Paul Eggert  <eggert@twinsun.com>
23784
23785         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
23786
23787         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
23788         and AC_MINIX, too, so that their extensions are available.
23789
23790         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
23791         This macro has been superseded by gl_BACKUPFILE.
23792
23793         More patches to assume C89 or better.
23794
23795         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
23796
23797         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
23798         unconditionally.
23799         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
23800         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
23801         Include <string.h>, <stdlib.h> unconditionally.
23802         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
23803         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
23804         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
23805         headers or for string.h.
23806         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
23807         or strtoul.
23808
23809         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
23810         headers.
23811         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
23812         * m4/userspec.m4 (gl_USERSPEC): Likewise.
23813         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
23814         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
23815         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
23816         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
23817         memcpy, memset.
23818         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
23819         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
23820         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
23821         strtol.
23822         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
23823         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
23824         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
23825         strtoul.
23826
23827 2003-09-12  Paul Eggert  <eggert@twinsun.com>
23828
23829         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
23830         * lib/obstack.c [!defined _LIBC]: Likewise.
23831         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
23832         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
23833         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
23834
23835         More changes to assume C89 or better.
23836
23837         * lib/error.c (error_tail): Assume vprintf.
23838
23839         * lib/argmatch.c (getenv): Remove decl.
23840         * lib/progreloc.c (get_full_program_name): Define via prototype.
23841         * lib/setenv.c (clearenv): Likewise.
23842         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
23843         needed.
23844         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
23845         (malloc, memcpy): Remove decls.
23846         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
23847         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
23848         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
23849         (memcpy): Remove macro.
23850         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
23851         (__P): Remove.  All uses removed.
23852         (PTR): Remove.  All uses changed to void *.
23853         (CHAR_BIT, NULL): Remove.
23854         (spaces, zeros, memset_space, memset_zero)
23855         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
23856         Remove.
23857         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
23858         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
23859         Define with prototype.
23860         Remove now-unnecessary prototype decl.
23861         (extra_args_spec): Assume ANSI C.  All uses changed.
23862         (extra_args_spec_iso): Remove.
23863         (my_strftime, emacs_strftimeu): Define via prototype.
23864         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
23865         unconditionally.
23866         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
23867         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
23868         (strtoul, strtol): Remove decls.
23869         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
23870         LONG_MAX): Remove.
23871         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
23872         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
23873         (LOCALE_PARAM_PROTO): New macro.
23874         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
23875         (INTERNAL (strtol), strtol): Define with a prototype.
23876         (PARAMS): Remove.  All uses removed.
23877         * lib/tempname.c: Include <string.h> unconditionally.
23878         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
23879         * lib/xgethostname.c (main): Define with a prototype.
23880         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
23881         Include <stdlib.h> unconditionally.
23882         (calloc, malloc, realloc, free): Remove decls.
23883         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
23884         Include <stdlib.h> unconditionally.  Sort include file names.
23885         (strtod): Remove.
23886         (xstrtod): Define with a prototype.
23887         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
23888         (strtol, strtoul): Remove decls.
23889
23890 2003-09-11  Paul Eggert  <eggert@twinsun.com>
23891
23892         More patches to assume C89 or better.
23893         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
23894         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
23895         string.h, memchr, STDC_HEADERS.
23896
23897 2003-09-11  Paul Eggert  <eggert@twinsun.com>
23898
23899         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
23900         Include <stdlib.h>, <string.h> unconditionally.
23901         Remove now-unnecessary cast to char *.
23902         * lib/strnlen.c: Include <string.h> unconditionally.
23903         * lib/yesno.c (yesno): Define with a prototype.
23904
23905 2003-09-11  Bruno Haible  <bruno@clisp.org>
23906
23907         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
23908
23909 2003-09-10  Jim Meyering  <jim@meyering.net>
23910
23911         * lib/error.c: Correct indentation of cpp directives.
23912
23913 2003-09-10  Bruno Haible  <bruno@clisp.org>
23914
23915         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
23916         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
23917         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
23918         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
23919         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
23920         <stdlib.h> and <string.h> checks.
23921         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
23922         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
23923
23924 2003-09-10  Bruno Haible  <bruno@clisp.org>
23925
23926         * lib/strcspn.c: Include <string.h> unconditionally.
23927         * lib/strpbrk.c: Include <string.h> unconditionally.
23928         * lib/strstr.c: Include <string.h> unconditionally.
23929         * lib/unicodeio.c: Include <string.h> unconditionally.
23930         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
23931         * lib/unsetenv.c: Likewise.
23932         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
23933         * lib/yesno.c: Include <stdlib.h> unconditionally.
23934         (rpmatch): Add prototype.
23935
23936 2003-09-09  Paul Eggert  <eggert@twinsun.com>
23937
23938         More patches to assume C89 or better.
23939         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
23940         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
23941         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
23942         or for string.h.
23943         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
23944         stdlib.h.
23945         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
23946         C headers.
23947         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
23948         string.h.
23949         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
23950         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
23951         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
23952         or for string.h.
23953         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
23954         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
23955         C headers.
23956         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
23957         memcpy.
23958         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
23959         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
23960         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
23961         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
23962         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
23963         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
23964         string.h, free.
23965         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
23966         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
23967         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
23968         C headers, or for string.h.
23969         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
23970         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
23971         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
23972         headers, memory.h, stdlib.h, string.h, strings.h.
23973         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
23974         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
23975         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
23976         strchr.
23977         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
23978         headers, memory.h, string.h.
23979         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
23980         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
23981         free.
23982         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
23983         headers.
23984         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
23985         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
23986         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
23987         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
23988         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
23989
23990 2003-09-09  Paul Eggert  <eggert@twinsun.com>
23991
23992         More K&R removal.
23993
23994         * lib/acosl.c (main): Use a prototype.
23995         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
23996         tanl.c: Likewise.
23997
23998         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
23999
24000         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
24001         (getopt, etopt_long, getopt_long_only, _getopt_internal)
24002         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
24003         with a prototype.
24004         * lib/getopt.c (const): Remove macro.
24005         Include <string.h> unconditionally.
24006         (my_index): Remove; all uses changed to strchr.
24007         (strlen): Remove decl.
24008         (exchange): Remove forward decl; no longer needed.
24009         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
24010         Define with prototype.
24011         * lib/getopt1.c (const): Remove macro.
24012         (getopt_long, getopt_long_only, main): Define with prototype.
24013
24014         * lib/getugroups.c: Include <string.h> unconditionally.
24015
24016         * lib/getusershell.c: Include <stdlib.h> unconditionally.
24017         (getusershell, setusershell, endusershell, readname, main):
24018         Define with prototypes.
24019
24020         * lib/group-member.c: Include group-member.h first.
24021         Include <stdlib.h> unconditionally.
24022
24023         * lib/hard-locale.c: Include hard-locale.h first.
24024         Include <stdlib.h>, <string.h> unconditionally.
24025
24026         * lib/hash.c (free, malloc): Remove decls.
24027         Include <stdlib.h> unconditionally.
24028
24029         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
24030         (getenv): Do not declare.
24031
24032         * lib/idcache.c: Include <string.h> unconditionally.
24033
24034         * lib/long-options.c: Include long-options.h first, to test interface.
24035         Include <stdlib.h> unconditionally.
24036
24037         * lib/makepath.c: Include makepath.h first, to test interface.
24038         Include <stdlib.h> and <string.h> unconditionally.
24039
24040         * lib/linebuffer.c: Include <stdlib.h>.
24041         (free): Remove decl.
24042
24043         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
24044         stddef.h. rpl_malloc returns void *, not char *.
24045         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
24046         prototype.
24047
24048         * lib/md5.h: Include <limits.h> unconditionally.
24049         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
24050         (__P): Remove; all uses removed.
24051         * lib/md5.c: Include "md5.h" first.
24052         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
24053         md5_buffer, md5_process_bytes, md5_process_block):
24054         Define with prototypes.
24055         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
24056         * lib/sha.c: Include "sha.h" first.
24057         Include <stdlib.h>, <string.h> unconditionally.
24058
24059         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
24060         * lib/memcmp.c (__ptr_t): Likewise.
24061         * lib/memrchr.c (__ptr_t): Likewise.
24062         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
24063         Include <string.h> unconditionally.
24064         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
24065         * lib/memchr.c: Include <stdlib.h> unconditionally.
24066         * lib/memchr.c (LONG_MAX): Remove.
24067         * lib/memrchr.c (LONG_MAX): Likewise.
24068         * lib/memchr.c (__memchr): Define via a prototype.
24069         * lib/memrchr.c (__memrchr): Likewise.
24070         * lib/memcmp.c (__P): Remove, and remove all uses.
24071         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
24072         Remove forward decls; no longer needed.
24073         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
24074         Use types required by C89 in prototype.
24075
24076         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
24077         * lib/savedir.c: Likewise.
24078         * lib/mkdir.c (free): Remove decl.
24079         * lib/rmdir.c (rmdir): Define with a prototype.
24080         * lib/savedir.c: Include savedir.h first, to test interface.
24081
24082         * lib/mktime.c (STDC_HEADERS): Remove.
24083         Include <stdlib.h>, <string.h> unconditionally.
24084
24085         * lib/modechange.c: Include <stdlib.h> unconditionally.
24086         (malloc): Remove decl.
24087
24088         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
24089         (free): Remove decl.
24090
24091         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
24092         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
24093         (This type really should be intptr_t, but that's a C99ism.)
24094         (_obstack_memcpy): Remove: all uses changed to memcpy.
24095         Include <string.h> unconditionally.
24096         (struct obstack): Assume __STDC__ for types of members
24097         chunkfun, freefun, extra_arg.
24098         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
24099         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
24100         obstack_begin, obstack_specify_allocation,
24101         obstack_specify_allocation_with_arg, obstack_chunkfun,
24102         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
24103         Remove unprototyped decls and the macros that use them.
24104         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
24105         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
24106         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
24107         (defined __STDC__ && __STDC__)]:
24108         Remove nonprototyped code.
24109         Include <stdlib.h> unconditionally.
24110         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
24111         _obstack_allocated_p, _obstack_free, obstack_free,
24112         _obstack_memory_used, print_and_abort):
24113         Define using prototypes.
24114         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
24115         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
24116         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
24117         obstack_next_free, obstack_object_size, obstack_room) [0]:
24118         Remove unused, unprototyped code.
24119
24120         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
24121
24122         * lib/physmem.c (physmem_total, physmem_available, main): Define
24123         with prototypes.
24124
24125         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
24126         (main): Define with a prototype.
24127
24128         * lib/posixver.c (getenv): Remove decl.
24129
24130         * lib/putenv.c (malloc): Returns void *, not char *.
24131         Include <string.h> unconditionally.
24132         (strchr, memcpy, NULL): Do not define.
24133
24134         * lib/readtokens.c: Include readtokens.h first, to test interface.
24135         Include <stdlib.h>, <string.h> unconditionally.
24136         (init_tokenbuffer): Define with a prototype.
24137
24138         * lib/regex.c (PARAMS): Remove.  All uses removed.
24139         All uses of _RE_ARGS removed, too.
24140         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
24141         unconditionally.
24142         (bzero): Assume memset exists.
24143         (memcmp, memcpy, NULL): Remove.
24144         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
24145         char, or assignments to local vars of type signed char.
24146         (init_syntax_once, PREFIX(extract_number_and_incr),
24147         PREFIX(print_partial_compiled_pattern),
24148         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
24149         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
24150         PREFIX(regex_grow_registers), PREFIX(regex_compile),
24151         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
24152         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
24153         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
24154         wcs_compile_range, byte_compile_range, truncate_wchar,
24155         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
24156         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
24157         count_mbs_length, wcs_re_match_2_internal,
24158         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
24159         PREFIX(alt_match_null_string_p),
24160         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
24161         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
24162         regfree, PREFIX(extract_number)): Define with prototype.  Remove
24163         now-unnecessary declaration, if any.
24164         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
24165         regcomp, regexec):
24166         Remove now-unnecessary casts among pointer types.
24167         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
24168
24169         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
24170         (free): Remove decl.
24171
24172         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
24173
24174         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
24175         (free): Remove decl.
24176
24177         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
24178         * lib/xgetcwd.c: Likewise.
24179
24180         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
24181         (free): Remove decl.
24182
24183         * lib/strchrnul.c (strchrnul): Define with a prototype.
24184         Fix bug: c_in was not converted to char before searching.
24185
24186         The following changes are not K&R related:
24187
24188         * lib/group-member.h: Include <sys/types.h>, so that this file is
24189         self-contained.
24190         * lib/makepath.h: Likewise.
24191
24192         * lib/getusershell.c (readname, default_index, line_size, readname):
24193         Use size_t, not int, for sizes.
24194         (readname): If the size overflows, report an error instead of
24195         looping forever.
24196
24197 2003-09-09  Paul Eggert  <eggert@twinsun.com>
24198
24199         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
24200         libc.
24201
24202 2003-09-09  Paul Eggert  <eggert@twinsun.com>
24203
24204         * README: New section: portability guidelines.
24205
24206 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
24207
24208         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
24209         C89 spec.
24210
24211 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
24212
24213         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
24214
24215 2003-09-08  Paul Eggert  <eggert@twinsun.com>
24216
24217         Assume C89 or better; remove K&R cruft.
24218         A few of these changes were first proposed by Derek Robert Price
24219         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
24220
24221         * lib/addext.c: Include <string.h> unconditionally.
24222         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
24223         Don't declare getenv or malloc.
24224
24225         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
24226         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
24227         (NULL): Remove.
24228         (find_stack_direction, alloca): Use prototypes.
24229
24230         * lib/atexit.c (atexit): Define using a prototype.
24231
24232         * lib/basename.c, dirname.c, stripslash.c:
24233         Include <string.h> unconditionally.
24234
24235         * lib/bcopy.c: Include <stddef.h>.
24236         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
24237
24238         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
24239
24240         * lib/error.h (error, error_at_line, error_print_progname)
24241         [! (defined (__STDC__) && __STDC__)]: Remove decls.
24242         * lib/error.c: Include error.h first, to check interface.
24243         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
24244         (VA_START): Remove; all uses changeed to va_start.
24245         (exit, strerror): Remove decls.
24246         (error_print_progname): Prototype uncondionally.
24247         Don't include <errno.h>; no longer needed.
24248         (private_strerror): Remove.
24249         (error_tail): Always define.
24250         (error, error_at_line): Assume C89 or better; always use prototypes.
24251         * lib/fatal.c: Include "fatal.h" first, to test interface.
24252         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
24253         (VA_START): Remove; all uses changed to va_start.
24254         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
24255         this case.
24256         (exit): Remove decl.
24257         (fatal): Prototype unconditionally.  Assume va_start works.
24258         Abort at end, to pacify gcc.
24259
24260         * lib/euidaccess.c (main): Define with a prototype.
24261
24262         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
24263
24264         * lib/exitfail.c: Include <stdlib.h> unconditionally.
24265
24266         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
24267         prototypes.
24268         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
24269         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
24270         (getenv): Remove decl.
24271         (fnmatch): Define using a prototype.
24272         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
24273         (FCT): Define using a prototype.
24274
24275         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
24276
24277         * lib/gethostname.c: Include <stddef.h>.
24278         (gethostname): Define with prototype.  Length is size_t, not int.
24279
24280 2003-09-08  Paul Eggert  <eggert@twinsun.com>
24281
24282         Assume C89 or better; remove K&R cruft.
24283         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
24284         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
24285         string.h, getenv, malloc.
24286         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
24287         headers.
24288         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
24289         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
24290         do not check for strerror.
24291         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
24292         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
24293         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
24294         do not check for doprnt or vprintf.
24295         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
24296         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
24297
24298 2003-09-08  Paul Eggert  <eggert@twinsun.com>
24299
24300         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
24301         getversion.c should have been removed then, but was accidentally
24302         preserved.
24303
24304         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
24305         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
24306
24307 2003-09-08  Karl Berry  <karl@gnu.org>
24308
24309         * config/config.sub, config.guess, srclistvars.sh: update from savannah
24310                 config, forget about prep.
24311
24312         * config/depcomp, missing: update from automake.
24313
24314 2003-09-07  Paul Eggert  <eggert@twinsun.com>
24315
24316         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
24317         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
24318
24319 2003-09-07  Paul Eggert  <eggert@twinsun.com>
24320
24321         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
24322         copy_tm_result.  Bug reported by Simon Josefsson in
24323         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
24324
24325 2003-09-06  Paul Eggert  <eggert@twinsun.com>
24326
24327         * m4/time_r.m4: New file.
24328         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
24329         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
24330         is. Check for timegm declaration.
24331         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
24332         Do not check for gmtime_r.
24333         Replace mktime if __mktime_internal does not exist and if mktime
24334         hasn't been replaced already.
24335
24336 2003-09-06  Paul Eggert  <eggert@twinsun.com>
24337
24338         * lib/time_r.c, lib/time_r.h: New files.
24339
24340         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
24341         __localtime_r.
24342         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
24343         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
24344
24345         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
24346         __gmtime_r.
24347         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
24348         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
24349         Include <time_r.h>.
24350
24351         * lib/timegm.c: Switch to glibc implementation, with the following
24352         changes:
24353         [defined HAVE_CONFIG_H]: Include <config.h>.
24354         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
24355         (__mktime_internal) [!defined _LIBC]: New decl.
24356         (__gmtime_r) [!defined _LIBC]: New macro and function.
24357         (timegm): Use a prototype, since gnulib assumes C89.
24358         Do not bother declaring tmp to be const, as it's not really usefu.
24359         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
24360         (timegm): Declare only if HAVE_DECL_TIMEGM.
24361
24362 2003-09-06  Paul Eggert  <eggert@twinsun.com>
24363
24364         * MODULES.html.sh (func_all_modules): Add time_r.
24365         * modules/time_r: New file.
24366         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
24367         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
24368
24369 2003-09-03  Paul Eggert  <eggert@twinsun.com>
24370
24371         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
24372         Bug reported by Lute Kamstra in
24373         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
24374
24375         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
24376         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
24377         course with correspondingly smaller numbers for tomorrow and
24378         yesterday.  From Tadayoshi Funaba.  Originally installed into
24379         sh-utils on 1999-08-07, but the patch got lost (I guess during the
24380         coreutils merge?).
24381
24382 2003-08-31  Simon Josefsson  <jas@extundo.com>
24383
24384         * modules/timegm: New file.
24385         * MODULES.html.sh (func_all_modules): Add timegm.
24386
24387 2003-08-31  Simon Josefsson  <jas@extundo.com>
24388
24389         * m4/timegm.m4: New file.
24390
24391 2003-08-31  Simon Josefsson  <jas@extundo.com>
24392
24393         * lib/timegm.h: New file.
24394         * lib/timegm.c: New file.  Based on
24395         wget-1.8.2/src/http.c:mktime_from_utc.
24396
24397 2003-08-31  Karl Berry  <karl@gnu.org>
24398
24399         * lib/argp.h: update from libc.
24400
24401 2003-08-28  Bruno Haible  <bruno@clisp.org>
24402
24403         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
24404         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
24405         followed by '#define fnmatch fnmatch_posix' gives an error.
24406
24407 2003-08-28  Bruno Haible  <bruno@clisp.org>
24408
24409         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
24410         warning on QNX, which defines O_BINARY to 000000.
24411
24412 2003-08-27  Jim Meyering  <jim@meyering.net>
24413
24414         * m4/mkstemp.m4: Require that the system mkstemp be able to create
24415         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
24416         would fail after 32.  Reported by Danny Levinson.  Details here:
24417         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
24418
24419 2003-08-24  Bruno Haible  <bruno@clisp.org>
24420
24421         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
24422         MSVC7 <stdio.h> is included later.
24423
24424 2003-08-22  Simon Josefsson  <jas@extundo.com>
24425
24426         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
24427
24428 2003-08-20  Karl Berry  <karl@gnu.org>
24429
24430         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
24431
24432 2003-08-20  Bruno Haible  <bruno@clisp.org>
24433
24434         * modules/progname: New file.
24435         * MODULES.html.sh (func_all_modules): Add progname.
24436
24437 2003-08-20  Bruno Haible  <bruno@clisp.org>
24438
24439         * lib/progname.h: New file, from GNU gettext.
24440         * lib/progname.c: New file, from GNU gettext.
24441         * lib/progreloc.c: New file, from GNU gettext.
24442
24443 2003-08-19  Jim Meyering  <jim@meyering.net>
24444
24445         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
24446         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
24447
24448 2003-08-19  Bruno Haible  <bruno@clisp.org>
24449
24450         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
24451         more.
24452
24453 2003-08-19  Bruno Haible  <bruno@clisp.org>
24454
24455         * lib/xstrdup.c: Assume <string.h> exists.
24456
24457 2003-08-18  Paul Eggert  <eggert@twinsun.com>
24458
24459         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
24460         in makefile rules.
24461
24462 2003-08-18  Jim Meyering  <jim@meyering.net>
24463
24464         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
24465         * m4/lib-ld.m4: Likewise.
24466
24467 2003-08-18  Jim Meyering  <jim@meyering.net>
24468
24469         * lib/setenv.h: Indent nested cpp directive.
24470         * lib/vasnprintf.c: Remove trailing blanks.
24471
24472 2003-08-17  Simon Josefsson  <jas@extundo.com>
24473
24474         * modules/xstrndup: New file.
24475         * MODULES.html.sh (func_all_modules): Add xstrndup.
24476
24477 2003-08-17  Simon Josefsson  <jas@extundo.com>
24478
24479         * modules/argp: Fix autoconf macro name. Add more dependencies.
24480
24481 2003-08-17  Simon Josefsson  <jas@extundo.com>
24482
24483         * m4/xstrndup.m4: New file.
24484
24485 2003-08-17  Simon Josefsson  <jas@extundo.com>
24486
24487         * m4/argp.m4: New file.
24488
24489 2003-08-17  Simon Josefsson  <jas@extundo.com>
24490             Bruno Haible  <bruno@clisp.org>
24491
24492         * lib/xstrndup.h: New file.
24493         * lib/xstrndup.c: New file.
24494
24495 2003-08-17  Bruno Haible  <bruno@clisp.org>
24496
24497         * modules/strndup (Files, Include): Add lib/strndup.h.
24498
24499 2003-08-17  Bruno Haible  <bruno@clisp.org>
24500
24501         * modules/euidaccess (Files): Add lib/euidaccess.h.
24502
24503 2003-08-17  Bruno Haible  <bruno@clisp.org>
24504
24505         * lib/strndup.h: New file.
24506
24507 2003-08-17  Bruno Haible  <bruno@clisp.org>
24508
24509         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
24510         like AC_GNU_SOURCE.
24511         * modules/extensions (configure.ac): Comment out the invocation of
24512         gl_USE_SYSTEM_EXTENSIONS.
24513
24514 2003-08-16  Paul Eggert  <eggert@twinsun.com>
24515
24516         Merges from coreutils, etc.
24517         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
24518         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
24519         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
24520         fixing a typo.
24521         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
24522         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
24523
24524 2003-08-16  Paul Eggert  <eggert@twinsun.com>
24525
24526         Document merge from coreutils.
24527         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
24528         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
24529         * modules/utime: Add m4/utimes-null.m4.
24530
24531 2003-08-16  Paul Eggert  <eggert@twinsun.com>
24532
24533         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
24534         space, undoing this 2003-08-12 change:
24535         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
24536
24537 2003-08-16  Paul Eggert  <eggert@twinsun.com>
24538
24539         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
24540         strtoul.c from libc, undoing this 2003-08-12 change:
24541         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
24542
24543 2003-08-16  Jim Meyering  <jim@meyering.net>
24544
24545         Merges from coreutils.
24546         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
24547         prefix.  Adjust cache variables similarly.  Create 500 rather than
24548         just 300 files, to exercise bug on Darwin6.5, too.
24549         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
24550         $missing_dir.
24551         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
24552         AM_SYS_POSIX_TERMIOS.
24553         Reported by mkc@mathdogs.com.
24554         Also change use of $am_cv_sys_posix_termios
24555         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
24556         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
24557         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
24558         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
24559         in /proc/mounts until it finds one with matching device number.  This
24560         is unnecessary when the FILE argument *is* a mount point.  No stat call
24561         is necessary in that case.  So, disable the statvfs-testing code on
24562         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
24563         as RedHat bug# 84846.
24564         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
24565         to 1MB, so as not to render systems with no stack size limit (e.g.,
24566         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
24567         Include <unistd.h>.  On some systems,
24568         it is required for the definition of _SC_PAGESIZE.
24569
24570 2003-08-16  Jim Meyering  <jim@meyering.net>
24571
24572         Merge from coreutils.
24573         * lib/xstrtoimax.c: #else #if -> #elif.
24574         * lib/xstrtoumax.c: Likewise.
24575
24576 2003-08-16  Jim Meyering  <jim@meyering.net>
24577
24578         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
24579         * m4/utimes.m4: Removed.
24580         * m4/utimes-null.m4: Renamed from utimes.m4.
24581
24582         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
24583         to 1MB, so as not to render systems with no stack size limit (e.g.,
24584         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
24585         Include <unistd.h>.  On some systems,
24586         it is required for the definition of _SC_PAGESIZE.
24587
24588 2003-08-16  Jim Meyering  <jim@meyering.net>
24589         and Paul Eggert  <eggert@cs.ucla.edu>
24590
24591         Merges from coreutils, etc.
24592
24593         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
24594         using the latest version from cvs.  This avoids problems with #line
24595         directives using a vendor (Sun) compiler.
24596         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
24597         Don't set GETGROUPS_LIB here; now it's
24598         done via getgroups.m4's wrapper function.
24599         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
24600         rather than just in sh-util/configure.in, so that the
24601         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
24602         same.
24603         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
24604         AC_FUNC_GETLOADAVG where to find getloadavg.c.
24605         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
24606         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
24607         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
24608         Remove code that is now done by the newly-required macros.
24609         Append $(EXEEXT) to DF_PROG.
24610         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
24611         Do not invoke or require the following here,
24612         since prereq.m4 or some gnulib .m4 now does this for us:
24613         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
24614         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
24615         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
24616         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
24617         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
24618         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
24619         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
24620         AC_FUNC_OBSTACK.
24621         Do not replace the following functions, as this is now the job
24622         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
24623         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
24624         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
24625         atexit getpass, strdup, getpagesize.
24626         Replace 'raise'.
24627         Do not check for the following functions, as this is now the job
24628         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
24629         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
24630         setregid.
24631         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
24632         Check for sys/sysctl.h.
24633         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
24634         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
24635         of checking for ssize_t ourselves.
24636
24637         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
24638         Require every macro that gnulib/modules/* suggests for us.
24639         (jm_PREREQ_ADDEXT): New macro.
24640         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
24641         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
24642
24643         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
24644         (gl_PHYSMEM): Use it.
24645         Also check for `table' function.
24646         Check for new headers and functions.
24647         Add check for sys/sysmp.h.
24648         With suggestions from Kaveh Ghazi.
24649         Ignore headers that are present but cannot be compiled.  This
24650         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
24651         C 5.4.
24652
24653 2003-08-15  Paul Eggert  <eggert@twinsun.com>
24654
24655         Document merge from coreutils.
24656         * modules/userspec: Depend on posixver.
24657         * modules/strftime: Depend on tzset.
24658
24659 2003-08-15  Paul Eggert  <eggert@twinsun.com>
24660
24661         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
24662         rather than tab, after '#' in shell-script copyright notices.
24663         Suggested by Bruno Haible.
24664
24665 2003-08-15  Paul Eggert  <eggert@twinsun.com>
24666
24667         * config/srclist-update: Use three spaces, rather than tab, after '#'
24668         in shell-script copyright notices.  Suggested by Bruno Haible.
24669         Remove unnecessary parenthesization in regular expression.
24670
24671 2003-08-15  Jim Meyering  <jim@meyering.net>
24672
24673         Merge from coreutils.
24674         * lib/xgethostname.c: Include <stdlib.h>.
24675         (xghostname): Don't exit for anything other than memory-related
24676         failure; just return NULL.
24677         * lib/userspec.c: Include "posixver.h".
24678         (parse_user_spec): Accept `.' as a separator only
24679         in pre-POSIX-200112 mode.
24680         * lib/strtoimax.c: Use #elif rather than #else #if.
24681         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
24682         Remove function, now that we can rely on a working tzset function.
24683         [!_LIBC]: Ensure that the required autoconf test has been run.
24684         [!defined _NL_CURRENT && HAVE_STRFTIME]:
24685         Use underlying_strftime for %r.
24686         * lib/sha.c: Merge in some clean-up and optimization changes from
24687         glibc.
24688         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
24689         Ensure that it is a multiple of 64.
24690         Rearrange loop exit tests so as to avoid performing an
24691         additional fread after encountering an error or EOF.
24692         * lib/realloc.c: Update copyright date.
24693
24694 2003-08-15  Jim Meyering  <jim@meyering.net>
24695         and Paul Eggert  <eggert@twinsun.com>
24696
24697         Merge from coreutils.
24698         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
24699         member but strut utmpx does not.  Needed for AIX 4.3.3.
24700         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
24701
24702 2003-08-15  Jim Meyering  <jim@meyering.net>
24703         and Paul Eggert  <eggert@cs.ucla.edu>
24704
24705         Merges from coreutils, etc.
24706         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
24707         Require gl_FUNC_TZSET_CLOBBER.
24708         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
24709         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
24710         members.
24711
24712 2003-08-14  Paul Eggert  <eggert@twinsun.com>
24713
24714         Help the merge from coreutils.
24715         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
24716         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
24717         * m4/tzset.m4: Use it too.
24718
24719 2003-08-14  Paul Eggert  <eggert@twinsun.com>
24720
24721         * modules/tzset: New file.
24722
24723 2003-08-14  Jim Meyering  <jim@meyering.net>
24724
24725         Merges from coreutils.
24726         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
24727         variable names, rather than @FNMATCH_H@.
24728         * modules/alloca: Likewise for $(ALLOCA_H).
24729
24730         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
24731         the three copies of the literal target, `fnmatch.h'.
24732         * modules/alloca (alloca.h): Likewise.
24733
24734 2003-08-14  Jim Meyering  <jim@meyering.net>
24735
24736         Merge from coreutils.
24737         * m4/tzset.m4: New file.
24738         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
24739         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
24740         otherwise, AIX 5.1 systems would end up using the latter.
24741         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
24742         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
24743         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
24744         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
24745
24746 2003-08-14  Jim Meyering  <jim@meyering.net>
24747
24748         Merge from coreutils.
24749         * lib/obstack.h: Whitespace changes.
24750         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
24751         and xcalloc return values.
24752         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
24753         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
24754         hang on OSF/1 5.1 for DIR on both local and remote file systems.
24755         Reported by (and fix confirmed by) Nelson H. F. Beebe.
24756         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
24757         error from mntctl.
24758         Use mntctl's return value to drive the entry-processing loop, since
24759         we can't rely on the value of the vmt_length member in the last
24760         entry.  On some systems doing so could result in exhausting
24761         virtual memory.  Based in part on a patch from Mike Jetzer.
24762
24763 2003-08-14  Jim Meyering  <jim@meyering.net>
24764         and Paul Eggert  <eggert@twinsun.com>
24765
24766         Merges from coreutils, plus other fixes.
24767         * lib/physmem.c: Merge in portability changes from gcc/libiberty
24768         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
24769         for credits and details.  Thanks to Kaveh Ghazi for helping
24770         to keep these files in sync.
24771         (ARRAY_SIZE): Define it.
24772         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
24773         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
24774         (memcasecmp): Don't assume size_t fits in unsigned int.
24775         Remove casts and duplicate code.
24776         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
24777         (memcpy): Remove definition.
24778         Merge in some clean-up and optimization changes from glibc.
24779         [BLOCKSIZE]: Move definition to top of file.
24780         Ensure that it is a multiple of 64.
24781         Rearrange loop exit tests so as to avoid performing an
24782         additional fread after encountering an error or EOF.
24783         * lib/md5.h (md5_uintptr): Define.
24784         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
24785         return to the initial working directory.  Preserve errno
24786         for caller.
24787         * lib/idcache.c: Include "xalloc.h".
24788         (xmalloc, xrealloc): Remove decls.
24789         (getuser): Remove casts no longer required in C89.
24790         * lib/human.c: Include stdio.h, for sprintf.
24791         * lib/group-member.c: Include "xalloc.h".
24792         (xmalloc, xrealloc): Remove decls.
24793         (get_group_info): Remove casts no longer required in C89.
24794         * lib/getusershell.c (readname): Remove casts no longer required in
24795         C89.
24796         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
24797         * lib/getline.c: Whitespace fix, from coreutils.
24798
24799 2003-08-13  Paul Eggert  <eggert@twinsun.com>
24800
24801         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
24802         Check for isascii.
24803
24804         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
24805         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
24806         Undo previous (whitespace-only) change.
24807
24808 2003-08-13  Paul Eggert  <eggert@twinsun.com>
24809
24810         * lib/exclude.c: Include <ctype.h>
24811         (IN_CTYPE_DOMAIN): New macro.
24812         (is_space): New fn.
24813         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
24814         and empty lines.
24815
24816         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
24817         Undo previous (whitespace-only) change.
24818
24819 2003-08-13  Paul Eggert  <eggert@twinsun.com>
24820
24821         * config/srclist-update: Change update back to the old behavior,
24822         leaving whitespace alone.  Use one 'sed' command rather than a
24823         pipeline.
24824         (fixlicense): Now a variable, not a function.
24825         (remove_trailing_blanks): Remove.
24826         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
24827         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
24828         Undo previous (whitespace-only) change.
24829
24830 2003-08-12  Paul Eggert  <eggert@twinsun.com>
24831
24832         Merge from coreutils.
24833         * modules/euidaccess: Add lib_SOURCES, include for new
24834         file euidaccess.h
24835
24836 2003-08-12  Paul Eggert  <eggert@twinsun.com>
24837
24838         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
24839         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
24840         Normalize leading white space and remove trailing white space.
24841
24842         Merge from coreutils
24843         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
24844
24845         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
24846         0.12.1.  These files are now being upgraded automatically by
24847         ../config/srclist-update.
24848
24849 2003-08-12  Paul Eggert  <eggert@twinsun.com>
24850
24851         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
24852         Normalize leading white space and remove trailing white space.
24853         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
24854         notice, as per ../config/srclist-update.
24855
24856         Merge from coreutils.
24857         * lib/euidaccess.h: New file.
24858         * lib/euidaccess.c: Include it.
24859         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
24860         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
24861         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
24862
24863 2003-08-12  Paul Eggert  <eggert@twinsun.com>
24864
24865         * config/srclist-update: Add copyright notice.
24866         (remove_id_lines, remove_trailing_blanks): New constants.
24867         (fixfile): Use them to normalize spacing a bit in copied files.
24868         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
24869         Normalize leading white space and remove trailing white space.
24870
24871         * config/texinfo.tex: Sync with texinfo.
24872
24873         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
24874         strtoul.c from libc, to merge coreutils whitespace changes.
24875
24876         * config/srclist.txt: Get the following m4 files from gettext:
24877         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
24878         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
24879         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
24880         wint_t.m4.
24881
24882 2003-08-12  Karl Berry  <karl@gnu.org>
24883
24884         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
24885         been made.
24886
24887 2003-08-11  Paul Eggert  <eggert@twinsun.com>
24888
24889         * modules/gnu-source, m4/gnu-source.m4:
24890         Remove; we're assuming Autoconf 2.54 or later now.
24891         Suggested by Bruno Haible.
24892         * MODULES.html.sh (func_all_modules): Remove gnu-source.
24893
24894 2003-08-11  Bruno Haible  <bruno@clisp.org>
24895
24896         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
24897
24898 2003-08-11  Bruno Haible  <bruno@clisp.org>
24899
24900         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
24901         (vasnprintf): Use it instead of wcslen.
24902
24903 2003-08-11  Bruno Haible  <bruno@clisp.org>
24904
24905         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
24906         value to ensure that _Bool promotes to int. Use #define for _Bool when
24907         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
24908
24909 2003-08-10  Karl Berry  <karl@gnu.org>
24910
24911         * lib/regex.h: update from libc (whitespace fix).
24912
24913 2003-08-09  Paul Eggert  <eggert@twinsun.com>
24914
24915         Merge some files from coreutils.  These changes were
24916         originally made by Jim Meyering.
24917         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
24918         many older Unixes require this.
24919         * lib/alloca.c (alloca): Remove cast to argument of free;
24920         no longer needed in C89.
24921         * lib/alloca_.h, regex.h: Fix white space to match
24922         what GNU indent does.
24923
24924 2003-08-09  Paul Eggert  <eggert@twinsun.com>
24925
24926         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
24927         apparently Emacs's Unicode mode got confused before my 2003-08-05
24928         checkin.
24929
24930 2003-08-08  Paul Eggert  <eggert@twinsun.com>
24931
24932         * m4/extensions.m4: New file.
24933         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
24934         Require gl_USE_SYSTEM_EXTENSIONS.
24935         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
24936         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
24937
24938 2003-08-08  Paul Eggert  <eggert@twinsun.com>
24939
24940         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
24941         * modules/extensions, modules/gnu-source: New files.
24942         * modules/timespec, modules/unlocked-io: Depend on extensions.
24943
24944 2003-08-07  Paul Eggert  <eggert@twinsun.com>
24945
24946         * modules/restrict: New file.
24947         * MODULES.html.sh (func_all_modules): Add restrict.
24948         * modules/regex: Depend on restrict.
24949
24950 2003-08-07  Paul Eggert  <eggert@twinsun.com>
24951
24952         * m4/restrict.m4: New file.
24953         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
24954
24955 2003-08-07  Bruno Haible  <bruno@clisp.org>
24956
24957         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
24958         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
24959
24960 2003-08-07  Bruno Haible  <bruno@clisp.org>
24961
24962         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
24963         makes the module 'getndelim2' compatible with the module 'getline'.
24964
24965 2003-08-05  Paul Eggert  <eggert@twinsun.com>
24966
24967         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
24968         byte with "\201" to avoid glitches when editing that source file
24969         with multi-gnome-terminal.
24970
24971 2003-08-05  Paul Eggert  <eggert@twinsun.com>
24972
24973         * lib/bumpalloc.h: Remove.
24974
24975 2003-08-05  Paul Eggert  <eggert@twinsun.com>
24976
24977         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
24978         * modules/bumpalloc: Remove.
24979
24980 2003-08-04  Paul Eggert  <eggert@twinsun.com>
24981
24982         * lib/getloadavg.c: Change copyright notice and spacing to conform to
24983         GNU coding style.
24984
24985         Merge from coreutils.
24986         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
24987         1. From glibc.
24988         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
24989         from Karl Berry, implemented by Jim Meyering.
24990         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
24991         from Dmitry V. Levin.
24992         Remove anachronistic cast of xrealloc.
24993         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
24994         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
24995         type. Otherwise, it wouldn't compile with at least /bin/cc on
24996         ymp-cray-unicos9.0.2.X.
24997         Combine two mostly-identical uses of alloca into one.
24998         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
24999
25000 2003-08-04  Dave Love  <d.love@dl.ac.uk>
25001
25002         [From Emacs.]
25003
25004         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
25005         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
25006         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
25007         obsolete NLIST_NAME_UNION.
25008         [__GNU__]: Undef BSD and FSCALE.
25009         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
25010
25011 2003-08-03  Paul Eggert  <eggert@twinsun.com>
25012
25013         * lib/stdbool_.h (_Bool): Make it signed char, instead of
25014         an enum type, so that it's guaranteed to promote to int.  See:
25015         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
25016
25017 2003-08-03  Karl Berry  <karl@gnu.org>
25018
25019         * config/depcomp: update from automake.
25020
25021 2003-07-31  Paul Eggert  <eggert@twinsun.com>
25022
25023         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
25024         (strerror): Don't assume that a printable int fits in 14 bytes.
25025
25026 2003-07-31  Bruno Haible  <bruno@clisp.org>
25027
25028         * modules/getpass-gnu: New file.
25029         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
25030
25031 2003-07-31  Bruno Haible  <bruno@clisp.org>
25032
25033         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
25034
25035 2003-07-24  Karl Berry  <karl@gnu.org>
25036
25037         * config/missing: update from automake.
25038
25039 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
25040             Bruno Haible  <bruno@clisp.org>
25041
25042         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
25043         * lib/getline.c (getline, getdelim): Likewise.
25044         Remove _GNU_SOURCE define; now it's defined in config.h through
25045         m4/getline.m4.
25046
25047 2003-07-23  Karl Berry  <karl@gnu.org>
25048
25049         * config/config.sub: update from prep.
25050
25051 2003-07-22  Paul Eggert  <eggert@twinsun.com>
25052
25053         * modules/xalloc (Depends-on): Add exitfail.
25054         * modules/xmemcoll: Likewise.
25055
25056 2003-07-22  Paul Eggert  <eggert@twinsun.com>
25057
25058         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
25059         over-parenthesization in macros.
25060
25061         Sync with coreutils.
25062
25063         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
25064         required by C99.
25065
25066         Use `exit_failure' for xalloc and xmemcoll instead of their own
25067         private exit-failure variables.
25068         * lib/xalloc.h (xalloc_exit_failure): Remove.
25069         * lib/xmalloc.c: Likewise.  Include exitfail.h.
25070         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
25071         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
25072         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
25073         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
25074
25075 2003-07-20  Jim Meyering  <jim@meyering.net>
25076
25077         * modules/closeout (Depends-on): Add exitfail.
25078         Suggestion from Bruno Haible.
25079
25080 2003-07-19  Karl Berry  <karl@gnu.org>
25081
25082         * config/config.sub: update from prep.
25083
25084 2003-07-18  Paul Eggert  <eggert@twinsun.com>
25085
25086         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
25087         Remove.
25088         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
25089         to test that it can stand by itself.  Include "exitfail.h".
25090         Clients should set exit_failure instead.
25091         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
25092
25093 2003-07-18  Bruno Haible  <bruno@clisp.org>
25094
25095         * modules/getndelim2: New file.
25096         * modules/getline: Share files with module getndelim2.
25097         * modules/getnline: Depend on getndelim2 instead of sharing files with
25098         it. Add getnline.c to lib_SOURCES.
25099         * MODULES.html.sh (func_all_modules): Add getndelim2.
25100
25101 2003-07-18  Bruno Haible  <bruno@clisp.org>
25102
25103         * m4/getndelim2.m4: New file.
25104         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
25105         invoke gl_PREREQ_GETNDELIM2.
25106         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
25107         gl_PREREQ_GETNDELIM2.
25108         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
25109         gl_GETNDELIM2.
25110
25111 2003-07-18  Bruno Haible  <bruno@clisp.org>
25112
25113         * lib/getndelim2.h: New file.
25114         * lib/getndelim2.c: Make into a module of its own. Include config.h,
25115         getndelim2.h.
25116         (getndelim2): Make non-static. Change return type to ssize_t.
25117         * lib/getline.h: Change argument names.
25118         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
25119         * lib/getnline.c: Include getndelim2.h.
25120
25121 2003-07-18  Andreas Schwab  <schwab@suse.de>
25122
25123         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
25124
25125 2003-07-17  Karl Berry  <karl@gnu.org>
25126
25127         * config/config.sub: update from prep.
25128
25129 2003-07-17  Bruno Haible  <bruno@clisp.org>
25130
25131         * modules/getnline: New file.
25132         * modules/getline: Add lib/getndelim2.c to source file list.
25133         * MODULES.html.sh (func_all_modules): Add getnline.
25134
25135 2003-07-17  Bruno Haible  <bruno@clisp.org>
25136
25137         * m4/getnline.m4: New file.
25138
25139 2003-07-17  Bruno Haible  <bruno@clisp.org>
25140
25141         * m4/Makefile.am.in: Remove file.
25142         * m4/Makefile.am: Remove file.
25143         * m4/Makefile.in: Remove file.
25144
25145 2003-07-17  Bruno Haible  <bruno@clisp.org>
25146
25147         * lib/getnline.h: New file.
25148         * lib/getnline.c: New file.
25149         * lib/getndelim2.c: New file, extracted from getline.c.
25150         (getndelim2): Renamed from getdelim2, with added nmax argument.
25151         * lib/getline.c: Include getndelim2.c.
25152         (getdelim2): Moved out to getndelim2.c.
25153         (getline, getdelim): Update.
25154
25155 2003-07-17  Bruno Haible  <bruno@clisp.org>
25156
25157         * lib/Makefile.am: Remove file.
25158         * lib/Makefile.in: Remove file.
25159
25160 2003-07-17  Bruno Haible  <bruno@clisp.org>
25161
25162         * configure.in: Remove file.
25163         * Makefile.in: Remove file.
25164
25165 2003-07-17  Bruno Haible  <bruno@clisp.org>
25166
25167         * MODULES.html.sh: Put the </BODY> right before </HTML>.
25168
25169 2003-07-16  Karl Berry  <karl@gnu.org>
25170
25171         * config/srclist-update: was running fixlicense twice, which caused
25172                 texinfo.tex to be nullified for some reason.  Simplify,
25173                 $gplsrc is no longer needed as far as I can see?
25174
25175 2003-07-16  Jim Meyering  <jim@meyering.net>
25176
25177         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
25178
25179 2003-07-15  Paul Eggert  <eggert@twinsun.com>
25180
25181         * config/srclist.txt: Get the following files from gettext-runtime/intl
25182         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
25183         ref-del.sin.  From Bruno Haible.
25184         * config/srclist-update (fixfile): Change grep pattern again, since the
25185         previous fix didn't work (there was another trailing $).  Use
25186         '[$]' to escape the $s.
25187
25188 2003-07-15  Karl Berry  <karl@gnu.org>
25189
25190         * lib/vasnprintf.c: update from gettext.
25191
25192 2003-07-15  Karl Berry  <karl@gnu.org>
25193
25194         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
25195         gets expanded when surrounded by '$'.
25196
25197 2003-07-15  Jim Meyering  <jim@meyering.net>
25198
25199         * modules/save-cwd: Don't depend on error.  From Derek Price.
25200
25201 2003-07-15  Jim Meyering  <jim@meyering.net>
25202
25203         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
25204
25205 2003-07-14  Simon Josefsson  <jas@extundo.com>
25206
25207         * modules/mempcpy: New file.
25208         * MODULES.html.sh (func_all_modules): Add mempcpy.
25209
25210 2003-07-14  Simon Josefsson  <jas@extundo.com>
25211
25212         * m4/mempcpy.m4: New file.
25213
25214 2003-07-14  Simon Josefsson  <jas@extundo.com>
25215
25216         * lib/mempcpy.h: New file.
25217         * lib/mempcpy.c: New file.
25218
25219 2003-07-14  Paul Eggert  <eggert@twinsun.com>
25220
25221         * modules/getdate, modules/posixtm: Depend on mktime.
25222
25223 2003-07-14  Paul Eggert  <eggert@twinsun.com>
25224
25225         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
25226         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
25227         unicodeio.c, unicodeio.h, unlocked-io.h:
25228         Switch from LGPL to GPL.
25229
25230 2003-07-14  Paul Eggert  <eggert@twinsun.com>
25231
25232         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
25233         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
25234         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
25235         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
25236         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
25237         updated automatically by ../config/srclist-update.  This changes
25238         their license from LPGL to GPL.
25239
25240 2003-07-14  Paul Eggert  <eggert@twinsun.com>
25241
25242         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
25243         assumed to refer to the root of the most recent stable gettext version.
25244         * config/srclistvars.sh: Add defaults for eggert.
25245         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
25246         Match "This program" as well as "The program".  This is needed
25247         for gettext.
25248
25249 2003-07-14  Jim Meyering  <jim@meyering.net>
25250
25251         Don't emit diagnostics.  Let callers do that.
25252         * lib/save-cwd.c: Don't include "error.h".
25253         (save_cwd): Don't call error.  Ensure that errno is valid
25254         when returning nonzero.
25255
25256         * lib/save-cwd.h (restore_cwd): Update prototype.
25257         * lib/save-cwd.c (restore_cwd): Remove two parameters.
25258         Simplify.  Don't call error upon failure.  Let callers do that.
25259         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
25260         when auditing is enabled.  But don't bother updating the #if.
25261
25262 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
25263
25264         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
25265         it breaks C++ compilation.
25266         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
25267
25268 2003-07-10  Simon Josefsson  <jas@extundo.com>
25269
25270         * modules/strchrnul (Makefile.am): Add strchrnul.h.
25271
25272 2003-07-10  Jim Meyering  <jim@meyering.net>
25273
25274         * m4/clock_time.m4: Remove trailing blank.
25275         * m4/intmax_t.m4: Likewise.
25276
25277 2003-07-10  Jim Meyering  <jim@meyering.net>
25278
25279         * lib/vasnprintf.c: Remove trailing blanks.
25280         Make cpp indentation consistent.
25281
25282 2003-07-09  Paul Eggert  <eggert@twinsun.com>
25283
25284         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
25285         posixver.c, strftime.c, strnlen.c, strverscmp.c:
25286         Switch from LGPL to GPL.
25287
25288 2003-07-09  Paul Eggert  <eggert@twinsun.com>
25289
25290         * config/srclist.txt: Sort sublists.  Add
25291         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
25292         that differ from gnulib for one reason or another; we'd like this list
25293         to be smaller but for now let's document what we have.
25294
25295 2003-07-08  Paul Eggert  <eggert@twinsun.com>
25296
25297         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
25298         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
25299         and sweeter "eval x=$x".
25300         * config/srclist.txt: Get lib/argp* from glibc.
25301
25302 2003-07-07  Paul Eggert  <eggert@twinsun.com>
25303
25304         * lib/mktime.c: Fix some boundary cases and remove need for floating
25305         point.
25306
25307         Issue a compile-time diagnostic if time_t is floating point, or if
25308         two's complement arithmetic is not in effect, or if arithmetic
25309         right shift does not propagate the sign.  These assumptions were
25310         all in the original code but they weren't checked.
25311
25312         (TIME_T_MIDPOINT, verify): New macros.
25313         (__isleap): Remove; it has integer overflow problems.
25314         (leapyear): New function, without those problems.
25315         (ydhms_tm_diff): Remove; splitting into two parts.
25316         (ydhms_diff): New function, containing the arithmetic part of
25317         the old ydhms_tm_diff function.  Issue a compile-time
25318         diagnostic if we are not using C99 integer division.
25319         Avoid casts when possible.
25320         (guess_time_tm): New function, containing the checking part of
25321         the old ydhms_tm_diff function.  Return the new value, rather than
25322         the difference between it and the old.  Accept a new argument T
25323         so that *T specifies the old value.  Check for overflow in the result.
25324
25325         (__mktime_internal): Use a time_t offset, not a long int offset.
25326         This undoes the 2003-06-04 change, which is no longer needed now
25327         that we have better overflow checking.
25328         (localtime_offset): Likewise.
25329
25330         (__mktime_internal): Avoid harmful overflow on hosts where time_t
25331         and long are 64-bit but int is only 32-bit.
25332         (ydhms_diff): Use long int to store year1 and yday1.
25333         Issue a compile-time diagnostic if long int is not wide enough.
25334
25335         (__mktime_internal): Use long int to store adjusted year and yday.
25336         Use plain C rather than preprocessor commands, if that doesn't
25337         affect efficiency.
25338         Check for overflow (and try to repair) after each probe
25339         rather than checking only at the very end.  This avoids some bugs
25340         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
25341         does not equal GMT offset at maximum time).
25342         Use integer to check for overflow rather than floating point; this
25343         is more portable to non-IEEE hosts, and is a tad faster.
25344         When we detect that we are oscillating between two values,
25345         don't check whether tm_isdst has the requested value, since
25346         we already know the answer.  When tm_isdst has the wrong value,
25347         use a different heuristic to find the right one, based on the
25348         extreme values actually observed in practice in tz2003a,
25349         rather than the (overly optimistic) "previous 3 calendar quarters".
25350
25351         (not_equal_tm, print_tm, check_result): Use "const T" rather than
25352         "T const" to accommodate glibc style.
25353         (check_result): Use less-confusing report format.  "long" -> "long int.
25354         (main): Likewise.
25355         Don't loop if the iteration overflows time_t.
25356         Allow a negative step in the iteration.
25357
25358 2003-07-06  Karl Berry  <karl@gnu.org>
25359
25360         * config/depcomp: update from automake.
25361         * config/config.sub: update from prep.
25362
25363 2003-07-03  Karl Berry  <karl@gnu.org>
25364
25365         * config/config.guess: update from prep.
25366
25367 2003-07-01  Paul Eggert  <eggert@twinsun.com>
25368
25369         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
25370         xreadlink.c now includes it unconditionally.
25371
25372 2003-07-01  Paul Eggert  <eggert@twinsun.com>
25373
25374         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
25375         having it depend on HAVE_SYS_TYPES_H.
25376
25377 2003-07-01  Bruno Haible  <bruno@clisp.org>
25378
25379         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
25380         <sys/types.h> should be sufficient.
25381         Reported by Paul Eggert.
25382
25383 2003-06-26  Karl Berry  <karl@gnu.org>
25384
25385         * config/depcomp: update from automake.
25386
25387 2003-06-26  Bruno Haible  <bruno@clisp.org>
25388
25389         * modules/human: Depend on module stdbool.
25390
25391 2003-06-25  Bruno Haible  <bruno@clisp.org>
25392
25393         * modules/readlink: New file.
25394         * modules/xreadlink: Depend on it.
25395         * MODULES.html.sh (func_all_modules): Add readlink.
25396
25397 2003-06-25  Bruno Haible  <bruno@clisp.org>
25398
25399         * m4/readlink.m4: New file.
25400
25401 2003-06-25  Bruno Haible  <bruno@clisp.org>
25402
25403         * lib/readlink.c: New file.
25404
25405 2003-06-22  Karl Berry  <karl@gnu.org>
25406
25407         * config/srclist.txt: update mkinstalldirs from automake.
25408         * config/mkinstalldirs: update.
25409
25410 2003-06-22  Bruno Haible  <bruno@clisp.org>
25411
25412         Portability to mingw32.
25413         * m4/ssize_t.m4: New file, from GNU gettext.
25414         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
25415         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
25416
25417 2003-06-22  Bruno Haible  <bruno@clisp.org>
25418
25419         * modules/safe-read: Add m4/ssize_t.m4.
25420         * modules/xreadlink: Add m4/ssize_t.m4.
25421
25422 2003-06-20  Bruno Haible  <bruno@clisp.org>
25423
25424         Assume C89, so PARAMS isn't needed.
25425         * lib/unicodeio.h (PARAMS): Remove.
25426         * lib/unicodeio.c: Don't use PARAMS.
25427
25428 2003-06-18  Karl Berry  <karl@gnu.org>
25429
25430         * config/config.{guess,sub}: update from prep.
25431
25432 2003-06-18  Jim Meyering  <jim@meyering.net>
25433
25434         Merge changes from coreutils.
25435         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
25436         Remove explicit declarations of xmalloc and realloc.
25437         Include xalloc.h.
25438         (read_utmp): Remove anachronistic cast of xmalloc.
25439
25440 2003-06-17  Paul Eggert  <eggert@twinsun.com>
25441
25442         Assume C89, so PARAMS isn't needed.
25443         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
25444         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
25445         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
25446         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
25447         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
25448         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
25449         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
25450         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
25451         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
25452         lib/xstrtod.h, lib/xstrtol.h: Likewise.
25453         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
25454         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
25455         no longer needed. Anyway, config.h should always be included before any
25456         other file.
25457
25458 2003-06-11  Simon Josefsson  <jas@extundo.com>
25459
25460         * modules/sysexits: New file.
25461         * MODULES.html.sh (func_all_modules): Add sysexits.
25462
25463 2003-06-11  Simon Josefsson  <jas@extundo.com>
25464
25465         * lib/sysexit_.h: New file.
25466
25467 2003-06-11  Derek Price  <derek@ximbiot.com>
25468
25469         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
25470         necessary.
25471
25472 2003-06-11  Bruno Haible  <bruno@clisp.org>
25473
25474         * m4/sysexits.m4: New file.
25475
25476 2003-06-10  Simon Josefsson  <jas@extundo.com>
25477
25478         * lib/argp.h: New file, from glibc.
25479         * lib/argp-ba.c: New file, from glibc.
25480         * lib/argp-eexst.c: New file, from glibc.
25481         * lib/argp-fmtstream.c: New file, from glibc.
25482         * lib/argp-fmtstream.h: New file, from glibc.
25483         * lib/argp-fs-xinl.c: New file, from glibc.
25484         * lib/argp-help.c: New file, from glibc.
25485         * lib/argp-namefrob.h: New file, from glibc.
25486         * lib/argp-parse.c: New file, from glibc.
25487         * lib/argp-pv.c: New file, from glibc.
25488         * lib/argp-pvh.c: New file, from glibc.
25489         * lib/argp-xinl.c: New file, from glibc.
25490
25491 2003-06-10  Simon Josefsson  <jas@extundo.com>
25492
25493         * modules/strchrnul: New file.
25494
25495 2003-06-10  Simon Josefsson  <jas@extundo.com>
25496
25497         * modules/argp: New file.
25498
25499 2003-06-10  Simon Josefsson  <jas@extundo.com>
25500
25501         * m4/strchrnul.m4: New file.
25502
25503 2003-06-10  Simon Josefsson  <jas@extundo.com>
25504
25505         * lib/strchrnul.h: New file.
25506         * lib/strchrnul.c: New file.
25507
25508 2003-06-10  Bruno Haible  <bruno@clisp.org>
25509
25510         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
25511
25512 2003-06-07  Karl Berry  <karl@gnu.org>
25513
25514         * config/config.{guess,sub}: update from prep.
25515
25516 2003-06-07  Jim Meyering  <jim@meyering.net>
25517
25518         * modules/strtod: Use $(...) notation, not @...@ for
25519         AC_REPLACE'd variables.
25520         * modules/localcharset: Likewise.
25521
25522 2003-06-07  Jim Meyering  <jim@meyering.net>
25523
25524         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
25525         in place of my name in the copyright comment.
25526         Remove definition and uses of __P.
25527
25528         From coreutils.
25529         * lib/stat.c: Don't declare xmalloc explicitly.
25530         Instead, include "xalloc.h".
25531         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
25532         xrealloc, and xcalloc return values.
25533         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
25534         Improve comment.
25535         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
25536
25537 2003-06-07  Bruno Haible  <bruno@clisp.org>
25538
25539         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
25540         avoid AC_CONFIG_LINKS.
25541         * modules/fnmatch (Makefile.am): Use explicit creation rule for
25542         fnmatch.h, to avoid AC_CONFIG_LINKS.
25543         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
25544
25545 2003-06-07  Bruno Haible  <bruno@clisp.org>
25546
25547         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
25548         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
25549         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
25550         directory.
25551         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
25552         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
25553         directory.
25554
25555 2003-06-06  Jim Meyering  <jim@meyering.net>
25556
25557         Merge from coreutils.
25558         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
25559         Consolidate declarations and initializations of *_base* locals.
25560
25561         Merge from coreutils.
25562         This avoids a core dump on systems without GNU putenv,
25563         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
25564         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
25565         (unsetenv): New static function, from GNU libc.
25566         (rpl_putenv): Use it.
25567
25568         * lib/modechange.c: Remove trailing blanks.
25569
25570         Merge from coreutils.
25571         * lib/fsusage.c: Remove declaration of statfs.
25572         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
25573
25574         * lib/posixtm.c: Include <stdbool.h> unconditionally.
25575
25576 2003-06-06  Jim Meyering  <jim@meyering.net>
25577
25578         * lib/stdbool_.h: Renamed from stdbool.h.in.
25579
25580 2003-06-06  Jim Meyering  <jim@meyering.net>
25581             Bruno Haible  <bruno@clisp.org>
25582
25583         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
25584         Adjust Makefile.am snippet not to redirect directly to target.
25585         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
25586
25587 2003-06-05  Paul Eggert  <eggert@twinsun.com>
25588
25589         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
25590         mismatch, look in future quarters as well as past.  This fixes a
25591         bug when processing fall-backwards gaps immediately after a long
25592         period of daylight-saving time.
25593
25594         * lib/mktime.c: Assume freestanding C89 or better.
25595         (HAVE_LIMITS_H): Remove.  Assume it's 1.
25596         (__P): Remove; not used.
25597         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
25598         (mktime, not_equal_tm, print_tm, check_result,
25599         main): Use prototypes.  Use const * where appropriate.
25600         (main): Fix typo in testing code that uncovered by above changes.
25601         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
25602
25603 2003-06-04  Paul Eggert  <eggert@twinsun.com>
25604
25605         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
25606         locale.h, localeconv.  This merges changes from coreutils.
25607
25608         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
25609         It can be removed after the next Autoconf is released.
25610         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
25611         needed.
25612
25613 2003-06-04  Paul Eggert  <eggert@twinsun.com>
25614
25615         * lib/mktime.c: Fix Debian bug 177940
25616         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
25617         (localtime_offset): Now long int, not time_t, because we want it
25618         to be guaranteed to be signed.  All uses changed.
25619         (__mktime_internal): If overflow would occur when adding offset,
25620         don't add it.
25621
25622         Merge 'human' changes from coreutils.  Rewrite to support
25623         locale-specific notations like thousands separators.
25624         * lib/human.c: Simplify authorship notice.
25625         Include human.h immediately after config.h.
25626         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
25627         <limits.h>: Do not include, since human.h does.
25628         (SIZE_MAX, UINTMAX_MAX): New macros.
25629         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
25630         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
25631         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
25632         (power_letter): Renamed from suffixes.
25633         (generate_suffix_backwards): Remove.
25634         (adjust_value): Now takes int style (because of human.h changes)
25635         and long double value (for greater precision on some platforms).
25636         (group_number): New function.
25637         (human_readable): Use it.  Use integer options, not enum.
25638         Put the options before the sizes in the arg list.
25639         Support all the new options.
25640         The old human_readable function has been removed;
25641         use inttostr.h instead.
25642         (human_readable, default_block_size, humblock):
25643         Use uintmax_t, not int, for block sizes.
25644         (human_readable_inexact, block_size_types): Remove.
25645         (block_size_opts): New constant.
25646         (human_options): Renamed from human_block_size, with new signature
25647         that allows block sizes up to UINTMAX_MAX.  All callers changed.
25648         * lib/human.h: Add copyright and authorship notice.
25649         Include <limits.h> and <stdbool.h> unconditionally.
25650         (PARAMS): Remove.  All uses removed.
25651         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
25652         (enum human_inexact_style): Remove tag; now a nameless enum.
25653         (human_floor, human_ceiling, human_round_to_even): Now have
25654         values 2, 0, 1 rather than -1, 1, 0.
25655         (human_group_digits, human_suppress_point_zero, human_autoscale,
25656         human_base_1024, human_SI, human_B): New constants.
25657         (human_readable_inexact, human_block_size): Remove.
25658         (human_readable): Size args are now uintmax_t, not int.
25659         (human_options): New decl.
25660
25661         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
25662         unnecessary now that we assume C89 or better.  This change
25663         imported from coreutils.
25664
25665         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
25666         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
25667         in the 2003-05-30 sync from glibc.
25668
25669         .h files should stand alone, but we shouldn't include <sys/types.h>
25670         if we can get away with just <stddef.h>.
25671
25672         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
25673         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
25674         rather than <sys/types.h>, as we merely need size_t.
25675         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
25676         to get size_t.
25677         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
25678         Include <stdio.h>, to get FILE.
25679         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
25680         memcasecmp.h has included <stddef.h> and all we need is size_t.
25681         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
25682         our interface, instead of including <sys/types.h>
25683
25684 2003-06-04  Paul Eggert  <eggert@twinsun.com>
25685
25686         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
25687         now, as glibc mktime is buggy on non-glibc systems.
25688
25689 2003-06-03  Karl Berry  <karl@gnu.org>
25690
25691         * config/config.sub: update from prep.
25692
25693 2003-06-02  Paul Eggert  <eggert@twinsun.com>
25694
25695         [from coreutils]
25696         Fix some minor time-related bugs with POSIX time arguments.
25697         Some valid time stamps were being rejected (notably -1, and
25698         time stamps before 1900 on 64-bit hosts).  And some invalid
25699         time stamps were being accepted, e.g. September 31.
25700
25701         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
25702         that we can return (time_t) -1 successfully.
25703         * lib/posixtm.c: Likewise.
25704         [HAVE_STDBOOL_H]: Include <stdbool.h>.
25705         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
25706         (t): Remove static var.
25707         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
25708         of static var.  All uses changed.
25709         (year): Do not reject years before 1900; they can occur with
25710         64-bit time_t.
25711         (posix_time_parse): Do not check for out-of-range components;
25712         that is now the caller's responsibility, since our checks were
25713         only approximations.
25714         (posixtime): Use mktime to check for out-of-range components,
25715         since it knows them exactly.
25716         If mktime returns (time_t) -1, check whether an error actually occurred
25717         by invoking localtime on -1.
25718         (main) [TEST_POSIXTIME]: Check for input data errors, and report
25719         posixtime failures better.
25720         Improve the test data (in comments only).
25721
25722 2003-06-02  Karl Berry  <karl@gnu.org>
25723
25724         * config/mkinstalldirs (version): new variable.
25725         (--version): new option.
25726         (usage): improve message.
25727
25728 2003-05-30  Karl Berry  <karl@gnu.org>
25729
25730         * lib/mktime.c: update from libc.
25731
25732 2003-05-30  Bruno Haible  <bruno@clisp.org>
25733
25734         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
25735         * config/config.rpath: Upgrade to gettext-0.12.1.
25736
25737 2003-05-30  Bruno Haible  <bruno@clisp.org>
25738
25739         * m4/gettext.m4: Upgrade to gettext-0.12.1.
25740         * m4/nls.m4: New file, from gettext-0.12.1.
25741         * m4/po.m4: New file, from gettext-0.12.1.
25742         * m4/progtest.m4: Upgrade to gettext-0.12.1.
25743
25744 2003-05-30  Bruno Haible  <bruno@clisp.org>
25745
25746         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
25747         * lib/localcharset.h: Likewise.
25748         * lib/localcharset.c: Likewise.
25749
25750 2003-05-29  Karl Berry  <karl@gnu.org>
25751
25752         * config/config.rpath: update from gettext.
25753
25754 2003-05-28  Paul Eggert  <eggert@twinsun.com>
25755
25756         Assume the headers required for C89 freestanding compilers.
25757         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
25758         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
25759         * m4/human.m4 (gl_HUMAN): Likewise.
25760         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
25761         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
25762         * m4/userspec.m4 (gl_USERSPEC): Likewise.
25763         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
25764         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
25765         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
25766
25767 2003-05-28  Paul Eggert  <eggert@twinsun.com>
25768
25769         Assume the headers required for C89 freestanding compilers.
25770         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
25771         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
25772         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
25773         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
25774         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
25775         define, since <limits.h> is guaranteed to do that.
25776         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
25777         * lib/exclude.c: Include <stdbool.h> unconditionally.
25778         * lib/tempname.c: Include <stddef.h> unconditionally.
25779         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
25780         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
25781         <stddef.h> does that.
25782         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
25783         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
25784         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
25785         needed.
25786         * lib/xstrtol.c: Likewise.
25787         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
25788         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
25789
25790         * lib/addext.c (addext): Use assignment rather than cast, to avoid
25791         warnings on some platforms.
25792
25793         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
25794         arbitrarily.
25795
25796 2003-05-26  Jim Meyering  <jim@meyering.net>
25797
25798         Merge in a change from coreutils:
25799         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
25800         that is guaranteed to be `no'.  Use `no_such_member' to indicate
25801         that condition, rather than `-1' which is slightly misleading.
25802         Change the name of the cache variable to have the gl_ prefix.
25803         Prompted by a patch from Richard Dawe for DJGPP.
25804
25805 2003-05-24  Karl Berry  <karl@gnu.org>
25806
25807         * config/config.guess: update from prep.
25808
25809 2003-05-22  Karl Berry  <karl@gnu.org>
25810
25811         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
25812
25813 2003-05-20  Karl Berry  <karl@gnu.org>
25814
25815         * config/config.guess: update from prep.
25816
25817 2003-05-18  Karl Berry  <karl@gnu.org>
25818
25819         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
25820         might actually be set by the user.
25821
25822         * config/depcomp, install-sh, mdate-sh: update from automake.
25823
25824 2003-05-17  Bruno Haible  <bruno@clisp.org>
25825
25826         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
25827         invalid expansion for AC_EGREP_CPP.
25828         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
25829         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
25830         Suggested by Akim Demaille <akim@epita.fr> in
25831         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
25832
25833 2003-05-12  Jim Meyering  <jim@meyering.net>
25834
25835         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
25836         the space-padded-by-default conversion specifiers, %e, %k, %l.
25837
25838 2003-05-12  Bruno Haible  <bruno@clisp.org>
25839
25840         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
25841         the string is longer than 4 KB.
25842
25843 2003-05-11  Karl Berry  <karl@gnu.org>
25844
25845         * config/config.{guess,sub}: update from prep.
25846
25847 2003-05-09  Bruno Haible  <bruno@clisp.org>
25848
25849         * modules/error: Add m4/strerror_r.m4 to file list.
25850
25851 2003-05-03  Bruno Haible  <bruno@clisp.org>
25852
25853         Upgrade to Unicode-4.0.
25854         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
25855         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
25856         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
25857         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
25858         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
25859         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
25860         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
25861         Change width of U+E0100..U+E01EF from 1 to 0.
25862
25863 2003-04-25  Jim Meyering  <jim@meyering.net>
25864
25865         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
25866         of type size_t, not int.
25867
25868 2003-04-25  Bruno Haible  <bruno@clisp.org>
25869
25870         * lib/copy-file.c: Include <stddef.h>, for size_t.
25871
25872 2003-04-21  Paul Eggert  <eggert@twinsun.com>
25873
25874         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
25875         code which expansion is under static control.  Patch imported from
25876         Akim Demaille's patch to Bison; see
25877         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
25878
25879 2003-04-14  Bruno Haible  <bruno@clisp.org>
25880
25881         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
25882
25883 2003-04-11  Jim Meyering  <jim@meyering.net>
25884
25885         Merge changes from Coreutils.
25886
25887         2003-03-22  Jim Meyering  <jim@meyering.net>
25888
25889         * lib/strftime.c (widen): Cast alloca return value to proper type.
25890
25891         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
25892
25893         From GNU libc.
25894         * lib/strftime.c (my_strftime): Handle very large width
25895         specifications for numeric values correctly.  Improve checks for
25896         overflow.
25897
25898         2003-01-19  Jim Meyering  <jim@meyering.net>
25899
25900         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
25901         definitions.
25902         (nl_get_alt_digit) [! defined my_strftime]: Define.
25903         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
25904         _nl_get_alt_digit and _nl_get_walt_digit.
25905
25906         * lib/strftime.c (my_strftime): Merge in locale-related changes from
25907         libc. These changes have no effect outside of _LIBC.
25908
25909 2003-04-10  Bruno Haible  <bruno@clisp.org>
25910
25911         * modules/findprog: New file.
25912         * MODULES.html.sh (func_all_modules): Add it.
25913
25914 2003-04-10  Bruno Haible  <bruno@clisp.org>
25915
25916         * m4/findprog.m4: New file.
25917         * m4/eaccess.m4: New file.
25918
25919 2003-04-10  Bruno Haible  <bruno@clisp.org>
25920
25921         * lib/findprog.h: New file, from GNU gettext.
25922         * lib/findprog.c: New file, from GNU gettext.
25923
25924 2003-04-05  Jim Meyering  <jim@meyering.net>
25925
25926         Merge changes from Coreutils.
25927
25928         * lib/exclude.h (PARAMS): Remove definition and uses.
25929         * lib/exclude.c: Remove uses of `PARAMS'.
25930
25931         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
25932         Add test-cases for DOS filenames. Declare program_name.
25933         (main): Set up program_name.  Patch by Rich Dawe.
25934
25935         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
25936         error from mntctl.
25937         Use mntctl's return value to drive the entry-processing loop, since
25938         we can't rely on the value of the vmt_length member in the last
25939         entry.  On some systems doing so could result in exhausting
25940         virtual memory.  Based in part on a patch from Mike Jetzer.
25941
25942 2003-04-04  Bruno Haible  <bruno@clisp.org>
25943
25944         * modules/linebreak: New file.
25945         * MODULES.html.sh (func_all_modules): Add it.
25946
25947 2003-04-04  Bruno Haible  <bruno@clisp.org>
25948
25949         * m4/linebreak.m4: New file.
25950
25951 2003-04-04  Bruno Haible  <bruno@clisp.org>
25952
25953         * lib/linebreak.h: New file, from GNU gettext.
25954         * lib/linebreak.c: New file, from GNU gettext with slight
25955         modifications.
25956         * lib/lbrkprop.h: New file, from GNU gettext.
25957
25958 2003-04-03  Bruno Haible  <bruno@clisp.org>
25959
25960         * modules/utf8-ucs4: New file.
25961         * modules/utf16-ucs4: New file.
25962         * modules/ucs4-utf8: New file.
25963         * modules/ucs4-utf16: New file.
25964         * MODULES.html.sh (func_all_modules): Add them.
25965
25966 2003-04-03  Bruno Haible  <bruno@clisp.org>
25967
25968         * m4/utf-ucs4.m4: New file.
25969         * m4/ucs4-utf.m4: New file.
25970
25971 2003-04-03  Bruno Haible  <bruno@clisp.org>
25972
25973         * lib/utf8-ucs4.h: New file, from GNU gettext.
25974         * lib/utf16-ucs4.h: New file, from GNU gettext.
25975         * lib/ucs4-utf8.h: New file, from GNU gettext.
25976         * lib/ucs4-utf16.h: New file, from GNU gettext.
25977
25978 2003-04-02  Bruno Haible  <bruno@clisp.org>
25979
25980         * modules/binary-io: New file.
25981         * MODULES.html.sh (func_all_modules): Add it.
25982
25983 2003-04-02  Bruno Haible  <bruno@clisp.org>
25984
25985         * lib/binary-io.h: New file, from GNU gettext.
25986
25987 2003-04-01  Bruno Haible  <bruno@clisp.org>
25988
25989         * modules/pathname: New file.
25990         * MODULES.html.sh (func_all_modules): Add it.
25991
25992 2003-04-01  Bruno Haible  <bruno@clisp.org>
25993
25994         * lib/pathname.h: New file, from GNU gettext.
25995         * lib/concatpath.c: New file, from GNU gettext.
25996
25997 2003-03-30  Bruno Haible  <bruno@clisp.org>
25998
25999         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
26000
26001 2003-03-30  Bruno Haible  <bruno@clisp.org>
26002
26003         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
26004         function chown() doesn't exist.
26005
26006 2003-03-28  Bruno Haible  <bruno@clisp.org>
26007
26008         * modules/copy-file: New file.
26009         * MODULES.html.sh (func_all_modules): Add it.
26010
26011 2003-03-28  Bruno Haible  <bruno@clisp.org>
26012
26013         * m4/copy-file.m4: New file.
26014
26015 2003-03-28  Bruno Haible  <bruno@clisp.org>
26016
26017         * lib/copy-file.h: New file, from GNU gettext.
26018         * lib/copy-file.c: New file, from GNU gettext.
26019
26020 2003-03-18  Jim Meyering  <jim@meyering.net>
26021
26022         * lib/quote.c (quote_n): Fix typo in comment.
26023
26024 2003-03-18  Bruno Haible  <bruno@clisp.org>
26025
26026         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
26027         checking.
26028         * m4/onceonly_2_57.m4: Likewise.
26029
26030 2003-03-17  Bruno Haible  <bruno@clisp.org>
26031
26032         * m4/onceonly.m4: Require autoconf 2.54 or newer.
26033         (m4_quote): Remove macro.
26034         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
26035
26036 2003-03-14  Jim Meyering  <jim@meyering.net>
26037
26038         Merge changes from Coreutils.
26039         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
26040         to be const, in order to avoid warnings.
26041         (obstack_room): Likewise.
26042         (obstack_empty_p): Likewise.
26043
26044 2003-03-14  Bruno Haible  <bruno@clisp.org>
26045
26046         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
26047         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
26048
26049 2003-03-13  Paul Eggert  <eggert@twinsun.com>
26050
26051         Merge changes from Bison.
26052         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
26053         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
26054         when compiling Bison 1.875's `bitset bset = obstack_alloc
26055         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
26056         * lib/hash.c: Include <stdbool.h> unconditionally.
26057
26058 2003-03-13  Paul Eggert  <eggert@twinsun.com>
26059
26060         * m4/onceonly.m4 (m4_quote): New macro.
26061         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
26062         Quote AC_FOREACH variable-expansions properly.
26063
26064 2003-03-13  Paul Eggert  <eggert@twinsun.com>
26065
26066         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
26067
26068 2003-03-09  Paul Eggert  <eggert@twinsun.com>
26069
26070         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
26071         Reported by Bruce Becker; see:
26072         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
26073
26074 2003-03-03  Paul Eggert  <eggert@twinsun.com>
26075             Bruno Haible  <bruno@clisp.org>
26076
26077         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
26078         Reported by John Hughes, see
26079         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
26080
26081 2003-02-20  Bruno Haible  <bruno@clisp.org>
26082
26083         * MODULES.html.sh (func_all_modules): Add poll.
26084
26085 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
26086
26087         * modules/poll: New file.
26088
26089 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
26090
26091         * lib/poll_.h: New file.
26092         * lib/poll.c: New file.
26093
26094 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
26095
26096         * m4/poll.m4: New file.
26097
26098 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
26099
26100         * modules/mathl: New file.
26101
26102 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
26103
26104         * lib/mathl.h: New file.
26105         * lib/acosl.c: New file.
26106         * lib/asinl.c: New file.
26107         * lib/atanl.c: New file.
26108         * lib/ceill.c: New file.
26109         * lib/cosl.c: New file.
26110         * lib/expl.c: New file.
26111         * lib/floorl.c: New file.
26112         * lib/frexpl.c: New file.
26113         * lib/ldexpl.c: New file.
26114         * lib/logl.c: New file.
26115         * lib/sincosl.c: New file.
26116         * lib/sinl.c: New file.
26117         * lib/sqrtl.c: New file.
26118         * lib/tanl.c: New file.
26119         * lib/trigl.c: New file.
26120         * lib/trigl.h: New file.
26121
26122 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
26123
26124         * m4/mathl.m4: New file.
26125
26126 2003-02-18  Bruno Haible  <bruno@clisp.org>
26127
26128         * MODULES.html.sh (func_all_modules): Add mathl.
26129
26130 2003-02-17  Bruno Haible  <bruno@clisp.org>
26131
26132         * modules/mkdtemp: New module.
26133         * MODULES.html.sh (func_all_modules): Add it.
26134
26135 2003-02-17  Bruno Haible  <bruno@clisp.org>
26136
26137         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
26138
26139 2003-02-17  Bruno Haible  <bruno@clisp.org>
26140
26141         * lib/mkdtemp.h: New file, from GNU gettext.
26142         * lib/mkdtemp.c: New file, from GNU gettext.
26143
26144 2003-02-02  Jim Meyering  <jim@meyering.net>
26145
26146         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
26147         e.g. glibc-2.2.93.
26148
26149 2003-01-31  Bruno Haible  <bruno@clisp.org>
26150
26151         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
26152         'rpl_rename'.
26153         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
26154         'rpl_strnlen'.
26155         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
26156         'rpl_strtod'.
26157         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
26158         'rpl_utime'.
26159
26160 2003-01-31  Bruno Haible  <bruno@clisp.org>
26161
26162         * lib/rename.c: #undef rename before defining rpl_rename.
26163         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
26164
26165 2003-01-30  Bruno Haible  <bruno@clisp.org>
26166
26167         * modules/vasnprintf, modules/vasprintf: New modules.
26168         * MODULES.html.sh (func_all_modules): Add them.
26169
26170 2003-01-30  Bruno Haible  <bruno@clisp.org>
26171
26172         * m4/signed.m4: New file, from GNU gettext.
26173         * m4/longdouble.m4: New file, from GNU gettext.
26174         * m4/wchar_t.m4: New file, from GNU gettext.
26175         * m4/wint_t.m4: New file, from GNU gettext.
26176         * m4/vasnprintf.m4: New file.
26177         * m4/vasprintf.m4: New file.
26178
26179 2003-01-30  Bruno Haible  <bruno@clisp.org>
26180
26181         * lib/printf-args.h: New file, from GNU gettext.
26182         * lib/printf-args.c: New file, from GNU gettext.
26183         * lib/printf-parse.h: New file, from GNU gettext.
26184         * lib/printf-parse.c: New file, from GNU gettext.
26185         * lib/vasnprintf.h: New file, from GNU gettext.
26186         * lib/vasnprintf.c: New file, from GNU gettext.
26187         * lib/asnprintf.c: New file, from GNU gettext.
26188         * lib/vasprintf.h: New file, from GNU gettext with modifications.
26189         * lib/vasprintf.c: New file, from GNU gettext.
26190         * lib/asprintf.c: New file, from GNU gettext.
26191
26192 2003-01-29  Bruno Haible  <bruno@clisp.org>
26193
26194         * modules/stpncpy: New module.
26195         * MODULES.html.sh (func_all_modules): Add it.
26196
26197 2003-01-29  Bruno Haible  <bruno@clisp.org>
26198
26199         * m4/stpncpy.m4: New file.
26200
26201 2003-01-29  Bruno Haible  <bruno@clisp.org>
26202
26203         * lib/stpncpy.h: New file, from GNU gettext with modifications.
26204         * lib/stpncpy.c: New file, from GNU gettext with modifications.
26205
26206 2003-01-28  Bruno Haible  <bruno@clisp.org>
26207
26208         * modules/c-ctype: New module.
26209         * MODULES.html.sh (func_all_modules): Add it.
26210
26211 2003-01-28  Bruno Haible  <bruno@clisp.org>
26212
26213         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
26214         Paul Eggert.
26215         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
26216         Paul Eggert.
26217
26218 2003-01-27  Bruno Haible  <bruno@clisp.org>
26219
26220         * modules/xsetenv: New module.
26221         * MODULES.html.sh (func_all_modules): Add it.
26222
26223 2003-01-27  Bruno Haible  <bruno@clisp.org>
26224
26225         * lib/xsetenv.h: New file, from GNU gettext.
26226         * lib/xsetenv.c: New file, from GNU gettext.
26227
26228 2003-01-23  Jim Meyering  <jim@meyering.net>
26229
26230         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
26231         from working on systems without dirfd (at least Irix and OSF1/Tru64).
26232
26233 2003-01-23  Bruno Haible  <bruno@clisp.org>
26234
26235         * modules/minmax: New module.
26236         * MODULES.html.sh (func_all_modules): Add it.
26237
26238 2003-01-23  Bruno Haible  <bruno@clisp.org>
26239
26240         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
26241         Eggert.
26242
26243 2003-01-22  Bruno Haible  <bruno@clisp.org>
26244
26245         * modules/exit: New module.
26246         * MODULES.html.sh (func_all_modules): Add it.
26247
26248 2003-01-22  Bruno Haible  <bruno@clisp.org>
26249
26250         * lib/exit.h: New file, from GNU gettext.
26251
26252 2003-01-19  Bruno Haible  <bruno@clisp.org>
26253
26254         * gnulib-tool: Recognize option --extract-maintainer.
26255         (func_get_maintainer): New function.
26256         * modules/*: Add Maintainer entry.
26257
26258 2003-01-16  Jim Meyering  <jim@meyering.net>
26259
26260         * m4/regex.m4: The `regex' struct is both input and output.
26261         Initialize it before each use.  Patch by Tim Waugh.
26262
26263 2003-01-16  Bruno Haible  <bruno@clisp.org>
26264
26265         * MODULES.html.sh: Add a table of contents. Add the module name as
26266         leftmost column. Add hyperlinks.
26267
26268 2003-01-15  Bruno Haible  <bruno@clisp.org>
26269
26270         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
26271
26272 2003-01-15  Bruno Haible  <bruno@clisp.org>
26273
26274         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
26275         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
26276         suffix.
26277
26278 2003-01-15  Bruno Haible  <bruno@clisp.org>
26279
26280         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
26281
26282 2003-01-15  Bruno Haible  <bruno@clisp.org>
26283
26284         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
26285         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
26286
26287 2003-01-14  Jim Meyering  <jim@meyering.net>
26288
26289         * lib/same.c (same_name): Tweak a comment.
26290
26291 2003-01-14  Bruno Haible  <bruno@clisp.org>
26292
26293         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
26294         when a string comparison is sufficient.
26295
26296 2003-01-14  Bruno Haible  <bruno@clisp.org>
26297
26298         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
26299         'unsigned int'.
26300
26301 2003-01-14  Bruno Haible  <bruno@clisp.org>
26302
26303         * lib/hash-pjw.c: Add comment about low quality of this function.
26304
26305 2003-01-13  Bruno Haible  <bruno@clisp.org>
26306
26307         * modules/stpcpy: Distribute lib/stpcpy.h.
26308         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
26309
26310 2003-01-13  Bruno Haible  <bruno@clisp.org>
26311
26312         * modules/*: Add a description.
26313         * modules/strpbrk: Fix Makefile.am snippet.
26314         * modules/strtoimax: Fix dependencies.
26315         * modules/strtoumax: Likewise.
26316
26317 2003-01-13  Bruno Haible  <bruno@clisp.org>
26318
26319         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
26320         * modules/alloca (Makefile.am): All object files depend on alloca.h.
26321         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
26322
26323 2003-01-13  Bruno Haible  <bruno@clisp.org>
26324
26325         * gnulib-tool (func_create_testdir): Store config/* files in the main
26326         directory.
26327         * config.rpath: Move to ...
26328         * config/config.rpath: ... here.
26329         * modules/gettext: Contains config/config.rpath, not config.rpath.
26330         * modules/iconv: Likewise.
26331
26332 2003-01-12  Paul Eggert  <eggert@twinsun.com>
26333
26334         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
26335         to avoid collisions with libcurses and libreadline.
26336
26337         * m4/getstr.m4: Remove.
26338         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
26339
26340 2003-01-12  Paul Eggert  <eggert@twinsun.com>
26341
26342         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
26343         to avoid collisions with libcurses and libreadline.
26344
26345         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
26346         * lib/getstr.h, getstr.c: Remove.
26347         * lib/getline.c: Include "getline.h", to check interface.
26348         Move body of old getstr.c here: this defines MIN_CHUNK and
26349         declares getdelim2, which is renamed from getstr.
26350         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
26351
26352         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
26353         All uses changed.
26354         * lib/linebuffer.h: Likewise.
26355         (readline): Remove backward-compatibility macro.
26356
26357 2003-01-12  Paul Eggert  <eggert@twinsun.com>
26358
26359         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
26360         to avoid collisions with libcurses and libreadline.
26361         * getstr: Remove.
26362         * MODULES.html.sh: Remove getstr.
26363         * modules/getline: Depend on unlocked-io, not getstr.
26364
26365 2003-01-12  Jim Meyering  <jim@meyering.net>
26366
26367         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
26368
26369 2003-01-10  Bruno Haible  <bruno@clisp.org>
26370
26371         * modules/alloca: Change Makefile.am requirements. Simplify Include
26372         requirements. Add lib/alloca_.h to file list.
26373
26374 2003-01-10  Bruno Haible  <bruno@clisp.org>
26375
26376         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
26377
26378 2003-01-10  Bruno Haible  <bruno@clisp.org>
26379
26380         * lib/alloca_.h: New file.
26381         * lib/getdate.y: Unconditionally include alloca.h.
26382         * lib/makepath.c: Likewise.
26383         * lib/setenv.c: Likewise.
26384         * lib/userspec.c: Likewise.
26385
26386 2003-01-09  Karl Berry  <karl@gnu.org>
26387
26388         * MODULES.html.sh: include `dirname $0` in PATH, to find
26389         gnulib-tool.
26390
26391 2003-01-09  Bruno Haible  <bruno@clisp.org>
26392
26393         * modules/stdbool: Change configure.ac, Makefile.am requirements.
26394         Simplify Include requirements. Add lib/stdbool.h.in to file list.
26395
26396 2003-01-09  Bruno Haible  <bruno@clisp.org>
26397
26398         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
26399
26400 2003-01-09  Bruno Haible  <bruno@clisp.org>
26401
26402         * lib/stdbool.h.in: New file.
26403
26404 2003-01-09  Bruno Haible  <bruno@clisp.org>
26405
26406         * gnulib-tool (func_all_modules): Ignore files ending in ~.
26407         * MODULES.html.sh: Likewise.
26408
26409 2003-01-08  Jim Meyering  <jim@meyering.net>
26410
26411         * lib/full-write.c: Undefine and define-away `const' after inclusion
26412         of errno.h, not before.  Suggestion from Bruno Haible.
26413
26414 2003-01-08  Bruno Haible  <bruno@clisp.org>
26415
26416         * modules/full-read: Depend on full-write.
26417
26418 2003-01-08  Bruno Haible  <bruno@clisp.org>
26419
26420         * lib/safe-read.c: Include specification header first, to ensure its
26421         selfcontainedness.
26422         * lib/full-write.c: Likewise.
26423
26424 2003-01-07  Jim Meyering  <jim@meyering.net>
26425
26426         * lib/full-write.c: Rework so that it may serve to define full_read,
26427         too.
26428         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
26429
26430 2003-01-07  Bruno Haible  <bruno@clisp.org>
26431
26432         * lib/strtoimax.c: Include <stdint.h> as an alternative to
26433         <inttypes.h>.
26434         * lib/xstrtol.h: Likewise.
26435         * lib/xstrtoimax.c: Likewise.
26436         * lib/xstrtoumax.c: Likewise.
26437         * lib/human.h: Likewise.
26438
26439         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
26440         on systems that have <inttypes.h> but not <stdint.h>.
26441
26442 2003-01-07  Bruno Haible  <bruno@clisp.org>
26443
26444         * MODULES.html.sh: Add copyright notice.
26445         (missed_files): Omit CVS directory entries.
26446         (func_module): Make it work with sed-3.02.
26447         * MODULES.txt: Remove file.
26448
26449 2003-01-06  Jim Meyering  <jim@meyering.net>
26450
26451         * lib/version-etc.c: Update year in translatable copyright string.
26452
26453 2003-01-03  Karl Berry  <karl@gnu.org>
26454
26455         * config/config.{guess,sub}: update from prep.
26456
26457 2003-01-02  Karl Berry  <karl@gnu.org>
26458
26459         * doc/COPYING.DOC: belatedly updated to 1.2.
26460
26461 2003-01-01  Karl Berry  <karl@gnu.org>
26462
26463         * gnulib-tool (func_verify_module): report module name $module in
26464         error message, not $1.
26465         * gnulib-tool (create-testdir): don't complain if destdir couldn't
26466         be created, only if it doesn't exist.
26467         * gnulib-tool (last_checkin_date): don't expand the $Date here.
26468
26469 2002-12-31  Paul Eggert  <eggert@twinsun.com>
26470
26471         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
26472
26473 2002-12-31  Paul Eggert  <eggert@twinsun.com>
26474
26475         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
26476         memcmp if strcoll doesn't work.
26477
26478 2002-12-31  Bruno Haible  <bruno@clisp.org>
26479
26480         * lib/utime.c (utime_null): No need to call ftruncate if the file was
26481         nonempty.
26482
26483 2002-12-31  Bruno Haible  <bruno@clisp.org>
26484
26485         * lib/memcoll.c (STRCOLL): New macro.
26486         (memcoll): Use it.
26487
26488 2002-12-31  Bruno Haible  <bruno@clisp.org>
26489
26490         * lib/localcharset.h: New file.
26491         * lib/localcharset.c: Include it.
26492         * lib/unicodeio.c: Likewise.
26493
26494 2002-12-31  Bruno Haible  <bruno@clisp.org>
26495
26496         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
26497         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
26498
26499 2002-12-31  Bruno Haible  <bruno@clisp.org>
26500
26501         * lib/getline.h: Include <stddef.h>, for size_t.
26502
26503         * lib/unicodeio.h: Include <stddef.h>, for size_t.
26504         * lib/unicodeio.c: Don't include <stddef.h>.
26505
26506 2002-12-31  Bruno Haible  <bruno@clisp.org>
26507
26508         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
26509         HAVE_TM_ZONE.
26510
26511 2002-12-24  Karl Berry  <karl@gnu.org>
26512
26513         * config/config.guess: update from prep.
26514
26515 2002-12-24  Bruno Haible  <bruno@clisp.org>
26516
26517         General infrasructure.
26518         * m4/README: Rewritten.
26519         * m4/onceonly.m4: New file.
26520         * m4/onceonly_2_57.m4: New file.
26521
26522         Module atexit.
26523         * m4/atexit.m4: New file.
26524
26525         Module strtod.
26526         * m4/strtod.m4: New file.
26527
26528         Module strtol.
26529         * m4/strtol.m4: New file.
26530
26531         Module strtoul.
26532         * m4/strtoul.m4: New file.
26533
26534         Module memchr.
26535         * m4/memchr.m4: New file.
26536
26537         Module memcmp.
26538         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
26539         (jm_FUNC_MEMCMP): Invoke it.
26540
26541         Module memcpy.
26542         * m4/memcpy.m4: New file.
26543
26544         Module memmove.
26545         * m4/memmove.m4: New file.
26546
26547         Module memset.
26548         * m4/memset.m4: New file.
26549
26550         Module strcspn.
26551         * m4/strcspn.m4: New file.
26552
26553         Module strpbrk.
26554         * m4/strpbrk.m4: New file.
26555
26556         Module strstr.
26557         * m4/strstr.m4: New file.
26558
26559         Module strerror.
26560         * m4/strerror.m4: New file.
26561
26562         Module mktime.
26563         * m4/mktime.m4: Renamed from jm-mktime.m4.
26564         (gl_PREREQ_MKTIME): New macro.
26565         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
26566
26567         Module malloc.
26568         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
26569         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
26570         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
26571
26572         Module realloc.
26573         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
26574         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
26575         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
26576
26577         Module strftime.
26578         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
26579         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
26580         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
26581         gl_TM_GMTOFF.
26582         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
26583
26584         Module xalloc.
26585         * m4/xalloc.m4: New file.
26586
26587         Module alloca.
26588         * m4/alloca.m4: New file.
26589
26590         Module putenv.
26591         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
26592         (jm_FUNC_PUTENV): Invoke it.
26593
26594         Module setenv.
26595         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
26596         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
26597         when invoked twice.
26598         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
26599         gt_FUNC_SETENV.
26600
26601         Module memrchr.
26602         * m4/memrchr.m4: New file.
26603
26604         Module stpcpy.
26605         * m4/stpcpy.m4: New file.
26606
26607         Module strcase.
26608         * m4/strcase.m4: New file.
26609
26610         Module strdup.
26611         * m4/strdup.m4: New file.
26612
26613         Module strnlen.
26614         * m4/strnlen.m4: New file.
26615
26616         Module strndup.
26617         * m4/strndup.m4: New file.
26618
26619         Module xstrtod.
26620         * m4/xstrtod.m4: New file.
26621
26622         Module xstrtol.
26623         * m4/xstrtol.m4: New file.
26624
26625         Module getdate.
26626         * m4/getdate.m4: New file.
26627
26628         Module unlocked-io.
26629         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
26630         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
26631         * m4/jm-glibc-io.m4n: Remove file.
26632
26633         Module long-options.
26634         * m4/long-options.m4: New file.
26635
26636         Module md5.
26637         * m4/md5.m4: New file.
26638
26639         Module sha.
26640         * m4/sha.m4: New file.
26641
26642         Module getstr.
26643         * m4/getstr.m4: New file.
26644
26645         Module getline.
26646         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
26647         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
26648         <sys/types.h>, for size_t. Use the function name gnu_getline, not
26649         simply getline. Infoke gl_PREREQ_GETLINE.
26650
26651         Module obstack.
26652         * m4/obstack.m4: New file.
26653
26654         Module hash.
26655         * m4/hash.m4: New file.
26656
26657         Module readtokens.
26658         * m4/readtokens.m4: New file.
26659
26660         Module strverscmp.
26661         * m4/strverscmp.m4: New file.
26662
26663         Module stdbool.
26664         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
26665         OSF/1.
26666
26667         Module strtoll.
26668         * m4/strtoll.m4: New file.
26669
26670         Module strtoull.
26671         * m4/strtoull.m4: New file.
26672
26673         Module strtoimax.
26674         * m4/strtoimax.m4: New file.
26675
26676         Module strtoumax.
26677         * m4/strtoumax.m4: New file.
26678
26679         Module xstrtoimax.
26680         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
26681         jm_AC_PREREQ_XSTRTOIMAX.
26682         Moved the strtol prerequisites to strtol.m4.
26683         Moved the strtoll prerequisites to strtoll.m4.
26684         Moved the strtoimax prerequisites to strtoimax.m4.
26685
26686         Module xstrtoumax.
26687         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
26688         jm_AC_PREREQ_XSTRTOUMAX.
26689         Moved the strtoul prerequisites to strtoul.m4.
26690         Moved the strtoull prerequisites to strtoull.m4.
26691         Moved the strtoumax prerequisites to strtoumax.m4.
26692
26693         Module chown.
26694         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
26695         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
26696
26697         Module dup2.
26698         * m4/dup2.m4: New file.
26699
26700         Module ftruncate.
26701         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
26702         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
26703
26704         Module getgroups.
26705         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
26706         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
26707
26708         Module gettimeofday.
26709         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
26710         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
26711         gl_PREREQ_GETTIMEOFDAY.
26712
26713         Module mkdir.
26714         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
26715         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
26716
26717         Module mkstemp.
26718         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
26719         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
26720         jm_AC_TYPE_UINTMAX_T.
26721         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
26722
26723         Module stat.
26724         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
26725         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
26726
26727         Module lstat.
26728         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
26729         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
26730
26731         Module timespec.
26732         * m4/timespec.m4 (gl_TIMESPEC): New macro.
26733         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
26734         * m4/st_mtim.m4: Indentation.
26735
26736         Module nanosleep.
26737         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
26738         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
26739         gl_PREREQ_NANOSLEEP.
26740
26741         Module regex.
26742         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
26743         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
26744         (gl_REGEX): New macro.
26745
26746         Module rename.
26747         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
26748         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
26749
26750         Module rmdir.
26751         * m4/rmdir.m4: New file.
26752
26753         Module utime.
26754         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
26755         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
26756         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
26757
26758         Module dirname.
26759         * m4/dirname.m4: New file.
26760
26761         Module getopt.
26762         * m4/getopt.m4: New file.
26763
26764         Module unistd-safer.
26765         * m4/unistd-safer.m4: New file.
26766
26767         Module fnmatch.
26768         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
26769         declaration.
26770         (gl_PREREQ_FNMATCH_EXTRA): New macro.
26771         (gl_FUNC_FNMATCH_POSIX): New macro.
26772         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
26773         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
26774         simply fnmatch.
26775
26776         Module exclude.
26777         * m4/exclude.m4: New file.
26778
26779         Module human.
26780         * m4/human.m4: New file.
26781
26782         Module acl.
26783         * m4/acl.m4: Nop.
26784
26785         Module backupfile.
26786         * m4/backupfile.m4: New file.
26787         * m4/d-ino.m4: Indentation.
26788
26789         Module fsusage.
26790         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
26791         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
26792         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
26793
26794         Module dirfd.
26795         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
26796         requirements.
26797
26798         Module euidaccess.
26799         * m4/euidaccess.m4: New file.
26800
26801         Module file-type.
26802         * m4/file-type.m4: New file.
26803
26804         Module fileblocks.
26805         * m4/fileblocks.m4: New file.
26806
26807         Module filemode.
26808         * m4/filemode.m4: New file.
26809
26810         Module isdir.
26811         * m4/isdir.m4: New file.
26812
26813         Module lchown.
26814         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
26815         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
26816
26817         Module makepath.
26818         * m4/makepath.m4: New file.
26819
26820         Module modechange.
26821         * m4/modechange.m4: New file.
26822
26823         Module mountlist.
26824         * m4/mountlist.m4: New file.
26825         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
26826         Indentation.
26827
26828         Module path-concat.
26829         * m4/path-concat.m4: New file.
26830
26831         Module pathmax.
26832         * m4/pathmax.m4: New file.
26833
26834         Module same.
26835         * m4/same.m4: New file.
26836
26837         Module save-cwd.
26838         * m4/save-cwd.m4: New file.
26839
26840         Module savedir.
26841         * m4/savedir.m4: New file.
26842
26843         Module xgetcwd.
26844         * m4/xgetcwd.m4: New file.
26845         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
26846
26847         Module xreadlink.
26848         * m4/xreadlink.m4: New file.
26849
26850         Module safe-read.
26851         * m4/safe-read.m4: New file.
26852
26853         Module safe-write.
26854         * m4/safe-write.m4: New file.
26855
26856         Module closeout.
26857         * m4/closeout.m4: New file.
26858
26859         Module stdio-safer.
26860         * m4/stdio-safer.m4: New file.
26861
26862         Module getpass.
26863         * m4/getpass.m4: New file.
26864
26865         Module getugroups.
26866         * m4/getugroups.m4: New file.
26867
26868         Module group-member.
26869         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
26870         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
26871
26872         Module idcache.
26873         * m4/idcache.m4: New file.
26874
26875         Module userspec.
26876         * m4/userspec.m4: New file.
26877
26878         Module gettime.
26879         * m4/clock_time.m4: New file.
26880         * m4/gettime.m4: New file.
26881
26882         Module settime.
26883         * m4/settime.m4: New file.
26884
26885         Module posixtm.
26886         * m4/posixtm.m4: New file.
26887
26888         Module gethostname.
26889         * m4/gethostname.m4: New file.
26890
26891         Module canon-host.
26892         * m4/canon-host.m4: New file.
26893
26894         Module gettext.
26895         * m4/codeset.m4: New file, from gettext-0.11.5.
26896         * m4/gettext.m4: New file, from gettext-0.11.5.
26897         * m4/glibc21.m4: New file, from gettext-0.11.5.
26898         * m4/iconv.m4: New file, from gettext-0.11.5.
26899         * m4/intdiv0.m4: New file, from gettext-0.11.5.
26900         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
26901         * m4/inttypes.m4: New file, from gettext-0.11.5.
26902         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
26903         * m4/isc-posix.m4: New file, from gettext-0.11.5.
26904         * m4/lcmessage.m4: New file, from gettext-0.11.5.
26905         * m4/lib-ld.m4: New file, from gettext-0.11.5.
26906         * m4/lib-link.m4: New file, from gettext-0.11.5.
26907         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
26908         * m4/progtest.m4: New file, from gettext-0.11.5.
26909         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
26910         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
26911         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
26912
26913         Module localcharset.
26914         * m4/localcharset.m4: New file.
26915
26916         Module hard-locale.
26917         * m4/hard-locale.m4: New file.
26918
26919         Module mbswidth.
26920         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
26921         onceonly macros.
26922         * m4/mbrtowc.m4: Add comment.
26923
26924         Module memcasecmp.
26925         * m4/memcasecmp.m4: New file.
26926
26927         Module memcoll.
26928         * m4/memcoll.m4: New file.
26929
26930         Module unicodeio.
26931         * m4/unicodeio.m4: New file.
26932
26933         Module rpmatch.
26934         * m4/rpmatch.m4: New file.
26935
26936         Module yesno.
26937         * m4/yesno.m4: New file.
26938
26939         Module exitfail.
26940         * m4/exitfail.m4: New file.
26941
26942         Module c-stack.
26943         * m4/c-stack.m4 (gl_C_STACK): New macro.
26944         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
26945
26946         Module error.
26947         * m4/error.m4 (gl_ERROR): New macro.
26948         (jm_PREREQ_ERROR): Use onceonly macros.
26949
26950         Module fatal.
26951         * m4/fatal.m4: New file.
26952
26953         Module getloadavg.
26954         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
26955         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
26956
26957         Module getpagesize.
26958         * m4/getpagesize.m4: New file.
26959
26960         Module getusershell.
26961         * m4/getusershell.m4: New file.
26962
26963         Module physmem.
26964         * m4/physmem.m4: New file.
26965
26966         Module posixver.
26967         * m4/posixver.m4: New file.
26968
26969         Module quotearg.
26970         * m4/quotearg.m4: New file.
26971
26972         Module quote.
26973         * m4/quote.m4: New file.
26974
26975         Module readutmp.
26976         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
26977
26978         Module sig2str.
26979         * m4/sig2str.m4: New file.
26980
26981         Other.
26982         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
26983         ulonglong.m4.
26984         * m4/intmax_t.m4: New file.
26985         * m4/d-type.m4: Indentation.
26986         * m4/jm-macros.m4: Update.
26987         * m4/prereq.m4 (jm_PREREQ): Update.
26988         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
26989         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
26990         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
26991         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
26992         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
26993         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
26994         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
26995         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
26996         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
26997         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
26998         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
26999         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
27000         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
27001         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
27002         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
27003         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
27004         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
27005         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
27006         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
27007
27008 2002-12-24  Bruno Haible  <bruno@clisp.org>
27009
27010         * MODULES.txt: Update according to m4/ changes.
27011
27012         Module gettext.
27013         * config.rpath: New file, from gettext-0.11.5.
27014
27015         * modules/*: New module descriptions.
27016         * gnulib-tool: New file.
27017         * MODULES.html.sh: New file.
27018
27019 2002-12-21  Karl Berry  <karl@gnu.org>
27020
27021         * doc/fdl.texi: update to version 1.2.
27022
27023 2002-12-19  Karl Berry  <karl@gnu.org>
27024
27025         * config/config.guess: update from prep.
27026
27027 2002-12-18  Bruno Haible  <bruno@clisp.org>
27028
27029         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
27030         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
27031
27032 2002-12-17  Bruno Haible  <bruno@clisp.org>
27033
27034         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
27035         stdlib.h, string.h.
27036
27037 2002-12-17  Bruno Haible  <bruno@clisp.org>
27038
27039         * lib/canon-host.c (strdup): Remove unused declaration.
27040
27041         * lib/fsusage.c: Include full_read.h.
27042         (get_fs_usage): Use full_read instead of safe_read.
27043
27044         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
27045
27046 2002-12-12  Karl Berry  <karl@gnu.org>
27047
27048         * config/config.guess: update from prep.
27049
27050 2002-12-11  Bruno Haible  <bruno@clisp.org>
27051
27052         * m4/setenv.m4: New file, from gettext-0.11.5.
27053
27054 2002-12-11  Bruno Haible  <bruno@clisp.org>
27055
27056         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
27057         not unsetenv().
27058         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
27059         modifications:
27060
27061         2002-12-11  Bruno Haible  <bruno@clisp.org>
27062
27063                 * setenv.c (alloca): Fall back to malloc.
27064                 (freea): New macro.
27065                 (setenv): Use freea() to free memory allocated with alloca().
27066
27067         2002-11-13  Bruno Haible  <bruno@clisp.org>
27068
27069                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
27070                 function declarations.
27071                 * unsetenv.c (unsetenv): Likewise.
27072
27073         2002-03-04  Bruno Haible  <bruno@clisp.org>
27074
27075                 Portability to AIX 4.3.3.
27076                 * unsetenv.c: New file, extracted from setenv.c.
27077                 * setenv.c: Move the unsetenv() function to unsetenv.c.
27078
27079         2001-12-20  Bruno Haible  <bruno@clisp.org>
27080
27081                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
27082                 use malloc instead. For SunOS 4.
27083
27084         2001-12-11  Bruno Haible  <bruno@clisp.org>
27085
27086                 * setenv.c: Declare alloca.
27087                 (compar_fn_t): New typedef.
27088                 (KNOWN_VALUE, STORE_VALUE): Use it.
27089
27090         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
27091         setenv.h.
27092
27093 2002-12-10  Paul Eggert  <eggert@twinsun.com>
27094
27095         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
27096         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
27097         Choose values that are less likely to collide with system fnmatch
27098         options.
27099         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
27100         defined (e.g., a pure POSIX system).
27101         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
27102         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
27103
27104 2002-12-06  Paul Eggert  <eggert@twinsun.com>
27105
27106         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
27107         a pain in practice to deal with generated m4 files.  This change
27108         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
27109
27110         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
27111         and jm-glibc-io.m4, as they are no longer a special case.
27112         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
27113         kludge and the auto-generation stuff.  Check only whether the
27114         functions are declared, not whether they exist, since older hosts
27115         that don't declare the functions can't use the optimization anyway.
27116
27117 2002-12-06  Jim Meyering  <jim@meyering.net>
27118
27119         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
27120
27121         Merge in changes from libc's misc/error.c, in preparation
27122         for the merge of gnulib's changes back into libc.
27123
27124         * lib/error.c (_): Define only if not already defined.
27125         Move definition to follow all #include directives.
27126         Include unlocked-io.h only if !_LIBC.
27127         [_LIBC]: Include <libio/libioP.h>.
27128         [USE_IN_LIBIO]: Include <libio/iolibio.h>
27129         (fflush): Tweak definition to use INTUSE.
27130         (putc): Define.
27131
27132 2002-12-05  Paul Eggert  <eggert@twinsun.com>
27133
27134         * lib/alloca.c [defined emacs]: Include "lisp.h".
27135         (xalloc_die) [defined emacs]: New macro.
27136         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
27137         [! defined emacs]: Include <xalloc.h>.
27138         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
27139         (pointer): Typedef to POINTER_TYPE *.
27140         (malloc): Remove decl; we now always use xmalloc.
27141         (alloca): Use old-style definition, since Emacs needs this.
27142         Check for arithmetic overflow when computing combined size.
27143
27144 2002-12-04  Paul Eggert  <eggert@twinsun.com>
27145
27146         Do not generate unlocked-io.h automatically, since it's easier to
27147         maintain it by hand.
27148
27149         * lib/unlocked-io.h: New file, from GNU diffutils,
27150         but with proper copyright notice and attribution.
27151         * lib/gen-uio: Remove.
27152         * lib/Makefile.am: Add copyright notice.
27153         (libfetish_a_SOURCES): Add unlocked-io.h.
27154         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
27155         (DISTCLEANFILES, io_functions): Remove macros.
27156         (EXTRA_DIST): Remove gen_uio.
27157         (unlocked-io.h): Remove rule.
27158
27159 2002-12-04  Jim Meyering  <jim@meyering.net>
27160
27161         Reflect the fact that stat.c and lstat.c are no longer generated.
27162         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
27163         (DISTCLEANFILES): Likewise.
27164         (EXTRA_DIST): Likewise.
27165         (all_local): Don't depend on stat.c or lstat.c.
27166         (stat.c, lstat.c): Remove rules.
27167         (EXTRA_DIST): Remove xstat.in.
27168
27169         * lib/xstat.in: Remove file.  Contents moved into stat.c.
27170         * lib/stat.c: New file.  Contents mostly from xstat.in.
27171         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
27172         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
27173
27174         * lib/safe-read.c: Rework so that it may serve to define safe_write,
27175         too.
27176         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
27177
27178 2002-12-03  Jim Meyering  <jim@meyering.net>
27179
27180         * lib/safe-read.c, safe-write.c: Change variable names and comments,
27181         but not semantics, to minimize the differences between these two files.
27182         (safe_read): Change comment to mention SAFE_READ_ERROR.
27183
27184         * lib/safe-read.c (IS_EINTR): Define.
27185         (safe_read): Use IS_EINTR in place of in-function cpp directives.
27186
27187 2002-12-02  Jim Meyering  <jim@meyering.net>
27188
27189         * lib/safe-read.c (EINTR): Define.
27190         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
27191         (INT_MAX): Provide fallback.
27192         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
27193
27194         * lib/safe-read.h (SAFE_READ_ERROR): Define.
27195
27196 2002-12-02  Bruno Haible  <bruno@clisp.org>
27197
27198         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
27199         Define, taken from safe-read.c.
27200         (INT_MAX): Provide fallback.
27201         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
27202         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
27203
27204         * lib/safe-read.c (EINTR): Remove definition.
27205         (safe_read): Don't use EINTR if it is absent.
27206
27207 2002-12-01  Jim Meyering  <jim@meyering.net>
27208
27209         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
27210         zero.
27211         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
27212
27213 2002-11-27  Paul Eggert  <eggert@twinsun.com>
27214
27215         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
27216         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
27217         with `if (! (value < limit)) abort ();', for readability.
27218
27219 2002-11-26  Karl Berry  <karl@gnu.org>
27220
27221         * lib/strdup.c: copy from libc again, with jim's ok.
27222         * lib/.cppi-disable: re-add strdup.c
27223
27224 2002-11-25  Karl Berry  <karl@gnu.org>
27225
27226         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
27227         instead of "strtol.c".
27228
27229 2002-11-25  Karl Berry  <karl@gnu.org>
27230
27231         * config/install-sh: update from automake for variable quoting, $0 in
27232         error msgs, etc.
27233
27234         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
27235         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
27236         entry.
27237
27238 2002-11-25  Jim Meyering  <jim@meyering.net>
27239
27240         * lib/mktime.c: Sync from libc, now that it has the latest fix.
27241
27242 2002-11-24  Karl Berry  <karl@gnu.org>
27243
27244         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
27245         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
27246
27247 2002-11-24  Jim Meyering  <jim@meyering.net>
27248
27249         Update from coreutils:
27250
27251         * lib/mktime.c: Merge in changes from libc.
27252
27253         Avoid a link-time failure on some Linux systems.
27254         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
27255         (otherwise).
27256         (__mon_yday): Declare with the STATIC attribute.
27257         (__mktime_internal): Likewise.
27258         Based on a report from Greg Schafer.
27259
27260 2002-11-23  Jim Meyering  <jim@meyering.net>
27261
27262         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
27263         Use `unsigned', not `int', as type of index.
27264
27265         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
27266
27267         * lib/fsusage.c: Remove unneeded parentheses around operands of
27268         `defined'.
27269
27270 2002-11-22  Paul Eggert  <eggert@twinsun.com>
27271
27272         * lib/quotearg.h: Allow multiple inclusion by surrounding with
27273         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
27274         so that we can be included first.
27275         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
27276         * lib/quotearg.c: Include quotearg.h immediately after config.h.
27277         No need to include stddef.h or sys/types.h any more.
27278         Surround local include files with "", not "<>".
27279         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
27280         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
27281         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
27282         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
27283         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
27284         (ISPRINT): Remove; no longer needed now that we assume C89.
27285
27286         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
27287         Preserve errno.
27288
27289         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
27290         quotearg_char): Use SIZE_MAX rather than
27291         (size_t) -1 when we are talking about "infinity".
27292
27293         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
27294
27295 2002-11-22  Paul Eggert  <eggert@twinsun.com>
27296
27297         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
27298         hint that one should use `if (! x) abort ();' rather than `assert
27299         (x);', and anyway it's one less thing to worry about configuring.
27300         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
27301         hash_rehash, hash_insert): Use abort rather than assert.
27302
27303 2002-11-22  Bruno Haible  <bruno@clisp.org>
27304
27305         * lib/safe-read.h: Assume C89. Add comments.
27306         (safe_read): Change return type to size_t.
27307         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
27308         byte counts > SSIZE_MAX correctly.
27309         * lib/safe-write.h: New file.
27310         * lib/safe-write.c: New file.
27311         * lib/full-read.h: New file.
27312         * lib/full-read.c: New file.
27313         * lib/full-write.h: Assume C89. Add comments.
27314         * lib/full-write.c: Include safe-write.h.
27315         (full_write): Rewritten to use safe_write.
27316         Suggested by Jim Meyering and Paul Eggert.
27317
27318 2002-11-21  Jim Meyering  <jim@meyering.net>
27319
27320         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
27321
27322         Merge in changes from the coreutils.
27323
27324         2002-09-25  Paul Eggert  <eggert@twinsun.com>
27325         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
27326         <stdint.h>.
27327         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
27328         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
27329         int.  Work more efficiently if X is the same width as uintmax_t.
27330         Do not compare X to -1, to avoid bogus compiler warning.
27331         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
27332         Don't assume that f_frsize and f_bsize are the same type.
27333
27334         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
27335         warning on FreeBSD.
27336
27337         * lib/makepath.c (make_path): Restore umask *before* creating the final
27338         component.
27339         (make_path): Minor reformatting.
27340
27341         * lib/xmalloc.c: Adjust to work with new autoconf macros,
27342         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
27343         HAVE_MALLOC/HAVE_REALLOC.
27344
27345         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
27346         dummy ones.  At least on GNU/Linux systems, `auto' means something
27347         else.
27348         From Michael Stone.
27349
27350 2002-11-21  Bruno Haible  <bruno@clisp.org>
27351
27352         Remove case insensitive option matching.
27353         * lib/argmatch.h (argcasematch): Remove declaration.
27354         (ARGCASEMATCH): Remove macro.
27355         (__xargmatch_internal): Remove case_sensitive argument.
27356         (XARGMATCH): Update.
27357         (XARGCASEMATCH): Remove macro.
27358         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
27359         case_sensitive argument.
27360         (argcasematch): Remove function.
27361         (__xargmatch_internal): Remove case_sensitive argument.
27362         (main): Use XARGMATCH instead of XARGCASEMATCH.
27363
27364         * lib/xmalloc.c: Change compile-time error message. Add comment about
27365         required autoconf version.
27366
27367 2002-11-20  Paul Eggert  <eggert@twinsun.com>
27368
27369         Merge argmatch cleanups from Bison.  Assume C89.
27370
27371         * lib/argmatch.c: Include config.h here, not in argmatch.h.
27372         Include stdlib.h, for EXIT_FAILURE.
27373         Always include <string.h>, since we assume C89.
27374         (EXIT_FAILURE): Remove pre-C89 bug workaround.
27375         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
27376         Include <stddef.h> instead, since it's all we need for size_t.
27377         (PARAMS): Remove.  All uses removed.
27378         (ARRAY_CARDINALITY): Do not bother to #undef.
27379         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
27380         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
27381         Remove unnecessary parentheses.
27382         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
27383         Insert necessary parentheses.
27384         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
27385         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
27386
27387 2002-11-19  Bruno Haible  <bruno@clisp.org>
27388
27389         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
27390         * lib/mbswidth.h: Include <stddef.h>, for size_t.
27391
27392         * lib/mbswidth.h (PARAMS): Remove macro.
27393         (mbswidth, mbsnwidth): Use ANSI C function declarations.
27394         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
27395
27396         * lib/gcd.h (PARAMS): Remove macro.
27397         (gcd): Use ANSI C function declarations.
27398         * lib/gcd.c (gcd): Likewise.
27399
27400 2002-11-15  Bruno Haible  <bruno@clisp.org>
27401
27402         * lib/strcspn.c: Include <stddef.h>.
27403         (strcspn): Use ANSI C function declaration. Change return type to
27404         size_t. Use NULL.
27405         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
27406         (strpbrk): Use NULL.
27407         * lib/strpbrk.h (PARAMS): Remove macro.
27408         (strpbrk): Use ANSI C function declaration.
27409         * lib/strstr.c: Don't include <sys/types.h>.
27410         * lib/strstr.h (PARAMS): Remove macro.
27411         (strstr): Use ANSI C function declarations.
27412
27413 2002-11-14  Karl Berry  <karl@gnu.org>
27414
27415         * config/mkinstalldirs: `do' on separate line, instead of
27416         `for var; do'.
27417
27418 2002-11-06  Bruno Haible  <bruno@clisp.org>
27419
27420         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
27421         * lib/gcd.c (gcd): Likewise.
27422
27423 2002-11-05  Bruno Haible  <bruno@clisp.org>
27424
27425         * lib/gcd.h: New file, from gettext-0.11.5.
27426         * lib/gcd.c: New file, from gettext-0.11.5.
27427
27428 2002-11-05  Bruno Haible  <bruno@clisp.org>
27429
27430         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
27431         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
27432         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
27433         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
27434
27435         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
27436         <libintl.h>.
27437         * lib/makepath.c: Include gettext.h instead of <locale.h> and
27438         <libintl.h>.
27439
27440         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
27441         * lib/human.c: Include gettext.h instead of <libintl.h>.
27442         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
27443         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
27444         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
27445         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
27446         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
27447         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
27448         (textdomain): Remove definition.
27449         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
27450
27451         * lib/long-options.c: Remove include of <libintl.h> and definition of
27452         _.
27453         * lib/same.c: Remove include of <libintl.h> and definition of _.
27454
27455 2002-11-04  Owen Taylor  <otaylor@redhat.com>
27456
27457         * lib/config.charset: A few additions for Solaris.
27458
27459 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
27460
27461         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
27462         * lib/localcharset.c (locale_charset): Declare as extern "C".
27463
27464 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
27465
27466         * lib/config.charset: msdos in uk_UA uses CP1125.
27467
27468 2002-11-04  Bruno Haible  <bruno@clisp.org>
27469
27470         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
27471         * lib/strcase.h: New file, from GNU gettext-0.11.5.
27472         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
27473         * lib/strstr.h: New file, from GNU gettext-0.11.5.
27474         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
27475
27476 2002-11-04  Bruno Haible  <bruno@clisp.org>
27477
27478         * lib/localcharset.c (locale_charset): Don't return an empty string.
27479
27480 2002-11-04  Bruno Haible  <bruno@clisp.org>
27481
27482         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
27483         aliases.
27484
27485 2002-11-04  Bruno Haible  <bruno@clisp.org>
27486
27487         * lib/config.charset: Update for newest glibc. Add canonical names
27488         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
27489
27490 2002-11-04  Bruno Haible  <bruno@clisp.org>
27491
27492         * lib/config.charset: Add support for NetBSD.
27493
27494 2002-11-04  Bruno Haible  <bruno@clisp.org>
27495
27496         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
27497
27498 2002-11-01  Bruno Haible  <bruno@clisp.org>
27499
27500         * configure.in: Add AC_CONFIG_AUX_DIR call.
27501         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
27502         test/Makefile.
27503         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
27504
27505 2002-09-28  Karl Berry  <karl@gnu.org>
27506
27507         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
27508         installed automake until the next release, since changes have been
27509         made.
27510
27511 2002-09-25  Karl Berry  <karl@gnu.org>
27512
27513         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
27514         * lib/getopt*: copy from libc/posix.
27515         * lib/gettext.h: copy from gettext.
27516         * lib/.cppi-disable: add strdup.c, gettext.h.
27517
27518 2002-09-25  Karl Berry  <karl@gnu.org>
27519
27520         * config/srclist.txt: enable gettext.h check.
27521         * config/config.{guess,sub}: update from prep.
27522         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
27523                 from automake 1.6.3.
27524         See srclist*.
27525
27526 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
27527
27528         * regex.c (PATFETCH): Remove the translating fetch.
27529         (PATFETCH_RAW): Rename to PATFETCH.
27530         (set_image_of_range): New fun.
27531         (SET_RANGE_TABLE_WORK_AREA): Use it.
27532         (regex_compile): Don't translate the pattern chars so eagerly.
27533         Only do it when inserting an `exactn' bytecode or when handling
27534         a char-range.
27535         (mutually_exclusive_p): Avoid empty statement.
27536
27537 2002-07-06  Jim Meyering  <meyering@lucent.com>
27538
27539         * m4/README: Don't mention Makefile.am.in.
27540         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
27541
27542 2002-07-01  Jim Meyering  <meyering@lucent.com>
27543
27544         * lib/c-stack.c: Include sys/time.h.
27545         From Volker Borchert.
27546
27547 2002-06-26  Paul Eggert  <eggert@twinsun.com>
27548
27549         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
27550
27551 2002-06-26  Paul Eggert  <eggert@twinsun.com>
27552
27553         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
27554         New macro.  Use it uniformly instead of
27555         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
27556         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
27557         reported by Vin Shelton.
27558
27559 2002-06-22  Paul Eggert  <eggert@twinsun.com>
27560
27561         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
27562         Do not assume SA_SIGINFO behavior.
27563         Bug reported by Jim Meyering on NetBSD 1.5.2.
27564
27565 2002-06-22  Jim Meyering  <meyering@lucent.com>
27566
27567         * m4/c-stack.m4: New file, from diffutils-2.8.2.
27568         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
27569
27570         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
27571         now that configure.ac uses AC_GNU_SOURCE.
27572         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
27573         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
27574
27575         Update to latest tools.  Suggestions from Paul Eggert.
27576         * m4/stdbool.m4: New file, from diffutils-2.8.2.
27577         * m4/gnu-source.m4: Update from diffutils-2.8.2.
27578         * m4/fnmatch.m4: Likewise.
27579         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
27580         to AC_HEADER_STDBOOL
27581
27582 2002-06-22  Jim Meyering  <meyering@lucent.com>
27583
27584         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
27585         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
27586
27587 2002-06-22  Jim Meyering  <meyering@lucent.com>
27588
27589         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
27590
27591         * lib/exitfail.c, exitfail.h: Likewise.
27592         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
27593
27594         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
27595         of fnmatch.h.
27596         (EXTRA_DIST): Add fnmatch_loop.c.
27597         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
27598
27599         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
27600         * lib/fnmatch.c: Update from diffutils-2.8.2.
27601         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
27602         * lib/fnmatch.h: Remove file.
27603
27604 2002-06-21  Jim Meyering  <meyering@lucent.com>
27605
27606         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
27607         * m4/mbrtowc.m4: Likewise.
27608
27609         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
27610         * m4/mbswidth.m4: Reflect name change:
27611         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
27612         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
27613
27614         * m4/lib-link.m4: Update from gettext-0.11.2.
27615         * m4/gettext.m4: Likewise.
27616
27617         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
27618         From Alfred M. Szmidt.
27619
27620 2002-06-18  Paul Eggert  <eggert@twinsun.com>
27621
27622         * lib/file-type.h: Report an error if neither S_ISREG nor
27623         S_IFREG is defined, instead of using a test specific to glibc
27624         2.2.  This should be safe, since POSIX requires S_ISREG and
27625         Unix Version 7 had S_IFREG.  We don't need to check for
27626         <sys/types.h> since we don't use any symbols that it defines.
27627
27628 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
27629
27630         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
27631         $@-t, so that each temporary file name is unique and valid in the first
27632         8 characters, for operation under DOS.
27633
27634 2002-06-15  Paul Eggert  <eggert@twinsun.com>
27635
27636         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
27637
27638 2002-06-15  Jim Meyering  <meyering@lucent.com>
27639
27640         Work even with DJGPP 2.03, which lacks support for symlinks.
27641         From Richard Dawe.
27642         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
27643         is defined.
27644         * lib/lchown.c (S_ISLNK): Likewise.
27645
27646 2002-06-15  Jim Meyering  <meyering@lucent.com>
27647
27648         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
27649         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
27650         have been included before this file.
27651
27652 2002-06-14  Jim Meyering  <meyering@lucent.com>
27653
27654         * lib/file-type.h: Use the version from diffutils-2.8.2.
27655         * lib/file-type.c: Likewise.
27656
27657 2002-06-07  Jim Meyering  <meyering@lucent.com>
27658
27659         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
27660         They're needed at least for NetBSD 1.5.2.
27661         ($statxfs_includes): Include those same headers.
27662         ($statxfs_includes): Include sys/vfs.h if available.
27663         ($statxfs_includes): Likewise for sys/statvfs.h.
27664         Check for the following members in both structs statfs and statvfs:
27665         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
27666
27667 2002-06-01  Jim Meyering  <meyering@lucent.com>
27668
27669         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
27670         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
27671
27672 2002-05-28  Jim Meyering  <meyering@lucent.com>
27673
27674         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
27675         Reported by Volker Borchert.
27676
27677 2002-05-27  Jim Meyering  <meyering@lucent.com>
27678
27679         Fix a problem seen only on nonconforming systems whereby ls.c's
27680         use of localtime, and then of gettimeofday would cause trouble:
27681         the localtime call used to initialize rpl_gettimeofday's save
27682         mechanism would clobber ls's current local time information so
27683         that in any long listing the first file would always be listed
27684         with date 1970-01-01.  Analysis by Volker Borchert.
27685
27686         * lib/gettimeofday.c (localtime): Undefine.
27687         (rpl_localtime): New function.
27688
27689 2002-05-27  Jim Meyering  <meyering@lucent.com>
27690
27691         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
27692         localtime.
27693
27694         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
27695         use the replacement function; it wouldn't resolve at link time.
27696         Reported by Volker Borchert.
27697
27698 2002-05-22  Jim Meyering  <meyering@lucent.com>
27699
27700         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
27701         file-type.h.
27702         * lib/file-type.h: New file.
27703         * lib/file-type.c (file_type): New file/function.  Extracted from
27704         diffutils.
27705
27706 2002-04-30  Jim Meyering  <meyering@lucent.com>
27707
27708         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
27709
27710 2002-04-29  Paul Eggert  <eggert@twinsun.com>
27711
27712         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
27713
27714 2002-04-29  Paul Eggert  <eggert@twinsun.com>
27715
27716         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
27717         Do not check for alloca.h (no longer used) or stdbool.h (was never
27718         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
27719
27720 2002-04-29  Paul Eggert  <eggert@twinsun.com>
27721
27722         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
27723
27724 2002-04-29  Jim Meyering  <meyering@lucent.com>
27725
27726         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
27727         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
27728         Use AC_FUNC_STRNLEN here instead.
27729
27730         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
27731         With autoconf-2.53a, it's part of AC_PROG_CC.
27732
27733 2002-04-28  Paul Eggert  <eggert@twinsun.com>
27734
27735         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
27736         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
27737
27738 2002-04-28  Paul Eggert  <eggert@twinsun.com>
27739
27740         * lib/sig2str.h, lib/sig2str.c: New files.
27741         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
27742
27743 2002-04-28  Paul Eggert  <eggert@twinsun.com>
27744
27745         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
27746         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
27747         of 127, since 64 is the largest conceivable number for ancient
27748         nonstandard hosts.
27749         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
27750
27751 2002-04-28  Jim Meyering  <meyering@lucent.com>
27752
27753         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
27754
27755 2002-04-24  Jim Meyering  <meyering@lucent.com>
27756
27757         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
27758         (jm_PREREQ): Use it.
27759
27760         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
27761         mach/mach.h fcntl.h.
27762         Check for this function: setlocale.
27763
27764 2002-04-24  Jim Meyering  <meyering@lucent.com>
27765
27766         * lib/gettext.h: New file, from Gettext.
27767         * lib/Makefile.am (INCLUDES): Remove -I../intl.
27768         (libfetish_a_SOURCES): Add gettext.h.
27769
27770 2002-04-16  Jim Meyering  <meyering@lucent.com>
27771
27772         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
27773         ut_pid, ut_id, ut_exit.
27774
27775 2002-04-16  Jim Meyering  <meyering@lucent.com>
27776
27777         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
27778         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
27779         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
27780
27781 2002-04-12  Jim Meyering  <meyering@lucent.com>
27782
27783         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
27784         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
27785         existence of the getmntinfo function.  Needed for Darwin 5.3.
27786
27787         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
27788         This is necessary at least on Darwin 5.3.
27789
27790         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
27791         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
27792         strnlen.o in the library, and that makes some versions of ranlib
27793         object.
27794
27795 2002-04-12  Jim Meyering  <meyering@lucent.com>
27796
27797         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
27798
27799 2002-04-09  Jim Meyering  <meyering@lucent.com>
27800
27801         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
27802         to be more precise.  Rather than saying we're checking whether the
27803         function `works', say what we're testing.
27804         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
27805         Reported by Bruno Haible.
27806
27807 2002-03-10  Jim Meyering  <meyering@lucent.com>
27808
27809         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
27810         Suggestion from Santiago Vila.
27811
27812 2002-03-08  Jim Meyering  <meyering@lucent.com>
27813
27814         * lib/rename.c: Mention that this wrapper is needed also on
27815         mips-dec-ultrix4.4 systems.
27816
27817 2002-03-02  Jim Meyering  <meyering@lucent.com>
27818
27819         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
27820         not HAVE_CLOCK_SETTIME.
27821
27822 2002-02-27  Paul Eggert  <eggert@twinsun.com>
27823
27824         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
27825         Check for clock_settime.
27826
27827 2002-02-27  Paul Eggert  <eggert@twinsun.com>
27828
27829         * lib/nanosleep.h: Rename to....
27830         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
27831
27832         * lib/gettime.c: New file.
27833         * lib/settime.c: New file.
27834         * lib/stime.c: Remove.
27835
27836         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
27837         timespec.h.  Remove nanosleep.h.
27838
27839 2002-02-25  Paul Eggert  <eggert@twinsun.com>
27840
27841         * m4/acl.m4: New file.
27842         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
27843         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
27844
27845 2002-02-25  Paul Eggert  <eggert@twinsun.com>
27846
27847         * lib/acl.c, lib/acl.h: New files.
27848         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
27849
27850 2002-02-24  Jim Meyering  <meyering@lucent.com>
27851
27852         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
27853         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
27854         cause trouble.  Reported by Nelson Beebe.
27855
27856 2002-02-23  Paul Eggert  <eggert@twinsun.com>
27857
27858         * lib/path-concat.c (xpath_concat): Reorder code to pacify
27859         compilers that don't know that xalloc_die never returns.
27860
27861 2002-02-20  Jim Meyering  <meyering@lucent.com>
27862
27863         * lib/getdate.c: Regenerate using bison-1.33.
27864
27865 2002-02-17  Jim Meyering  <meyering@lucent.com>
27866
27867         * config/config.guess (main): Don't use `head -1'; it's no longer
27868         portable. Use `sed 1q' instead.
27869
27870 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
27871
27872         * m4/codeset.m4: Upgrade to gettext-0.11.
27873         * m4/gettext.m4: Upgrade to gettext-0.11.
27874         * m4/glibc21.m4: Upgrade to gettext-0.11.
27875         * m4/iconv.m4: Upgrade to gettext-0.11.
27876         * m4/isc-posix.m4: Upgrade to gettext-0.11.
27877         * m4/lcmessage.m4: Upgrade to gettext-0.11.
27878         * m4/lib-ld.m4: New file, from gettext-0.11.
27879         * m4/lib-link.m4: New file, from gettext-0.11.
27880         * m4/lib-prefix.m4: New file, from gettext-0.11.
27881         * m4/progtest.m4: Upgrade to gettext-0.11.
27882
27883 2002-02-15  Paul Eggert  <eggert@twinsun.com>
27884
27885         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
27886         (jm_PREREQ): Use it.
27887
27888 2002-02-15  Paul Eggert  <eggert@twinsun.com>
27889
27890         * lib/posixver.c, lib/posixver.h: New files.
27891         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
27892
27893 2002-02-02  Paul Eggert  <eggert@twinsun.com>
27894             Bruno Haible  <bruno@clisp.org>
27895
27896         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
27897         (fwrite_success_callback): New declaration.
27898         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
27899         print_unicode_char. Call failure callback instead of error.
27900         (fwrite_success_callback): New function.
27901         (exit_failure_callback): New function.
27902         (fallback_failure_callback): New function.
27903         (print_unicode_char): Call unicode_to_mb.
27904
27905 2002-01-26  Jim Meyering  <meyering@lucent.com>
27906
27907         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
27908         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
27909
27910 2002-01-26  Jim Meyering  <meyering@lucent.com>
27911
27912         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
27913
27914 2002-01-22  Paul Eggert  <eggert@twinsun.com>
27915
27916         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
27917
27918 2002-01-22  Jim Meyering  <meyering@lucent.com>
27919
27920         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
27921         Otherwise, some versions of automake would omit the rule that makes
27922         Makefile from Makefile.in.
27923
27924 2002-01-21  Paul Eggert  <eggert@twinsun.com>
27925
27926         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
27927         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
27928         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
27929         (memcoll): Set errno to zero if there is no error.
27930
27931         * lib/quotearg.c (quotearg_buffer_restyled):
27932         Fix bug with quoting buffers containing NUL when backslashing escapes.
27933         This bug was exposed by the other changes in this patch.
27934         (quotearg_n_options): New arg ARGSIZE.
27935         All callers changed.
27936         (quoting_options_from_style): New function.
27937         (quotearg_n_style): Use it.
27938         (quotearg_n_style_mem): New function.
27939
27940         * lib/quotearg.h (quotearg_n_style_mem): New function.
27941
27942 2002-01-19  Jim Meyering  <meyering@lucent.com>
27943
27944         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
27945         Remove useless quotes: DF_PROG="df".
27946         * m4/strnlen.m4: New file.
27947
27948 2002-01-16  Paul Eggert  <eggert@twinsun.com>
27949
27950         * lib/backupfile.c (ISDIGIT): Comment fix.
27951         * lib/getdate.y (ISDIGIT): Likewise.
27952         * lib/posixtm.c (ISDIGIT, year): Likewise.
27953         * lib/strverscmp.c (ISDIGIT): Likewise.
27954         * lib/userspec.c (ISDIGIT): Likewise.
27955
27956 2002-01-16  Jim Meyering  <meyering@lucent.com>
27957
27958         * lib/getdate.y: Add three semicolons, each just before a closing
27959         brace. Bison (as of version 1.31) no longer papers over that mistake.
27960
27961 2002-01-05  Jim Meyering  <meyering@lucent.com>
27962
27963         * lib/version-etc.c (version_etc_copyright): Update copyright year.
27964
27965 2001-12-19  Paul Eggert  <eggert@twinsun.com>
27966
27967         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
27968         not silently exit merely because the output buffer happens to
27969         have nothing pending.
27970
27971 2001-12-18  Paul Eggert  <eggert@twinsun.com>
27972
27973         See the big note in ../ChangeLog.
27974         * lib/human.c (suffixes): Prefer K to k for 1024.
27975         (generate_suffix_backwards): New function.
27976         (human_readable_inexact): Use it.
27977         * lib/xstrtol.c (__xstrtol): If there is no number but there
27978         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
27979         Accept 'K' as well as 'k'.
27980
27981 2001-12-15  Jim Meyering  <meyering@lucent.com>
27982
27983         * lib/regex.h (__restrict_arr): Update from libc.
27984
27985         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
27986         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
27987         (STREQ): Define.
27988
27989 2001-12-14  Jim Meyering  <meyering@lucent.com>
27990
27991         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
27992         Suggestion from Bruno Haible.
27993
27994 2001-12-10  Jim Meyering  <meyering@lucent.com>
27995
27996         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
27997         xrealloc, Instead, include "xalloc.h".
27998         (initbuffer): Don't cast xmalloc return value to char*.
27999         (readline): Reword comment.
28000         Don't cast xrealloc return value to char*
28001         Return NULL, not 0.
28002
28003 2001-12-09  Jim Meyering  <meyering@lucent.com>
28004
28005         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
28006         about `signed and unsigned type in conditional expression'.
28007         * lib/posixtm.c (posix_time_parse): Likewise.
28008
28009         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
28010
28011         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
28012         to avoid a pedantic warning.
28013
28014         * lib/getstr.c: Don't include assert.h.
28015         (getstr): Remove warning-evoking assertions.
28016         Return -1 if offset parameter is out of bounds.
28017         Change the type of a local from int to size_t.
28018
28019         * lib/strftime.c (my_strftime_localtime_r): Include this function
28020         definition in the `#if ! HAVE_TM_GMTOFF' block.
28021
28022         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
28023         Include xalloc.h instead.
28024
28025 2001-12-02  Jim Meyering  <meyering@lucent.com>
28026
28027         * lib/tempname.c: Don't declare getenv, thus reverting the change of
28028         2001-11-18.  It's no longer necessary, now that stdlib.h is always
28029         included.
28030
28031         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
28032         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
28033
28034 2001-11-30  Akim Demaille  <akim@epita.fr>
28035
28036         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
28037         before being defined.
28038
28039 2001-11-27  Paul Eggert  <eggert@twinsun.com>
28040
28041         * lib/quotearg.h (quotearg_n, quotearg_n_style):
28042         First arg is int, not unsigned.
28043         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
28044         (SIZE_MAX, UINT_MAX): New macros.
28045         (quotearg_n_options): Abort if N is negative.
28046         Avoid overflow check on hosts where size_t is 64 bits and int
28047         is 32 bits, as overflow is impossible there.
28048         Fix off-by-one typo that caused unnecessary reallocation.
28049
28050 2001-11-27  Jim Meyering  <meyering@lucent.com>
28051
28052         * lib/tempname.c: Merge with version from libc.
28053         * lib/regex.c: Likewise.
28054
28055         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
28056         systems for which STDC_HEADERS is 0, it was not included, resulting in
28057         a warning about an integer-to-pointer conversion problem with getenv.
28058         Reported by Volker Borchert.
28059
28060 2001-11-26  Jim Meyering  <meyering@lucent.com>
28061
28062         * lib/gtod.h: Remove file.
28063         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
28064         * lib/gettimeofday.c: Don't include gtod.h.
28065         (GTOD_init): Remove function.
28066         (rpl_gettimeofday): Do its job here instead, rather than aborting.
28067         Suggestion from Volker Borchert.
28068
28069 2001-11-23  Jim Meyering  <meyering@lucent.com>
28070
28071         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
28072         it.
28073         * lib/hash.c (struct hash_table): Define it here instead.
28074
28075 2001-11-22  Jim Meyering  <meyering@lucent.com>
28076
28077         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
28078
28079 2001-11-20  Jim Meyering  <meyering@lucent.com>
28080
28081         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
28082         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
28083
28084 2001-11-19  Jim Meyering  <meyering@lucent.com>
28085
28086         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
28087         directory.  Use "conftestXXXXXX" as the template.
28088         Suggestion from Paul Eggert.
28089
28090         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
28091         immediately, so the test doesn't mistakenly hit the max-open-files
28092         limit.
28093
28094 2001-11-18  Paul Eggert  <eggert@twinsun.com>
28095
28096         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
28097         (TEMPORARIES): New macro.
28098         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
28099         removes an artificial limitation (e.g. HP-UX 10.20, where
28100         TMP_MAX is 17576).
28101
28102 2001-11-18  Jim Meyering  <meyering@lucent.com>
28103
28104         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
28105
28106 2001-11-18  Jim Meyering  <meyering@lucent.com>
28107
28108         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
28109         on SunOS 4.
28110
28111         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
28112         files will be created before anything else.
28113
28114 2001-11-17  Paul Eggert  <eggert@twinsun.com>
28115
28116         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
28117         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
28118
28119 2001-11-17  Jim Meyering  <meyering@lucent.com>
28120
28121         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
28122         Prompted by a report from Bob Proulx.
28123
28124         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
28125         Instead, require UTILS_FUNC_MKSTEMP.
28126
28127 2001-11-17  Jim Meyering  <meyering@lucent.com>
28128
28129         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
28130         Now, that's done as part of AC_FUNC_STRTOD.
28131
28132 2001-11-17  Jim Meyering  <meyering@lucent.com>
28133
28134         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
28135         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
28136         rather than group writable.  Patch by Juan F. Codagnone.
28137
28138         * lib/readtokens.c: Remove explicit declarations of xmalloc and
28139         xrealloc, Instead, include "xalloc.h".
28140
28141         * lib/mountlist.c: Include unlocked-io.h after all system headers.
28142         Remove explicit declarations of xmalloc, xrealloc,
28143         and xstrdup.  Instead, include "xalloc.h".
28144
28145         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
28146         unlocked-io.h.
28147         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
28148         Likewise.
28149         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
28150
28151         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
28152         Reported by Padraig Brady.
28153
28154         * lib/mkstemp.c: #undef mkstemp.
28155         Include config.h.
28156         (rpl_mkstemp): Rename from mkstemp.
28157         Protoize.
28158
28159 2001-11-16  Jim Meyering  <meyering@lucent.com>
28160
28161         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
28162         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
28163         determine the amount of total physical memory, use pstat_getstatic.
28164         HPUX-11 doesn't define _SC_PHYS_PAGES.
28165         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
28166         If sysconf couldn't be used to determine the amount of available
28167         physical memory, use both pstat_getstatic and pstat_getdynamic.
28168         Based on a patch from Bob Proulx.
28169
28170 2001-11-10  Jim Meyering  <meyering@lucent.com>
28171
28172         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
28173         (jm_PREREQ): Use it.
28174
28175 2001-11-09  Jim Meyering  <meyering@lucent.com>
28176
28177         * m4/jm-macros.m4: Require autoconf-2.52f.
28178         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
28179         Use these AC_-prefixed names, not the AM_-prefixed ones.
28180
28181         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
28182
28183 2001-11-05  Jim Meyering  <meyering@lucent.com>
28184
28185         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
28186
28187 2001-11-04  Jim Meyering  <meyering@lucent.com>
28188
28189         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
28190         $DEFS.
28191
28192 2001-11-03  Jim Meyering  <meyering@lucent.com>
28193
28194         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
28195         of AC_DEFUN.
28196
28197         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
28198         know the name of the variable in the macro definition.
28199
28200 2001-11-03  Jim Meyering  <meyering@lucent.com>
28201
28202         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
28203         in argmatch_to_argument call.
28204
28205         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
28206         argument.
28207
28208         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
28209         e.g., a fault due to an attempt to free a NULL pointer.
28210
28211 2001-11-01  Jim Meyering  <meyering@lucent.com>
28212
28213         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
28214         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
28215
28216 2001-11-01  Jim Meyering  <meyering@lucent.com>
28217
28218         * lib/dirfd.c, lib/dirfd.h: New files.
28219         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
28220
28221         * lib/hash.c (hash_print) [TESTING]: Clean up.
28222
28223 2001-10-22  Paul Eggert  <eggert@twinsun.com>
28224
28225         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
28226         to avoid a warning if -Wall.
28227
28228 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
28229
28230         * README: New file
28231         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
28232         (per RMS's instructions, this is now the canonical source)
28233         * lgpl/, gpl/: New directories.
28234
28235 2001-10-21  Paul Eggert  <eggert@twinsun.com>
28236
28237         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
28238
28239 2001-10-21  Jim Meyering  <meyering@lucent.com>
28240
28241         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
28242         this code would end up calling gettext even in packages built
28243         with --disable-nls.
28244         * lib/getopt.c (_): Likewise.
28245         * lib/regex.c (_): Likewise.
28246
28247 2001-10-20  Paul Eggert  <eggert@twinsun.com>
28248
28249         * m4/error.m4 (jm_PREREQ_ERROR):
28250         Do not invoke AC_CHECK_FUNCS with strerror_r, as
28251         AC_FUNC_STRERROR_R does that.
28252         Check for strerror declaration.
28253
28254         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
28255         are supposed to have them these days.
28256         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
28257         Merge changes from latest Autoconf CVS.
28258         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
28259         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
28260         POSIX decided to standardize on the int flavor of strerror_r.
28261
28262 2001-10-20  Paul Eggert  <eggert@twinsun.com>
28263
28264         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
28265         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
28266         Use strerror_r that is only a macro, even if it is not a function.
28267         (strerror): Check for HAVE_DECL_STRERROR before declaring.
28268         (private_strerror): Use prototypes, not old-style function definition.
28269         (print_errno_message): New function.
28270         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
28271         char*-flavored one.
28272         (error_tail, error, error_at_line): Use it.
28273
28274 2001-10-11  Jim Meyering  <meyering@lucent.com>
28275
28276         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
28277         and quote_n (1, ... to avoid clobbering a buffer.
28278
28279 2001-10-05  Jim Meyering  <meyering@lucent.com>
28280
28281         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
28282         hash-pjw.h.
28283         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
28284         * lib/hash-pjw.h: New file.
28285
28286 2001-09-30  Jim Meyering  <meyering@lucent.com>
28287
28288         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
28289         `struct fsstat' has the `f_fstypename' member.
28290         Use that to define FS_TYPE, which is now used to make
28291         the getfsstat link test tighter.
28292
28293 2001-09-30  Jim Meyering  <meyering@lucent.com>
28294
28295         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
28296         Include <sys/ucred.h>, for Apple Darwin.
28297         Include sys/mount.h and sys/fs_types.h only if available.
28298         (FS_TYPE): Define.
28299         (read_filesystem_list): Use FS_TYPE.
28300
28301 2001-09-29  Paul Eggert  <eggert@twinsun.com>
28302
28303         * lib/exclude.c (excluded_filename): 0 -> false, since it's
28304         a boolean context.
28305
28306 2001-09-29  Jim Meyering  <meyering@lucent.com>
28307
28308         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
28309         [one-argument getmntent function]): Include stdio.h before mntent.h.
28310         SunOS 4.1.x needs it for the declaration of `FILE'.
28311         Patch by Volker Borchert.
28312
28313         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
28314         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
28315         sys/fs_types.h, and make the link-test for getfsstat guard #include
28316         directives with appropriate #if HAVE_*_H tests so that we can
28317         detect getfsstat on Apple Darwin1.3.7 systems.
28318         Reported by Nelson Beebe.
28319         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
28320
28321 2001-09-28  Paul Eggert  <eggert@twinsun.com>
28322
28323         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
28324         #defines strtoimax.  Also treat the other strto* functions
28325         like strtoimax.
28326
28327         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
28328         Check for strtoul and strtoumax,
28329         as those declarations are made even in the signed case.
28330         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
28331         Likewise, for strtol and strtoimax.
28332
28333 2001-09-28  Paul Eggert  <eggert@twinsun.com>
28334
28335         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
28336         #defines strtoimax.  Also treat the other strto* functions
28337         like strtoimax.
28338
28339         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
28340         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
28341         (strtoimax, strtoumax): Do not declare if already defined as a macro.
28342
28343 2001-09-26  Jim Meyering  <meyering@lucent.com>
28344
28345         Most macros in unlocked-io.h had the wrong number of arguments.
28346         * lib/gen-uio: New script.
28347         (USE_UNLOCKED_IO): Define to 1 if not already defined.
28348         * lib/unlocked-io.hin: Remove file.
28349         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
28350         rather than trying to embed it here.
28351         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
28352         Reported by Padraig Brady.
28353
28354 2001-09-25  Volker Borchert  <bt@teknon.de>
28355
28356         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
28357         `result'.
28358
28359 2001-09-24  Jim Meyering  <meyering@lucent.com>
28360
28361         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
28362
28363 2001-09-23  Jim Meyering  <meyering@lucent.com>
28364
28365         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
28366         instead of the mere test for existence of mntent.h.  The latter
28367         would get a false-positive on AIX 3.4 systems.
28368         In the outer getmntent if-block, don't die if neither of the getmntent
28369         tests succeeds.  Instead, just fall through and continue with the
28370         remaining tests.
28371
28372 2001-09-23  Jim Meyering  <meyering@lucent.com>
28373
28374         * lib/mountlist.c: Remove useless parentheses in #if directives.
28375         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
28376         the deprecated MOUNTED symbol is no longer defined in mntent.h.
28377
28378 2001-09-22  Jim Meyering  <meyering@lucent.com>
28379
28380         * m4/gettext.m4: New file.  From gettext.
28381         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
28382         * m4/progtest.m4: Likewise
28383         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
28384         * m4/glibc21.m4: Likewise.
28385
28386         * m4/libintl.m4: Remove.  No longer used.
28387
28388 2001-09-22  Jim Meyering  <meyering@lucent.com>
28389
28390         * lib/localcharset.c: Update from latest gettext.
28391         * lib/config.charset: Likewise.
28392
28393 2001-09-20  Jim Meyering  <meyering@lucent.com>
28394
28395         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
28396         strtoimax.
28397         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
28398         strtoumax.
28399
28400 2001-09-20  Jim Meyering  <meyering@lucent.com>
28401
28402         * lib/xstrtol.c (strtoimax): Guard declaration with
28403         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
28404         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
28405         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
28406         (strtoumax): Likewise, for completeness (it wasn't necessary).
28407
28408 2001-09-17  Paul Eggert  <eggert@twinsun.com>
28409
28410         * lib/strtoimax.c (HAVE_LONG_LONG):
28411         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
28412         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
28413         to work around bug in IBM C compiler.
28414
28415 2001-09-17  Jim Meyering  <meyering@lucent.com>
28416
28417         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
28418         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
28419         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
28420         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
28421         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
28422         whenever the right hand side need not be expanded by the shell.
28423
28424 2001-09-16  Paul Eggert  <eggert@twinsun.com>
28425
28426         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
28427         library.  It's not correct, as some older glibcs are buggy.
28428         fnmatch wasn't fixed until glibc 2.2.
28429
28430         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
28431         special shell magic here.
28432
28433 2001-09-16  Jim Meyering  <meyering@lucent.com>
28434
28435         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
28436         * m4/jm-macros.m4: Require it.
28437
28438 2001-09-16  Jim Meyering  <meyering@lucent.com>
28439
28440         * lib/mkdir.c: New file.
28441
28442 2001-09-15  Jim Meyering  <meyering@lucent.com>
28443
28444         * m4/jm-macros.m4: Check for help2man.
28445
28446 2001-09-11  Jim Meyering  <meyering@lucent.com>
28447
28448         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
28449         The body, by Paul Eggert, was moved here from configure.in.
28450         * m4/jm-macros.m4: Require UTILS_HOST_OS.
28451
28452 2001-09-04  Paul Eggert  <eggert@twinsun.com>
28453
28454         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
28455         (jm_PREREQ): Use it.
28456
28457 2001-09-04  Paul Eggert  <eggert@twinsun.com>
28458
28459         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
28460         Use ssize_t, not int, to store result of readlink.
28461         Check for ssize_t overflow as well as size_t overflow,
28462         as POSIX says the result of readlink is implementation-defined
28463         when ssize_t overflows.
28464         Remove unnecessary cast to char*.
28465         Use free+malloc instead of realloc, as the storage doesn't need
28466         to be preserved and it's clearer and can be more efficient that way.
28467         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
28468         * lib/xreadlink.h (xreadlink): Update prototype.
28469
28470 2001-09-04  Paul Eggert  <eggert@twinsun.com>
28471
28472         * lib/xgetcwd.c: Revert some of the previous change; intead,
28473         fix the HAVE_GETCWD_NULL code to behave more like the
28474         !HAVE_GETCWD_NULL code used to.
28475
28476         Include "xalloc.h".
28477         (xgetcwd): Do not return NULL when memory is exhausted; instead,
28478         invoke xalloc_die.
28479
28480 2001-09-03  Paul Eggert  <eggert@twinsun.com>
28481
28482         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
28483         sys/param.h, as pathmax.h includes them.
28484
28485 2001-09-03  Paul Eggert  <eggert@twinsun.com>
28486
28487         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
28488         (jm_PREREQ_XGETCWD): New macro.
28489
28490         * m4/getcwd.m4: New file.
28491
28492 2001-09-03  Paul Eggert  <eggert@twinsun.com>
28493
28494         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
28495         like the HAVE_GETCWD_NULL code.
28496         Include pathmax.h if not HAVE_GETCWD.
28497         Do not include xalloc.h.
28498         (INITIAL_BUFFER_SIZE): New symbol.
28499         Do not use xmalloc / xrealloc, since the caller is responsible for
28500         handling errors.  Preserve errno around `free' during failure.
28501         Do not overrun buffer when using getwd.
28502
28503 2001-09-03  Paul Eggert  <eggert@twinsun.com>
28504
28505         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
28506         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
28507         getcwd (NULL, 0).
28508
28509 2001-09-03  Paul Eggert  <eggert@twinsun.com>
28510
28511         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
28512         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
28513         spotted by Jim Meyering.
28514
28515 2001-09-03  Jim Meyering  <meyering@lucent.com>
28516
28517         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
28518         failure.
28519
28520 2001-09-02  Jim Meyering  <meyering@lucent.com>
28521
28522         * lib/error.c: Update from GNU libc.
28523
28524 2001-09-01  Jim Meyering  <meyering@lucent.com>
28525
28526         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
28527         Used by df.
28528
28529 2001-09-01  Jim Meyering  <meyering@lucent.com>
28530
28531         * lib/xreadlink.c: New file.
28532         * lib/xreadlink.h: New file.
28533         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
28534         xreadlink.h.
28535
28536         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
28537         doesn't conflict with sparc Solaris 7's definition in
28538         /usr/include/sys/int_types.h.
28539
28540         * lib/exclude.c: Use `""', not `<>' to #include non-system header
28541         files.
28542         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
28543         and strncasecmp as r-values.  Unixware didn't have declarations.
28544
28545 2001-08-31  Paul Eggert  <eggert@twinsun.com>
28546
28547         * lib/xstrtol.h: Add copyright notice.
28548         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
28549         LONGINT_INVALID_SUFFIX_CHAR.
28550
28551 2001-08-31  Paul Eggert  <eggert@twinsun.com>
28552
28553         * lib/xstrtol.c (strtoimax): New decl.
28554
28555 2001-08-31  Paul Eggert  <eggert@twinsun.com>
28556
28557         * lib/xgetcwd.c: Don't include pathmax.h.
28558         Include stdlib.h and unistd.h if available.
28559         Include xalloc.h.
28560         (xmalloc, xstrdup, free): Remove decls.
28561         (xgetcwd): Don't assume sizes fit in unsigned.
28562         Check for overflow when computing sizes.
28563         Simplify reallocation code.
28564
28565 2001-08-31  Paul Eggert  <eggert@twinsun.com>
28566
28567         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
28568         a directory's st_size can have an arbitrary value, so the old
28569         usage could waste an arbitrary amount of memory.  All uses
28570         changed.
28571         * lib/savedir.h: Update prototype.
28572
28573 2001-08-31  Paul Eggert  <eggert@twinsun.com>
28574
28575         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
28576
28577         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
28578         old strtoimax.c.
28579
28580         Also, make the following further changes to make this file's
28581         configuration more similar to that of strtol.c:
28582         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
28583         (strtoumax, uintmax_t, strtoull, strtol): Remove.
28584         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
28585         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
28586         changed to signed values.
28587
28588         And make the following changes as well:
28589         Fix copyright notice, as 1999 was missing.
28590         (verify): New macro.
28591         (strtoimax): Check sizes at compile-time, not run-time.
28592         Prefer strtol to strtoll if both work.
28593         (main): Remove; it was not that useful and was a pain to maintain.
28594
28595         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
28596
28597 2001-08-31  Jim Meyering  <meyering@lucent.com>
28598
28599         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
28600         Use an initial, malloc'd, buffer of length 128 rather than
28601         a statically allocated one of length 1024.
28602
28603 2001-08-30  Paul Eggert  <eggert@twinsun.com>
28604
28605         Simplify code, partly by assuming autoconf 2.52 semantics.
28606
28607         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
28608
28609         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
28610         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
28611         All uses removed.
28612         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
28613         Move AC_REQUIRE to next-to-top level, to avoid confusion.
28614         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
28615         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
28616         jm_AC_HEADER_INTTYPES_H.
28617         * m4/jm-macros.m4 (jm_MACROS): Likewise.
28618
28619         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
28620
28621         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
28622         Quote first arg of AC_DEFUN.
28623         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
28624         since they are needed to parse the include file even if we need
28625         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
28626         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
28627         but with opposite signedness.
28628
28629 2001-08-30  Paul Eggert  <eggert@twinsun.com>
28630
28631         Merge 'exclude' changes from tar 1.13.22.
28632         This fixes one or two unlikely storage allocation overflow bugs,
28633         but doesn't change user-visible behavior otherwise.
28634
28635 2001-08-30  Paul Eggert  <eggert@twinsun.com>
28636
28637         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
28638         (jm_PREREQ_EXCLUDE): New macro.
28639
28640 2001-08-30  Paul Eggert  <eggert@twinsun.com>
28641
28642         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
28643         tm to be declared.
28644
28645 2001-08-30  Paul Eggert  <eggert@twinsun.com>
28646
28647         * lib/hash.c: Remove '2001' from copyright notice.
28648
28649 2001-08-30  Paul Eggert  <eggert@twinsun.com>
28650
28651         * lib/full-write.h: New file.
28652         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
28653         * lib/full-write.c: Correct credits, as cccp.c no longer
28654         exists and anyway it was so heavily changed from the old cccp
28655         code as to be unrecognizable.  Include full-write.h.
28656         (full_write) Return size_t, with short writes meaning failure.
28657         All callers changed.  This fixes a bug with large buffers
28658         on 64-bit hosts.
28659         * lib/utime.c: Include full-write.h.
28660
28661 2001-08-30  Paul Eggert  <eggert@twinsun.com>
28662
28663         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
28664         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
28665         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
28666         Include if available.
28667         (<xalloc.h>): Include
28668         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
28669         (verify): New macro.  Use it to verify that EXCLUDE macros do not
28670         collide with FNM macros.
28671         (struct patopts): New struct.
28672         (struct exclude): Use it, as exclude patterns now come with options.
28673         (new_exclude): Support above changes.
28674         (new_exclude, add_exclude_file):
28675         Initial size must now be a power of two to simplify overflow checking.
28676         (free_exclude, fnmatch_no_wildcards): New function.
28677         (excluded_filename): No longer requires options arg, as the options
28678         are determined by add_exclude.  Now returns bool, not int.
28679         (excluded_filename, add_exclude):
28680         Add support for the fancy new exclusion options.
28681         (add_exclude, add_exclude_file): Now takes int options arg.
28682         Check for arithmetic overflow when computing sizes.
28683         (add_exclude_file): xrealloc might modify errno, so don't
28684         realloc until after errno might be used.
28685
28686         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
28687         New macros.
28688         (free_exclude): New decl.
28689         (add_exclude, add_exclude_file): Now takes int options arg.
28690         (excluded_filename): No longer requires options arg, as the options
28691         are determined by add_exclude.  Now returns bool, not int.
28692
28693 2001-08-30  Paul Eggert  <eggert@twinsun.com>
28694
28695         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
28696
28697 2001-08-27  Jim Meyering  <meyering@lucent.com>
28698
28699         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
28700
28701         * lib/version-etc.c (N_): Remove definition.
28702         Revert most of last change.
28703         Instead, simply don't mark the `Copyright...' string for translation.
28704         Based on advice from Paul Eggert.
28705
28706         * lib/strtoxmax.c: Tweak comment.
28707
28708 2001-08-26  Jim Meyering  <meyering@lucent.com>
28709
28710         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
28711
28712         * m4/xstrtoimax.m4: New file.
28713         * m4/xstrtoumax.m4: Add comments explaining why we
28714         AC_REPLACE_FUNCS(strtol).
28715
28716 2001-08-26  Jim Meyering  <meyering@lucent.com>
28717
28718         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
28719         of copyright with `%s' so translators don't get an untranslated
28720         message in 2002.
28721         (COPYRIGHT_YEAR): Define.
28722         (version_etc): Use fprintf rather than fputs.
28723         Suggestion from Ulrich Drepper.
28724
28725         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
28726
28727         * lib/strtoll.c: New file, from GNU libc.
28728         * lib/xstrtoimax.c: New file.
28729
28730         * lib/xstrtol.h: Add xstrtoimax.
28731         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
28732         * lib/strtoimax.c: New file.  Likewise, but first define
28733         STRTOUXMAX_SIGNED.
28734
28735         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
28736         ...
28737         * lib/strtoxmax.c: ... then renamed to this.
28738
28739 2001-08-18  Paul Eggert  <eggert@twinsun.com>
28740
28741         * m4/inttypes.m4: Add AC_PREREQ(2.13).
28742         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
28743         (jm_AC_TYPE_INTMAX_T): New macro.
28744         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
28745
28746         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
28747
28748         * m4/longlong.m4: Renamed from ulonglong.m4.
28749         * m4/inttypes.m4: Renamed from inttypes_h.m4.
28750         * m4/uintmax_t.m4: Removed.
28751
28752 2001-08-13  Paul Eggert  <eggert@twinsun.com>
28753
28754         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
28755         Port to Solaris 8, where 'sed' requires a space after the 'r'
28756         command, and where sh dislikes "$/".  Clean up the spacing a bit.
28757         Redirect output to $tmp just once.
28758
28759 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
28760
28761         * lib/addext.c (<errno.h>): Include.
28762         (errno): Declare if not defined.
28763         (addext): Work correctly when pathconf returns -1 and leaves
28764         errno alone because there is no limit.  Also, work even if
28765         pathconf returns a value greater than SIZE_MAX.
28766
28767 2001-08-12  Jim Meyering  <meyering@lucent.com>
28768
28769         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
28770         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
28771         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
28772         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
28773         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
28774         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
28775         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
28776         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
28777         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
28778         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
28779         utime.m4, utimes.m4, xstrtoumax.m4:
28780         Quote the first argument in each use of AC_DEFUN.
28781
28782 2001-08-12  Jim Meyering  <meyering@lucent.com>
28783
28784         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
28785         Simply `return getcwd (NULL, 0);'.
28786         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
28787         Use 1300 as initial value for length, not PATH_MAX.
28788
28789         * lib/pathmax.h: Clean up cpp syntax.
28790
28791 2001-08-12  Jim Meyering  <meyering@lucent.com>
28792
28793         * lib/gettimeofday.c: New file.
28794         * lib/gtod.h: New file.
28795         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
28796
28797 2001-08-05  Jim Meyering  <meyering@lucent.com>
28798
28799         * m4/jm-macros.m4: Require autoconf-2.52.
28800
28801 2001-08-04  Jim Meyering  <meyering@lucent.com>
28802
28803         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
28804         stmt, to get in sync with glibc.
28805
28806 2001-08-03  Paul Eggert  <eggert@twinsun.com>
28807
28808         The following changes are from gettext 0.10.39 as maintained by
28809         Bruno Haible.
28810
28811         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
28812         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
28813         with inverted sense.  All uses changed.
28814
28815         * lib/mbswidth.c: Don't include <limits.h>.
28816         Include <stdlib.h> and <string.h> unconditionally.
28817         (iswcntrl, mbsinit, ISCNTRL): New macros.
28818         (mbsnwidth): Use K&R style function declarations.
28819         Don't bother checking for MB_LEN_MAX == 1, since the compiler
28820         can optimize it when MB_CUR_MAX == 1.
28821         The width of control characters is zero, not 1.
28822
28823 2001-08-03  Paul Eggert  <eggert@twinsun.com>
28824
28825         The following changes are from gettext 0.10.39 as maintained by
28826         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
28827
28828         * m4/codeset.m4: Upgrade to serial AM1.
28829         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
28830         all uses changed.  Quote first arg of AC_DEFUN.
28831         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
28832
28833         * m4/iconv.m4: Upgrade to serial AM2.
28834         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
28835         Add --with-libconv-prefix.
28836         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
28837         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
28838         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
28839         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
28840         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
28841
28842         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
28843         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
28844         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
28845         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
28846         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
28847         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
28848         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
28849         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
28850         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
28851
28852         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
28853         string.h any more.
28854
28855         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
28856         not the default value.
28857
28858         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
28859         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
28860         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
28861         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
28862         Also check for iswcntrl, used for wcwidth fallback.
28863         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
28864         to Autoconf 2.13.
28865
28866 2001-08-03  Jim Meyering  <meyering@lucent.com>
28867
28868         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
28869         as it was in the original.  Reported by Paul Eggert.
28870
28871 2001-07-16  Jim Meyering  <meyering@lucent.com>
28872
28873         * m4/gettimeofday.m4: New file.
28874         Prompted by a report from Bernhard Baehr.
28875
28876 2001-07-15  Jim Meyering  <meyering@lucent.com>
28877
28878         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
28879         stuff. Now it's in ../Makefile.cfg.
28880
28881 2001-07-15  Jim Meyering  <meyering@lucent.com>
28882
28883         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
28884         (BUILT_SOURCES): Add unlocked-io.h.
28885         (io_functions): Define.
28886         (unlocked-io.h): New rule.
28887         (DISTCLEANFILES): Add unlocked-io.h.
28888         (all-local): Depend on unlocked-io.h, to ensure it is created.
28889
28890         * lib/unlocked-io.hin: New file
28891
28892         * lib/regex.c: Update from glibc.
28893
28894 2001-07-05  Jim Meyering  <meyering@lucent.com>
28895
28896         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
28897         recommendation.
28898         (libfetish_a_SOURCES): Put all .h files here instead.
28899         Remove a thus-exposed (better checks in automake) duplicate and
28900         two unnecessary .h files.
28901
28902 2001-07-04  Jim Meyering  <meyering@lucent.com>
28903
28904         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
28905         that generates jm-glibc-io.m4 so that it doesn't trigger any make
28906         distcheck failure.
28907
28908 2001-07-02  Jim Meyering  <meyering@lucent.com>
28909
28910         The following changes were prompted by suggestions from Bruno Haible.
28911
28912         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
28913         is now generated.
28914         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
28915         definition of EXTRA_DIST.
28916         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
28917         ensure that the generated file is created/updated whenever the list
28918         of $(unlocked_functions) is changed.
28919         (jm-glibc-io.m4): New rule.
28920         (unlocked-io.h): New rule -- currently unused.
28921
28922 2001-06-24  Jim Meyering  <meyering@lucent.com>
28923
28924         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
28925         unmatched right bracket, rather than kludging it with an extra,
28926         falsely-matching quote in a comment.  Patch by Akim Demaille.
28927
28928 2001-06-11  Jim Meyering  <meyering@lucent.com>
28929
28930         * lib/regex.c: Update from GNU libc.
28931
28932 2001-05-27  Jim Meyering  <meyering@lucent.com>
28933
28934         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
28935         Check for ut_type in struct utmp.
28936
28937 2001-05-27  Jim Meyering  <meyering@lucent.com>
28938
28939         * lib/readutmp.h (UT_TYPE): Define.
28940
28941 2001-05-24  Jim Meyering  <meyering@lucent.com>
28942
28943         * lib/argmatch.c: Include "quote.h".
28944         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
28945         quote function.  Reported by Göran Uddeborg.
28946
28947 2001-05-22  Jim Meyering  <meyering@lucent.com>
28948
28949         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
28950         now that we use the package-supplied version unconditionally.
28951         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
28952
28953 2001-05-21  Jim Meyering  <meyering@lucent.com>
28954
28955         * m4/regex.m4: Change a couple backticks to single quotes to avoid
28956         shell syntax errors.
28957
28958 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
28959
28960         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
28961
28962 2001-05-20  Paul Eggert  <eggert@twinsun.com>
28963
28964         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
28965         Don't bother to check library strftime, since
28966         we'll be using our own my_strftime function anyway.
28967         Define my_strftime instead of strftime.
28968
28969 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
28970
28971         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
28972         which is not yet declared.
28973
28974 2001-05-15  Jim Meyering  <meyering@lucent.com>
28975
28976         * m4/regex.m4: Use proper quoting so brackets appear in the test
28977         program.
28978         Reported by, and with help from, Bruno Haible.
28979
28980 2001-05-13  Jim Meyering  <meyering@lucent.com>
28981
28982         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
28983         undefined.
28984
28985 2001-05-11  Paul Eggert  <eggert@twinsun.com>
28986
28987         dirname code cleanup.  base_name now behaves more compatibly
28988         with POSIX basename when given file names that have trailing
28989         slashes, and similarly for dir_name.  Add new primitives
28990         base_len and dir_len.  Put the directory-name-related decls
28991         into dirname.h.
28992
28993         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
28994         * lib/backupfile.c (base_name): Likewise.
28995         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
28996         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
28997         * lib/makepath.c (strip_trailing_slashes): Likewise.
28998         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
28999         ISSLASH): Likewise.
29000         * lib/rename.c (strip_trailing_slashes): Likewise.
29001         * lib/same.c (base_name): Likewise.
29002         * lib/stripslash.c (ISSLASH): Likewise.
29003
29004         * lib/addext.c: Include <dirname.h> after size_t is defined.
29005         * lib/backupfile.c: Likewise.
29006
29007         * lib/addext.c (addext): Use base_len to trim redundant
29008         trailing slashes instead of doing it ourselves.
29009         But do not trim the last slash if it is not redundant.
29010
29011         * lib/backupfile.c (find_backup_file_name,
29012         max_backup_version): Use base_len instead of rolling it ourselves.
29013         Handle the case of "" and (on DOS) "C:" correctly.
29014
29015         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
29016         needed. Include <string.h>, <dirname.h>.
29017         (base_name): Allow file names ending in slashes, other than names
29018         that are all slashes.  In this case, return the basename followed
29019         by the slashes.  This is more general, and can be used in places
29020         where the original base_name purposely had an assertion failure.
29021         (base_len): New function.
29022
29023         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
29024         Do not include <assert.h>; no longer needed.
29025         Include xalloc.h.
29026         (memrchr): Remove decl.
29027         (dir_name_r): Remove.
29028         (dir_len): Renamed from dirlen.  All callers changed.
29029         Rewrite in terms of base_name, for simplicity and consistency.
29030         (dir_name): Never return NULL.  All callers changed.
29031         Do not include <stdlib.h> in test program; no longer needed.
29032         return 0; is fine for test program.
29033
29034         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
29035         New macros.
29036         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
29037
29038         * lib/path-concat.c (path_concat): Use base_len to compute
29039         base length, not strlen; this means we cannot rely on memcpy
29040         to null-terminate.
29041
29042         * lib/same.c (STREQ): Remove.
29043         (same_name): Handle the case where the basename ends in trailing '/'.
29044
29045         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
29046         a slash was stripped.  Do not strip the last slash after a
29047         file system prefix.
29048
29049 2001-05-11  Paul Eggert  <eggert@twinsun.com>
29050
29051         * lib/Makefile.am (libfetish_a_SOURCES):
29052         Add strftime.c, since we now compile it on all hosts.
29053
29054         * lib/strftime.c (my_strftime):
29055         Define to nstrftime if emacs, but only if my_strftime is not defined.
29056         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
29057         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
29058         Add one more extra argument: a nanoseconds value.
29059         All uses changed.
29060         (ns): New macro.
29061         (my_strftime function): Add %N format.
29062         (emacs_strftimeu): Renamed from emacs_strftime,
29063         with extra ut argument.
29064
29065 2001-05-09  Paul Eggert  <eggert@twinsun.com>
29066
29067         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
29068
29069 2001-04-21  Jim Meyering  <meyering@lucent.com>
29070
29071         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
29072         doesn't interfere.
29073
29074 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
29075
29076         * m4/ftruncate.m4: Check for chsize.
29077         Link with ftruncate.o unconditionally if ftruncate is missing.
29078         This was required when cross-compiling to i586-mingw32msvc.
29079
29080 2001-04-08  Jim Meyering  <meyering@lucent.com>
29081
29082         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
29083         recomputed; that's necessary when the offset spans a DST transition.
29084         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
29085
29086 2001-04-02  Jim Meyering  <meyering@lucent.com>
29087
29088         * lib/regex.h, regex.c: Update from GNU libc.
29089
29090 2001-03-24  Jim Meyering  <meyering@lucent.com>
29091
29092         * m4/jm-macros.m4: Require autoconf-2.49d.
29093
29094 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
29095
29096         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
29097
29098 2001-03-19  Paul Eggert  <eggert@twinsun.com>
29099
29100         * lib/version-etc.c (version_etc_copyright): Update to 2001.
29101
29102 2001-03-17  Jim Meyering  <meyering@lucent.com>
29103
29104         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
29105         now that the version in autoconf is equivalent.
29106         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
29107
29108         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
29109         Suggestion from Akim Demaille.
29110
29111         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
29112         (jm_PREREQ_TEMPNAME): New function.
29113
29114 2001-03-16  Paul Eggert  <eggert@twinsun.com>
29115
29116         * lib/tempname.c (uint64_t): Define to uintmax_t if
29117         not defined, and if UINT64_MAX is not defined.
29118         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
29119         Reported by John David Anglin.
29120
29121 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
29122
29123         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
29124         resolve alias if codeset is empty.
29125         * lib/config.charset (BeOS): Use wildcard syntax.
29126
29127 2001-03-13  Jim Meyering  <meyering@lucent.com>
29128
29129         * lib/path-concat.c (path_concat)
29130         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
29131         concatenating e.g., `C:' and `foo'.
29132         From Bruno Haible.
29133
29134 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
29135
29136         * lib/localcharset.c (locale_charset): Don't use
29137         setlocale(LC_CTYPE,NULL). Don't return NULL.
29138         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
29139
29140 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
29141
29142         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
29143         support for DOS/DJGPP.
29144
29145 2001-03-01  Paul Eggert  <eggert@twinsun.com>
29146
29147         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
29148         lacks mkstemp.  Compile our own tempname.c if we compile our own
29149         mkstemp.c, as mkstemp relies on tempname.
29150
29151 2001-03-01  Jim Meyering  <meyering@lucent.com>
29152
29153         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
29154         AH_VERBATIM really does output its argument verbatim.
29155
29156 2001-02-28  Paul Eggert  <eggert@twinsun.com>
29157
29158         * lib/Makefile.am (libfetish_a_SOURCES):
29159         Add dup-safer.c, fopen-safer.c.
29160         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
29161
29162         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
29163         * lib/unistd-safer.h: New files.
29164
29165 2001-02-25  Paul Eggert  <eggert@twinsun.com>
29166
29167         The mkstemp replacement is taken from glibc 2.2.2, with some
29168         portability fixes for use outside glibc, as follows:
29169
29170         * lib/tempname.c (struct_stat64): New macro.
29171         (direxists, __gen_tempname): Use it.
29172         This avoids a portability problem with Solaris 8.
29173
29174         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
29175         (<stddef.h>, <stdint.h>, <string.h>):
29176         Include only if STDC_HEADERS || _LIBC.
29177         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
29178         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
29179         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
29180         (__set_errno): Define this macro if <errno.h> doesn't.
29181         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
29182         Define these macros if <stdio.h> doesn't.
29183         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
29184         Define these macros if <sys/stat.h>
29185         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
29186         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
29187         __xstat64): Define if not _LIBC.
29188         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
29189         (__gen_tempname): Invoke gettimeofday only if
29190         HAVE_GETTIMEOFDAY || _LIBC;
29191         otherwise, fall back on plain "time".
29192         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
29193
29194         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
29195
29196         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
29197
29198 2001-02-18  Paul Eggert  <eggert@twinsun.com>
29199
29200         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
29201
29202 2001-02-17  Paul Eggert  <eggert@twinsun.com>
29203
29204         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
29205         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
29206         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
29207         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
29208
29209 2001-02-17  Paul Eggert  <eggert@twinsun.com>
29210
29211         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
29212         Remove workaround macros for hosts that have mbrtowc but not
29213         mbstate_t, as we now insist on proper declarations for both
29214         before using mbrtowc.
29215
29216 2001-02-17  Jim Meyering  <meyering@lucent.com>
29217
29218         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
29219         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
29220         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
29221         UnixWare 7.1.1.
29222
29223         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
29224         rather than AC_CACHE_VAL.
29225
29226 2001-02-17  Jim Meyering  <meyering@lucent.com>
29227
29228         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
29229         around included file name.
29230
29231         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
29232
29233         * lib/strftime.c: Update from GNU libc (the only changes were to
29234         comments).
29235
29236 2001-02-17  Jim Meyering  <meyering@lucent.com>
29237
29238         * lib/regex.c: Update from libc.
29239
29240 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
29241
29242         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
29243         clash.
29244
29245 2001-02-16  Paul Eggert  <eggert@twinsun.com>
29246
29247         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
29248         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
29249         Reported by Mark Hounschell via Paul Eggert.
29250
29251 2001-02-07  Jim Meyering  <meyering@lucent.com>
29252
29253         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
29254
29255 2001-02-05  Jim Meyering  <meyering@lucent.com>
29256
29257         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
29258         it includes the patch required for `large file' support with at least
29259         HP-UX's 10.20 /bin/cc.
29260
29261 2001-02-03  Jim Meyering  <meyering@lucent.com>
29262
29263         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
29264         AS_IF, now that it works once again (mysteriously).
29265         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
29266
29267 2001-01-30  Jim Meyering  <meyering@lucent.com>
29268
29269         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
29270         * m4/chown.m4: Rename conftestchown to conftest.chown.
29271         * m4/rename.m4: s/conftestdir/conftest.d1/ and
29272         s/conftestdir2/conftest.d2/.
29273         * m4/utimes.m4: s/conftestdata/conftest.data/
29274         Inspired by Pavel Roskin's change in autoconf.
29275
29276 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
29277
29278         * lib/config.charset: Update for FreeBSD 4.2.
29279
29280 2001-01-27  Jim Meyering  <meyering@lucent.com>
29281
29282         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
29283         a use of AS_IF.
29284         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
29285
29286 2001-01-26  Jim Meyering  <meyering@lucent.com>
29287
29288         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
29289         quotearg.c includes it.
29290
29291 2001-01-26  Jim Meyering  <meyering@lucent.com>
29292
29293         * lib/quotearg.c: Include stddef.h.
29294         * lib/quote.c: Include stddef.h.
29295         Reported by Axel Kittenberger.
29296
29297         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
29298         line in double quotes so that it evokes a better diagnostic.
29299         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
29300         Reported by Axel Kittenberger.
29301
29302 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
29303
29304         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
29305         as if it was a `charset'.
29306
29307 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
29308
29309         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
29310         has const.
29311
29312 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
29313
29314         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
29315         to avoid a warning.  Add back 'const' to inptr.
29316
29317 2001-01-20  Jim Meyering  <meyering@lucent.com>
29318
29319         Be sure that headers are checked before used in code compiled
29320         for the type checks.
29321         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
29322         In place of that, invoke jm_CHECK_ALL_TYPES.
29323         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
29324         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
29325         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
29326         The check for ssize_t was mistakenly run before the test for unistd.h.
29327
29328         The configure-time check for stdbool.h was missing.
29329         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
29330         (jm_PREREQ_HASH): New function.
29331
29332 2001-01-17  Jim Meyering  <meyering@lucent.com>
29333
29334         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
29335         for autoconf-2.49c.
29336         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
29337
29338 2001-01-16  Jim Meyering  <meyering@lucent.com>
29339
29340         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
29341         From Bruno Haible.
29342
29343 2001-01-14  Jim Meyering  <meyering@lucent.com>
29344
29345         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
29346         foo and bar.  Create conftestdir/ in the script, not in the C code.
29347         Remove directories in the script, not in the C code.
29348         Remove conftestdir{,2} before trying to create the directory.
29349         Make the entire configure script fail if the mkdir fails.
29350
29351 2001-01-14  Jim Meyering  <meyering@lucent.com>
29352
29353         * lib/rename.c: New file.  From Volker Borchert.
29354         Include stdlib.h, string.h or strings.h, and xalloc.h.
29355         Use strip_trailing_slashes rather than open-coding it.
29356
29357 2001-01-03  Paul Eggert  <eggert@twinsun.com>
29358
29359         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
29360
29361 2001-01-03  Jim Meyering  <meyering@lucent.com>
29362
29363         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
29364         of local `inptr' to avoid warning with some system declarations of
29365         iconv.
29366
29367 2001-01-02  Volker Borchert  <bt@teknon.de>
29368
29369         * m4/rename.m4: New file.
29370         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
29371
29372 2001-01-01  Jim Meyering  <meyering@lucent.com>
29373
29374         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
29375         even on systems with utmpx.h.  It's necessary for the declaration of
29376         utmp's ut_user member.  Reported by Andreas Jaeger.
29377
29378         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
29379         available. They are required for the declarations of getgrgid and
29380         getpwuid resp.
29381         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
29382         Reported by Andreas Jaeger.
29383
29384 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
29385
29386         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
29387         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
29388         so `make install' also works in VPATH builds.
29389
29390 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
29391
29392         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
29393         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
29394         can be used in subdirectories.
29395
29396 2000-12-29  Paul Eggert  <eggert@twinsun.com>
29397
29398         * lib/modechange.c: Do not assume that mode_t uses the
29399         traditional octal encoding.  E.g. "chmod 1 FOO" should set
29400         the other-execute bit of FOO even if S_IXOTH != 1.
29401
29402         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
29403         WOTH, XOTH, ALLM): New macros.
29404         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
29405          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
29406         Use them.
29407         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
29408         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
29409         (mode_compile):
29410         No need to use uintmax_t; unsigned long is long enough.
29411         Don't bother to get suffix since we don't use it.
29412
29413 2000-12-26  Jim Meyering  <meyering@lucent.com>
29414
29415         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
29416         better with autoheader.
29417
29418 2000-12-24  Jim Meyering  <meyering@lucent.com>
29419
29420         * lib/hash.c (is_prime): Return explicit boolean values.
29421         (hash_get_first): Return NULL to appease Irix5.6's 89.
29422         Reported by Nelson Beebe.
29423
29424 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
29425
29426         * lib/localcharset.c (locale_charset): Add support for Win32.
29427
29428 2000-12-18  Paul Eggert  <eggert@twinsun.com>
29429
29430         * lib/physmem.h, lib/physmem.c: New files.
29431
29432         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
29433         (noinst_HEADERS): Add physmem.h.
29434
29435         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
29436         't' for compatibility with Solaris 8 sort.
29437
29438 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
29439
29440         * lib/config.charset: Add support for BeOS.
29441
29442 2000-12-17  Jim Meyering  <meyering@lucent.com>
29443
29444         * m4/dos.m4 (jm_AC_DOS): New file and macro.
29445         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
29446
29447 2000-12-16  Jim Meyering  <meyering@lucent.com>
29448
29449         This bug had a serious impact on chown: `chown N:M FILE' (for integer
29450         N and M) would have treated it like `chown N:N FILE'.
29451
29452         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
29453
29454 2000-12-16  Jim Meyering  <meyering@lucent.com>
29455
29456         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
29457         SHELLS_FILE to a file name that's useful on djgpp systems.
29458         Include stdlib.h.
29459         (ADDITIONAL_DEFAULT_SHELLS): Define.
29460         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
29461         Based mostly on a patch from Prashant TR.
29462
29463 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
29464
29465         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
29466         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
29467         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
29468
29469 2000-12-08  Andreas Schwab  <schwab@suse.de>
29470
29471         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
29472         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
29473
29474 2000-12-07  Jim Meyering  <meyering@lucent.com>
29475
29476         * lib/stripslash.c (ISSLASH): Define.
29477         (strip_trailing_slashes): Use ISSLASH rather than comparing against
29478         `/'.
29479         From Prashant TR.
29480
29481         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
29482         (dir_name_r): Declare this function as static.
29483         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
29484         manifest itself on a name containing a mix of slashes and
29485         backslashes.
29486         Make this function work with names starting with a DOS-style
29487         drive letter and colon prefix.
29488         (dir_name): Append `.' if necessary.
29489         Based mostly on patches from Prashant TR and Eli Zaretskii.
29490
29491         * lib/dirname.h (dir_name_r): Remove prototype.
29492
29493 2000-12-06  Paul Eggert  <eggert@twinsun.com>
29494
29495         * m4/off_t-format.m4: Remove this file.
29496         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
29497
29498 2000-12-06  Jim Meyering  <meyering@lucent.com>
29499
29500         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
29501         replacement strtoull, we may well need the replacement strtoul, too.
29502         Check for declarations of strtoul and strtoull.
29503         Check for strtol.  Mainly as a cue to cause automake to include
29504         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
29505         Check for limits.h -- strtol.c needs it.
29506
29507 2000-12-05  Jim Meyering  <meyering@lucent.com>
29508
29509         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
29510
29511 2000-12-04  Jim Meyering  <meyering@lucent.com>
29512
29513         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
29514         Also include memory.h, stdlib.h, unistd.h if appropriate.
29515         Reported by Andreas Jaeger (conflicting declaration of malloc).
29516
29517 2000-12-02  Jim Meyering  <meyering@lucent.com>
29518
29519         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
29520         * m4/jm-macros.m4 (jm_MACROS): require it.
29521
29522 2000-12-02  Jim Meyering  <meyering@lucent.com>
29523
29524         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
29525
29526 2000-12-01  Paul Eggert  <eggert@twinsun.com>
29527
29528         * lib/memrchr.c: Include <config.h> before any system include file.
29529
29530 2000-11-30  Jim Meyering  <meyering@lucent.com>
29531
29532         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
29533
29534 2000-11-30  Jim Meyering  <meyering@lucent.com>
29535
29536         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
29537
29538 2000-11-29  Paul Eggert  <eggert@twinsun.com>
29539
29540         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
29541
29542 2000-11-26  Jim Meyering  <meyering@lucent.com>
29543
29544         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
29545
29546 2000-11-22  Paul Eggert  <eggert@twinsun.com>
29547
29548         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
29549         size of (size_t) -1; it's not portable.
29550
29551 2000-11-17  Jim Meyering  <meyering@lucent.com>
29552
29553         * lib/strstr.c: Update from GNU libc.
29554
29555 2000-11-17  Akim Demaille  <akim@epita.fr>
29556
29557         * lib/obstack.h: Formatting changes.
29558         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
29559         prevent type checking.
29560         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
29561         cast the value to (void *): assigning a `foo *' to a `void *'
29562         variable is valid.
29563         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
29564
29565 2000-11-16  Jim Meyering  <meyering@lucent.com>
29566
29567         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
29568
29569 2000-11-11  Jim Meyering  <meyering@lucent.com>
29570
29571         * lib/error.c: Add a couple #includes, merging from GNU libc version.
29572
29573 2000-11-10  Jim Meyering  <meyering@lucent.com>
29574
29575         * lib/obstack.h: Update from GNU libc.
29576         * lib/obstack.c: Likewise.
29577
29578 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
29579
29580         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
29581
29582 2000-11-06  Paul Eggert  <eggert@twinsun.com>
29583
29584         * lib/getusershell.c (setusershell): Use rewind rather than
29585         fseek/fseeko, to avoid configuration hassles with fseeko.
29586         Don't bother opening SHELLS_FILE if shellstream is NULL;
29587         it's not necessary.
29588
29589 2000-11-05  Jim Meyering  <meyering@lucent.com>
29590
29591         * lib/makepath.h (make_dir): Declare.
29592         * lib/makepath.c (make_dir): Remove `static' attribute.
29593         Tweak a comment.
29594
29595 2000-11-04  Jim Meyering  <meyering@lucent.com>
29596
29597         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
29598
29599 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
29600
29601         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
29602         last one in a bucket, advance to the next bucket.
29603
29604 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
29605
29606         * lib/fnmatch.c: Do not comment out all the code if we are using
29607         the GNU C library, because in some cases we are replacing buggy
29608         code in the GNU C library itself.
29609
29610 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
29611
29612         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
29613         (regex_compile): Catch bogus \(\1\).
29614
29615 2000-10-30  Paul Eggert  <eggert@twinsun.com>
29616
29617         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
29618         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
29619         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
29620
29621 2000-10-30  Paul Eggert  <eggert@twinsun.com>
29622
29623         * lib/error.h, getline.h, modechange.h:
29624         Remove "2000" from Copyright line, as the file hasn't been
29625         changed this year other than in the copyright notice.
29626
29627         * lib/xalloc.h: Add "2000" to Copyright line, as this file
29628         was changed this year.
29629
29630 2000-10-29  Jim Meyering  <meyering@lucent.com>
29631
29632         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
29633         renaming.
29634         * m4/ls-mntd-fs.m4: Likewise
29635
29636 2000-10-29  Jim Meyering  <meyering@lucent.com>
29637
29638         * lib/xstat.in: Fix grammar in comment.
29639
29640 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
29641
29642         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
29643         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
29644         doesn't define __restrict_arr.
29645
29646 2000-10-28  Jim Meyering  <meyering@lucent.com>
29647
29648         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
29649         (jm_PREREQ_MEMCHR): New function.
29650
29651 2000-10-28  Jim Meyering  <meyering@lucent.com>
29652
29653         * lib/memchr.c: Update from libc.
29654         Adjust for portability:
29655         [HAVE_STDLIB_H]: Include stdlib.h.
29656         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
29657         Undef __memchr, too.
29658         [!weak_alias]: Define __memchr to memchr.
29659
29660         * lib/regex.c: Update from libc.
29661         * lib/regex.h: Likewise.
29662         * lib/getopt1.c: Likewise.
29663         * lib/memcmp.c: Likewise.
29664
29665         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
29666         Avoid using fseek, when possible -- it's broken by design.
29667         Patch by Ulrich Drepper.
29668
29669 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
29670
29671         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
29672         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
29673         Giving in to popular pressure to shut up the compiler with casts.
29674
29675 2000-10-26  Jim Meyering  <meyering@lucent.com>
29676
29677         * lib/strftime.c: Update from libc.
29678
29679 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
29680
29681         * regex.c: More `unsigned char' -> `re_char' changes.
29682         Also change several `int' into `re_wchar_t'.
29683         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
29684         (PUSH_FAILURE_POINTER): Don't cast any more.
29685         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
29686         We want GCC to complain, since this piece of code makes
29687         re_match non-reentrant, which *should* be fixed.
29688         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
29689         (EXTEND_BUFFER): Use RETALLOC.
29690         (SET_LIST_BIT): Don't cast.
29691         (re_wchar_t): New type.
29692         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
29693         that those two functions will always properly return.
29694         (IMMEDIATE_QUIT_CHECK): Cast to void.
29695         (analyse_first): Use recursion rather than an explicit stack.
29696         (re_compile_fastmap): Can't fail anymore.
29697         (re_search_2): Don't check re_compile_fastmap for failure.
29698         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
29699         Now also sets the new value (passed in a new argument).
29700         (re_match_2_internal): Use it.
29701         Also, use a new var `reg' of type size_t when looping through regs
29702         rather than reuse the inappropriate `mcnt'.
29703
29704 2000-10-25  Jim Meyering  <meyering@lucent.com>
29705
29706         * lib/obstack.c: Update from libc.
29707
29708 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
29709
29710         * regex.c (regex_compile): Change the way of handling a range from
29711         a char less than 256 to a char not less than 256.
29712
29713 2000-10-24  Andrew Innes  <andrewi@gnu.org>
29714
29715         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
29716         NT-Emacs only.
29717         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
29718         so that re_search functions only quit when callers expect them to.
29719
29720 2000-10-23  Jim Meyering  <meyering@lucent.com>
29721
29722         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
29723         wrong.  That set_locale call must not have any side effects.
29724         From Paul Eggert.
29725
29726 2000-10-22  Jim Meyering  <meyering@lucent.com>
29727
29728         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
29729         [CYCLIC]: Remove now-unused definition.
29730
29731         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
29732         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
29733         Suggestion from Ulrich Drepper.
29734
29735 2000-10-21  Jim Meyering  <meyering@lucent.com>
29736
29737         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
29738         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
29739         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
29740
29741 2000-10-21  Jim Meyering  <meyering@lucent.com>
29742
29743         * lib/dirname.c (memrchr): Declare if necessary.
29744         (dir_name): Remove the restriction that there be no
29745         trailing slashes.  Now, this code skips past them, effectively
29746         ignoring them.
29747         [TEST_DIRNAME] (main): New unit tests.
29748
29749         * lib/memrchr.c: New file from GNU libc.
29750         Undef __memrchr, too.
29751         [!weak_alias]: Define __memrchr to memrchr.
29752         Guard weak_alias use with `#ifdef weak_alias'.
29753
29754 2000-10-21  Jim Meyering  <meyering@lucent.com>
29755
29756         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
29757         (dir_name): Use dir_name_r.
29758         * lib/dirname.h (dir_name_r): Declare it.
29759
29760 2000-10-17  Jim Meyering  <meyering@lucent.com>
29761
29762         * lib/quote.h (PARAMS): Define and use.
29763         Reported by Akim Demaille.
29764
29765         * lib/getopt.c: Update from libc.
29766
29767 2000-10-16  Jim Meyering  <meyering@lucent.com>
29768
29769         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
29770         setlocale.
29771         From Jan Fedak.
29772
29773 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
29774
29775         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
29776
29777 2000-09-25  Jim Meyering  <meyering@lucent.com>
29778
29779         * lib/md5.h (rol): Define (from GnuPG).
29780
29781         * lib/sha.c: Give credit (GnuPG) where due.
29782         (M): Use rol rather than open-coding it.
29783         Add a FIXME comment.
29784
29785 2000-09-21  Jim Meyering  <meyering@lucent.com>
29786
29787         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
29788         Reported by Michael Stone.
29789
29790 2000-09-20  Jim Meyering  <meyering@lucent.com>
29791
29792         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
29793         (noinst_HEADERS): Add sha.h.
29794         Based on code from Scott G. Miller and from GnuPG.
29795
29796 2000-09-18  Jim Meyering  <meyering@lucent.com>
29797
29798         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
29799         LIBS. Otherwise, everyone ends up linking with -lelf for some
29800         configurations.
29801         Reported by Mike Stone.
29802
29803 2000-09-15  Jim Meyering  <meyering@lucent.com>
29804
29805         * lib/regex.c: Update from libc.
29806
29807 2000-09-10  Jim Meyering  <meyering@lucent.com>
29808
29809         * lib/getopt.c (_getopt_internal): Update from glibc.
29810
29811 2000-09-09  Jim Meyering  <meyering@lucent.com>
29812
29813         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
29814         think it should be used as a general replacement for isascii.
29815         * lib/fnmatch.c: Likewise.
29816         * lib/mbswidth.c: Likewise
29817         * lib/regex.c: Likewise.
29818
29819         Don't use atoi.
29820         * lib/userspec.c: Include sys/param.h and limits.h.
29821         Include xstrtol.h.
29822         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
29823         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
29824         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
29825         UID, GID.  Check range.
29826
29827 2000-09-06  Jim Meyering  <meyering@lucent.com>
29828
29829         * lib/getopt.c (_getopt_internal): Update from glibc.
29830
29831 2000-08-30  Jim Meyering  <meyering@lucent.com>
29832
29833         * lib/strftime.c: Merge in changes from GNU libc.
29834
29835 2000-08-26  Jim Meyering  <meyering@lucent.com>
29836
29837         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
29838         * m4/fpending.m4: New file.
29839
29840 2000-08-26  Jim Meyering  <meyering@lucent.com>
29841
29842         * lib/closeout.c: Include "__fpending.h".
29843         (close_stdout_status): Return right away if there's nothing to flush.
29844
29845         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
29846         * lib/__fpending.c: New file.
29847         * lib/__fpending.h: New file.
29848
29849 2000-08-20  Jim Meyering  <meyering@lucent.com>
29850
29851         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
29852         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
29853         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
29854
29855 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
29856
29857         Improve fileutils installation on systems where running
29858         programs (like install) can't be unlinked.
29859         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
29860         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
29861
29862 2000-08-07  Paul Eggert  <eggert@twinsun.com>
29863
29864         Standardize on "memory exhausted" instead of "Memory exhausted"
29865         or "virtual memory exhausted".
29866         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
29867         "virtual memory exhausted".
29868         * lib/same.c (same_name): Invoke xalloc_die instead of printing
29869         our own message.
29870         * lib/userspec.c (parse_user_spec): Likewise.
29871         * lib/bumpalloc.h: comment fix
29872         * lib/same.c, userspec.c: Include xalloc.h.
29873
29874         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
29875         not char *const and pointing to a constant array.
29876         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
29877         (xrealloc): Comment fix.
29878
29879         * lib/userspec.c (parse_user_spec):
29880         Don't translate a message until just before returning,
29881         to avoid unnecessary translation.
29882
29883 2000-08-07  Jim Meyering  <meyering@lucent.com>
29884
29885         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
29886         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
29887         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
29888         getgroups.c, gethostname.c, getopt.h, group-member.c,
29889         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
29890         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
29891         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
29892         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
29893         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
29894         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
29895         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
29896         yesno.c: Back out Copyright date changes for each file with no change
29897         this year.  This eases coordination with other programs using the same
29898         source code modules.  From Paul Eggert.
29899
29900 2000-08-06  Paul Eggert  <eggert@twinsun.com>
29901
29902         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
29903         not char, for compatibility with glibc 2.1.3 strftime.c.
29904
29905 2000-08-03  Greg McGary  <greg@mcgary.org>
29906
29907         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
29908         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
29909         (EXTEND_BUFFER): Use them.
29910
29911 2000-08-01  Jim Meyering  <meyering@lucent.com>
29912
29913         * lib/dirname.c (ISSLASH): Define.
29914         (BACKSLASH_IS_PATH_SEPARATOR): Define.
29915         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
29916         both `\' and `/' may be use as path separators.
29917         Based on a patch from Prashant TR.
29918
29919 2000-07-31  Paul Eggert  <eggert@twinsun.com>
29920
29921         * lib/quotearg.c (quotearg_n_options): Don't make the initial
29922         slot vector a constant, since it might get modified.
29923
29924 2000-07-31  Jim Meyering  <meyering@lucent.com>
29925
29926         * lib/xmalloc.c: Use `virtual memory exhausted', not
29927         `Memory exhausted'.
29928         * lib/obstack.c (print_and_abort): Likewise.
29929
29930 2000-07-30  Paul Eggert  <eggert@twinsun.com>
29931
29932         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
29933         buffer, so that the caller can always quote one small
29934         component of a "memory exhausted" message in slot 0.
29935         From a suggestion by Jim Meyering.
29936
29937 2000-07-30  Jim Meyering  <meyering@lucent.com>
29938
29939         * lib/makepath.c (make_path): Quote the other instance, too.
29940
29941         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
29942         (STATIC_BUF_SIZE): Define.
29943         (quotearg_n_options): Use only statically allocated storage when
29944         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
29945         than STATIC_BUF_SIZE.
29946
29947 2000-07-29  Jim Meyering  <meyering@lucent.com>
29948
29949         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
29950         * lib/dirname.c (dir_name): Likewise.
29951
29952         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
29953         `/'.
29954
29955         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
29956         (dir_name): Assert that there are no trailing slashes.
29957
29958 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
29959
29960         * lib/mbswidth.h (mbswidth): Add a flags argument.
29961         (mbswidth): New declaration.
29962         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
29963         * lib/mbswidth.c (mbswidth): Add a flags argument.
29964         (mbsnwidth): New function.
29965
29966 2000-07-24  Jim Meyering  <meyering@lucent.com>
29967
29968         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
29969
29970 2000-07-23  Paul Eggert  <eggert@twinsun.com>
29971
29972         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
29973
29974 2000-07-23  Paul Eggert  <eggert@twinsun.com>
29975
29976         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
29977         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
29978         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
29979         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
29980         invoke multibyte primitives.
29981
29982 2000-07-23  Paul Eggert  <eggert@twinsun.com>
29983
29984         * lib/quotearg.c:
29985         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
29986         so that mbstate_t is always defined.
29987
29988         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
29989         be 1 in at least one GCC installation, and this configuration
29990         error is likely to be common.  Ignoring MB_LEN_MAX hurts
29991         performance on hosts that have mbrtowc but have only unibyte
29992         locales, but I assume these hosts are rare.
29993
29994 2000-07-23  Paul Eggert  <eggert@twinsun.com>
29995
29996         * lib/mbswidth.c (_XOPEN_SOURCE):
29997         Don't define; this causes problems on Solaris 7.
29998         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
29999
30000 2000-07-23  Jim Meyering  <meyering@lucent.com>
30001
30002         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
30003         too: getgrgid, getpwuid, getuid.
30004
30005 2000-07-23  Jim Meyering  <meyering@lucent.com>
30006
30007         * lib/basename.c (base_name): Add an assertion.
30008
30009 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
30010
30011         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
30012         shadow its mbsinit function.
30013
30014 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
30015
30016         * lib/mbswidth.h: New file.
30017         * lib/mbswidth.c: New file.
30018         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
30019         (noinst_HEADERS): Add mbswidth.h.
30020
30021 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
30022
30023         * lib/config.charset: Add support for FreeBSD. Improve support for
30024         HP-UX and IRIX 6.
30025
30026 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
30027
30028         * m4/mbswidth.m4: New file.
30029         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
30030
30031 2000-07-15  Jim Meyering  <meyering@lucent.com>
30032
30033         * lib/makepath.c: Include quote.h.
30034         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
30035         corresponding argument in a `quote (...)' call.
30036         Give better diagnostics.
30037
30038         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
30039         (noinst_HEADERS): Add quote.h.
30040
30041         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
30042         from tar's src/misc.c.
30043         * lib/quote.h: New file.  Prototypes for same.
30044
30045 2000-07-14  Paul Eggert  <eggert@twinsun.com>
30046
30047         From a suggestion by Bruno Haible.
30048         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
30049         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
30050         to decide whether to define the BeOS workaround macro;
30051         this adjusts to the change to AC_MBSTATE_T.
30052
30053 2000-07-14  Jim Meyering  <meyering@lucent.com>
30054
30055         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
30056         jm_AC_TYPE_UINTMAX_T.
30057
30058 2000-07-13  Paul Eggert  <eggert@twinsun.com>
30059
30060         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
30061
30062         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
30063         quotearg_buffer_restyled): Add support for
30064         clocale_quoting_style.  Undo previous change to
30065         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
30066         and "{RIGHT QUOTATION MARK}" msgids.
30067
30068 2000-07-10  Paul Eggert  <eggert@twinsun.com>
30069
30070         From a suggestion by Bruno Haible.
30071         * m4/mbstate_t.m4 (AC_MBSTATE_T):
30072         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
30073         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
30074         and mbstate_t, to a single-part test that simply defines mbstate_t.
30075         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
30076         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
30077
30078 2000-07-10  Jim Meyering  <meyering@lucent.com>
30079
30080         * m4/strerror_r.m4: Mirror the correction made in autoconf.
30081
30082         * m4/gnu-source.m4: Output to confdefs.h directly.
30083         Suggestion from Akim Demaille.
30084
30085 2000-07-09  Paul Eggert  <eggert@twinsun.com>
30086
30087         The old behavior of quoting `like this' doesn't look good with
30088         newer, ISO-style fonts.  See:
30089         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
30090
30091         Instead, quote "like this" by default.  Let the translator
30092         tailor the locale-specific quoting behavior by providing
30093         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
30094
30095         * lib/quotearg.c (N_): New macro.
30096         (gettext_default): New function.
30097         (quotearg_buffer_restyled): Use
30098         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
30099         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
30100
30101 2000-07-09  Jim Meyering  <meyering@lucent.com>
30102
30103         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
30104         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
30105
30106         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
30107         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
30108
30109 2000-07-09  Jim Meyering  <meyering@lucent.com>
30110
30111         * lib/Most files: Update copyright dates to include 2000.
30112
30113 2000-07-08  Jim Meyering  <meyering@lucent.com>
30114
30115         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
30116         if not defined.
30117         (xgethostname): Remove now-unnecessary #ifdef.
30118         Move declaration of `err' into loop where it's used.
30119
30120 2000-07-05  Paul Eggert  <eggert@twinsun.com>
30121         and Bruno Haible  <haible@clisp.cons.org>
30122
30123         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
30124         only if the test for an object-type mbstate_t fails.  This
30125         prevents us from mistakenly reporting that mbstate_t is a
30126         system object type after we "#define mbstate_t int" to work
30127         around its lack.
30128
30129 2000-07-05  Paul Eggert  <eggert@twinsun.com>
30130         and Bruno Haible  <haible@clisp.cons.org>
30131
30132         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
30133
30134 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
30135
30136         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
30137         to strerror_r.
30138         Include <ctype.h> for use of isalpha.
30139
30140 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
30141
30142         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
30143         by allocating a larger buffer. Test the gethostname return value for
30144         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
30145         returns an error and ENAMETOOLONG isn't defined.
30146
30147 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
30148
30149         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
30150         dimension.
30151
30152 2000-07-04  Jim Meyering  <meyering@lucent.com>
30153
30154         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
30155         of the deprecated AC_CHECKING.
30156
30157 2000-07-04  Jim Meyering  <meyering@lucent.com>
30158
30159         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
30160         Reported by Bruno Haible.
30161
30162 2000-07-04  Jim Meyering  <meyering@lucent.com>
30163
30164         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
30165         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
30166         lacks mbrtowc.
30167
30168 2000-07-03  Paul Eggert  <eggert@twinsun.com>
30169
30170         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
30171         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
30172
30173 2000-07-03  Paul Eggert  <eggert@twinsun.com>
30174         and Bruno Haible  <haible@clisp.cons.org>
30175
30176         * lib/quotearg.c (mbrtowc):
30177         Assign to *pwc, and return 1 only if result is nonzero.
30178         (iswprint): Use ISPRINT when substituting our own mbrtowc.
30179
30180 2000-07-03  Jim Meyering  <meyering@lucent.com>
30181
30182         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
30183
30184 2000-07-03  Jim Meyering  <meyering@lucent.com>
30185
30186         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
30187         This is necessary to get a definition of e.g., UTMP_FILE on
30188         HP-UX 10.20.
30189         From Bob Proulx.
30190
30191 2000-07-02  Jim Meyering  <meyering@lucent.com>
30192
30193         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
30194
30195         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
30196         AC_LIBOBJ(function_name).
30197         * m4/chown.m4: Likewise.
30198         * m4/fnmatch.m4: Likewise.
30199         * m4/ftruncate.m4: Likewise.
30200         * m4/getgroups.m4: Likewise.
30201         * m4/getline.m4: Likewise.
30202         * m4/group-member.m4: Likewise.
30203         * m4/jm-macros.m4: Likewise.
30204         * m4/lstat.m4: Likewise.
30205         * m4/malloc.m4: Likewise.
30206         * m4/memcmp.m4: Likewise.
30207         * m4/nanosleep.m4: Likewise.
30208         * m4/putenv.m4: Likewise.
30209         * m4/realloc.m4: Likewise.
30210         * m4/regex.m4: Likewise.
30211         * m4/stat.m4: Likewise.
30212         * m4/strftime.m4: Likewise.
30213
30214 2000-07-02  Jim Meyering  <meyering@lucent.com>
30215
30216         * lib/quotearg.c (mbstate_t): Don't define here.
30217
30218 2000-07-02  Jim Meyering  <meyering@lucent.com>
30219
30220         * lib/nanosleep.c (SIGCONT): Define if not already defined.
30221
30222 2000-07-01  Jim Meyering  <meyering@lucent.com>
30223
30224         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
30225
30226 2000-07-01  Jim Meyering  <meyering@lucent.com>
30227
30228         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
30229         problem.
30230
30231 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
30232
30233         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
30234         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
30235
30236 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
30237
30238         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
30239         per change in ../m4/ls-mntd-fs.m4.
30240         (read_filesystem_list): Ignore symbolic links.
30241
30242 2000-06-29  Jim Meyering  <meyering@lucent.com>
30243
30244         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
30245         for declaration of strcmp.
30246
30247         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
30248
30249         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
30250         Avoid warning by casting result to `char *' to remove `const'.
30251
30252 2000-06-28  Jim Meyering  <meyering@lucent.com>
30253
30254         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
30255         included by quotearg.c, for which we perform this test.  From
30256         Bruno Haible.
30257
30258 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
30259
30260         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
30261         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
30262         <utmpx.h> exists, put readutmp.o into LIBOBJS.
30263
30264 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
30265
30266         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
30267
30268 2000-06-26  Paul Eggert  <eggert@twinsun.com>
30269
30270         savedir now sets errno on failure and invokes xmalloc to get memory.
30271         Fix a couple of other minor bugs while we're at it.
30272
30273         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
30274         (NAMLEN): Remove macro.
30275         (malloc, realloc): Remove decls.
30276         (stpcpy): Likewise.
30277         ("xalloc.h"): Include.
30278         (NAME_SIZE_DEFAULT): New macro.
30279         (savedir): Use xmalloc / xrealloc to allocate memory.
30280         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
30281         Skip "" directory entries.
30282         Use strlen to calculate directory entry length, since the old method
30283         is rarely used these days and isn't worth supporting.
30284         Don't use a pointer after freeing it.
30285         Check for integer overflow when calculating allocation size.
30286         Use memcpy to copy entries, instead of stpcpy.
30287         Set errno properly when returning NULL.
30288         Check for readdir error.
30289
30290 2000-06-26  Jim Meyering  <meyering@lucent.com>
30291
30292         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
30293
30294 2000-06-25  Jim Meyering  <meyering@lucent.com>
30295
30296         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
30297         Linux header bug when _XOPEN_SOURCE is defined to 500.
30298
30299 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
30300
30301         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
30302         deficiency.
30303
30304 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
30305
30306         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
30307         Include xalloc.h.
30308         Don't include <stdlib.h>.  Don't declare malloc, realloc.
30309
30310 2000-06-24  Jim Meyering  <meyering@lucent.com>
30311
30312         * m4/strerror_r.m4: Revive this file -- to try out an experimental
30313         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
30314         for which strerror does return char*, but which lacks a conveniently
30315         accessible declaration of the function.  If the compile-test says
30316         strerror_r doesn't work, then resort to a `run'-test that works on
30317         BeOS and segfaults on DEC Unix.
30318
30319 2000-06-24  Jim Meyering  <meyering@lucent.com>
30320
30321         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
30322
30323 2000-06-23  Paul Eggert  <eggert@twinsun.com>
30324
30325         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
30326         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
30327
30328 2000-06-23  Paul Eggert  <eggert@twinsun.com>
30329
30330         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
30331         (mbrtowc, mbstate_t): Define substitutes if
30332         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
30333         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
30334         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
30335
30336 2000-06-23  Jim Meyering  <meyering@lucent.com>
30337
30338         * m4/afs.m4: Add missing AC_MSG_RESULT.
30339         Reported by Bruno Haible.
30340
30341         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
30342         Suggestion from Bruno Haible.
30343
30344 2000-06-23  Jim Meyering  <meyering@lucent.com>
30345
30346         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
30347
30348 2000-06-21  Jim Meyering  <meyering@lucent.com>
30349
30350         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
30351
30352 2000-06-21  Jim Meyering  <meyering@lucent.com>
30353
30354         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
30355         (noinst_HEADERS): Add getstr.h.
30356
30357         * lib/getline.c (getstr): Move into a separate file.
30358         * lib/getstr.c (getstr): New file, extracted from getline.c, with
30359         the following changes: new parameter, delim2; both delim[12]
30360         parameters have type `int', not `char'.  The latter would lose
30361         with 8-bit delimiters.
30362         * lib/getstr.h: New file.
30363
30364 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
30365
30366         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
30367         than 1024, return a memory chunk of least possible size, instead
30368         of size PATH_MAX + 2. In the loop, increment the size proportionally.
30369         Use free/xmalloc instead of xrealloc to avoid copying for very long
30370         paths.
30371
30372 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
30373
30374         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
30375         the empty string.
30376
30377 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
30378
30379         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
30380         address, not strdup.  Include <stdlib.h> and don't declare free().
30381
30382 2000-06-19  Jim Meyering  <meyering@lucent.com>
30383
30384         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
30385
30386 2000-06-18  Jim Meyering  <meyering@lucent.com>
30387
30388         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
30389
30390         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
30391         `checking whether...' message to be consistent with that of the
30392         lstat test.
30393
30394 2000-06-18  Jim Meyering  <meyering@lucent.com>
30395
30396         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
30397         Besides, these days every porting target provides a mkdir function.
30398
30399         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
30400         needed. (this snippet comes from src/system.h).
30401
30402 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
30403
30404         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
30405
30406 2000-06-15  Paul Eggert  <eggert@twinsun.com>
30407
30408         * lib/human.c (adjust_value): New function.
30409         (human_readable_inexact): Apply rounding style even when
30410         printing approximate values.
30411
30412 2000-06-14  Paul Eggert  <eggert@twinsun.com>
30413
30414         * lib/human.c (human_readable_inexact): Allow an input block
30415         size that is not a multiple of the output block size, and vice versa.
30416         Reported by Piergiorgio Sartor.
30417
30418 2000-06-14  Paul Eggert  <eggert@twinsun.com>
30419
30420         * lib/getdate.y (get_date): Apply relative times after time
30421         zone indicator, not before.  Reported by Todd A. Jacobs.
30422
30423 2000-06-13  Jim Meyering  <meyering@lucent.com>
30424
30425         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
30426
30427         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
30428
30429 2000-06-12  Paul Eggert  <eggert@twinsun.com>
30430
30431         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
30432
30433 2000-06-12  Jim Meyering  <meyering@lucent.com>
30434
30435         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
30436         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
30437         optional argument.
30438         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
30439         the optional argument, `lib'.
30440
30441 2000-06-08  Jim Meyering  <meyering@lucent.com>
30442
30443         * m4/largefile.m4: Remove file (now that it's part of autoconf).
30444
30445 2000-06-04  Paul Eggert  <eggert@twinsun.com>
30446
30447         Rewrite largefile configuration so that we don't need to run
30448         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
30449         AC_CANONICAL_HOST in configure.in -- jmm]
30450
30451         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
30452         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
30453         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
30454         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
30455         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
30456         All uses changed.
30457         Instead of inspecting the output of getconf, try to compile the
30458         test program without and with the macro definition.
30459         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
30460         for getconf.  Instead, check for the needed flags by compiling
30461         test programs.
30462
30463 2000-06-04  Paul Eggert  <eggert@twinsun.com>
30464
30465         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
30466
30467 2000-06-04  Jim Meyering  <meyering@lucent.com>
30468
30469         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
30470         SunOS 4.1.4 for which gid_t is an unsigned type.
30471
30472 2000-06-03  Jim Meyering  <meyering@lucent.com>
30473
30474         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
30475         now that autoconf requires that.
30476
30477         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
30478         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
30479         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
30480
30481 2000-06-03  Jim Meyering  <meyering@lucent.com>
30482
30483         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
30484
30485 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
30486
30487         * m4/glibc21.m4: New file.
30488         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
30489
30490 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
30491
30492         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
30493         newer, don't install charset.alias.
30494         * lib/config.charset: Change the Linux/glibc rules so they become empty
30495         on glibc-2.1 or newer.
30496
30497 2000-06-02  Jim Meyering  <meyering@lucent.com>
30498
30499         * lib/mountlist.c: Back out last change.  Instead, do this...
30500         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
30501         me_dummy member using the same `ignore'-testing code.
30502         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
30503         fs_type strings.
30504         From Mark D. Roth.
30505
30506 2000-05-29  Jim Meyering  <meyering@lucent.com>
30507
30508         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
30509         mounts with the `ignore' attribute.  Based on a patch from
30510         Mark D. Roth.
30511
30512 2000-05-28  Jim Meyering  <meyering@lucent.com>
30513
30514         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
30515         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
30516         * m4/stat.m4: Likewise.
30517         * m4/lstat.m4: Likewise.
30518         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
30519
30520         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
30521         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
30522
30523 2000-05-26  Jim Meyering  <meyering@lucent.com>
30524
30525         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
30526
30527 2000-05-24  Jim Meyering  <meyering@lucent.com>
30528
30529         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
30530         autoconf requires that.
30531         * m4/lib-check.m4: Likewise.
30532         * m4/jm-macros.m4: Likewise.
30533         * m4/strftime.m4: Likewise.
30534
30535         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
30536         AC_CHECK_DECLS, now that autoconf requires that.
30537
30538 2000-05-22  Jim Meyering  <meyering@lucent.com>
30539
30540         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
30541         * m4/lstat.m4: Likewise.
30542
30543 2000-05-22  Jim Meyering  <meyering@lucent.com>
30544
30545         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
30546
30547 2000-05-20  Jim Meyering  <meyering@lucent.com>
30548
30549         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
30550         (jm_PREREQ): Use it.
30551
30552 2000-05-18  Jim Meyering  <meyering@lucent.com>
30553
30554         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
30555         back, too, since it may have been modified by allocate_entry.
30556         (hash_delete): Rewrite to use neither the assignment operator
30557         nor the comma operator in an if-expression.
30558
30559 2000-05-15  Paul Eggert  <eggert@twinsun.com>
30560
30561         * lib/closeout.c:
30562         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
30563         Remove; no longer needed.
30564         "quotearg.h": Add include.
30565         (file_name): Do not bother to explicitly initialize to NULL; it's less
30566         efficient on some hosts.
30567         (close_stdout_status): Remove test as to whether stdout was already
30568         closed; it breaks for the case "echo x | sort >&-".
30569         Quote file name colons.
30570         Do not assume that _("write error") lacks format strings.
30571
30572 2000-05-15  Jim Meyering  <meyering@lucent.com>
30573
30574         * lib/version-etc.c (version_etc_copyright): Update the copyright
30575         string used in all --version output.
30576
30577 2000-05-14  Jim Meyering  <meyering@lucent.com>
30578
30579         * lib/closeout.c (close_stdout_set_file_name): New function.
30580         (close_stdout_status): Use new file-scoped global.
30581         Return right away if fstat says the stdout file descriptor is invalid.
30582         * lib/closeout.h (close_stdout_set_file_name): Declare.
30583
30584 2000-05-10  Jim Meyering  <meyering@lucent.com>
30585
30586         * lib/closeout.c [default_exit_status]: New file-scoped variable.
30587         (close_stdout_set_status): New function.
30588         * lib/closeout.h (close_stdout_set_status): Declare.
30589
30590 2000-05-09  Jim Meyering  <meyering@lucent.com>
30591
30592         * m4/gettext.m4: Rename this...
30593         * m4/libintl.m4: ...to this.
30594
30595 2000-05-08  Jim Meyering  <meyering@lucent.com>
30596
30597         * lib/long-options.c: Don't include closeout.h.
30598         (parse_long_options): Don't call close_stdout for --version.
30599
30600 2000-05-06  Paul Eggert  <eggert@twinsun.com>
30601
30602         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
30603         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
30604         2.1.3 bug.  This avoids a clash when files like regex.c define
30605         _GNU_SOURCE.
30606
30607 2000-05-06  Jim Meyering  <meyering@lucent.com>
30608
30609         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
30610         (AC_REPLACE_FUNCS): Add strnlen.
30611
30612         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
30613         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
30614
30615         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
30616         AC_SEARCH_LIBS call for nanosleep.
30617         (LIB_NANOSLEEP): Set and AC_SUBST.
30618
30619 2000-05-06  Jim Meyering  <meyering@lucent.com>
30620
30621         * lib/strnlen.c: Undefine __strnlen and strnlen.
30622         [!weak_alias]: Define __strnlen to strnlen.
30623
30624         * lib/atexit.c: New file, from libiberty.
30625
30626 2000-05-06  Jim Meyering  <meyering@lucent.com>
30627
30628         * lib/closeout.c (close_stdout_status): Also check for errors on the
30629         stderr stream.
30630
30631 2000-05-05  Jim Meyering  <meyering@lucent.com>
30632
30633         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
30634         AC_SEARCH_LIBS call for clock_gettime.
30635         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
30636
30637         * m4/search-libs.m4: Update from autoconf.
30638
30639         su doesn't work on Solaris 2.6.
30640         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
30641         <shadow.h>.  Reported by Dragos Harabor.
30642
30643 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
30644
30645         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
30646         memcpy instead of xmalloc, xrealloc, path_concat.
30647         (locale_charset): Treat empty environment variables as absent.
30648         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
30649
30650 2000-05-04  Jim Meyering  <meyering@lucent.com>
30651
30652         * lib/getopt.c: Update from glibc.
30653         * lib/obstack.c: Likewise.
30654         * lib/obstack.h: Likewise.
30655         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
30656         file
30657
30658         * lib/regex.h: Likewise.
30659         * lib/strndup.c: Likewise.
30660         * lib/strnlen.c: New file, from glibc.
30661
30662 2000-05-03  Jim Meyering  <meyering@lucent.com>
30663
30664         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
30665
30666 2000-05-02  Paul Eggert  <eggert@twinsun.com>
30667
30668         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
30669         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
30670         compile-time test, rather than inspecting host and OS, to
30671         decide whether to define _LARGEFILE_SOURCE.
30672
30673 2000-05-01  Jim Meyering  <meyering@lucent.com>
30674
30675         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
30676
30677         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
30678         Based on a patch from Bruno Haible.
30679
30680 2000-05-01  Jim Meyering  <meyering@lucent.com>
30681
30682         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
30683
30684 2000-04-29  Jim Meyering  <meyering@lucent.com>
30685
30686         * lib/path-concat.c: Declare strdup only if it's not defined.
30687         * lib/canon-host.c: Likewise.
30688
30689 2000-04-28  Jim Meyering  <meyering@lucent.com>
30690
30691         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
30692         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
30693         is included first, then limits.h is included by locale.h by libintl.h.
30694         From John David Anglin.
30695
30696 2000-04-25  Jim Meyering  <meyering@lucent.com>
30697
30698         * lib/makepath.c (S_IRWXUGO): Define.
30699         (make_path): Always perform explicit chmod if MODE specifies any
30700         of the `special' permission bits.  Prompted by a bug report against
30701         install from Mate Wierdl and Joost van Baal.
30702
30703 2000-04-18  Jim Meyering  <meyering@lucent.com>
30704
30705         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
30706         (jm_PREREQ): Use it.
30707
30708 2000-04-18  Jim Meyering  <meyering@lucent.com>
30709
30710         * lib/README: New file.
30711
30712         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
30713         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
30714
30715 2000-04-17  Jim Meyering  <meyering@lucent.com>
30716
30717         Get it right :-)
30718         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
30719         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
30720         Suggestion from Akim Demaille.
30721
30722 2000-04-17  Jim Meyering  <meyering@lucent.com>
30723
30724         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
30725         the definition of it to rpl_strftime also defined-away the system's
30726         declaration.
30727
30728 2000-04-15  Jim Meyering  <meyering@lucent.com>
30729
30730         Use `C' to denote so-called `contiguous' files, the same way
30731         that tar does.
30732         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
30733         (ftypelet): Use S_ISCTG.
30734         From Michael Deutschmann.
30735
30736 2000-04-14  Jim Meyering  <meyering@lucent.com>
30737
30738         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
30739         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
30740         clobbered.
30741
30742 2000-04-14  Jim Meyering  <meyering@lucent.com>
30743
30744         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
30745
30746 2000-04-13  Jim Meyering  <meyering@lucent.com>
30747
30748         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
30749         AH_VERBATIM to insert required #ifndef into config.h.in.
30750         Suggestion from Akim Demaille.
30751
30752 2000-04-12  Jim Meyering  <meyering@lucent.com>
30753
30754         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
30755         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
30756         Christian Krackowizer.
30757
30758         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
30759         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
30760         (AC_SYS_LARGEFILE): Require.
30761         (AM_C_PROTOTYPES): Require.
30762
30763 2000-04-08  Jim Meyering  <meyering@lucent.com>
30764
30765         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
30766         names don't conflict.  Reported by Eli Zaretskii.
30767
30768 2000-04-07  Jim Meyering  <meyering@lucent.com>
30769
30770         * lib/putenv.c: Move inclusion of errno.h so it follows that of
30771         sys/types.h, to work around system header problems on AIX 3.2.5.
30772         From Bruno Haible.
30773
30774 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
30775
30776         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
30777         bug.  Deal with the different error behavior of Irix iconv.
30778
30779 2000-04-05  Paul Eggert  <eggert@twinsun.com>
30780
30781         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
30782         IRIX if the installer said otherwise.
30783
30784 2000-04-05  Jim Meyering  <meyering@lucent.com>
30785
30786         Portability tweaks required for ultrix4.3.
30787         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
30788         (jm_CHECK_DECLS): Add getutent to the list of functions.
30789         (_jm_DECL_HEADERS): Add utmpx.h.
30790         From John David Anglin.
30791
30792         * m4/strftime.m4: Back out the 2000-04-02 change.
30793         Instead of that change, simply undefine putenv in the test program.
30794
30795 2000-04-05  Jim Meyering  <meyering@lucent.com>
30796
30797         Portability tweaks required for ultrix4.3.
30798         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
30799         getutent.
30800         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
30801         * lib/canon-host.c: Declare strdup.
30802         * lib/path-concat.c: Likewise.
30803         From John David Anglin.
30804
30805 2000-04-04  Jim Meyering  <meyering@lucent.com>
30806
30807         Be more DOS 8.3-friendly.
30808         * lib/ref-add.sin: Renamed from ref-add.sed.in.
30809         * lib/ref-del.sin: Renamed from ref-del.sed.in.
30810         * lib/Makefile.am: Reflect renaming.
30811         Reported by Eli Zaretskii.
30812
30813         Use a temporary file name that won't clash with `charset.alias'
30814         in the DOS 8.3 name space.
30815         * lib/Makefile.am (charset_tmp): Define.
30816         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
30817         (uninstall-local): Likewise.
30818         Reported by Eli Zaretskii.
30819
30820 2000-04-03  Jim Meyering  <meyering@lucent.com>
30821
30822         * m4/gettext.m4: Fix typo in comment.
30823
30824         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
30825         textutils/configure.in).  Suggestion from Paul Eggert.
30826         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
30827
30828 2000-04-02  Paul Eggert  <eggert@twinsun.com>
30829
30830         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
30831         variable in the shell rather than using putenv, which isn't
30832         portable.  This avoids the configure-time inter-test dependency
30833         on the potentially-renamed putenv function.
30834
30835 2000-03-30  Paul Eggert  <eggert@twinsun.com>
30836
30837         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
30838         before checking struct stat.st_blksize, so that
30839         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
30840
30841 2000-03-29  Paul Eggert  <eggert@twinsun.com>
30842
30843         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
30844         since strftime.c uses HAVE_STRFTIME to decide whether to use
30845         the underlying strftime.
30846
30847 2000-03-29  Paul Eggert  <eggert@twinsun.com>
30848
30849         * lib/time/strftime.c (my_strftime): Make sure we call the system
30850         strftime, not ourselves, when invoking the underlying strftime.
30851
30852 2000-03-24  Jim Meyering  <meyering@lucent.com>
30853
30854         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
30855         (charset_alias): Define.
30856         (install-exec-local): Factor out common code.
30857         (uninstall-local): Split lines longer than 80.
30858         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
30859         (SUFFIXES): Define.
30860         (.sed.in.sed): New rule.  Don't redirect directly to $@.
30861         (CLEANFILES): Add ref-add.sed and ref-del.sed.
30862
30863 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
30864
30865         * lib/config.charset: Output a line containing "Packages using this
30866         file".
30867         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
30868         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
30869         ref-del.sed): New rules.
30870
30871 2000-03-17  Jim Meyering  <meyering@lucent.com>
30872
30873         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
30874         Otherwise, include <strings.h>
30875
30876 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
30877
30878         * lib/unicodeio.c (utf8_wctomb): New function.
30879         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
30880         format instead of in UCS-4 with platform dependent endianness.
30881
30882 2000-03-10  Jim Meyering  <meyering@lucent.com>
30883
30884         * m4/lib-check.m4: Look for getspnam in -lgen, too.
30885         From Marco Franzen.
30886
30887 2000-03-07  Paul Eggert  <eggert@twinsun.com>
30888
30889         * lib/savedir.c (savedir): Work even if directory size is
30890         negative; this can happen with some screwy NFS configurations.
30891
30892 2000-03-06  Jim Meyering  <meyering@lucent.com>
30893
30894         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
30895         if it's NULL (because we ran out of memory).  From Bruno Haible.
30896
30897 2000-03-05  Jim Meyering  <meyering@lucent.com>
30898
30899         * lib/localcharset.c ("path-concat.h"): Include.
30900         (get_charset_aliases): Use path_concat instead of ANSI string
30901         concatenation.
30902
30903         * lib/unicodeio.h (PARAMS): Define.
30904         Use it to guard prototype.
30905
30906 2000-03-04  Jim Meyering  <meyering@lucent.com>
30907
30908         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
30909         for lib/localcharset.c.
30910
30911 2000-03-04  Jim Meyering  <meyering@lucent.com>
30912
30913         * lib/Makefile.am (install-exec-local): Create $(libdir) before
30914         installing into it.
30915         (uninstall-local): Uncomment this rule so `make distcheck' works
30916         once again.
30917
30918         * lib/unicodeio.c (<errno.h>): Include it.
30919         (errno): Declare if not defined.
30920
30921         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
30922
30923         * lib/config.charset: New version, incorporating remarks from a linux
30924         i18n mailing list.  From Bruno Haible.
30925
30926 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
30927
30928         * m4/codeset.m4: New file.
30929         * m4/iconv.m4: New file.
30930         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
30931
30932 2000-03-03  Jim Meyering  <meyering@lucent.com>
30933
30934         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
30935
30936 2000-03-02  Jim Meyering  <meyering@lucent.com>
30937
30938         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
30939         the messages come out on separate lines.
30940
30941         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
30942         rather than jm_CHECK_DECLARATIONS.
30943         * m4/decl.m4: Remove now-unused file.
30944
30945         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
30946         geteuid.
30947
30948 2000-03-02  Jim Meyering  <meyering@lucent.com>
30949
30950         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
30951
30952 2000-03-01  Jim Meyering  <meyering@lucent.com>
30953
30954         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
30955         * lib/unicodeio.c: Likewise.
30956
30957 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
30958
30959         * lib/config.charset: New file.
30960         * lib/localcharset.c: New file.
30961         * lib/unicodeio.h, lib/unicodeio.c: New files.
30962         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
30963         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
30964         (noinst_HEADERS): Add unicodeio.h.
30965         (all-local, install-exec-local, charset.alias): New targets.
30966
30967 2000-02-28  Paul Eggert  <eggert@twinsun.com>
30968
30969         * lib/quotearg.c (ALERT_CHAR): New macro.
30970         (quotearg_buffer_restyled): Use it.
30971
30972 2000-02-27  Jim Meyering  <meyering@lucent.com>
30973
30974         * m4/check-decl.m4: Add getenv to the list.
30975
30976 2000-02-27  Jim Meyering  <meyering@lucent.com>
30977
30978         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
30979         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
30980
30981         * lib/backupfile.c: Guard inclusion of stdlib.h with
30982         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
30983         Declare malloc if needed.
30984
30985         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
30986         `#ifndef HAVE_DECL..'
30987         now that autoconf always defines the HAVE_DECL_ symbols.
30988         * lib/human.c: Likewise.
30989         * lib/same.c: Likewise.
30990         * lib/strtoumax.c: Likewise.
30991
30992         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
30993         declaration check was not run.
30994         * lib/hash.c: Likewise.
30995         * lib/human.c: Likewise.
30996         * lib/same.c: Likewise.
30997         * lib/strtoumax.c: Likewise.
30998
30999         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
31000         `.', then first look up the entire `.'-containing string as a login
31001         name.
31002
31003 2000-02-23  Jim Meyering  <meyering@lucent.com>
31004
31005         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
31006         in place of my hack.
31007
31008 2000-02-18  Paul Eggert  <eggert@twinsun.com>
31009
31010         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
31011         (textint): New typedef.
31012         (parser_control): Member year changed from int to textint.
31013         All uses changed.
31014         (YYSTYPE): Removed; replaced by %union with int and textint members.
31015         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
31016         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
31017         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
31018         (tSNUMBER, tUNUMBER): Now of type <textintval>.
31019         (date, number, to_year): Use width of number in digits, not its value,
31020         to determine whether it's a 2-digit year, or a 2-digit time.
31021         (yylex): Store number of digits of numeric tokens.
31022         Reported by John Kendall.
31023
31024         (parser_control): Changed from struct parser_control to typedef (for
31025         consistency).  All uses changed.
31026
31027         (tID): Removed; not used.
31028         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
31029
31030 2000-02-14  Paul Eggert  <eggert@twinsun.com>
31031
31032         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
31033         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
31034
31035 2000-02-12  Jim Meyering  <meyering@lucent.com>
31036
31037         * lib/userspec.c (ISDIGIT): Define it.
31038         (isdigit): Remove definition.
31039         (is_number): Use ISDIGIT, not isdigit.
31040         <libintl.h>: Include.
31041         (_ and N_): Define.
31042         (parse_user_spec): Mark translatable strings.
31043
31044 2000-02-10  Jim Meyering  <meyering@lucent.com>
31045
31046         With these changes, nanosleep.[ch] are finally enough like the other
31047         lib/* replacement files to compile on a few more losing systems.
31048
31049         * lib/nanosleep.h: Don't include config.h.
31050         Remove prototype from declaration of nanosleep.
31051         (PARAMS): Remove now-unneeded definition.
31052         * lib/nanosleep.c: #undef nanosleep.
31053         (rpl_nanosleep): Rename from nanosleep.
31054
31055 2000-02-10  Jim Meyering  <meyering@lucent.com>
31056
31057         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
31058         gnu_nanosleep to rpl_nanosleep.
31059
31060 2000-02-09  Jim Meyering  <meyering@lucent.com>
31061
31062         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
31063         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
31064
31065 2000-02-08  Akim Demaille  <akim@epita.fr>
31066
31067         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
31068         `[' and `]' and remove uses of `changequote'.
31069         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
31070         (AC_SYS_LARGEFILE): Likewise.
31071         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
31072         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
31073         of changequote.
31074         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
31075         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
31076         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
31077         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
31078
31079 2000-02-05  Jim Meyering  <meyering@lucent.com>
31080
31081         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
31082         Remove explicit use of AC_HEADER_TIME.  It is required by
31083         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
31084         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
31085         in autoconf whereby the expansion of the latter ended up preceding
31086         the expansion of its prerequisite, AC_HEADER_TIME.
31087         Reported by Volker Borchert.
31088
31089 2000-02-03  Jim Meyering  <meyering@lucent.com>
31090
31091         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
31092
31093 2000-02-03  Jim Meyering  <meyering@lucent.com>
31094
31095         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
31096         rather than with `#if HAVE_UTMPNAME'.
31097
31098 2000-02-02  Jim Meyering  <meyering@lucent.com>
31099
31100         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
31101         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
31102         Reported by Eli Zaretskii.
31103
31104 2000-02-01  Jim Meyering  <meyering@lucent.com>
31105
31106         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
31107
31108 2000-01-31  Jim Meyering  <meyering@lucent.com>
31109
31110         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
31111         functions.  Add the time.h and sys/time.h headers along with the
31112         AC_REQUIRE'ment of AC_HEADER_TIME.
31113
31114 2000-01-31  Jim Meyering  <meyering@lucent.com>
31115
31116         * lib/nanosleep.h (nanosleep): Guard declaration with
31117         `#if ! HAVE_DECL_NANOSLEEP'.
31118         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
31119         the declaration in that vendor's sys/timers.h.
31120         Reported by Christian Krackowizer.
31121
31122         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
31123         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
31124         (ISPRINT): Likewise.
31125         Reported by Tom Tromey.
31126
31127 2000-01-30  Jim Meyering  <meyering@lucent.com>
31128
31129         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
31130
31131         * m4/prereq.m4 (utmp_includes): Define.
31132         Check for ut_user and ut_name members in both struct utmpx
31133         and struct utmp.
31134
31135 2000-01-30  Jim Meyering  <meyering@lucent.com>
31136
31137         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
31138         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
31139         header files where only utmpx.ut_user is declared.
31140
31141         * lib/readutmp.h (UT_USER): Define.
31142
31143 2000-01-29  Jim Meyering  <meyering@lucent.com>
31144
31145         * m4/lib-check.m4: New file containing library-related checks from
31146         fileutils and sh-utils (textutils had none).
31147
31148 2000-01-28  Jim Meyering  <meyering@lucent.com>
31149
31150         * m4/perl.m4: Change format of warning message to look more like that
31151         from the missing script.  Suggestion from François Pinard.
31152
31153 2000-01-25  Jim Meyering  <meyering@lucent.com>
31154
31155         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
31156         well as time.h in the compile check.
31157         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
31158         Fix typo in cross-compiling case: s/yes/no/.
31159
31160 2000-01-23  Jim Meyering  <meyering@lucent.com>
31161
31162         * m4/jm-macros.m4: Move df-related tests here from
31163         fileutils/configure.in
31164
31165         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
31166         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
31167
31168         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
31169         s/space/ac_fsusage_space/.
31170         (jm_FILE_SYSTEM_USAGE): Take two parameters.
31171
31172         * m4/ftruncate.m4: New file (derived from part of
31173         fileutils/configure.in).
31174         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
31175         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
31176
31177         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
31178         AC_SUBST these here, rather than just in sh-util/configure.in, so
31179         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
31180         all the same.
31181         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
31182         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
31183         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
31184         (AC_SUBST(POW_LIBM)): Likewise.
31185         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
31186
31187 2000-01-23  Jim Meyering  <meyering@lucent.com>
31188
31189         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
31190         obstack.c.
31191
31192 2000-01-22  Jim Meyering  <meyering@lucent.com>
31193
31194         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
31195
31196         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
31197
31198         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
31199         configure.in
31200         (AC_CHECK_HEADERS): Likewise for sh-utils.
31201         (AC_CHECK_HEADERS): Likewise for textutils.
31202         Merge the three lists of headers.
31203
31204         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
31205         from fileutils' configure.in.
31206
31207         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
31208         code. Moved tests into their own function (_jm_DECL_HEADERS) in
31209         check-decl.m4.
31210
31211         * m4/check-decl.m4: Use #if rather than #ifdef.
31212         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
31213         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
31214         (_jm_DECL_HEADERS): Define new function.
31215         (jm_CHECK_DECLARATIONS): Require it.
31216
31217 2000-01-22  Jim Meyering  <meyering@lucent.com>
31218
31219         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
31220         [! HAVE_DECL_STRTOULL]: Declare strtoull.
31221         Required for some AIX systems.  Reported by Christian Krackowizer.
31222         [TESTING] (main): New function.
31223
31224         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
31225         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
31226         letters.
31227
31228         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
31229         iswprint.
31230
31231         * lib/strverscmp.c (ISDIGIT): Define.
31232         (strverscmp): Use ISDIGIT, not isdigit.
31233
31234 2000-01-19  Jim Meyering  <meyering@lucent.com>
31235
31236         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
31237         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
31238         defines `struct timespec' in <sys/time.h>
31239
31240         * m4/c-bs-a.m4: Remove uses of changequote altogether.
31241         Thanks to Akim for explaining.
31242
31243 2000-01-17  Paul Eggert  <eggert@twinsun.com>
31244
31245         * lib/nanosleep.c (nanosleep):
31246         Don't use SA_INTERRUPT to decide whether to call sigaction, as
31247         POSIX.1 doesn't require SA_INTERRUPT and some systems
31248         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
31249         it's been part of POSIX.1 since day 1 (in 1988).
31250
31251 2000-01-17  Jim Meyering  <meyering@lucent.com>
31252
31253         * lib/interlock: Remove unused file.  Reported by François Pinard.
31254
31255 2000-01-16  Paul Eggert  <eggert@twinsun.com>
31256
31257         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
31258         alert, backslash, formfeed, and vertical tab unnecessarily in
31259         shell quoting style.
31260
31261 2000-01-16  Jim Meyering  <meyering@lucent.com>
31262
31263         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
31264         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
31265         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
31266         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
31267
31268 2000-01-16  Jim Meyering  <meyering@lucent.com>
31269
31270         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
31271         because the latter didn't work.
31272
31273 2000-01-15  Jim Meyering  <meyering@lucent.com>
31274
31275         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
31276         (AC_REPLACE_FUNCS): Add memcpy and memset.
31277         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
31278         Add strpbrk.
31279         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
31280
31281 2000-01-12  Jim Meyering  <meyering@lucent.com>
31282
31283         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
31284         (jm_PREREQ): Use it.
31285         (jm_PREREQ_READUTMP): New macro.
31286         (jm_PREREQ): Use it.
31287
31288 2000-01-11  Paul Eggert  <eggert@twinsun.com>
31289
31290         Quote multibyte characters correctly.
31291         * m4/c-bs-a.m4: New file.
31292         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
31293         (jm_PREREQ): Use it.
31294
31295 2000-01-11  Paul Eggert  <eggert@twinsun.com>
31296
31297         * m4/uintmax_t.m4: Port to autoconf 2.13.
31298
31299 2000-01-08  Jim Meyering  <meyering@ascend.com>
31300
31301         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
31302         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
31303
31304 2000-01-04  Jim Meyering  <meyering@ascend.com>
31305
31306         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
31307         jm_STRUCT_DIRENT_D_TYPE.
31308         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
31309         jm_STRUCT_DIRENT_D_INO.
31310         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
31311         jm_STRUCT_UTIMBUF.
31312         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
31313         renamings.
31314         * m4/utime.m4: Likewise.
31315
31316         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
31317         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
31318
31319 2000-01-03  Paul Eggert  <eggert@twinsun.com>
31320
31321         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
31322         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
31323
31324 2000-01-02  Jim Meyering  <meyering@ascend.com>
31325
31326         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
31327         remember if this is necessary.
31328
31329 1999-12-26  Jim Meyering  <meyering@ascend.com>
31330
31331         * m4/jm-macros.m4: Use it here.
31332         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
31333
31334 1999-12-23  Jim Meyering  <meyering@ascend.com>
31335
31336         * m4/jm-macros.m4: Check for clock_gettime (moved from
31337         fileutils/configure.in)
31338         Check for gettimeofday.
31339
31340 1999-12-20  Jim Meyering  <meyering@ascend.com>
31341
31342         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
31343         autoconf-2.14a-1999-12-20.
31344
31345 1999-12-19  Jim Meyering  <meyering@ascend.com>
31346
31347         * m4/lstat-slash.m4: New file.
31348         * m4/jm-macros.m4: Use the new macro:
31349         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
31350
31351 1999-12-07  Jim Meyering  <meyering@ascend.com>
31352
31353         * m4/perl.m4: Require that File::Compare be available, too.
31354         Too many systems seem to lack it.
31355
31356         * m4/strftime.m4: Add checks for most of the cpp macros tested in
31357         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
31358
31359 1999-11-18  Paul Eggert  <eggert@twinsun.com>
31360
31361         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
31362         problem with the QNX 4.25 shell, which doesn't propagate exit
31363         status of failed commands inside shell assignments.
31364
31365 1999-11-17  Jim Meyering  <meyering@ascend.com>
31366
31367         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
31368
31369 1999-11-07  Jim Meyering  <meyering@ascend.com>
31370
31371         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
31372
31373 1999-11-06  Jim Meyering  <meyering@ascend.com>
31374
31375         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
31376         * m4/jm-macros.m4 (jm_MACROS): Use it here.
31377
31378 1999-11-05  Jim Meyering  <meyering@ascend.com>
31379
31380         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
31381         configure.in of textutils, fileutils, and sh-utils into this one
31382         (shared between those packages) file.
31383         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
31384         AC_STRUCT_ST_BLKSIZE.
31385
31386 1999-11-03  Jim Meyering  <meyering@ascend.com>
31387
31388         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
31389         of AC_CHECK_TYPE checks includes unistd.h.
31390         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
31391         Suggestion from Akim Demaille.
31392
31393 1999-10-30  Jim Meyering  <meyering@ascend.com>
31394
31395         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
31396         m4-quoted string.
31397         * m4/ls-mntd-fs.m4: Likewise.
31398         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
31399         * m4/jm-winsz1.m4: Likewise.
31400
31401         * m4/const.m4: Remove file, since the fix made it into the experimental
31402         version of autoconf.
31403         * m4/mktime.m4: Likewise.
31404
31405         * m4/check-type.m4: Remove file, now that the latest version of
31406         AC_CHECK_TYPE takes a third arg to specify additional #includes.
31407
31408         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
31409         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
31410         AC_CHECK_TYPE.
31411
31412 1999-10-04  Jim Meyering  <meyering@ascend.com>
31413
31414         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
31415
31416 1999-09-22  Paul Eggert  <eggert@twinsun.com>
31417
31418         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
31419         2.95.1 bug with HP-UX 10.20.
31420
31421 1999-09-17  Jim Meyering  <meyering@ascend.com>
31422
31423         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
31424         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
31425         due to missing strdup (against sh-utils-2.0).
31426
31427 1999-08-29  Jim Meyering  <meyering@ascend.com>
31428
31429         * m4/jm-macros.m4: Require jm_BISON.
31430         * m4/bison.m4: New file.
31431
31432 1999-08-17  Paul Eggert  <eggert@twinsun.com>
31433
31434         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
31435         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
31436
31437 1999-08-05  Jim Meyering  <meyering@ascend.com>
31438
31439         * m4/getline.m4: Rename test file from conftestdata to conftest.data
31440         to avoid conflicts with `conftest' on 8+3 filesystems.
31441         Suggestion from Eli Zaretskii.
31442
31443 1999-08-04  Jim Meyering  <meyering@ascend.com>
31444
31445         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
31446         fileutils and sh-utils (textutils's getline test was inadequate).
31447         (AM_FUNC_GETLINE): Run this test.
31448         (AC_CHECK_FUNCS): Check for getdelim.
31449         Reported by Bob Proulx.
31450
31451 1999-08-02  Jim Meyering  <meyering@ascend.com>
31452
31453         * m4/jm-macros.m4: Add a comment.
31454
31455 1999-08-01  Paul Eggert  <eggert@twinsun.com>
31456
31457         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
31458         <inttypes.h> defines strtoumax as a macro (and not as a
31459         function).
31460
31461 1999-08-01  Paul Eggert  <eggert@twinsun.com>
31462
31463         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
31464         that we can shift, multiply and divide unsigned long long
31465         values; Ultrix cc can't do it.
31466
31467 1999-08-01  Paul Eggert  <eggert@twinsun.com>
31468
31469         * m4/mktime.m4: New file, which is a preview of what should appear
31470         in the next public autoconf release.
31471
31472 1999-08-01  Paul Eggert  <eggert@twinsun.com>
31473
31474         * m4/lfs.m4: Remove this file.
31475         * m4/largefile.m4: New file.  It contains the old contents of
31476         lfs.m4, except that all names with prefix AC_LFS have been
31477         changed to use the prefix AC_SYS_LARGEFILE instead, to be
31478         compatible with future autoconf versions.  Also, some minor m4
31479         quoting problems have been fixed.
31480
31481 1999-08-01  Paul Eggert  <eggert@twinsun.com>
31482
31483         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
31484         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
31485         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
31486         and simplify the shell code.
31487
31488 1999-08-01  Jim Meyering  <meyering@ascend.com>
31489
31490         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
31491         m4.
31492
31493 1999-07-20  Jim Meyering  <meyering@ascend.com>
31494
31495         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
31496
31497 1999-07-15  Jim Meyering  <meyering@ascend.com>
31498
31499         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
31500
31501 1999-05-22  Jim Meyering  <meyering@ascend.com>
31502
31503         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
31504
31505 1999-05-20  Jim Meyering  <meyering@ascend.com>
31506
31507         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
31508         Add a colon after each `then' in case $4 is empty.
31509
31510 1999-05-16  Jim Meyering  <meyering@ascend.com>
31511
31512         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
31513
31514 1999-05-10  Jim Meyering  <meyering@ascend.com>
31515
31516         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
31517
31518         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
31519         AC_FUNC_MKTIME.
31520
31521 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
31522
31523         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
31524
31525 1999-05-04  Paul Eggert  <eggert@twinsun.com>
31526
31527         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
31528         not CPPFLAGS, so that linking works correctly in IRIX.
31529
31530 1999-04-30  Paul Eggert  <eggert@twinsun.com>
31531
31532         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
31533
31534 1999-04-20  Paul Eggert  <eggert@twinsun.com>
31535
31536         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
31537         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
31538         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
31539         jm_AC_TYPE_UNSIGNED_LONG_LONG.
31540         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
31541
31542         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
31543
31544 1999-04-20  Jim Meyering  <meyering@ascend.com>
31545
31546         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
31547         AC_REPLACE xstroull if necessary.  From Paul Eggert.
31548         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
31549
31550 1999-04-18  Jim Meyering  <meyering@ascend.com>
31551
31552         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
31553         * m4/jm-macros.m4: Use it.
31554
31555 1999-04-06  Jim Meyering  <meyering@ascend.com>
31556
31557         * m4/strftime.m4: Remove test for %f.
31558
31559 1999-03-29  Jim Meyering  <meyering@ascend.com>
31560
31561         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
31562         superset of the AC_TYPE_* checks in the textutils, fileutils,
31563         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
31564         AC_TYPE_PID_T.
31565
31566 1999-03-28  Jim Meyering  <meyering@ascend.com>
31567
31568         * m4/jm-macros.m4: Define GNU_PACKAGE here.
31569         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
31570         replaced e.g., in the *.sh files of the sh-utils.
31571
31572 1999-03-20  Jim Meyering  <meyering@ascend.com>
31573
31574         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
31575         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
31576         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
31577
31578 1999-03-19  Jim Meyering  <meyering@ascend.com>
31579
31580         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
31581
31582 1999-03-12  Jim Meyering  <meyering@ascend.com>
31583
31584         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
31585
31586 1999-03-07  Jim Meyering  <meyering@ascend.com>
31587
31588         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
31589         declared.
31590
31591 1999-02-17  Jim Meyering  <meyering@ascend.com>
31592
31593         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
31594         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
31595
31596 1999-02-07  Jim Meyering  <meyering@ascend.com>
31597
31598         * m4/group-member.m4: New file -- extracted from sh-utils'
31599         configure.in.
31600
31601         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
31602         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
31603
31604 1999-02-06  Jim Meyering  <meyering@ascend.com>
31605
31606         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
31607         * m4/fnmatch.m4: Likewise.
31608         * m4/getgroups.m4: Likewise.
31609         * m4/lstat.m4: Likewise.
31610         * m4/malloc.m4: Likewise.
31611         * m4/putenv.m4: Likewise.
31612         * m4/realloc.m4: Likewise.
31613         * m4/regex.m4: Likewise.
31614         * m4/stat.m4: Likewise.
31615         * m4/strftime.m4: Likewise.
31616         Suggestion from Alain Magloire.
31617
31618         * m4/chown.m4: Use `.$ac_objext', not `.o'.
31619         * m4/fnmatch.m4: Likewise.
31620         * m4/getgroups.m4: Likewise.
31621         * m4/getline.m4: Likewise.
31622         * m4/lstat.m4: Likewise.
31623         * m4/malloc.m4: Likewise.
31624         * m4/memcmp.m4: Likewise.
31625         * m4/putenv.m4: Likewise.
31626         * m4/realloc.m4: Likewise.
31627         * m4/regex.m4: Likewise.
31628         * m4/stat.m4: Likewise.
31629         * m4/strftime.m4: Likewise.
31630         Suggestion from Alain Magloire.
31631
31632         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
31633         an argument.
31634
31635         * m4/regex.m4: Add a run-time Test for proper operation of
31636         re_compile_pattern.
31637
31638 1999-01-31  Jim Meyering  <meyering@ascend.com>
31639
31640         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
31641
31642 1999-01-30  Jim Meyering  <meyering@ascend.com>
31643
31644         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
31645
31646         * m4/jm-mktime.m4: Make this a wrapper around the official
31647         AM_FUNC_MKTIME rather than my private copy, now that the official one
31648         is up to date.
31649         * m4/mktime.m4: Remove file.
31650
31651         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
31652         * m4/uptime.m4: Likewise.
31653         * m4/uintmax_t.m4: Likewise.
31654
31655 1999-01-28  Jim Meyering  <meyering@ascend.com>
31656
31657         * m4/jm-macros.m4: Use jm_AFS.
31658         * m4/afs.m4: New file (from fileutils' configure.in).
31659
31660         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
31661         * m4/chown.m4: Likewise.
31662         * m4/d-ino.m4: Likewise.
31663         * m4/d-type.m4: Likewise.
31664         * m4/fnmatch.m4: Likewise.
31665         * m4/getgroups.m4: Likewise.
31666         * m4/gettext.m4: Likewise.
31667         * m4/jm-mktime.m4: Likewise.
31668         * m4/jm-winsz2.m4: Likewise.
31669         * m4/lcmessage.m4: Likewise.
31670         * m4/ls-mntd-fs.m4: Likewise.
31671         * m4/malloc.m4: Likewise.
31672         * m4/memcmp.m4: Likewise.
31673         * m4/putenv.m4: Likewise.
31674         * m4/realloc.m4: Likewise.
31675         * m4/st_mtim.m4: Likewise.
31676         * m4/strftime.m4: Likewise.
31677
31678 1999-01-16  Jim Meyering  <meyering@ascend.com>
31679
31680         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
31681         (ARGMATCH_DIE_DECL): Define.
31682
31683 1999-01-12  Jim Meyering  <meyering@ascend.com>
31684
31685         * m4/Makefile.am.in: Rewrite to avoid using fmt.
31686         Reported by Lars Hecking.
31687
31688 1999-01-10  Jim Meyering  <meyering@ascend.com>
31689
31690         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
31691         gross kludge.
31692         * m4/inttypes_h.m4: Likewise.
31693         * m4/lstat.m4: Likewise.
31694         * m4/malloc.m4: Likewise.
31695         * m4/readdir.m4: Likewise.
31696         * m4/realloc.m4: Likewise.
31697         * m4/st_dm_mode.m4: Likewise.
31698         * m4/stat.m4: Likewise.
31699         * m4/utimbuf.m4: Likewise.
31700         * m4/utimes.m4: Likewise.
31701
31702         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
31703         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
31704         comments in config.h.in are meaningful.
31705
31706         * m4/jm-macros.m4: Require autoconf-2.13 here.
31707
31708         * m4/regex.m4: By default, don't use the included regex.c on systems
31709         with glibc 2.  Suggestion from Uli Drepper.
31710
31711 1999-01-02  Jim Meyering  <meyering@ascend.com>
31712
31713         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
31714
31715 1998-12-18  Jim Meyering  <meyering@ascend.com>
31716
31717         * m4/Makefile.am.in (Makefile.am): Simplify rule.
31718         Based on a suggestion from Lars Hecking.
31719
31720 1998-11-16  Paul Eggert  <eggert@twinsun.com>
31721
31722         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
31723
31724 1998-11-16  Jim Meyering  <meyering@ascend.com>
31725
31726         * m4/lfs.m4: Double-quote the `uname...` expression.
31727
31728 1998-11-14  Jim Meyering  <meyering@ascend.com>
31729
31730         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
31731         * m4/stat.m4: Likewise.
31732
31733 1998-11-03  Jim Meyering  <meyering@ascend.com>
31734
31735         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
31736         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
31737
31738 1998-10-18  Jim Meyering  <meyering@ascend.com>
31739
31740         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
31741
31742 1998-10-17  Jim Meyering  <meyering@ascend.com>
31743
31744         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
31745         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
31746         calls for those previously hard-coded headers.  Instead, take a new
31747         parameter.
31748         (jm_CHECK_DECLARATIONS): Reflect interface change.
31749         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
31750         (jm_CHECK_DECL_LOCALTIME_R): New macro.
31751
31752         * m4/mktime.m4: Test for spring-forward gap before long-running test.
31753
31754 1998-10-14  Jim Meyering  <meyering@ascend.com>
31755
31756         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
31757         instead of "TZ=America/Vancouver".  From Paul Eggert.
31758
31759 1998-10-11  Jim Meyering  <meyering@ascend.com>
31760
31761         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
31762         This adds a test for a recently added compatibility fix for mktime.c.
31763         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
31764
31765 1998-09-27  Jim Meyering  <meyering@ascend.com>
31766
31767         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
31768
31769         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
31770         ../configure.in, including a change from Gordon Matzigkeit to allow
31771         cross-compiling for the Hurd.
31772
31773         * m4/glibc.m4: New file/macro to test for the GNU C Library
31774         versions 1 and 2.  From Gordon Matzigkeit.
31775         Indent.
31776
31777 1998-09-21  Jim Meyering  <meyering@ascend.com>
31778
31779         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
31780
31781 1998-08-18  Paul Eggert  <eggert@twinsun.com>
31782
31783         Port nanosecond-resolution times to UnixWare 2.1.2 and
31784         pedantic Solaris 2.6.
31785
31786         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
31787         AC_STRUCT_ST_MTIM.
31788         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
31789         Generate name of ns member, instead of just 1 or undef.
31790         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
31791
31792 1998-08-15  Jim Meyering  <meyering@ascend.com>
31793
31794         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
31795         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
31796         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
31797         instead of jm_TYPE_SSIZE_T.
31798
31799 1998-08-12  Jim Meyering  <meyering@ascend.com>
31800
31801         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
31802
31803 1998-08-02  Jim Meyering  <meyering@ascend.com>
31804
31805         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
31806         in acconfig.h manually.
31807
31808 1998-07-31  Paul Eggert  <eggert@twinsun.com>
31809
31810         * m4/st_mtim.m4: New file.
31811
31812 1998-07-28  Jim Meyering  <meyering@ascend.com>
31813
31814         * m4/utimes.m4: Undef stat.
31815
31816 1998-07-25  Jim Meyering  <meyering@ascend.com>
31817
31818         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
31819         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
31820
31821 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
31822
31823         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
31824         uid and gid actually remain unchanged.
31825
31826 1998-07-07  Jim Meyering  <meyering@ascend.com>
31827
31828         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
31829
31830 1998-07-04  Jim Meyering  <meyering@ascend.com>
31831
31832         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
31833         to prove that this macro can be used in packages without regex.c.
31834
31835 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
31836
31837         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
31838         is to be used.
31839
31840 1998-07-03  Jim Meyering  <meyering@ascend.com>
31841
31842         * m4/gettext.m4: Add -lintl if it's found to be necessary.
31843
31844         * m4/gettext.m4: New file -- from gettext-0.10.35.
31845         * m4/lcmessage.m4: Likewise.
31846         * m4/progtest.m4: Likewise.
31847
31848         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
31849         * m4/jm-macros.m4: Require the new macro.
31850
31851 1998-06-29  Jim Meyering  <meyering@ascend.com>
31852
31853         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
31854         for the definition of NGROUPS (used in a system header included
31855         by sys/mount.h).
31856
31857 1998-06-28  Jim Meyering  <meyering@ascend.com>
31858
31859         * m4/ls-mntd-fs.m4: New file.
31860         * m4/fstypename.m4: New file.
31861
31862         * m4/jm-macros.m4: Require the new macro.
31863         * m4/jm-glibc-io.m4: New file.
31864
31865 1998-05-19  Jim Meyering  <meyering@ascend.com>
31866
31867         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
31868         * m4/lchown.m4: New file.
31869
31870         * m4/Makefile.am.in: New file.
31871         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
31872
31873 1998-05-14  Jim Meyering  <meyering@ascend.com>
31874
31875         * m4/Makefile.am (EXTRA_DIST): Add them.
31876         * m4/jm-macros.m4: New file.
31877         * m4/utimbuf.m4: New file.
31878
31879 1998-05-12  Jim Meyering  <meyering@ascend.com>
31880
31881         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
31882
31883 1998-05-11  Jim Meyering  <meyering@ascend.com>
31884
31885         * m4/isc-posix.m4: New file.
31886
31887 1998-05-10  Jim Meyering  <meyering@ascend.com>