2007-01-29 Yoann Vandoorselaere <yoann@prelude-ids.org>
[gnulib.git] / ChangeLog
1 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
2
3         * modules/strptime: New file.
4         * lib/strptime.h: New file.
5         * lib/strptime.c: New file.
6         * m4/strptime.m4: New file.
7
8 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
9
10         * MODULES.html.sh: New module mpsort.
11         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
12
13         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
14         a circularity problem with HP-UX ia64 reported by Bob Proulx in
15         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
16         All uses changed.
17         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
18         All uses changed.
19         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
20         to _Restrict_.
21         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
22         the parameter matches the prototype.
23
24 2007-01-28  Jim Meyering  <jim@meyering.net>
25
26         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
27         sys/time.h here, reverting that part of the previous patch:
28         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
29
30 2007-01-28  Bruno Haible  <bruno@clisp.org>
31
32         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
33         value of $(SYS_TIME_H).
34         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
35         remove it conditionally, too. [added by Jim Meyering]
36         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
37         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
38         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
39         GETTIMEOFDAY_REPLACEMENT to 1.
40
41 2007-01-28  Bruno Haible  <bruno@clisp.org>
42
43         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
44         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
45         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
46         Set UNISTD_H instead of UNISTD_H2.
47         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
48
49 2007-01-28  Bruno Haible  <bruno@clisp.org>
50
51         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
52         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
53
54 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55
56         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
57         (func_create_testdir): Ensure C locale for `grep' and `tr'
58         character ranges.
59         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
60         ACLOCAL_AMFLAGS parsing state machine.
61
62 2007-01-27  Bruno Haible  <bruno@clisp.org>
63
64         * modules/unistr/base: Update.
65
66 2007-01-27  Bruno Haible  <bruno@clisp.org>
67
68         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
69         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
70         * modules/unistr/u32-mbtouc-unsafe: Renamed from
71         modules/unistr/u32-mbtouc.
72         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
73         * lib/unistr.h: Update.
74         * lib/linebreak.c: Update.
75         * modules/unistr/u32-mbtouc: Renamed from
76         modules/unistr/u32-mbtouc-safe.
77         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
78         * lib/unistr.h: Update.
79         * lib/unistr/u32-to-u8.c: Update.
80         * lib/unistr/u32-to-u16.c: Update.
81
82 2007-01-27  Bruno Haible  <bruno@clisp.org>
83
84         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
85         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
86         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
87         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
88         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
89         * modules/unistr/u16-mbtouc-unsafe: Renamed from
90         modules/unistr/u16-mbtouc.
91         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
92         * lib/unistr.h: Update.
93         * lib/linebreak.c: Update.
94         * modules/linebreak: Update.
95         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
96         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
97         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
98         * modules/unistr/u16-mbtouc: Renamed from
99         modules/unistr/u16-mbtouc-safe.
100         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
101         * lib/unistr.h: Update.
102         * lib/unistr/u16-to-u8.c: Update.
103         * modules/unistr/u16-to-u8: Update.
104         * lib/unistr/u16-to-u32.c: Update.
105         * modules/unistr/u16-to-u32: Update.
106
107 2007-01-27  Bruno Haible  <bruno@clisp.org>
108
109         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
110         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
111         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
112         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
113         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
114         * modules/unistr/u8-mbtouc-unsafe: Renamed from
115         modules/unistr/u8-mbtouc.
116         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
117         * lib/unistr.h: Update.
118         * lib/striconveh.c: Update.
119         * modules/striconveh: Update.
120         * lib/linebreak.c: Update.
121         * modules/linebreak: Update.
122         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
123         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
124         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
125         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
126         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
127         * lib/unistr.h: Update.
128         * lib/striconveh.c: Update.
129         * modules/striconveh: Update.
130         * lib/unistr/u8-to-u16.c: Update.
131         * modules/unistr/u8-to-u16: Update.
132         * lib/unistr/u8-to-u32.c: Update.
133         * modules/unistr/u8-to-u32: Update.
134
135 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
136
137         Sync from Libtool.
138         * lib/argz.c: Do not include strings.h nor memory.h, include
139         string.h unconditionally.  Patch by Simon Josefsson.
140
141 2007-01-27  Bruno Haible  <bruno@clisp.org>
142
143         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
144         from gl_HEADER_STRING_H_BODY.
145         (gl_HEADER_STRING_H_BODY): Require it.
146         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
147         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
148         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
149         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
150         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
151         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
152         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
153         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
154         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
155         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
156         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
157         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
158         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
159         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
160         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
161
162 2007-01-27  Bruno Haible  <bruno@clisp.org>
163
164         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
165         check_PROGRAMS into noinst_PROGRAMS.
166         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
167         check_PROGRAMS in this case.
168         (func_import): Set for_test to false.
169         (func_create_testdir): Set for_test to true.
170
171 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
172             Bruno Haible  <bruno@clisp.org>
173
174         * modules/strcasestr (Files): Remove lib/strcasestr.h.
175         (Depends-on): Add string.
176         (Includes): Use <string.h> instead of strcasestr.h.
177         * modules/string (Makefile.am): Also substitute the value of
178         REPLACE_STRCASESTR.
179         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
180         assume strcasestr is declared in <string.h> not <strings.h>. Also
181         set REPLACE_STRCASESTR.
182         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
183         REPLACE_STRCASESTR.
184         * lib/strcasestr.h: Remove file.
185         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
186         * lib/string_.h (strcasestr): New declaration.
187
188 2007-01-27  Bruno Haible  <bruno@clisp.org>
189
190         * lib/string_.h: Use 'extern'.
191
192 2007-01-27  Jim Meyering  <jim@meyering.net>
193
194         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
195         of set-but-not-used local, "q".
196
197         * lib/mempcpy.c: Include <config.h> before <string.h>.
198         This fixes a compilation error on HP-UX, due to the system's
199         "restrict"-using mempcpy prototype.
200
201 2007-01-26  Bruno Haible  <bruno@clisp.org>
202
203         Small optimization.
204         * lib/javacomp.c: Include c-strstr.h.
205          (is_envjavac_gcj): Use c_strstr instead of strstr.
206         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
207
208 2007-01-26  Bruno Haible  <bruno@clisp.org>
209
210         * MODULES.html.sh (Unicode string functions): Add the new modules.
211
212         * modules/uniconv/u32-strconv-to-locale: New file.
213         * lib/uniconv/u32-strconv-to-locale.c: New file.
214
215         * modules/uniconv/u16-strconv-to-locale: New file.
216         * lib/uniconv/u16-strconv-to-locale.c: New file.
217
218         * modules/uniconv/u8-strconv-to-locale: New file.
219         * lib/uniconv/u8-strconv-to-locale.c: New file.
220
221         * modules/uniconv/u32-strconv-from-locale: New file.
222         * lib/uniconv/u32-strconv-from-locale.c: New file.
223
224         * modules/uniconv/u16-strconv-from-locale: New file.
225         * lib/uniconv/u16-strconv-from-locale.c: New file.
226
227         * modules/uniconv/u8-strconv-from-locale: New file.
228         * lib/uniconv/u8-strconv-from-locale.c: New file.
229
230         * modules/uniconv/u32-strconv-to-enc: New file.
231         * lib/uniconv/u32-strconv-to-enc.c: New file.
232         * modules/uniconv/u32-strconv-to-enc-tests: New file.
233         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
234
235         * modules/uniconv/u16-strconv-to-enc: New file.
236         * lib/uniconv/u16-strconv-to-enc.c: New file.
237         * lib/uniconv/u-strconv-to-enc.h: New file.
238         * modules/uniconv/u16-strconv-to-enc-tests: New file.
239         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
240
241         * modules/uniconv/u8-strconv-to-enc: New file.
242         * lib/uniconv/u8-strconv-to-enc.c: New file.
243         * modules/uniconv/u8-strconv-to-enc-tests: New file.
244         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
245
246         * modules/uniconv/u32-strconv-from-enc: New file.
247         * lib/uniconv/u32-strconv-from-enc.c: New file.
248         * modules/uniconv/u32-strconv-from-enc-tests: New file.
249         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
250
251         * modules/uniconv/u16-strconv-from-enc: New file.
252         * lib/uniconv/u16-strconv-from-enc.c: New file.
253         * modules/uniconv/u16-strconv-from-enc-tests: New file.
254         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
255
256         * modules/uniconv/u8-strconv-from-enc: New file.
257         * lib/uniconv/u8-strconv-from-enc.c: New file.
258         * lib/uniconv/u-strconv-from-enc.h: New file.
259         * modules/uniconv/u8-strconv-from-enc-tests: New file.
260         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
261
262         * modules/uniconv/u32-conv-from-enc: New file.
263         * lib/uniconv/u32-conv-from-enc.c: New file.
264         * modules/uniconv/u32-conv-from-enc-tests: New file.
265         * tests/uniconv/test-u32-conv-from-enc.c: New file.
266
267         * modules/uniconv/u16-conv-from-enc: New file.
268         * lib/uniconv/u16-conv-from-enc.c: New file.
269         * lib/uniconv/u-conv-from-enc.h: New file.
270         * modules/uniconv/u16-conv-from-enc-tests: New file.
271         * tests/uniconv/test-u16-conv-from-enc.c: New file.
272
273         * modules/uniconv/u8-conv-from-enc: New file.
274         * lib/uniconv/u8-conv-from-enc.c: New file.
275         * modules/uniconv/u8-conv-from-enc-tests: New file.
276         * tests/uniconv/test-u8-conv-from-enc.c: New file.
277
278         * modules/uniconv/base: New file.
279         * lib/uniconv.h: New file.
280
281 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
282
283         * doc/gnulib-tool.texi (Initial import): Update to match current
284         behavior with strdup module.
285         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
286         * lib/memmem.h: Remove; all uses removed.  This is now done
287         by <string.h>.
288         * lib/mempcpy.h: Likewise.
289         * lib/memrchr.h: Likewise.
290         * lib/stpcpy.h: Likewise.
291         * lib/stpncpy.h: Likewise.
292         * lib/strcase.h: Likewise.
293         * lib/strchrnul.h: Likewise.
294         * lib/strdup.h: Likewise.
295         * lib/strndup.h: Likewise.
296         * lib/strnlen.h: Likewise.
297         * lib/strpbrk.h: Likewise.
298         * lib/strsep.h: Likewise.
299         * lib/strstr.h: Likewise.
300         * lib/strtok_r.h: Likewise.
301         * lib/string_.h: New file.
302         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
303         Rely on <string.h> instead.
304         * lib/canon-host.c: Likewise.
305         * lib/chdir-long.c: Likewise.
306         * lib/concatpath.c: Likewise.
307         * lib/exclude.c: Likewise.
308         * lib/fchdir.c: Likewise.
309         * lib/getaddrinfo.c: Likewise.
310         * lib/getcwd.c: Likewise.
311         * lib/getsubopt.c: Likewise.
312         * lib/glob.c: Likewise.
313         * lib/hard-locale.c: Likewise.
314         * lib/iconvme.c: Likewise.
315         * lib/javacomp.c: Likewise.
316         * lib/mempcpy.c: Likewise.
317         * lib/memrchr.c: Likewise.
318         * lib/regex_internal.h: Likewise.
319         * lib/stpncpy.c: Likewise.
320         * lib/strcasecmp.c: Likewise.
321         * lib/strchrnul.c: Likewise.
322         * lib/strdup.c: Likewise.
323         * lib/striconv.c: Likewise.
324         * lib/striconveh.c: Likewise.
325         * lib/striconveha.c: Likewise.
326         * lib/strncasecmp.c: Likewise.
327         * lib/strndup.c: Likewise.
328         * lib/strnlen.c: Likewise.
329         * lib/strsep.c: Likewise.
330         * lib/strstr.c: Likewise.
331         * lib/strtok_r.c: Likewise.
332         * lib/userspec.c: Likewise.
333         * lib/w32spawn.h: Likewise.
334         * lib/xstrndup.c: Likewise.
335         * lib/mountlist.c (strstr): Remove decl.
336         * m4/string_h.m4: New file.
337         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
338         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
339         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
340         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
341         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
342         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
343         Set REPLACE_STRCASECMP if necessary.
344         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
345         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
346         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
347         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
348         HAVE_DECL_STRDUP if necessary.
349         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
350         since gl_FUNC_STRNDUP does that now.
351         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
352         Check for decl here...
353         (gl_PREREQ_STRNLEN): ... not here.
354         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
355         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
356         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
357         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
358         necessary.
359         * modules/string: New file.
360         * modules/memmem (Files): Remove special-purpose include file.
361         (Depends-on): Add string.
362         (Include): Include <string.h>, not the removed file.
363         * modules/mempcpy: Likewise.
364         * modules/memrchr: Likewise.
365         * modules/stpcpy: Likewise.
366         * modules/stpncpy: Likewise.
367         * modules/strcase: Likewise.
368         * modules/strchrnul: Likewise.
369         * modules/strdup: Likewise.
370         * modules/strndup: Likewise.
371         * modules/strnlen: Likewise.
372         * modules/strpbrk: Likewise.
373         * modules/strsep: Likewise.
374         * modules/strstr: Likewise.
375         * modules/strtok_r: Likewise.
376         * tests/test-dirname.c: Don't include "strdup.h", since
377         <string.h> now suffices.
378         * tests/test-memmem.c: Don't include "memmem.h", since
379         <string.h> now suffices.
380
381 2007-01-25  Bruno Haible  <bruno@clisp.org>
382
383         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
384         *resultp is 0.
385
386         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
387         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
388         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
389         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
390
391         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
392         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
393         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
394         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
395         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
396         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
397
398 2007-01-24  Bruno Haible  <bruno@clisp.org>
399
400         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
401         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
402         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
403         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
404         gl_FUNC_FTS_CORE.
405         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
406         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
407         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
408         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
409         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
410         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
411         gl_FUNC_FCHOWNAT.
412         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
413         gl_FUNC_STRFTIME.
414         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
415         Reported by Ralf Wildenhues.
416
417 2007-01-24  Bruno Haible  <bruno@clisp.org>
418
419         Drop AC_REQUIRE calls that are redundant with the module dependencies.
420         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
421         gl_GETADDRINFO.
422         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
423         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
424         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
425
426 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
427
428         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
429         Don't use 'exit'; just return from 'main'.
430         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
431
432         * lib/fnmatch_.h: Readjust white space and comments to match
433         glibc, to avoid spurious diffs.
434
435 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
436
437         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
438         2004-12-01 change by Jakub Jelinek, since this code won't compile
439         if !LIBC.  Problem reported by Bob Proulx.
440
441 2007-01-23  Bruno Haible  <bruno@clisp.org>
442
443         * lib/striconveh.c: Include c-strcaseeq.h.
444         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
445         * modules/striconveh (Depends-on): Add c-strcaseeq.
446
447 2007-01-23  Bruno Haible  <bruno@clisp.org>
448
449         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
450
451         * modules/c-strcaseeq: New file.
452         * lib/c-strcaseeq.h: New file.
453
454         * modules/streq: New file.
455         * lib/streq.h: New file.
456
457 2007-01-23  Bruno Haible  <bruno@clisp.org>
458
459         * modules/striconveha-tests: New file.
460         * tests/test-striconveha.c: New file.
461
462         * lib/striconveha.h: Include <stdbool.h>.
463         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
464         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
465         (mem_iconveha_notranslit): Renamed from mem_iconveha.
466         (mem_iconveha): New function.
467         (str_iconveha_notranslit): Renamed from str_iconveha.
468         (str_iconveha): New function.
469         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
470         c-strcase.
471
472 2007-01-23  Bruno Haible  <bruno@clisp.org>
473
474         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
475         encodings without forgiving before trying any encoding with handler.
476         (str_iconveha): Try all encodings without forgiving before trying any
477         encoding with handler.
478
479 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
480
481         Import the following changes from libc.
482
483         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
484
485         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
486
487         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
488
489         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
490         normal_bracket label.
491
492         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
493
494         [BZ #361]
495         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
496         to normal_bracket after fetching the next character.
497
498 2007-01-22  Bruno Haible  <bruno@clisp.org>
499
500         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
501         argument.
502         * lib/striconveh.c (iconv_carefully_1): New function.
503         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
504         argument.
505         (str_cd_iconveh): Update.
506         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
507         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
508         * tests/test-striconveh.c (MAGIC): New macro.
509         (new_offsets): New function.
510         (main): Test call with and without offsets.
511
512 2007-01-22  Bruno Haible  <bruno@clisp.org>
513
514         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
515         * modules/sys_select (Makefile.am): Likewise.
516         * modules/sys_socket (Makefile.am): Likewise.
517         * modules/sys_time (Makefile.am): Likewise.
518
519 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
520
521         * modules/gettimeofday (License): Change from GPL to LGPL, since
522         gettimeofday is a library function.
523
524 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
525
526         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
527
528 2007-01-21  Bruno Haible  <bruno@clisp.org>
529
530         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
531
532 2007-01-21  Bruno Haible  <bruno@clisp.org>
533
534         * modules/striconveha: New file.
535         * lib/striconveha.h: New file.
536         * lib/striconveha.c: New file.
537         * MODULES.html.sh (Internationalization functions): Add striconveha.
538         * lib/striconv.c (str_iconv): Optimize the case of an empty input
539         string.
540         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
541
542 2007-01-21  Bruno Haible  <bruno@clisp.org>
543
544         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
545         * lib/striconveh.c (str_iconveh): Likewise.
546
547 2007-01-21  Bruno Haible  <bruno@clisp.org>
548
549         * lib/striconveh.h (mem_iconveh): New declaration.
550         * lib/striconveh.c (mem_iconveh): New function.
551         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
552
553 2007-01-21  Bruno Haible  <bruno@clisp.org>
554
555         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
556
557         * lib/striconveh.h (mem_cd_iconveh): Change specification.
558         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
559         original result buffer.
560         (str_cd_iconveh): Update.
561         * tests/test-striconveh.c (main): Update.
562
563         * lib/striconv.h (mem_cd_iconv): Change specification.
564         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
565         result buffer.
566         (str_cd_iconv): Update.
567         * tests/test-striconv.c (main): Update.
568
569 2007-01-21  Bruno Haible  <bruno@clisp.org>
570
571         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
572
573 2007-01-20  Jim Meyering  <jim@meyering.net>
574
575         * lib/userspec.c (parse_with_separator): If a user or group string
576         starts with "+", skip the corresponding name-to-ID look-up, since
577         such a look-up must fail: user and group names may not include "+".
578
579 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
580
581         * lib/poll.c: Include sys/time.h and time.h unconditionally,
582         since we now assume the sys_time module.
583         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
584         check for sys/time.h; no longer needed.
585         * modules/poll (Depends-on): Depend on sys_time.
586
587 2007-01-18  Bruno Haible  <bruno@clisp.org>
588
589         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
590         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
591
592         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
593         gettimeofday.
594
595         * tests/test-gettimeofday.c: Include <time.h>.
596         (dummy): Remove variable.
597
598         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
599         gl_HEADER_SYS_TIME_H.
600         (gl_HEADER_SYS_TIME_H): New macro.
601
602         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
603         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
604         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
605         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
606         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
607         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
608         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
609         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
610         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
611         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
612         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
613
614         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
615         last change; it caused a compilation error when cross-compiling to
616         Cygwin.
617
618 2007-01-18  Jim Meyering  <jim@meyering.net>
619
620         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
621         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
622         than the race-prone "test -d sys || mkdir sys".
623         (configure.ac): Use AC_PROG_MKDIR_P.
624         * modules/sys_select: Likewise.
625         * modules/sys_socket: Likewise.
626         * modules/sys_time: Likewise.
627
628 2007-01-18  Eric Blake  <ebb9@byu.net>
629
630         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
631         replace gettimeofday.
632         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
633         name, to avoid infinite recursion.
634
635 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
636
637         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
638         module sys_time.
639         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
640         assume timespec.h defines struct timeval.
641         * lib/settime.c: Likewise.
642         * lib/utimens.c: Likewise.
643         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
644         since we now assume the gettimeofday module.
645         * lib/tempname.c (__gen_tempname): Likewise.
646         * lib/gettimeofday.h: Remove.
647         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
648         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
649         Include <time.h>, for 'time()'.
650         (localtime_buffer_addr): Also use this workaround if
651         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
652         to simplify the uses.  All uses changed.
653         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
654         that #undef is inside {}, and 'const' follows type name consistently.
655         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
656         (gettimeofday): Do not use the maximum possible value for
657         tv->tv_usec, since that might break usages other than ls.c.
658         Instead, we'll leave ls.c alone.  This undoes today's patch
659         by Bruno.  Add a compile-time warning for 1s-clock resolution;
660         we've never observed the problem but might as well keep the
661         canary.
662         * lib/nanosleep.c: Include timespec.h first, for interface check.
663         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
664         now assume the sys_time module.
665         * lib/tempname.c: Likewise.
666         * lib/timespec.h: Likewise.
667         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
668         needed.
669         * lib/strftime.c: Likewise.
670         * lib/timespec.h: Likewise.
671         * lib/posixtm.c: Include posixtm.h first, for interface check.
672         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
673         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
674         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
675         * lib/sys_time_.h: New file.
676         * lib/timespec.h (struct timespec): Use long int, not long.
677         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
678         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
679         Remove obsolescent call to AC_HEADER_TIME.
680         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
681         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
682         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
683         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
684         Likewise.
685         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
686         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
687         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
688         into the sys_time module.  Check for gettimeofday just once.
689         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
690         for gettimeofday signature to just check the signature.  Merely
691         compile it, since linking doesn't test signature.  Improve test for
692         whether gettimeofday.o is actually needed.
693         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
694         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
695         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
696         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
697         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
698         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
699         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
700         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
701         than worrying about sys/time.h.
702         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
703         Don't bother worrying about TIME_WITH_SYS_TIME.
704         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
705         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
706         * m4/sys_time_h.m4: New file.
707         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
708         Don't include sys/time.h.  Return from main rather than exiting.
709         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
710         all uses changed.
711         * modules/gethrxtime (Depends-on): Add sys_time.
712         * modules/gettime (Depends-on): Likewise.
713         * modules/gettimeofday (Depends-on): Likewise.
714         * modules/nanosleep (Depends-on): Likewise.
715         * modules/settime (Depends-on): Likewise.
716         * modules/tempname (Depends-on): Likewise.
717         * modules/utimens (Depends-on): Likewise.
718         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
719         (Include:) Change back to <sys/time.h>.
720         (Maintainer:) Add self.
721         * modules/sys_time: New file.
722         * modules/tempname (Depends-on): Add gettimeofday.
723         * tests/test-gettimeofday.c: Include <sys/time.h>
724         rather than gettimeofday.h.
725
726 2007-01-17  Bruno Haible  <bruno@clisp.org>
727
728         * gnulib-tool (func_get_license): Revert last patch. Instead, let
729         the license default to GPL.
730         (func_create_testdir): Don't complain if a module is LGPL and its
731         tests module depends on GPLed modules.
732
733 2007-01-17  Bruno Haible  <bruno@clisp.org>
734
735         * lib/gettimeofday.c (gettimeofday): Add code for the case
736         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
737         maximum possible value for tv->tv_usec, rather than the minimum one.
738
739 2005-10-08  Martin Lambers  <marlam@marlam.de>
740 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
741 2007-01-16  Bruno Haible  <bruno@clisp.org>
742
743         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
744         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
745         gl_FUNC_GETTIMEOFDAY.
746         (Include): Add gettimeofday.h.
747         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
748         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
749         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
750         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
751         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
752         * lib/gettimeofday.h: New file.
753         * lib/gettimeofday.c: Include <sys/timeb.h>.
754         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
755         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
756         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
757         fall back on time().
758
759         * tests/test-gettimeofday.c: New file.
760         * modules/gettimeofday-tests: New file.
761
762 2007-01-16  Eric Blake  <ebb9@byu.net>
763
764         * modules/fnmatch (Depends-on): Depend on wchar.
765         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
766         * m4/fnmatch.m4: Likewise.
767         * modules/mbchar (Makefile.am): Assume <wchar.h>.
768         * m4/mbchar.m4: Likewise.
769         * modules/mbswidth (Depends-on): Depend on wchar.
770         * lib/mbswidth.c: Assume <wchar.h>.
771         * m4/mbswidth.m4: Likewise.
772         * modules/quotearg (Depends-on): Depend on wchar.
773         * lib/quotearg.c: Assume <wchar.h>.
774         * m4/quotearg.m4: Likewise.
775         * modules/regex (Depends-on): Depend on wchar.
776         * lib/regex_internal.h: Assume <wchar.h>.
777         * m4/regex.m4: Likewise.
778         * modules/stdint (Depends-on): Depend on wchar.
779         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
780         * m4/stdint.m4: Likewise.
781         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
782         * modules/strftime (Depends-on): Depend on wchar.
783         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
784         * modules/strtol (Depends-on): Depend on wchar.
785         * lib/strtol.c: Assume <wchar.h>.
786         * modules/wcwidth (Depends-on): Depend on wchar.
787         * lib/wcwidth.h: Assume <wchar.h>.
788         * m4/wcwidth.m4: Likewise.
789
790 2007-01-16  Bruno Haible  <bruno@clisp.org>
791
792         * modules/csharpexec-script: New, created from...
793         * modules/csharpexec: ... this.
794
795 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
796
797         * modules/javaexec-script: New, created from...
798         * modules/javaexec: ... this.
799
800 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
801
802         * modules/poll (Dependencies): Add sys_select.
803
804 2007-01-15  Jim Meyering  <jim@meyering.net>
805
806         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
807         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
808         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
809         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
810
811 2007-01-15  Bruno Haible  <bruno@clisp.org>
812
813         * modules/striconveh: New file.
814         * lib/striconveh.h: New file.
815         * lib/striconveh.c: New file.
816         * MODULES.html.sh (Internationalization functions): Add striconveh.
817
818         * modules/striconveh-tests: New file.
819         * tests/test-striconveh.c: New file.
820
821 2007-01-15  Bruno Haible  <bruno@clisp.org>
822
823         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
824         not from GNU libiconv or GNU libc.
825
826 2007-01-15  Bruno Haible  <bruno@clisp.org>
827
828         * doc/gnulib-intro.texi (Copyright): Explain the different license
829         terms for module descriptions, autoconf macros, tests, documentation.
830
831 2007-01-14  Bruno Haible  <bruno@clisp.org>
832
833         * modules/striconv-tests: New file.
834         * tests/test-striconv.c: New file.
835
836 2007-01-14  Bruno Haible  <bruno@clisp.org>
837
838         * modules/iconv-tests: New file.
839         * tests/test-iconv.c: New file.
840
841 2007-01-14  Bruno Haible  <bruno@clisp.org>
842
843         * gnulib-tool (func_get_license): For test modules, use the license of
844         the main module.
845
846 2007-01-14  Bruno Haible  <bruno@clisp.org>
847
848         * modules/iconv (Include): Clarify that <iconv.h> can only be included
849         if iconv is found to exist.
850
851 2007-01-14  Bruno Haible  <bruno@clisp.org>
852
853         * modules/c-ctype-tests: New file.
854         * tests/test-c-ctype.c: New file.
855
856 2007-01-14  Bruno Haible  <bruno@clisp.org>
857
858         * modules/binary-io-tests: New file.
859         * tests/test-binary-io.sh: New file.
860         * tests/test-binary-io.c: New file.
861
862 2007-01-14  Bruno Haible  <bruno@clisp.org>
863
864         * modules/array-oset-tests: New file.
865         * tests/test-array_oset.c: New file.
866
867 2007-01-14  Bruno Haible  <bruno@clisp.org>
868
869         * modules/array-list-tests: New file.
870         * tests/test-array_list.c: New file.
871
872 2007-01-14  Bruno Haible  <bruno@clisp.org>
873
874         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
875         and make.
876         Reported by Simon Josefsson in
877         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
878
879 2007-01-14  Bruno Haible  <bruno@clisp.org>
880
881         * modules/allocsa-tests: New file.
882         * tests/test-allocsa.c: New file.
883
884 2007-01-14  Bruno Haible  <bruno@clisp.org>
885
886         * modules/fchdir (Depends-on): Add absolute-header.
887         * modules/unistd (Depends-on): Likewise.
888
889 2006-12-30  Bruno Haible  <bruno@clisp.org>
890
891         * modules/fchdir: New file.
892         * modules/unistd (Files): Add lib/unistd_.h.
893         (Makefile.am): Generate unistd.h from unistd_.h.
894         * lib/fchdir.c: New file.
895         * lib/dirent_.h: New file.
896         * lib/unistd_.h: New file.
897         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
898         * m4/fchdir.m4: New file.
899         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
900         (gl_HEADER_UNISTD): Invoke it.
901         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
902         function.
903         * lib/backupfile.c (opendir, closedir): Undefine.
904         * lib/chown.c (open, close): Undefine.
905         * lib/clean-temp.c (open, close): Undefine.
906         * lib/copy-file.c (open, close): Undefine.
907         * lib/execute.c (open, close): Undefine.
908         * lib/fsusage.c (open, close): Undefine.
909         * lib/gc-gnulib.c (open, close): Undefine.
910         * lib/getcwd.c (opendir, closedir): Undefine.
911         * lib/glob.c (opendir, closedir): Undefine.
912         * lib/javacomp.c (open, close): Undefine.
913         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
914         * lib/openat-proc.c (open, close): Undefine.
915         * lib/pagealign_alloc.c (open, close): Undefine.
916         * lib/pipe.c (open, close): Undefine.
917         * lib/progreloc.c (open, close): Undefine.
918         * lib/savedir.c (opendir, closedir): Undefine.
919         * lib/utime.c (open, close): Undefine.
920         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
921
922 2007-01-10  Bruno Haible  <bruno@clisp.org>
923
924         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
925
926 2007-01-12  Eric Blake  <ebb9@byu.net>
927
928         Provide a robust <wchar.h>.  Further simplifications are now
929         possible in other modules, but not included here.
930         * modules/wchar: New module.
931         * m4/wchar.m4: New file.
932         * lib/wchar_.h: Likewise.
933         * modules/mbchar (Depends-on): Depend on wchar, as the first use
934         of the new module.
935         * MODULES.html.sh (Extended multibyte and wide character utilities):
936         New section.
937
938 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
939
940         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
941         to a reasonable default for memory allocation.
942         (xreadlink): Don't allocate a huge buffer, to work around a buggy
943         file system that reports garbage st_size values for symlinks.
944         Problem reported by Liyang Hu.
945
946 2007-01-11  Simon Josefsson  <simon@josefsson.org>
947
948         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
949         Emacs .#* auto-save files).
950
951 2007-01-11  Bruno Haible  <bruno@clisp.org>
952
953         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
954         directory.
955
956 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
957
958         Use @...@ consistently in lib/wctype_.h.
959         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
960         on it being set to 1 or 0.
961         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
962         go back to AC_SUBSTing it.
963         * modules/wctype (Makefile.am): Undo previous change.
964
965 2007-01-10  Eric Blake  <ebb9@byu.net>
966
967         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
968         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
969         * modules/wctype (Makefile.am): Likewise.
970         Reported by Chris McGuire.
971
972 2007-01-10  Jim Meyering  <jim@meyering.net>
973
974         fts.c: a small readability/maintainability improvement
975         * lib/fts.c (fts_read): Make this code slightly more readable and
976         maintainable by hoisting the "sp->fts_cur = p" assignments to
977         immediately follow the statements that set P.  Derived from
978         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
979
980 2007-01-10  Eric Blake  <ebb9@byu.net>
981
982         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
983         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
984         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
985         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
986         Reported by Chris McGuire.
987
988 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
989
990         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
991         in sed script.
992
993 2007-01-09  Bruno Haible  <bruno@clisp.org>
994
995         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
996         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
997         variables.
998         (func_module): Use them.
999
1000 2007-01-09  Bruno Haible  <bruno@clisp.org>
1001
1002         * modules/unistr/base: New file.
1003         * lib/unistr.h: New file.
1004
1005         * modules/unistr/u8-to-u16: New file.
1006         * lib/unistr/u8-to-u16.c: New file.
1007
1008         * modules/unistr/u8-to-u32: New file.
1009         * lib/unistr/u8-to-u32.c: New file.
1010
1011         * modules/unistr/u16-to-u8: New file.
1012         * lib/unistr/u16-to-u8.c: New file.
1013
1014         * modules/unistr/u16-to-u32: New file.
1015         * lib/unistr/u16-to-u32.c: New file.
1016
1017         * modules/unistr/u32-to-u8: New file.
1018         * lib/unistr/u32-to-u8.c: New file.
1019
1020         * modules/unistr/u32-to-u16: New file.
1021         * lib/unistr/u32-to-u16.c: New file.
1022
1023         * modules/unistr/u8-check: New file.
1024         * modules/unistr/u16-check: New file.
1025         * modules/unistr/u32-check: New file.
1026         * lib/unistr/u8-check.c: New file.
1027         * lib/unistr/u16-check.c: New file.
1028         * lib/unistr/u32-check.c: New file.
1029
1030         * modules/unistr/u8-chr: New file.
1031         * modules/unistr/u16-chr: New file.
1032         * modules/unistr/u32-chr: New file.
1033         * lib/unistr/u8-chr.c: New file.
1034         * lib/unistr/u16-chr.c: New file.
1035         * lib/unistr/u32-chr.c: New file.
1036
1037         * modules/unistr/u8-cmp: New file.
1038         * modules/unistr/u16-cmp: New file.
1039         * modules/unistr/u32-cmp: New file.
1040         * lib/unistr/u8-cmp.c: New file.
1041         * lib/unistr/u16-cmp.c: New file.
1042         * lib/unistr/u32-cmp.c: New file.
1043
1044         * modules/unistr/u8-cpy: New file.
1045         * modules/unistr/u16-cpy: New file.
1046         * modules/unistr/u32-cpy: New file.
1047         * lib/unistr/u8-cpy.c: New file.
1048         * lib/unistr/u16-cpy.c: New file.
1049         * lib/unistr/u32-cpy.c: New file.
1050         * lib/unistr/u-cpy.h: New file.
1051
1052         * modules/unistr/u8-cpy-alloc: New file.
1053         * modules/unistr/u16-cpy-alloc: New file.
1054         * modules/unistr/u32-cpy-alloc: New file.
1055         * lib/unistr/u8-cpy-alloc.c: New file.
1056         * lib/unistr/u16-cpy-alloc.c: New file.
1057         * lib/unistr/u32-cpy-alloc.c: New file.
1058         * lib/unistr/u-cpy-alloc.h: New file.
1059
1060         * modules/unistr/u8-endswith: New file.
1061         * modules/unistr/u16-endswith: New file.
1062         * modules/unistr/u32-endswith: New file.
1063         * lib/unistr/u8-endswith.c: New file.
1064         * lib/unistr/u16-endswith.c: New file.
1065         * lib/unistr/u32-endswith.c: New file.
1066         * lib/unistr/u-endswith.h: New file.
1067
1068         * modules/unistr/u8-mblen: New file.
1069         * modules/unistr/u16-mblen: New file.
1070         * modules/unistr/u32-mblen: New file.
1071         * lib/unistr/u8-mblen.c: New file.
1072         * lib/unistr/u16-mblen.c: New file.
1073         * lib/unistr/u32-mblen.c: New file.
1074
1075         * modules/unistr/u8-mbtouc: New file.
1076         * modules/unistr/u16-mbtouc: New file.
1077         * modules/unistr/u32-mbtouc: New file.
1078         * lib/unistr/u8-mbtouc.c: New file.
1079         * lib/unistr/u16-mbtouc.c: New file.
1080         * lib/unistr/u32-mbtouc.c: New file.
1081
1082         * modules/unistr/u8-mbtouc-safe: New file.
1083         * modules/unistr/u16-mbtouc-safe: New file.
1084         * modules/unistr/u32-mbtouc-safe: New file.
1085         * lib/unistr/u8-mbtouc-safe.c: New file.
1086         * lib/unistr/u16-mbtouc-safe.c: New file.
1087         * lib/unistr/u32-mbtouc-safe.c: New file.
1088
1089         * modules/unistr/u8-move: New file.
1090         * modules/unistr/u16-move: New file.
1091         * modules/unistr/u32-move: New file.
1092         * lib/unistr/u8-move.c: New file.
1093         * lib/unistr/u16-move.c: New file.
1094         * lib/unistr/u32-move.c: New file.
1095         * lib/unistr/u-move.h: New file.
1096
1097         * modules/unistr/u8-next: New file.
1098         * modules/unistr/u16-next: New file.
1099         * modules/unistr/u32-next: New file.
1100         * lib/unistr/u8-next.c: New file.
1101         * lib/unistr/u16-next.c: New file.
1102         * lib/unistr/u32-next.c: New file.
1103
1104         * modules/unistr/u8-prev: New file.
1105         * modules/unistr/u16-prev: New file.
1106         * modules/unistr/u32-prev: New file.
1107         * lib/unistr/u8-prev.c: New file.
1108         * lib/unistr/u16-prev.c: New file.
1109         * lib/unistr/u32-prev.c: New file.
1110
1111         * modules/unistr/u8-set: New file.
1112         * modules/unistr/u16-set: New file.
1113         * modules/unistr/u32-set: New file.
1114         * lib/unistr/u8-set.c: New file.
1115         * lib/unistr/u16-set.c: New file.
1116         * lib/unistr/u32-set.c: New file.
1117         * lib/unistr/u-set.h: New file.
1118
1119         * modules/unistr/u8-startswith: New file.
1120         * modules/unistr/u16-startswith: New file.
1121         * modules/unistr/u32-startswith: New file.
1122         * lib/unistr/u8-startswith.c: New file.
1123         * lib/unistr/u16-startswith.c: New file.
1124         * lib/unistr/u32-startswith.c: New file.
1125         * lib/unistr/u-startswith.h: New file.
1126
1127         * modules/unistr/u8-stpcpy: New file.
1128         * modules/unistr/u16-stpcpy: New file.
1129         * modules/unistr/u32-stpcpy: New file.
1130         * lib/unistr/u8-stpcpy.c: New file.
1131         * lib/unistr/u16-stpcpy.c: New file.
1132         * lib/unistr/u32-stpcpy.c: New file.
1133         * lib/unistr/u-stpcpy.h: New file.
1134
1135         * modules/unistr/u8-stpncpy: New file.
1136         * modules/unistr/u16-stpncpy: New file.
1137         * modules/unistr/u32-stpncpy: New file.
1138         * lib/unistr/u8-stpncpy.c: New file.
1139         * lib/unistr/u16-stpncpy.c: New file.
1140         * lib/unistr/u32-stpncpy.c: New file.
1141         * lib/unistr/u-stpncpy.h: New file.
1142
1143         * modules/unistr/u8-strcat: New file.
1144         * modules/unistr/u16-strcat: New file.
1145         * modules/unistr/u32-strcat: New file.
1146         * lib/unistr/u8-strcat.c: New file.
1147         * lib/unistr/u16-strcat.c: New file.
1148         * lib/unistr/u32-strcat.c: New file.
1149         * lib/unistr/u-strcat.h: New file.
1150
1151         * modules/unistr/u8-strchr: New file.
1152         * modules/unistr/u16-strchr: New file.
1153         * modules/unistr/u32-strchr: New file.
1154         * lib/unistr/u8-strchr.c: New file.
1155         * lib/unistr/u16-strchr.c: New file.
1156         * lib/unistr/u32-strchr.c: New file.
1157
1158         * modules/unistr/u8-strcmp: New file.
1159         * modules/unistr/u16-strcmp: New file.
1160         * modules/unistr/u32-strcmp: New file.
1161         * lib/unistr/u8-strcmp.c: New file.
1162         * lib/unistr/u16-strcmp.c: New file.
1163         * lib/unistr/u32-strcmp.c: New file.
1164
1165         * modules/unistr/u8-strcpy: New file.
1166         * modules/unistr/u16-strcpy: New file.
1167         * modules/unistr/u32-strcpy: New file.
1168         * lib/unistr/u8-strcpy.c: New file.
1169         * lib/unistr/u16-strcpy.c: New file.
1170         * lib/unistr/u32-strcpy.c: New file.
1171         * lib/unistr/u-strcpy.h: New file.
1172
1173         * modules/unistr/u8-strcspn: New file.
1174         * modules/unistr/u16-strcspn: New file.
1175         * modules/unistr/u32-strcspn: New file.
1176         * lib/unistr/u8-strcspn.c: New file.
1177         * lib/unistr/u16-strcspn.c: New file.
1178         * lib/unistr/u32-strcspn.c: New file.
1179         * lib/unistr/u-strcspn.h: New file.
1180
1181         * modules/unistr/u8-strdup: New file.
1182         * modules/unistr/u16-strdup: New file.
1183         * modules/unistr/u32-strdup: New file.
1184         * lib/unistr/u8-strdup.c: New file.
1185         * lib/unistr/u16-strdup.c: New file.
1186         * lib/unistr/u32-strdup.c: New file.
1187         * lib/unistr/u-strdup.h: New file.
1188
1189         * modules/unistr/u8-strlen: New file.
1190         * modules/unistr/u16-strlen: New file.
1191         * modules/unistr/u32-strlen: New file.
1192         * lib/unistr/u8-strlen.c: New file.
1193         * lib/unistr/u16-strlen.c: New file.
1194         * lib/unistr/u32-strlen.c: New file.
1195         * lib/unistr/u-strlen.h: New file.
1196
1197         * modules/unistr/u8-strmblen: New file.
1198         * modules/unistr/u16-strmblen: New file.
1199         * modules/unistr/u32-strmblen: New file.
1200         * lib/unistr/u8-strmblen.c: New file.
1201         * lib/unistr/u16-strmblen.c: New file.
1202         * lib/unistr/u32-strmblen.c: New file.
1203
1204         * modules/unistr/u8-strmbtouc: New file.
1205         * modules/unistr/u16-strmbtouc: New file.
1206         * modules/unistr/u32-strmbtouc: New file.
1207         * lib/unistr/u8-strmbtouc.c: New file.
1208         * lib/unistr/u16-strmbtouc.c: New file.
1209         * lib/unistr/u32-strmbtouc.c: New file.
1210
1211         * modules/unistr/u8-strncat: New file.
1212         * modules/unistr/u16-strncat: New file.
1213         * modules/unistr/u32-strncat: New file.
1214         * lib/unistr/u8-strncat.c: New file.
1215         * lib/unistr/u16-strncat.c: New file.
1216         * lib/unistr/u32-strncat.c: New file.
1217         * lib/unistr/u-strncat.h: New file.
1218
1219         * modules/unistr/u8-strncmp: New file.
1220         * modules/unistr/u16-strncmp: New file.
1221         * modules/unistr/u32-strncmp: New file.
1222         * lib/unistr/u8-strncmp.c: New file.
1223         * lib/unistr/u16-strncmp.c: New file.
1224         * lib/unistr/u32-strncmp.c: New file.
1225
1226         * modules/unistr/u8-strncpy: New file.
1227         * modules/unistr/u16-strncpy: New file.
1228         * modules/unistr/u32-strncpy: New file.
1229         * lib/unistr/u8-strncpy.c: New file.
1230         * lib/unistr/u16-strncpy.c: New file.
1231         * lib/unistr/u32-strncpy.c: New file.
1232         * lib/unistr/u-strncpy.h: New file.
1233
1234         * modules/unistr/u8-strnlen: New file.
1235         * modules/unistr/u16-strnlen: New file.
1236         * modules/unistr/u32-strnlen: New file.
1237         * lib/unistr/u8-strnlen.c: New file.
1238         * lib/unistr/u16-strnlen.c: New file.
1239         * lib/unistr/u32-strnlen.c: New file.
1240         * lib/unistr/u-strnlen.h: New file.
1241
1242         * modules/unistr/u8-strpbrk: New file.
1243         * modules/unistr/u16-strpbrk: New file.
1244         * modules/unistr/u32-strpbrk: New file.
1245         * lib/unistr/u8-strpbrk.c: New file.
1246         * lib/unistr/u16-strpbrk.c: New file.
1247         * lib/unistr/u32-strpbrk.c: New file.
1248         * lib/unistr/u-strpbrk.h: New file.
1249
1250         * modules/unistr/u8-strrchr: New file.
1251         * modules/unistr/u16-strrchr: New file.
1252         * modules/unistr/u32-strrchr: New file.
1253         * lib/unistr/u8-strrchr.c: New file.
1254         * lib/unistr/u16-strrchr.c: New file.
1255         * lib/unistr/u32-strrchr.c: New file.
1256
1257         * modules/unistr/u8-strspn: New file.
1258         * modules/unistr/u16-strspn: New file.
1259         * modules/unistr/u32-strspn: New file.
1260         * lib/unistr/u8-strspn.c: New file.
1261         * lib/unistr/u16-strspn.c: New file.
1262         * lib/unistr/u32-strspn.c: New file.
1263         * lib/unistr/u-strspn.h: New file.
1264
1265         * modules/unistr/u8-strstr: New file.
1266         * modules/unistr/u16-strstr: New file.
1267         * modules/unistr/u32-strstr: New file.
1268         * lib/unistr/u8-strstr.c: New file.
1269         * lib/unistr/u16-strstr.c: New file.
1270         * lib/unistr/u32-strstr.c: New file.
1271         * lib/unistr/u-strstr.h: New file.
1272
1273         * modules/unistr/u8-strtok: New file.
1274         * modules/unistr/u16-strtok: New file.
1275         * modules/unistr/u32-strtok: New file.
1276         * lib/unistr/u8-strtok.c: New file.
1277         * lib/unistr/u16-strtok.c: New file.
1278         * lib/unistr/u32-strtok.c: New file.
1279         * lib/unistr/u-strtok.h: New file.
1280
1281         * modules/unistr/u8-uctomb: New file.
1282         * modules/unistr/u16-uctomb: New file.
1283         * modules/unistr/u32-uctomb: New file.
1284         * lib/unistr/u8-uctomb.c: New file.
1285         * lib/unistr/u16-uctomb.c: New file.
1286         * lib/unistr/u32-uctomb.c: New file.
1287
1288         * MODULES.html.sh (Unicode string functions): Add the new modules.
1289
1290 2007-01-08  Bruno Haible  <bruno@clisp.org>
1291
1292         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
1293         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
1294         subdirectories.
1295
1296 2007-01-08  Karl Berry  <karl@gnu.org>
1297
1298         * doc/error.texi: mention that main() fns must set program_name
1299         when progname is used.
1300
1301 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
1302
1303         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
1304         WCTYPE_H is empty, for the benefit of builds from non-distclean
1305         directories.  Problem reported by Eric Blake in
1306         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
1307
1308 2007-01-08  Bruno Haible  <bruno@clisp.org>
1309
1310         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
1311         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
1312         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
1313         PROVIDE_CANONICALIZE_FILENAME_MODE.
1314         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
1315
1316 2007-01-08  Bruno Haible  <bruno@clisp.org>
1317
1318         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
1319         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
1320         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
1321         * lib/fts.c: Likewise.
1322         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
1323
1324 2006-12-25  Bruno Haible  <bruno@clisp.org>
1325
1326         * modules/utf8-ucs4-safe: New file.
1327         * lib/utf8-ucs4-safe.h: New file.
1328         * lib/unistr/utf8-ucs4-safe.c: New file.
1329
1330         * modules/utf16-ucs4-safe: New file.
1331         * lib/utf16-ucs4-safe.h: New file.
1332         * lib/unistr/utf16-ucs4-safe.c: New file.
1333
1334         * MODULES.html.sh (Unicode string functions): Add the new modules.
1335
1336 2007-01-08  Bruno Haible  <bruno@clisp.org>
1337
1338         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
1339         (Depends-on): Add unitypes.
1340         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
1341         (u8_mbtouc_aux): Move out to separate file.
1342         (u8_mbtouc): Use ucs4_t, uint8_t types.
1343         * lib/unistr/utf8-ucs4.c: New file.
1344
1345         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
1346         (Depends-on): Add unitypes.
1347         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
1348         (u16_mbtouc_aux): Move out to separate file.
1349         (u16_mbtouc): Use ucs4_t, uint16_t types.
1350         * lib/unistr/utf16-ucs4.c: New file.
1351
1352         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
1353         (Depends-on): Add unitypes.
1354         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
1355         (u8_uctomb_aux): Move out to separate file.
1356         (u8_uctomb): Use ucs4_t, uint8_t types.
1357         * lib/unistr/ucs4-utf8.c: New file.
1358
1359         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
1360         (Depends-on): Add unitypes.
1361         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
1362         (u16_uctomb_aux): Move out to separate file.
1363         (u16_uctomb): Use ucs4_t, uint16_t types.
1364         * lib/unistr/ucs4-utf16.c: New file.
1365
1366 2006-12-25  Bruno Haible  <bruno@clisp.org>
1367
1368         * modules/unitypes: New file.
1369         * lib/unitypes.h: New file.
1370         * MODULES.html.sh (func_all_modules): New section "Unicode string
1371         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
1372         this section. Add unitypes.
1373
1374 2007-01-08  Bruno Haible  <bruno@clisp.org>
1375
1376         Avoid variable names that conflict with those from libtool.
1377         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
1378         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
1379         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
1380         library_names_spec to acl_library_names_spec, hardcode_* to
1381         acl_hardcode_*.
1382         Reported by Ralf Wildenhues.
1383
1384 2007-01-08  Bruno Haible  <bruno@clisp.org>
1385
1386         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
1387         definition.
1388         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
1389         definition.
1390         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
1391         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
1392         definition.
1393         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
1394         definition.
1395         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
1396         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
1397         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
1398         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
1399         definition.
1400         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
1401         definition.
1402         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
1403         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
1404         GC_USE_<algorithm>.
1405         * lib/gc-libgcrypt.c: Likewise.
1406         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
1407         * modules/gc-arctwo (configure.ac): Likewise.
1408         * modules/gc-des (configure.ac): Likewise.
1409         * modules/gc-hmac-md5 (configure.ac): Likewise.
1410         * modules/gc-hmac-sha1 (configure.ac): Likewise.
1411         * modules/gc-md2 (configure.ac): Likewise.
1412         * modules/gc-md4 (configure.ac): Likewise.
1413         * modules/gc-md5 (configure.ac): Likewise.
1414         * modules/gc-random (configure.ac): Likewise.
1415         * modules/gc-rijndael (configure.ac): Likewise.
1416         * modules/gc-sha1 (configure.ac): Likewise.
1417
1418 2007-01-08  Bruno Haible  <bruno@clisp.org>
1419
1420         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
1421         macro definition.
1422         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
1423         definition.
1424         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
1425         definition.
1426         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
1427         * modules/fcntl-safer (configure.ac): Likewise.
1428         * modules/fopen-safer (configure.ac): Likewise.
1429         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
1430         GNULIB_FWRITEERROR macro definition.
1431
1432 2007-01-08  Bruno Haible  <bruno@clisp.org>
1433
1434         * m4/gnulib-common.m4: New file.
1435         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
1436         (func_get_filelist): Add m4/gnulib-common.m4.
1437
1438 2007-01-08  Bruno Haible  <bruno@clisp.org>
1439
1440         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
1441         command.
1442
1443 2007-01-08  Jim Meyering  <jim@meyering.net>
1444
1445         Use a more robust test for a "can't happen" condition.
1446         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
1447         narrowed the st_size value.  Presuming the "can't happen" condition
1448         is true, that narrowing could conceivably convert an invalid st_size
1449         value into a valid one.  Instead, use a change based on Matthew
1450         Woehlke's original patch.
1451
1452         Slight readability improvement: use an assert-like macro
1453         in place of literal "abort ()" uses.
1454         * lib/fts.c (fts_assert): Define.
1455         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
1456         Use this macro instead of a bare 'abort'.
1457
1458 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
1459
1460         Don't worry about using IRIX 5.3's wctype.h broken definitions;
1461         simply work around them.
1462         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
1463         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
1464         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before declaring.
1465         Don't bother to define as macros, since the standard doesn't require it.
1466         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
1467         longer worry about IRIX 5.3.
1468         (HAVE_WCTYPE_CTMP_BUG): Remove.
1469
1470 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
1471
1472         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
1473         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
1474         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
1475         Problems reported by Georg Schwarz for IRIX 5.3.
1476
1477         * gnulib-tool (autoconf_minversion): Take the maximum version number
1478         found, not the minimum.  Problem reported by James Youngman.
1479
1480 2007-01-03  Karl Berry  <karl@gnu.org>
1481
1482         * doc/error.texi: new file, explaining interaction with progname.
1483         * doc/gnulib.texi: include it.  Update copyright.
1484
1485 2007-01-03  Simon Josefsson  <simon@josefsson.org>
1486
1487         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
1488         AC_CANONICAL_HOST, to improve autobuild outputs.
1489
1490 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
1491             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
1492
1493         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
1494         sockets, server sockets, and other file descriptors.  Count errors
1495         to compute the return value.  Reorder the code a bit to be easier
1496         to follow.  Don't set event bits that were not requested (except
1497         POLLERR and POLLHUP).
1498
1499 2007-01-01  Bruno Haible  <bruno@clisp.org>
1500
1501         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
1502
1503 2007-01-03  Jim Meyering  <jim@meyering.net>
1504
1505         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
1506
1507 2007-01-02  Bruno Haible  <bruno@clisp.org>
1508
1509         * modules/settime (Include): Require timespec.h.
1510         * modules/nanosleep (Include): Likewise.
1511
1512 2007-01-01  Bruno Haible  <bruno@clisp.org>
1513
1514         * gnulib-tool (func_emit_copyright_notice): Bump year.
1515         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
1516
1517 2007-01-01  Bruno Haible  <bruno@clisp.org>
1518
1519         Improve support for OpenBSD.
1520         * build-aux/config.rpath (libname_spec): Export.
1521         (library_names_spec): New variable. Export.
1522         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
1523         library_names_spec from the config.rpath output. Locate shared library
1524         through the name pattern in library_names_spec.
1525
1526 2007-01-01  Eric Blake  <ebb9@byu.net>
1527
1528         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
1529
1530 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
1531
1532         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
1533         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
1534         assume the C locale, and avoid an "eval" that could cause trouble.
1535         Problem with SORT reported by Bob Proulx.
1536
1537         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
1538         Define.  Trivial patch from Henning Nielsen Lund, originally
1539         sent to bug-grep@gnu.org today.
1540
1541 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
1542
1543         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
1544         struct stat.  Problem reported by Henning Nielsen Lund.
1545         * lib/acl.c: Include acl.h first, to check interface.  Don't
1546         bother to include sys/types.h and sys/stat.h again.
1547
1548 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
1549
1550         Import the following change from libc; problem reported by
1551         Sven Verdoolaege.
1552
1553         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
1554
1555         [BZ #1373]
1556         * lib/argp.h: Remove __NTH for __argp_usage inline function.
1557
1558 2006-12-28  Jim Meyering  <jim@meyering.net>
1559
1560         * build-aux/announce-gen: Do not assume that the package
1561         builds any of tar.gz, tar.bz2, and .xdelta files.
1562         Suggestion from Simon Josefsson.
1563
1564 2006-12-28  Simon Josefsson  <simon@josefsson.org>
1565
1566         * modules/announce-gen: New file.
1567
1568 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
1569
1570         * lib/mbchar.h: Just include <wctype.h>; the wctype module
1571         handles its gotchas now.
1572         * lib/mbswidth.c: Likewise.
1573         * lib/wcwidth.h: Likewise.
1574         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
1575         and iswcntrl; the wctype module does this stuff now.
1576         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
1577         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
1578         * modules/mbchar (Depends-on): Add wctype.
1579         * modules/mbswidth (Depends-on): Likewise.
1580         * modules/wcwidth (Depends-on): Likewise.
1581
1582 2006-12-27  Eric Blake  <ebb9@byu.net>
1583
1584         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
1585         module uses more than what <wctype.h> is required to provide.
1586
1587 2006-12-26  Eric Blake  <ebb9@byu.net>
1588
1589         * gnulib-tool (sed_extract_prog): Avoid space-tab.
1590
1591 2006-12-26  Eric Blake  <ebb9@byu.net>
1592
1593         * modules/absolute-header: New module.
1594         * modules/fcntl (Depends-on): Depend on it.
1595         * modules/inttypes (Depends-on): Likewise.
1596         * modules/stdint (Depends-on): Likewise.
1597         * modules/sys_stat (Depends-on): Likewise.
1598         * modules/wctype (Depends-on): Likewise.
1599         * MODULES.html.sh (Support for building libraries and
1600         executables): Document it.
1601
1602 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
1603
1604         * gnulib-tool (SED): Remove, undoing previous change.
1605         The problem was that it broke coreutils on Solaris, because
1606         "sed --posix" leaked into a makefile.
1607         (sed): New alias, if 'alias' and GNU sed.
1608
1609 2006-12-24  Jim Meyering  <jim@meyering.net>
1610
1611         Work around an fchownat bug in glibc-2.4:
1612         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
1613         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
1614         in spite of the -P option.
1615         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
1616         New macros.
1617         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
1618         * modules/openat (Files): Add lib/fchownat.c.
1619         * lib/openat.c (fchownat): Don't define here.  Move to...
1620         * lib/fchownat.c: ...this new file.
1621
1622 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
1623
1624         Fix bug reported by Bruno Haible in
1625         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
1626         where quotearg.c didn't compile on Mac OS X 10.2 because it
1627         lacks <wchar.h> and wint_t.
1628         * lib/wctype_.h (__wctype_wint_t): New type.
1629         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
1630         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
1631         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
1632         Arg is now of type __wctype_wint_t, not wint_t.
1633         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
1634         substitute HAVE_WINT_T.
1635         * modules/wctype (Files): Add m4/wint_t.m4.
1636         (wctype.h): Substitute HAVE_WINT_T.
1637
1638 2006-12-23  Bruno Haible  <bruno@clisp.org>
1639
1640         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
1641
1642 2006-12-23  Bruno Haible  <bruno@clisp.org>
1643
1644         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
1645         S_ISLNK.
1646         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
1647         mingw.
1648
1649 2006-12-22  Bruno Haible  <bruno@clisp.org>
1650
1651         * lib/copy-file.c: Include acl.h.
1652         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
1653         Close the file descriptors only after being done with copy_acl.
1654         * modules/copy-file (Depends-on): Add acl.
1655
1656 2006-12-22  Bruno Haible  <bruno@clisp.org>
1657
1658         * gnulib-tool (SED): New variable.
1659         Use $SED instead of sed everywhere.
1660
1661 2006-12-22  Bruno Haible  <bruno@clisp.org>
1662
1663         * modules/no-c++: New file.
1664         * m4/no-c++.m4: New file.
1665         * MODULES.html.sh (Support for building libraries and executables):
1666         Add no-c++.
1667
1668 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
1669
1670         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
1671         Include <limits.h>, and use its INT_MAX to rewrite the
1672         j loop so that it does not overflow 'int'.  Problem reported by
1673         Ralf Wildenhues in
1674         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
1675         Play it safe by shifting left by 1 rather than multiplying by 2,
1676         as GCC is less likely to optimize this away when the value
1677         is signed (when it assumes overflow leads to undefined behavior).
1678         Also, don't assume time_t uses two's complement.
1679
1680 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
1681
1682         * MODULES.html.sh: New module wctype.
1683         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
1684         * lib/fnmatch.c: Don't bother to include <wchar.h> before
1685         <wctype.h>, since the new wctype module should fix this.
1686         * lib/quotearg.c: Include <wctype.h> unconditionally, since
1687         the wctype module should arrange for it.
1688         * lib/regex_internal.h: Likewise.
1689         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
1690         since the wctype module should handle this now.
1691         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
1692         * modules/fnmatch (Depends-on): Add wctype.
1693         * modules/quotearg (Depends-on): Likewise.
1694         * modules/regex (Depends-on): Likewise.
1695
1696 2006-12-19  Bruno Haible  <bruno@clisp.org>
1697
1698         * lib/strdup.h [C++]: Wrap definitions in extern "C".
1699         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
1700
1701 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1702
1703         * modules/savewd (Depends-on): Fix dependency on fcntl.
1704
1705 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
1706
1707         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
1708         conforms to C99, rather than relying on the user's environment
1709         setting of STDINT_H.
1710
1711 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
1712         and Eric Blake  <ebb9@byu.net>
1713
1714         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
1715         This is more consistent with the other defines here.
1716         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
1717         Port to z/OS.  Problem reported by Paul Gilmartin.
1718         Change local vars to use gl_ prefix rather than ac_.
1719         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
1720         with other defines.
1721         * modules/double-slash-root: New module.
1722         * modules/dirname (Files): Remove m4/double-slash-root.m4.
1723         (Depends-on): Add double-slash-root.
1724         * MODULES.html.sh (File system functions): Mention new module.
1725
1726 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
1727
1728         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
1729         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
1730         This is for the benefit of gzip, which doesn't do i18n.
1731
1732 2006-12-12  Jim Meyering  <jim@meyering.net>
1733
1734         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
1735         Reported by Andreas Schwab <schwab@suse.de>.
1736
1737 2006-12-12  Bruno Haible  <bruno@clisp.org>
1738
1739         Merge these changes.
1740         2006-09-05  Bruno Haible  <bruno@clisp.org>
1741         * lib/iconvme.c (iconv_string): No need to save and restore errno when
1742         iconv_alloc succeeded.
1743         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
1744         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
1745         test for " && dest " at the end - dest is always != NULL there. Call
1746         iconv with 4xNULL arguments initially, to reset the state. Call iconv
1747         with 2xNULL arguments, also to flush the state storage. Handle the
1748         IRIX iconv behaviour. Realloc the final result, to throw away unused
1749         memory.
1750
1751 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
1752
1753         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
1754         and fchmodat unconditionally, since glibc 2.4 has them.
1755         Problem reported by Arkadiusz Miskiewicz.
1756
1757 2006-12-10  Bruno Haible  <bruno@clisp.org>
1758
1759         * gnulib-tool (func_import): Show the include files only for those
1760         modules that are copied and specified.
1761         Reported by Karl Berry.
1762
1763 2006-12-08  Jim Meyering  <jim@meyering.net>
1764
1765         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
1766         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
1767
1768         * build-aux/announce-gen: Add two new options, both optional:
1769         --bootstrap-tools=TOOL_LIST
1770               a comma-separated list of tools, e.g.,
1771               autoconf,automake,bison,gnulib
1772         --gnulib-snapshot-date=DATE
1773               if gnulib is in the bootstrap tool list,
1774               then report this as the snapshot date.
1775               If not specified, use the current date/time.
1776               If you specify a date here, be sure it's UTC.
1777
1778 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1779
1780         * tests/test-argp-2.sh: Fix test to match actual output.
1781         (func_compare): Fix sed script to be portable.
1782
1783 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
1784
1785         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
1786         workaround for this case.  It is not autoconfigured now; offhand
1787         it's hard to see how to autoconfigure it.
1788
1789 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
1790
1791         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
1792         a directory that is about to be chowned.  Such a directory's
1793         initial file permissions should permit the owner only and this
1794         should not be changed until after the chown, since the group and
1795         other bits would be incorrect if they granted permission before
1796         the chown.
1797
1798         Fix porting problem for iswctype reported by Georg Schwarz in:
1799         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
1800         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
1801         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
1802         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
1803         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
1804
1805 2006-12-03  Jim Meyering  <jim@meyering.net>
1806
1807         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
1808         p->fts_statp may not yet be defined.
1809         (fts_read): Instead, set it in the caller, once p->fts_statp is
1810         sure to be defined, and corresponds to a top-level directory.
1811         This bug made du -x fail.  Here's the coreutils test case:
1812         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
1813         Reported by Mike Frysinger.
1814
1815 2006-12-01  Jim Meyering  <jim@meyering.net>
1816
1817         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
1818         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
1819         Reported by Simon Josefsson.
1820
1821 2006-11-30  Jim Meyering  <jim@meyering.net>
1822
1823         * m4/warning.m4: Use the all-permissive copyright notice
1824         recommended by RMS (rather than LGPL).
1825         * m4/vararrays.m4: Likewise.
1826         * m4/flexmember.m4: Likewise.
1827
1828 2006-11-29  Bruno Haible  <bruno@clisp.org>
1829
1830         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
1831         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
1832         using +=.
1833         Reported by Simon Josefsson <simon@josefsson.org>.
1834
1835 2006-11-28  James Youngman <jay@gnu.org>
1836
1837         * README: Advise users that they might find the bug-gnulib@gnu.org
1838         and autotools-announce@gnu.org mailing lists useful.
1839
1840 2006-11-28  Bruno Haible  <bruno@clisp.org>
1841
1842         * m4/ptrdiff_max.m4: Remove file.
1843
1844 2006-11-21  Bruno Haible  <bruno@clisp.org>
1845
1846         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
1847         _AC_COMPUTE_INT.
1848         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
1849         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
1850         _AC_COMPUTE_INT.
1851         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
1852         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
1853         _AC_COMPUTE_INT.
1854         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
1855
1856 2006-11-28  Jim Meyering  <jim@meyering.net>
1857
1858         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
1859         warning from "gcc -Wshadow" about shadowing the builtin.
1860
1861 2006-11-27  Bruno Haible  <bruno@clisp.org>
1862
1863         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
1864         _AC_COMPUTE_INT.
1865         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
1866
1867 2006-11-27  Bruno Haible  <bruno@clisp.org>
1868             Paul Eggert  <eggert@cs.ucla.edu>
1869
1870         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
1871
1872 2006-11-26  Bruno Haible  <bruno@clisp.org>
1873
1874         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
1875         noinst_LTLIBRARIES.
1876
1877 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
1878             Bruno Haible  <bruno@clisp.org>
1879
1880         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
1881         if compiling with "gcc -ansi".
1882
1883 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
1884
1885         Fix some incompatibilities with gcc -ansi -pedantic.
1886         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
1887         if compiling pedantically with GCC, unless it's C99 or later.
1888         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
1889         it mishandles gcc -ansi -pedantic as well.
1890         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
1891         if gcc -pedantic.
1892         * lib/regexec.c (check_node_accept_bytes): Don't use auto
1893         initializers for struct if -pedantic, unless it's C99 or later.
1894
1895 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
1896
1897         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
1898         Don't close an fd more than once. Identical atimes indicate
1899         success, not failure.
1900
1901 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
1902
1903         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
1904
1905 2006-11-23  Jim Meyering  <jim@meyering.net>
1906
1907         * build-aux/announce-gen: New file.  From coreutils.
1908
1909 2006-11-22  Jim Meyering  <jim@meyering.net>
1910
1911         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
1912         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
1913         (fts_read): Use a temporary to narrow the overused st_size member
1914         before using it in a switch statement.  Reported by Matthew Woehlke.
1915
1916         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
1917         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
1918
1919 2006-11-20  Bruno Haible  <bruno@clisp.org>
1920
1921         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
1922         changequote instead of pairs of brackets.
1923         Reported by Andreas Schwab <schwab@suse.de>.
1924
1925 2006-11-21  Jim Meyering  <jim@meyering.net>
1926
1927         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
1928         so as to remain compatible with older compilers.
1929         Patch from Michael Deutschmann.
1930
1931 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
1932
1933         * MODULES.html.sh (File system functions): Add openat.
1934
1935         * lib/openat.h (rpl_fstatat): New macro, if
1936         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
1937         (fstatat): Define to rpl_fstatat under the same conditions,
1938         unless COMPILING_FSTATAT.
1939         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
1940         seems to have the bug.
1941         * lib/fstatat.c: New file.
1942         * modules/openat (Files): Add it.
1943
1944 2006-11-20  Bruno Haible  <bruno@clisp.org>
1945
1946         * Makefile: New file.
1947
1948 2006-11-20  Jim Meyering  <jim@meyering.net>
1949
1950         The beginnings of syntax-related checks for gnulib.
1951         * lib/Makefile: New file.
1952         * lib/t-idcache: New script.  Ensure that the two halves of
1953         idcache.c stay in sync.
1954
1955         * lib/idcache.c: Adjust comments in user- and group- portions to
1956         be more accurate, and to be consistent with one another.
1957
1958 2006-11-20  Jim Meyering  <jim@meyering.net>
1959
1960         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
1961         continue using the flexible array member (thus, this module performs
1962         half as many malloc calls), with the addition that...
1963         (getgroup, getuser): Consistently record a non-match via an empty
1964         "name" string, and map an empty string match to a NULL return value.
1965         * modules/idcache (Depends-on): Re-add flexmember.
1966
1967         * lib/idcache.c (getuser): Remove all uses of the register keyword.
1968         (getuidbyname, getgroup, getgidbyname): Likewise.
1969
1970         Use cleaner syntax: NULL rather than 0.
1971         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
1972
1973 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
1974
1975         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
1976         It mishandled the case where the group was missing.
1977         Problem reported by Greg Schafer.
1978         * modules/idcache: Likewise.
1979
1980 2006-11-18  Jim Meyering  <jim@meyering.net>
1981
1982         * check-module (%exempt_header): Add exception for some
1983         conditionally-included headers.
1984
1985         * modules/i-ring (Depends-on): Add verify.
1986         (License): Change to LGPL.
1987
1988 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
1989
1990         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
1991         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
1992         and inttostr.h.  Use snprintf rather than uinttostr, so that
1993         LGPLed code doesn't depend on GPLed.
1994
1995 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
1996
1997         * modules/inline (License): Change from GPL to LGPL.
1998
1999 2006-11-17  Jim Meyering  <jim@meyering.net>
2000
2001         * modules/d-type (License): Switch to LGPL.
2002
2003 2006-11-15  Bruno Haible  <bruno@clisp.org>
2004
2005         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
2006
2007 2006-11-15  Eric Blake  <ebb9@byu.net>
2008
2009         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
2010         the module dependency.
2011
2012 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
2013             Bruno Haible  <bruno@clisp.org>
2014
2015         * gnulib-tool (func_create_testdir): Add license consistency check.
2016
2017 2006-11-15  Eric Blake  <ebb9@byu.net>
2018
2019         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
2020         random "(cached)" in configure output.
2021
2022 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2023
2024         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
2025         test for conforming inttypes.h is both announced and cached.
2026
2027         * MODULES.html.sh (seen_modules, seen_files): New variables.
2028         (func_module): Rewrite to use a few less gnulib-tool and sed
2029         invocations.  Avoid a couple of quadratic algorithms for ...
2030         (missed_modules, missed_files): ... these, with ...
2031         (func_append, func_tmpdir): ... these new functions, from
2032         gnulib-tool.  Analogously, install traps for cleanup.
2033
2034         * tests/test-gc.c (main): Remove unused variables.
2035         * tests/test-read-file.c: Include stdlib.h, for 'free'.
2036
2037 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
2038
2039         * modules/inttostr (License): Change to LGPL.
2040
2041 2006-11-14  Eric Blake  <ebb9@byu.net>
2042
2043         * modules/tempname (License): Change to LGPL.
2044
2045 2006-11-14  Eric Blake  <ebb9@byu.net>
2046
2047         * doc/functions.texi (Function Portability): *printf functions on
2048         Cygwin now understand all POSIX size specifiers.
2049
2050 2006-11-14  Bruno Haible  <bruno@clisp.org>
2051
2052         * modules/c-ctype (License): Change to LGPL.
2053
2054 2006-11-12  Bruno Haible  <bruno@clisp.org>
2055
2056         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
2057         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
2058         for GNOME libraries, for which the include files are installed in
2059         subdirectories of $prefix/include.
2060
2061 2006-11-12  Bruno Haible  <bruno@clisp.org>
2062
2063         * m4/lib-link.m4: Require at least autoconf-2.54.
2064         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
2065         name to underscores for the --with option.
2066
2067 2006-11-13  Bruno Haible  <bruno@clisp.org>
2068
2069         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
2070         the tests directory.
2071         Reported by Ralf Wildenhues.
2072
2073 2006-11-13  Bruno Haible  <bruno@clisp.org>
2074
2075         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
2076         (func_emit_initmacro_end): Undo the override here.
2077         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
2078         Works around the famous automake error in coreutils.
2079
2080 2006-11-13  Eric Blake  <ebb9@byu.net>
2081
2082         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
2083         element, not its node.
2084
2085 2006-11-12  Bruno Haible  <bruno@clisp.org>
2086
2087         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
2088         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
2089
2090 2006-11-12  Bruno Haible  <bruno@clisp.org>
2091
2092         * gnulib-tool: New option --local-symlink.
2093         (func_usage): Document it.
2094         (lsymbolic): New variable.
2095         (func_import, func_create_testdir): If --symlink was not specified,
2096         test whether --local-symlink was specified and the file comes from
2097         the local_gnulib_dir.
2098
2099 2006-11-12  Bruno Haible  <bruno@clisp.org>
2100
2101         * gnulib-tool (func_ln): New function.
2102         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
2103
2104 2006-11-12  Bruno Haible  <bruno@clisp.org>
2105
2106         Finish support for source files in subdirectories.
2107         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
2108         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
2109         AUTOMAKE_OPTIONS.
2110         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
2111
2112 2006-11-12  Bruno Haible  <bruno@clisp.org>
2113
2114         * gnulib-tool (func_get_automake_snippet): Synthesize also an
2115         EXTRA_lib_SOURCES augmentation.
2116         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
2117
2118 2006-11-12  Jim Meyering  <jim@meyering.net>
2119
2120         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
2121         file descriptors.  This also averts a failure on systems with
2122         native openat support when a traversed directory lacks "x" access.
2123         * lib/fts_.h: Include "i-ring.h"
2124         (struct FTS) [fts_fd_ring]: New member.
2125         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
2126         (FCHDIR): Add parentheses.
2127         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
2128         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
2129         When descending, rather than simply closing the previous
2130         fts_cwd_fd value, push that file descriptor onto the ring.
2131         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
2132         (fts_open): Initialize the new fd_ring member.
2133         (fts_close): Clear the ring.
2134         (fts_safe_changedir): When possible, use our new fd_ring to skip
2135         the diropen and fstat and dev/ino comparison that would normally
2136         accompany a virtual `chdir ("..")'.
2137
2138         * modules/fts (Depends-on): Add i-ring.
2139         * modules/i-ring: New module.
2140         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
2141         * m4/i-ring.m4: New file.
2142
2143 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2144
2145         * gnulib-tool (func_create_testdir): Fix replacement of
2146         `build-aux' in configure.ac.  Run autotools in gltests
2147         subdirectory.
2148         (func_create_testdir, func_create_megatestdir, test): There is
2149         no need for '--force' in most autotool invocations in a new
2150         tree.  Actually fail the whole test if any of the tools, or the
2151         configure or make stages fail.
2152
2153         Sync from Automake.
2154         * build-aux/gnupload: Revert last change.  Add pointer to upload
2155         instructions of the GNU Maintenance Instructions.
2156         Suggestion by Karl Berry.
2157
2158 2006-11-10  Jim Meyering  <jim@meyering.net>
2159
2160         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
2161
2162 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
2163
2164         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
2165         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
2166         (bind_textdomain_codeset) [! ENABLE_NLS]:
2167         Evaluate all the arguments.  That way, callers get compatible behavior
2168         if the arguments have side effects.  Also, it avoids some GCC
2169         diagnostics in some cases; Joel E. Denny reported problems when Bison
2170         was configured with --enable-gcc-warnigs.
2171
2172 2006-11-10  Jim Meyering  <jim@meyering.net>
2173
2174         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
2175         relevant options in CFLAGS (like -O, -fno-inline) are taken into
2176         account.
2177
2178 2006-11-10  Jim Meyering  <jim@meyering.net>
2179
2180         * modules/inline: New file/module.
2181         * modules/xalloc (Files): Remove m4/inline.m4.
2182         (Depends-on): Add inline, instead.
2183         * modules/oset: Likewise.
2184         * modules/list: Likewise.
2185
2186 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
2187
2188         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
2189         Problem reported by Matthew Woehlke.
2190
2191 2006-11-09  Bruno Haible  <bruno@clisp.org>
2192
2193         * lib/tempname.c (gen_tempname): Remove variant that invokes
2194         __gen_tempname.
2195         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
2196         __gen_tempname.
2197
2198 2006-11-08  Bruno Haible  <bruno@clisp.org>
2199
2200         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
2201         to 'yes' instead of 'cross-compiling'.
2202
2203 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
2204
2205         * lib/quotearg.h (quotearg_free): New decl.
2206         * lib/quotearg.c (quotearg_free): New function.
2207         (slot0, nslots, slotvec0, slotvec):
2208         Now file-scope so that quotearg_free can get at them.
2209
2210 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2211
2212         Sync from Automake.
2213         * build-aux/gnupload: Add missing 'gnu' to example URL.
2214         Report by Karl Berry.
2215
2216 2006-11-08  Bruno Haible  <bruno@clisp.org>
2217
2218         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
2219         Suggested by Paul Eggert.
2220
2221 2006-11-08  Jim Meyering  <jim@meyering.net>
2222
2223         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
2224         It's already included if !_LIBC.
2225         (fts_safe_changedir): Add a comment.
2226
2227 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
2228
2229         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
2230         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
2231         Matthew Woehlke.
2232
2233         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
2234         definitions up, to avoid colliding with change below.
2235         (static_inline) [HAVE_INLINE]: New macro.
2236         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
2237         Provide extern decls when !HAVE_INLINE.  Do not define unless
2238         static_inline is defined, either by us or by xmalloc.c.  Use
2239         static_inline rather than static inline.
2240         (XCALLOC): Optimize sizeof(T) = 1 case.
2241         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
2242
2243 2006-11-07  Bruno Haible  <bruno@clisp.org>
2244
2245         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
2246         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
2247         AC_C_INLINE.
2248         * modules/xalloc (Files): Add m4/inline.m4.
2249
2250 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2251
2252         * README: Fix typo.
2253         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
2254         (Miscellanous Notes): ...from this.
2255
2256 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
2257
2258         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
2259         Mention that offsetof should be used instead of sizeof.
2260         From Bruno Haible.
2261
2262 2006-11-07  Bruno Haible  <bruno@clisp.org>
2263
2264         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
2265
2266 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
2267
2268         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
2269         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
2270         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
2271         (gl_tree_add_before, gl_tree_add_after):
2272         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
2273         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
2274         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
2275         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
2276         (gl_linked_add_after, gl_linked_add_at): Likewise.
2277         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
2278         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
2279         (gl_tree_add_before, gl_tree_add_after): Likewise.
2280         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
2281         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
2282         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
2283
2284 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2285
2286         * lib/gl_oset.h: Use C comment style, not C++ comment style.
2287
2288 2006-11-06  Bruno Haible  <bruno@clisp.org>
2289
2290         * m4/inline.m4: New file.
2291         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
2292         * modules/list (Files): Add m4/inline.m4.
2293         * modules/oset (Files): Likewise.
2294
2295 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
2296
2297         * lib/idcache.c: Include <stddef.h>, for offsetof.
2298         (struct userid.name): Change from char * to a flexible array member.
2299         All uses changed.
2300         * modules/idcache (Depends-on): Add flexmember.
2301
2302         * MODULES.html.sh (Core language properties): New module flexmember.
2303         * modules/flexmember, m4/flexmember.m4: New files.
2304
2305         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
2306         inline functions that are identical with the old xnmalloc_inline,
2307         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
2308         that we can avoid some unnecessary integer multiplications and
2309         divisions in the common case where the element size is known at
2310         compile time.
2311         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
2312         needed.
2313         (xnboundedmalloc): Remove.
2314         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
2315         arguments, for consistency with rest of this header.
2316         (xcharalloc): Rewrite using XNMALLOC.
2317         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
2318         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
2319         versions have been moved to lib/xalloc.h and renamed to be the
2320         non-*_inline versions.
2321         (xmalloc, xrealloc): Implement without reference to the xnmalloc
2322         and xnrealloc functions, since those functions are now inline and
2323         now call us.
2324         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
2325         renaming described above.
2326         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
2327         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
2328         captures the dependency in AC_C_INLINE.
2329
2330         New module canonicalize-lgpl, proposed by Charles Wilson in
2331         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
2332         with a few small changes afterwards.
2333         * MODULES.html.sh (File system functions): New module
2334         canonicalize-lgpl.
2335         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
2336         and canonicalize_file_name.
2337         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
2338         * modules/canonicalize-lgpl: New files.
2339
2340 2006-11-05  Bruno Haible  <bruno@clisp.org>
2341
2342         * gnulib-tool (func_import, func_create_testdir): Create directories
2343         also for files in subdirectories of lib/.
2344
2345 2006-11-05  Bruno Haible  <bruno@clisp.org>
2346
2347         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
2348         ANSI C compliant.
2349
2350 2006-11-03  Bruno Haible  <bruno@clisp.org>
2351
2352         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
2353         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
2354         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
2355         (xnboundedmalloc): New inline function.
2356         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
2357         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
2358         xmalloc.
2359         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
2360         xmalloc.
2361         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
2362         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
2363         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
2364         xmalloc.
2365         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
2366         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
2367         xmalloc.
2368         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
2369         gl_tree_add_after): Use XMALLOC instead of xmalloc.
2370         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
2371         xmalloc.
2372         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
2373         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
2374         gl_tree_add_after): Use XMALLOC instead of xmalloc.
2375         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
2376         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
2377         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
2378         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
2379
2380 2006-11-03  Bruno Haible  <bruno@clisp.org>
2381
2382         * lib/c-ctype.h [C++]: Define functions without name mangling.
2383         * lib/fwriteerror.h [C++]: Likewise.
2384         * lib/gcd.h [C++]: Likewise.
2385         * lib/linebreak.h [C++]: Likewise.
2386
2387 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
2388
2389         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
2390         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
2391         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
2392         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
2393         Check for functions and headers just once.
2394         Check for declaration of canonicalize_file_name.
2395         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
2396
2397 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
2398
2399         * gnulib-tool (func_import): Fix typo in actioncmd.
2400
2401 2006-11-02  Bruno Haible  <bruno@clisp.org>
2402
2403         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
2404         newline sequence in the Makefile.am snippet as a space, like "make"
2405         does.
2406         Reported by Roger Persson <perrog@gmail.com>.
2407
2408 2006-11-01  Bruno Haible  <bruno@clisp.org>
2409
2410         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
2411         already declared in <string.h>.
2412         * lib/strcase.h (strncasecmp): Don't declare it if yes.
2413
2414 2006-11-01  Bruno Haible  <bruno@clisp.org>
2415
2416         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
2417         * lib/strcase.h: Include <string.h>.
2418         (strcasecmp): Define to rpl_strcasecmp here.
2419
2420 2006-11-01  Bruno Haible  <bruno@clisp.org>
2421
2422         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
2423
2424 2006-11-01  Eric Blake  <ebb9@byu.net>
2425
2426         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
2427
2428         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
2429
2430 2006-10-29  Bruno Haible  <bruno@clisp.org>
2431
2432         Make it compile in C++ mode.
2433         * lib/full-write.c (full_rw): Add a cast.
2434
2435 2006-11-01  Bruno Haible  <bruno@clisp.org>
2436
2437         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
2438         be POSIX compliant.
2439         Reported by Roger Persson <perrog@gmail.com>.
2440
2441 2006-11-01  Eric Blake  <ebb9@byu.net>
2442
2443         * lib/getopt_.h: Fix comments.
2444
2445 2006-10-31  Eric Blake  <ebb9@byu.net>
2446
2447         * modules/tmpdir (Depends-on): Add sys_stat.
2448         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
2449         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
2450         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
2451         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
2452         tempname.
2453
2454 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
2455
2456         Avoid some C++ diagnostics reported by Bruno Haible.
2457         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
2458         xmalloc.
2459         (quotearg_alloc): Use xcharalloc rather than xmalloc.
2460         (struct slotvec): Move to top level.
2461         (quotearg_n_options): Rewrite to avoid xmalloc.
2462         * lib/xalloc.h (xcharalloc): New function.
2463         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
2464         [defined __cplusplus]: Add function template that provides result
2465         type propagation.  This part of the change is from Bruno Haible.
2466
2467 2006-10-29  Bruno Haible  <bruno@clisp.org>
2468
2469         Make it compile in C++ mode.
2470         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
2471         * lib/strnlen1.c (strnlen1): Cast memchr result.
2472         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
2473         * lib/clean-temp.c (string_equals, string_hash): Add casts.
2474         (create_temp_dir): Rename local variable 'template'.
2475         (compile_csharp_using_sscli): Add cast.
2476         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
2477         * lib/findprog.c (find_in_path): Likewise.
2478         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
2479         * lib/wait-process.c (register_slave_subprocess): Likewise.
2480
2481 2006-10-22  Bruno Haible  <bruno@clisp.org>
2482
2483         * modules/tsearch: New file.
2484         * lib/tsearch.h: New file.
2485         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
2486         * m4/tsearch.m4: New file.
2487         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
2488
2489 2006-10-29  Eric Blake  <ebb9@byu.net>
2490
2491         * lib/arcfour.c: Assume config.h.
2492         * lib/arctwo.c: Likewise.
2493         * lib/base64.c: Likewise.
2494         * lib/check-version.c: Likewise.
2495         * lib/crc.c: Likewise.
2496         * lib/des.c: Likewise.
2497         * lib/gc-gnulib.c: Likewise.
2498         * lib/gc-libgcrypt.c: Likewise.
2499         * lib/gc-pbkdf2-sha1.c: Likewise.
2500         * lib/getaddrinfo.c: Likewise.
2501         * lib/getdelim.c: Likewise.
2502         * lib/getline.c: Likewise.
2503         * lib/hmac-md5.c: Likewise.
2504         * lib/hmac-sha1.c: Likewise.
2505         * lib/iconvme.c: Likewise.
2506         * lib/md2.c: Likewise.
2507         * lib/md4.c: Likewise.
2508         * lib/memxor.c: Likewise.
2509         * lib/read-file.c: Likewise.
2510         * lib/readline.c: Likewise.
2511         * lib/rijndael-alg-fst.c: Likewise.
2512         * lib/rijndael-api-fst.c: Likewise.
2513         * lib/xgetdomainname.c: Likewise.
2514
2515 2006-10-28  Eric Blake  <ebb9@byu.net>
2516
2517         * lib/xstrndup.c: Assume config.h.
2518
2519 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
2520
2521         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
2522         stat-macros.h is now for our own macros, whereas stat_h is for
2523         macros in the <sys/stat.h> name space.
2524         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
2525         (STAT_MACROS_H): Remove.
2526         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
2527         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
2528         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
2529         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
2530         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
2531         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
2532         Move these macros to ...
2533         * lib/stat_.h: here.  Don't include stat-macros.h.
2534         * lib/canonicalize.c: Don't include stat-macros.h.
2535         * lib/chown.c: Likewise.
2536         * lib/euidaccess.c: Likewise.
2537         * lib/file-type.c: Likewise.
2538         * lib/filemode.c: Likewise.
2539         * lib/glob.c: Likewise.
2540         * lib/isapipe.c: Likewise.
2541         * lib/lchown.c: Likewise.
2542         * lib/lstat.c: Likewise.
2543         * lib/mkdir-p.c: Likewise.
2544         * lib/rmdir.c: Likewise.
2545         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
2546         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
2547         unless mkdir isn't declared, to speed up 'configure'.
2548         Always create sys/stat.h, since it's unlikely any real sys/stat.h
2549         would define all the S_* symbols.
2550         * modules/canonicalize (Depends-on):
2551         Depend on sys_stat, not stat-macros.
2552         * modules/chown: Likewise.
2553         * modules/euidaccess: Likewise.
2554         * modules/filemode: Likewise.
2555         * modules/file-type: Likewise.
2556         * modules/glob: Likewise.
2557         * modules/isapipe: Likewise.
2558         * modules/lchown: Likewise.
2559         * modules/lstat: Likewise.
2560         * modules/mkancesdirs: Likewise.
2561         * modules/rmdir: Likewise.
2562         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
2563         * modules/modechange: Likewise.
2564         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
2565         (configure.ac): Remove gl_STAT_MACROS.
2566         * modules/sys_stat (Depends-on): Remove stat-macros.
2567
2568 2006-10-27  Bruno Haible  <bruno@clisp.org>
2569
2570         * m4/signed.m4: Remove file.
2571         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
2572         invocation.
2573         * modules/vasnprintf (Files): Remove m4/signed.m4.
2574
2575 2006-10-27  Bruno Haible  <bruno@clisp.org>
2576
2577         Update to GNU gettext 0.16.
2578         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
2579         m4/inttypes-h.m4, m4/signed.m4.
2580         * m4/gettext.m4: Update to GNU gettext 0.16.
2581         * m4/intl.m4: New file, from GNU gettext.
2582         * m4/intldir.m4: New file, from GNU gettext.
2583         * config/srclist.txt: Update
2584
2585 2006-10-27  Eric Blake  <ebb9@byu.net>
2586
2587         * MODULES.html.sh: Document tempname.
2588         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
2589         dependencies.
2590         (Files): Move lib/tempname.c...
2591         * modules/tempname: ...to this new module.
2592         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
2593         (gl_PREREQ_TEMPNAME): Move...
2594         * m4/tempname.m4: ...to this new file.
2595         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
2596         * modules/sys_stat (Depends-on): Add stat-macros.
2597         * lib/stat_.h (includes): Pick up stat macros.
2598         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
2599         if stat macros are broken.
2600         * lib/tempname.c (includes): No need to include "stat-macros.h".
2601         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
2602         (direxists, __path_search) [!_LIBC]: Don't compile these in
2603         gnulib; the tmpdir module covers that.
2604         * lib/tempname.h: New file.
2605
2606 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
2607
2608         * COPYING: Explain how gnulib-tool converts licence headers.
2609         Almost all wording by Eric Blake.
2610
2611 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
2612
2613         * lib/mbchar.h (is_basic_table): Make read-only.
2614         * lib/mbchar.c (is_basic_table): Likewise.
2615         Reported by John Darrington.
2616
2617 2006-10-25  Bruno Haible  <bruno@clisp.org>
2618
2619         * lib/progname.h (set_program_name): Undefine before defining.
2620
2621 2006-10-25  Bruno Haible  <bruno@clisp.org>
2622
2623         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
2624         false for non-gcc C++ compilers.
2625         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
2626
2627 2006-10-24  Bruno Haible  <bruno@clisp.org>
2628
2629         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
2630         iconv implementations like Irix iconv.
2631
2632 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
2633
2634         * modules/vararrays: New file.
2635         * m4/vararrays.m4: New file, taken from diffutils.
2636         * MODULES.html.sh: New module vararrays.
2637
2638 2006-10-24  Karl Berry  <karl@gnu.org>
2639
2640         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
2641         Don't call GNU Unix.
2642
2643 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2644
2645         * users.txt: Add Libtool.
2646
2647         Sync from Libtool:
2648
2649         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
2650
2651         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
2652         to gnulib's policy of including config.h unconditionally.
2653
2654 2006-10-24  Bruno Haible  <bruno@clisp.org>
2655
2656         * modules/wcwidth (Files): Add m4/wint_t.m4.
2657         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
2658         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
2659
2660 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
2661
2662         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
2663         to pacify GCC with some -W flags enabled.  Problem reported by
2664         Bruno Haible.
2665
2666 2006-10-24  Jim Meyering  <jim@meyering.net>
2667
2668         * MODULES.html.sh: Remove uinttostr.  It's not a module.
2669         Reported by Karl Berry.
2670
2671 2006-10-23  Bruno Haible  <bruno@clisp.org>
2672
2673         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
2674
2675 2006-10-24  Bruno Haible  <bruno@clisp.org>
2676
2677         * lib/gl_list.h: Use C comment style, not C++ comment style.
2678
2679 2006-10-23  Eric Blake  <ebb9@byu.net>
2680
2681         * lib/getaddrinfo.c (includes): Add missing include.
2682
2683 2006-10-23  Bruno Haible  <bruno@clisp.org>
2684             Paul Eggert  <eggert@cs.ucla.edu>
2685
2686         Ability to rename obstack_free.
2687         * lib/obstack.h (__obstack_free): New macro. Declare instead of
2688         obstack_free.
2689         (obstack_free): Invoke the __obstack_free macro.
2690         * lib/obstack.c (obstack_free): Use __obstack_free macro.
2691
2692 2006-10-23  Bruno Haible  <bruno@clisp.org>
2693             Paul Eggert  <eggert@cs.ucla.edu>
2694
2695         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
2696         __argc, __argv from the declaration. (They are defined as macros on
2697         mingw.)
2698
2699 2006-10-22  Bruno Haible  <bruno@clisp.org>
2700
2701         * doc/gnulib-intro.texi: New file.
2702         * doc/gnulib.texi: Include it.
2703
2704 2006-10-21  Bruno Haible  <bruno@clisp.org>
2705
2706         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
2707         "Introduction", "Miscellanous Notes", "Particular Modules".
2708
2709 2006-10-21  Bruno Haible  <bruno@clisp.org>
2710
2711         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
2712         Change mostlyclean-local rule to avoid sh syntax error from bash
2713         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
2714
2715 2006-10-23  Jim Meyering  <jim@meyering.net>
2716
2717         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
2718         in place of snprintf.
2719
2720         * modules/inttostr (Files): Add lib/uinttostr.c.
2721         * lib/uinttostr.c (inttostr): New file/function.
2722         * lib/inttostr.h (uinttostr): Declare.
2723         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
2724         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
2725         Add uinttostr.
2726         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
2727
2728 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
2729
2730         * lib/canonicalize.c (ELOOP): Define if not already defined.
2731         Problem reported by Bruno Haible in
2732         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
2733
2734 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
2735
2736         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
2737         Problem reported by Perry Smith and Ville Laurikari.
2738
2739         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
2740         uses.
2741
2742 2006-10-19  Bruno Haible  <bruno@clisp.org>
2743
2744         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
2745         for mingw.
2746
2747 2006-10-19  Bruno Haible  <bruno@clisp.org>
2748
2749         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
2750         Needed for mingw.
2751
2752 2006-10-19  Bruno Haible  <bruno@clisp.org>
2753
2754         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
2755
2756 2006-10-19  Bruno Haible  <bruno@clisp.org>
2757
2758         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
2759         it.
2760
2761 2006-10-19  Bruno Haible  <bruno@clisp.org>
2762
2763         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
2764         invocation.
2765
2766 2006-10-19  Bruno Haible  <bruno@clisp.org>
2767
2768         * gnulib-tool (func_create_testdir): Don't include ftruncate and
2769         mountlist by default.
2770
2771 2006-10-16  Bruno Haible  <bruno@clisp.org>
2772
2773         * lib/c-strstr.c: Include c-strstr.h.
2774
2775 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
2776
2777         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
2778         in a slash.
2779
2780 2006-10-18  Bruno Haible  <bruno@clisp.org>
2781
2782         * lib/lock.h [C++]: Wrap definitions in extern "C".
2783
2784 2006-10-18  Bruno Haible  <bruno@clisp.org>
2785
2786         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
2787         gl_LIBOBJS list.
2788
2789 2006-10-18  Bruno Haible  <bruno@clisp.org>
2790
2791         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
2792
2793 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
2794
2795         * lib/xstrtol.h: Include gettext.h.
2796         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
2797         Problem reported by Eric Blake.
2798         * modules/xstrtol (Depends-on): Add gettext-h.
2799
2800 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
2801
2802         * lib/strftime.c (advance): New macro.
2803         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
2804         incomplete type, so you can't add 0 to it.  Problem and patch
2805         reported by Eelco Dolstra for dietlibc.
2806
2807 2006-10-18  Jim Meyering  <jim@meyering.net>
2808
2809         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
2810         type for a local, and rename it: s/up/user_proc/.
2811
2812 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
2813
2814         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
2815         READ_UTMP_USER_PROCESS.
2816         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
2817
2818 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
2819
2820         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
2821         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
2822
2823 2006-10-17  Eric Blake  <ebb9@byu.net>
2824
2825         * lib/sigprocmask.c (sigprocmask): Fix typo.
2826
2827         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
2828
2829         * modules/clean-temp (Makefile.am): Don't add to make output...
2830         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
2831         config.h.
2832
2833 2006-10-17  Bruno Haible  <bruno@clisp.org>
2834
2835         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
2836         differently if DEFAULT_TEXT_DOMAIN is set.
2837
2838 2006-10-16  Bruno Haible  <bruno@clisp.org>
2839
2840         * lib/clean-temp.c: Include fwriteerror.h.
2841
2842 2006-10-16  Bruno Haible  <bruno@clisp.org>
2843
2844         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
2845
2846 2006-10-16  Bruno Haible  <bruno@clisp.org>
2847
2848         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
2849         * lib/sigprocmask.h: Include <sys/types.h>.
2850         (sigset_t): Use the system's definition if present.
2851
2852 2006-10-17  Eric Blake  <ebb9@byu.net>
2853
2854         * lib/xvasprintf.c (includes): Assume config.h.
2855         * lib/xasprintf.c (includes): Likewise.
2856
2857 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
2858
2859         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
2860         at least as wide as intmax_t.
2861
2862 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
2863
2864         (Imported from Automake.)
2865         * build-aux/gnupload: Update to version 1.1 of directive file.
2866
2867 2006-10-16  Eric Blake  <ebb9@byu.net>
2868
2869         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
2870         match Automake 1.10a.
2871
2872 2006-10-14  Bruno Haible  <bruno@clisp.org>
2873
2874         * modules/sigprocmask: New file.
2875         * lib/sigprocmask.h: New file.
2876         * lib/sigprocmask.c: New file.
2877         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
2878         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
2879         request sigprocmask.o.
2880         (gl_PREREQ_SIGPROCMASK): New macro.
2881         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
2882         (Depends-on): Add sigprocmask.
2883         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
2884         gt_SIGNALBLOCKING. Test for 'raise' only once.
2885         * lib/fatal-signal.c: Include sigprocmask.h.
2886         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
2887         unblock_fatal_signals): Define always.
2888         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
2889         sigprocmask.
2890
2891 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
2892
2893         Sync from Automake.
2894         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
2895         which incorrectly sets the mode of an existing destination
2896         directory.  In some cases the unpatched install-sh could do the
2897         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
2898         system.  We hope this is rare in practice, but it's clearly worth
2899         fixing.  Problem reported by Alex Unleashed in
2900         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
2901         Also, don't bother to check for -m bugs unless we're using -m;
2902         suggested by Stepan Kasal.
2903
2904 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2905
2906         Sync from Automake.
2907         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
2908         `-c' flag, so they appear at the same position as in %FASTDEP%
2909         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
2910         which ignores unknown options only after the first non-option.
2911         Bug report against M4 by Nelson H. F. Beebe.
2912
2913 2006-10-13  Jim Meyering  <jim@meyering.net>
2914
2915         Fix a bug in yesterday's change.
2916         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
2917         p->fts_statp->st_dev would be used uninitialized.
2918         Ensures that we always call fts_stat on the very first entry.
2919         Miklos Szeredi reported that find -xdev stopped working.
2920
2921 2006-10-12  Bruno Haible  <bruno@clisp.org>
2922
2923         * gnulib-tool (func_get_automake_snippet): Append an automatically
2924         computed EXTRA_DIST augmentation.
2925         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
2926         * modules/alloca-opt (Makefile.am): Likewise.
2927         * modules/allocsa (Makefile.am): Likewise.
2928         * modules/arcfour (Makefile.am): Likewise.
2929         * modules/arctwo (Makefile.am): Likewise.
2930         * modules/argmatch (Makefile.am): Likewise.
2931         * modules/argz (Makefile.am): Likewise.
2932         * modules/atexit (Makefile.am): Likewise.
2933         * modules/backupfile (Makefile.am): Likewise.
2934         * modules/byteswap (Makefile.am): Likewise.
2935         * modules/c-strtod (Makefile.am): Likewise.
2936         * modules/c-strtold (Makefile.am): Likewise.
2937         * modules/calloc (Makefile.am): Likewise.
2938         * modules/canon-host (Makefile.am): Likewise.
2939         * modules/canonicalize (Makefile.am): Likewise.
2940         * modules/chdir-long (Makefile.am): Likewise.
2941         * modules/chdir-safer (Makefile.am): Likewise.
2942         * modules/check-version (Makefile.am): Likewise.
2943         * modules/chown (Makefile.am): Likewise.
2944         * modules/cloexec (Makefile.am): Likewise.
2945         * modules/close-stream (Makefile.am): Likewise.
2946         * modules/closeout (Makefile.am): Likewise.
2947         * modules/crc (Makefile.am): Likewise.
2948         * modules/csharpexec (Makefile.am): Likewise.
2949         * modules/cycle-check (Makefile.am): Likewise.
2950         * modules/des (Makefile.am): Likewise.
2951         * modules/dev-ino (Makefile.am): Likewise.
2952         * modules/dirfd (Makefile.am): Likewise.
2953         * modules/dirname (Makefile.am): Likewise.
2954         * modules/dup2 (Makefile.am): Likewise.
2955         * modules/eealloc (Makefile.am): Likewise.
2956         * modules/error (Makefile.am): Likewise.
2957         * modules/euidaccess (Makefile.am): Likewise.
2958         * modules/exclude (Makefile.am): Likewise.
2959         * modules/exitfail (Makefile.am): Likewise.
2960         * modules/fcntl-safer (Makefile.am): Likewise.
2961         * modules/fcntl (Makefile.am): Likewise.
2962         * modules/file-type (Makefile.am): Likewise.
2963         * modules/fileblocks (Makefile.am): Likewise.
2964         * modules/filemode (Makefile.am): Likewise.
2965         * modules/filenamecat (Makefile.am): Likewise.
2966         * modules/fnmatch (Makefile.am): Likewise.
2967         * modules/fopen-safer (Makefile.am): Likewise.
2968         * modules/fpending (Makefile.am): Likewise.
2969         * modules/fprintftime (Makefile.am): Likewise.
2970         * modules/free (Makefile.am): Likewise.
2971         * modules/fsusage (Makefile.am): Likewise.
2972         * modules/ftruncate (Makefile.am): Likewise.
2973         * modules/fts (Makefile.am): Likewise.
2974         * modules/gc-arcfour (Makefile.am): Likewise.
2975         * modules/gc-des (Makefile.am): Likewise.
2976         * modules/gc-hmac-md5 (Makefile.am): Likewise.
2977         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
2978         * modules/gc-md4 (Makefile.am): Likewise.
2979         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
2980         * modules/gc-sha1 (Makefile.am): Likewise.
2981         * modules/gc (Makefile.am): Likewise.
2982         * modules/getaddrinfo (Makefile.am): Likewise.
2983         * modules/getcwd (Makefile.am): Likewise.
2984         * modules/getdelim (Makefile.am): Likewise.
2985         * modules/getdomainname (Makefile.am): Likewise.
2986         * modules/getgroups (Makefile.am): Likewise.
2987         * modules/gethostname (Makefile.am): Likewise.
2988         * modules/gethrxtime (Makefile.am): Likewise.
2989         * modules/getline (Makefile.am): Likewise.
2990         * modules/getloadavg (Makefile.am): Likewise.
2991         * modules/getlogin_r (Makefile.am): Likewise.
2992         * modules/getndelim2 (Makefile.am): Likewise.
2993         * modules/getopt (Makefile.am): Likewise.
2994         * modules/getpagesize (Makefile.am): Likewise.
2995         * modules/getpass-gnu (Makefile.am): Likewise.
2996         * modules/getpass (Makefile.am): Likewise.
2997         * modules/getsubopt (Makefile.am): Likewise.
2998         * modules/gettime (Makefile.am): Likewise.
2999         * modules/gettimeofday (Makefile.am): Likewise.
3000         * modules/getugroups (Makefile.am): Likewise.
3001         * modules/getusershell (Makefile.am): Likewise.
3002         * modules/glob (Makefile.am): Likewise.
3003         * modules/group-member (Makefile.am): Likewise.
3004         * modules/hard-locale (Makefile.am): Likewise.
3005         * modules/hash (Makefile.am): Likewise.
3006         * modules/hmac-md5 (Makefile.am): Likewise.
3007         * modules/hmac-sha1 (Makefile.am): Likewise.
3008         * modules/human (Makefile.am): Likewise.
3009         * modules/idcache (Makefile.am): Likewise.
3010         * modules/imaxabs (Makefile.am): Likewise.
3011         * modules/imaxdiv (Makefile.am): Likewise.
3012         * modules/inet_ntop (Makefile.am): Likewise.
3013         * modules/inet_pton (Makefile.am): Likewise.
3014         * modules/intprops (Makefile.am): Likewise.
3015         * modules/inttostr (Makefile.am): Likewise.
3016         * modules/inttypes (Makefile.am): Likewise.
3017         * modules/isapipe (Makefile.am): Likewise.
3018         * modules/javaversion (Makefile.am): Likewise.
3019         * modules/lchmod (Makefile.am): Likewise.
3020         * modules/lchown (Makefile.am): Likewise.
3021         * modules/localcharset (Makefile.am): Likewise.
3022         * modules/long-options (Makefile.am): Likewise.
3023         * modules/lstat (Makefile.am): Likewise.
3024         * modules/malloc (Makefile.am): Likewise.
3025         * modules/mathl (Makefile.am): Likewise.
3026         * modules/mbchar (Makefile.am): Likewise.
3027         * modules/md2 (Makefile.am): Likewise.
3028         * modules/md4 (Makefile.am): Likewise.
3029         * modules/md5 (Makefile.am): Likewise.
3030         * modules/memcasecmp (Makefile.am): Likewise.
3031         * modules/memchr (Makefile.am): Likewise.
3032         * modules/memcmp (Makefile.am): Likewise.
3033         * modules/memcoll (Makefile.am): Likewise.
3034         * modules/memcpy (Makefile.am): Likewise.
3035         * modules/memmem (Makefile.am): Likewise.
3036         * modules/memmove (Makefile.am): Likewise.
3037         * modules/mempcpy (Makefile.am): Likewise.
3038         * modules/memrchr (Makefile.am): Likewise.
3039         * modules/memset (Makefile.am): Likewise.
3040         * modules/memxor (Makefile.am): Likewise.
3041         * modules/mkancesdirs (Makefile.am): Likewise.
3042         * modules/mkdir-p (Makefile.am): Likewise.
3043         * modules/mkdir (Makefile.am): Likewise.
3044         * modules/mkdtemp (Makefile.am): Likewise.
3045         * modules/mkstemp (Makefile.am): Likewise.
3046         * modules/mktime (Makefile.am): Likewise.
3047         * modules/modechange (Makefile.am): Likewise.
3048         * modules/mountlist (Makefile.am): Likewise.
3049         * modules/nanosleep (Makefile.am): Likewise.
3050         * modules/obstack (Makefile.am): Likewise.
3051         * modules/openat (Makefile.am): Likewise.
3052         * modules/pagealign_alloc (Makefile.am): Likewise.
3053         * modules/pathmax (Makefile.am): Likewise.
3054         * modules/physmem (Makefile.am): Likewise.
3055         * modules/poll (Makefile.am): Likewise.
3056         * modules/posixtm (Makefile.am): Likewise.
3057         * modules/posixver (Makefile.am): Likewise.
3058         * modules/putenv (Makefile.am): Likewise.
3059         * modules/quote (Makefile.am): Likewise.
3060         * modules/quotearg (Makefile.am): Likewise.
3061         * modules/raise (Makefile.am): Likewise.
3062         * modules/read-file (Makefile.am): Likewise.
3063         * modules/readline (Makefile.am): Likewise.
3064         * modules/readlink (Makefile.am): Likewise.
3065         * modules/readtokens (Makefile.am): Likewise.
3066         * modules/readutmp (Makefile.am): Likewise.
3067         * modules/realloc (Makefile.am): Likewise.
3068         * modules/regex (Makefile.am): Likewise.
3069         * modules/rename-dest-slash (Makefile.am): Likewise.
3070         * modules/rename (Makefile.am): Likewise.
3071         * modules/rijndael (Makefile.am): Likewise.
3072         * modules/rmdir (Makefile.am): Likewise.
3073         * modules/rpmatch (Makefile.am): Likewise.
3074         * modules/safe-read (Makefile.am): Likewise.
3075         * modules/safe-write (Makefile.am): Likewise.
3076         * modules/same-inode (Makefile.am): Likewise.
3077         * modules/same (Makefile.am): Likewise.
3078         * modules/save-cwd (Makefile.am): Likewise.
3079         * modules/savedir (Makefile.am): Likewise.
3080         * modules/setenv (Makefile.am): Likewise.
3081         * modules/settime (Makefile.am): Likewise.
3082         * modules/sha1 (Makefile.am): Likewise.
3083         * modules/sig2str (Makefile.am): Likewise.
3084         * modules/snprintf (Makefile.am): Likewise.
3085         * modules/stat-macros (Makefile.am): Likewise.
3086         * modules/stat-time (Makefile.am): Likewise.
3087         * modules/stdbool (Makefile.am): Likewise.
3088         * modules/stdint (Makefile.am): Likewise.
3089         * modules/stdlib-safer (Makefile.am): Likewise.
3090         * modules/stpcpy (Makefile.am): Likewise.
3091         * modules/stpncpy (Makefile.am): Likewise.
3092         * modules/strcase (Makefile.am): Likewise.
3093         * modules/strcasestr (Makefile.am): Likewise.
3094         * modules/strchrnul (Makefile.am): Likewise.
3095         * modules/strcspn (Makefile.am): Likewise.
3096         * modules/strdup (Makefile.am): Likewise.
3097         * modules/strerror (Makefile.am): Likewise.
3098         * modules/strftime (Makefile.am): Likewise.
3099         * modules/strndup (Makefile.am): Likewise.
3100         * modules/strnlen (Makefile.am): Likewise.
3101         * modules/strpbrk (Makefile.am): Likewise.
3102         * modules/strsep (Makefile.am): Likewise.
3103         * modules/strstr (Makefile.am): Likewise.
3104         * modules/strtod (Makefile.am): Likewise.
3105         * modules/strtoimax (Makefile.am): Likewise.
3106         * modules/strtok_r (Makefile.am): Likewise.
3107         * modules/strtol (Makefile.am): Likewise.
3108         * modules/strtoll (Makefile.am): Likewise.
3109         * modules/strtoul (Makefile.am): Likewise.
3110         * modules/strtoull (Makefile.am): Likewise.
3111         * modules/strtoumax (Makefile.am): Likewise.
3112         * modules/strverscmp (Makefile.am): Likewise.
3113         * modules/sys_socket (Makefile.am): Likewise.
3114         * modules/sys_stat (Makefile.am): Likewise.
3115         * modules/sysexits (Makefile.am): Likewise.
3116         * modules/time_r (Makefile.am): Likewise.
3117         * modules/timegm (Makefile.am): Likewise.
3118         * modules/timespec (Makefile.am): Likewise.
3119         * modules/tmpfile-safer (Makefile.am): Likewise.
3120         * modules/trim (Makefile.am): Likewise.
3121         * modules/unistd-safer (Makefile.am): Likewise.
3122         * modules/unlinkdir (Makefile.am): Likewise.
3123         * modules/unlocked-io (Makefile.am): Likewise.
3124         * modules/userspec (Makefile.am): Likewise.
3125         * modules/utime (Makefile.am): Likewise.
3126         * modules/utimecmp (Makefile.am): Likewise.
3127         * modules/utimens (Makefile.am): Likewise.
3128         * modules/vasnprintf (Makefile.am): Likewise.
3129         * modules/vasprintf (Makefile.am): Likewise.
3130         * modules/vsnprintf (Makefile.am): Likewise.
3131         * modules/xalloc (Makefile.am): Likewise.
3132         * modules/xgetcwd (Makefile.am): Likewise.
3133         * modules/xnanosleep (Makefile.am): Likewise.
3134         * modules/xreadlink (Makefile.am): Likewise.
3135         * modules/xstrtod (Makefile.am): Likewise.
3136         * modules/xstrtol (Makefile.am): Likewise.
3137         * modules/xstrtold (Makefile.am): Likewise.
3138         * modules/yesno (Makefile.am): Likewise.
3139         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
3140
3141 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
3142
3143         * modules/error (Makefile.am): Distribute files through
3144         EXTRA_DIST, not lib_SOURCES.
3145
3146 2006-10-12  Eric Blake  <ebb9@byu.net>
3147
3148         * modules/error (Makefile.am): Distribute files in /lib.
3149         * modules/obstack (Makefile.am): Likewise.
3150
3151 2006-10-12  Bruno Haible  <bruno@clisp.org>
3152
3153         * modules/acl (Makefile.am): Distribute all files in lib/ through
3154         EXTRA_DIST.
3155         * modules/arcfour (Makefile.am): Likewise.
3156         * modules/arctwo (Makefile.am): Likewise.
3157         * modules/argmatch (Makefile.am): Likewise.
3158         * modules/argz (Makefile.am): Likewise.
3159         * modules/atexit (Makefile.am): Likewise.
3160         * modules/backupfile (Makefile.am): Likewise.
3161         * modules/c-strtod (Makefile.am): Likewise.
3162         * modules/c-strtold (Makefile.am): Likewise.
3163         * modules/calloc (Makefile.am): Likewise.
3164         * modules/canon-host (Makefile.am): Likewise.
3165         * modules/canonicalize (Makefile.am): Likewise.
3166         * modules/chdir-long (Makefile.am): Likewise.
3167         * modules/chdir-safer (Makefile.am): Likewise.
3168         * modules/check-version (Makefile.am): Likewise.
3169         * modules/chown (Makefile.am): Likewise.
3170         * modules/cloexec (Makefile.am): Likewise.
3171         * modules/close-stream (Makefile.am): Likewise.
3172         * modules/closeout (Makefile.am): Likewise.
3173         * modules/crc (Makefile.am): Likewise.
3174         * modules/cycle-check (Makefile.am): Likewise.
3175         * modules/des (Makefile.am): Likewise.
3176         * modules/dirfd (Makefile.am): Likewise.
3177         * modules/dirname (Makefile.am): Likewise.
3178         * modules/dup2 (Makefile.am): Likewise.
3179         * modules/euidaccess (Makefile.am): Likewise.
3180         * modules/exclude (Makefile.am): Likewise.
3181         * modules/exitfail (Makefile.am): Likewise.
3182         * modules/fcntl-safer (Makefile.am): Likewise.
3183         * modules/file-type (Makefile.am): Likewise.
3184         * modules/fileblocks (Makefile.am): Likewise.
3185         * modules/filemode (Makefile.am): Likewise.
3186         * modules/filenamecat (Makefile.am): Likewise.
3187         * modules/fnmatch (Makefile.am): Likewise.
3188         * modules/fopen-safer (Makefile.am): Likewise.
3189         * modules/fpending (Makefile.am): Likewise.
3190         * modules/fprintftime (Makefile.am): Likewise.
3191         * modules/free (Makefile.am): Likewise.
3192         * modules/fsusage (Makefile.am): Likewise.
3193         * modules/ftruncate (Makefile.am): Likewise.
3194         * modules/fts (Makefile.am): Likewise.
3195         * modules/gc (Makefile.am): Likewise.
3196         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
3197         * modules/getaddrinfo (Makefile.am): Likewise.
3198         * modules/getcwd (Makefile.am): Likewise.
3199         * modules/getdelim (Makefile.am): Likewise.
3200         * modules/getdomainname (Makefile.am): Likewise.
3201         * modules/getgroups (Makefile.am): Likewise.
3202         * modules/gethostname (Makefile.am): Likewise.
3203         * modules/gethrxtime (Makefile.am): Likewise.
3204         * modules/getline (Makefile.am): Likewise.
3205         * modules/getloadavg (Makefile.am): Likewise.
3206         * modules/getlogin_r (Makefile.am): Likewise.
3207         * modules/getopt (Makefile.am): Likewise.
3208         * modules/getpass (Makefile.am): Likewise.
3209         * modules/getpass-gnu (Makefile.am): Likewise.
3210         * modules/getsubopt (Makefile.am): Likewise.
3211         * modules/gettime (Makefile.am): Likewise.
3212         * modules/gettimeofday (Makefile.am): Likewise.
3213         * modules/getugroups (Makefile.am): Likewise.
3214         * modules/getusershell (Makefile.am): Likewise.
3215         * modules/glob (Makefile.am): Likewise.
3216         * modules/group-member (Makefile.am): Likewise.
3217         * modules/hard-locale (Makefile.am): Likewise.
3218         * modules/hash (Makefile.am): Likewise.
3219         * modules/hmac-md5 (Makefile.am): Likewise.
3220         * modules/hmac-sha1 (Makefile.am): Likewise.
3221         * modules/human (Makefile.am): Likewise.
3222         * modules/idcache (Makefile.am): Likewise.
3223         * modules/imaxabs (Makefile.am): Likewise.
3224         * modules/imaxdiv (Makefile.am): Likewise.
3225         * modules/inet_ntop (Makefile.am): Likewise.
3226         * modules/inet_pton (Makefile.am): Likewise.
3227         * modules/inttostr (Makefile.am): Likewise.
3228         * modules/isapipe (Makefile.am): Likewise.
3229         * modules/lchown (Makefile.am): Likewise.
3230         * modules/long-options (Makefile.am): Likewise.
3231         * modules/lstat (Makefile.am): Likewise.
3232         * modules/malloc (Makefile.am): Likewise.
3233         * modules/mathl (Makefile.am): Likewise.
3234         * modules/mbchar (Makefile.am): Likewise.
3235         * modules/md2 (Makefile.am): Likewise.
3236         * modules/md4 (Makefile.am): Likewise.
3237         * modules/md5 (Makefile.am): Likewise.
3238         * modules/memcasecmp (Makefile.am): Likewise.
3239         * modules/memchr (Makefile.am): Likewise.
3240         * modules/memcmp (Makefile.am): Likewise.
3241         * modules/memcoll (Makefile.am): Likewise.
3242         * modules/memcpy (Makefile.am): Likewise.
3243         * modules/memmem (Makefile.am): Likewise.
3244         * modules/memmove (Makefile.am): Likewise.
3245         * modules/mempcpy (Makefile.am): Likewise.
3246         * modules/memrchr (Makefile.am): Likewise.
3247         * modules/memset (Makefile.am): Likewise.
3248         * modules/memxor (Makefile.am): Likewise.
3249         * modules/mkancesdirs (Makefile.am): Likewise.
3250         * modules/mkdir (Makefile.am): Likewise.
3251         * modules/mkdir-p (Makefile.am): Likewise.
3252         * modules/mkdtemp (Makefile.am): Likewise.
3253         * modules/mkstemp (Makefile.am): Likewise.
3254         * modules/mktime (Makefile.am): Likewise.
3255         * modules/modechange (Makefile.am): Likewise.
3256         * modules/mountlist (Makefile.am): Likewise.
3257         * modules/nanosleep (Makefile.am): Likewise.
3258         * modules/openat (Makefile.am): Likewise.
3259         * modules/pagealign_alloc (Makefile.am): Likewise.
3260         * modules/physmem (Makefile.am): Likewise.
3261         * modules/poll (Makefile.am): Likewise.
3262         * modules/posixtm (Makefile.am): Likewise.
3263         * modules/posixver (Makefile.am): Likewise.
3264         * modules/putenv (Makefile.am): Likewise.
3265         * modules/quote (Makefile.am): Likewise.
3266         * modules/quotearg (Makefile.am): Likewise.
3267         * modules/raise (Makefile.am): Likewise.
3268         * modules/read-file (Makefile.am): Likewise.
3269         * modules/readline (Makefile.am): Likewise.
3270         * modules/readlink (Makefile.am): Likewise.
3271         * modules/readtokens (Makefile.am): Likewise.
3272         * modules/readutmp (Makefile.am): Likewise.
3273         * modules/realloc (Makefile.am): Likewise.
3274         * modules/regex (Makefile.am): Likewise.
3275         * modules/rename (Makefile.am): Likewise.
3276         * modules/rename-dest-slash (Makefile.am): Likewise.
3277         * modules/rijndael (Makefile.am): Likewise.
3278         * modules/rmdir (Makefile.am): Likewise.
3279         * modules/rpmatch (Makefile.am): Likewise.
3280         * modules/safe-read (Makefile.am): Likewise.
3281         * modules/safe-write (Makefile.am): Likewise.
3282         * modules/same (Makefile.am): Likewise.
3283         * modules/save-cwd (Makefile.am): Likewise.
3284         * modules/savedir (Makefile.am): Likewise.
3285         * modules/setenv (Makefile.am): Likewise.
3286         * modules/settime (Makefile.am): Likewise.
3287         * modules/sha1 (Makefile.am): Likewise.
3288         * modules/sig2str (Makefile.am): Likewise.
3289         * modules/snprintf (Makefile.am): Likewise.
3290         * modules/stdlib-safer (Makefile.am): Likewise.
3291         * modules/stpcpy (Makefile.am): Likewise.
3292         * modules/stpncpy (Makefile.am): Likewise.
3293         * modules/strcase (Makefile.am): Likewise.
3294         * modules/strcasestr (Makefile.am): Likewise.
3295         * modules/strchrnul (Makefile.am): Likewise.
3296         * modules/strcspn (Makefile.am): Likewise.
3297         * modules/strdup (Makefile.am): Likewise.
3298         * modules/strerror (Makefile.am): Likewise.
3299         * modules/strftime (Makefile.am): Likewise.
3300         * modules/strndup (Makefile.am): Likewise.
3301         * modules/strnlen (Makefile.am): Likewise.
3302         * modules/strpbrk (Makefile.am): Likewise.
3303         * modules/strsep (Makefile.am): Likewise.
3304         * modules/strstr (Makefile.am): Likewise.
3305         * modules/strtod (Makefile.am): Likewise.
3306         * modules/strtoimax (Makefile.am): Likewise.
3307         * modules/strtok_r (Makefile.am): Likewise.
3308         * modules/strtol (Makefile.am): Likewise.
3309         * modules/strtoll (Makefile.am): Likewise.
3310         * modules/strtoul (Makefile.am): Likewise.
3311         * modules/strtoull (Makefile.am): Likewise.
3312         * modules/strtoumax (Makefile.am): Likewise.
3313         * modules/strverscmp (Makefile.am): Likewise.
3314         * modules/time_r (Makefile.am): Likewise.
3315         * modules/timegm (Makefile.am): Likewise.
3316         * modules/tmpfile-safer (Makefile.am): Likewise.
3317         * modules/unistd-safer (Makefile.am): Likewise.
3318         * modules/unlinkdir (Makefile.am): Likewise.
3319         * modules/userspec (Makefile.am): Likewise.
3320         * modules/utime (Makefile.am): Likewise.
3321         * modules/utimecmp (Makefile.am): Likewise.
3322         * modules/utimens (Makefile.am): Likewise.
3323         * modules/vasnprintf (Makefile.am): Likewise.
3324         * modules/vasprintf (Makefile.am): Likewise.
3325         * modules/vsnprintf (Makefile.am): Likewise.
3326         * modules/xalloc (Makefile.am): Likewise.
3327         * modules/xgetcwd (Makefile.am): Likewise.
3328         * modules/xnanosleep (Makefile.am): Likewise.
3329         * modules/xreadlink (Makefile.am): Likewise.
3330         * modules/xstrtod (Makefile.am): Likewise.
3331         * modules/xstrtol (Makefile.am): Likewise.
3332         * modules/xstrtold (Makefile.am): Likewise.
3333         * modules/yesno (Makefile.am): Likewise.
3334
3335 2006-10-12  Jim Meyering  <jim@meyering.net>
3336
3337         * m4/getloadavg.m4: Revert the change below.
3338
3339         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
3340         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
3341         fail with a symlink, which is what coreutils' ./bootstrap now
3342         creates by default.
3343
3344 2006-10-12  Bruno Haible  <bruno@clisp.org>
3345
3346         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
3347         mingw.
3348         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
3349         MSVC and mingw explicitly.
3350
3351 2006-10-11  Simon Josefsson  <jas@extundo.com>
3352             Bruno Haible  <bruno@clisp.org>
3353
3354         Add support for multiple gnulib-tool invocations in the scope of a
3355         single configure.ac file.
3356         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
3357         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
3358         with the same contents as the _LIBADD variable.
3359         (func_emit_initmacro_start, func_emit_initmacro_end,
3360         func_emit_initmacro_done): New functions.
3361         (func_import, func_create_testdir): Invoke them. Allow the identifiers
3362         gl_LIBOBJS and gl_LTLIBOBJS.
3363
3364 2006-10-11  Bruno Haible  <bruno@clisp.org>
3365
3366         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
3367         (func_create_testdir): Don't create po/Makefile.am, don't invoke
3368         autoreconf. Instead, invoke autopoint explicitly but move back the
3369         *.m4 files from gnulib.
3370
3371 2006-10-11  Bruno Haible  <bruno@clisp.org>
3372
3373         * gnulib-tool (func_usage): Make module names after --create-testdir
3374         optional.
3375         (func_create_testdir): If no module was specified, use nearly all
3376         modules.
3377
3378 2006-10-12  Jim Meyering  <jim@meyering.net>
3379
3380         Big performance improvement for fts-based tools that use FTS_NOSTAT.
3381         Avoid spurious inode-mismatch problems on non-POSIX file systems.
3382         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
3383         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
3384         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
3385         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
3386         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
3387         (fts_set_stat_required): New function.
3388         (fts_open): Defer the calls to fts_stat, if possible or requested.
3389         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
3390         into fts_stat itself.
3391         (fts_read): Perform any required (deferred) fts_stat call.
3392         (fts_build): Likewise, for the directory we're about to open and read.
3393         In the readdir loop, carefully decide whether each entry will require
3394         an eventual call to fts_stat, using dirent.d_type info if available.
3395         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
3396         a command line argument into this function.  Update all callers.
3397         Map a return value of FTS_DOT to FTS_D for a command line argument.
3398         * modules/fts (Depends-on): Add d-type.  Alphabetize.
3399         Thanks to Miklos Szeredi for his tenacity and for the initial
3400         bug report about "find" failing on a FUSE-based file system.
3401
3402         * lib/fts.c (fts_open): Use consistent indentation.
3403
3404 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
3405
3406         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
3407         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
3408         reported by Jim Meyering.  All uses of cache variables renamed
3409         to match Autoconf's.
3410         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
3411         the other one.
3412
3413         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
3414         Fix misspelling in diagnostic.
3415
3416 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
3417
3418         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
3419         defined.  Problem reported by Matthew Woehlke.
3420
3421         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
3422         Add support for Tandem NonStop R series.
3423         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
3424         Use new macro.
3425
3426         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
3427         (has_trailing_slash): Omit size arg; all callers changed.
3428         Omit 'inline', since it doesn't help performance and we'd
3429         need to configure it.
3430         Don't count //, ///, etc. as having a trailing slash.
3431         As a side effect, this removes a C99ism reported by Matthew Woehlke.
3432         (rpl_rename_dest_slash): On failure, use rename's errno rather
3433         than (in some cases) an incorrect or junk errno.
3434         Simplify code by removing need to compute length; this does
3435         cause it to make two passes instead of one over the file name,
3436         but it's worth it.
3437
3438         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
3439         change, since Autoconf's version may no longer be appropriate now
3440         that we are using CVS Autoconf's version.  Add support for Tandem.
3441
3442 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
3443             Bruno Haible  <bruno@clisp.org>
3444
3445         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
3446         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
3447         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
3448         gl_AC_TYPE_LONG_LONG.
3449
3450         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
3451         instead of HAVE_LONG_LONG.
3452         * lib/printf-args.c (printf_fetchargs): Likewise.
3453         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
3454         * lib/vasnprintf.c (VASNPRINTF): Likewise.
3455         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
3456         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
3457         gl_AC_TYPE_LONG_LONG.
3458
3459 2006-10-11  Bruno Haible  <bruno@clisp.org>
3460
3461         * m4/longlong.m4: Add comments.
3462         * m4/ulonglong.m4: Likewise.
3463
3464 2006-10-10  Bruno Haible  <bruno@clisp.org>
3465
3466         Make it possible to #define stpcpy, strdup to aliases.
3467         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
3468         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
3469
3470 2006-10-10  Bruno Haible  <bruno@clisp.org>
3471
3472         Make it possible to #define gcd to an alias.
3473         * lib/gcd.c: Include config.h.
3474
3475 2006-10-10  Bruno Haible  <bruno@clisp.org>
3476
3477         Make it possible to #define c_isascii to an alias.
3478         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
3479         defined. Undefine the macros before defining them, to avoid gcc
3480         warnings.
3481         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
3482         define NO_C_CTYPE_MACROS early.
3483
3484 2006-10-10  Bruno Haible  <bruno@clisp.org>
3485
3486         Make it possible to #define set_program_name to an alias.
3487         * lib/progname.c: Don't undefine set_program_name; instead, undefine
3488         ENABLE_RELOCATABLE early.
3489
3490 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
3491
3492         Port to Tandem NSK OSS, which has 64-bit signed int but at most
3493         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
3494         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
3495         More generally, don't assume that 64-bit signed int is available
3496         if unsigned int is, and vice versa.
3497         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
3498         unsigned symbols, not on their signed counterparts.
3499         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
3500         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
3501         (UINT64_C, UINTMAX_C):
3502         Likewise.
3503         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
3504         unsigned counterparts.
3505         (Have_long_long, Unsigned): New macros.
3506         (Int): Renamed from INT.
3507         (strtoimax): Use the new macros.
3508         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
3509         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
3510         * modules/inttypes (inttypes.h): Substitute
3511         HAVE_UNSIGNED_LONG_LONG_INT.
3512         * modules/stdint (stdint.h): Likewise.
3513         (Files): Add m4/ulonglong.m4.
3514
3515 2006-10-10  Bruno Haible  <bruno@clisp.org>
3516
3517         Fix a gcc -Wshadow warning.
3518         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
3519         to 'bucket'.
3520         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
3521         gl_linked_indexof_from_to): Likewise.
3522         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
3523         Likewise.
3524         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
3525         Likewise.
3526         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
3527         Reported by Eric Blake.
3528
3529 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
3530
3531         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
3532         for NetBSD.  Problem reported by Bruno Haible.
3533
3534 2006-10-09  Jim Meyering  <jim@meyering.net>
3535
3536         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
3537         Patch from Bruno Haible.
3538
3539 2006-10-09  Jim Meyering  <jim@meyering.net>
3540
3541         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
3542         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
3543         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
3544
3545 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
3546
3547         Don't include <config.h> twice; this doesn't work in some cases,
3548         e.g., when config.h has "#define intmax_t long long int" and
3549         we include <config.h>, <inttypes.h>, <config.h> in that order.
3550         Problem reported by Matthew Woehlke in:
3551         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
3552         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
3553         * lib/fts-cycle.c: Don't include config.h.
3554         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
3555         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
3556         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
3557         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
3558         inttypes.h.
3559         * lib/xstrtoumax.c: Likewise.
3560         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
3561         __strtol and the like, so that this module is more like its siblings.
3562         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
3563         Remove; no longer needed now that we assume gnulib inttypes.h.
3564
3565 2006-10-08  Bruno Haible  <bruno@clisp.org>
3566
3567         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
3568         option.
3569
3570 2006-10-07  Jim Meyering  <jim@meyering.net>
3571
3572         * modules/inttypes (inttypes.h): Revert what seems to have been
3573         an inadvertent part of today's change: use "|", not "/" in the
3574         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
3575
3576 2006-10-07  Bruno Haible  <bruno@clisp.org>
3577
3578         * modules/sublist: New file.
3579
3580 2006-10-07  Bruno Haible  <bruno@clisp.org>
3581
3582         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
3583         * modules/argz (argz.h): Likewise.
3584         * modules/arpa_inet (arpa/inet.h): Likewise.
3585         * modules/byteswap (byteswap.h): Likewise.
3586         * modules/configmake (configmake.h): Likewise.
3587         * modules/fcntl (fcntl.h): Likewise.
3588         * modules/fnmatch (fnmatch.h): Likewise.
3589         * modules/getopt (getopt.h): Likewise.
3590         * modules/glob (glob.h): Likewise.
3591         * modules/inttypes (inttypes.h): Likewise.
3592         * modules/netinet_in (netinet/in.h): Likewise.
3593         * modules/poll (poll.h): Likewise.
3594         * modules/stdbool (stdbool.h): Likewise.
3595         * modules/stdint (stdint.h): Likewise.
3596         * modules/sys_select (sys/select.h): Likewise.
3597         * modules/sys_socket (sys/socket.h): Likewise.
3598         * modules/sys_stat (sys/stat.h): Likewise.
3599         * modules/sysexits (sysexits.h): Likewise.
3600         * modules/unistd (unistd.h): Likewise.
3601         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
3602         Add a "DO NOT EDIT" comment to the generated file.
3603         (func_import): Likewise for gnulib-comp.m4.
3604
3605 2006-10-07  Bruno Haible  <bruno@clisp.org>
3606
3607         * lib/gl_sublist.h: New file.
3608         * lib/gl_sublist.c: New file.
3609
3610 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
3611
3612         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
3613         name (relative to the original working directory) and the file
3614         name component (relative to the temporary working directory).  All
3615         callers changed.
3616         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
3617         * lib/mkdir-p.c (make_dir_parents): Likewise.
3618         * lib/mkdir-p.h (make_dir_parents): Likewise.
3619
3620 2006-10-06  Eric Blake  <ebb9@byu.net>
3621
3622         Define several macros for use by the clean-temp module.
3623         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
3624         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
3625         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
3626
3627         * lib/clean-temp.h (close_stream_temp): New declaration.
3628         * lib/clean-temp.c (includes): Pull in headers according to what
3629         other modules are in use.
3630         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
3631
3632 2006-10-06  Bruno Haible  <bruno@clisp.org>
3633
3634         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
3635         instead of fopen, fwriteerror.
3636
3637 2006-10-06  Bruno Haible  <bruno@clisp.org>
3638
3639         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
3640         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
3641         int.
3642         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
3643         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
3644         Return an error indicator.
3645         Suggested by Eric Blake.
3646
3647 2006-10-06  Bruno Haible  <bruno@clisp.org>
3648
3649         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
3650         Reported by Eric Blake.
3651
3652 2006-10-06  Bruno Haible  <bruno@clisp.org>
3653
3654         * modules/closeout (Description): Mention stderr too.
3655
3656 2006-10-06  Bruno Haible  <bruno@clisp.org>
3657         and Paul Eggert  <eggert@cs.ucla.edu>
3658
3659         * lib/closeout.c (close_stdout): Also close stderr.
3660         * lib/closeout.h: Update comment.
3661
3662 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
3663
3664         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
3665         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
3666         * lib/dirchownmod.c: Include lchown.h.
3667         * lib/lchown.c: Don't include files that lchown.h now includes.
3668         Don't declare chown, since lchown.h now does that.
3669         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
3670         (lchown): Define to rpl_chown if lchown is declared but
3671         does not exist.  Declare using a prototype if lchown is not
3672         declared.  Add a copyright notice.
3673         * lib/mkstemp.h: Include <unistd.h>.
3674         * lib/openat.c: Include lchown.h.
3675
3676         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
3677         we now test for that separately.
3678         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
3679         rather than O_NOFOLLOW, when testing whether it's possible to
3680         avoid a race condition reliably.
3681         * lib/savewd.c (savewd_chdir): Likewise.
3682
3683         Remove macros that are no longer needed now that stdint.h is
3684         reliable.
3685         * lib/fsusage.c (UINTMAX_MAX): Remove.
3686         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
3687         * lib/utimecmp.c (SIZE_MAX): Remove.
3688
3689         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
3690
3691         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
3692         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
3693         O_NOATIME works.
3694
3695 2006-10-05  Bruno Haible  <bruno@clisp.org>
3696
3697         * lib/gl_list.h (gl_sortedlist_search_from_to,
3698         gl_sortedlist_indexof_from_to): New declarations.
3699         (gl_list_implementation): New fields sortedlist_search_from_to,
3700         sortedlist_indexof_from_to.
3701         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
3702         inline functions.
3703         * lib/gl_list.c (gl_sortedlist_search_from_to,
3704         gl_sortedlist_indexof_from_to): New functions.
3705         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
3706         function.
3707         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
3708         (gl_array_sortedlist_search_from_to): New function.
3709         (gl_array_list_implementation): Update.
3710         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
3711         function.
3712         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
3713         (gl_carray_sortedlist_search_from_to): New function.
3714         (gl_carray_list_implementation): Update.
3715         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
3716         gl_linked_sortedlist_indexof_from_to): New functions.
3717         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
3718         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
3719         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
3720         gl_tree_sortedlist_indexof_from_to): New functions.
3721         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
3722         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
3723         Update.
3724         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
3725         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
3726         Update.
3727
3728 2006-10-05  Bruno Haible  <bruno@clisp.org>
3729
3730         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
3731         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
3732         (struct gl_list_implementation): Add fields search_from_to,
3733         indexof_from_to. Remove fields search, indexof.
3734         (gl_list_search): Use the search_from_to method.
3735         (gl_list_search_from, gl_list_search_from_to): New functions.
3736         (gl_list_indexof): Use the indexof_from_to method.
3737         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
3738         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
3739         (gl_list_search_from, gl_list_search_from_to): New functions.
3740         (gl_list_indexof): Use the indexof_from_to method.
3741         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
3742         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
3743         gl_array_indexof. Add start_index, end_index arguments.
3744         (gl_array_search_from_to): Renamed from gl_array_search. Add
3745         start_index, end_index arguments.
3746         (gl_array_remove, gl_array_list_implementation): Update.
3747         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
3748         gl_carray_indexof. Add start_index, end_index arguments.
3749         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
3750         start_index, end_index arguments.
3751         (gl_carray_remove, gl_carray_list_implementation): Update.
3752         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
3753         gl_linked_search. Add start_index, end_index arguments.
3754         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
3755         start_index, end_index arguments.
3756         (gl_linked_remove): Update.
3757         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
3758         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
3759         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
3760         field to 'size_t'.
3761         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
3762         gl_tree_search. Add start_index, end_index arguments.
3763         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
3764         start_index, end_index arguments.
3765         (gl_tree_remove): Update.
3766         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
3767         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
3768         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
3769         function.
3770         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
3771         gl_tree_search. Add start_index, end_index arguments.
3772         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
3773         start_index, end_index arguments.
3774         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
3775         Update.
3776         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
3777
3778 2006-10-05  Bruno Haible  <bruno@clisp.org>
3779
3780         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
3781
3782         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
3783         fwriteerror_temp): New declarations.
3784         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
3785         (descriptors): New variable.
3786         (cleanup): First, close the descriptors.
3787         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
3788         fclose_temp, fwriteerror_temp): New functions.
3789
3790 2006-10-04  Jim Meyering  <jim@meyering.net>
3791
3792         * lib/fts.c (fts_open): Tiny comment change.
3793
3794 2006-10-04  Bruno Haible  <bruno@clisp.org>
3795
3796         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
3797         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
3798         gl_LOCK_BODY.
3799         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
3800         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
3801         gl_LOCK_EARLY_BODY.
3802         (gl_LOCK): Require gl_LOCK_BODY.
3803
3804 2006-10-04  Bruno Haible  <bruno@clisp.org>
3805
3806         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
3807         (gl_oset_search_atleast): New declaration.
3808         (struct gl_oset_implementation): Add field 'search_atleast'.
3809         (gl_oset_search_atleast): New inline function.
3810         * lib/gl_oset.c (gl_oset_search_atleast): New function.
3811         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
3812         (gl_array_oset_implementation): Update.
3813         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
3814         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
3815         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
3816
3817 2006-10-04  Bruno Haible  <bruno@clisp.org>
3818
3819         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
3820
3821 2006-10-03  Bruno Haible  <bruno@clisp.org>
3822
3823         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
3824         from gl_avltreehash_list_implementation.
3825
3826 2006-10-03  Bruno Haible  <bruno@clisp.org>
3827
3828         * lib/gl_oset.c (gl_oset_add): Fix return type.
3829
3830 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
3831
3832         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
3833
3834 2006-10-02  Eric Blake  <ebb9@byu.net>
3835
3836         * modules/strnlen (Depends-on): Add extensions.
3837
3838 2006-10-02  Eric Blake  <ebb9@byu.net>
3839
3840         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
3841         definition in 2.60+.
3842
3843 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
3844
3845         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
3846         checks.
3847
3848 2006-10-02  Bruno Haible  <bruno@clisp.org>
3849
3850         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
3851         to the AUTOMAKE_OPTIONS.
3852         Reported by Jim Meyering.
3853
3854 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
3855
3856         Work around bug in Solaris 10 /proc file system:
3857         /proc/self/fd/NNN/.. isn't the parent directory of
3858         the directory whose file descriptor is NNN.  This needs to
3859         be worked around at run time, not compile time, since a
3860         program might be built on Solaris 8, where things work, and
3861         run on Solaris 10.
3862         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
3863         to use the following interface instead:
3864         (OPENAT_BUFFER_SIZE): New macro.
3865         (openat_proc_name): New function.
3866         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
3867         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
3868         Likewise.
3869         * lib/openat-proc.c: New file.
3870         * modules/openat (Files): Add lib/openat-proc.c.
3871         (Depends-on): Add same-inode, stdbool.
3872         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
3873
3874 2006-09-29  Bruno Haible  <bruno@clisp.org>
3875
3876         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
3877         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
3878         argument. Set stdout_closed before testing for ferror, not after.
3879         (fwriteerror, fwriteerror_no_ebadf): New functions.
3880
3881 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3882
3883         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
3884
3885 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
3886
3887         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
3888         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
3889
3890 2006-09-28  Jim Meyering  <jim@meyering.net>
3891
3892         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
3893         Include <unistd.h>.
3894
3895 2006-09-28  Bruno Haible  <bruno@clisp.org>
3896
3897         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
3898         * modules/linkedhash-list (Depends-on): Likewise.
3899         * modules/rbtreehash-list (Depends-on): Likewise.
3900
3901 2006-09-28  Bruno Haible  <bruno@clisp.org>
3902
3903         * lib/strndup.h: Simplify the redefinition of strndup.
3904         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
3905         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
3906
3907 2006-09-28  Bruno Haible  <bruno@clisp.org>
3908
3909         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
3910         * lib/gl_linkedhash_list.c: Likewise.
3911         * lib/gl_rbtreehash_list.c: Likewise.
3912
3913 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
3914
3915         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
3916         getaddrinfo.
3917
3918         * lib/__fpending.h: Don't include <stdio_ext.h> unless
3919         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
3920         it causes <stdio_ext.h> to cause a compile-time error.
3921         Problem reported by Nelson H. F. Beebe.
3922         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
3923         of HAVE_DECL___PENDING.
3924
3925         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
3926         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
3927         declaration.
3928
3929 2006-09-27  Jim Meyering  <jim@meyering.net>
3930
3931         This file could end up with a definition for a function
3932         named __strndup, rather than rpl_strndup on a system with
3933         incomplete weak_alias support.
3934         * lib/strndup.c (strndup): Rename from __strndup.
3935         Remove #defines that used to map __strndup to strndup.
3936         Don't use K&R prototypes.
3937         Remove LIBC-related code, since this file is not sync'd with glibc.
3938         * lib/strndup.h: Revamp, accordingly.
3939         * m4/strndup.m4: Modernize.
3940
3941 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
3942
3943         * modules/savewd (Depends-on): Add 'raise'.
3944         * lib/savewd.c: Include <signal.h>, for 'raise'.
3945
3946 2006-09-26  Jim Meyering  <jim@meyering.net>
3947
3948         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
3949         when we detect Darwin 8.7.0's acl_get_file bug.
3950         Rearrange to perform the new (below) run-test while $LIBS
3951         contains any acl-related library.  Set USE_ACL at the end.
3952         (gl_ACL_GET_FILE): New function.
3953
3954 2006-09-26  Eric Blake  <ebb9@byu.net>
3955
3956         * lib/verror.c: Include <config.h> unconditionally.
3957
3958 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
3959
3960         * modules/clock-time (Maintainer): Add self.
3961         * modules/getlogin_r (Depends-on): Add extensions.
3962
3963 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3964
3965         * modules/clock-time: New module.
3966         * modules/nanosleep (Depends-on): Add clock-time.
3967         * modules/gethrxtime (Depends-on): Likewise.
3968         * modules/gettime (Depends-on): Likewise.
3969         * modules/settime (Depends-on): Likewise.
3970
3971         * modules/fts-lgpl: Depend on openat.
3972         * modules/mkancesdirs: Depend on savewd.
3973         * modules/mkdir-p: Likewise.
3974
3975 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3976
3977         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
3978
3979         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
3980         `gl_have_arbitrary_file_name_length_limit' to
3981         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
3982         actually works between configure runs.
3983
3984 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3985             Bruno Haible  <bruno@clisp.org>
3986
3987         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
3988
3989 2006-09-25  Jim Meyering  <jim@meyering.net>
3990
3991         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
3992         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
3993
3994 2006-09-25  Eric Blake  <ebb9@byu.net>
3995
3996         * gnulib-tool (func_import, func_create_testdir): Fix typos in
3997         exec's in 2006-09-18 patch when shuffling fds.
3998
3999 2006-09-25  Bruno Haible  <bruno@clisp.org>
4000
4001         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
4002         Reported by Jim Meyering.
4003
4004 2006-09-24  Jim Meyering  <jim@meyering.net>
4005
4006         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
4007         compare a pointer against a literal "0".  That caused failures with
4008         at least HP-UX's hpcc.
4009
4010 2006-09-22  Simon Josefsson  <jas@extundo.com>
4011
4012         * modules/gc-sha1:
4013         * modules/gc-md4:
4014         * modules/gc-hmac-sha1:
4015         * modules/gc-hmac-md5:
4016         * modules/gc-des:
4017         * modules/gc-arcfour: Distribute more files.
4018
4019 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4020
4021         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
4022         (gl_linked_iterator_from_to): Initialize struct completely.
4023         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
4024         (gl_tree_iterator_from_to): Likewise
4025         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
4026         * lib/gl_array_list.c [lint] (gl_array_iterator)
4027         (gl_array_iterator_from_to): Likewise.
4028         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
4029         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
4030         (gl_carray_iterator_from_to): Likewise.
4031
4032         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
4033         * lib/md4.c (md4_process_block): Remove unused variable.
4034         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
4035         parentheses for clarity.
4036
4037 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4038
4039         * modules/bison-i18n (Depends-on): Add gettext.
4040
4041 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4042
4043         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
4044         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
4045         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
4046         also add missing comma that caused broken test.
4047         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
4048         stdlib.h, for `abort'.
4049         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
4050         variables.
4051         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
4052         include unistd.h if present, for `rmdir'.
4053         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
4054         variables.
4055         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
4056         in the process include standard headers for prototypes.
4057         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
4058         gets declared on GNU/Linux.
4059         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
4060         unistd.h, for `rmdir'.
4061         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
4062
4063         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
4064         always true.
4065         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
4066
4067         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
4068
4069 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4070
4071         * gnulib-tool (func_version): Create output all at once.  This
4072         may help avoid triggering unnecessary SIGPIPEs, and at any
4073         rate it doesn't hurt.
4074
4075 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4076             Bruno Haible  <bruno@clisp.org>
4077
4078         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
4079         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
4080         * m4/signed.m4 (bh_C_SIGNED): Likewise.
4081
4082         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
4083         (gl_FUNC_VASPRINTF): Invoke it.
4084
4085 2006-09-22  Bruno Haible  <bruno@clisp.org>
4086
4087         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
4088         getloadavg.c as first argument.
4089
4090 2006-09-22  Bruno Haible  <bruno@clisp.org>
4091
4092         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
4093         at the beginning of the gl_INIT macro.
4094         * modules/getloadavg (configure.ac): Pass $gl_source_base to
4095         gl_GETLOADAVG.
4096
4097 2006-09-22  Bruno Haible  <bruno@clisp.org>
4098
4099         * gnulib-tool (func_create_megatestdir): Don't include the config-h
4100         module.
4101         Suggested by Ralf Wildenhues.
4102
4103 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
4104
4105         Import this patch from libc:
4106
4107         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
4108
4109         * lib/regex_internal.c (re_string_reconstruct): Handle
4110         offset < pstr->valid_raw_len && pstr->offsets_needed case.
4111         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
4112         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
4113         re_string_context_at.
4114
4115         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
4116         now requires it.
4117         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
4118         gl_REGEX now does it for us.
4119         (gl_REGEX): Add test taken from
4120         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
4121
4122         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
4123         Check that large offsets work.  Modernize Autoconf usages.
4124         Prefer "yes" to mean a good thing rather than a bad.
4125         Don't put "#define mkstemp" in config.h, as this might interfere
4126         with standard system headers that "#define mkstemp mkstemp64".
4127
4128         * modules/mkstemp (Depends-on): Add extensions, so that
4129         mkstemp is visible on some platforms.
4130         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
4131         (Include): Change to "mkstemp.h" from <stdlib.h>.
4132         (Files): Add mkstemp.h.
4133
4134         * lib/mkstemp.h: New file, since some standard headers
4135         #define mkstemp.
4136         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
4137         Include "mkstemp.h".
4138         Make the _LIBC code resemble glibc original more,
4139         e.g., use K&R style.
4140         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
4141         (mkstemp): Remove, since mkstemp.h does this for us.
4142         * lib/stdlib--.h: Include mkstemp.h.
4143
4144         Import this patch from libc:
4145
4146         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
4147
4148         * lib/tempname.c (__gen_tempname): Change attempts_min
4149         into a macro.  Use preprocessor to decide how to initialize
4150         attempts [Coverity CID 67].
4151
4152 2006-09-20  Bruno Haible  <bruno@clisp.org>
4153
4154         * lib/mkdtemp.c: Import from libc.
4155         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
4156                 * sysdeps/posix/tempname.c (__gen_tempname): Change
4157                 attempts_min into a macro.  Use preprocessor to decide how to
4158                 initialize attempts [Coverity CID 67].
4159         2001-11-27  Paul Eggert  <eggert@twinsun.com>
4160                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
4161                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
4162
4163 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4164
4165         * gnulib-tool (func_exit): New function, to allow to pass the
4166         exit status portably through the trap.  Use everywhere.
4167         (--help, --version): Signal a write error.
4168         (trap): catch SIGPIPE, for write errors.
4169         Exit at the end of the trap, with the correct exit status.
4170
4171 2006-09-19  Karl Berry  <karl@gnu.org>
4172
4173         * doc/gnulib.texi: note about the license texinfo files.
4174
4175 2006-09-19  Eric Blake  <ebb9@byu.net>
4176
4177         * gnulib-tool: Avoid space-tab.
4178
4179 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
4180
4181         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
4182         that prevented coreutils 6.1 from building.  Problem reported
4183         by Petter Reinholdtsen.
4184
4185 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
4186
4187         * gnulib-tool (avoidlist): Fix typo that broke options like
4188         --avoid=lock that are used by coreutils bootstrap.
4189
4190 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
4191
4192         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
4193         more systematically.
4194
4195 2006-09-18  Jim Meyering  <jim@meyering.net>
4196
4197         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
4198
4199 2006-09-18  Bruno Haible  <bruno@clisp.org>
4200
4201         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
4202
4203 2006-09-18  Bruno Haible  <bruno@clisp.org>
4204
4205         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
4206         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
4207         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
4208         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
4209         * m4/gettext.m4: Require autoconf >= 2.52.
4210         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
4211         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
4212         of gl_cv_header_inttypes_h.
4213
4214 2006-09-18  Bruno Haible  <bruno@clisp.org>
4215
4216         * lib/javaversion.c: Include configmake.h.
4217
4218 2006-09-18  Bruno Haible  <bruno@clisp.org>
4219
4220         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
4221         avoid that the while loops be executed in a subshell.
4222
4223 2006-09-18  Bruno Haible  <bruno@clisp.org>
4224
4225         * MODULES.html.sh (func_module): Break long lines.
4226         Suggested by Bruce Korb <bkorb@gnu.org>.
4227
4228 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4229
4230         Speed up by a factor of 1.12.
4231         * gnulib-tool (nl): New variable.
4232         (func_import): Rewrite include directive extraction to only read each
4233         directive once.
4234
4235 2006-09-17  Bruno Haible  <bruno@clisp.org>
4236
4237         * modules/javaversion (Makefile.am): Remove DEFS setting.
4238         (Depends-on): Add configmake, for PKGDATADIR definition.
4239
4240 2006-09-17  Bruno Haible  <bruno@clisp.org>
4241
4242         * gnulib-tool (func_create_testdir): Rewrite all files at once.
4243
4244 2006-09-17  Bruno Haible  <bruno@clisp.org>
4245
4246         * gnulib-tool (func_append): New function, stolen from libtool.m4.
4247         (func_modules_transitive_closure, func_modules_add_dummy,
4248         func_modules_to_filelist, func_import, func_create_testdir,
4249         func_create_megatestdir, ...): Use it wherever possible.
4250         Suggested by Ralf Wildenhues.
4251
4252 2006-09-16  Karl Berry  <karl@gnu.org>
4253
4254         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
4255         to avoid sectioning errors.
4256         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
4257         [ifinfo]: blank line after @center-ed titles.
4258         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
4259         Spell FSF address consistently with others.
4260         (These changes approved by rms.)
4261
4262 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4263
4264         Speed up by a factor of 1.61.
4265         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
4266         already checked module names again.
4267
4268 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4269
4270         Speed up by a factor of 1.13.
4271         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
4272         for new_files, and the input to func_add_or_update.
4273
4274 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4275
4276         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
4277         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
4278
4279 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
4280
4281         * modules/mkancesdirs (Depends-on): Add fcntl.
4282         * modules/savewd: New file.
4283         * MODULES.html.sh (File system functions): Add savewd.
4284
4285         * modules/configmake (Makefile.am): Add support for the
4286         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
4287
4288 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
4289
4290         * m4/savewd.m4: New file.
4291
4292 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
4293
4294         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
4295         (dirchownmod): New arg FD.  All callers changed.
4296         Use FD rather than opening the directory ourself, as opening is
4297         now the caller's responsibility.
4298         * lib/dirchownmod.h: Likewise.
4299         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
4300         hosts that require <sys/types.h> before <sys/stat.h>.  Include
4301         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
4302         (test_dir): Remove.
4303         (mkancesdirs): Return length of prefix of FILE that has already
4304         been made, or -2 if there is a child doing the work.  Redo
4305         algorithm so that it is O(N) rather than O(N**2).  Optimize away
4306         ".", and treat ".." specially since it might stray back into
4307         already-created areas.  Use a subprocess if necessary.  New arg
4308         WD; all users changed.  MAKE_DIR function should now return 1
4309         if it creates a directory that is not readable.  Return -2 if
4310         a child process is spun off.
4311         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
4312         Adjust signature to match code.
4313         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
4314         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
4315         all users changed.
4316         * lib/savewd.c, lib/savewd.h: New files.
4317
4318 2006-09-15  Jim Meyering  <jim@meyering.net>
4319
4320         * modules/rename-dest-slash: New module.
4321         * MODULES.html.sh (posix_compat): Add it here.
4322
4323         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
4324
4325 2006-09-15  Jim Meyering  <jim@meyering.net>
4326
4327         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
4328         file.
4329
4330         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
4331
4332 2006-09-15  Jim Meyering  <jim@meyering.net>
4333
4334         * lib/rename-dest-slash.c (has_trailing_slash): Use
4335         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
4336         (rpl_rename_dest_slash): Perform the cheaper trailing slash
4337         test before testing whether SRC is a directory.
4338         Suggestions from Bruno Haible.
4339
4340         Avoid a warning about an unused variable.
4341         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
4342         into the #ifdef block where it's used.
4343
4344         * lib/rename-dest-slash.c: New file.
4345
4346 2006-09-14  Bruno Haible  <bruno@clisp.org>
4347
4348         * lib/allocsa.c: Include <config.h> unconditionally.
4349         * lib/asnprintf.c: Likewise.
4350         * lib/asprintf.c: Likewise.
4351         * lib/c-strcasecmp.c: Likewise.
4352         * lib/c-strcasestr.c: Likewise.
4353         * lib/c-strncasecmp.c: Likewise.
4354         * lib/c-strstr.c: Likewise.
4355         * lib/classpath.c: Likewise.
4356         * lib/clean-temp.c: Likewise.
4357         * lib/concatpath.c: Likewise.
4358         * lib/copy-file.c: Likewise.
4359         * lib/csharpcomp.c: Likewise.
4360         * lib/csharpexec.c: Likewise.
4361         * lib/execute.c: Likewise.
4362         * lib/fatal-signal.c: Likewise.
4363         * lib/findprog.c: Likewise.
4364         * lib/fwriteerror.c: Likewise.
4365         * lib/gl_array_list.c: Likewise.
4366         * lib/gl_array_oset.c: Likewise.
4367         * lib/gl_avltree_list.c: Likewise.
4368         * lib/gl_avltree_oset.c: Likewise.
4369         * lib/gl_avltreehash_list.c: Likewise.
4370         * lib/gl_carray_list.c: Likewise.
4371         * lib/gl_linked_list.c: Likewise.
4372         * lib/gl_linkedhash_list.c: Likewise.
4373         * lib/gl_list.c: Likewise.
4374         * lib/gl_oset.c: Likewise.
4375         * lib/gl_rbtree_list.c: Likewise.
4376         * lib/gl_rbtree_oset.c: Likewise.
4377         * lib/gl_rbtreehash_list.c: Likewise.
4378         * lib/imaxabs.c: Likewise.
4379         * lib/imaxdiv.c: Likewise.
4380         * lib/javacomp.c: Likewise.
4381         * lib/javaexec.c: Likewise.
4382         * lib/javaversion.c: Likewise.
4383         * lib/linebreak.c: Likewise.
4384         * lib/localcharset.c: Likewise.
4385         * lib/lock.c: Likewise.
4386         * lib/mbchar.c: Likewise.
4387         * lib/mbswidth.c: Likewise.
4388         * lib/mkdtemp.c: Likewise.
4389         * lib/pipe.c: Likewise.
4390         * lib/printf-args.c: Likewise.
4391         * lib/printf-parse.c: Likewise.
4392         * lib/progname.c: Likewise.
4393         * lib/progreloc.c: Likewise.
4394         * lib/readlink.c: Likewise.
4395         * lib/sh-quote.c: Likewise.
4396         * lib/stpcpy.c: Likewise.
4397         * lib/stpncpy.c: Likewise.
4398         * lib/strcasecmp.c: Likewise.
4399         * lib/strcasestr.c: Likewise.
4400         * lib/strcspn.c: Likewise.
4401         * lib/striconv.c: Likewise.
4402         * lib/strncasecmp.c: Likewise.
4403         * lib/strnlen1.c: Likewise.
4404         * lib/strstr.c: Likewise.
4405         * lib/strtok_r.c: Likewise.
4406         * lib/tls.c: Likewise.
4407         * lib/tmpdir.c: Likewise.
4408         * lib/unicodeio.c: Likewise.
4409         * lib/unsetenv.c: Likewise.
4410         * lib/vasnprintf.c: Likewise.
4411         * lib/vasprintf.c: Likewise.
4412         * lib/wait-process.c: Likewise.
4413         * lib/xallocsa.c: Likewise.
4414         * lib/xsetenv.c: Likewise.
4415         * lib/xstriconv.c: Likewise.
4416
4417 2006-09-13  Simon Josefsson  <jas@extundo.com>
4418
4419         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
4420         that internally, suggested by Ralf Wildenhues
4421         <Ralf.Wildenhues@gmx.de>.
4422
4423 2006-09-13  Simon Josefsson  <jas@extundo.com>
4424
4425         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
4426         @LIBOBJS@.
4427         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4428
4429 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
4430
4431         * lib/_fpending.c: Include <config.h> unconditionally, since we no
4432         longer worry about uses that don't define HAVE_CONFIG_H.
4433         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
4434         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
4435         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
4436         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
4437         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
4438         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
4439         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
4440         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
4441         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
4442         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
4443         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
4444         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
4445         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
4446         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
4447         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
4448         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
4449         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
4450         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
4451         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
4452         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
4453         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
4454         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
4455         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
4456         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
4457         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
4458         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
4459         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
4460         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
4461         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
4462         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
4463         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
4464         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
4465         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
4466         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
4467         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
4468         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
4469         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
4470         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
4471         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
4472         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
4473         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
4474         Likewise.
4475
4476 2006-09-13  Eric Blake  <ebb9@byu.net>
4477
4478         * lib/getopt.c: Fix typo in last commit.
4479
4480 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
4481
4482         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
4483         dgettext.
4484
4485 2006-09-12  Jim Meyering  <jim@meyering.net>
4486
4487         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
4488         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
4489         Reported by Nelson H. F. Beebe.
4490
4491 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
4492
4493         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
4494         program_invocation_name and program_invocation_short_name are
4495         initialized.
4496         * lib/argp-namefrob.h: Move declarations of program_invocation_name
4497         and program_invocation_short_name to argp.h, so they are visible
4498         to user programs.
4499         * lib/argp.h: Likewise
4500
4501 2006-09-10  Bruno Haible  <bruno@clisp.org>
4502
4503         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
4504         m4/inttypes_h.m4, m4/uintmax_t.m4.
4505
4506 2006-09-10  Bruno Haible  <bruno@clisp.org>
4507
4508         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
4509         gl_AC_TYPE_UINTMAX_T.
4510
4511 2006-09-10  Bruno Haible  <bruno@clisp.org>
4512
4513         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
4514
4515 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
4516
4517         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
4518         convention.  Text proposed by Bruno Haible.
4519         (struct argp_option): Document the use of N_() wrappers.
4520
4521         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
4522         '\v', and translate the two parts separately, instead of feeding
4523         the whole string to gettext.  This allows to exclude
4524         '\v' from the strings visible to the translator by writing doc
4525         strings as N_("..") "\v" N_("..").
4526
4527 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
4528
4529         * config/srclist.txt: Undo latest change; the bug was fixed.
4530
4531 2006-09-09  Bruno Haible  <bruno@clisp.org>
4532
4533         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
4534         assignments if building a library without libtool.
4535         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
4536         in func_emit_lib_Makefile_am.
4537         (func_import): When building a static library libfoo.a, arrange to
4538         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
4539         (func_create_testdir): Likewise.
4540         * modules/gc (configure.ac, Makefile.am): If building statically,
4541         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
4542         * modules/iconvme (configure.ac, Makefile.am): Likewise.
4543         * modules/striconv (configure.ac, Makefile.am): Likewise.
4544         Based on a suggestion by Ralf Wildenhues.
4545
4546 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
4547
4548         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
4549         Check for unistd.h too, since Autoconf doesn't assume POSIX.
4550         Also:
4551
4552         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
4553         Add year_2050_test to catch glibc bug 2821
4554         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
4555
4556         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
4557         Prefer #ifdef to #if.
4558
4559         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
4560         Return from 'main' instead of calling 'exit'.
4561
4562 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
4563
4564         * lib/mktime.c (guess_time_tm): Fix bug where mktime
4565         returned the maximum time_t value rather than (time_t) -1.
4566         Problem originally reported by William Bardwell
4567         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
4568
4569         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
4570         Moved to here ...
4571         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
4572         ... from here.
4573
4574 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
4575
4576         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
4577         2821 is fixed.
4578
4579 2006-09-08  Jim Meyering  <jim@meyering.net>
4580
4581         Don't make generated files read-only.  That would bother too many
4582         people.  However, do retain the ability to work when targets are
4583         read-only: remove the destination and temporary files before writing
4584         them (when generated via sed or echo), or by using the -f option for
4585         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
4586         * modules/alloca-opt, modules/argz, modules/arpa_inet:
4587         * modules/byteswap, modules/configmake, modules/fcntl:
4588         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
4589         * modules/localcharset, modules/netinet_in, modules/poll:
4590         * modules/stdbool, modules/stdint, modules/sys_select:
4591         * modules/sys_socket, modules/sys_stat, modules/sysexits:
4592
4593 2006-09-08  Jim Meyering  <jim@meyering.net>
4594
4595         Avoid new build failure on FreeBSD 6.0.
4596         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
4597         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
4598         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
4599
4600 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4601
4602         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
4603
4604 2006-09-07  Jim Meyering  <jim@meyering.net>
4605
4606         Fix global typo in last change: use chmod u-w, not chmod u-x.
4607         Spotted by Paul Eggert and Bruce Korb.
4608         * modules/alloca-opt, modules/argz, modules/arpa_inet:
4609         * modules/byteswap, modules/configmake, modules/fcntl:
4610         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
4611         * modules/localcharset, modules/netinet_in, modules/poll:
4612         * modules/stdbool, modules/stdint, modules/sys_select:
4613         * modules/sys_socket, modules/sys_stat, modules/sysexits:
4614
4615 2006-09-06  Jim Meyering  <jim@meyering.net>
4616
4617         Make generated files be read-only.
4618         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
4619         Ensure that each generated file is now read-only.
4620         * modules/argz: Likewise.
4621         * modules/arpa_inet: Likewise.
4622         * modules/byteswap: Likewise.
4623         * modules/configmake: Likewise.
4624         * modules/fcntl: Likewise.
4625         * modules/fnmatch: Likewise.
4626         * modules/getopt: Likewise.
4627         * modules/glob: Likewise.
4628         * modules/inttypes: Likewise.
4629         * modules/netinet_in: Likewise.
4630         * modules/poll: Likewise.
4631         * modules/stdbool: Likewise.
4632         * modules/stdint: Likewise.
4633         * modules/sys_select: Likewise.
4634         * modules/sys_socket: Likewise.
4635         * modules/sys_stat: Likewise.
4636         * modules/sysexits: Likewise.
4637         * modules/localcharset: Same as above, but continue using temporary
4638         file named "t-$@" (why different?) rather than the "$@-t" used
4639         everywhere else.
4640
4641         * modules/sysexits (Makefile.am): Replace literal occurrences
4642         of "sysexit.h" more readable, and more consistent, "$@".
4643
4644 2006-09-06  Bruno Haible  <bruno@clisp.org>
4645
4646         * modules/striconv: New file.
4647         * modules/xstriconv: New file.
4648         * MODULES.html.sh (Internationalization functions): Add striconv,
4649         xstriconv.
4650
4651 2006-09-06  Bruno Haible  <bruno@clisp.org>
4652
4653         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
4654         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
4655         not using libtool correctly.
4656
4657 2006-09-06  Bruno Haible  <bruno@clisp.org>
4658
4659         * lib/striconv.h: New file.
4660         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
4661         iconvstring.c.
4662         * lib/xstriconv.h: New file.
4663         * lib/xstriconv.c: New file.
4664
4665 2006-09-06  Bruno Haible  <bruno@clisp.org>
4666
4667         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
4668         lib_..._LDFLAGS.
4669
4670 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4671
4672         * lib/argz_.h: Sync from Libtool.
4673
4674         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
4675                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4676
4677         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
4678
4679 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
4680
4681         * modules/trim: New file.
4682
4683 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
4684
4685         * lib/trim.h: New file.
4686         * lib/trim.c: New file.
4687
4688 2006-09-05  Bruno Haible  <bruno@clisp.org>
4689
4690         * MODULES.html.sh (String handling): Add trim.
4691
4692 2006-09-04  Karl Berry  <karl@gnu.org>
4693
4694         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
4695         until next release.
4696
4697 2006-09-03  Bruno Haible  <bruno@clisp.org>
4698
4699         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
4700         correctly.
4701
4702 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
4703
4704         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
4705         not gl_GETLOADAVG.  Omit unneeded semicolons.
4706         Problems reported by Ralf Wildenhues in
4707         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
4708         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
4709         at the end, which is the usual gnulib style.
4710
4711         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
4712         of doing all the work ourselves.
4713         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
4714         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
4715
4716 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
4717
4718         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
4719         Problem reported by Ralf Wildenhues in
4720         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
4721
4722         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
4723         HAVE_STRUCT_STATFS_F_FSTYPENAME.
4724
4725 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
4726
4727         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
4728         yesterday's patch by changing test -n to test -z.
4729
4730 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
4731
4732         * modules/getloadavg (Files): Add m4/getloadavg.m4.
4733         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
4734         the former is now obsolescent.
4735
4736         * modules/chdir-long (Depends-on): Add fcntl.
4737
4738 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
4739
4740         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
4741         obsolescent, and programs should use gnulib instead.
4742         * m4/getloadavg.m4: New file, with contents taken from Autoconf
4743         but with prefixes changed.
4744
4745 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
4746
4747         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
4748         or stdbool.h, because they might not exist while configuring.
4749
4750         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
4751         Don't include unistd.h or limits.h; not needed, since chdir-long.h
4752         does that for us.
4753         (O_DIRECTORY): Remove.
4754
4755 2006-08-31  Eric Blake  <ebb9@byu.net>
4756
4757         * gnulib-tool: Don't let emacs change spaces to TAB.
4758
4759 2006-08-31  Bruno Haible  <bruno@clisp.org>
4760
4761         * gnulib-tool: When calling func_import more than once, do it in a
4762         subshell.
4763         Reported by Eric Blake <ebb9@byu.net>.
4764
4765 2006-08-31  Bruno Haible  <bruno@clisp.org>
4766
4767         * gnulib-tool (nl): Remove variable.
4768         (sed_transform_lib_file): Use more robust test for config-h module.
4769         (func_import): Fix typo in 2006-08-25 patch.
4770
4771 2006-08-31  Bruno Haible  <bruno@clisp.org>
4772
4773         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
4774         specified, augment Makefile.am variables instead of assigning them.
4775
4776 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
4777
4778         Work around a bug in both the Linux and SunOS 64-bit kernels:
4779         nanosleep mishandles sleeps for longer than 2**31 seconds.
4780         Problem reported by Frank v Waveren in
4781         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
4782         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
4783         Check for nanosleep bug.
4784         (LIB_NANOSLEEP): Append clock_gettime library if needed.
4785
4786 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
4787
4788         Work around a bug in both the Linux and SunOS 64-bit kernels:
4789         nanosleep mishandles sleeps for longer than 2**31 seconds.
4790         Problem reported by Frank v Waveren in
4791         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
4792         * lib/nanosleep.c (BILLION): New constant.
4793         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
4794         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
4795         implementation.
4796
4797 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
4798
4799         * modules/nanosleep (Depends-on): Add gettime.
4800
4801 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
4802         and Simon Josefsson  <jas@extundo.com>
4803         and Oskar Liljeblad  <oskar@osk.mine.nu>
4804
4805         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
4806         * gnulib-tool (func_import): New license type 'unmodifiable license
4807         text'.
4808         * modules/fdl: Use it.  Longer description.
4809         * module/gpl, module/lgpl: New files.
4810
4811 2006-08-30  Jim Meyering  <jim@meyering.net>
4812
4813         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
4814         shadowing the parameter.
4815
4816 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4817
4818         Sync from Libtool:
4819
4820         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4821
4822         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
4823         sharing with gnulib.  Report by Eric Blake.
4824
4825 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
4826
4827         * modules/isapipe: New file.
4828         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
4829
4830 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
4831
4832         * modules/configmake (Makefile.am): Add a comment, and omit
4833         the CONFIGMAKE_ prefix from generated macro names.  Suggested
4834         by Bruno Haible.
4835
4836 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
4837
4838         * m4/isapipe.m4: New file.
4839
4840 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
4841
4842         * lib/isapipe.c, lib/isapipe.h: New files.
4843
4844 2006-08-29  Jim Meyering  <jim@meyering.net>
4845
4846         * modules/configmake (Makefile.am): Make configmake.h depend on
4847         Makefile.  Otherwise, a stale configmake.h could hang around.
4848
4849 2006-08-29  Eric Blake  <ebb9@byu.net>
4850
4851         * lib/error.c (error_at_line, print_errno_message): Match libc, after
4852         resolution of upstream bug 3044.
4853
4854 2006-08-29  Bruno Haible  <bruno@clisp.org>
4855
4856         * modules/localcharset (Depends-on): Add configmake.
4857         (Makefile.am): Remove setting of LIBDIR through DEFS.
4858
4859 2006-08-29  Bruno Haible  <bruno@clisp.org>
4860
4861         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
4862         defined.
4863
4864 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
4865
4866         * modules/fcntl: New file.
4867         * modules/chdir-safer (Depends-on): Add fcntl.
4868         * modules/fts: Likewise.
4869         * modules/mkdir-p: Likewise.
4870
4871         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
4872         This undoes the most recent change, since we're now addressing the
4873         problem in a different way.
4874
4875         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
4876         into output, since the output might be called Makefile.am even
4877         if $makefile_name is something different.
4878         (func_import): Use $makefile_am rather than
4879         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
4880         empty.
4881
4882         * modules/inttypes (Files): Add m4/inttypes-h.m4.
4883
4884 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
4885
4886         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
4887         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
4888         recent change to stdint.m4, since we're now addressing the problem in a
4889         different way.
4890
4891 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
4892
4893         * m4/fcntl_h.m4: New file.
4894
4895 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
4896
4897         * lib/fcntl_.h: New file.
4898         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
4899         the fcntl module.
4900         * lib/dirchownmod.c: Likewise.
4901         * lib/fts.c: Likewise.
4902
4903         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
4904         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
4905         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
4906         just before including <inttypes.h>, to avoid circular inclusion.
4907
4908 2006-08-28  Jim Meyering  <jim@meyering.net>
4909
4910         * doc/visibility.texi: Actually read and correct the grammar of the
4911         sentence affected by yesterday's change.
4912
4913 2006-08-28  Eric Blake  <ebb9@byu.net>
4914
4915         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
4916         needs wrapper.
4917
4918 2006-08-28  Eric Blake  <ebb9@byu.net>
4919
4920         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
4921
4922 2006-08-28  Eric Blake  <ebb9@byu.net>
4923
4924         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
4925
4926 2006-08-28  Bruno Haible  <bruno@clisp.org>
4927
4928         * modules/c-strstr: New file, from GNU gettext.
4929         * MODULES.html.sh (String handling): Add c-strstr.
4930
4931 2006-08-28  Bruno Haible  <bruno@clisp.org>
4932
4933         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
4934         macros.
4935         Reported by Eric Blake.
4936
4937 2006-08-28  Bruno Haible  <bruno@clisp.org>
4938
4939         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
4940         (VASNPRINTF): Return a string of length > INT_MAX without failing.
4941         * lib/vasprintf.c: Include errno.h, limits.h.
4942         (EOVERFLOW): New fallback definition.
4943         (vasprintf): Test here whether the string length is > INT_MAX.
4944         * lib/vsnprintf.c: Include errno.h, limits.h.
4945         (EOVERFLOW): New fallback definition.
4946         (vsnprintf): Fix bug when generated string was too long for the buffer.
4947         Test here whether the string length is > INT_MAX.
4948
4949 2006-08-28  Bruno Haible  <bruno@clisp.org>
4950
4951         * lib/inttypes_.h (SCNX*): Remove definitions.
4952         Reported by Eric Blake.
4953
4954 2006-08-28  Bruno Haible  <bruno@clisp.org>
4955
4956         * lib/c-strstr.h: New file, from GNU gettext.
4957         * lib/c-strstr.c: New file, from GNU gettext.
4958
4959 2006-08-28  Bruno Haible  <bruno@clisp.org>
4960
4961         * gnulib-tool: Reorder some statements.
4962
4963 2006-08-28  Bruno Haible  <bruno@clisp.org>
4964
4965         * gnulib-tool: New option --makefile-name.
4966         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
4967         $makefile_name.
4968         (func_import): Write $makefile_name to the cache file, and read it from
4969         there unless explicitly specified. Use $makefile_name as file name
4970         instead of Makefile.am. Adjust the recommendations accordingly.
4971
4972 2006-08-28  Bruno Haible  <bruno@clisp.org>
4973
4974         * gnulib-tool (func_verify_module): Check against misapplying patch.
4975
4976 2006-08-28  Bruno Haible  <bruno@clisp.org>
4977
4978         * gnulib-tool (func_relativize, func_relconcat): New functions.
4979         Give an error if --local-dir is given with --update.
4980         Remove trailing slashes from $local_gnulib_dir.
4981         (func_import): Store the relativized $local_gnulib_dir in
4982         gnulib-cache.m4, and read it from there if not specified explicitly.
4983
4984 2006-08-28  Bruno Haible  <bruno@clisp.org>
4985
4986         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
4987         is the current directory. Respect also $local_gnulib_dir.
4988
4989 2006-08-28  Bruno Haible  <bruno@clisp.org>
4990             Simon Josefsson  <jas@extundo.com>
4991
4992         BeOS portability.
4993         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
4994
4995 2006-08-27  Jim Meyering  <jim@meyering.net>
4996
4997         * doc/visibility.texi: Remove duplicate word: "pointer".
4998
4999 2006-08-26  Bruno Haible  <bruno@clisp.org>
5000
5001         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
5002         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
5003         (Makefile.am): Create inttypes.h from inttypes_.h.
5004         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
5005
5006         * modules/imaxabs: New file.
5007
5008         * modules/imaxdiv: New file.
5009
5010 2006-08-26  Bruno Haible  <bruno@clisp.org>
5011
5012         * m4/inttypes.m4: New file.
5013         * m4/_inttypes_h.m4: Remove file.
5014         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
5015         PRI_MACROS_BROKEN.
5016         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
5017
5018         * m4/imaxabs.m4: New file.
5019
5020         * m4/imaxdiv.m4: New file.
5021
5022 2006-08-26  Bruno Haible  <bruno@clisp.org>
5023
5024         * lib/inttypes_.h: New file.
5025         * lib/inttypes.h: Remove file.
5026         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
5027
5028         * lib/imaxabs.c: New file.
5029
5030         * lib/imaxdiv.c: New file.
5031
5032 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
5033
5034         New config-h module, so that "make" output needn't be cluttered
5035         by -DHAVE_CONFIG_H.
5036         * MODULES.html.sh (Support for building libraries and executables):
5037         Add config-h.
5038         * modules/config-h: New file.
5039         * gnulib-tool (nl, sed_transform_lib_file): New vars.
5040         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
5041         the config-h module is used.
5042
5043         New configmake module, so that "make" output needn't be cluttered
5044         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
5045         * MODULES.html.sh (Support for building libraries and executables):
5046         Add configmake.
5047         * modules/configmake: New file.
5048
5049 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
5050
5051         * m4/config-h.m4: New file.
5052
5053 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
5054
5055         * config/srclist.txt: Add elisp-comp.
5056
5057 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
5058
5059         * MODULES.html.sh (Support for building libraries and executables):
5060         Add elisp-comp.
5061         * build-aux/elisp-comp: New file.
5062         * modules/elisp-comp: New file.
5063
5064 2006-08-24  Bruno Haible  <bruno@clisp.org>
5065
5066         * gnulib-tool (func_create_testdir): Use non-default values of
5067         sourcebase and m4base.
5068
5069 2006-08-24  Bruno Haible  <bruno@clisp.org>
5070
5071         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
5072         HTML structure.
5073
5074 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
5075
5076         * modules/openat (Depends-on): Add lchown.
5077
5078 2006-08-23  Bruno Haible  <bruno@clisp.org>
5079
5080         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
5081         of gl_LOCK_EARLY instead of gl_LOCK.
5082
5083 2006-08-23  Bruno Haible  <bruno@clisp.org>
5084
5085         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
5086         on OSF/1 to no.
5087         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
5088
5089 2006-08-23  Bruno Haible  <bruno@clisp.org>
5090
5091         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
5092         as unusable.
5093
5094         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
5095         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
5096         (gl_LOCK): New macro.
5097
5098 2006-08-22  Simon Josefsson  <jas@extundo.com>
5099
5100         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
5101         to md5 module.
5102
5103 2006-08-22  Simon Josefsson  <jas@extundo.com>
5104
5105         * MODULES.html.sh: Add "Support for maintaining and release
5106         projects".
5107
5108         * build-aux/gnupload: New file, from coreutils.
5109
5110 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
5111
5112         Avoid the need for AC_LIBSOURCES in m4 macros.
5113         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
5114         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
5115         * modules/check-version (EXTRA_DIST): Add check-version.h.
5116         * modules/crc (EXTRA_DIST): Add crc.h.
5117         * modules/des (EXTRA_DIST): Add des.h.
5118         * modules/gc (EXTRA_DIST): Add gc.h.
5119         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
5120         * modules/getline (EXTRA_DIST): Add getline.h.
5121         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
5122         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
5123         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
5124         * modules/md2 (EXTRA_DIST): Add md2.h.
5125         * modules/md4 (EXTRA_DIST): Add md4.h.
5126         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
5127         * modules/read-file (EXTRA_DIST): Add read-file.h.
5128         * modules/readline (EXTRA_DIST): Add readline.h.
5129         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
5130         rijndael-api-fst.h.
5131
5132 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
5133
5134         * m4/rijndael.m4 (gl_ARCFOUR):
5135         * m4/arctwo.m4 (gl_ARCTWO):
5136         * m4/check-version.m4 (gl_CHECK_VERSION):
5137         * m4/crc.m4 (gl_CRC):
5138         * m4/des.m4 (gl_DES):
5139         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
5140         * m4/gc.m4 (gl_GC):
5141         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
5142         * m4/getline.m4 (gl_FUNC_GETLINE):
5143         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
5144         * m4/hmac-md5.m4 (gl_HMAC_MD5):
5145         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
5146         * m4/md2.m4 (gl_MD2):
5147         * m4/md4.m4 (gl_MD4):
5148         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
5149         * m4/read-file.m4 (gl_FUNC_READ_FILE):
5150         * m4/readline.m4 (gl_FUNC_READLINE):
5151         * m4/rijndael.m4 (gl_RIJNDAEL):
5152         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
5153         to get the necessary .h files and whatnot.
5154
5155 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
5156
5157         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
5158         gnulib rather than the other way around.
5159         * config/srclistvars.sh (COREUTILS): Remove.
5160
5161 2006-08-22  Jim Meyering  <jim@meyering.net>
5162
5163         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
5164
5165         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
5166
5167 2006-08-22  Eric Blake  <ebb9@byu.net>
5168
5169         * modules/regexprops-generic: New file.
5170         * MODULES.html.sh (Support for building documentation): List it.
5171
5172 2006-08-22  Eric Blake  <ebb9@byu.net>
5173
5174         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
5175         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
5176         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
5177         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
5178
5179 2006-08-22  Bruno Haible  <bruno@clisp.org>
5180
5181         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
5182         and lib_LTLIBRARIES like the other lib_* variables.
5183
5184 2006-08-22  Bruno Haible  <bruno@clisp.org>
5185
5186         * build-aux/x-to-1.in: New file, from GNU gettext.
5187
5188 2006-08-22  Bruno Haible  <bruno@clisp.org>
5189
5190         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
5191         <utmpx.h> exists.
5192
5193 2006-08-22  Bruno Haible  <bruno@clisp.org>
5194
5195         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
5196         <utmpx.h> exists.
5197
5198 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
5199
5200         BeOS portability.
5201         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
5202         exist.
5203         Problem reported by Bruno Haible.
5204
5205 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
5206
5207         Avoid the need for AC_LIBSOURCES in m4 macros.
5208         * modules/acl (EXTRA_DIST): Add acl.h.
5209         * modules/argmatch (Files): Add m4/argmatch.m4.
5210         (configure.ac): Add gl_ARGMATCH.
5211         (EXTRA_DIST): Renamed from lib_SOURCES, for
5212         consistency with the other modules.  Remove argmatch.c.
5213         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
5214         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
5215         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
5216         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
5217         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
5218         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
5219         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
5220         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
5221         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
5222         * modules/closeout (EXTRA_DIST): Add closeout.h.
5223         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
5224         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
5225         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
5226         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
5227         dirname.h; remove basename.c and stripslash.c.
5228         * modules/exclude (EXTRA_DIST): Add exclude.h.
5229         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
5230         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
5231         * modules/file-type (EXTRA_DIST): Add file-type.h.
5232         * modules/filemode (EXTRA_DIST): Add filemode.h.
5233         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
5234         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
5235         * modules/fpending (EXTRA_DIST): Add __fpending.h.
5236         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
5237         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
5238         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
5239         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
5240         * modules/getdate (EXTRA_DIST): Add getdate.c.
5241         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
5242         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
5243         * modules/getpass (EXTRA_DIST): Add getpass.h.
5244         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
5245         * modules/group-member (EXTRA_DIST): Add group-member.h.
5246         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
5247         * modules/hash (EXTRA_DIST): Add hash.h.
5248         * modules/human (EXTRA_DIST): Add human.h.
5249         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
5250         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
5251         * modules/lchown (EXTRA_DIST): Add lchown.h.
5252         * modules/long-options (EXTRA_DIST): Add long-options.h.
5253         * modules/lstat (EXTRA_DIST): Add lstat.h.
5254         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
5255         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
5256         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
5257         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
5258         * modules/memxor (EXTRA_DIST): Add memxor.h.
5259         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
5260         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
5261         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
5262         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
5263         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
5264         * modules/physmem (EXTRA_DIST): Add physmem.h.
5265         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
5266         * modules/posixver (EXTRA_DIST): Add posixver.h.
5267         * modules/quote (EXTRA_DIST): Add quote.h.
5268         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
5269         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
5270         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
5271         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
5272         regex_internal.h regexec.c.
5273         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
5274         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
5275         * modules/same (EXTRA_DIST): Add same.h.
5276         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
5277         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
5278         * modules/savedir (EXTRA_DIST): Add savedir.h.
5279         * modules/sha1 (EXTRA_DIST): Add sha1.h.
5280         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
5281         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
5282         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
5283         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
5284         * modules/strdup (EXTRA_DIST): Add strdup.h.
5285         * modules/strftime (EXTRA_DIST): Add strftime.h.
5286         * modules/strndup (EXTRA_DIST): Add strndup.h.
5287         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
5288         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
5289         * modules/time_r (EXTRA_DIST): Add time_r.h.
5290         * modules/timespec (EXTRA_DIST): Add timespec.h.
5291         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
5292         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
5293         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
5294         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
5295         * modules/userspec (EXTRA_DIST): Add userspec.h.
5296         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
5297         * modules/utimens (EXTRA_DIST): Add utimens.h.
5298         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
5299         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
5300         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
5301         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
5302         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
5303         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
5304         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
5305         * modules/yesno (EXTRA_DIST): Add yesno.h.
5306
5307 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
5308
5309         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
5310
5311         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
5312         * m4/dev-ino.m4, same-inode.m4: Remove.
5313
5314         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
5315         * m4/acl.m4 (AC_FUNC_ACL):
5316         * m4/backupfile.m4 (gl_BACKUPFILE):
5317         * m4/c-strtod.m4 (gl_C99_STRTOLD):
5318         * m4/canon-host.m4 (gl_CANON_HOST):
5319         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
5320         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
5321         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
5322         * m4/cloexec.m4 (gl_CLOEXEC):
5323         * m4/close-stream.m4 (gl_CLOSE_STREAM):
5324         * m4/closeout.m4 (gl_CLOSEOUT):
5325         * m4/dirfd.m4 (gl_FUNC_DIRFD):
5326         * m4/dirname.m4 (gl_DIRNAME):
5327         * m4/exclude.m4 (gl_EXCLUDE):
5328         * m4/exitfail.m4 (gl_EXITFAIL):
5329         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
5330         * m4/file-type.m4 (gl_FILE_TYPE):
5331         * m4/filemode.m4 (gl_FILEMODE):
5332         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
5333         * m4/fpending.m4 (gl_FUNC_FPENDING):
5334         * m4/fprintftime.m4 (gl_FPRINTFTIME):
5335         * m4/fts.m4 (gl_FUNC_FTS):
5336         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
5337         * m4/getdate.m4 (gl_GETDATE):
5338         * m4/gethrxtime.m4 (gl_GETHRXTIME):
5339         * m4/getpagesize.m4 (gl_GETPAGESIZE):
5340         * m4/getpass.m4 (gl_FUNC_GETPASS):
5341         * m4/gettime.m4 (gl_GETTIME):
5342         * m4/getugroups.m4 (gl_GETUGROUPS):
5343         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
5344         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
5345         * m4/hard-locale.m4 (gl_HARD_LOCALE):
5346         * m4/hash.m4 (gl_HASH):
5347         * m4/idcache.m4 (gl_IDCACHE):
5348         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
5349         * m4/lchown.m4 (gl_FUNC_LCHOWN):
5350         * m4/long-options.m4 (gl_LONG_OPTIONS):
5351         * m4/lstat.m4 (gl_FUNC_LSTAT):
5352         * m4/md5.m4 (gl_MD5):
5353         * m4/memcasecmp.m4 (gl_MEMCASECMP):
5354         * m4/memcoll.m4 (gl_MEMCOLL):
5355         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
5356         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
5357         * m4/memxor.m4 (gl_MEMXOR):
5358         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
5359         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
5360         * m4/modechange.m4 (gl_MODECHANGE):
5361         * m4/mountlist.m4 (gl_MOUNTLIST):
5362         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
5363         * m4/openat.m4 (gl_FUNC_OPENAT):
5364         * m4/pathmax.m4 (gl_PATHMAX):
5365         * m4/physmem.m4 (gl_PHYSMEM):
5366         * m4/posixtm.m4 (gl_POSIXTM):
5367         * m4/posixver.m4 (gl_POSIXVER):
5368         * m4/quote.m4 (gl_QUOTE):
5369         * m4/quotearg.m4 (gl_QUOTEARG):
5370         * m4/readtokens.m4 (gl_READTOKENS):
5371         * m4/readutmp.m4 (gl_READUTMP):
5372         * m4/regex.m4 (gl_REGEX):
5373         * m4/safe-read.m4 (gl_SAFE_READ):
5374         * m4/safe-write.m4 (gl_SAFE_WRITE):
5375         * m4/same.m4 (gl_SAME):
5376         * m4/save-cwd.m4 (gl_SAVE_CWD):
5377         * m4/savedir.m4 (gl_SAVEDIR):
5378         * m4/settime.m4 (gl_SETTIME):
5379         * m4/sha1.m4 (gl_SHA1):
5380         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
5381         * m4/stat-macros.m4 (gl_STAT_MACROS):
5382         * m4/stat-time.m4 (gl_STAT_TIME):
5383         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
5384         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
5385         * m4/strdup.m4 (gl_FUNC_STRDUP):
5386         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
5387         * m4/strndup.m4 (gl_FUNC_STRNDUP):
5388         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
5389         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
5390         * m4/time_r.m4 (gl_TIME_R):
5391         * m4/timespec.m4 (gl_TIMESPEC):
5392         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
5393         * m4/unlinkdir.m4 (gl_UNLINKDIR):
5394         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
5395         * m4/userspec.m4 (gl_USERSPEC):
5396         * m4/utimecmp.m4 (gl_UTIMECMP):
5397         * m4/utimens.m4 (gl_UTIMENS):
5398         * m4/xalloc.m4 (gl_XALLOC):
5399         * m4/xgetcwd.m4 (gl_XGETCWD):
5400         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
5401         * m4/xreadlink.m4 (gl_XREADLINK):
5402         * m4/xstrtod.m4 (gl_XSTRTOD):
5403         * m4/yesno.m4 (gl_YESNO):
5404         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
5405         to get the necessary .h files and whatnot.
5406
5407 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
5408             Bruno Haible  <bruno@clisp.org>
5409
5410         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
5411         /bin/sh understanding of '!' conditional negation.
5412
5413 2006-08-21  Jim Meyering  <jim@meyering.net>
5414
5415         * modules/openat (Depends-on): Really alphabetize.
5416
5417         * modules/acl (Depends-on): Add error and quote.
5418
5419         * check-module (find_included_lib_files): Add at-func.c to the
5420         ok-to-include-more-than-once white list.
5421
5422         * modules/openat (Depends-on): Add lstat.  Alphabetize.
5423
5424 2006-08-21  Bruno Haible  <bruno@clisp.org>
5425
5426         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
5427         Emit a pkgdata_DATA variable only if some snippets add contents to it.
5428         Reported by Martin Lambers <marlam@marlam.de>.
5429
5430 2006-08-21  Bruno Haible  <bruno@clisp.org>
5431
5432         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
5433         specify an installation location, don't emit a noinst_LIBRARIES or
5434         noinst_LTLIBRARIES assignment.
5435
5436 2006-08-21  Bruno Haible  <bruno@clisp.org>
5437
5438         BeOS portability.
5439         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
5440         BeOS has mbrtowc() but no <wctype.h>.
5441
5442 2006-08-21  Bruno Haible  <bruno@clisp.org>
5443
5444         BeOS portability.
5445         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
5446         exist.
5447
5448 2006-08-21  Bruno Haible  <bruno@clisp.org>
5449
5450         BeOS portability.
5451         * lib/mbchar.h: Include <wctype.h> only if it exists.
5452
5453 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
5454
5455         Remove files that are no longer needed by their respective modules.
5456         * m4/obstack.m4: Remove.
5457         * m4/strerror_r.m4: Remove.
5458         * m4/uint32_t.m4: Remove.
5459         * m4/uintptr_t.m4: Remove.
5460         * m4/ullong_max.m4: Remove.
5461         * m4/xstrtoimax.m4: Remove.
5462         * m4/xstrtoumax.m4: Remove.
5463
5464         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
5465         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
5466         dependencies now capture this.
5467
5468         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
5469         Do not use AC_LIBSOURCES, since gnulib modules now do this.
5470         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
5471         * m4/human.m4 (gl_HUMAN): Likewise.
5472         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
5473         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
5474
5475         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
5476
5477         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
5478         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
5479         stdint.
5480         * m4/human.m4 (gl_HUMAN): Likewise.
5481         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
5482         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
5483         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
5484         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
5485         * m4/xstrtol (gl_XSTRTOL): Likewise.
5486
5487         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
5488         AC_TYPE_LONG_LONG_INT.
5489         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
5490         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
5491         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
5492         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
5493
5494         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
5495         on stdbool.
5496
5497         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
5498         (gl_PREREQ_XSTRTOUL): Remove.
5499
5500         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
5501
5502         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
5503         mode.
5504
5505 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
5506
5507         Add and change modules to make it easier for coreutils to use
5508         gnulib-tool.
5509         * modules/backupfile (Files): Remove m4/d-ino.m4.
5510         (Depends-on): Add d-ino.
5511         * modules/cycle-check (Depends-on): Add stdint.
5512         (lib_SOURCES): Add cycle-check.h.
5513         * modules/d-ino: New module.
5514         * modules/d-type: New module.
5515         * modules/error (Files): Remove m4/strerror_r.m4.
5516         * modules/filemode (Files): Add m4/st_dm_mode.m4.
5517         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
5518         m4/inttypes_h.m4, m4/uintmax_t.m4.
5519         (Depends-on): Add stdint.
5520         (lib_SOURCES): Add fsusage.h.
5521         * modules/getcwd (Files): Remove d-ino.m4.
5522         (Depends-on): Add d-ino.
5523         * modules/getndelim2 (Depends-on): Add stdint.
5524         * modules/glob (Files): Remove m4/d-type.m4.
5525         (Depends-on): Add d-type.
5526         * modules/host-os: New module.
5527         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
5528         m4/inttypes_h.m4, m4/uintmax_t.m4.
5529         * Depends-on: Add stdint.
5530         (lib_SOURCES): Add human.h.
5531         * modules/inttostr (Files): Remove m4/intmax_t.m4,
5532         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
5533         m4/uintmax_t.m4, m4/ulonglong.m4.
5534         (Depends-on): Add stdint.
5535         (EXTRA_DIST): Add inttostr.h.
5536         * modules/lchmod: New module.
5537         * modules/link-follow: New module.
5538         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
5539         (Depends-on): Add lchmod.
5540         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
5541         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
5542         (Depends-on): Add stdint.
5543         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
5544         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
5545         (Depends-on): Add stdint.
5546         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
5547         * modules/perl: New module.
5548         * modules/regex (Depends-on): Add stdint.
5549         * modules/rmdir-errno: New module.
5550         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
5551         m4/intmax_t.m4.
5552         (Depends-on): Add stdint.
5553         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
5554         m4/uintmax_t.m4.
5555         (Depends-on): Add stdint.
5556         * modules/unlink-busy: New module.
5557         * modules/utimecmp (Depends-on): Add stdint.
5558         * modules/uptime: New module.
5559         * modules/winsz-ioctl: New module.
5560         * modules/winsz-termios: New module.
5561         * modules/xnanosleep (Depends-on): Add nanosleep.
5562         * modules/ullong_max: Remove.
5563         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
5564         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
5565         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
5566         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
5567         (Depends-on): Add inttypes.
5568         (lib_SOURCES): Add xstrtol.h.
5569         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
5570         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
5571         * MODULES.html.sh: Move 'assert' into the assert section.
5572         Move 'dummy' into the linking section.
5573         Remove ullong_max.
5574         Add section for compatibility checks for POSIX:2001 functions,
5575         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
5576         winsz-ioctl, and winsz-termios into it.
5577         Add lchmod.
5578         Add top-level Misc section and put host-os, perl, and uptime
5579         into it.
5580
5581 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
5582
5583         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
5584         now assume the stdint module.  Do not include inttypes.h.
5585         * lib/fsusage.h: Likewise.
5586         * lib/getndelim2.c: Likewise.
5587         * lib/human.h: Likewise.
5588         * lib/inttostr.h: Likewise.
5589         * lib/obstack.c: Likewise.
5590         * lib/regex_internal.h: Likewise.
5591         * lib/tempname.c: Likewise.
5592         * lib/utimecmp.c: Likewise.
5593         * lib/xstrtol.h: Likewise.
5594
5595         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
5596
5597         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
5598         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
5599         * lib/xtime.h: Likewise.
5600
5601 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
5602
5603         * modules/openat (Files): Add lib/fchmodat.c.
5604         Fixes problem reported by Jay Youngman.
5605
5606 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
5607
5608         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
5609         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
5610
5611 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
5612             Bruno Haible  <bruno@clisp.org>
5613
5614         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
5615         and is a script that invokes bison. Tighten the code. Add comments.
5616
5617 2006-08-18  Jim Meyering  <jim@meyering.net>
5618
5619         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
5620         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
5621         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
5622         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
5623
5624 2006-08-18  Bruno Haible  <bruno@clisp.org>
5625
5626         * modules/bison-i18n: New file.
5627         * MODULES.html.sh (Internationalization functions): Add it.
5628
5629 2006-08-18  Bruno Haible  <bruno@clisp.org>
5630
5631         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
5632         sys/statvfs.h. When getmntinfo was found, check its declaration and
5633         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
5634
5635 2006-08-18  Bruno Haible  <bruno@clisp.org>
5636
5637         * m4/bison-i18n.m4: New file, from bison.
5638
5639 2006-08-18  Bruno Haible  <bruno@clisp.org>
5640
5641         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
5642         (ME_DUMMY): Treat "kernfs" as a dummy.
5643         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
5644
5645 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
5646
5647         Update from coreutils.
5648
5649         2006-08-15  Jim Meyering  <jim@meyering.net>
5650
5651         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
5652
5653         2006-01-17  Jim Meyering  <jim@meyering.net>
5654
5655         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
5656
5657         2006-01-11  Jim Meyering  <jim@meyering.net>
5658
5659         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
5660         Check for the lchmod function.
5661
5662 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
5663
5664         Update from coreutils.
5665
5666         * lib/__fpending.h: Add copyright notice.
5667         * lib/fprintftime.h: Likewise.
5668         * lib/savedir.c: Use (C) in copyright notice.
5669         * lib/savedir.h: Likewise.
5670
5671         2006-08-15  Jim Meyering  <jim@meyering.net>
5672
5673         * lib/at-func.c: New file, with the logic of all emulated at-functions.
5674         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
5675         in support of the EXPECTED_ERRNO macro.
5676         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
5677         definitions.  Instead, define the appropriate symbols and include
5678         "at-func.c".
5679         * lib/mkdirat.c (mkdirat): Likewise.
5680         * lib/fchmodat.c (fchmodat): Likewise.
5681         (ENOSYS): Remove definition.
5682         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
5683         it.  Don't include "unistd--.h" -- it wasn't ever used.
5684
5685         2006-01-17  Jim Meyering  <jim@meyering.net>
5686
5687         Rewrite fts.c not to change the current working directory,
5688         by using openat, fstatat, fdopendir, etc..
5689
5690         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
5691         (HAVE_OPENAT_SUPPORT): Define.
5692         [_LIBC] (fchdir): Don't undef or define; no longer used.
5693         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
5694         Now, this `function' always succeeds, and consumes its file descriptor
5695         parameter -- so callers must not close such FDs.  Update callers.
5696         (diropen_fd, opendirat, cwd_advance_fd): New functions.
5697         (diropen): Add parameter, SP.  Adjust all callers.
5698         Implement using diropen_fd, rather than open.
5699         (fts_open): Initialize new member, fts_cwd_fd.
5700         Remove fts_rft-setting code.
5701         (fts_close): Close fts_cwd_fd, if necessary.
5702         (__opendir2): Define in terms of opendir or opendirat,
5703         depending on whether the FST_NOCHDIR flag is set.
5704         (fts_build): Since fts_safe_changedir consumes its FD, and since
5705         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
5706         and close the dup'd file descriptor upon failure.
5707         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
5708         (fts_safe_changedir): Tweak semantics to reflect that this function
5709         now calls cwd_advance_fd and hence consumes its FD argument.
5710         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
5711         [struct FTS] (fts_rft): Remove now-unused member.
5712         [struct FTS] (fts_cycle.state): Improve comment.
5713
5714         * lib/openat.c (openat_needs_fchdir): New function.
5715         * lib/openat.h (openat_needs_fchdir): Declare it.
5716
5717 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
5718
5719         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
5720         Problem and fix reported by Pádraig Brady in
5721         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
5722
5723 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
5724
5725         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
5726
5727 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
5728
5729         * lib/memcoll.c (memcoll): Optimize for the common case where the
5730         arguments are bytewise equal.
5731
5732 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
5733
5734         * doc/regexprops-generic.texi: Add a copyright notice.
5735
5736 2006-08-15  Bruno Haible  <bruno@clisp.org>
5737
5738         * modules/tmpdir (License): Change to LGPL.
5739
5740 2006-08-15  Bruno Haible  <bruno@clisp.org>
5741
5742         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
5743         module.
5744
5745 2006-08-14  Simon Josefsson  <jas@extundo.com>
5746
5747         * config/srclist.txt: Add gnupload.
5748
5749 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
5750
5751         Change copyright notice from LGPL 2 to GPL 2, since that's the
5752         standard form used in the gnulib repository.
5753         * tests/test-lock.c: Likewise.
5754         * tests/test-stdint.c: Likewise.
5755         * tests/test-tls.c: Likewise.
5756
5757         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
5758         prelude-manager.  User shorter URLs for GNU projects, without '?'.
5759         Add copyright notice.
5760
5761         * check-module: Add copyright notice.  Output a copyright
5762         notice if "--version" is specified.
5763         * modules/COPYING: New file.
5764         * tests/test-getaddrinfo.c: Add copyright notice.
5765         * tests/test-verify.c: Likewise.
5766
5767 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
5768
5769         Change copyright notice from LGPL 2 to GPL 2, since that's the
5770         standard form used in the gnulib repository.
5771         * lib/lock.c: LGPL -> GPL.
5772         * lib/lock.h: Likewise.
5773         * lib/strnlen1.c: Likewise.
5774         * lib/strnlen1.h: Likewise.
5775         * lib/tls.c: Likewise.
5776         * lib/tls.h: Likewise.
5777         * lib/tmpdir.c: Likewise.
5778
5779         * lib/TODO: Remove; this belongs only in coreutils.
5780
5781 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
5782
5783         Add copyright notices to long-enough files that lack them, since
5784         otherwise the files aren't clearly free.  Use the same notice that
5785         getdate.texi already uses.
5786         * doc/alloca-opt.texi: Add copyright notice.
5787         * doc/alloca.texi: Likewise.
5788         * doc/ctime.texi: Likewise.
5789         * doc/functions.texi: Likewise.
5790         * doc/gcd.texi: Likewise.
5791         * doc/gnulib-tool.texi: Likewise.
5792         * doc/inet_ntoa.texi: Likewise.
5793         * doc/visibility.texi: Likewise.
5794
5795         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
5796         * doc/quote.texi: Add copyright notice.
5797
5798         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
5799         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
5800         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
5801         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
5802         is now obsolete, and give a pointer to the Sun list.
5803         Add copyright notice.
5804
5805 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
5806
5807         * config/srclistvars.sh: Add copyright notice.
5808
5809 2006-08-14  Eric Blake  <ebb9@byu.net>
5810
5811         Import the following change from libc:
5812
5813         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
5814
5815         Upstream bug 2997.
5816         * lib/misc/error.c: Add space between program name and message if file
5817         name is missing.
5818
5819 2006-08-12  Karl Berry  <karl@gnu.org>
5820
5821         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
5822         remove, these originate in gnulib now.
5823
5824 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5825
5826         * doc/Makefile (standards.info standards.html standards.dvi):
5827         Also depend on make-stds.texi.
5828
5829 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
5830
5831         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
5832         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
5833
5834         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
5835         in wchar_t.  Problem reported by Eric Blake.
5836
5837         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
5838         LEN is smaller than SIZE.  Suggested by Bruno Haible.
5839         Also, help the compiler to keep LEN in a register.
5840
5841 2006-08-11  Eric Blake  <ebb9@byu.net>
5842
5843         * users.txt: Sort.  Add tar.
5844
5845 2006-08-11  Bruno Haible  <bruno@clisp.org>
5846
5847         * users.txt: New file.
5848
5849 2006-08-11  Bruno Haible  <bruno@clisp.org>
5850
5851         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
5852         before <wchar.h>. Needed for OSF/1 and BSD/OS.
5853
5854 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
5855
5856         * modules/snprintf (Depends-on): Remove minmax.
5857         (Maintainer): Add self and Bruno.
5858
5859 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
5860
5861         * lib/.cppi-disable: Add snprintf.h, socket_.h.
5862         * lib/snprintf.c: Include <errno.h> and <limits.h>.
5863         (EOVERFLOW): Define if the system does not.
5864         Do not include "minmax.h"; it wasn't used.
5865         (snprintf): Don't assume size_t promotes to an unsigned type.
5866         Fix bug when generated string was too long for the buffer: the
5867         buffer's contents are supposed to be the initial prefix of the
5868         output.  Don't assume vasnprintf returns EOVERFLOW if the size
5869         exceeds INT_MAX; do the check ourselves.
5870
5871         Import the following changes from libc:
5872
5873         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
5874
5875         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
5876         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
5877         set wc to the byte which couldn't be converted.
5878         (re_string_reconstruct): Don't clear valid_raw_len before calling
5879         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
5880         tip_context using re_string_context_at.
5881
5882         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
5883
5884         * lib/posix/regex.h: g++ still cannot handled [restrict].
5885
5886         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
5887
5888         * lib/posix/regex.h: Remove special handling for VMS.
5889
5890 2006-08-10  Jim Meyering  <jim@meyering.net>
5891
5892         * modules/same-inode: New module.
5893         * modules/dev-ino: New module.
5894         * modules/cycle-check: Depend on these modules, rather than simply
5895         including their .h files.
5896         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
5897         required via m4/cycle-check.m4.
5898         * modules/same: Depend on new same-inode module, rather than
5899         including same-inode.h.
5900         * modules/chdir-safer: New file.
5901
5902         * modules/chown (Depends-on): Add stat-macros.
5903
5904 2006-08-10  Jim Meyering  <jim@meyering.net>
5905
5906         * m4/cycle-check.m4: New file.
5907         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
5908         * m4/dev-ino.m4, m4/same-inode.m4: New files.
5909
5910 2006-08-10  Eric Blake  <ebb9@byu.net>
5911
5912         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
5913         in from original proposal.
5914
5915 2006-08-10  Eric Blake  <ebb9@byu.net>
5916         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5917
5918         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
5919         namespace.
5920
5921 2006-08-10  Bruno Haible  <bruno@clisp.org>
5922
5923         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
5924         as well.
5925
5926 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
5927
5928         Sync from coreutils.
5929
5930         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
5931
5932         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
5933         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
5934
5935 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
5936
5937         * modules/restrict: Remove; no longer needed now that we assume
5938         Autoconf 2.59 or later.
5939         * MODULES.html.sh: Remove 'restrict'.
5940         * modules/argp (Depends-on): Remove 'restrict'.
5941         * modules/base64 (Depends-on): Likewise.
5942         * modules/gc (Depends-on): Likewise.
5943         * modules/getaddrinfo (Depends-on): Likewise.
5944         * modules/glob (Depends-on): Likewise.
5945         * modules/inet_ntop (Depends-on): Likewise.
5946         * modules/inet_pton (Depends-on): Likewise.
5947         * modules/memxor (Depends-on): Likewise.
5948         * modules/regex (Depends-on): Likewise.
5949         * modules/strtok_r (Depends-on): Likewise.
5950         * modules/time_r (Depends-on): Likewise.
5951
5952 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
5953
5954         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
5955         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
5956         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
5957         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
5958         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
5959         * m4/memxor.m4 (gl_MEMXOR): Likewise.
5960         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
5961         gl_C_RESTRICT replaced by AC_C_RESTRICT.
5962
5963         Merge from coreutils.
5964         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
5965         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
5966         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
5967         * m4/time_r.m4 (gl_TIME_R): Likewise.
5968
5969 2006-08-09  Karl Berry  <karl@gnu.org>
5970
5971         * config/srclist.txt: no more gettext-tools, per Bruno.
5972
5973 2006-08-08  Eric Blake  <ebb9@byu.net>
5974
5975         * modules/verror: New module.
5976         * MODULES.html.sh: Document it.
5977
5978 2006-08-08  Eric Blake  <ebb9@byu.net>
5979
5980         * lib/verror.h, lib/verror.c: New files.
5981
5982 2006-08-08  Eric Blake  <ebb9@byu.net>
5983
5984         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
5985         verror_at_line output complies with GNU Coding Standards even when
5986         file is NULL.
5987
5988 2006-08-07  Bruno Haible  <bruno@clisp.org>
5989
5990         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
5991         versions of AIX.
5992         Reported by Ralf Wildenhues.
5993
5994 2006-08-07  Bruno Haible  <bruno@clisp.org>
5995
5996         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
5997         in an AC_DEFUN. Needed so that the autoconf snippets can use
5998         AC_REQUIRE.
5999
6000 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6001
6002         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
6003         Initialize pkgdata_DATA.
6004         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
6005         overriding it.
6006
6007 2006-08-06  Eric Blake  <ebb9@byu.net>
6008
6009         * lib/error.h: Fold in some upstream changes from glibc.
6010         * lib/error.c: Likewise.
6011
6012 2006-08-04  Bruno Haible  <bruno@clisp.org>
6013
6014         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
6015         Make the mostlyclean-local rule depend on mostlyclean-generic.
6016         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
6017
6018 2006-07-31  Bruno Haible  <bruno@clisp.org>
6019
6020         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
6021         <stdlib.h>, <string.h>.
6022
6023 2006-07-30  Bruno Haible  <bruno@clisp.org>
6024
6025         * modules/readlink (License): Change to LGPL.
6026
6027 2006-07-30  Bruno Haible  <bruno@clisp.org>
6028
6029         * modules/javaversion (Makefile.am): Distribute javaversion.java and
6030         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
6031         set PKGDATADIR to point to it.
6032
6033 2006-07-30  Bruno Haible  <bruno@clisp.org>
6034
6035         * modules/csharpexec (configure.ac): Comment out macro invocation.
6036         * modules/javaexec (configure.ac): Likewise.
6037         * modules/javacomp-script (configure.ac): Likewise.
6038
6039         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
6040
6041 2006-07-30  Bruno Haible  <bruno@clisp.org>
6042
6043         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
6044         linked-list.
6045
6046 2006-07-30  Bruno Haible  <bruno@clisp.org>
6047
6048         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
6049
6050 2006-07-30  Bruno Haible  <bruno@clisp.org>
6051
6052         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
6053         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
6054         get removed.
6055
6056 2006-07-29  Bruno Haible  <bruno@clisp.org>
6057
6058         Make it possible for gnulib-tool to work with locally modified or
6059         augmented gnulib repositories.
6060         * gnulib-tool (func_usage): Document --local-dir option.
6061         (local_gnulib_dir): New variable.
6062         Handle --local-dir option.
6063         (func_lookup_file): New function.
6064         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
6065         (func_get_description, func_get_filelist, func_get_description,
6066         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
6067         func_get_automake_snippet, func_get_include_directive,
6068         func_get_license, func_get_maintainer): Use func_lookup_file.
6069         (func_import, func_create_testdir): Use func_lookup_file.
6070
6071 2006-07-29  Bruno Haible  <bruno@clisp.org>
6072
6073         * modules/setenv (Depends-on): Add unistd.
6074
6075 2006-07-29  Bruno Haible  <bruno@clisp.org>
6076
6077         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
6078
6079 2006-07-29  Bruno Haible  <bruno@clisp.org>
6080
6081         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
6082
6083 2006-07-29  Bruno Haible  <bruno@clisp.org>
6084
6085         * gnulib-tool (import, update): If there is no Makefile.am, look at
6086         aclocal.m4, instead of bailing out.
6087
6088 2006-07-29  Bruno Haible  <bruno@clisp.org>
6089
6090         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
6091         Categorize the options by when they are useful.
6092
6093 2006-07-29  Bruno Haible  <bruno@clisp.org>
6094
6095         * gnulib-tool (func_usage): Document option --no-libtool.
6096         Handle option --no-libtool.
6097         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
6098         for changed semantics of $libtool variable.
6099         (func_import): Likewise. If libtool is not used, show this through
6100         an option --no-libtool.
6101         (func_create_testdir): Update.
6102
6103 2006-07-29  Bruno Haible  <bruno@clisp.org>
6104
6105         * gnulib-tool (func_import): Extend error message about missing
6106         --doc-base.
6107
6108 2006-07-29  Bruno Haible  <bruno@clisp.org>
6109
6110         * gnulib-tool (func_import): Don't create the $docbase directory if
6111         there is no file to store there.
6112
6113 2006-07-29  Bruno Haible  <bruno@clisp.org>
6114
6115         * gnulib-tool (autoconf_minversion): If a --dir option is given and
6116         relevant, look for configure.ac there, not in the current directory.
6117         Also use a simple search for AC_PREREQ, not "autoconf --trace".
6118
6119 2006-07-29  Bruno Haible  <bruno@clisp.org>
6120
6121         * gnulib-tool (SORT): New variable.
6122         (func_usage): Undocument --assume-autoconf option.
6123         Remove --assume-autoconf option handling.
6124         (autoconf_minversion): Determine from the contents of configure.ac.
6125         (func_import): Remove autoconf_minversion handling.
6126         Suggested by Eric Blake.
6127
6128 2006-07-29  Bruno Haible  <bruno@clisp.org>
6129
6130         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
6131
6132 2006-07-29  Bruno Haible  <bruno@clisp.org>
6133
6134         * config/srclist.txt (*setenv.[ch]): Remove rules.
6135
6136 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
6137
6138         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
6139
6140 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
6141
6142         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
6143         arpa/inet.h.
6144
6145 2006-07-28  Simon Josefsson  <jas@extundo.com>
6146
6147         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
6148         * modules/inet_pton (Depends-on): Likewise.
6149
6150 2006-07-28  Simon Josefsson  <jas@extundo.com>
6151
6152         * m4/netinet_in_h.m4: New file.
6153
6154 2006-07-28  Simon Josefsson  <jas@extundo.com>
6155
6156         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
6157         #include's.
6158
6159 2006-07-28  Simon Josefsson  <jas@extundo.com>
6160
6161         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
6162         #include's.
6163
6164 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
6165
6166         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
6167         setgid on directories only if they set these bits.
6168         * lib/modechange.h: Remove obsolete comment about masks.
6169
6170 2006-07-28  Eric Blake  <ebb9@byu.net>
6171
6172         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
6173         macro expansion.
6174
6175 2006-07-28  Bruno Haible  <bruno@clisp.org>
6176
6177         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
6178
6179 2006-07-28  Bruno Haible  <bruno@clisp.org>
6180
6181         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
6182
6183 2006-07-28  Bruno Haible  <bruno@clisp.org>
6184
6185         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
6186         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
6187         Define fallbacks.
6188         Avoids link error on FreeBSD 4.x.
6189         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
6190
6191         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
6192         encoding.
6193         * lib/mbswidth.c (iswcntrl): Likewise.
6194
6195 2006-07-27  Bruno Haible  <bruno@clisp.org>
6196
6197         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
6198         test.
6199
6200 2006-07-27  Bruno Haible  <bruno@clisp.org>
6201
6202         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
6203         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
6204         defined.
6205
6206 2006-07-26  Eric Blake  <ebb9@byu.net>
6207
6208         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
6209
6210 2006-07-26  Eric Blake  <ebb9@byu.net>
6211
6212         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
6213         like mingw that lack mkstemp.
6214         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
6215         avoid compilation warning on mingw.
6216
6217 2006-07-26  Bruno Haible  <bruno@clisp.org>
6218
6219         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
6220         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
6221         INT_FAST*_MIN, INTPTR_MIN.
6222
6223 2006-07-25  Bruno Haible  <bruno@clisp.org>
6224
6225         * modules/version-etc (Depends-on): Add stdarg.
6226
6227 2006-07-25  Bruno Haible  <bruno@clisp.org>
6228
6229         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
6230         complex commands.
6231
6232 2006-07-25  Bruno Haible  <bruno@clisp.org>
6233
6234         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
6235         defined in <stdarg.h> or config.h.
6236
6237 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
6238
6239         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
6240         (gl_STDIO_SAFER): Remove.
6241
6242 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
6243
6244         * MODULES.html.sh (File stream based Input/Output):
6245         Add fopen-safer, tmpfile-safer; remove stdio-safer.
6246         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
6247         * modules/fopen-safer, modules/tmpfile-safer: New files.
6248         * modules/stdio-safer: Remove.
6249
6250 2006-07-24  Bruno Haible  <bruno@clisp.org>
6251
6252         * modules/tmpdir: New file.
6253         * MODULES.html.sh (File system functions): Add it.
6254
6255 2006-07-24  Bruno Haible  <bruno@clisp.org>
6256
6257         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
6258         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
6259
6260 2006-07-24  Bruno Haible  <bruno@clisp.org>
6261
6262         * modules/clean-temp: New file.
6263
6264 2006-07-24  Bruno Haible  <bruno@clisp.org>
6265
6266         * m4/tmpdir.m4: New file, from GNU gettext.
6267
6268 2006-07-24  Bruno Haible  <bruno@clisp.org>
6269
6270         * lib/tmpdir.h: New file, from GNU gettext.
6271         * lib/tmpdir.c: New file, from GNU gettext.
6272
6273 2006-07-24  Bruno Haible  <bruno@clisp.org>
6274
6275         * lib/clean-temp.h: New file, from GNU gettext.
6276         * lib/clean-temp.c: New file, from GNU gettext.
6277
6278 2006-07-23  Eric Blake  <ebb9@byu.net>
6279
6280         * modules/stdio-safer (Files): Add tmpfile-safer.c.
6281         (Depends-on): Add binary-io.
6282
6283 2006-07-23  Eric Blake  <ebb9@byu.net>
6284
6285         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
6286
6287 2006-07-23  Eric Blake  <ebb9@byu.net>
6288
6289         * lib/tmpfile-safer.c: New file.
6290         * lib/stdio-safer.h (fopen_safer): Add prototype.
6291         * lib/stdio--.h (tmpfile): Make safer.
6292
6293 2006-07-23  Bruno Haible  <bruno@clisp.org>
6294
6295         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
6296         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
6297         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
6298         gl_linked_remove_at): Use it.
6299
6300 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
6301         and Simon Josefsson <jas@extundo.com>
6302
6303         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
6304
6305         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
6306
6307 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
6308
6309         * modules/close-stream: New file.
6310         * modules/closeout (Description): Make it clear that it exits
6311         with a diagnostic on error.
6312         (Depends-on): Add close-stream.  Remove fpending, stdbool.
6313         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
6314
6315 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
6316
6317         * m4/close-stream.m4: New file.
6318
6319 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
6320
6321         * lib/close-stream.c, lib/close-stream.h: New files.
6322
6323 2006-07-22  Bruno Haible  <bruno@clisp.org>
6324
6325         Merge from GNU gettext 0.15.
6326
6327         2006-05-01  Bruno Haible  <bruno@clisp.org>
6328
6329                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
6330
6331         2006-07-22  Bruno Haible  <bruno@clisp.org>
6332
6333                 * modules/javaversion: New file.
6334                 * MODULES.html.sh (Java): Add javaversion.
6335
6336         2006-03-12  Bruno Haible  <bruno@clisp.org>
6337
6338                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
6339
6340         2005-12-04  Bruno Haible  <bruno@clisp.org>
6341
6342                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
6343                 (untested).
6344
6345         2006-06-21  Bruno Haible  <bruno@clisp.org>
6346
6347                 Avoid warnings from recent versions of mcs.
6348                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
6349                 -o, -L, -r any more. Use options documented since mcs-1.0
6350                 instead. Similarly for -g.
6351
6352         2005-12-04  Bruno Haible  <bruno@clisp.org>
6353
6354                 * build-aux/csharpcomp.sh.in: Suffix for resources is
6355                 .resources, not .resource.
6356
6357         2005-07-09  Bruno Haible  <bruno@clisp.org>
6358
6359                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
6360                 add a .dll suffix.
6361                 Reported by Mark Junker <mjscod@gmx.de>.
6362
6363         2006-07-22  Bruno Haible  <bruno@clisp.org>
6364
6365                 * modules/gettext: Upgrade to gettext-0.15.
6366                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
6367                 m4/visibility.m4.
6368                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
6369
6370 2006-07-22  Bruno Haible  <bruno@clisp.org>
6371
6372         Merge from GNU gettext 0.15.
6373
6374         2006-03-25  Bruno Haible  <bruno@clisp.org>
6375
6376                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
6377
6378         2006-07-21  Bruno Haible  <bruno@clisp.org>
6379
6380                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
6381                 "1.1".
6382
6383         2006-05-09  Bruno Haible  <bruno@clisp.org>
6384
6385                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
6386                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
6387                 for the conftestver execution.
6388
6389         2006-05-01  Bruno Haible  <bruno@clisp.org>
6390
6391                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
6392                 optional target-version argument. Verify that the compiler
6393                 groks source of the specified source-version, or add -source
6394                 option as necessary. Verify that the compiler produces
6395                 bytecode in the specified target-version, or add -target and
6396                 -source options as necessary. Make the result of the test
6397                 available as variable CONF_JAVAC. Also log error output in
6398                 config.log.
6399
6400         2006-03-11  Bruno Haible  <bruno@clisp.org>
6401
6402                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
6403
6404         2006-05-09  Bruno Haible  <bruno@clisp.org>
6405
6406                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
6407                 CLASSPATH_SEPARATOR to a semicolon.
6408
6409         2006-03-12  Bruno Haible  <bruno@clisp.org>
6410
6411                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
6412                 available as variable CONF_JAVA, for subsequent autoconf
6413                 tests. Also log error output in config.log.
6414
6415         2006-07-19  Bruno Haible  <bruno@clisp.org>
6416
6417                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
6418                 that getline works on glibc2 systems. Needed to avoid trouble
6419                 in relocatable.c.
6420                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
6421
6422         2005-12-04  Bruno Haible  <bruno@clisp.org>
6423
6424                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
6425                 launcher (untested).
6426
6427         2005-12-04  Bruno Haible  <bruno@clisp.org>
6428
6429                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
6430
6431         2006-07-22  Bruno Haible  <bruno@clisp.org>
6432
6433                 * gettext.m4: Update from GNU gettext-0.15.
6434                 * nls.m4: Likewise.
6435                 * po.m4: Likewise.
6436                 * inttypes-pri.m4: Likewise.
6437                 * inttypes-h.m4: Renamed from inttypes.m4.
6438                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
6439
6440 2006-07-22  Bruno Haible  <bruno@clisp.org>
6441
6442         Merge from GNU gettext 0.15.
6443
6444         2005-07-05  Bruno Haible  <bruno@clisp.org>
6445
6446                 * printf-args.c (printf_fetchargs): Work around broken
6447                 definition of wint_t on mingw.
6448
6449         2005-02-12  Bruno Haible  <bruno@clisp.org>
6450
6451                 * xallocsa.h: Add extern "C" for C++.
6452
6453         2006-05-17  Bruno Haible  <bruno@clisp.org>
6454
6455                 Cygwin portability.
6456                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
6457
6458         2006-04-30  Bruno Haible  <bruno@clisp.org>
6459
6460                 * progreloc.c: Include <mach-o/dyld.h> if available.
6461                 (find_executable): Use _NSGetExecutablePath when possible.
6462
6463         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
6464
6465                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
6466                 function.
6467
6468         2005-12-29  Bruno Haible  <bruno@clisp.org>
6469
6470                 * progreloc.c (set_program_name_and_installdir): Fix
6471                 compilation error.
6472
6473         2005-12-04  Bruno Haible  <bruno@clisp.org>
6474
6475                 Cygwin portability.
6476                 * progreloc.c: Include <windows.h> also on Cygwin.
6477                 (find_executable): Add support for Cygwin.
6478                 (set_program_name_and_installdir): Handle also platforms with
6479                 nonempty EXEEXT.
6480
6481         2006-07-11  Bruno Haible  <bruno@clisp.org>
6482
6483                 * javacomp.c: Fix a comment.
6484                 Reported by Jim Meyering.
6485
6486         2006-04-30  Bruno Haible  <bruno@clisp.org>
6487
6488                 * javacomp.h (compile_java_class): Add source_version,
6489                 target_version arguments.
6490                 * javacomp.c: Rewritten to choose only a compiler that
6491                 respects the specified source_version and target_version.
6492
6493         2006-06-27  Bruno Haible  <bruno@clisp.org>
6494
6495                 Assume correct S_ISDIR macro.
6496                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
6497
6498         2006-07-22  Bruno Haible  <bruno@clisp.org>
6499
6500                 * javaversion.h: New file, from GNU gettext.
6501                 * javaversion.c: New file, from GNU gettext.
6502                 * javaversion.java: New file, from GNU gettext.
6503                 * javaversion.class: New file, from GNU gettext.
6504
6505         2006-05-17  Bruno Haible  <bruno@clisp.org>
6506
6507                 Cygwin portability.
6508                 * javaexec.c (execute_java_class): Test for jview program
6509                 also on Cygwin.
6510
6511         2006-04-09  Bruno Haible  <bruno@clisp.org>
6512
6513                 * fatal-signal.c: Don't include string.h.
6514                 (at_fatal_signal): Use a copying loop instead of memcpy.
6515
6516         2005-12-04  Bruno Haible  <bruno@clisp.org>
6517
6518                 * csharpexec.c: Add support for 'clix' launcher (untested).
6519                 (execute_csharp_using_sscli): New function.
6520                 (execute_csharp_program): Call it.
6521
6522         2006-06-21  Bruno Haible  <bruno@clisp.org>
6523
6524                 Avoid warnings from recent versions of mcs.
6525                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
6526                 -o, -L, -r any more. Use options documented since mcs-1.0
6527                 instead. Similarly for -g.
6528
6529         2005-07-09  Bruno Haible  <bruno@clisp.org>
6530
6531                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
6532                 add a .dll suffix.
6533                 Reported by Mark Junker <mjscod@gmx.de>.
6534
6535         2006-06-17  Bruno Haible  <bruno@clisp.org>
6536
6537                 * config.charset: Update for NetBSD 3.0.
6538
6539         2006-05-17  Bruno Haible  <bruno@clisp.org>
6540
6541                 Cygwin portability.
6542                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
6543
6544         2006-05-16  Bruno Haible  <bruno@clisp.org>
6545
6546                 * localcharset.c [CYGWIN]: Include <windows.h>.
6547                 (get_charset_aliases): For Cygwin, return the same CPxxx
6548                 aliases list as under WIN32.
6549                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
6550                 the environment variables. Fall back to GetACP().
6551
6552         2006-04-05  Bruno Haible  <bruno@clisp.org>
6553
6554                 * config.charset: Update Juan Manuel Guerrero's address.
6555
6556         2005-02-12  Bruno Haible  <bruno@clisp.org>
6557
6558                 * allocsa.h: Add extern "C" for C++.
6559
6560         2005-02-10  Bruno Haible  <bruno@clisp.org>
6561
6562                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
6563                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
6564
6565         2006-07-22  Bruno Haible  <bruno@clisp.org>
6566
6567                 * gettext.h: Update to GNU gettext-0.15.
6568
6569 2006-07-22  Bruno Haible  <bruno@clisp.org>
6570
6571         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
6572         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
6573         lib-prefix.m4, longdouble.m4, ssize_t.m4.
6574
6575 2006-07-21  Eric Blake  <ebb9@byu.net>
6576
6577         * modules/stdlib-safer: New file.
6578         * MODULES.html.sh (File stream based Input/Output): Add
6579         stdlib-safer.
6580
6581 2006-07-21  Eric Blake  <ebb9@byu.net>
6582
6583         * lib/stdlib-safer.h: New file from coreutils, required by
6584         stdlib--.h.
6585
6586 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
6587
6588         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
6589
6590 2006-07-20  Bruno Haible  <bruno@clisp.org>
6591
6592         * gnulib-tool: Recognize new option --assume-autoconf.
6593         (autoconf_minversion): New variable.
6594         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
6595
6596 2006-07-20  Bruno Haible  <bruno@clisp.org>
6597
6598         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
6599
6600 2006-07-19  Derek R. Price  <derek@ximbiot.com>
6601
6602         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
6603         Reindent and repaginate.
6604
6605 2006-07-19  Derek Price  <derek@ximbiot.com>
6606
6607         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
6608         Correct grammar.
6609
6610 2006-07-17  Bruno Haible  <bruno@clisp.org>
6611
6612         * modules/list: New file.
6613         * modules/array-list: New file.
6614         * modules/carray-list, modules/carray-list-tests: New files.
6615         * modules/linked-list, modules/linked-list-tests: New files.
6616         * modules/avltree-list, modules/avltree-list-tests: New files.
6617         * modules/rbtree-list, modules/rbtree-list-tests: New files.
6618         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
6619         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
6620         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
6621         * modules/oset: New file.
6622         * modules/array-oset: New file.
6623         * modules/avltree-oset, modules/avltree-oset-tests: New files.
6624         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
6625         * tests/test-carray_list.c: New file.
6626         * tests/test-linked_list.c: New file.
6627         * tests/test-avltree_list.c: New file.
6628         * tests/test-rbtree_list.c: New file.
6629         * tests/test-linkedhash_list.c: New file.
6630         * tests/test-avltreehash_list.c: New file.
6631         * tests/test-rbtreehash_list.c: New file.
6632         * tests/test-avltree_oset.c: New file.
6633         * tests/test-rbtree_oset.c: New file.
6634         * MODULES.html.sh (Container data structures): New section.
6635
6636 2006-07-17  Bruno Haible  <bruno@clisp.org>
6637
6638         * m4/gl_list.m4: New file.
6639
6640 2006-07-17  Bruno Haible  <bruno@clisp.org>
6641
6642         * lib/gl_list.h: New file.
6643         * lib/gl_list.c: New file.
6644         * lib/gl_array_list.h: New file.
6645         * lib/gl_array_list.c: New file.
6646         * lib/gl_carray_list.h: New file.
6647         * lib/gl_carray_list.c: New file.
6648         * lib/gl_linked_list.h: New file.
6649         * lib/gl_linked_list.c: New file.
6650         * lib/gl_anylinked_list1.h: New file.
6651         * lib/gl_anylinked_list2.h: New file.
6652         * lib/gl_avltree_list.h: New file.
6653         * lib/gl_avltree_list.c: New file.
6654         * lib/gl_anyavltree_list1.h: New file.
6655         * lib/gl_anyavltree_list2.h: New file.
6656         * lib/gl_rbtree_list.h: New file.
6657         * lib/gl_rbtree_list.c: New file.
6658         * lib/gl_anyrbtree_list1.h: New file.
6659         * lib/gl_anyrbtree_list2.h: New file.
6660         * lib/gl_anytree_list1.h: New file.
6661         * lib/gl_anytree_list2.h: New file.
6662         * lib/gl_linkedhash_list.h: New file.
6663         * lib/gl_linkedhash_list.c: New file.
6664         * lib/gl_anyhash_list1.h: New file.
6665         * lib/gl_anyhash_list2.h: New file.
6666         * lib/gl_avltreehash_list.h: New file.
6667         * lib/gl_avltreehash_list.c: New file.
6668         * lib/gl_rbtreehash_list.h: New file.
6669         * lib/gl_rbtreehash_list.c: New file.
6670         * lib/gl_anytreehash_list1.h: New file.
6671         * lib/gl_anytreehash_list2.h: New file.
6672
6673         * lib/gl_oset.h: New file.
6674         * lib/gl_oset.c: New file.
6675         * lib/gl_array_oset.h: New file.
6676         * lib/gl_array_oset.c: New file.
6677         * lib/gl_avltree_oset.h: New file.
6678         * lib/gl_avltree_oset.c: New file.
6679         * lib/gl_rbtree_oset.h: New file.
6680         * lib/gl_rbtree_oset.c: New file.
6681         * lib/gl_anytree_oset.h: New file.
6682
6683 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
6684
6685         * m4/mkancesdirs.m4: New file.
6686         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
6687         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
6688         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
6689         it.
6690
6691 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
6692
6693         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
6694         * lib/mkancesdirs.h: New files.
6695         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
6696         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
6697         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
6698         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
6699         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
6700         callers changed.  Revamp internals significantly, by not
6701         attempting to create directories that are temporarily more
6702         permissive than the final results.  Do not attempt to use
6703         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
6704         This removes some race conditions, fixes some bugs, and simplifies
6705         things.  Use new dirchownmod function to do owner and mode changes.
6706         * lib/mkdir-p.h: Likewise.
6707         * lib/modechange.c (octal_to_mode): New function.
6708         (struct mode_change): New member mentioned.
6709         (make_node_op_equals): New arg mentioned.  All callers changed.
6710         (mode_compile): Keep track of which mode bits the user has explicitly
6711         mentioned.
6712         (mode_adjust): New arg DIR, so that we implement the X op correctly.
6713         New arg PMODE_BITS, to keep track of which mode bits the user
6714         mentioned; it treats S_ISUID and S_ISGID speciall.
6715         All callers changed.
6716         * lib/modechange.h: Likewise.
6717
6718 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
6719
6720         * MODULES.html.sh: Add mkancestors.
6721         * modules/mkancesdirs: New module.
6722         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
6723         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
6724         The chdir-safer and afs files are now orphans; I'll remove them
6725         unless someone speaks up.
6726         Add lib/dirchownmod.c, lib/dirchownmod.h.
6727         (Depends-on): Remove alloca, chown, save-cwd, dirname.
6728         Add lchown, mkancesdirs.
6729         (Maintainer): Add self.
6730
6731 2006-07-15  Karl Berry  <karl@gnu.org>
6732
6733         * gnulib-tool: help message wording/arrangement.
6734
6735 2006-07-14  Simon Josefsson  <jas@extundo.com>
6736
6737         * doc/gnulib.texi (Libtool and Windows): New section.
6738
6739 2006-07-12  Simon Josefsson  <jas@extundo.com>
6740
6741         * modules/gendocs (License): Fix license, approved by Karl.
6742
6743 2006-07-12  Eric Blake  <ebb9@byu.net>
6744
6745         * MODULES.html.sh: Add gendocs.
6746
6747 2006-07-11  Eric Blake  <ebb9@byu.net>
6748
6749         * modules/fdl: New module, to install doc/fdl.texi.
6750         * MODULES.html.sh: Add new section for documentation modules.
6751         * gnulib-tool: Avoid space-tab.
6752         (--doc-base): New option, to manage files from doc.
6753
6754 2006-07-11  Eric Blake  <ebb9@byu.net>
6755
6756         * m4/absolute-header.m4: Fix comments to match recent change.
6757
6758 2006-07-11  Eric Blake  <ebb9@byu.net>
6759
6760         * gnulib-tool: List --doc-base before --tests-base.
6761
6762 2006-07-11  Derek R. Price  <derek@ximbiot.com>
6763
6764         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
6765
6766 2006-07-11  Bruno Haible  <bruno@clisp.org>
6767
6768         * README: Mention where to put documentation.
6769
6770 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6771
6772         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
6773
6774 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
6775
6776         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
6777         to stdint.m4.
6778
6779 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
6780
6781         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
6782         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
6783         "no/such/file/stdint.h" when there is no such file, so that
6784         the resulting C code can be parsed by dodgy compilers.
6785         Problems reported by Bob Proulx.
6786
6787 2006-07-10  Derek R. Price  <derek@ximbiot.com>
6788
6789         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
6790         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
6791         macros into the GNU _D_EXACT_NAMLEN.
6792         * lib/savedir.c:  Likewise.
6793         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
6794
6795 2006-07-10  Derek R. Price  <derek@ximbiot.com>
6796         and Paul Eggert  <eggert@cs.ucla.edu>
6797
6798         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
6799         * m4/savedir.m4:
6800         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
6801         macros into the GNU _D_EXACT_NAMLEN.
6802
6803 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
6804
6805         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
6806         around the absolute name, to work around a problem with the HP-UX
6807         11.23 native C compiler, reported by Bob Proulx.
6808
6809 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
6810
6811         * doc/maintain.texi, make-stds.texi: Sync from
6812         <http://savannah.gnu.org/projects/gnustandards>.
6813
6814 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
6815
6816         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
6817
6818 2006-07-09  Jim Meyering  <jim@meyering.net>
6819
6820         * m4/glob.m4: Remove a doubled word in a comment.
6821
6822 2006-07-09  Jim Meyering  <jim@meyering.net>
6823
6824         * lib/argp-pv.c: Remove a doubled word in a comment.
6825         * lib/check-version.c (check_version): Likewise.
6826         * lib/javacomp.c (compile_java_class): Likewise.
6827
6828 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
6829
6830         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
6831         for the benefit of people using Autoconf 2.60.  If you want to
6832         support older Autoconf versions you can copy m4/onceonly_2_57.m4
6833         (or m4/onceonly.m4, if pre-2.57) manually.
6834
6835 2006-07-08  Jim Meyering  <jim@meyering.net>
6836
6837         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
6838         comment.
6839         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
6840         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
6841         comment.
6842
6843 2006-07-08  Jim Meyering  <jim@meyering.net>
6844
6845         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
6846
6847 2006-07-07  Simon Josefsson  <jas@extundo.com>
6848
6849         * tests/test-crc.c: Change expected crc value, the test vector
6850         were probably computed using the old broken crc.c?
6851
6852 2006-07-06  Simon Josefsson  <jas@extundo.com>
6853
6854         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
6855         now the canonical place for the M4 file).
6856
6857         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
6858         from the sys_socket dependency now.
6859
6860         * modules/inet_pton (Files): Ditto.
6861
6862         * modules/inet_ntop (Files): Ditto.
6863
6864 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
6865
6866         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
6867         not gl_PREREQ_GETUSERSHELL.
6868
6869 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6870
6871         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
6872         with only one argument, for Autoconf 2.60.
6873         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
6874         expand to nothing, so add a shell command to avoid syntax error.
6875         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
6876
6877 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6878
6879         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
6880
6881 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
6882
6883         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
6884         no longer needed.  Check for isblank decl.
6885         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
6886         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
6887         of existence.
6888
6889 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
6890
6891         * lib/getloadavg.c: Use __VMS, not VMS.
6892         * lib/getopt.c: Likewise.
6893         * lib/getpagesize.h: Likewise.
6894         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
6895         and probably does not work.
6896
6897 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
6898
6899         * lib/.cppi-disable: Add wcwidth.
6900         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
6901         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
6902         (ISGRAPH): Remove.  All uses changed to isgraph.
6903         (FOLD) [!defined _LIBC]: Remove special case.
6904         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
6905         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
6906         HAVE_ISBLANK.
6907         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
6908         case.
6909
6910 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
6911
6912         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
6913         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
6914         brackets.  Other minor changes to suppress some compiler
6915         warnings.
6916
6917 2006-07-06  Derek R. Price  <derek@ximbiot.com>
6918         and Paul Eggert  <eggert@cs.ucla.edu>
6919
6920         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
6921         of invoking obsolescent AC_HEADER_DIRENT macro.
6922         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
6923         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
6924         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
6925         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
6926         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
6927         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
6928         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
6929         * m4/readdir.m4: Remove; no longer needed.
6930
6931 2006-07-06  Derek R. Price  <derek@ximbiot.com>
6932         and Paul Eggert  <eggert@cs.ucla.edu>
6933
6934         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
6935         Don't worry about this obsolete case any more.
6936         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
6937         directories.
6938         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
6939         worry about this obsolete case any more.
6940         * lib/fts.c: Likewise.
6941         * lib/getcwd.c: Likewise.
6942         * lib/glob.h: Likewise.
6943         * lib/savedir.c: Likewise.
6944
6945 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
6946
6947         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
6948         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
6949         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
6950         needed.
6951         All uses removed.
6952         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
6953         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
6954         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
6955         needed.
6956         * m4/getdate.m4 (gl_GETDATE): Likewise.
6957         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
6958         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
6959         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
6960         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
6961         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
6962         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
6963         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
6964         needed.
6965
6966 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
6967
6968         * lib/memcasecmp.c: Include <limits.h>.
6969         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
6970         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
6971         Don't assume isdigit succeeds only on '0' through '9'.
6972
6973 2006-07-05  Eric Blake  <ebb9@byu.net>
6974
6975         * modules/getaddrinfo (Depends-on): Add snprintf.
6976
6977 2006-07-05  Eric Blake  <ebb9@byu.net>
6978
6979         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
6980         to avoid 'header present but could not be compiled' on cygwin.
6981
6982 2006-07-05  Eric Blake  <ebb9@byu.net>
6983
6984         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
6985         missing from netdb.h.
6986         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
6987
6988 2006-07-05  Derek R. Price  <derek@ximbiot.com>
6989
6990         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
6991         no longer needed.
6992         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
6993         * m4/getdate.m4 (gl_GETDATE): Likewise.
6994         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
6995         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
6996         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
6997         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
6998         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
6999
7000 2006-07-05  Derek R. Price  <derek@ximbiot.com>
7001
7002         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
7003         All uses of is_space replaced by isspace.
7004         * lib/exit.h: Don't talk about STDC_HEADERS.
7005         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
7006         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
7007         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
7008         replaced by isprint etc.
7009         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
7010         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
7011         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
7012         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
7013         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
7014         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
7015
7016 2006-07-05  Bruno Haible  <bruno@clisp.org>
7017
7018         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
7019         the function exists, before testing against AIX.
7020         Reported by Martin Lambers <marlam@marlam.de>.
7021
7022 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
7023
7024         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
7025         From Mark D. Baushke.
7026
7027 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
7028
7029         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
7030         to the absolute name, not just one, to bypass Sun C 5.8's
7031         "warning: #include of /usr/include/... may be non-portable".
7032
7033 2006-07-04  Eric Blake  <ebb9@byu.net>
7034
7035         * modules/dirname-tests: New test module.
7036         * tests/test-dirname.c: New file, replacing dirname.c
7037         TEST_DIRNAME section that was recently deleted.
7038
7039 2006-07-04  Bruno Haible  <bruno@clisp.org>
7040
7041         Assume ANSI C header files and <ctype.h> functions.
7042         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
7043         (mbsnwidth): Use isprint, iscntrl instead.
7044
7045 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
7046
7047         Merge from coreutils.
7048         * MODULES.html.sh: Add xstrtold.
7049         * modules/xstrtold: New file.
7050         * modules/cycle-check (Files): Add lib/same-inode.h.
7051         * modules/dirname (Files): Add m4/double-slash-root.m4.
7052         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
7053         * modules/mkdir-p (Files): Add lib/same-inode.h.
7054         * modules/same (Files): Add lib/same-inode.h.
7055
7056 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
7057
7058         * m4/absolute-header.m4: Renamed from full-header-path.m4.
7059         This is to keep the terminology clean; POSIX talks about
7060         "absolute pathnames", not "full pathnames", but the GNU
7061         Coding Standards say to use "path" for something else;
7062         so use "absolute" to keep both sides happy.
7063         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
7064         Set gl_absolute_header, not gl_full_header_path.
7065         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
7066         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
7067         All uses changed.
7068
7069         Merge from coreutils.
7070
7071         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
7072
7073         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
7074         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
7075         want to require the building of c-strtod.o.
7076         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
7077         needs -lm directly.
7078         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
7079
7080         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
7081
7082         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
7083         --as-needed option if available.  Problem reported by Albert Chin in
7084         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
7085         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
7086         cc merely issues a bunch of annoying warnings for --as-needed
7087         (this problem was reported by Bob Proulx).  Also, try linking with
7088         -lm to detect a bug in binutils 2.16 (this problem was reported
7089         by Ralf Wildenhues).
7090
7091         2006-06-18  Jim Meyering  <jim@meyering.net>
7092
7093         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
7094         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
7095         macro.
7096         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
7097         also check for glibc-2.4's abort-inducing bug.
7098
7099         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
7100         Low-probability clean-up should be to use rmdir to get rid of
7101         the just-created directory, not unlink.
7102
7103         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
7104         configure fail, and request a bug report to inform us about it.
7105         Add a comment that, barring reports to the contrary, in 2007 we'll
7106         assume ftruncate is universally available.
7107
7108         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
7109
7110         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
7111
7112         2006-03-12  Jim Meyering  <jim@meyering.net>
7113
7114         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
7115         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
7116         * m4/same.m4 (gl_SAME): Likewise.
7117         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
7118
7119         2006-03-11  Eric Blake  <ebb9@byu.net>
7120
7121         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
7122         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
7123         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
7124         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
7125
7126 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
7127
7128         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
7129         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
7130         reported by Mark D. Baushke, one in
7131         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
7132
7133         Merge from coreutils.
7134
7135         * lib/.cppi-disable: Add stdint_.h.
7136         * lib/.cvsignore: Add stdint.h.
7137
7138         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
7139
7140         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
7141         both double and long double versions.
7142         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
7143         * lib/xstrtold.c: New file.
7144         * lib/xstrtod.h (xstrtold): New decl.
7145
7146         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
7147
7148         * lib/filemode.c (setst): Remove.
7149         (strmode): Rewrite to avoid setst.  This makes the code shorter,
7150         (arguably) clearer, and the generated code is a bit smaller on my
7151         Debian GNU/Linux stable x86 host.
7152
7153         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
7154
7155         * lib/filemode.c: Include "filemode.h" first, to test the interface.
7156         Assume that filemode.h includes sys/types.h and sys/stat.h.
7157         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
7158         (ftypelet): Reorder to put common cases first, for efficiency.
7159         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
7160         to do 'M'.
7161         (strmode): Renamed from mode_string, and now stores 12 bytes instead
7162         of 10, for compatibility with FreeBSD.  All callers changed.
7163         (filemodestring): Now stores 12 bytes instead of 10, and sets file
7164         types that can't be deduced solely from st_mode.  First arg is now a
7165         const pointer.
7166         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
7167         (strmode): Renamed from mode_string.
7168         (filemodestring): New decl.
7169         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
7170         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
7171         needed.
7172         (S_ISPORT, S_ISWHT): New macros, if not already defined.
7173
7174         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
7175
7176         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
7177         fsusage.h now does that.  Include fsusage.h first, to test interface.
7178         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
7179         at most one method (the old code could have generated decls that
7180         didn't conform to C89, not that this was ever exercised).
7181         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
7182
7183         2006-03-19  Jim Meyering  <jim@meyering.net>
7184
7185         Work even in a chroot where d_ino values for entries in "/"
7186         don't match the stat.st_ino values for the same names.
7187         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
7188         number, iterate through all entries again, using lstat instead.
7189         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
7190         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
7191
7192         * lib/getcwd.c (__getcwd): Clarify a comment.
7193         Use memcpy in place of a call to strcpy.
7194
7195         2006-03-12  Jim Meyering  <jim@meyering.net>
7196
7197         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
7198         matches that of the current directory (which we're about to chdir ".."
7199         out of), then save the dev-ino of the parent, instead.
7200
7201         * lib/same-inode.h (SAME_INODE): New file/macro.
7202         * lib/chdir-safer.c (SAME_INODE): Remove definition.
7203         Include "same-inode.h", instead.
7204         * lib/same.c: Likewise.
7205         * lib/cycle-check.h: Include "same-inode.h".
7206         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
7207         * lib/cycle-check.c (SAME_INODE): Remove definition.
7208         * lib/root-dev-ino.h: Include "same-inode.h".
7209
7210         2006-03-11  Eric Blake  <ebb9@byu.net>
7211
7212         * lib/same.c (same_name): s/base_name/last_component/
7213         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
7214         * lib/filenamecat.c (file_name_concat): Likewise.
7215
7216         2006-03-11  Eric Blake  <ebb9@byu.net>,
7217                     Paul Eggert  <eggert@cs.ucla.edu>
7218
7219         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
7220         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
7221         drive prefix.
7222         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
7223         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
7224         (last_component): New method.
7225         * lib/dirname.c (dir_len): Determine when drive letters need a
7226         subsequent slash.  Preserve // when it is special.
7227         (dir_name): Don't append dot when drive letter is absolute.
7228         [TEST_DIRNAME]: Move into a full-blown gnulib test.
7229         * lib/basename.c (base_name): New semantics - malloc the result.
7230         Preserve // when it is special.  Preserve relative files that look
7231         like drive letters.
7232         (base_len): Preserve // when it is special.
7233         (last_component): New method, similar to old base_name semantics.
7234         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
7235         base_name.  Strip redundant slashes from ///.
7236
7237 2006-07-03  Jim Meyering  <jim@meyering.net>
7238
7239         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
7240         macro is used before the first cycle_check call.
7241
7242 2006-07-03  Eric Blake  <ebb9@byu.net>
7243
7244         * modules/dirname (Depends-on): Add xstrndup.
7245
7246 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
7247
7248         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
7249         test cases, so that config.log is a bit easier to follow.
7250
7251 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
7252
7253         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
7254         both are 64 bits, since this seems to be the tradition, and this
7255         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
7256         we ever run into a host that prefers long long to long in this
7257         case, we'll need another configure-time test.  Problem reported by
7258         Jim Meyering.
7259
7260 2006-07-02  Eric Blake  <ebb9@byu.net>
7261
7262         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
7263
7264 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
7265
7266         * modules/inttypes (Depends-on): No longer depends on stdint.
7267         * modules/stdint (Description): Say more about assumptions.
7268         Say that the fast types might differ.  Say macros are used.
7269         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
7270         (Makefile.am): Revise list of substituted symbols to match
7271         new stdint.m4.
7272         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
7273         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
7274         * tests/test-stdint.c (verify_same_types)
7275         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
7276         the code conforms to C99/C89.
7277         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
7278         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
7279
7280 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
7281
7282         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
7283         but fix a bug, by requiring at least 64 bits.
7284         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
7285         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
7286         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
7287         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
7288
7289         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
7290         changes.  Make 2.59 a prerequisite.  Check and substitute for
7291         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
7292         inttypes.h.  Do not use special include files; just use the
7293         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
7294         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
7295         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
7296         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
7297         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
7298         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
7299         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
7300         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
7301         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
7302         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
7303         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
7304         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
7305         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
7306         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
7307         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
7308         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
7309         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
7310         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
7311         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
7312         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
7313         WINT_MAX.  Check for C99 conformance more strictly, by detecting
7314         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
7315         not check for things that C99 does not require, e.g., int8_t.  If
7316         a test isn't needed unless <stdint.h> isn't working, and is
7317         unlikely to be needed for any other reason, then don't do it
7318         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
7319         size_t, since we assume C89 freestanding at least.  Do not check
7320         for sig_atomic_t, wchar_t, or wint_t, since the code now does
7321         the right thing even if the types are not defined.  Instead use:
7322         (gl_STDINT_TYPE_PROPERTIES): New macro.
7323         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
7324         testing whether <sys/types.h> clashes, as Autoconf does this for
7325         us now.  All uses removed.
7326         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
7327         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
7328         (gl_CHECK_TYPE_SAME):
7329         Remove; no longer needed.
7330         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
7331         exists, since we'll return 0 anyway in that case.
7332         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
7333
7334 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
7335
7336         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
7337         possible collision with system files.
7338         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
7339         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
7340         WCHAR_MIN and WCHAR_MAX in this case.
7341         (<stddef.h>): Do not include; no longer needed.
7342         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
7343         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
7344         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
7345         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
7346         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
7347         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
7348         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
7349         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
7350         !defined(__c99))]: Include in this case too, since it's harmless
7351         now.
7352         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
7353         dangerous to do so.
7354         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
7355         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
7356         (_STDINT_MIN, _STDINT_MAX): New macros.
7357         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
7358         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
7359         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
7360         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
7361         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
7362         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
7363         macros, not typedefs; this simplifies things quite a bit.
7364         Use long int for all types narrower than int64_t.
7365         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
7366         Define in terms of long long int or int64_t or long int,
7367         not int64_t or int32_t.  This saves some compile-time testing.
7368         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
7369         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
7370         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
7371         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
7372         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
7373         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
7374         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
7375         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
7376         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
7377         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
7378         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
7379         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
7380         undef any previous version and define our own version, for
7381         simplicity and consistency with the new macros for types.
7382         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
7383         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
7384         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
7385         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
7386         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
7387         @WINT_T_SUFFIX@ to keep things simple here.
7388         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
7389         Simplify by assuming typical 8/16/32/64 host, since we're
7390         already doing that elsewhere anyway.
7391         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
7392         and assume long long int is 64 bits if available.  This
7393         speeds up 'configure'.
7394
7395 2006-07-01  Eric Blake  <ebb9@byu.net>
7396
7397         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
7398         Reported by Andreas Buening.
7399
7400 2006-07-01  Eric Blake  <ebb9@byu.net>
7401
7402         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
7403
7404 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
7405
7406         * lib/getaddrinfo.c: fixed typo
7407
7408 2006-06-29  Jim Meyering  <jim@meyering.net>
7409
7410         * modules/strftime (Maintainer): Add my name, since with the
7411         FPRINTFTIME changes strftime.c has forked from glibc.
7412
7413 2006-06-29  Eric Blake  <ebb9@byu.net>
7414
7415         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
7416
7417 2006-06-29  Eric Blake  <ebb9@byu.net>
7418
7419         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
7420
7421 2006-06-29  Eric Blake  <ebb9@byu.net>
7422
7423         * lib/stat_.h: New file.
7424
7425 2006-06-29  Eric Blake  <ebb9@byu.net>
7426
7427         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
7428         unused static function.
7429
7430 2006-06-29  Eric Blake  <ebb9@byu.net>
7431
7432         * doc/functions.texi (Function Portability): Document missing lstat
7433         on mingw.
7434
7435 2006-06-29  Eric Blake  <ebb9@byu.net>
7436
7437         * MODULES.html.sh: Add sys_stat.
7438         * modules/sys_stat: New module.
7439         * modules/mkstemp (Depends-on): Add sys_stat.
7440
7441 2006-06-29  Derek R. Price  <derek@ximbiot.com>
7442
7443         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
7444
7445 2006-06-29  Derek R. Price  <derek@ximbiot.com>
7446
7447         * m4/c-bs-a.m4: Removed.
7448
7449 2006-06-29  Derek R. Price  <derek@ximbiot.com>
7450
7451         * lib/strftime.c: Assume strftime() exists.
7452
7453 2006-06-29  Derek Price  <derek@ximbiot.com>
7454
7455         * modules/c-bs-a: Removed - \a is C89.
7456         * MODULES.html.sh: Remove c-bs-a.
7457
7458 2006-06-29  Bruno Haible  <bruno@clisp.org>
7459
7460         * modules/wcwidth (License): Change to LGPL.
7461
7462 2006-06-28  Simon Josefsson  <jas@extundo.com>
7463
7464         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
7465         on _WIN32.
7466
7467         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
7468         getnameinfo.
7469
7470 2006-06-28  Simon Josefsson  <jas@extundo.com>
7471
7472         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
7473
7474 2006-06-28  Simon Josefsson  <jas@extundo.com>
7475
7476         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
7477         functions there.  It will succeed on Windows XP, but on Windows
7478         2000 and (presumably) earlier, it will fail, and use the internal
7479         re-implementation.
7480         (use_win32_p): New function.
7481         (getaddrinfo): Use strtoul on servname, to support numeric ports.
7482         Support AI_NUMERICSERV to disable getservbyname.
7483         (getnameinfo): New function, only supports
7484         NI_NUMERICHOST|NI_NUMERICSERV for now.
7485
7486         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
7487         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
7488         getnameinfo.
7489
7490 2006-06-28  Eric Blake  <ebb9@byu.net>
7491
7492         * modules/wcwidth: New file.
7493         * modules/mbchar (Depends-on): Add wcwidth.
7494         * modules/mbswidth (Depends-on): Add wcwidth.
7495         * MODULES.html.sh: Add wcwidth.
7496
7497 2006-06-28  Eric Blake  <ebb9@byu.net>
7498
7499         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
7500         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
7501
7502 2006-06-28  Eric Blake  <ebb9@byu.net>
7503
7504         * lib/xvasprintf.h: Fix comments.
7505
7506 2006-06-28  Eric Blake  <ebb9@byu.net>
7507
7508         * lib/mbchar.h (wcwidth): Include wcwidth.h.
7509         * lib/mbswidth.c (wcwidth): Move from here...
7510         * lib/wcwidth.h: ...to this new file.
7511
7512 2006-06-28  Derek R. Price  <derek@ximbiot.com>
7513
7514         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
7515
7516         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
7517         it's obsolete.
7518         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
7519
7520 2006-06-28  Derek R. Price  <derek@ximbiot.com>
7521
7522         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
7523         Autoconf 2.60 says this stuff was obsolete.
7524
7525 2006-06-28  Bruno Haible  <bruno@clisp.org>
7526
7527         * modules/wcwidth (Files): Add m4/wchar_t.m4.
7528
7529 2006-06-28  Bruno Haible  <bruno@clisp.org>
7530
7531         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
7532         gt_TYPE_WCHAR_T.
7533
7534 2006-06-28  Bruno Haible  <bruno@clisp.org>
7535
7536         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
7537         declaration for wcwidth.
7538         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
7539
7540 2006-06-28  Bruno Haible  <bruno@clisp.org>
7541
7542         * lib/mkdtemp.c [MINGW]: Include <io.h>.
7543         (mkdir): Define using _mkdir.
7544
7545 2006-06-28  Bruno Haible  <bruno@clisp.org>
7546
7547         * lib/getaddrinfo.h: Fix POSIX URL.
7548         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
7549         _WIN32.
7550         (use_win32_p): Make static.
7551         (getaddrinfo): Reject service name if it is empty or does not consist
7552         solely of decimal digits, or if its value is > 65535.
7553         (getnameinfo): Remove useless casts.
7554
7555 2006-06-27  Simon Josefsson  <jas@extundo.com>
7556
7557         * modules/sys_select: New file, suggested by Bruno Haible, Paul
7558         Eggert and Martin Lambers.
7559
7560 2006-06-27  Simon Josefsson  <jas@extundo.com>
7561
7562         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
7563         Eggert and Martin Lambers.
7564
7565 2006-06-27  Bruno Haible  <bruno@clisp.org>
7566
7567         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
7568         result to 0, not to empty.
7569         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
7570
7571 2006-06-27  Bruno Haible  <bruno@clisp.org>
7572
7573         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
7574
7575 2006-06-26  Simon Josefsson  <jas@extundo.com>
7576
7577         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
7578         present.
7579
7580 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
7581
7582         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
7583         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
7584         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
7585
7586 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
7587
7588         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
7589
7590 2006-06-26  Bruno Haible  <bruno@clisp.org>
7591
7592         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
7593
7594 2006-06-26  Bruno Haible  <bruno@clisp.org>
7595
7596         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
7597
7598 2006-06-26  Bruno Haible  <bruno@clisp.org>
7599
7600         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
7601         SGI C compiler in pre-C99 mode.
7602         Suggested by Mark D. Baushke and Larry Jones.
7603
7604 2006-06-26  Bruno Haible  <bruno@clisp.org>
7605
7606         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
7607         WCHAR_MAX.
7608         Reported by Mark D. Baushke and Larry Jones.
7609
7610 2006-06-26  Bruno Haible  <bruno@clisp.org>
7611
7612         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
7613         in pre-C99 mode.
7614         Suggested by Mark D. Baushke and Larry Jones.
7615
7616 2006-06-23  Simon Josefsson  <jas@extundo.com>
7617             Bruno Haible  <bruno@clisp.org>
7618
7619         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
7620         Emit mostlyclean-local rule.
7621         (func_emit_tests_Makefile_am): Likewise.
7622         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
7623
7624 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
7625
7626         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
7627
7628 2006-06-23  Bruno Haible  <bruno@clisp.org>
7629
7630         * tests/test-stdint.c: Update to match ISO C 99 Technical
7631         Corrigendum 1.
7632
7633 2006-06-23  Bruno Haible  <bruno@clisp.org>
7634
7635         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
7636
7637 2006-06-23  Bruno Haible  <bruno@clisp.org>
7638
7639         * lib/stdint_.h: Treat IRIX like OpenBSD.
7640
7641 2006-06-23  Bruno Haible  <bruno@clisp.org>
7642
7643         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
7644         ISO C 99 Technical Corrigendum 1.
7645
7646 2006-06-22  Simon Josefsson  <jas@extundo.com>
7647
7648         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
7649         MinGW.
7650
7651 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
7652
7653         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
7654         needed.  Some compiler complained about some of them.  Problem reported
7655         by Larry Jones in
7656         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
7657
7658 2006-06-21  Simon Josefsson  <jas@extundo.com>
7659
7660         * tests/test-getaddrinfo.c: New file.
7661
7662         * modules/getaddrinfo-tests: New file.
7663
7664         * MODULES.html.sh: Add inet_pton.
7665
7666         * modules/inet_pton: New file.
7667
7668 2006-06-21  Simon Josefsson  <jas@extundo.com>
7669
7670         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
7671         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
7672         of using the (limited) gnulib implementation on Windows XP.
7673
7674         * m4/inet_pton.m4: New file.
7675
7676 2006-06-21  Simon Josefsson  <jas@extundo.com>
7677
7678         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
7679         variable.
7680
7681         * lib/socket_.h: Don't define WINVER.
7682
7683         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
7684         slightly modified to work in gnulib.
7685
7686 2006-06-21  Simon Josefsson  <jas@extundo.com>
7687
7688         * doc/gnulib.texi (Windows sockets): Add.
7689
7690 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
7691
7692         * lib/read-file.c (fread_file): Start with buffer allocation of
7693         0 bytes rather than 1 byte; this simplifies the code.
7694         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
7695         code to free buffer and save/restore errno.
7696         (internal_read_file): Remove unused local.
7697
7698 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
7699
7700         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
7701         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
7702         Problem reported by Denis Excoffier in
7703         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
7704
7705 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
7706
7707         * modules/sys_socket, modules/socklen: Include sys/types since
7708         FreeBSD 4.x's sys/socket.h needs it.
7709
7710 2006-06-19  Simon Josefsson  <jas@extundo.com>
7711
7712         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
7713
7714 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
7715
7716         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
7717
7718 2006-06-19  Bruno Haible  <bruno@clisp.org>
7719
7720         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
7721         and FULL_PATH_INTTYPES_H in angle brackets.
7722         Reported by Mark D. Baushke <mdb@gnu.org>.
7723
7724 2006-06-17  Eric Blake  <ebb9@byu.net>
7725
7726         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
7727         errno.
7728
7729 2006-06-17  Bruno Haible  <bruno@clisp.org>
7730
7731         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
7732         <sys/inttypes.h>.
7733
7734 2006-06-17  Bruno Haible  <bruno@clisp.org>
7735
7736         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
7737         whether errno is declared. Assume <errno.h> declares errno.
7738
7739 2006-06-17  Bruno Haible  <bruno@clisp.org>
7740
7741         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
7742
7743 2006-06-17  Bruno Haible  <bruno@clisp.org>
7744
7745         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
7746         problem on Solaris 2.5.1.
7747
7748 2006-06-16  Eric Blake  <ebb9@byu.net>
7749
7750         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
7751         * lib/unicodeio.c [!defined errno]: Likewise.
7752         * lib/strtol.c [!defined errno]: Likewise.
7753         * lib/strtod.c [!defined errno]: Likewise.
7754
7755 2006-06-15  Eric Blake  <ebb9@byu.net>
7756
7757         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
7758
7759 2006-06-15  Eric Blake  <ebb9@byu.net>
7760
7761         * config/srclist.txt (ssize_t.m4): Lose sync.
7762
7763 2006-06-15  Bruno Haible  <bruno@clisp.org>
7764
7765         * modules/stdint (Files): Include m4/full-header-path.m4,
7766         m4/size_max.m4, m4/wchar_t.m4.
7767         (Makefile.am): Many more substitutions.
7768         * modules/stdint-tests: New file.
7769         * tests/test-stdint.c: New file.
7770
7771 2006-06-15  Bruno Haible  <bruno@clisp.org>
7772
7773         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
7774         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
7775         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
7776         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
7777         gl_CHECK_TYPE_SAME): New macros.
7778
7779 2006-06-15  Bruno Haible  <bruno@clisp.org>
7780
7781         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
7782
7783 2006-06-15  Bruno Haible  <bruno@clisp.org>
7784
7785         * lib/stdint_.h: Rewritten to be fully auto-configured.
7786         Fixes bug on HP-UX/IA64.
7787
7788 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
7789
7790         * lib/getdate.y (__attribute__): Don't define if already defined.
7791         Problem reported by Larry Jones.
7792         * lib/utimens.c (__attribute__): Likewise.
7793
7794 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
7795
7796         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
7797         reported by Andreas Schwab.
7798
7799 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7800             Bruno Haible  <bruno@clisp.org>
7801
7802         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
7803         check for the declaration of strnlen and a run test that exposes the
7804         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
7805         rpl_strndup.
7806
7807 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7808             Bruno Haible  <bruno@clisp.org>
7809
7810         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
7811
7812 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7813
7814         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
7815         compile test, for Tru64 4.0D.
7816
7817 2006-05-28  Karl Berry  <karl@gnu.org>
7818
7819         * config/srclist.txt (printf-args.c): lose sync.
7820
7821 2006-05-26  Martin Lambers  <marlam@marlam.de>
7822
7823         * lib/getpass.c: Updates the test for the native W32 API, and adds
7824         missing includes, thus fixing compilation warnings.
7825
7826 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
7827
7828         * lib/exclude.c (exclude_fnmatch): New function.
7829         (excluded_file_name): Call exclude_fnmatch.
7830         * lib/exclude.h (excluded_file_name): New prototype
7831
7832 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
7833
7834         * lib/tempname.c (small_open, large_open): New macros.
7835         (__open, __open64) [!_LIBC]: Remove.
7836         (__gen_tempname): Use small_open and large_open instead of __open
7837         and __open64.  This fixes a portability bug on HP-UX 11.11i
7838         reported by Simon Wing-Tang in
7839         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
7840
7841 2006-05-24  Bruno Haible  <bruno@clisp.org>
7842
7843         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
7844         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
7845         Reported by Thorsten Maerz <torte@netztorte.de> via
7846         Aaron Stone <aaron@serendipity.cx>.
7847
7848 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
7849
7850         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
7851         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
7852         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
7853         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
7854         not really conditional on the cache.
7855         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
7856
7857 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
7858
7859         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
7860         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
7861         (my_usleep): Don't mishandle maximum value.
7862
7863 2006-05-19  Jim Meyering  <jim@meyering.net>
7864
7865         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
7866
7867 2006-05-17  Bruno Haible  <bruno@clisp.org>
7868
7869         Cygwin portability.
7870         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
7871
7872 2006-05-17  Bruno Haible  <bruno@clisp.org>
7873
7874         * lib/stdint_.h: Fix recognition of Cygwin.
7875
7876 2006-05-15  Bruno Haible  <bruno@clisp.org>
7877
7878         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
7879         on libtool patch by Ralf Wildenhues.
7880
7881 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
7882
7883         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
7884         test for C99 conformance; (bool) 0.5 is an integer constant
7885         expression, but (bool) -0.5 is not.  Problem reported by Fedor
7886         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
7887
7888 2006-05-11  Simon Josefsson  <jas@extundo.com>
7889
7890         * m4/xvasprintf.m4: Fix obvious typo.
7891
7892 2006-05-11  Jim Meyering  <jim@meyering.net>
7893
7894         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
7895         James Lemley.
7896
7897 2006-05-10  Simon Josefsson  <jas@extundo.com>
7898
7899         * lib/md4.c: Typo fix, update copyright years.
7900         (K1, K2): Don't use L because it turn computations into 64-bit on
7901         64-bit platforms.
7902
7903 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
7904
7905         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
7906         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
7907         unwanted sign propagation, e.g., on hosts with 64-bit int.
7908         There still are some problems with reeelly weird theoretical hosts
7909         (e.g., 33-bit int) but it's not worth worrying about now.
7910         * lib/sha1.c (rol): Likewise.
7911         (K1, K2, K3, K4): Remove unnecessary L suffix.
7912
7913 2006-05-10  Bruno Haible  <bruno@clisp.org>
7914
7915         * lib/des.c: Cast to avoid warnings.
7916
7917 2006-05-09  Bruno Haible  <bruno@clisp.org>
7918
7919         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
7920         (Depends-on): Depend also on xsize, stdarg.
7921         (configure.ac): Add gl_XVASPRINTF.
7922
7923 2006-05-09  Bruno Haible  <bruno@clisp.org>
7924
7925         * m4/xvasprintf.m4: New file.
7926
7927 2006-05-09  Bruno Haible  <bruno@clisp.org>
7928
7929         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
7930         (EOVERFLOW): Define fallback value.
7931         (xstrcat): New function.
7932         (xvasprintf): Recognize the special case of a string concatenation.
7933
7934 2006-05-08  Eric Blake  <ebb9@byu.net>
7935
7936         * gnulib-tool (func_version): Base copyright year on CVS date.
7937         (func_emit_copyright_notice): New function.
7938         (func_emit_lib_Makefile_am): Use it.
7939         (func_emit_tests_Makefile_am): Likewise.
7940         (func_import): Likewise.
7941
7942 2006-05-08  Bruno Haible  <bruno@clisp.org>
7943
7944         * modules/stdarg: New file.
7945         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
7946
7947 2006-05-08  Bruno Haible  <bruno@clisp.org>
7948
7949         * m4/stdarg.m4: New file, from GNU gettext.
7950
7951 2006-05-08  Bruno Haible  <bruno@clisp.org>
7952
7953         * config/srclist.txt (build-aux/config.rpath): different from latest
7954         release.
7955
7956 2006-05-08  Bruno Haible  <bruno@clisp.org>
7957
7958         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
7959
7960 2006-05-05  Jim Meyering  <jim@meyering.net>
7961
7962         * m4/warning.m4: New file, derived from bison's file by the same name.
7963
7964 2006-05-03  Bruno Haible  <bruno@clisp.org>
7965
7966         * lib/stdint_.h: Shorter URL.
7967         * lib/inttypes.h: Likewise.
7968
7969 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
7970
7971         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
7972
7973 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
7974
7975         * lib/verify.h: Document the internals better.  Most of this change
7976         was written by Bruno Haible.
7977
7978 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
7979
7980         * doc/verify.texi: New file, partly based on a proposal by
7981         Bruno Haible.
7982
7983 2006-05-02  Bruno Haible  <bruno@clisp.org>
7984
7985         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
7986         test from here...
7987         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
7988
7989 2006-04-29  Bruno Haible  <bruno@clisp.org>
7990
7991         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
7992         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
7993
7994 2006-04-29  Bruno Haible  <bruno@clisp.org>
7995
7996         * gnulib-tool: Make --update option actually work.
7997
7998 2006-04-29  Bruno Haible  <bruno@clisp.org>
7999
8000         * doc/gcd.texi: New file.
8001         * doc/gnulib.texi: Include it.
8002
8003 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
8004
8005         * lib/getdate.y (get_date): When adding relative date, start with the
8006         initial time, not with the result of the first mktime call.
8007
8008 2006-04-25  Bruno Haible  <bruno@clisp.org>
8009
8010         * gnulib-tool (func_import): Output the include directives in three
8011         blocks, sorted separately.
8012         Reported by Ben Pfaff <blp@cs.stanford.edu>.
8013
8014 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
8015
8016         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
8017         to define main with arguments, for C++.  Reported by Eric Blake.
8018         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
8019         Prefer 'int main ()' to 'int main (void)', for C++.
8020         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
8021         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
8022         for 'main', for C99 and C++.
8023
8024 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
8025
8026         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
8027         Don't assume that exit status -1 is valid.
8028         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
8029         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
8030         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
8031         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
8032         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
8033         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
8034         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
8035         functions can be used without declaring them, or that you can
8036         exit with status -1.
8037         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
8038
8039 2006-04-24  Karl Berry  <karl@gnu.org>
8040
8041         * config/srclist.txt (longdouble.m4): sync lost.
8042
8043 2006-04-24  Eric Blake  <ebb9@byu.net>
8044
8045         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
8046
8047 2006-04-24  Bruno Haible  <bruno@clisp.org>
8048
8049         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
8050         poll() implementation in AIX.
8051         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8052
8053 2006-04-24  Bruno Haible  <bruno@clisp.org>
8054
8055         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
8056         assigned exactly once.
8057
8058 2006-04-23  Claudio Fontana  <claudio@gnu.org>
8059             Bruno Haible  <bruno@clisp.org>
8060
8061         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
8062         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
8063         for AM_CPPFLAGS.
8064
8065 2006-04-23  Bruno Haible  <bruno@clisp.org>
8066
8067         * modules/copy-file: Depend on unistd.
8068         * modules/execute: Likewise.
8069         * modules/fatal-signal: Likewise.
8070         * modules/findprog: Likewise.
8071         * modules/mkdtemp : Likewise.
8072         * modules/pipe: Likewise.
8073         * modules/wait-process: Likewise.
8074
8075 2006-04-23  Bruno Haible  <bruno@clisp.org>
8076
8077         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
8078         condition was already detected.
8079         Reported by Ben Pfaff <blp@cs.stanford.edu>.
8080
8081 2006-04-23  Bruno Haible  <bruno@clisp.org>
8082
8083         * lib/copy-file.c: Include <unistd.h> unconditionally.
8084         * lib/execute.c: Likewise.
8085         * lib/fatal-signal.c: Likewise.
8086         * lib/findprog.c: Likewise.
8087         * lib/mkdtemp.c: Likewise.
8088         * lib/pipe.h: Likewise.
8089         * lib/pipe.c: Likewise.
8090         * lib/wait-process.h: Likewise.
8091
8092 2006-04-23  Bruno Haible  <bruno@clisp.org>
8093
8094         * gnulib-tool (func_usage): Fix --import description. Document
8095         --update.
8096         (func_import): Create temporary file in a temporary directory, if
8097         --dry-run is specified. Silence errors from 'grep' when there are no
8098         m4 files in $m4dir.
8099         (func_create_testdir): Silence errors from 'grep' when there are no
8100         m4 files in $m4dir.
8101         Reported by Karl Berry <karl@freefriends.org>.
8102
8103 2006-04-20  Bruno Haible  <bruno@clisp.org>
8104
8105         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
8106         one argument, so that the code will be portable to Autoconf 2.60.
8107         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
8108         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
8109         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
8110
8111 2006-04-19  Derek Price  <derek@ximbiot.com>
8112             Eric Blake  <ebb9@byu.net>
8113
8114         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
8115         rather than "/full/path.h".  Update comment to match.  Shorten &
8116         generalize m4_translit call via AS_TR_CPP.
8117
8118 2006-04-19  Derek Price  <derek@ximbiot.com>
8119             Eric Blake  <ebb9@byu.net>
8120
8121         * lib/inttypes.h: Correct grammar in comment.
8122
8123 2006-04-18  Derek Price  <derek@ximbiot.com>
8124             Paul Eggert  <eggert@cs.ucla.edu>
8125
8126         * modules/inttypes: New file.
8127         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
8128
8129 2006-04-18  Derek Price  <derek@ximbiot.com>
8130             Paul Eggert  <eggert@cs.ucla.edu>
8131
8132         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
8133         New files.
8134
8135 2006-04-18  Derek Price  <derek@ximbiot.com>
8136             Paul Eggert  <eggert@cs.ucla.edu>
8137
8138         * lib/inttypes.h: New file.
8139         * lib/strtoimax.c: Assume <inttypes.h>.
8140
8141 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
8142
8143         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
8144         isn't mounted.  Problem reported by Kir Kolyshkin.
8145
8146 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
8147
8148         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
8149         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
8150         Derek R. Price.
8151         * lib/regex.h (RE_DUP_MAX): Update comment to match current
8152         implementation.
8153
8154 2006-04-12  Eric Blake  <ebb9@byu.net>
8155
8156         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
8157         is now done automatically by the corresponding Autoconf macro.
8158
8159 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
8160
8161         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
8162         time_r.h.
8163
8164 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
8165
8166         Merge regex changes from libc, removing some of our
8167         POSIX-conformance changes that were rejected and redoing them in a
8168         less-intrusive way.
8169
8170         * lib/regcomp.c (re_compile_internal, init_dfa):
8171         Length arg is now size_t, not Idx.  All uses changed.
8172         (peek_token): Forward decl now says internal_function.
8173         (__re_error_msgid, __re_error_msgid_idx):
8174         Now static rather than extern with attribute_hidden.
8175         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
8176         For some reason libc prefers K&R style defns for external functions.
8177         (regerror) [!defined _LIBC]: Likewise.
8178         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
8179         (seek_collating_symbol_entry, lookup_collation_sequence_value):
8180         (build_range_exp, build_collating_symbol):
8181         Use K&R-style defn.
8182         (re_compile_fastmap): Use '\0' to memset, not 0.
8183         (utf8_sb_map): Make the calculations more obvious.
8184         (init_dfa, parse_bracket_exp, build_charclass_op):
8185         Call calloc and cast result, as glibc does.
8186         (init_word_char, fetch_token, peek_token, peek_token_bracket):
8187         (build_range_exp, build_collating_symbol):
8188         Now internal functions.
8189
8190         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
8191
8192         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
8193         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
8194         Don't depend on VMS; depend on __VMS instead, for POSIX
8195         namespace cleanness.
8196         (regoff_t): Define to ssize_t, not long int.
8197
8198         Remove the REG_ macros named below.  Instead, make the old names
8199         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
8200         __USE_GNU_REGEX.
8201         (REG_BACKSLASH_ESCAPE_IN_LISTS):
8202         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
8203         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
8204         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
8205         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
8206         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
8207         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
8208         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
8209         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
8210         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
8211         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
8212         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
8213         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
8214         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
8215         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
8216         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
8217         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
8218         (REG_NREGS):
8219         Remove.  All uses replaced by the old RE_* names.
8220         (RE_BACKSLASH_ESCAPE_IN_LISTS):
8221         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
8222         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
8223         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
8224         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
8225         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
8226         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
8227         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
8228         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
8229         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
8230         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
8231         Don't bother having these macros be independent of each others'
8232         values, since they no longer exist in the POSIX name space.
8233
8234         Rename the following member names back to their old names,
8235         unless !__USE_GNU_REGEX.  All uses changed back.
8236         (buffer): Renamed from re_buffer.
8237         (allocated): Renamed from re_allocated.
8238         (used): Renamed from re_used.
8239         (syntax): Renamed from re_syntax.
8240         (fastmap): Renamed from re_fastmap.
8241         (translate): Renamed from re_translate.
8242         (can_be_null): Renamed from re_can_be_null.
8243         (regs_allocated): Renamed from re_regs_allocated.
8244         (fastmap_accurate): Renamed from re_fastmap_accurate.
8245         (no_sub): Renamed from re_no_sub.
8246         (not_bol): Renamed from re_not_bol.
8247         (not_eol): Renamed from re_not_eol.
8248         (newline_anchor): Renamed from re_newline_anchor.
8249         (num_regs): Renamed from rm_num_regs.
8250         (start): Renamed from rm_start.
8251         (end): Renamed from rm_end.
8252
8253         (free_state): Move up a bit.
8254
8255         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
8256         #define to be empty.
8257         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
8258         when that is what is intended.
8259         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
8260         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
8261         (MAX): New macro.
8262         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
8263         All uses changed back to re_malloc, etc.  It's now the caller's
8264         responsibility to check for overflow; all callers changed.
8265         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
8266         (re_x2nrealloc): Remove.
8267         (free_state): Remove decl.
8268
8269         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
8270         (re_set_registers, re_exec):
8271         Use K&R-style defn.
8272
8273         2006-01-31  Roland McGrath  <roland@redhat.com>
8274
8275         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
8276         Reported by Mike Frysinger <vapier@gentoo.org>.
8277
8278         2006-01-15  Andreas Jaeger  <aj@suse.de>
8279
8280         [BZ #1950]
8281         * lib/regex_internal.c (re_string_reconstruct): Adjust for
8282         build_wcs_upper_buffer change.
8283         (build_wcs_upper_buffer): Change return type.
8284
8285         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
8286
8287         * lib/regex_internal.h: Include <stdint.h> if available.
8288
8289         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
8290
8291         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
8292
8293         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
8294
8295         * lib/regcomp.c: Adjust for changed secondary hash function.
8296
8297         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
8298
8299         * lib/regex.h: Pretty printing.
8300         Clean up namespace a bit.
8301
8302         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
8303
8304         * lib/regexec.c (update_cur_sifted_state, check_arrival,
8305         check_arrival_add_next_nodes): Avoid using uninitialized variable.
8306
8307         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
8308                     Ulrich Drepper  <drepper@redhat.com>
8309
8310         [BZ #1302]
8311         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
8312         changed.
8313         (bitset_word_t): Renamed from bitset_word.  All uses changed.
8314
8315         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
8316
8317         [BZ #281]
8318         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
8319         * lib/regcomp.c: Remove unnecessary uses of
8320         unsigned RE_TRANSLATE_TYPE.
8321         * lib/regex_internal.h: Likewise.
8322         * lib/regex_internal.c: Likewise.
8323         * lib/regexec.c: Likewise.
8324         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
8325
8326         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
8327
8328         * lib/regexec.c (find_recover_state): Remove unnecessary
8329         initialization.
8330         (transit_state_bkref): Make DFA a const pointer.
8331         (get_subexp): Likewise.
8332         (check_arrival): Likewise.
8333         (update_cur_sifted_state): Likewise.
8334         (re_search_internal): Likewise.
8335         (prune_impossible_nodes): Likewise.
8336         (acquire_init_state_context): Likewise.
8337         (proceed_next_node): Likewise.
8338         (set_regs): Likewise.
8339         (free_fail_stack_return): Likewise.
8340         (check_arrival_expand_ecl): Mark DFA parameter as const.
8341         (check_arrival_expand_ecl_sub): Likewise.
8342         (check_subexp_limits): Likewise.
8343         (sub_epsilon_src_nodes):  Likewise.
8344         (add_epsilon_src_nodes):  Likewise.
8345         (merge_state_array): Likewise.
8346         (update_regs): Likewise.
8347         (build_trtable): Likewise.
8348         (sift_states_backward): Mark MCTX parameter as const.
8349         (build_sifted_states): Likewise.
8350         (update_cur_sifted_state): Likewise.
8351         (sift_states_mkref): Likewise.
8352         (check_arrival_expand_ecl): Mark eclosure as const.
8353         (check_dst_limits_calc_pos_1): Likewise.
8354         * lib/regex_internal.h (re_match_context_t): Make dfa a const
8355         pointer.
8356
8357         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
8358
8359         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
8360         (transit_state_sb): Likewise.
8361         (transit_state_mb): Likewise.
8362         (sift_states_iter_mb): Likewise.
8363         (check_arrival_add_next_nodes): Likewise.
8364         (check_node_accept_bytes): Change first parameter to pointer-to-const.
8365         [_LIBC] (re_search_2_stub): Use mempcpy.
8366
8367         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
8368         mbrtowc for very simple UTF-8 case.
8369
8370         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
8371         a pointer-to-const.
8372         (re_acquire_state_context): Likewise.
8373         * lib/regex_internal.h: Adjust prototypes.
8374
8375         * lib/regex.c: Prevent using C++ compilers.
8376
8377         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
8378         (re_acquire_state_context): Likewise.
8379
8380 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
8381
8382         * modules/regex (Depends-on): Add ssize_t.
8383
8384 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
8385
8386         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
8387         translation table.
8388
8389 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
8390
8391         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
8392
8393 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
8394             Bruno Haible  <bruno@clisp.org>
8395
8396         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
8397         <sys/types.h> and <inttypes.h>.
8398
8399 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8400
8401         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
8402         `__error_t_defined', so argp.h will not typedef the former.
8403
8404 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
8405
8406         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
8407         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
8408         glibc names.  Even if glibc is changed to conform to POSIX, the
8409         traditional names will be available anyway, since regex depends on
8410         the extensions module.  Also, fix a longstanding typo in the
8411         implementation of Spencer ERE test #75 from grep 2.3.  Problems
8412         reported by Emanuele Giaquinta.  Also, change sense of cached
8413         variable, so that the message makes sense.
8414
8415 2006-03-24  Simon Josefsson  <jas@extundo.com>
8416
8417         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
8418         including some doc fixes.
8419         (base64_encode_alloc): Fix +1 bug on allocation failures.
8420
8421 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8422
8423         * lib/base64.c (base64_encode): Do not read past end of array with
8424         unsanitized input on systems with CHAR_BIT > 8.
8425
8426 2006-03-24  Eric Blake  <ebb9@byu.net>
8427
8428         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
8429
8430 2006-03-22  Karl Berry  <karl@gnu.org>
8431
8432         * config/srclist.txt (*setenv.[ch]): get from coreutils.
8433         * config/srclistvars.sh (COREUTILS): new var.
8434
8435 2006-03-17  Jim Meyering  <jim@meyering.net>
8436
8437         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
8438         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
8439
8440 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
8441
8442         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
8443         no longer needs it.  Instead, check that regoff_t is as least
8444         as wide as ptrdiff_t.
8445
8446         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
8447         so that our regex.h stays compatible with the installed regex.
8448         This is helpful for installers who configure --without-included-regex.
8449         Problem reported by Emanuele Giaquinta.
8450
8451 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
8452
8453         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
8454         Typedef to long int, not to off_, as POSIX will likely change
8455         in that direction.
8456
8457 2006-03-15  Eric Blake  <ebb9@byu.net>
8458
8459         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
8460
8461 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
8462
8463         * lib/argp-help.c (validate_uparams): Fix typo
8464         * lib/argp-parse.c (argp_default_options): Consistently begin help
8465         messages with a lowercase letter.
8466
8467 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
8468
8469         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
8470         overrun buffers and shouldn't be used (much as gets shouldn't be
8471         used).
8472         * lib/time_r.c (asctime_r, ctime_r): Likewise.
8473
8474 2006-03-08  Simon Josefsson  <jas@extundo.com>
8475
8476         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
8477         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8478
8479 2006-03-08  Simon Josefsson  <jas@extundo.com>
8480
8481         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
8482         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8483
8484 2006-03-08  Simon Josefsson  <jas@extundo.com>
8485
8486         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
8487         signal that configure disabled the device.
8488
8489 2006-03-08  Simon Josefsson  <jas@extundo.com>
8490
8491         * build-aux/maint.mk: Fix refresh-po, to handle no translated
8492         languages.
8493
8494 2006-03-07  Simon Josefsson  <jas@extundo.com>
8495
8496         * modules/getopt (Depends-on): Add unistd.
8497
8498         * modules/unistd: New file.
8499
8500 2006-03-07  Simon Josefsson  <jas@extundo.com>
8501
8502         * modules/gc-random: New file.
8503
8504 2006-03-07  Simon Josefsson  <jas@extundo.com>
8505
8506         * m4/unistd_h.m4: New file.
8507
8508 2006-03-07  Simon Josefsson  <jas@extundo.com>
8509
8510         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
8511         test to be side-effect free by storing the result in the cache
8512         variable gl_cv_lib_readline, and moving the assignment of
8513         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
8514         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8515
8516 2006-03-07  Simon Josefsson  <jas@extundo.com>
8517
8518         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
8519         error on missing devices (the functions will return an error).
8520
8521         * m4/gc.m4: Move random stuff to gc-random.m4
8522
8523 2006-03-07  Simon Josefsson  <jas@extundo.com>
8524
8525         * lib/unistd_.h: New file.
8526
8527 2006-03-07  Simon Josefsson  <jas@extundo.com>
8528
8529         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
8530
8531 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
8532
8533         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
8534         Problem reported by Juan Manuel Guerrero.
8535
8536 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
8537
8538         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
8539         the unistd module.
8540         * lib/getlogin_r.c: Likewise.
8541         * lib/getlogin_r.h: Likewise.
8542         * lib/glob.c: Likewise.
8543         * lib/pagealign_alloc.c: Likewise.
8544         * lib/unistd_.h: Remove; no longer needed.
8545
8546 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
8547
8548         * MODULES.html.sh (Support for systems lacking POSIX:2001):
8549         Add unistd.
8550         * modules/c-stack (Depends-on): Add unistd.
8551         * modules/getlogin_r: Likewise.
8552         * modules/glob: Likewise.
8553         * modules/pagealign_alloc: Likewise.
8554         * modules/unistd (Files): Remove lib/unistd_.h.
8555         (EXTRA_DIST): Remove.
8556         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
8557         need unistd_.h.
8558         (MOSTLYCLEANFILES): Remove unistd.h-t.
8559
8560 2006-03-03  Simon Josefsson  <jas@extundo.com>
8561
8562         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
8563
8564 2006-03-03  Simon Josefsson  <jas@extundo.com>
8565
8566         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
8567         libidn and bison.
8568
8569 2006-03-03  Simon Josefsson  <jas@extundo.com>
8570
8571         * build-aux/maint.mk: Add indent target.
8572
8573 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
8574
8575         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
8576         our replacement poll.h in any case, to avoid a differing
8577         declaration from a system header.  Seen on AIX.
8578
8579 2006-03-01  Simon Josefsson  <jas@extundo.com>
8580
8581         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
8582         <kasal@ucw.cz>.
8583
8584 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
8585
8586         * modules/gettime (Depends-on): Add extensions module.
8587         * modules/nanosleep (Depends-on): Likewise.
8588         * modules/settime (Depends-on): Likewise.
8589
8590 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
8591
8592         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
8593         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
8594         pedantically.
8595         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
8596         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
8597
8598         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
8599         not "==".  Reported by Ralf Wildenhues.
8600
8601 2006-03-01  Karl Berry  <karl@gnu.org>
8602
8603         * doc/Copyright/request-*: new files, synced from gnuorg.
8604
8605 2006-03-01  Karl Berry  <karl@gnu.org>
8606
8607         * config/srclist.txt (Copyright/*): new entries.
8608
8609 2006-02-28  Simon Josefsson  <jas@extundo.com>
8610
8611         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
8612
8613 2006-02-27  Simon Josefsson  <jas@extundo.com>
8614
8615         * lib/base64.h: Indent #define's.  From Jim Meyering
8616         <jim@meyering.net>.
8617
8618 2006-02-27  Jim Meyering  <jim@meyering.net>
8619
8620         Revert the change of 2006-02-24, so these files can continue
8621         to be sync'd from gettext.
8622         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
8623         of `config.h'.
8624
8625 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
8626
8627         * modules/intprops: New file.
8628         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
8629         Add intprops.
8630         * modules/getloadavg (Files): Remove lib/intprops.h.
8631         (Depends-on): Add intprops.
8632         * modules/human: Likewise.
8633         * modules/inttostr: Likewise.
8634         * modules/openat: Likewise.
8635         * modules/sig2str: Likewise.
8636         * modules/userspec: Likewise.
8637         * modules/utimecmp: Likewise.
8638         * modules/xnanosleep: Likewise.
8639         * modules/xstrtol: Likewise.
8640
8641 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
8642
8643         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
8644         * modules/lock-tests (TESTS): Use $(EXEEXT).
8645         * modules/tls-tests: Likewise.
8646         * modules/argp-tests: Likewise.
8647         (check_PROGRAMS): New var, replacing...
8648         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
8649
8650 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8651
8652         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
8653         `config.h'.
8654
8655 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
8656
8657         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
8658
8659 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8660
8661         Sync from coreutils.
8662         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
8663         gl_CHDIR_SAFER.
8664
8665 2006-02-22  Jim Meyering  <jim@meyering.net>
8666
8667         Sync from coreutils.
8668         * m4/chdir-safer.m4: New file.
8669
8670 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
8671
8672         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
8673         AT_FDCWD exceeds INT_MAX.
8674         * lib/openat.h (AT_FDCWD): Likewise.
8675
8676 2006-02-17  Eric Blake  <address@hidden>
8677
8678         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
8679
8680 2006-02-16  Simon Josefsson  <jas@extundo.com>
8681
8682         * modules/getaddrinfo (Depends-on): Add sys_socket.
8683
8684 2006-02-15  Simon Josefsson  <jas@extundo.com>
8685
8686         * build-aux/maint.mk: Add dsyntax-check rule.
8687
8688 2006-02-15  Eric Blake  <ebb9@byu.net>
8689
8690         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
8691         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
8692         'present but cannot compile' warnings on cygwin.
8693         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
8694         use ws2tcpip.h if sys/socket.h works.
8695         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
8696         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
8697
8698 2006-02-14  Simon Josefsson  <jas@extundo.com>
8699
8700         * modules/maintainer-makefile (Files): Rename.
8701
8702         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
8703         and (the local) Makefile.cfg to maint-cfg.mk.
8704
8705         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
8706         to the latter.
8707
8708         * modules/maintainer-makefile: New module.
8709
8710         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
8711         severaly stripped to make it possible to build it up from scratch
8712         with reliable tests.
8713
8714         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
8715         fixes to permit overriding the default actions when configure and
8716         makefile are not available.
8717
8718 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
8719
8720         Sync from coreutils.
8721         * modules/lstat (Depends-on): Don't depend on xalloc.
8722         (License): Change from GPL to LGPL, since this is now simply a
8723         replacement for a libc function.
8724
8725 2006-02-14  Jim Meyering  <jim@meyering.net>
8726
8727         Sync from coreutils.
8728
8729         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
8730         failure on deficient systems, and simplify gnulib lgpl dependencies.
8731         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
8732         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
8733
8734         * lib/xalloc-die.c: Remove unused definition of N_.
8735
8736 2006-02-14  Jim Meyering  <jim@meyering.net>
8737
8738         Sync from coreutils.
8739         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
8740         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
8741         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
8742         double-quote uses of that variable, to accommodate the rare case in
8743         which getmntent is available in none of the libraries checked.  This
8744         happens at least on FreeBSD 5.0.
8745
8746 2006-02-13  Simon Josefsson  <jas@extundo.com>
8747
8748         * gnulib-tool (Usage): Fix --import, from
8749         karl@freefriends.org (Karl Berry).
8750
8751 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
8752
8753         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
8754
8755 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
8756
8757         * lib/argp-namefrob.h: Restore changes accidentally lost during the
8758         "autoupdate" on 2005-12-12.
8759
8760 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
8761
8762         * modules/closeout (Depends-on): Remove atexit.
8763
8764 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
8765
8766         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
8767         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
8768
8769 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
8770
8771         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
8772         __EXTENSIONS__ if this causes compilation to fail.  Problem
8773         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
8774         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
8775
8776 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
8777
8778         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
8779         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
8780         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
8781         All uses changed.
8782
8783 2006-01-26  Simon Josefsson  <jas@extundo.com>
8784
8785         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
8786         prototype is visible on mingw32.
8787
8788         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
8789         for mingw32.
8790
8791         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
8792         mingw32).
8793
8794 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
8795
8796         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
8797         attempt to open for write; this always fails, at least on POSIX
8798         hosts.  This reinstates the 2006-01-09 change, which was
8799         inadvertently removed.
8800
8801 2006-01-26  Bruno Haible  <bruno@clisp.org>
8802
8803         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
8804         Reported by Paul Eggert.
8805
8806 2006-01-26  Bruno Haible  <bruno@clisp.org>
8807             Paul Eggert  <eggert@cs.ucla.edu>
8808
8809         * lib/stdbool_.h (_Bool)
8810         [(! (defined __cplusplus || defined __BEOS__)
8811           && !defined __GNUC__
8812           && !(defined __HP_cc || defined __xlc__
8813                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
8814                || defined __sgi))]:
8815         #define to signed char in these cases too; this simplifies
8816         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
8817         etc., separately) and makes it more conservative.
8818
8819 2006-01-25  Simon Josefsson  <jas@extundo.com>
8820
8821         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
8822         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
8823         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
8824
8825 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
8826
8827         * lib/argp-namefrob.h: Bugfix. Remove stray #
8828
8829 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
8830
8831         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
8832         so that we test the test.
8833         Check for yet another HP-UX cc bug involving *bool |= bool.
8834
8835 2006-01-25  Karl Berry  <karl@gnu.org>
8836
8837         * config/srclist.txt (vasnprintf.c): sync lost.
8838
8839 2006-01-25  Jim Meyering  <jim@meyering.net>
8840
8841         Sync from the stable (b5) branch of coreutils:
8842
8843         * lib/fts.c (fts_children): Don't let close() clobber errno from
8844         failed fchdir().
8845
8846         * lib/fts.c (fts_stat): When following a symlink-to-directory,
8847         don't necessarily interpret stat-fails+lstat-succeeds as indicating
8848         a dangling symlink.  That can also happen at least for ELOOP.
8849         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
8850         FYI, this bug predates the inclusion of fts.c in coreutils.
8851
8852         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
8853         in their own block, so pre-c99 compilers don't object.
8854
8855         Avoid the double-free (first in fts_read, second in fts_close) that
8856         would occur when an `active' directory is made inaccessible (e.g.,
8857         via chmod a-x) during a traversal.
8858         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
8859         before returning.  Reproduce this failure by
8860         mkdir -p a/b; cd a; chmod a-x . b
8861         Reported by Stavros Passas.
8862
8863 2006-01-25  Jim Meyering  <jim@meyering.net>
8864
8865         * lib/fileblocks.c: Remove more useless parentheses.
8866         * lib/readutmp.h: Likewise.
8867
8868 2006-01-25  Bruno Haible  <bruno@clisp.org>
8869
8870         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
8871         warnings.
8872         Reported by Paul Eggert.
8873
8874 2006-01-25  Bruno Haible  <bruno@clisp.org>
8875
8876         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
8877         rid of a trap command. For Solaris sh.
8878         Reported by Mark D. Baushke <mdb@gnu.org>.
8879
8880 2006-01-24  Simon Josefsson  <jas@extundo.com>
8881
8882         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
8883         Bruno.
8884
8885 2006-01-24  Karl Berry  <karl@gnu.org>
8886
8887         * config/srclist.txt (argp-namefrob.h): sync lost.
8888
8889 2006-01-24  Jim Meyering  <jim@meyering.net>
8890
8891         * modules/openat (Files): Add lib/intprops.h.
8892         From Mark D. Baushke.
8893
8894 2006-01-24  Jim Meyering  <jim@meyering.net>
8895
8896         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
8897         Reported by Mark D. Baushke.
8898
8899 2006-01-24  Jim Meyering  <jim@meyering.net>
8900
8901         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
8902
8903 2006-01-24  Bruno Haible  <bruno@clisp.org>
8904
8905         * modules/strnlen (Maintainer): Change from glibc to all.
8906
8907 2006-01-24  Bruno Haible  <bruno@clisp.org>
8908
8909         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
8910         Patch by Paul Eggert.
8911
8912 2006-01-24  Bruno Haible  <bruno@clisp.org>
8913
8914         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
8915         already has it.
8916         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
8917         2005-11-26.
8918
8919         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
8920         'signed char' to avoid problems with the built-in _Bool type.
8921         Reported by Paul Eggert on 2005-11-26.
8922
8923 2006-01-24  Bruno Haible  <bruno@clisp.org>
8924
8925         * gnulib-tool (func_import): Avoid constructing complicated sed
8926         expressions inside backquote.
8927         Report and solution by Mark D. Baushke <mdb@gnu.org>.
8928
8929 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
8930
8931         These changes imported from libc.
8932         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
8933         test and two separate function calls.
8934         * lib/strndup.c (__strndup): Add libc_hidden_def.
8935
8936 2006-01-23  Simon Josefsson  <jas@extundo.com>
8937
8938         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
8939         Remove the test_*_SOURCES variable: automake infers it by default.
8940         * modules/tls-tests: Likewise.
8941
8942 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
8943
8944         Work around porting bugs reported by Dieter in
8945         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
8946         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
8947         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
8948         Include "getopt.h" first, to check interface.
8949         (getenv): Declare only if defined HAVE_DECL_GETENV &&
8950         !HAVE_DECL_GETENV.
8951         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
8952         (__strndup): Revert to K&R-style function dfns, the glibc style.
8953         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
8954         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
8955         Include strnlen.h first, to get prototype properly.
8956         (strnlen): Renamed from __strnlen.
8957         Remove weak alias.
8958
8959 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
8960
8961         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
8962
8963 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
8964
8965         * config/srclist.txt: Adjust to reflect glibc reorganization.
8966         This affects only comments.
8967
8968 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
8969
8970          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
8971          Reported by Bruce Korb <bkorb@gnu.org>.
8972
8973 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
8974
8975         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
8976         to pacify gcc -Wswitch-default.
8977
8978 2006-01-22  Bruno Haible  <bruno@clisp.org>
8979
8980         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
8981         temporary buffer for sprintf, take into account the precision also
8982         for 'd', 'i', 'u', 'o', 'x', 'X'.
8983
8984 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
8985
8986         * modules/argp-tests: New module
8987         * tests/test-argp.c: New file
8988         * tests/test-argp-2.sh: New file
8989
8990 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
8991
8992         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
8993         (__argp_base_name): Removed
8994         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
8995         typo.
8996         (__argp_base_name): Provide macro definition or extern declaration
8997         depending on the configuration
8998
8999 2006-01-20  Simon Josefsson  <jas@extundo.com>
9000
9001         * modules/inet_ntop (Depends-on): Depend on sys_socket.
9002
9003 2006-01-20  Simon Josefsson  <jas@extundo.com>
9004
9005         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
9006
9007 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
9008
9009         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
9010         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
9011         Suggested by Bruno Haible.
9012
9013 2006-01-20  Karl Berry  <karl@gnu.org>
9014
9015         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
9016         until changes propagate, I guess.
9017
9018 2006-01-19  Simon Josefsson  <jas@extundo.com>
9019
9020         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
9021
9022 2006-01-19  Simon Josefsson  <jas@extundo.com>
9023
9024         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
9025
9026 2006-01-19  Simon Josefsson  <jas@extundo.com>
9027
9028         * gnulib-tool: Set check_PROGRAMS.
9029
9030         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
9031         modules/des-tests, modules/gc-arcfour-tests,
9032         modules/gc-arctwo-tests, modules/gc-des-tests,
9033         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
9034         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
9035         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
9036         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
9037         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
9038         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
9039         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
9040         test_*_SOURCES.
9041
9042 2006-01-18  Simon Josefsson  <jas@extundo.com>
9043
9044         * modules/socklen (Depends-on): Depend on sys_socket.
9045
9046 2006-01-18  Simon Josefsson  <jas@extundo.com>
9047
9048         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
9049         modules/des-tests, modules/gc-arcfour-tests,
9050         modules/gc-arctwo-tests, modules/gc-des-tests,
9051         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
9052         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
9053         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
9054         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
9055         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
9056         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
9057         $(EXEEXT) to automake TESTS variable, for mingw32.
9058
9059 2006-01-17  Simon Josefsson  <jas@extundo.com>
9060
9061         * modules/socklen (Include): Need sys/socket.h.
9062
9063 2006-01-17  Bruno Haible  <bruno@clisp.org>
9064
9065         * modules/ssize_t (Include): Add <sys/types.h>.
9066
9067 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
9068
9069         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
9070         it's not portable and it doesn't work with cross-compiles.
9071         Problem reported by Bruno Haible.  Fix missing-$ typo in
9072         'test "gl_cv_ignore_unused_libraries" ...' that prevented
9073         -zignore from being used with Sun's C compiler.
9074
9075 2006-01-12  Simon Josefsson  <jas@extundo.com>
9076
9077         * lib/base64.c: Fix warning, reported by Bruno Haible
9078         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
9079
9080 2006-01-12  Bruno Haible  <bruno@clisp.org>
9081
9082         * modules/ldd: New file.
9083         * build-aux/ldd.sh.in: New file.
9084         * MODULES.html.sh (Support for building libraries and executables): Add
9085         ldd.
9086
9087 2006-01-12  Bruno Haible  <bruno@clisp.org>
9088
9089         * m4/ldd.m4: New file.
9090
9091 2006-01-12  Bruno Haible  <bruno@clisp.org>
9092
9093         * gnulib-tool (func_import, func_create_testdir): Don't go into an
9094         endless loop while replacing $auxdir with build-aux.
9095
9096 2006-01-11  Simon Josefsson  <jas@extundo.com>
9097
9098         * lib/stdint_.h (SIZE_MAX): Add missing (.
9099
9100 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
9101
9102         Sync from coreutils.
9103         * lib/md5.c: Fix commentary typos.
9104         (alignof, UNALIGNED_P): No need for a GCC-specific version.
9105         * lib/md5.h (__attribute__): Remove; unused.
9106         * lib/sha1.c: Fix commentary to match md5 better.
9107         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
9108         so that we don't need to worry about alignment.  All uses changed.
9109         This merges the 2005-10-28 md5 change into sha1.
9110
9111 2006-01-11  Jim Meyering  <jim@meyering.net>
9112
9113         Sync from coreutils.
9114         * lib/md5.c (OP): Fix spacing.
9115
9116 2006-01-11  Bruno Haible  <bruno@clisp.org>
9117
9118         Ensure automatic ordering between gl_LOCK and gl_ARGP.
9119         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
9120         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
9121
9122 2006-01-11  Bruno Haible  <bruno@clisp.org>
9123
9124         Ensure automatic ordering between gl_LOCK and gl_ARGP.
9125         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
9126         the "early" section as well.
9127
9128 2006-01-11  Bruno Haible  <bruno@clisp.org>
9129
9130         Avoid "ar: no archive members specified" error on MacOS X.
9131         * gnulib-tool (func_modules_add_dummy): New function.
9132         (func_import, func_create_testdir): Invoke it.
9133
9134 2006-01-11  Bruno Haible  <bruno@clisp.org>
9135
9136         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
9137         with $auxdir in AC_CONFIG_FILES statements.
9138
9139 2006-01-11  Bruno Haible  <bruno@clisp.org>
9140
9141         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
9142         Initialize also noinst_HEADERS to empty.
9143
9144 2006-01-11  Bruno Haible  <bruno@clisp.org>
9145
9146         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
9147         variables.
9148         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
9149         autoreconf.
9150
9151 2006-01-11  Bruno Haible  <bruno@clisp.org>
9152
9153         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
9154         overridable by the user.
9155         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9156
9157 2006-01-10  Simon Josefsson  <jas@extundo.com>
9158
9159         * modules/sys_socket: New file.
9160
9161 2006-01-10  Simon Josefsson  <jas@extundo.com>
9162
9163         * m4/sys_socket_h.m4: New file.
9164
9165 2006-01-10  Simon Josefsson  <jas@extundo.com>
9166
9167         * lib/socket_.h: New file.
9168
9169 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
9170
9171         * modules/readutmp (Maintainer): Add myself.
9172
9173 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
9174
9175         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
9176         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
9177         People who are still concerned with buggy memcmp implementations
9178         can invoke gl_FUNC_MEMCMP themselves.
9179
9180 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
9181
9182         * lib/regex_internal.h (BITSET_WORD_BITS):
9183         Work around a bug in 64-bit PGC (before version 6.1-2), where the
9184         preprocessor mishandles large unsigned values as if they were signed.
9185         Problem reported by Claudio Fontana in
9186         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
9187
9188 2006-01-10  Jim Meyering  <jim@meyering.net>
9189
9190         Avoid the double-free (first in fts_read, second in fts_close) that
9191         would occur when an `active' directory is made inaccessible (e.g.,
9192         via chmod a-x) during a traversal.
9193         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
9194         before returning.  Reproduce this failure by
9195         mkdir -p a/b; cd a; chmod a-x . b
9196         Reported by Stavros Passas.
9197
9198         Sync from coreutils.
9199         * lib/sha1.c: Tweak grammar in a comment.
9200
9201 2006-01-10  Jim Meyering  <jim@meyering.net>
9202
9203         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
9204         Patch by Joerg Sonnenberger.
9205
9206 2006-01-10  Bruno Haible  <bruno@clisp.org>
9207
9208         * modules/readutmp: Depend on module free.
9209         * modules/strtok_r: Depend on module restrict.
9210
9211 2006-01-10  Bruno Haible  <bruno@clisp.org>
9212
9213         * modules/gettext (configure.ac): Add an invocation of
9214         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
9215
9216 2006-01-10  Bruno Haible  <bruno@clisp.org>
9217
9218         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
9219         Reported by Werner Lemberg <wl@gnu.org>.
9220
9221 2006-01-10  Bruno Haible  <bruno@clisp.org>
9222
9223         * lib/localcharset.c: Update from GNU gettext.
9224
9225 2006-01-10  Bruno Haible  <bruno@clisp.org>
9226
9227         * lib/argp.h (__const): Remove macro. Use const instead.
9228         * lib/argp-fmtstream.h (__const): Likewise.
9229         * lib/glob_.h (__const): Remove macro.
9230         * lib/glob-libc.h: Use const instead of __const.
9231
9232 2006-01-10  Bruno Haible  <bruno@clisp.org>
9233
9234         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
9235         variable.
9236         Needed to avoid an automake error regarding the 'gettext' module.
9237
9238 2006-01-09  Simon Josefsson  <jas@extundo.com>
9239
9240         * modules/inet_ntop (Depends-on): Add restrict.
9241
9242 2006-01-09  Simon Josefsson  <jas@extundo.com>
9243
9244         * modules/gc-rijndael-tests (License): Put under LGPL.
9245
9246         * modules/gc-des-tests (License): Likewise.
9247
9248         * modules/gc-arcfour-tests (License): Likewise.
9249
9250         * modules/gc-arctwo-tests (License): Likewise.
9251
9252         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
9253
9254         * modules/gc-hmac-sha1-tests (Files): Likewise.
9255
9256         * modules/gc-hmac-md5-tests (License): Likewise.
9257
9258         * modules/gc-sha1-tests (License): Likewise.
9259
9260         * modules/gc-md5-tests (License): Likewise.
9261
9262         * modules/gc-md4-tests (License): Likewise.
9263
9264         * modules/gc-md2-tests (License): Likewise.
9265
9266         * modules/gc-tests (License): Likewise.
9267
9268         * modules/des-tests (License): Likewise.
9269
9270         * modules/md4-tests (License): Likewise.
9271
9272         * modules/md2-tests (License): Likewise.
9273
9274 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
9275
9276         Sync from coreutils:
9277
9278         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
9279         * modules/lib-ignore: New file.
9280         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
9281         chdir-safer.m4, lchmod.m4.
9282         * modules/openat: Add mkdirat.c, openat-priv.h.
9283
9284 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
9285
9286         Sync from coreutils.
9287         * m4/lib-ignore.m4: New file.
9288         * m4/lchmod.m4: New file.
9289
9290 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
9291
9292         Sync from coreutils.
9293         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
9294         for write access: POSIX says that must fail.
9295         * lib/fts.c (diropen): Likewise.
9296         * lib/save-cwd.c (save_cwd): Likewise.
9297         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
9298         well, for minor improvements on hosts that lack O_DIRECTORY.
9299         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
9300         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
9301         Fall back on chown if open failed with EACCES.
9302
9303         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
9304         Report an error at compile-time if only a 1-second nominal clock
9305         resolution is found.
9306
9307         * lib/lchmod.h: New file.
9308         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
9309         (make_dir_parents): Use lchown rather than chown, and
9310         lchmod rather than chmod.
9311
9312         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
9313         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
9314         "proc" reported by n0dalus.
9315
9316         * lib/mountlist.c: Include <limits.h>.
9317         (dev_from_mount_options)
9318         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
9319         New function.  It no longer assumes "dev=" has the System V meaning
9320         on Linux (since it doesn't).  It also parses "dev=" more carefully.
9321         (read_file_system_list)
9322         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
9323         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
9324         dev= in that case.
9325
9326         * lib/posixtm.h (PDS_PRE_2000): New macro.
9327         * lib/posixtm.c (year): Arg is now syntax_bits rather than
9328         allow_century.  All usages changed.  Reject dates outside the range
9329         1969-1999 if PDS_PRE_2000 is used.
9330
9331 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
9332
9333         Sync from coreutils.
9334         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
9335         (Time of day items): Mention the possibility of leap seconds.
9336         Problem reported by Dr. David Alan Gilbert.
9337
9338 2006-01-09  Jim Meyering  <jim@meyering.net>
9339
9340         Sync from coreutils.
9341
9342         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
9343
9344         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
9345
9346         * lib/modechange.c (mode_compile): Reject an invalid mode string
9347         that starts with an octal digit.  From Andreas Gruenbacher.
9348
9349         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
9350         and dup to open_safer and dup_safer, respectively.
9351         (openat_permissive): Fix typo in comment.
9352
9353         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
9354         "gettext.h"; either no longer needed or are guaranteed by openat.h.
9355         (_): Remove; no longer needed.
9356         (openat): Renamed from rpl_openat; no need for rpl_openat
9357         since openat.h renames openat for us.
9358         Replace most of the body with a call to openat_permissive,
9359         to avoid duplicate code.
9360         Port to (probably hypothetical) environments were mode_t is
9361         wider than int.
9362         (openat_permissive): Require mode arg, so that we can check
9363         types better.  Put it just after flags.  Change cwd failure
9364         indicator from pointer-to-bool to pointer-to-errno-value.
9365         All callers changed.
9366         Invoke openat_save_fail and/or openat_restore_fail if
9367         cwd_errno is null, so that openat can call us.
9368         (openat_permissive, fdopendir, fstatat, unlinkat):
9369         Simplify errno handling to avoid some duplicate code,
9370         as it's OK to set errno on success.
9371         * lib/openat.h: Revamp code so that function macros depend on
9372         __OPENAT_PREFIX only, not also on AT_FDCWD.
9373         (openat_ro): Remove.  Caller changed to use openat_permissive.
9374         (openat_permissive): Now a macro, if not a function.
9375         (openat_restore_fail, openat_save_fail): Now always functions,
9376         since mkdirat needs them even if __OPENAT_PREFIX is defined.
9377
9378         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
9379         and openat.c.
9380         * lib/mkdirat.c: Include openat-priv.h.
9381         Remove definitions of macros defined therein.
9382         * lib/openat.c: Likewise.
9383
9384         * lib/mkdirat.c (mkdirat): New file and function.
9385         * lib/openat.h (mkdirat): Declare.
9386
9387         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
9388
9389         * lib/openat.h (openat_permissive): Declare.
9390         (openat_ro): Define.
9391
9392         * lib/openat.c (EXPECTED_ERRNO): New macro.
9393         (openat_permissive): New function -- used in remove.c rewrite.
9394         (all functions): Set errno just before returning, only if there
9395         was an actual failure.
9396         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
9397
9398         Emulate openat-family functions using Linux's procfs, if possible.
9399         Idea and some code based on Ulrich Drepper's glibc changes.
9400
9401         * lib/openat.c: (BUILD_PROC_NAME): New macro.
9402         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
9403         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
9404         before falling back on save_cwd and restore_cwd.
9405         (fdopendir, fstatat, unlinkat): Likewise.
9406
9407         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
9408         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
9409
9410         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
9411         as second argument to va_arg.  Otherwise, some versions of gcc
9412         warn that `if this code is reached, the program will abort'.
9413
9414 2006-01-09  Jim Meyering  <jim@meyering.net>
9415
9416         Sync from coreutils.
9417         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
9418         Require openat-priv.h.
9419
9420 2006-01-09  Bruno Haible  <bruno@clisp.org>
9421
9422         * modules/strnlen (Include): Use strnlen.h.
9423
9424 2006-01-09  Bruno Haible  <bruno@clisp.org>
9425
9426         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
9427
9428 2006-01-09  Bruno Haible  <bruno@clisp.org>
9429
9430         * lib/sysexit_.h (EX_OK): New macro.
9431         Suggested by Martin Lambers <marlam@marlam.de>.
9432
9433 2006-01-09  Bruno Haible  <bruno@clisp.org>
9434
9435         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
9436         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
9437
9438 2006-01-09  Bruno Haible  <bruno@clisp.org>
9439
9440         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
9441         numbers.
9442
9443 2006-01-09  Bruno Haible  <bruno@clisp.org>
9444
9445         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
9446         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
9447         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
9448         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
9449
9450 2006-01-09  Bruno Haible  <bruno@clisp.org>
9451
9452         * build-aux/javacomp.sh.in: New file, moved from lib/.
9453         * modules/javacomp-script (Files): Update.
9454         (configure.ac): Add AC_CONFIG_FILES invocation.
9455         (EXTRA_DIST): Remove variable.
9456
9457         * build-aux/javaexec.sh.in: New file, moved from lib/.
9458         * modules/javaexec (Files): Update.
9459         (configure.ac): Add AC_CONFIG_FILES invocation.
9460         (EXTRA_DIST): Remove javaexec.sh.in.
9461
9462         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
9463         * modules/csharpcomp-script (Files): Update.
9464         (configure.ac): Add AC_CONFIG_FILES invocation.
9465         (EXTRA_DIST): Remove variable.
9466
9467         * build-aux/csharpexec.sh.in: New file, moved from lib/.
9468         * modules/csharpexec (Files): Update.
9469         (configure.ac): Add AC_CONFIG_FILES invocation.
9470         (EXTRA_DIST): Remove csharpexec.sh.in.
9471
9472 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
9473
9474         Sync from coreutils.
9475
9476         Add POSIX ACL support
9477         * lib/acl.h (copy_acl, set_acl): Add declarations.
9478         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
9479         systems other than Linux.
9480         (chmod_or_fchmod): New function: use fchmod when possible,
9481         and chmod otherwise.
9482         (file_has_acl): Add a POSIX ACL implementation, with a
9483         Linux-specific subcase.
9484         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
9485         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
9486         acls are unsupported.
9487         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
9488         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
9489         are unsupported.
9490
9491 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
9492
9493         Sync from coreutils.
9494         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
9495
9496 2006-01-07  Bruno Haible  <bruno@clisp.org>
9497
9498         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
9499         gl_EARLY.
9500
9501 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
9502
9503         * lib/strftime.c (tzname): Don't declare if it is already #defined.
9504         Problem reported for Mingw by Mark Junker.
9505
9506 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
9507
9508         * README: Gnulib normally doesn't generate a tarball.
9509
9510 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
9511
9512         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
9513         long int, not int, for nanosecond counts, so that people who are
9514         used to POSIX struct timespec won't be surprised.  Reported by Jim
9515         Meyering.
9516
9517 2005-12-28  Bruno Haible  <bruno@clisp.org>
9518
9519         * build-aux/config.rpath: Update from GNU gettext.
9520
9521 2005-12-16  Jim Meyering  <jim@meyering.net>
9522
9523         * modules/fprintftime: New module.
9524         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
9525
9526 2005-12-16  Jim Meyering  <jim@meyering.net>
9527
9528         * m4/fprintftime.m4: New file.
9529
9530 2005-12-16  Jim Meyering  <jim@meyering.net>
9531
9532         * lib/fprintftime.c, lib/fprintftime.h: New files.
9533
9534 2005-12-15  Simon Josefsson  <jas@extundo.com>
9535
9536         * modules/socklen (configure.ac): Fix M4 macro name, to align with
9537         new m4/socklen.m4.
9538
9539 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
9540
9541         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
9542         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
9543
9544 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
9545
9546         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
9547         * lib/argp-help.c (fill_in_uparams): Check if the constructed
9548         struct uparams is valid. Fall back to the default values if it is
9549         not.
9550
9551 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
9552
9553         * modules/argp (Files): Add argp-pin.c
9554         (Depends-on): dirname
9555         (lib_SOURCES): Add argp-pin.c
9556
9557 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
9558
9559         * m4/argp.m4:  Check if program_invocation_name and
9560         program_invocation_short_name are declared and define appropriate
9561         macros if they are not.
9562
9563 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
9564
9565         * lib/argp-help.c (__argp_base_name): New function
9566         (__argp_short_program_name): Rewrite using __argp_base_name
9567         * lib/argp-namefrob.h: Define program_invocation_name and
9568         program_invocation_short_name if requested
9569         (__argp_base_name): Add prototype
9570         * lib/argp-parse.c (argp_def): Use gettext wrappers
9571         (argp_default_parser): Use __argp_base_name
9572         * lib/argp-pin.c: New file. Defines program_invocation_name and
9573         program_invocation_short_name on systems that lack them.
9574
9575 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
9576
9577         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
9578         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
9579         porting problem reported by Georg Schwarz in
9580         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
9581
9582 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
9583
9584         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
9585         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
9586         porting problem reported by Georg Schwarz in
9587         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
9588
9589 2005-12-05  Bruno Haible  <bruno@clisp.org>
9590
9591         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
9592         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
9593         Reported by Mark Junker <mjscod@gmx.de>.
9594
9595 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
9596
9597         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
9598         Use implementation from Albert Chin, with some
9599         comments/corrections by Stepan Kasal and myself.
9600
9601 2005-12-02  Bruno Haible  <bruno@clisp.org>
9602
9603         * gnulib-tool (func_import): Accept GPLed build tool modules when
9604         --lgpl is given.
9605         * modules/csharpcomp-script: New file.
9606         * modules/csharpcomp: Depend on it.
9607         * modules/javacomp-script: New file.
9608         * modules/javacomp: Depend on it.
9609         Suggested by Simon Josefsson.
9610
9611 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
9612
9613         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
9614         statement, to work around an HP-UX 10.20 compiler bug reported by
9615         Peter O'Gorman.
9616
9617 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
9618
9619         * modules/savedir (Depends-on): Add openat.
9620
9621 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
9622
9623         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
9624         (uintmax_t) [defined uintmax_t]: Do not declare.
9625         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
9626         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
9627         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
9628         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
9629         sake of portability to weird hosts that C allows (though we don't
9630         know of any practical examples).
9631
9632         * lib/savedir.h (fdsavedir): New decl.
9633         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
9634         contains most of the former guts of savedir.
9635         (savedir): Use savedirstream.
9636         Include "openat.h".
9637
9638 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
9639
9640         * modules/obstack (Files): Add m4/ulonglong.m4.
9641         Problem reported by Davide Angelocola.
9642
9643 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
9644
9645         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
9646         coreutils no longer futzes with rounding modes.
9647
9648 2005-11-14  Jim Meyering  <jim@meyering.net>
9649
9650         * lib/mkstemp-safer.c: Include <config.h>, required for possible
9651         replacement of mkstemp.
9652
9653 2005-11-10  Simon Josefsson  <jas@extundo.com>
9654
9655         * lib/readline.c: Remove EOL.
9656
9657 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
9658
9659         * modules/gethrxtime (Depends-on): Add gettime.
9660
9661 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
9662
9663         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
9664         or gettimeofday; no longer needed.
9665
9666 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
9667
9668         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
9669         time business.
9670         (gethrxtime) [! (HAVE_NANOUPTIME
9671         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
9672         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
9673         our own approximation.
9674
9675 2005-11-08  Eric Blake  <ebb9@byu.net>
9676
9677         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
9678
9679 2005-11-08  Eric Blake  <ebb9@byu.net>
9680
9681         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
9682
9683 2005-11-04  Bruno Haible  <bruno@clisp.org>
9684
9685         * gnulib-tool: Implement --update mode.
9686
9687 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
9688
9689         Fix porting problem reported by Theodoros V. Kalamatianos.
9690         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
9691         Don't assume that futimes failing means we must fail.
9692
9693 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
9694
9695         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
9696         variables to suggest the intended function of the PATH_MAX check.
9697
9698 2005-10-30  Kean Johnston  <jkj@sco.com>
9699
9700         Trivial changes to support SCO systems.
9701         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
9702         as PATH_MAX.
9703         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
9704         where __ptr is null when no I/O is pending.
9705
9706 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
9707
9708         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
9709         leave errno alone.  Problem reported by Dmitry V. Levin.
9710
9711 2005-10-28  Simon Josefsson  <jas@extundo.com>
9712
9713         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
9714         Test more.
9715
9716         * tests/test-gc-md2.c, tests/test-md2.c: New files.
9717
9718         * modules/md2, modules/md2-tests: New files.
9719
9720 2005-10-28  Simon Josefsson  <jas@extundo.com>
9721
9722         * m4/inet_ntop.m4: More tests.
9723
9724         * m4/gc-md2.m4, md2.m4: New file.
9725
9726 2005-10-28  Simon Josefsson  <jas@extundo.com>
9727
9728         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
9729         "restrict" keywords, as per POSIX.  Protect the function
9730         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
9731         Don't use K&R prototypes.  Check the sprintf return values.
9732         Re-define EAFNOSUPPORT if not present.  Indent.
9733
9734         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
9735         suggested by Bruno Haible <bruno@clisp.org>.
9736
9737         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
9738
9739         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
9740
9741         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
9742         libgcrypt).
9743
9744         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
9745
9746         * lib/md2.h, lib/md2.c: New files.
9747
9748 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
9749
9750         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
9751         errno alone.  Problem reported by Frederic Jolliton.
9752
9753 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
9754
9755         * modules/verify (License): Change from GPL to LGPL.  This is a
9756         tiny module and there are apparently near-equivalents that are
9757         under the BSD license.
9758
9759 2005-10-24  Simon Josefsson  <jas@extundo.com>
9760
9761         * modules/sha1: Relicense to LGPL.
9762
9763 2005-10-24  Simon Josefsson  <jas@extundo.com>
9764
9765         * lib/md4.h: Shrink buffer size, now that we changed the type.
9766
9767 2005-10-23  Simon Josefsson  <jas@extundo.com>
9768
9769         * gnulib-tool (func_import): Fix --tests-base.
9770
9771 2005-10-22  Simon Josefsson  <jas@extundo.com>
9772
9773         * modules/arcfour (Depends-on): Need stdint.
9774
9775 2005-10-22  Simon Josefsson  <jas@extundo.com>
9776
9777         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
9778         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
9779
9780 2005-10-22  Simon Josefsson  <jas@extundo.com>
9781
9782         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
9783         suggested by Bruno Haible <bruno@clisp.org>.
9784
9785 2005-10-22  Simon Josefsson  <jas@extundo.com>
9786
9787         * lib/crc.h: Include stddef.h, for size_t.
9788
9789 2005-10-22  Simon Josefsson  <jas@extundo.com>
9790
9791         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
9792         arcfour_context struct (simplify test vector testing in GNU
9793         Shishi).
9794
9795 2005-10-21  Simon Josefsson  <jas@extundo.com>
9796
9797         * modules/des, modules/des-tests: New files.
9798
9799         * modules/gc-des, modules/gc-des-tests: New files.
9800
9801         * tests/test-des.c, tests/test-gc-des.c: New file.
9802
9803 2005-10-21  Simon Josefsson  <jas@extundo.com>
9804
9805         * modules/arctwo, modules/arctwo-tests: New files.
9806
9807         * tests/test-arctwo.c: New file.
9808
9809         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
9810
9811         * tests/test-gc-arctwo.c: New file.
9812
9813 2005-10-21  Simon Josefsson  <jas@extundo.com>
9814
9815         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
9816         Bruno Haible <bruno@clisp.org>.
9817
9818         * m4/gc-des.m4: New file.
9819
9820 2005-10-21  Simon Josefsson  <jas@extundo.com>
9821
9822         * m4/arctwo.m4: New file.
9823
9824         * m4/gc-arctwo.m4: New file.
9825
9826 2005-10-21  Simon Josefsson  <jas@extundo.com>
9827
9828         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
9829         block.
9830
9831 2005-10-21  Simon Josefsson  <jas@extundo.com>
9832
9833         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
9834         <bruno@clisp.org>.
9835
9836         * lib/hmac-sha1.c (hmac_sha1): Likewise.
9837
9838         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
9839         Bruno Haible <bruno@clisp.org>.
9840
9841         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
9842         <bruno@clisp.org>.
9843
9844 2005-10-21  Simon Josefsson  <jas@extundo.com>
9845
9846         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
9847
9848 2005-10-21  Simon Josefsson  <jas@extundo.com>
9849
9850         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
9851
9852 2005-10-21  Simon Josefsson  <jas@extundo.com>
9853
9854         * lib/des.h, lib/des.c: New files.
9855
9856         * lib/gc-gnulib.c: Support DES.c
9857
9858 2005-10-21  Simon Josefsson  <jas@extundo.com>
9859
9860         * lib/arctwo.h, lib/arctwo.c: New files.
9861
9862         * lib/gc-gnulib.c: Support ARCTWO.
9863
9864 2005-10-21  Simon Josefsson  <jas@extundo.com>
9865
9866         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
9867         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9868
9869 2005-10-21  Simon Josefsson  <jas@extundo.com>
9870
9871         * gnulib-tool (func_import, func_create_testdir): Define automake
9872         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
9873         Makefile.am snippet),
9874         suggested by Bruno Haible <bruno@clisp.org>.
9875
9876         * modules/gc (Makefile.am): Use it.
9877
9878 2005-10-21  Bruno Haible  <bruno@clisp.org>
9879
9880         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
9881         patch.
9882
9883 2005-10-19  Simon Josefsson  <jas@extundo.com>
9884
9885         * tests/test-gc-rijndael.c: New file.
9886
9887         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
9888
9889 2005-10-19  Simon Josefsson  <jas@extundo.com>
9890
9891         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
9892         interface too.
9893
9894 2005-10-19  Simon Josefsson  <jas@extundo.com>
9895
9896         * tests/test-gc-arcfour.c: New file.
9897
9898         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
9899
9900 2005-10-19  Simon Josefsson  <jas@extundo.com>
9901
9902         * modules/gc-md4, modules/gc-md4-tests: New file.
9903
9904         * tests/test-gc-md4.c: New file.
9905
9906 2005-10-19  Simon Josefsson  <jas@extundo.com>
9907
9908         * m4/gc-md4.m4: New file.
9909
9910 2005-10-19  Simon Josefsson  <jas@extundo.com>
9911
9912         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
9913         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
9914         <kasal@ucw.cz>.
9915
9916 2005-10-19  Simon Josefsson  <jas@extundo.com>
9917
9918         * m4/gc-arcfour.m4: New file.
9919
9920         * m4/gc-rijndael.m4: New file.
9921
9922 2005-10-19  Simon Josefsson  <jas@extundo.com>
9923
9924         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
9925
9926 2005-10-19  Simon Josefsson  <jas@extundo.com>
9927
9928         * lib/gc-gnulib.c: Support ARCFOUR.
9929
9930 2005-10-19  Simon Josefsson  <jas@extundo.com>
9931
9932         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
9933         support.
9934
9935         * lib/gc.h: Add ECB enum type.
9936
9937         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
9938
9939 2005-10-18  Simon Josefsson  <jas@extundo.com>
9940
9941         * tests/test-md5.c: New file.
9942
9943         * modules/md5-tests: New file.
9944
9945 2005-10-18  Simon Josefsson  <jas@extundo.com>
9946
9947         * tests/test-md4.c: New file.
9948
9949         * modules/md4, modules/md4-tests: New files.
9950
9951 2005-10-18  Simon Josefsson  <jas@extundo.com>
9952
9953         * m4/md4.m4: New file.
9954
9955 2005-10-18  Simon Josefsson  <jas@extundo.com>
9956
9957         * lib/md4.h, lib/md4.c: New files, based on md5.?.
9958
9959 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
9960
9961         * gnulib-tool (func_create_testdir): Omit the second check whether
9962         BUILT_SOURCES in nonempty.
9963
9964 2005-10-17  Simon Josefsson  <jas@extundo.com>
9965
9966         * tests/test-rijndael.c: New file.
9967
9968 2005-10-17  Simon Josefsson  <jas@extundo.com>
9969
9970         * modules/sha1: Depend on stdint instead of md5.
9971
9972         * modules/md5: Depend on stdint, remove uint32_t.
9973
9974 2005-10-17  Simon Josefsson  <jas@extundo.com>
9975
9976         * modules/gc-sha1-tests: New file.
9977
9978         * tests/test-gc-sha1.c: New file.
9979
9980 2005-10-17  Simon Josefsson  <jas@extundo.com>
9981
9982         * m4/md5.m4: Remove call to uint32_t.m4.
9983
9984 2005-10-17  Simon Josefsson  <jas@extundo.com>
9985
9986         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
9987
9988         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
9989         md5.h.
9990
9991         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
9992
9993         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
9994
9995 2005-10-17  Simon Josefsson  <jas@extundo.com>
9996
9997         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
9998
9999 2005-10-17  Simon Josefsson  <jas@extundo.com>
10000
10001         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
10002
10003 2005-10-17  Simon Josefsson  <jas@extundo.com>
10004
10005         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
10006
10007         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
10008
10009 2005-10-17  Bruno Haible  <bruno@clisp.org>
10010
10011         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
10012         that it can also be used in a test.
10013
10014 2005-10-16  Bruno Haible  <bruno@clisp.org>
10015
10016         * gnulib-tool (func_emit_tests_Makefile_am): Also define
10017         TESTS_ENVIRONMENT, so that individual tests can augment it.
10018
10019         * gnulib-tool (func_create_testdir): Use an intermediate target for
10020         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
10021         macros, like $(ALLOCA_H), which cannot be passed through the command
10022         line.
10023
10024 2005-10-15  Simon Josefsson  <jas@extundo.com>
10025
10026         * modules/rijndael-tests: New file.
10027
10028         * modules/rijndael: New file.
10029
10030 2005-10-15  Simon Josefsson  <jas@extundo.com>
10031
10032         * m4/rijndael.m4: New file.
10033
10034 2005-10-15  Simon Josefsson  <jas@extundo.com>
10035
10036         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
10037
10038         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
10039
10040 2005-10-14  Simon Josefsson  <jas@extundo.com>
10041
10042         * tests/test-arcfour.c: New file.
10043
10044         * modules/arcfour, modules/arcfour-tests: New files.
10045
10046 2005-10-14  Simon Josefsson  <jas@extundo.com>
10047
10048         * m4/arcfour.m4: New file.
10049
10050 2005-10-14  Simon Josefsson  <jas@extundo.com>
10051
10052         * lib/arcfour.h, lib/arcfour.c: New files.
10053
10054 2005-10-14  Roland McGrath  <roland@redhat.com>
10055
10056         Import from libc.  [BZ #1331]
10057         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
10058         macro argument.
10059         Reported by Matej Vela <vela@debian.org>.
10060
10061 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
10062
10063         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
10064         include <wchar.h>; no longer needed.
10065
10066 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
10067
10068         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
10069
10070 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
10071         and  Ulrich Drepper  <drepper@redhat.com>
10072
10073         Import from libc.
10074         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
10075         instead of inline stream orientation test and two separate
10076         function calls.  Pay no attention to USE_IN_LIBIO.
10077
10078 2005-10-13  Simon Josefsson  <jas@extundo.com>
10079
10080         * modules/gc-hmac-md5-tests: New file.
10081
10082         * tests/test-gc-hmac-sha1.c: New file.
10083
10084         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
10085
10086         * modules/gc-hmac-md5-tests: New file.
10087
10088         * tests/test-gc-md5.c: New file.
10089
10090         * modules/gc-md5-tests: New file.
10091
10092 2005-10-13  Simon Josefsson  <jas@extundo.com>
10093
10094         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
10095         Move memory allocation outside of loop.
10096
10097 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
10098
10099         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
10100         intermediate directory is in a read-only file system.  Problem
10101         reported by Eric Blake.
10102
10103 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
10104
10105         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
10106
10107 2005-10-12  Simon Josefsson  <jas@extundo.com>
10108
10109         * tests/test-hmac-sha1.c: New file.
10110
10111         * modules/hmac-sha1-tests: New file.
10112
10113         * modules/hmac-sha1: New file.
10114
10115 2005-10-12  Simon Josefsson  <jas@extundo.com>
10116
10117         * modules/gc-sha1: New file.
10118
10119 2005-10-12  Simon Josefsson  <jas@extundo.com>
10120
10121         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
10122
10123         * tests/test-gc-pbkdf2-sha1.c: New file.
10124
10125 2005-10-12  Simon Josefsson  <jas@extundo.com>
10126
10127         * modules/gc-md5, modules/gc-hmac-md5: New files.
10128
10129         * modules/gc (Files): Remove md5, memxor and hmac files.
10130
10131 2005-10-12  Simon Josefsson  <jas@extundo.com>
10132
10133         * m4/gc-pbkdf2-sha1.m4: New file.
10134
10135         * m4/gc-hmac-sha1.m4: New file.
10136
10137         * m4/gc-sha1: New file.
10138
10139         * m4/hmac-sha1.m4: New file.
10140
10141 2005-10-12  Simon Josefsson  <jas@extundo.com>
10142
10143         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
10144
10145         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
10146
10147 2005-10-12  Simon Josefsson  <jas@extundo.com>
10148
10149         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
10150         suggested by Bruno Haible <bruno@clisp.org>.
10151
10152 2005-10-12  Simon Josefsson  <jas@extundo.com>
10153
10154         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
10155
10156 2005-10-12  Simon Josefsson  <jas@extundo.com>
10157
10158         * lib/gc-pbkdf2-sha1.c: New file.
10159
10160         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
10161
10162 2005-10-12  Simon Josefsson  <jas@extundo.com>
10163
10164         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
10165
10166         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
10167
10168 2005-10-12  Simon Josefsson  <jas@extundo.com>
10169
10170         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
10171         GC_USE_HMAC_MD5, respectively.
10172
10173         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
10174         (gc_md5): Fix typo.
10175
10176         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
10177
10178         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
10179
10180         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
10181
10182 2005-10-12  Bruno Haible  <bruno@clisp.org>
10183
10184         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
10185         Reported by Stepan Kasal <kasal@ucw.cz>.
10186
10187 2005-10-11  Simon Josefsson  <jas@extundo.com>
10188
10189         * tests/test-crc.c: New file.
10190
10191         * modules/crc, modules/crc-tests: New files.
10192
10193 2005-10-11  Simon Josefsson  <jas@extundo.com>
10194
10195         * m4/crc.m4: New file.
10196
10197 2005-10-11  Simon Josefsson  <jas@extundo.com>
10198
10199         * lib/gc.h: Add gc_hash and gc_hash_buffer.
10200
10201         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
10202
10203         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
10204
10205 2005-10-11  Simon Josefsson  <jas@extundo.com>
10206
10207         * lib/crc.h, lib/crc.c: New files.
10208
10209         * lib/gc.h (gc_hash_buffer): Add doc.
10210
10211 2005-10-11  Bruno Haible  <bruno@clisp.org>
10212
10213         * modules/c-strcasestr: New file.
10214         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
10215
10216 2005-10-11  Bruno Haible  <bruno@clisp.org>
10217
10218         * modules/c-strcase: New file.
10219         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
10220
10221 2005-10-11  Bruno Haible  <bruno@clisp.org>
10222
10223         * lib/strcasecmp.c: Include limits.h.
10224         (strcasecmp): Avoid integer overflow on exotic platforms.
10225         * lib/strncasecmp.c: Include limits.h.
10226         (strncasecmp): Avoid integer overflow on exotic platforms.
10227         Reported by Paul Eggert.
10228
10229 2005-10-11  Bruno Haible  <bruno@clisp.org>
10230
10231         * lib/c-strcasestr.h: New file, from GNU gettext.
10232         * lib/c-strcasestr.c: New file, from GNU gettext.
10233
10234 2005-10-11  Bruno Haible  <bruno@clisp.org>
10235
10236         * lib/c-strcase.h: New file, from GNU gettext.
10237         * lib/c-strcasecmp.c: New file, from GNU gettext.
10238         * lib/c-strncasecmp.c: New file, from GNU gettext.
10239
10240 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
10241
10242         * modules/mempcpy (License): GPL -> LGPL.
10243         * modules/strchrnul (License): Likewise.
10244         * modules/sysexits (License): Likewise.
10245
10246 2005-10-08  Simon Josefsson  <jas@extundo.com>
10247
10248         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
10249
10250 2005-10-07  Simon Josefsson  <jas@extundo.com>
10251
10252         * m4/memxor.m4: Remove gl_C_RESTRICT call.
10253
10254 2005-10-06  Simon Josefsson  <jas@extundo.com>
10255
10256         * tests/test-hmac-md5.c: New file.
10257
10258         * modules/hmac-md5-tests: New file.
10259
10260         * modules/hmac-md5: New file.
10261
10262 2005-10-06  Simon Josefsson  <jas@extundo.com>
10263
10264         * m4/hmac-md5.m4: New file.
10265
10266         * m4/memxor.m4: Require gl_C_RESTRICT.
10267
10268 2005-10-06  Simon Josefsson  <jas@extundo.com>
10269
10270         * lib/memxor.c (memxor): Avoid casts and warnings.
10271
10272 2005-10-06  Simon Josefsson  <jas@extundo.com>
10273
10274         * lib/hmac-md5.c: New file.
10275
10276         * lib/hmac.h: New file.
10277
10278 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
10279
10280         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
10281         promotes to int, not unsigned int, to catch the AIX 5.3
10282         compiler bug.
10283
10284 2005-10-05  Simon Josefsson  <jas@extundo.com>
10285
10286         * modules/memxor: New file.
10287
10288         * modules/iconv (Files): Move config.rpath to havelib, it is used
10289         there.
10290
10291         * modules/havelib (Files): Add config.rpath.
10292
10293 2005-10-05  Simon Josefsson  <jas@extundo.com>
10294
10295         * m4/memxor.m4: New file.
10296
10297 2005-10-05  Simon Josefsson  <jas@extundo.com>
10298
10299         * lib/memxor.c (memxor): Fix compiler error.
10300
10301         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
10302         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
10303
10304         * lib/memxor.h, lib/memxor.c: New files.
10305
10306         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
10307         we assume all systems have it, suggested by Jim Meyering
10308         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
10309         any systems lack sys/socket.h; mingw32 is known to lack it, but we
10310         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
10311         same reasons.
10312
10313 2005-10-05  Simon Josefsson  <jas@extundo.com>
10314
10315         * config/srclist.txt: Add glibc bug 1423 for md5.h.
10316
10317 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
10318
10319         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
10320         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
10321         needed, since the source code now assumes these .h files.
10322
10323 2005-10-05  Derek Price  <derek@ximbiot.com>
10324
10325         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
10326
10327 2005-10-05  Bruno Haible  <bruno@clisp.org>
10328
10329         * modules/stdint (License): Change to LGPL.
10330
10331 2005-10-04  Simon Josefsson  <jas@extundo.com>
10332
10333         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
10334         D. Baushke" <mdb@gnu.org>.
10335
10336 2005-10-04  Bruno Haible  <bruno@clisp.org>
10337
10338         * lib/verify.h (verify_true): Provide alternative definition for C++.
10339
10340 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
10341
10342         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
10343         (SSIZE_MAX): New macro, if not already defined.
10344         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
10345         than 2 GiB.
10346
10347 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
10348
10349         Sync from coreutils.
10350         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
10351         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
10352         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
10353         ULLONG_MAX doesn't work with 2.7.2.1.
10354
10355 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
10356
10357         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
10358         From Ben Pfaff.
10359
10360         * modules/exclude (Depends-on): Depend on verify.
10361         * modules/strtoimax (Depends-on): Likewise.
10362         * modules/utimecmp (Depends-on): Likewise.
10363
10364 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
10365
10366         * lib/exclude.c: Include verify.h.
10367         (verify): Remove.  All callers changed to use verify.h's version.
10368         * lib/strtoimax.c: Likewise.
10369         * lib/utimecmp.c: Likewis.e
10370
10371         Sync from coreutils.
10372         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
10373         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
10374         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
10375         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
10376         bother returning ENOSYS if settimeofday or stime fails; just let
10377         them return whatever errno they want to return.
10378         * lib/utimens.c: Include unistd.h, for dup2.
10379         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
10380         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
10381
10382 2005-10-02  Jim Meyering  <jim@meyering.net>
10383
10384         Sync from coreutils.
10385         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
10386         from glibc-2.2.5 that fails for read-only files.
10387
10388 2005-10-02  Jim Meyering  <jim@meyering.net>
10389
10390         Sync from coreutils.
10391         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
10392         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
10393         `#if HAVE_CONFIG_H'.
10394         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
10395         Remove AT_FDCWD test.
10396         Do not consume the fd unless successful.
10397         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
10398         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
10399         block, so that we don't even try to compile it if settimeofday is
10400         available.  This works around a compilation failure on OSF1 V5.1,
10401         due to stime requiring a `long int*' while tv_sec is `int'.
10402
10403 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
10404
10405         Sync from coreutils.
10406         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
10407         against `yes', rather than just testing for nonempty.
10408
10409 2005-10-01  Simon Josefsson  <jas@extundo.com>
10410
10411         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
10412         and Darwin.
10413
10414         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
10415         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
10416         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
10417         freeaddrinfo and gai_strerror are declared by the POSIX headers.
10418         Check if struct addrinfo is declared.
10419
10420 2005-10-01  Simon Josefsson  <jas@extundo.com>
10421
10422         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
10423         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
10424         AI_* and EAI_* definitions.  Protect function declarations.
10425
10426 2005-10-01  Jim Meyering  <jim@meyering.net>
10427
10428         Sync from coreutils.
10429
10430         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
10431         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
10432         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
10433         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
10434         in the inet and nsl libraries.  Required on Solaris 5.7.
10435
10436 2005-10-01  Jim Meyering  <jim@meyering.net>
10437
10438         Sync from coreutils.
10439         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
10440         in the inet and nsl libraries.  Required on Solaris 5.7.
10441
10442 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
10443
10444         * lib/getdelim.c (getdelim): Remove unused variables.
10445
10446 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
10447
10448         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
10449         so that the code works even with ancient cpp.  Portability problem
10450         with GCC 2.7.2.1 reported by Thomas M.Ott.
10451
10452 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
10453
10454         * modules/regex (Depends-on): Add strcase.
10455
10456         * modules/gethostname (Licence): Change from GPL to LGPL, since
10457         gethostname.c is a trivial implementation of a standard library
10458         function.
10459         * modules/poll (License): Change from GPL to LGPL, since it's
10460         derived from LGPL code.
10461
10462 2005-09-27  Jim Meyering  <jim@meyering.net>
10463
10464         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
10465         HAVE_CONFIG_H.
10466
10467         * lib/intprops.h (signed_type_or_expr__): Define.
10468         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
10469         for unsigned types.
10470
10471 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
10472
10473         * lib/verify.h (verify_expr): Remove, replacing with:
10474         (verify_true): New macro that returns true instead of void.
10475         (verify_type__): Remove.
10476         (verify): Use verify_true rather than verify_type__.
10477
10478 2005-09-26  Bruno Haible  <bruno@clisp.org>
10479
10480         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
10481         is necessary.
10482         (lib_SOURCES): Remove mbchar.c.
10483         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
10484         (Files): Add m4/mbrtowc.m4.
10485         * modules/mbiter: Likewise.
10486         * modules/mbuiter: Likewise.
10487
10488 2005-09-26  Bruno Haible  <bruno@clisp.org>
10489
10490         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
10491         compile mbchar.c if they are not both present.
10492         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
10493         * m4/mbiter.m4 (gl_MBITER): Likewise.
10494         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
10495         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
10496         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
10497
10498 2005-09-25  Jim Meyering  <jim@meyering.net>
10499
10500         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
10501         also uses socklen_t.
10502
10503 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
10504
10505         * lib/utimens.c (ENOSYS): Define if not already defined.
10506         (futimens): Support having a null PATH if the file descriptor
10507         is nonnegative.
10508
10509         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
10510         Remove.
10511         (__attribute): Define to empty unless GCC 3.1 or later.
10512         This works around a core dump on OpenBSD 3.4, which has GCC
10513         2.95.3, which dumps core when given __attribute__(()).  It also
10514         simplifies other tests, since we really don't want to bother with
10515         worrying about which ancient version of GCC supported what.
10516         Original problem reported by Yoann Vandoorselaere, with part of
10517         the fix suggested by Derek Price.
10518
10519 2005-09-24  Jim Meyering  <jim@meyering.net>
10520
10521         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
10522         so we can once again use a positive bitfield width of 1 -- now we
10523         don't have to explain why we were using a bitfield width of 2.
10524
10525 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
10526
10527         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
10528         and similarly for the other external symbols.  Problem reported
10529         by James Gallager.
10530
10531         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
10532         bug reported by Jim Meyering.
10533
10534         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
10535         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
10536         not needed, since socklen is a prerequisite module.
10537
10538 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
10539
10540         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
10541         Problem reported by Eric Blake.
10542         (getaddrinfo): Initialize se so that it's not garbage.
10543         Redo internal storage allocation so that it doesn't make unportable
10544         assumptions about alignment.
10545         Fix a memory leak.
10546
10547         * lib/utimens.c (futimens): Use futimesat if available.
10548         Prefer it to futimes since it doesn't have the futimes bug.
10549
10550         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
10551         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
10552         Instead, declare a function that returns a pointer to an array,
10553         and use verify_type__ to declare the size of the array.
10554         Problem and germ of a solution reported by Bruno Haible.
10555         (verify_type__): Use 2, not 1, for bitfield size, to avoid
10556         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
10557
10558 2005-09-23  Jim Meyering  <jim@meyering.net>
10559
10560         Sync from coreutils.
10561         Correct build failure (socklen_t not defined) on at least
10562         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
10563         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
10564
10565 2005-09-23  Jim Meyering  <jim@meyering.net>
10566
10567         * modules/getaddrinfo (Depends-on): Add socklen.
10568
10569 2005-09-23  Bruno Haible  <bruno@clisp.org>
10570
10571         * tests/test-verify.c: New file.
10572
10573 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
10574
10575         Sync from coreutils.
10576
10577         * modules/argmatch (Depends-on): Add verify.
10578         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
10579         unistd-safer.
10580         * modules/save-cwd (Depends-on): Likewise.
10581
10582         * modules/openat (Files): Add lib/openat-die.c.
10583         (Depends-on): Remove error, exitfail.
10584         Add dirname.
10585
10586         * modules/verify: New file.
10587         * MODULES.html.sh (Diagnostics <assert.h>): New section,
10588         with "verify" module.
10589
10590 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
10591
10592         Sync from coreutils.
10593
10594         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
10595         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
10596         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
10597         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
10598         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
10599         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
10600         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
10601         Don't bother checking for string.h, stdlib.h, unistd.h.
10602         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
10603         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
10604         module's job.
10605         * m4/jm-macros.m4 (gl_MACROS): Likewise.
10606         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
10607
10608         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
10609         (gl_GETDATE): Use it.
10610
10611         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
10612
10613 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
10614
10615         Sync from coreutils.
10616
10617         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
10618         stat-time.h.
10619         * lib/argmatch.h: Include verify.h
10620         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
10621         (ARGMATCH_ASSERT): Remove; unused.
10622         * lib/canonicalize.c: Assume STDC_HEADERS.
10623         * lib/exclude.c: Include "strcase.h".
10624         * lib/regex_internal.h [!defined _LIBC]: Likewise.
10625         * lib/getusershell.c: Include stdio--.h rather than stdio.h
10626         and stdio-safer.h.
10627         (getusershell): Call fopen, not fopen_safer.
10628         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
10629         Do not include unistd-safer.h.
10630         (save_cwd): Don't call fd_safer; no longer needed
10631         now that we include fcntl--.h.
10632
10633         * lib/getdate.y (relative_time): New type.
10634         (RELATIVE_TIME_0): New constant.
10635         (parser_control): Use relative_time instead of doing it ourselves.
10636         (%union): Add new relative_time rel member.
10637         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
10638         Now typeless.
10639         (relunit, relunit_snumber): Now of type rel.
10640         (zone, rel, relunit, get_date): Adjust to above changes.
10641
10642         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
10643         Do not include unistd-safer.h.
10644         (getloadavg): Don't call fd_safer; no longer needed
10645         now that we include fcntl--.h.
10646
10647         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
10648         (make_dir_parents): Treat ENOSYS like EEXIST.
10649
10650         Improve quality of diagnostics on restore_cwd failure.
10651         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
10652         (make_dir_parents): Last arg is now int * (for errno), not bool *.
10653         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
10654         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
10655         each time through the loop.  Do not diagnose restore_cwd failure;
10656         that is the caller's job (and perhaps the caller does not care).
10657
10658         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
10659         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
10660         If the file already exists but is not a directory, don't bother
10661         to try to make its parents.
10662         Close potential file descriptor leak if we can't chdir("/") (!).
10663         Don't always return true if chdir($PWD) fails; return true only
10664         if the requested action was done successfully (except for the
10665         chdir($PWD)).
10666         Don't log final directory unless we actually made it.
10667         Refactor to avoid duplicate code to fix up permissions.
10668         Don't attempt to fix up parent permissions if chdir($PWD) fails.
10669
10670         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
10671         to make it a bit faster and (I hope) clearer.
10672         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
10673         Fix bug in formats like %2N.
10674
10675         * lib/verify.h: New file.
10676
10677 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
10678
10679         Sync from coreutils.
10680         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
10681
10682 2005-09-22  Jim Meyering  <jim@meyering.net>
10683
10684         Sync from coreutils.
10685
10686         * m4/lstat.m4 (gl_FUNC_LSTAT):
10687         Use AC_LIBSOURCES to require lstat.c and lstat.h.
10688         Remove obsolete comment.
10689         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
10690         * m4/xstrtod.m4: Likewise.
10691
10692         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
10693
10694 2005-09-22  Jim Meyering  <jim@meyering.net>
10695
10696         Sync from coreutils.
10697
10698         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
10699
10700         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
10701         the .tm_year member, since otherwise gcc-4.0 would now warn about
10702         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
10703
10704         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
10705         order to avoid an unsuppressible warning from gcc on 64-bit systems.
10706
10707         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
10708         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
10709         when run in a time zone for which daylight savings time is in effect
10710         for the starting date.
10711
10712         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
10713         stop us from restricting permissions of just-created absolute-named
10714         directories.
10715         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
10716         to restore initial working directory.
10717         * lib/mkdir-p.c (make_dir_parents): New parameter:
10718         different_working_dir, to tell caller if/when we change the working
10719         directory and are unable to return to the initial one.
10720         * lib/mkdir-p.h (make_dir_parents): Update prototype.
10721         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
10722         `return false'.  This fixes a bug introduced on 2004-07-30.
10723
10724         * lib/openat.c (fdopendir): Be sure to close the supplied
10725         file descriptor before returning.  This makes our replacement
10726         implementation a little closer to Solaris's, where fdopendir
10727         ties the file descriptor to the returned DIR* pointer.
10728         * lib/openat.c (unlinkat): New function.
10729         * lib/openat.h (unlinkat): Add prototype.
10730         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
10731         (openat_restore_fail): Rename from openat_restore_die.
10732         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
10733
10734         Provide an alternative to exiting immediately upon save_cwd or
10735         restore_cwd failure.  Now, an application can arrange e.g.,
10736         to perform a longjump in that case.
10737         * lib/openat.c: Include dirname.h.
10738         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
10739         (rpl_openat, fdopendir, fstatat): Call openat_save_die
10740         and openat_restore_die rather than calling error directly.
10741         Don't include "error.h" or "exitfail.h"; they're no longer needed.
10742
10743         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
10744         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
10745         define.
10746
10747         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
10748         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
10749                             int utc, int nanoseconds);
10750         Background:
10751         date should not have to allocate a megabyte of virtual memory to
10752         handle a format argument like +%1048575T.  When implemented with
10753         strftime, it must allocate such a buffer, use strftime to fill it
10754         in, print it, then free it.
10755         With fprintftime, it simply prints everything and exits.
10756         With no need for memory allocation, that's one fewer way to fail.
10757         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
10758         optional field width, not before, so we accept %9:z, not %:9z.
10759         (my_strftime): Be sure to use L_('x') for literals.
10760
10761         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
10762         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
10763         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
10764         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
10765         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
10766         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
10767         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
10768         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
10769         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
10770         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
10771         * lib/xgethostname.c, lib/xreadlink.c:
10772         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
10773
10774         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
10775         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
10776         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
10777         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
10778         and don't include <sys/file.h>).
10779
10780 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
10781
10782         Sync from coreutils.
10783
10784         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
10785         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
10786         [!LDAV_DONE]: Avoid unused variable warning.
10787
10788 2005-09-21  Bruno Haible  <bruno@clisp.org>
10789
10790         * lib/unicodeio.h (unicode_to_mb): New declaration.
10791
10792 2005-09-20  Derek Price  <derek@ximbiot.com>
10793
10794         * lib/getaddrinfo.c: Don't include <netdb.h> included from
10795         getaddrinfo.h.
10796
10797 2005-09-20  Bruno Haible  <bruno@clisp.org>
10798
10799         * gnulib-tool: Remove trailing slashes from the values specified for
10800         --source-base, --m4-base, --tests-base, --aux-dir.
10801         Suggested by Simon Josefsson <jas@extundo.com>.
10802
10803 2005-09-20  Bruno Haible  <bruno@clisp.org>
10804
10805         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
10806         func_modules_to_filelist, func_import, func_create_testdir): Make all
10807         sorting results locale-independent, so that gnulib-cache.m4 doesn't
10808         change when gnulib-tool is invoked in a different locale.
10809
10810 2005-09-19  Simon Josefsson  <jas@extundo.com>
10811
10812         * m4/socklen.m4: Fix typo.
10813
10814 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10815
10816         Use a consistent style for including <config.h>.
10817         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
10818         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
10819         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
10820         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
10821         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
10822         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
10823         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
10824         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
10825         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
10826         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
10827         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
10828         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
10829         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
10830         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
10831         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
10832         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
10833         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
10834         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
10835         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
10836         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
10837         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
10838         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
10839         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
10840         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
10841         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
10842         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
10843         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
10844         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
10845         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
10846         lib/xstrtoumax.c, lib/yesno.c:
10847         Standardize inclusion of config.h.
10848         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
10849         lib/inttostr.h:  Removed inclusion of config.h from header files.
10850         * lib/inttostr.c:  Adjusted in-tree users.
10851         * lib/timespec.h: Remove superfluous warning to include config.h.
10852         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
10853         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
10854         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
10855         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
10856         config.h with HAVE_CONFIG_H.
10857
10858 2005-09-19  Jim Meyering  <jim@meyering.net>
10859
10860         * modules/pathmax (License): Change to LGPL.
10861
10862 2005-09-19  Derek Price  <derek@ximbiot.com>
10863
10864         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
10865
10866 2005-09-19  Bruno Haible  <bruno@clisp.org>
10867
10868         * gnulib-tool (import): Provide default for --tests-base.
10869
10870 2005-09-19  Bruno Haible  <bruno@clisp.org>
10871
10872         * doc/quote.texi: New file, extracted from gnulib.texi.
10873         * doc/ctime.texi: New file, extracted from gnulib.texi.
10874         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
10875         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
10876         * doc/gnulib.texi: Include them.
10877
10878 2005-09-18  Bruno Haible  <bruno@clisp.org>
10879
10880         Portability fix.
10881         * gnulib-tool (func_readlink): New function.
10882         (func_ln_if_changed): Use it.
10883
10884 2005-09-18  Bruno Haible  <bruno@clisp.org>
10885
10886         * gnulib-tool: Support --with-tests also with --import.
10887         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
10888         (func_import): Use variables $testsbase and $inctests. Emit a
10889         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
10890         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
10891         SUBDIRS += $testsdir.
10892         (func_create_testdir): Update.
10893
10894 2005-09-18  Bruno Haible  <bruno@clisp.org>
10895
10896         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
10897         instead of $dry_run.
10898         (func_cp_if_changed, func_mv_if_changed): Remove functions.
10899         (func_ln_if_changed): Don't handle dry-run here.
10900         (func_import): In dry-run mode, detect more precisely which actions
10901         would be performed, and don't use "...ing" verbs.
10902
10903 2005-09-18  Bruno Haible  <bruno@clisp.org>
10904
10905         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
10906         (func_import): Use join on two temporary files instead of three nested
10907         loops, in order to determine which files are new or old.
10908
10909 2005-09-18  Bruno Haible  <bruno@clisp.org>
10910
10911         * gnulib-tool (func_import): Comment out code that spits out the
10912         new files with --dry-run.
10913
10914 2005-09-18  Bruno Haible  <bruno@clisp.org>
10915
10916         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
10917
10918 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
10919
10920         * lib/stat-time.h: New file.
10921         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
10922         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
10923         in a different way.
10924         (timespec_cmp): New function.
10925         * lib/utimecmp.c: Include stat-time.h.
10926         (SYSCALL_RESOLUTION): Depend on whether various struct stat
10927         members exist, not on the obsolescent ST_MTIM_NSEC.
10928         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
10929
10930 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
10931
10932         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
10933
10934 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
10935
10936         * MODULES.html.sh (File system functions): Add stat-time.
10937         * modules/stat-time: New file.
10938         * modules/timespec (Files): Remove m4/st_mtim.m4; this
10939         is now done in a different way, by the stat-time module.
10940         * modules/utimecmp (Depends-on): Add stat-time.
10941
10942 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
10943
10944         * m4/st_mtim.m4: Remove.  Superseded by...
10945         * m4/stat-time.m4: New file.
10946         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
10947         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
10948
10949 2005-09-15  Derek Price  <derek@ximbiot.com>
10950
10951         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
10952
10953 2005-09-15  Derek Price  <derek@ximbiot.com>
10954
10955         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
10956         * lib/regex_internal.c: Ditto, using this...
10957         (__GNUC_PREREQ): ...new macro.
10958         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
10959         using...
10960         (__GNUC_PREREQ): ...this new macro.
10961
10962         * lib/strstr.h: Include string.h. Define strstr as a macro here.
10963
10964 2005-09-15  Derek Price  <derek@ximbiot.com>
10965             Paul Eggert  <eggert@cs.ucla.edu>
10966
10967         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
10968         changes, consolidating in...
10969         * lib/regex_internal.h: ...this file.
10970
10971 2005-09-13  Jim Meyering  <jim@meyering.net>
10972
10973         * lib/canon-host.c: Filter through gnu indent and reword comments
10974         slightly.
10975         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
10976
10977 2005-09-13  Derek Price  <derek@ximbiot.com>
10978
10979         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
10980         failure.
10981         Reported by Jim Meyering  <jim@meyering.net>.
10982
10983 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
10984
10985         * lib/base64.c: Typo.
10986         (base64_encode): Put b64str in initialized data section.
10987
10988 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
10989
10990         Merge glibc and coreutils changes into gnulib, plus a few
10991         extra fixes.
10992         * lib/md5.c: Use #error rather than a string.
10993         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
10994         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
10995         (__attribute__): Define to empty for non recent-GCC.
10996         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
10997         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
10998         Renamed from their non-__ counterparts, with new macros replacing
10999         them if not _LIBC.  Add __THROW attribute.
11000         (rol): Remove.
11001         (struct md5_ctx): Align buffer if using GCC.
11002         * lib/sha1.h (struct sha1_ctx): Likewise.
11003         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
11004         The old name was backwards.
11005         (NOTSWAP): Remove; not used.
11006         (rol): New macro, moved here from md5.h.
11007         (sha1_process_block): Remove a FIXME that doesn't make sense.
11008
11009 2005-09-12  Derek Price  <derek@ximbiot.com>
11010
11011         Return usable errors from canon-host.
11012         * lib/canon-host.h: New file.
11013         * lib/canon-host.c (canon_host): Wrap...
11014         (canon_host_r): ...this new function, which now relies exclusively on
11015         getaddrinfo.
11016         (ch_strerror): New function.
11017         (last_cherror): New global.
11018         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
11019         interface.
11020         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
11021         void *.
11022         (freeaddrinfo): Free ai->ai_canonname when set.
11023
11024 2005-09-12  Derek Price  <derek@ximbiot.com>
11025
11026         Make canon-host require getaddrinfo.
11027         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
11028         AC_LIBSOURCE canon-host.h.  Call...
11029         (gl_PREREQ_CANON_HOST): ...this new function, which requires
11030         gl_GETADDRINFO.
11031         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
11032
11033 2005-09-12  Derek Price  <derek@ximbiot.com>
11034
11035         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
11036         LGPL.
11037         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
11038
11039 2005-09-12  Derek Price  <derek@ximbiot.com>
11040
11041         * lib/gai_strerror.c: Include config.h when available.  Include
11042         getaddrinfo.h before other headers to test interface.
11043         Reported by Larry Jones <lawrence.jones@ugs.com>.
11044
11045 2005-09-12  Derek Price  <derek@ximbiot.com>
11046             Paul Eggert  <eggert@cs.ucla.edu>
11047
11048         * modules/glob (Files): Add glob-libc.h.
11049
11050 2005-09-12  Derek Price  <derek@ximbiot.com>
11051             Paul Eggert  <eggert@cs.ucla.edu>
11052
11053         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
11054         glob_.h, glob-libc.h.
11055         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
11056
11057 2005-09-12  Derek Price  <derek@ximbiot.com>
11058             Paul Eggert  <eggert@cs.ucla.edu>
11059
11060         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
11061         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
11062         protecting things that should be done only in gnulib contexts.
11063         * lib/glob_.h: New file, containing only the glob things needed for
11064         gnulib.
11065         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
11066         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
11067         (glob, globfree, glob_pattern_p): Now defined simply in terms of
11068         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
11069         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
11070         and to respect the namespace rules better.
11071
11072 2005-09-08  Simon Josefsson  <jas@extundo.com>
11073
11074         * modules/socklen: New file.
11075
11076 2005-09-08  Simon Josefsson  <jas@extundo.com>
11077
11078         * m4/socklen.m4: New file.
11079
11080 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
11081
11082         * modules/utimens (Files): Add m4/utimbuf.m4, since
11083         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
11084         Reported by Sergey Poznyakoff.
11085
11086 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
11087
11088         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
11089         definitions, since that's the preferred style in glibc.
11090         Fix a minor spacing issue, and update copyright notice to match
11091         glibc's.
11092
11093 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
11094
11095         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
11096
11097 2005-09-06  Simon Josefsson  <jas@extundo.com>
11098
11099         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
11100         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
11101
11102 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
11103
11104         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
11105         warning.
11106
11107 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
11108
11109         * config/srclist.txt: Add glibc bug 1302.
11110
11111 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
11112
11113         Change bitset word type from unsigned int to unsigned long int,
11114         as this has better performance on typical 64-bit hosts.
11115         Port bitset code to hosts with unusual word sizes.
11116         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
11117         (build_collating_symbol):
11118         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
11119         argument is a bitset.  This is merely a style issue, but it makes
11120         it clearer that an entire array is expected.
11121         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
11122         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
11123         Port to the case where bitset_word is not the same as unsigned int.
11124         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
11125         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
11126         Likewise.
11127         * lib/regexec.c (check_dst_limits_calc_pos_1,
11128         check_subexp_matching_top):
11129         (build_trtable, group_nodes_into_DFAstates):
11130         Likewise.
11131         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
11132         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
11133         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
11134         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
11135         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
11136         * lib/regcomp.c (optimize_subexps, lower_subexp):
11137         Work even if bitset_word has holes in its bitwise representation.
11138         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
11139         * lib/regexec.c (check_dst_limits_calc_pos_1,
11140         check_subexp_matching_top):
11141         Likewise.
11142         * lib/regex_internal.c (re_string_reconstruct):
11143         Don't assume UCHAR_MAX == 255.
11144         * lib/regex_internal.h (bitset_set_all): Likewise.
11145         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
11146         All uses changed.
11147         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
11148         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
11149         All uses changed.
11150         (BITSET_WORD_MAX): New macro.
11151         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
11152         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
11153         (bitset_empty, bitset_copy):
11154         Prefer sizeof (bitset) to multiplying it out ourselves.
11155         (bitset_not_merge): Remove; unused.
11156         (bitset_contain): Return bool, not unsigned int with one bit on.
11157         All callers changed.
11158         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
11159         alignment than re_node_set; do this by defining a new internal
11160         type struct dests_alloc and using it to allocate memory.
11161
11162 2005-09-05  Bruno Haible  <bruno@clisp.org>
11163
11164         * gnulib-tool (func_import): Fix comparison in handling of symbolic
11165         links.
11166
11167 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
11168
11169         * modules/size_max (Makefile.am): Add size_max.h
11170
11171 2005-09-04  Derek Price  <derek@ximbiot.com>
11172
11173         * gnulib-tool (func_import): Fix reversed $symbolic logic.
11174
11175 2005-09-03  Simon Josefsson  <jas@extundo.com>
11176
11177         * gnulib-tool: Fix typo.
11178
11179 2005-09-03  Simon Josefsson  <jas@extundo.com>
11180
11181         * config/srclist.txt: Add glibc bug 1293.
11182
11183 2005-09-03  Derek Price  <derek@ximbiot.com>
11184
11185         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
11186         From Larry Jones <lawrence.jones@ugs.com>.
11187
11188 2005-09-02  Simon Josefsson  <jas@extundo.com>
11189
11190         * modules/socklen: New file.
11191
11192 2005-09-02  Simon Josefsson  <jas@extundo.com>
11193
11194         * modules/havelib: New module.
11195
11196         * modules/gettext, modules/iconv, modules/lock, modules/readline:
11197         Use havelib.
11198
11199 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
11200
11201         Check for arithmetic overflow when calculating sizes, to prevent
11202         some buffer-overflow issues.  These patches are conservative, in the
11203         sense that when I couldn't determine whether an overflow was possible,
11204         I inserted a run-time check.
11205         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
11206         macros.
11207         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
11208         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
11209         (re_xnrealloc, re_x2nrealloc): New inline functions.
11210         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
11211         parse_bracket_exp):
11212         (build_equiv_class, build_charclass): Check for arithmetic overflow
11213         in size expression calculations.
11214         * lib/regex_internal.c (re_string_realloc_buffers):
11215         (build_wcs_upper_buffer, re_node_set_add_intersect):
11216         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
11217         (re_dfa_add_node, register_state): Likewise.
11218         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
11219         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
11220         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
11221         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
11222
11223 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
11224
11225         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
11226         m4/ulonglong.m4.  Problem reported by Martin Lambers.
11227
11228 2005-09-02  Bruno Haible  <bruno@clisp.org>
11229
11230         Support for lib vs. lib64 distinction on biarch platforms.
11231         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
11232         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
11233         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
11234
11235 2005-09-02  Bruno Haible  <bruno@clisp.org>
11236
11237         * gnulib-tool (import): In the other first-use case, provide defaults
11238         as well.
11239
11240 2005-09-02  Bruno Haible  <bruno@clisp.org>
11241
11242         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
11243         patches not yet found in the latest gettext release.
11244
11245 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
11246
11247         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
11248         to avoid a collision with bits/local_lim.h in glibc.
11249         All uses changed.  Problem reported by Dmitry V. Levin in
11250         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
11251
11252         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
11253         bugs in int versus size_t comparisons.
11254         (re_string_context_at): Fix bug where the code assumed that
11255         Idx is signed.
11256
11257         Use bool where appropriate.
11258         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
11259         All callers changed.
11260         (calc_eclosure_iter): Likewise, for ROOT arg.
11261         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
11262         (build_charclass_op): Likewise, for NON_MATCH arg.
11263         * lib/regex_internal.c (re_string_allocate, re_string_construct):
11264         (re_string_construct_common): Likewise, for ICASE arg.
11265         * lib/regexec.c (re_search_2_stub, re_search_stub):
11266         Likewise, for RET_LEN arg.
11267         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
11268         (set_regs): Likewise, for FL_BACKTRACK arg.
11269         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
11270         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
11271         (calc_eclosure_iter, parse_bracket_exp):
11272         Use bool for internal variables that are booleans.
11273         * lib/regexec.c (re_search_internal, check_matching,
11274         proceed_next_node):
11275         (set_regs, build_sifted_states, sift_states_bkref):
11276         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
11277         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
11278         (find_collation_sequence_value):
11279         Likewise.
11280         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
11281         (re_node_set_compare):
11282         Return bool, not int. All callers changed.
11283         * lib/regexec.c (check_halt_node_context, check_dst_limits):
11284         (build_trtable, check_node_accept): Likewise.
11285         * lib/regex_internal.h: Include stdbool.h.
11286
11287         Fix bugs uncovered when converting to bool.
11288         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
11289         failure instead of charging ahead blindly.
11290         * lib/regex_internal.c (register_state): Likewise.
11291         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
11292         for freeing internal storage.
11293         (group_nodes_into_DFA_states): Use unsigned int, not int, for
11294         bitset pieces used as boolean, to avoid undefined behavior
11295         on hosts that do int overflow checking.
11296
11297 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
11298
11299         * config/srclist.txt: Add glibc bugs 1285-1287.
11300
11301 2005-09-01  Jim Meyering  <jim@meyering.net>
11302
11303         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
11304         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
11305         Require gl_STAT_MACROS, too.
11306
11307 2005-09-01  Bruno Haible  <bruno@clisp.org>
11308
11309         * gnulib-tool (import): In the first-use case, provide defaults.
11310
11311 2005-09-01  Bruno Haible  <bruno@clisp.org>
11312
11313         * gnulib-tool (func_import): Remove the .tmp files.
11314
11315 2005-09-01  Bruno Haible  <bruno@clisp.org>
11316
11317         * gnulib-tool (func_import): Fix handling of symbolic links.
11318
11319 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
11320
11321         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
11322         old glibc regex code mishandles strings longer than 2**31 bytes.
11323         This patch fixes this when the regex code is used in gnulib
11324         (i.e., outside glibc).
11325
11326         This patch should not affect the use of the regex code inside
11327         glibc.  No doubt this problem also needs to be handled for glibc
11328         as well, but the result will be an incompatible change to the
11329         glibc ABI, and the old ABI will have to be supported too.  That
11330         can be the the subject for another patch.
11331
11332         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
11333         governing whether the rest of this patch is active.  By default,
11334         the macro is disabled and the patch has no effect.
11335         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
11336         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
11337         (struct re_pattern_buffer, re_search, re_search_2, re_match):
11338         (re_match_2, re_set_registers): Use the new types.
11339         * lib/regex_internal.h (Idx, re_hashval_t): New types.
11340         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
11341         New macros.
11342         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
11343         (re_string_context_at, bin_tree_t, re_dfastate_t):
11344         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
11345         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
11346         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
11347         (re_string_char_size_at, re_string_wchar_at):
11348         (re_string_elem_size_at):
11349         Use the new types and macros to port to 64-bit hosts.
11350         Use unsigned types for internal values, so that the code
11351         mostly works even for arrays larger than SSIZE_MAX.
11352         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
11353         (search_duplicated_node, calc_eclosure_iter, fetch_number):
11354         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
11355         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
11356         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
11357         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
11358         (calc_inveclosure, parse_dup_op, build_range_exp):
11359         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
11360         (fetch_number, create_token_tree, mark_opt_subexp):
11361         Likewise.
11362         * lib/regex_internal.c (re_string_construct_common,
11363         create_ci_newstate):
11364         (create_cd_newstate, re_string_allocate, re_string_construct):
11365         (re_string_realloc_buffers, build_wcs_upper_buffer):
11366         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
11367         (re_string_reconstruct, re_string_peek_byte_case):
11368         (re_string_fetch_byte_case, re_string_context_at):
11369         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
11370         (re_node_set_init_copy, re_node_set_add_intersect):
11371         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
11372         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
11373         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
11374         (re_acquire_state, re_acquire_state_context, register_state):
11375         Likewise.
11376         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
11377         search_cur_bkref_entry):
11378         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
11379         (re_search_internal, re_search_2_stub, re_search_stub)
11380         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
11381         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
11382         (update_cur_sifted_state, check_dst_limits):
11383         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
11384         (check_subexp_limits, sift_states_bkref, merge_state_array):
11385         (check_subexp_matching_top, get_subexp, get_subexp_sub):
11386         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
11387         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
11388         (expand_bkref_cache, check_node_accept_bytes):
11389         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
11390         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
11391         (acquire_init_state_context, check_halt_node_context):
11392         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
11393         (sift_states_backward, clean_state_log_if_needed):
11394         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
11395         (find_recover_state, transit_state_sb, transit_state_mb):
11396         (transit_state_bkref, build_trtable, match_ctx_clean):
11397         Likewise.
11398         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
11399         to work around an assumption that REG_MISSING is negative.
11400
11401         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
11402         (seek_collating_symbol_entry) [defined _LIBC]:
11403         (lookup_collation_sequence_value) [defined _LIBC]:
11404         (build_range_exp, build_collating_symbol) [defined _LIBC]:
11405         Use prototypes rather than old-style function definitions.
11406         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
11407         (transit_state_sb) [0]:
11408         (find_collation_sequence_value) [defined _LIBC]: Likewise.
11409
11410         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
11411         rm_eo.
11412
11413         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
11414         (optimize_subexps, lower_subexp):
11415         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
11416         since the signed shift might overflow.  Use 1u<<31 instead.
11417         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
11418         Likewise.
11419         * lib/regexec.c (check_dst_limits_calc_pos_1,
11420         check_subexp_matching_top): Likewise.
11421
11422         * lib/regcomp.c (optimize_subexps, lower_subexp):
11423         Use CHAR_BIT rather than 8, for clarity.
11424         * lib/regexec.c (check_dst_limits_calc_pos_1):
11425         (check_subexp_matching_top): Likewise.
11426         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
11427         have to worry about portability issues when shifting it left.
11428         Remove no-longer-needed test for table_size > 0.
11429         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
11430         in a word, as the resulting behavior is undefined.
11431         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
11432         in one case, a <= should have been an <, and in another case the
11433         whole test was missing.
11434         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
11435         the standard name CHAR_BIT.
11436         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
11437         this is not true on one's complement and signed-magnitude hosts.
11438
11439         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
11440         next_last_offset.
11441         (struct re_dfa_t): Remove unused member states_alloc.
11442         * lib/regcomp.c (init_dfa): Don't initialize unused members.
11443
11444 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
11445
11446         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
11447         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
11448         and large-file glibc and in 32-bit large-file Solaris.
11449
11450 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
11451
11452         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
11453         lengths fit in regoff_t; this isn't true if regoff_t is the same
11454         width as size_t.
11455         * lib/regex.c (re_search_internal): 5th arg is LAST_START
11456         (= START + RANGE) instead of RANGE.  This avoids overflow
11457         problems when regoff_t is the same width as size_t.
11458         All callers changed.
11459         (re_search_2_stub): Check for overflow when adding the
11460         sizes of the two strings.
11461         (re_search_stub): Check for overflow when adding START
11462         to RANGE; if it occurs, substitute the extreme value.
11463
11464 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
11465
11466         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
11467
11468 2005-08-31  Jim Meyering  <jim@meyering.net>
11469
11470         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
11471         a pointer-to-const.
11472         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
11473         (register_state): Likewise.
11474         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
11475         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
11476         (group_nodes_into_DFAstates): Likewise.
11477
11478 2005-08-31  Jim Meyering  <jim@meyering.net>
11479
11480         * check-module: Add a FIXME comment.
11481
11482 2005-08-31  Eric Blake  <ebb9@byu.net>
11483
11484         * modules/unistd-safer (Files): Add unistd--.h.
11485         * modules/stdio-safer (Files): Add stdio--.h.
11486
11487 2005-08-31  Derek Price  <derek@ximbiot.com>
11488
11489         * lib/getdelim.c (getdelim): Return EOF on EOF.
11490         Reported by Larry Jones <lawrence.jones@ugs.com>.
11491
11492 2005-08-31  Bruno Haible  <bruno@clisp.org>
11493
11494         Avoid unnecessary diffs in the generated lib/Makefile.am.
11495         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
11496         the generated files.
11497         (func_import): Don't set cmd.
11498
11499 2005-08-31  Bruno Haible  <bruno@clisp.org>
11500
11501         * lib/strstr.c: Include <stddef.h>, for NULL.
11502         * lib/strcasestr.c: Likewise.
11503         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
11504
11505 2005-08-31  Bruno Haible  <bruno@clisp.org>
11506
11507         * gnulib-tool: New option --macro-prefix.
11508         (func_import): Use macro_prefix.
11509         (import): Handle option --macro-prefix.
11510
11511 2005-08-31  Bruno Haible  <bruno@clisp.org>
11512
11513         * gnulib-tool (import): Rename most ac_* variables to cached_*.
11514         Also use new variables cached_lgpl, cached_libtool.
11515
11516 2005-08-31  Bruno Haible  <bruno@clisp.org>
11517
11518         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
11519         always instantiating them.
11520
11521 2005-08-31  Bruno Haible  <bruno@clisp.org>
11522
11523         * gnulib-tool (func_import): Read the previous cached settings
11524         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
11525         earlier added by gnulib but are now dropped. Warn when a gnulib file
11526         overwrites a non-gnulib file.
11527
11528 2005-08-31  Bruno Haible  <bruno@clisp.org>
11529
11530         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
11531         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
11532         projects that don't keep autogenerated files in CVS. Put into
11533         actioncmd only the specified modules, not the transitive closure.
11534
11535 2005-08-31  Bruno Haible  <bruno@clisp.org>
11536
11537         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
11538         Create directories that shall be filled.
11539         (import): Don't look for gl_* macros in configure.ac. Recurse across
11540         all directories containing a gnulib-cache.m4 files, if meaningful.
11541
11542 2005-08-31  Bruno Haible  <bruno@clisp.org>
11543
11544         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
11545         (import): Set seen_libtool when we see gl_LIBTOOL.
11546
11547 2005-08-31  Bruno Haible  <bruno@clisp.org>
11548
11549         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
11550         declaration macro definitions from generated gnulib.m4.
11551
11552 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
11553
11554         * lib/iconvme.h: Add prototype for iconv_alloc.
11555
11556 2005-08-29  Simon Josefsson  <jas@extundo.com>
11557
11558         * lib/iconvme.c: Fix errno.
11559
11560 2005-08-29  Bruno Haible  <bruno@clisp.org>
11561
11562         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
11563         that it works when the directory contains spaces.
11564
11565 2005-08-29  Bruno Haible  <bruno@clisp.org>
11566
11567         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
11568
11569 2005-08-29  Bruno Haible  <bruno@clisp.org>
11570
11571         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
11572         Emit more advice.
11573
11574 2005-08-29  Bruno Haible  <bruno@clisp.org>
11575         and Stepan Kasal  <kasal@ucw.cz>
11576
11577         * check-module: If more parameters are given, check each of them
11578         separately; add more exceptions, as noted by Jim Meyering.
11579         (check_module): New procedure.
11580         (%exempt_header): Now contains all exceptions.
11581
11582 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
11583
11584         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
11585
11586 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
11587
11588         * lib/iconvme.c: Split iconv_string into iconv_alloc.
11589
11590 2005-08-28  Bruno Haible  <bruno@clisp.org>
11591
11592         * m4/gnulib-tool.m4: New file.
11593
11594 2005-08-27  Jim Meyering  <jim@meyering.net>
11595
11596         * modules/unistd-safer (Files): Add pipe-safer.c.
11597         * modules/fcntl-safer (Files): Add creat-safer.c.
11598
11599 2005-08-27  Jim Meyering  <jim@meyering.net>
11600
11601         * m4/stdlib-safer.m4: New file.  From coreutils.
11602         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
11603         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
11604         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
11605         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
11606         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
11607
11608 2005-08-27  Jim Meyering  <jim@meyering.net>
11609
11610         * lib/fopen-safer.c: Merge minor changes from coreutils.
11611         * lib/dup-safer.c: Likewise.
11612         * lib/fd-safer.c: Likewise.
11613
11614         Merge from coreutils.
11615         * lib/stdio--.h: New file.
11616         * lib/stdlib--.h: New file.
11617         * lib/mkstemp-safer.c: New file.
11618
11619         GNU tar needs these.
11620         * lib/pipe-safer.c: New file.
11621         * lib/creat-safer.c: New file.
11622         * lib/fcntl--.h (creat): Define to creat_safer.
11623         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
11624         * lib/unistd--.h (pipe): Define to pipe_safer.
11625         * lib/unistd-safer.h: Declare pipe_safer.
11626
11627 2005-08-26  Simon Josefsson  <jas@extundo.com>
11628
11629         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
11630         Haible <bruno@clisp.org>.
11631
11632 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
11633
11634         * lib/regex_internal.h: Remove all references to
11635         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
11636         or better.
11637         (bitset_not, bitset_merge, bitset_not_merge):
11638         (bitset_mask, re_string_allocate, re_string_construct):
11639         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
11640         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
11641         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
11642         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
11643         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
11644         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
11645         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
11646         (re_acquire_state_context):
11647         Remove unnecessary forward decls.
11648         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
11649         Put __attribute at function definition,
11650         now that the function decl has been removed.
11651         * lib/regex_internal.c (re_string_peek_byte_case):
11652         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
11653         Likewise.
11654
11655 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
11656
11657         * m4/regex.m4: Add AC_PREREQ(2.50).
11658         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
11659
11660 2005-08-25  Simon Josefsson  <jas@extundo.com>
11661
11662         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
11663         __fsetlocking.
11664
11665 2005-08-25  Simon Josefsson  <jas@extundo.com>
11666
11667         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
11668         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
11669         GLIBC specific code.
11670
11671 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
11672
11673         Make regex safe for g++.  This fixes one real bug (an "err"
11674         that should have been "*err").  g++ problem reported by
11675         Sam Steingold.
11676         * lib/regex_internal.h (re_calloc): New macro, consistent with
11677         re_malloc etc.  All callers of calloc changed to use re_calloc.
11678         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
11679         not int.  All callers changed.
11680         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
11681         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
11682         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
11683         (find_recover_state): Change "err" to "*err"; this fixes what
11684         appears to be a real bug.
11685         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
11686         versus int.
11687
11688 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
11689
11690         * modules/regex (Depends-on): Add malloc, since the code
11691         assumes that !malloc(0) means failure.
11692
11693 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
11694
11695         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
11696
11697         alloca modernization/simplification for regex.
11698         * lib/regex.c: Remove portability cruft for alloca.  This no longer
11699         needs to be at the start of the file, and can be moved into
11700         regex_internal.h and simplified.
11701         * lib/regex_internal.h: Include <alloca.h>.
11702         (__libc_use_alloca) [!defined _LIBC]: New macro.
11703         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
11704         now works outside glibc.
11705
11706 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
11707
11708         * config/srclist.txt: Add glibc bugs 1241, 1245.
11709
11710 2005-08-25  Jim Meyering  <jim@meyering.net>
11711
11712         * lib/open-safer.c: Include <config.h>.
11713         Otherwise, we'd lose LARGEFILE support in any file using
11714         e.g. "fcntl--.h"
11715
11716 2005-08-25  Bruno Haible  <bruno@clisp.org>
11717
11718         * m4/minmax.m4: Require autoconf 2.52.
11719         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
11720         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
11721         alternatives of translit over the alphabet.
11722         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
11723
11724 2005-08-24  Simon Josefsson  <jas@extundo.com>
11725
11726         * tests/test-getpass.c: New file.
11727
11728 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
11729
11730         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
11731         for GNU regex features.
11732
11733 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
11734
11735         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
11736         * lib/regex.h (regerror): Likewise.
11737
11738         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
11739         requires this.  (The code never needed it.)
11740
11741         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
11742         All uses of recently-renamed identifiers changed to use the new,
11743         POSIX-compliant names.  The code will build and run just fine
11744         without these changes, but it's better to eat our own dog food
11745         and use the standard-conforming names.
11746
11747         * lib/regex.h: Fix a multitude of POSIX name space violations.
11748         These changes have an effect only for programs that define
11749         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
11750         do not change anything for programs compiled in the normal way.
11751         Also, there is no effect on the ABI.
11752
11753         (_REGEX_SOURCE): New macro.
11754         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
11755         defined and _GNU_SOURCE is not; this fixes a name space violation.
11756
11757         Rename the following macros to obey POSIX requirements.
11758         The old names are still visible as macros if _REGEX_SOURCE is defined.
11759         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
11760         RE_BACKSLASH_ESCAPE_IN_LISTS.
11761         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
11762         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
11763         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
11764         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
11765         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
11766         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
11767         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
11768         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
11769         (REG_INTERVALS): renamed from RE_INTERVALS.
11770         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
11771         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
11772         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
11773         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
11774         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
11775         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
11776         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
11777         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
11778         RE_UNMATCHED_RIGHT_PAREN_ORD.
11779         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
11780         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
11781         (REG_DEBUG): renamed from RE_DEBUG.
11782         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
11783         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
11784         unusual, since we can't clash with the POSIX REG_ICASE.
11785         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
11786         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
11787         (REG_NO_SUB): renamed from RE_NO_SUB.
11788         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
11789         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
11790         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
11791         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
11792         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
11793         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
11794         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
11795         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
11796         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
11797         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
11798         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
11799         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
11800         RE_SYNTAX_POSIX_MINIMAL_BASIC.
11801         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
11802         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
11803         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
11804         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
11805         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
11806         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
11807         (REG_FIXED): Renamed from REGS_FIXED.
11808         (REG_NREGS): Renamed from RE_NREGS.
11809
11810         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
11811         of other REG_* macros, since POSIX says the user is allowed to
11812         #undef these macros selectively.
11813
11814         (reg_errcode_t): Update comment stating what other tables need
11815         to be consistent.
11816
11817         Rename the following enum values to obey POSIX requirements.
11818         The old names are still visible as macros.
11819         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
11820         is not defined, since GNU is supposed to be a superset of POSIX as
11821         much as possible, and since we want reg_errcode_t to be a signed
11822         type for implementation consistency.
11823         (_REG_NOERROR): Renamed from REG_NOERROR.
11824         (_REG_NOMATCH): Renamed from REG_NOMATCH.
11825         (_REG_BADPAT): Renamed from REG_BADPAT.
11826         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
11827         (_REG_ECTYPE): Renamed from REG_ECTYPE.
11828         (_REG_EESCAPE): Renamed from REG_EESCAPE.
11829         (_REG_ESUBREG): Renamed from REG_ESUBREG.
11830         (_REG_EBRACK): Renamed from REG_EBRACK.
11831         (_REG_EPAREN): Renamed from REG_EPAREN.
11832         (_REG_EBRACE): Renamed from REG_EBRACE.
11833         (_REG_BADBR): Renamed from REG_BADBR.
11834         (_REG_ERANGE): Renamed from REG_ERANGE.
11835         (_REG_ESPACE): Renamed from REG_ESPACE.
11836         (_REG_BADRPT): Renamed from REG_BADRPT.
11837         (_REG_EEND): Renamed from REG_EEND.
11838         (_REG_ESIZE): Renamed from REG_ESIZE.
11839         (_REG_ERPAREN): Renamed from REG_ERPAREN.
11840         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
11841         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
11842         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
11843         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
11844
11845         (_REG_RE_NAME, _REG_RM_NAME): New macros.
11846         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
11847         changed.  But support the old name if the new one is not defined
11848         and if _REGEX_SOURCE.
11849
11850         Change the following member names in struct re_pattern_buffer.
11851         The old names are still supported if !_REGEX_SOURCE.
11852         The new names are always supported, regardless of _REGEX_SOURCE.
11853         (re_buffer): Renamed from buffer.
11854         (re_allocated): Renamed from allocated.
11855         (re_used): Renamed from used.
11856         (re_syntax): Renamed from syntax.
11857         (re_fastmap): Renamed from fastmap.
11858         (re_translate): Renamed from translate.
11859         (re_can_be_null): Renamed from can_be_null.
11860         (re_regs_allocated): Renamed from regs_allocated.
11861         (re_fastmap_accurate): Renamed from fastmap_accurate.
11862         (re_no_sub): Renamed from no_sub.
11863         (re_not_bol): Renamed from not_bol.
11864         (re_not_eol): Renamed from not_eol.
11865         (re_newline_anchor): Renamed from newline_anchor.
11866
11867         Change the following member names in struct re_registers.
11868         The old names are still supported if !_REGEX_SOURCE.
11869         The new names are always supported, regardless of _REGEX_SOURCE.
11870         (rm_num_regs): Renamed from num_regs.
11871         (rm_start): Renamed from start.
11872         (rm_end): Renamed from end.
11873
11874         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
11875         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
11876         Prepend __ to parameter names.
11877
11878         Undo yesterday's changes.
11879
11880 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
11881
11882         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
11883         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
11884         lib/regex.c.
11885
11886 2005-08-24  Jim Meyering  <jim@meyering.net>
11887
11888         Sync from coreutils.
11889         * m4/fcntl-safer.m4: New file.
11890
11891         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
11892         and object files for this module.
11893
11894 2005-08-24  Jim Meyering  <jim@meyering.net>
11895
11896         Sync from coreutils.
11897         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
11898
11899 2005-08-24  Jim Meyering  <jim@meyering.net>
11900
11901         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
11902         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
11903
11904 2005-08-24  Jim Meyering  <jim@meyering.net>
11905
11906         * modules/fcntl-safer: New module.
11907         * modules/fts (Depends-on): Add fcntl-safer.
11908         * MODULES.html.sh (File descriptor based Input/Output):
11909         Add fcntl-safer.
11910
11911 2005-08-24  Bruno Haible  <bruno@clisp.org>
11912
11913         Support for unit test modules.
11914         * modules/README: Mention tests modules.
11915         * modules/TEMPLATE-TESTS: New file.
11916         * gnulib-tool: New options --extract-tests-module, --with-tests and
11917         --tests-base (unused for the moment).
11918         (testsbase, inctests): New variables.
11919         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
11920         (func_verify_module): Exclude TEMPLATE-TESTS.
11921         (func_verify_nontests_module, func_verify_tests_module): New functions.
11922         (func_get_dependencies): Add implicit dependency for tests modules.
11923         (func_get_tests_module): New function.
11924         (func_modules_transitive_closure): When --with-tests was specified,
11925         include the unit tests as well, unless explicitly avoided.
11926         (func_emit_lib_Makefile_am): Ignore the tests modules here.
11927         (func_emit_tests_Makefile_am): New function.
11928         (func_create_testdir): When --with-tests was specified, emit a
11929         tests/ directory.
11930         * MODULES.html.sh (Future developments): Update.
11931
11932 2005-08-24  Bruno Haible  <bruno@clisp.org>
11933
11934         * modules/tls-tests: New file.
11935         * tests/test-tls.c: New file, from GNU gettext.
11936
11937 2005-08-24  Bruno Haible  <bruno@clisp.org>
11938
11939         * modules/lock-tests: New file.
11940         * tests/test-lock.c: New file, from GNU gettext.
11941
11942 2005-08-24  Bruno Haible  <bruno@clisp.org>
11943
11944         * lib/lock.h: Add multiple inclusion guard.
11945         * lib/tls.h: Add multiple inclusion guard.
11946
11947 2005-08-24  Bruno Haible  <bruno@clisp.org>
11948
11949         * gnulib-tool: Add support for the --aux-dir option to
11950         --create-testdir, --create-megatestdir, --test, --megatest.
11951         (func_create_testdir, func_create_megatestdir): Optionally emit a
11952         AC_CONFIG_AUX_DIR directive.
11953         (create-testdir, create-megatestdir, test, megatest): Provide a
11954         default value for $auxdir.
11955
11956 2005-08-24  Bruno Haible  <bruno@clisp.org>
11957
11958         * gnulib-tool (import): Use compound statement instead of subshell
11959         where possible.
11960
11961 2005-08-24  Bruno Haible  <bruno@clisp.org>
11962
11963         * gnulib-tool (import): Change --aux-dir default to "build-aux".
11964
11965 2005-08-24  Bruno Haible  <bruno@clisp.org>
11966
11967         * gnulib-tool (func_version): Update.
11968
11969 2005-08-24  Bruno Haible  <bruno@clisp.org>
11970
11971         * gnulib-tool (func_import, func_create_testdir,
11972         func_create_megatestdir): Quote all autoconf macro arguments.
11973
11974 2005-08-24  Bruno Haible  <bruno@clisp.org>
11975
11976         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
11977         option --force, because --force causes the aclocal.m4 of each
11978         subdirectory to be newer than the corresponding config.h.in.
11979
11980 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
11981
11982         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
11983         All contents moved to gl_REGEX.
11984         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
11985         assume that it does.
11986
11987 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
11988
11989         * lib/regex.h (REG_NOSYS)
11990         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
11991         Define, since POSIX requires it as of 2001.
11992         (_REG_ENOSYS)
11993         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
11994         New private symbol, used to keep the enum signed in all cases.
11995         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
11996         Youngman in
11997         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
11998
11999         * lib/regex_internal.c (re_string_skip_chars, register_state):
12000         (calc_state_hash):
12001         Remove forward decls; no longer needed now that we use prototypes.
12002         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
12003         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
12004         (clean_state_log_if_needed): Likewise.
12005
12006 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
12007
12008         * config/srclist.txt: Add glibc bugs 1231-1233.
12009
12010 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
12011
12012         Fix problems reported by Sam Steingold in
12013         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
12014         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
12015         assumed that reg_errcode_t is a signed type, which is not
12016         necessarily true if _XOPEN_SOURCE is not defined.
12017         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
12018         since some compilers warn about it otherwise.
12019
12020 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
12021
12022         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
12023         (init_word_char, create_initial_state, duplicate_node_closure):
12024         (fetch_token, peek_token_bracket, build_range_exp):
12025         (build_collating_symbol): Remove forward decls; no longer needed
12026         now that we use prototypes.
12027
12028         * lib/regcomp.c:
12029         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
12030         (re_compile_fastmap_iter, regcomp, regerror, regfree):
12031         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
12032         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
12033         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
12034         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
12035         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
12036         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
12037         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
12038         (build_range_exp, build_collating_symbol, parse_bracket_exp):
12039         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
12040         (build_charclass, build_charclass_op, fetch_number, create_tree):
12041         (create_token_tree, mark_opt_subexp, duplicate_tree):
12042         Use prototypes rather than old-style definitions.
12043
12044         * lib/regex_internal.c:
12045         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
12046         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
12047         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
12048         (re_string_reconstruct, re_string_peek_byte_case):
12049         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
12050         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
12051         (re_node_set_init_copy, re_node_set_add_intersect):
12052         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
12053         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
12054         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
12055         (re_acquire_state, re_acquire_state_context, register_state):
12056         (create_ci_newstate, create_cd_newstate, free_state):
12057         Likewise.
12058         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
12059         re_search_2):
12060         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
12061         (re_search_internal, prune_impossible_nodes):
12062         (acquire_init_state_context, check_matching, static):
12063         (check_halt_node_context, check_halt_state_context, proceed_next_node):
12064         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
12065         (update_regs, sift_states_backward, build_sifted_states):
12066         (clean_state_log_if_needed, merge_state_array):
12067         (update_cur_sifted_state, add_epsilon_src_nodes):
12068         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
12069         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
12070         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
12071         (find_recover_state, check_subexp_matching_top, transit_state_mb):
12072         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
12073         (check_arrival, check_arrival_add_next_nodes):
12074         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
12075         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
12076         (check_node_accept_bytes, check_node_accept, extend_buffers):
12077         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
12078         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
12079         (sift_ctx_init):
12080         Likewise.
12081
12082         * lib/regex_internal.h:
12083         (re_string_allocate, re_string_construct, re_string_reconstruct):
12084         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
12085         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
12086         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
12087         (re_string_context_at, re_string_peek_byte_case):
12088         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
12089         is defined, since we now use prototypes always.
12090
12091         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
12092         C89 or better.  All uses removed.
12093
12094 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
12095
12096         * config/srclist.txt: Add glibc bugs 1220-1227.
12097
12098 2005-08-20  Jim Meyering  <jim@meyering.net>
12099
12100         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
12101         of unused local, dfa.
12102
12103 2005-08-20  Bruno Haible  <bruno@clisp.org>
12104
12105         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
12106
12107 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
12108
12109         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
12110         (re_node_set_insert_last, re_dfa_add_node):
12111         Rename local variables to avoid GCC shadowing warnings.
12112
12113 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
12114
12115         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
12116         [defined lint]: Suppress bogus uninitialized-variable warnings.
12117
12118         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
12119         and let the caller return REG_ESPACE if out of space.  This
12120         removes an uninitialied-variable warning with GCC 4.0.1, and also
12121         avoids taking the address of a local variable.  All callers
12122         changed.
12123
12124 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
12125
12126         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
12127         $LIBCSRC/posix/regexec.c.
12128         Add glibc bug 1217 for regcomp.c.
12129
12130 2005-08-19  Jim Meyering  <jim@meyering.net>
12131
12132         * lib/regexec.c (proceed_next_node): Redo local variables to
12133         avoid GCC shadowing warnings.
12134
12135 2005-08-18  Bruno Haible  <bruno@clisp.org>
12136
12137         * lib/strstr.c (strstr): Fix return value in multibyte case.
12138         * lib/strcasestr.c (strcasestr): Likewise.
12139
12140 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
12141
12142         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
12143
12144 2005-08-17  Jim Meyering  <jim@meyering.net>
12145
12146         Make the %s format (seconds since the epoch) work for a negative
12147         number and when used with a zero-padded field width, e.g. %015s.
12148
12149         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
12150         label so that it precedes the code to set `digits'.  Otherwise,
12151         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
12152         print `00-22'.  Now, it prints `-0022', as it should.
12153
12154 2005-08-17  Bruno Haible  <bruno@clisp.org>
12155
12156         * modules/strstr (Files): Add m4/mbrtowc.m4.
12157         (Depends-on): Add mbuiter.
12158
12159 2005-08-17  Bruno Haible  <bruno@clisp.org>
12160
12161         * modules/strcasestr: New file.
12162         * MODULES.html.sh (String handling, based on ANSI C 89): Add
12163         strcasestr.
12164
12165 2005-08-17  Bruno Haible  <bruno@clisp.org>
12166
12167         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
12168
12169 2005-08-17  Bruno Haible  <bruno@clisp.org>
12170
12171         * modules/mbuiter: New file.
12172         * MODULES.html.sh (Extended multibyte and wide character utilities):
12173         Add mbuiter.
12174
12175 2005-08-17  Bruno Haible  <bruno@clisp.org>
12176
12177         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
12178         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
12179
12180 2005-08-17  Bruno Haible  <bruno@clisp.org>
12181
12182         * m4/strcasestr.m4: New file.
12183
12184 2005-08-17  Bruno Haible  <bruno@clisp.org>
12185
12186         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
12187         * lib/strstr.c: Completely rewritten, with multibyte locale support.
12188
12189 2005-08-17  Bruno Haible  <bruno@clisp.org>
12190
12191         * lib/strcasestr.h: New file.
12192         * lib/strcasestr.c: New file.
12193
12194 2005-08-17  Bruno Haible  <bruno@clisp.org>
12195
12196         * lib/strcasecmp.c: Use mbuiter.h.
12197
12198 2005-08-17  Bruno Haible  <bruno@clisp.org>
12199
12200         * lib/mbuiter.h: New file.
12201
12202 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
12203
12204         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
12205         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
12206         and gl_GETOPT are both invoked via different paths (as happens
12207         with GNU tar CVS because it uses both argp and getopt), the former
12208         wins.
12209
12210 2005-08-16  Bruno Haible  <bruno@clisp.org>
12211
12212         * modules/tls: New file.
12213         * MODULES.html.sh (Multithreading): Add tls.
12214
12215 2005-08-16  Bruno Haible  <bruno@clisp.org>
12216
12217         * modules/strnlen1: New file.
12218         * MODULES.html.sh (String handling): Add strnlen1.
12219
12220 2005-08-16  Bruno Haible  <bruno@clisp.org>
12221
12222         * modules/strcase (Files): Add m4/mbrtowc.m4.
12223         (Depends-on): Add strnlen1, mbchar.
12224
12225 2005-08-16  Bruno Haible  <bruno@clisp.org>
12226
12227         * modules/mbiter: New file.
12228         * MODULES.html.sh (Extended multibyte and wide character utilities):
12229         Add mbiter.
12230
12231 2005-08-16  Bruno Haible  <bruno@clisp.org>
12232
12233         * modules/mbfile: New file.
12234         * MODULES.html.sh (Extended multibyte and wide character utilities):
12235         Add mbfile.
12236
12237 2005-08-16  Bruno Haible  <bruno@clisp.org>
12238
12239         * modules/mbchar: New file.
12240         * MODULES.html.sh (Extended multibyte and wide character utilities):
12241         New section.
12242
12243 2005-08-16  Bruno Haible  <bruno@clisp.org>
12244
12245         * m4/tls.m4: New file, from GNU gettext.
12246
12247 2005-08-16  Bruno Haible  <bruno@clisp.org>
12248
12249         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
12250         always.
12251         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
12252
12253 2005-08-16  Bruno Haible  <bruno@clisp.org>
12254
12255         * m4/mbiter.m4: New file.
12256
12257 2005-08-16  Bruno Haible  <bruno@clisp.org>
12258
12259         * m4/mbfile.m4: New file.
12260
12261 2005-08-16  Bruno Haible  <bruno@clisp.org>
12262
12263         * m4/mbchar.m4: New file.
12264
12265 2005-08-16  Bruno Haible  <bruno@clisp.org>
12266
12267         * lib/tls.h: New file, from GNU gettext.
12268         * lib/tls.c: New file, from GNU gettext.
12269
12270 2005-08-16  Bruno Haible  <bruno@clisp.org>
12271
12272         * lib/strnlen1.h: New file.
12273         * lib/strnlen1.c: New file.
12274
12275 2005-08-16  Bruno Haible  <bruno@clisp.org>
12276
12277         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
12278         (mbi_init): Update.
12279         (mbi_avail, mbi_advance): Let the iteration end before the terminating
12280         NUL byte, not after it.
12281
12282 2005-08-16  Bruno Haible  <bruno@clisp.org>
12283
12284         * lib/strcase.h (strcasecmp): Add note in comments.
12285         * lib/strncasecmp.c: Use code from strcasecmp.c.
12286         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
12287         (strcasecmp): Work correctly in multibyte locales.
12288
12289 2005-08-16  Bruno Haible  <bruno@clisp.org>
12290
12291         * lib/mbiter.h: New file.
12292
12293 2005-08-16  Bruno Haible  <bruno@clisp.org>
12294
12295         * lib/mbfile.h: New file.
12296
12297 2005-08-16  Bruno Haible  <bruno@clisp.org>
12298
12299         * lib/mbchar.h: New file.
12300         * lib/mbchar.c: New file.
12301
12302 2005-08-16  Bruno Haible  <bruno@clisp.org>
12303
12304         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
12305         the valid ones. Makes the comparison operations transitive:
12306         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
12307         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
12308
12309 2005-08-15  Simon Josefsson  <jas@extundo.com>
12310
12311         * modules/ssize_t (License): Change to 'unlimited'.
12312
12313         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
12314
12315 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
12316
12317         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
12318         Add comments for each pending glibc patch.
12319
12320 2005-08-15  Bruno Haible  <bruno@clisp.org>
12321
12322         * lib/regex.h (__restrict_arr): Don't define to __restrict if
12323         __cplusplus is defined.
12324
12325 2005-08-14  Jim Meyering  <jim@meyering.net>
12326
12327         Sync from coreutils.
12328
12329         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
12330         Use the hash-table-based cycle-detection code not just when
12331         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
12332         Reported by James Youngman in
12333         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
12334         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
12335         FTS_TIGHT_CYCLE_CHECK.
12336         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
12337         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
12338         once again.
12339         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
12340         * lib/fts.c (fd_safer): Remove decl.
12341         Include fcntl--.h rather than unistd-safer.h
12342         (fts_safe_changedir): Don't call fd_safer; no longer needed
12343         now that we include fcntl--.h.
12344
12345 2005-08-12  Simon Josefsson  <jas@extundo.com>
12346
12347         * modules/getndelim2: Use ssize_t module.
12348         * modules/getnline: Likewise.
12349         * modules/safe-read: Likewise.
12350         * modules/xreadlink: Likewise.
12351
12352         * modules/ssize_t: New file.
12353
12354 2005-08-12  Simon Josefsson  <jas@extundo.com>
12355
12356         * m4/readline.m4: Look for termcap, curses or ncurses if required.
12357
12358 2005-08-12  Simon Josefsson  <jas@extundo.com>
12359
12360         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
12361         ssize_t.
12362
12363 2005-08-12  Simon Josefsson  <jas@extundo.com>
12364
12365         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
12366         readline, getdelim and check_version.
12367         (Support for systems lacking ISO C 99: Sizes of integer types):
12368         Add size_max.
12369
12370 2005-08-12  Bruno Haible  <bruno@clisp.org>
12371
12372         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
12373
12374 2005-08-11  Simon Josefsson  <jas@extundo.com>
12375
12376         * modules/readline: New file.
12377
12378         * modules/strnlen (Files): Add strnlen.h.
12379
12380 2005-08-11  Simon Josefsson  <jas@extundo.com>
12381
12382         * m4/readline.m4: New file.
12383
12384 2005-08-11  Simon Josefsson  <jas@extundo.com>
12385
12386         * lib/readline.h, readline.c: New file.
12387
12388 2005-08-11  Simon Josefsson  <jas@extundo.com>
12389
12390         * doc/gnulib.texi (Initial import, Finishing touches): Mention
12391         gl_AVOID.
12392
12393 2005-08-11  Bruno Haible  <bruno@clisp.org>
12394
12395         * lib/strnlen.h (strnlen): Change parameter name to match comment.
12396
12397 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
12398
12399         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
12400
12401 2005-08-10  Simon Josefsson  <jas@extundo.com>
12402
12403         * tests/test-iconvme.c: New file.
12404
12405 2005-08-10  Simon Josefsson  <jas@extundo.com>
12406
12407         * m4/strnlen.m4: New file.
12408
12409         * m4/strndup.m4: Don't check for strnlen declaration, done in
12410         strnlen.m4.
12411
12412 2005-08-10  Simon Josefsson  <jas@extundo.com>
12413
12414         * lib/strndup.c: Use strnlen.h.
12415
12416         * lib/strnlen.h: New file.
12417
12418 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
12419
12420         * README: Typos.
12421
12422 2005-08-02  Simon Josefsson  <jas@extundo.com>
12423
12424         * modules/readline: New file.
12425
12426 2005-08-02  Simon Josefsson  <jas@extundo.com>
12427
12428         * modules/getdelim: New file.
12429
12430         * modules/getline: Rewrite, don't use getndelim2.
12431
12432 2005-08-02  Simon Josefsson  <jas@extundo.com>
12433
12434         * m4/getline.m4: Separate out getdelim stuff into separate module.
12435
12436         * m4/getdelim.m4: New file.
12437
12438 2005-08-02  Simon Josefsson  <jas@extundo.com>
12439
12440         * lib/getline.h, getline.c: Rewrite.
12441
12442         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
12443
12444 2005-07-31  Bruno Haible  <bruno@clisp.org>
12445
12446         * lib/lock.h (gl_lock_initializer): New macro.
12447         (gl_lock_define_initialized): Use it.
12448         (gl_rwlock_initializer): New macro.
12449         (gl_rwlock_define_initialized): Use it.
12450         (gl_recursive_lock_initializer): New macro.
12451         (gl_recursive_lock_define_initialized): Use it.
12452
12453 2005-07-30  Karl Berry  <karl@gnu.org>
12454
12455         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
12456         Report from Ben Pfaff, regarding getopt.
12457
12458 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
12459
12460         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
12461         normal way.
12462         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
12463         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
12464         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
12465         (gl_GETOPT): Use the new macros.  Most of the implementation
12466         is moved to the new macros.  This is for programs like Emacs
12467         that don't want all the functionality of gl_GETOPT.
12468
12469 2005-07-26  Bruno Haible  <bruno@clisp.org>
12470
12471         * m4/lock.m4: Update from GNU gettext.
12472
12473 2005-07-26  Bruno Haible  <bruno@clisp.org>
12474
12475         * lib/lock.h: Update from GNU gettext.
12476         * lib/lock.c: Update from GNU gettext.
12477
12478 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
12479
12480         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
12481         obsolescent AC_TRY_RUN.  Include the default includes files, for
12482         'exit'.
12483
12484 2005-07-24  Bruno Haible  <bruno@clisp.org>
12485
12486         * modules/visibility: New file.
12487         * MODULES.html.sh (Misc): Add visibility.
12488
12489 2005-07-24  Bruno Haible  <bruno@clisp.org>
12490
12491         * m4/visibility.m4: New file.
12492
12493 2005-07-24  Bruno Haible  <bruno@clisp.org>
12494
12495         * doc/visibility.texi: New file.
12496
12497 2005-07-22  Bruno Haible  <bruno@clisp.org>
12498
12499         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
12500         $(ALLOCA_H), redundant through BUILT_SOURCES.
12501         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
12502         redundant through BUILT_SOURCES.
12503         * modules/byteswap (Makefile.am): Remove explicit dependency on
12504         $(BYTESWAP_H), redundant through BUILT_SOURCES.
12505         * modules/fnmatch (Makefile.am): Remove explicit dependency on
12506         $(FNMATCH_H), redundant through BUILT_SOURCES.
12507         * modules/getopt (Makefile.am): Remove explicit dependency on
12508         $(GETOPT_H), redundant through BUILT_SOURCES.
12509         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
12510         redundant through BUILT_SOURCES.
12511         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
12512         redundant through BUILT_SOURCES.
12513         * modules/stdbool (Makefile.am): Remove explicit dependency on
12514         $(STDBOOL_H), redundant through BUILT_SOURCES.
12515         * modules/stdint (Makefile.am): Remove explicit dependency on
12516         $(STDINT_H), redundant through BUILT_SOURCES.
12517         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
12518         Remove explicit dependency on $(SYSEXITS_H).
12519         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
12520
12521 2005-07-18  Simon Josefsson  <jas@extundo.com>
12522
12523         * lib/check-version.c (check_version): Accept identical versions too.
12524
12525 2005-07-18  Bruno Haible  <bruno@clisp.org>
12526
12527         * modules/lock: New file.
12528         * MODULES.html.sh (Multithreading): New section.
12529
12530 2005-07-18  Bruno Haible  <bruno@clisp.org>
12531
12532         * m4/lock.m4: New file, from GNU gettext.
12533
12534 2005-07-18  Bruno Haible  <bruno@clisp.org>
12535
12536         * lib/lock.h: New file, from GNU gettext.
12537         * lib/lock.c: New file, from GNU gettext.
12538
12539 2005-07-18  Bruno Haible  <bruno@clisp.org>
12540
12541         * lib/lock.h (gl_once_t): New type.
12542         (gl_once_define, gl_once): New macros.
12543         * lib/lock.c (fresh_once): New variable.
12544         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
12545         functions.
12546
12547 2005-07-16  Simon Josefsson  <jas@extundo.com>
12548
12549         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
12550         workaround, suggested by Bruno.
12551
12552 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
12553
12554         * modules/xalloc (Depends-on): Add xalloc-die.
12555         * modules/xvasprintf (Depends-on): Add xalloc-die.
12556
12557 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
12558
12559         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
12560         with a minor change.
12561
12562 2005-07-15  Bruno Haible  <bruno@clisp.org>
12563
12564         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
12565         When using lib/poll.c, define poll as rpl_poll.
12566
12567 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
12568
12569         * modules/argp (Depends-on): Remove unlocked-io.
12570
12571 2005-07-14  Derek Price  <derek@ximbiot.com>
12572
12573         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
12574         for glob symlink bug.
12575
12576 2005-07-14  Bruno Haible  <bruno@clisp.org>
12577
12578         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
12579         Instead, test for *_unlocked function declarations directly.
12580
12581 2005-07-11  Simon Josefsson  <jas@extundo.com>
12582
12583         * modules/size_max: New file.
12584
12585         * modules/xsize: Depend on size_max module for size_max.m4.
12586
12587 2005-07-11  Simon Josefsson  <jas@extundo.com>
12588
12589         * lib/size_max.h: New file.
12590
12591 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
12592
12593         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
12594         copyright symbol and the year.
12595         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
12596         (version_etc_va): Use parameterized copyright notice.
12597         Reword to conform to the current GNU coding standards.
12598
12599 2005-07-11  Karl Berry  <karl@gnu.org>
12600
12601         * doc/gnulib.texi (Quoting): new node.
12602         (Initial import): more info, from Patrice.
12603
12604 2005-07-11  Bruno Haible  <bruno@clisp.org>
12605
12606         * gnulib-tool (func_usage): Document option --avoid.
12607         (Command line options): Handle --avoid.
12608         (func_acceptable): New function.
12609         (func_modules_transitive_closure): Use it.
12610
12611 2005-07-11  Bruno Haible  <bruno@clisp.org>
12612
12613         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
12614         Reported by Jim Meyering.
12615
12616 2005-07-10  Bruno Haible  <bruno@clisp.org>
12617
12618         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
12619         Needed when size_t is smaller than 'unsigned int'.
12620         Reported by Paul Eggert.
12621
12622 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
12623
12624         * modules/argp (Depends-on): Add unlocked-io
12625
12626 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
12627
12628         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
12629         block of defines.
12630
12631 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
12632
12633         * config/srclist.txt: Comment out regcomp.c, since we have a porting
12634         fix now.
12635
12636 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
12637         and Paul Eggert  <eggert@cs.ucla.edu>
12638
12639         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
12640         in wint_t, not wchar_t.  Remove now-unnecessary cast.
12641
12642 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
12643
12644         * modules/regex (Files): Add lib/regex_internal.c,
12645         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
12646         (Depends-on): Add extensions.
12647         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
12648
12649 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
12650
12651         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
12652         pathconf.
12653         * m4/same.m4 (gl_SAME): Likewise.
12654         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
12655
12656         * m4/regex.m4: Adjust to new libc regex implementation.
12657         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
12658         all the .c and .h parts of (the new) regex.
12659         Quote the m4 stuff better.
12660         Check for RE_ICASE bug of old gnulib.
12661         Check for REG_STARTEND of recent libc.
12662         Rename local variables from jm_* to gl_*.
12663         Quote operand of "test -f".
12664         Say "recent enough" version of libc, not "version 2".
12665         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
12666         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
12667         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
12668         Remove check for btowc, isascii.
12669         Require AM_LANGINFO_CODESET.
12670
12671 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
12672
12673         * lib/regex.c, regex.h: Sync from libc.
12674         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
12675         * lib/regexec.c:
12676         New files, synced from libc, except that regex_internal.h
12677         currently has a small porting fix.
12678
12679 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
12680
12681         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
12682         regex_internal.c, regexec.c.
12683         Add regex_internal.h too, but as a comment, since the libc version
12684         is currently broken in gnulib mode.
12685
12686 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
12687
12688         Support programs like Emacs that use gnulib but not gettext.
12689         * MODULES.html.sh (Internationalization functions): Add gettext-h.
12690         * modules/gettext-h: New file.
12691         * modules/gettext (Files): Remove lib/gettext.h.
12692         (Depends-on): Add gettext-h.
12693         (Makefile.am): Remove lib_SOURCES.
12694         * modules/argmatch, modules/c-stack, modules/closeout:
12695         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
12696         * modules/execute, modules/file-type, modules/getaddrinfo:
12697         * modules/getopt, modules/human, modules/javacomp:
12698         * modules/javaexec, modules/mkdir-p, modules/obstack:
12699         * modules/openat, modules/pagealign_alloc, modules/pipe:
12700         * modules/quotearg, modules/regex, modules/rpmatch:
12701         * modules/unicodeio, modules/userspec, modules/version-etc:
12702         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
12703         * modules/xsetenv:
12704         Depend on gettext-h, not gettext.
12705
12706 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
12707
12708         * gnulib-tool (func_import): Add support for 'public domain' license.
12709         * modules/alloca, modules/atexit, modules/memmove:
12710         Now public domain, not GPL.
12711         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
12712         * modules/realloc, modules/strerror, modules/strtod:
12713         Now LGPL, not GPL.
12714
12715 2005-07-05  Bruno Haible  <bruno@clisp.org>
12716
12717         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
12718         autoconf CVS. Needed for mingw.
12719
12720 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
12721
12722         Remove the dependency of the strftime module on the tzset module.
12723         * modules/strftime (Depends-on): Remove dependency on tzset.
12724
12725 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
12726
12727         Remove the dependency of the strftime module on the tzset module.
12728         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
12729         gl_FUNC_TZSET_CLOBBER.
12730
12731 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
12732
12733         Remove the dependency of the strftime module on the tzset module.
12734         * lib/strftime.c (my_strftime)
12735         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
12736         Copy the input structure, to work around some of the bug with
12737         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
12738         Solaris releases, you should also use the tzset module, but we won't
12739         require it as a dependency any more since we don't want LGPLed code
12740         to depend on GPLed code.
12741
12742 2005-07-02  Jim Meyering  <jim@meyering.net>
12743
12744         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
12745         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
12746         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
12747         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
12748
12749 2005-07-02  Jim Meyering  <jim@meyering.net>
12750
12751         * lib/backupfile.c (backup_args): Change a `0' to NULL.
12752
12753 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
12754
12755         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
12756         declares only 'struct timespec;' (!).
12757
12758 2005-07-01  Jim Meyering  <jim@meyering.net>
12759
12760         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
12761         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
12762         * lib/save-cwd.c, tempname.c:
12763         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
12764         and don't include <sys/file.h>).
12765
12766 2005-06-29  Jim Meyering  <jim@meyering.net>
12767
12768         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
12769         type name.  Use the variable name instead.
12770         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
12771         Likewise.
12772
12773 2005-06-28  Simon Josefsson  <jas@extundo.com>
12774
12775         * modules/check-version (Files): Add check-version.m4.
12776
12777 2005-06-28  Simon Josefsson  <jas@extundo.com>
12778
12779         * m4/check-version.m4: New file, suggested by Jim Meyering
12780         <jim@meyering.net>.
12781
12782 2005-06-28  Simon Josefsson  <jas@extundo.com>
12783
12784         * lib/check-version.h, lib/check-version.c: New files.
12785
12786 2005-06-28  Simon Josefsson  <jas@extundo.com>
12787
12788         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
12789         collision with global variable.  Better indentation.  Don't
12790         increment buffer pointer beyond buffer end.  Based on comments
12791         from Paul Eggert <eggert@cs.ucla.edu>.
12792
12793         * lib/base64.h: Indent.
12794
12795 2005-06-28  Simon Josefsson  <jas@extundo.com>
12796
12797         * doc/gnulib.texi (Library version handling): New section.
12798
12799 2005-06-28  Jim Meyering  <jim@meyering.net>
12800
12801         * check-module (find_included_lib_files): Hard-code another
12802         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
12803         but modules/fts-lgpl (correctly) does not list those files.
12804
12805         * modules/canonicalize (Files): Add lib/pathmax.h.
12806
12807 2005-06-25  Simon Josefsson  <jas@extundo.com>
12808
12809         * modules/check-version: New file.
12810
12811 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
12812
12813         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
12814         initializer of struct addrinfo, as an indication that we don't
12815         care how many members the structure has.
12816
12817 2005-06-24  Derek Price  <derek@ximbiot.com>
12818         and Bruno Haible  <bruno@clisp.org>
12819
12820         Remove stat module & update lstat.
12821         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
12822         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
12823         * m4/stat.m4: Remove this file.
12824
12825 2005-06-24  Derek Price  <derek@ximbiot.com>
12826         and Bruno Haible  <bruno@clisp.org>
12827
12828         Remove stat module & update lstat.
12829         * lib/stat.c: Remove this file...
12830         (slash_aware_lstat): ...moving this content and its support...
12831         * lib/lstat.c (rpl_lstat): ...into here.
12832         * lib/lstat.h: New file.
12833
12834 2005-06-24  Derek Price  <derek@ximbiot.com>
12835         and Bruno Haible  <bruno@clisp.org>
12836
12837         Remove stat module & update lstat.
12838         * config/srclist.txt (libc sources): Remove stat.
12839
12840 2005-06-24  Derek Price  <derek@ximbiot.com>
12841         and Bruno Haible  <bruno@clisp.org>
12842
12843         Remove stat module & update lstat.
12844         * MODULES.html.sh (stat): Remove.
12845         * MODULES.html: Regenerated.
12846         * modules/lstat (Description): Correct function name.
12847         (Files): Add "lstat.h".
12848         (Depends-on): Remove stat, add xalloc, stat-macros.
12849         * modules/stat: Remove this file.
12850         (Include): Add "lstat.h", remove <sys/stat.h>.
12851
12852 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
12853
12854         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
12855         (ranged_convert): Don't save conversion in a temporary struct.
12856         This causes a warning with GCC 4.0.0, and anyway in the typical
12857         case it's not worth the extra 100 bytes or so of code.
12858         (ranged_convert, __mktime_internal): When calling a function via a
12859         pointer P, use P () rather than (*P) (), as we now assume C89 or
12860         better.
12861
12862 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
12863
12864         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
12865         "who -r" failed to give output.  Problem reported by Tim Waugh.
12866
12867         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
12868         (xcalloc): Use it to avoid needless tests.
12869         Problem reported by Jim Meyering.
12870
12871 2005-06-20  Derek Price  <derek@ximbiot.com>
12872
12873         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
12874         unnecessary for Autoconfs > 2.59c.
12875
12876 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
12877
12878         * lib/argp.h (__option_is_short): Check upper limit of
12879         __key. Isprint() requires its argument to have the value
12880         of an unsigned char or EOF.
12881
12882 2005-06-16  Jim Meyering  <jim@meyering.net>
12883
12884         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
12885         when either N or S is zero.
12886
12887 2005-06-16  Derek Price  <derek@ximbiot.com>
12888
12889         * m4/bison.m4: Declare YACC & YFLAGS precious.
12890
12891 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
12892
12893         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
12894         multibyte string or pattern, fall back on unibyte matching.
12895         Problem reported by James Youngman.
12896
12897 2005-06-08  Bruno Haible  <bruno@clisp.org>
12898
12899         * modules/csharpcomp: New file.
12900         * MODULES.html.sh (C#): Add csharpcomp.
12901
12902 2005-06-08  Bruno Haible  <bruno@clisp.org>
12903
12904         * m4/csharpcomp.m4: New file, from GNU gettext.
12905
12906 2005-06-08  Bruno Haible  <bruno@clisp.org>
12907
12908         * lib/csharpcomp.h: New file, from GNU gettext.
12909         * lib/csharpcomp.c: New file, from GNU gettext.
12910         * lib/csharpcomp.sh.in: New file, from GNU gettext.
12911
12912 2005-06-08  Bruno Haible  <bruno@clisp.org>
12913
12914         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
12915         warning on mingw.
12916
12917 2005-06-07  Derek Price  <derek@ximbiot.com>
12918
12919         Sync from CVS.
12920         * lib/glob_.h: Indent nested #ifdef.
12921
12922 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
12923
12924         Sync from coreutils.
12925         Use "file name" when talking about file names, instead of "filename"
12926         or "path", as per the GNU coding standards.
12927         * lib/mkdir-p.c: Renamed from makepath.c.
12928         (make_dir_parents): Renamed from make_path.  All callers changed.
12929         * lib/mkdir-p.h: Likewise.  All includers changed.
12930         * lib/filenamecat.c: Renamed from path-concat.c.
12931         (file_name_concat): Renamed from path_concat.  All callers changed.
12932         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
12933         * lib/filenamecat.h: Likewise.  All includers changed.
12934         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
12935         in comments or local variable names.
12936         * lib/basename.c: Likewise.
12937         * lib/canonicalize.c, canonicalize.h: Likewise.
12938         * lib/dirname.c, dirname.h: Likewise.
12939         * lib/euidaccess.c: Likewise.
12940         * lib/exclude.c: Likewise
12941         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
12942         * lib/fsusage.c, fsuage.h: Likewise.
12943         * lib/fts.c, fts_.h: Likewise.
12944         * lib/getcwd.c: Likewise.
12945         * lib/getloadavg.c: Likewise.
12946         * lib/mkstemp.c: Likewise.
12947         * lib/mountlist.c, mountlist.h: Likewise.
12948         * lib/openat.c, openat.h: Likewise.
12949         * lib/readlink-stub.c: Likewise.
12950         * lib/readutmp.c, readutmp.h: Likewise.
12951         * lib/rename.c: Likewise.
12952         * lib/rmdir.c: Likewise.
12953         * lib/same.c: Likewise.
12954         * lib/savedir.c: Likewise.
12955         * lib/stripslash.c: Likewise.
12956         * lib/tempname.c: Likewise.
12957         * lib/xreadlink.c: Likewise.
12958         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
12959         All uses changed.
12960         * lib/exclude.h: Likewise.
12961
12962         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
12963         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
12964         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
12965         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
12966         * lib/pathmax.h: Include <limits.h> unconditionally, since other
12967         files have been getting away with it for years (MORE/BSD 4.3
12968         is extinct now).
12969         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
12970         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
12971
12972         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
12973         Define to 256, not 255, as per modern POSIX.
12974
12975 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
12976
12977         Sync from coreutils.
12978         Use "file name" when talking about file names, instead of "filename"
12979         or "path", as per the GNU coding standards.
12980         * MODULES.html.sh: mkdir-p renamed from makepath.
12981         filenamecat renamed from path-concat.
12982         * modules/filenamecat: Renamed from modules/path-concat.
12983         (Files): filenamecat.h and filenamecat.c renamed from
12984         path-concat.h and path-concat.c.
12985         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
12986         (Include): filenamecat.h, not path-concat.h.
12987         * modules/mkdir-p: Renamed from modules/makepath.
12988         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
12989         makepath.c.
12990         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
12991         (Include): mkdir-p.h, not makepath.h.
12992
12993 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
12994
12995         Sync from coreutils.
12996         * m4/mkdir-p.m4: Renamed from makepath.m4.
12997         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
12998         Rename files from makepath.c to mkdir-p.c, and from
12999         makepath.h to mkdir-p.h.
13000         * m4/filenamecat.m4: Renamed from path-concat.m4.
13001         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
13002         Rename files from path-concat.c to filenamecat.c,
13003         and from path-concat.h to filenamecat.h.
13004         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
13005         "file name" in local variables or comments.
13006         * m4/rename.m4: Likewise.
13007
13008 2005-06-01  Bruno Haible  <bruno@clisp.org>
13009
13010         * modules/csharpexec: New file.
13011         * MODULES.html.sh (C#): New section.
13012
13013 2005-06-01  Bruno Haible  <bruno@clisp.org>
13014
13015         * m4/csharp.m4: New file, from GNU gettext.
13016         * m4/csharpexec.m4: New file, from GNU gettext.
13017
13018 2005-06-01  Bruno Haible  <bruno@clisp.org>
13019
13020         * lib/csharpexec.h: New file, from GNU gettext.
13021         * lib/csharpexec.c: New file, from GNU gettext.
13022         * lib/csharpexec.sh.in: New file, from GNU gettext.
13023
13024 2005-05-31  Derek Price  <derek@ximbiot.com>
13025             Paul Eggert  <eggert@cs.ucla.edu>
13026
13027         Sync from cvs.
13028         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
13029
13030 2005-05-31  Derek Price  <derek@ximbiot.com>
13031             Paul Eggert  <eggert@cs.ucla.edu>
13032
13033         Sync from cvs.
13034         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
13035
13036 2005-05-29  Derek Price  <derek@ximbiot.com>
13037
13038         * config/srclist.txt (glob_.h, glob.c): Add these files.
13039
13040 2005-05-29  Derek Price  <derek@ximbiot.com>
13041
13042         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
13043         * modules/glob: New file.
13044         * modules/getlogin_r: Add link to POSIX spec in description.
13045
13046 2005-05-29  Derek Price  <derek@ximbiot.com>
13047             Paul Eggert  <eggert@cs.ucla.edu>
13048
13049         * m4/glob.m4: New file.
13050
13051 2005-05-29  Derek Price  <derek@ximbiot.com>
13052             Paul Eggert  <eggert@cs.ucla.edu>
13053
13054         * lib/glob_.h, lib/glob.c: New files.
13055
13056 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
13057
13058         * modules/fts (Files): Remove m4/inttypes-pri.m4.
13059         * modules/fts-lgpl (Depends-on): Remove gettext.
13060
13061 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
13062
13063         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
13064         and don't require gt_INTTYPES_PRI.
13065
13066 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
13067
13068         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
13069
13070         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
13071         the configuration hassle isn't worth it.
13072         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
13073         (LONGEST_MODIFIER, PRIuMAX): Remove.
13074
13075 2005-05-27  Bruno Haible  <bruno@clisp.org>
13076
13077         * lib/getlogin_r.h: Remove second include of <stddef.h>.
13078
13079 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
13080
13081         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
13082         _POSIX_PTHREAD_SEMANTICS for Solaris.
13083
13084 2005-05-25  Derek Price  <derek@ximbiot.com>
13085
13086         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
13087
13088 2005-05-25  Derek Price  <derek@ximbiot.com>
13089             Paul Eggert  <eggert@cs.ucla.edu>
13090
13091         * modules/getlogin_r, m4/getlogin_r.m4: New files.
13092         * lib/getlogin_r.c, getlogin_r.h: New files.
13093
13094 2005-05-25  Bruno Haible  <bruno@clisp.org>
13095             Derek Price  <derek@ximbiot.com>
13096
13097         * lib/getlogin_r.h: Simplify API documentation.
13098
13099 2005-05-23  Derek Price  <derek@ximbiot.com>
13100
13101         * modules/minmax (Files): Add m4/minmax.m4.
13102         (configure.ac): Add gl_MINMAX.
13103
13104 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
13105
13106         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
13107         so that unistd-safer.h (GPL'ed code) need not be included.
13108
13109 2005-05-22  Bruno Haible  <bruno@clisp.org>
13110
13111         * m4/minmax.m4: New file.
13112         Based on a patch by Derek Price <derek@ximbiot.com>.
13113
13114 2005-05-22  Bruno Haible  <bruno@clisp.org>
13115
13116         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
13117         (INT64_MIN): Fix definition.
13118         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
13119
13120         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
13121         NEED_SIGNED_INT_TYPES.
13122
13123         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
13124         HAVE_SYSTEM_INTTYPES.
13125
13126 2005-05-22  Bruno Haible  <bruno@clisp.org>
13127
13128         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
13129         Also include <sys/param.h> if it defines MIN, MAX.
13130         Based on a patch by Derek Price <derek@ximbiot.com>.
13131
13132 2005-05-21  Jim Meyering  <jim@meyering.net>
13133
13134         * modules/fts (Files): Add m4/inttypes-pri.m4.
13135         (Depends-on): Add lstat and remove gettext.  Alphabetize.
13136
13137 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
13138
13139         New fts module.
13140         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
13141         (setup_dir, free_dir): New functions.
13142         (enter_dir, leave_dir): Define trivial
13143         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
13144         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
13145         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
13146         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
13147         Move to fts-cycle.c.
13148         (fts_open): Use setup_dir.
13149         (fts_close): Use free_dir.
13150         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
13151         This adds a label and some gotos, but the alternatives were messier.
13152         Check for memory allocation failure when entering a dir.
13153         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
13154         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
13155         (FTS): New member fts_cycle, that is a union that contains the
13156         old active_dir_ht and cycle_state.  All uses changed to mention
13157         fts_cycle.ht and fts_cycle.state.
13158         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
13159         fts.c, with the following changes:
13160         (setup_dir, free_dir): New functions.
13161         (enter_dir): Now returns bool.  Return true if successful, false
13162         if memory exhausted.  All callers changed.
13163         Do not bother partly cleaning up on
13164         memory allocation failure; that is free_dir's job.
13165         However, free ad if hash_insert fails, to avoid memory leak.
13166         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
13167         fts->fts_options to see which union member to use.
13168
13169 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
13170
13171         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
13172         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
13173
13174 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
13175
13176         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
13177
13178 2005-05-20  Jim Meyering  <jim@meyering.net>
13179
13180         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
13181         Now a macro, to pacify GCC.
13182
13183 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
13184
13185         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
13186         of -1.
13187
13188 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
13189
13190         * lib/chown.c (rpl_chown): Return -1 on failure.
13191
13192 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
13193
13194         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
13195         Don't check for stddef.h.
13196         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
13197         don't use its results.
13198         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
13199         since we include them unconditionally.  Don't require
13200         AM_STDBOOL_H, since stdbool is a prerequisite.
13201         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
13202         since we assume C89 or better.
13203         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
13204         as we don't use their results.
13205         Don't check for fchdir, memmove, memset, strrchr, as we use
13206         them unconditionally.
13207         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
13208         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
13209
13210 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
13211
13212         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
13213         Include <stddef.h> unconditionally, since we assume C89 now.
13214         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
13215         * lib/fts.c: Include fts_.h first, to check interface.
13216         Do not include intprops.h; no longer needed.
13217         Include cycle-check.h and hash.h, since fts_.h no longer does.
13218         Remove unnecessary casts of closedir to void.
13219         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
13220         decide whether to decrement nlinks.
13221         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
13222         (FTS): Use struct hash_table * instead of Hash_table, so that
13223         we no longer need to include hash.h here.
13224
13225 2005-05-18  Jim Meyering  <jim@meyering.net>
13226
13227         * modules/dirfd (License): Change to LGPL.  Most of the code
13228         is already in the public domain.
13229
13230 2005-05-18  Jim Meyering  <jim@meyering.net>
13231
13232         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
13233         Reported by Yoann Vandoorselaere.
13234
13235 2005-05-17  Jim Meyering  <jim@meyering.net>
13236
13237         * m4/fts.m4: New file, from coreutils.
13238
13239 2005-05-17  Jim Meyering  <jim@meyering.net>
13240
13241         * lib/fts.c, lib/fts_.h: New files, from coreutils.
13242
13243 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
13244
13245         Sync from coreutils.
13246         * m4/unlinkdir.m4: New file.
13247
13248 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
13249
13250         Sync from coreutils.
13251         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
13252         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
13253         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
13254         White space changes only.
13255         * lib/makepath.c (make_path): Port to hosts where leading "//" is
13256         special.
13257         * lib/yesno.c: Include getline.h, not ctype.h.
13258         (yesno): Don't remove leading white space; POSIX doesn't allow it.
13259         Use getline to remove arbitrary restriction on response length.
13260
13261 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
13262
13263         * config/srclist-update: Spell out "Street" in FSF postal
13264         mail address; this is the style the FSF seems to prefer.
13265
13266         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
13267         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
13268         this updates FSF postal mail address.
13269
13270         Sync from coreutils.
13271         * modules/unlinkdir: New file.
13272         * modules/yesno (Depends-on): Add getline.
13273         * MODULES.html.sh (File system functions): Add unlinkdir.
13274
13275 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
13276
13277         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
13278         lib/strsep.h:
13279         Change the initial comment to refer to GPL, not LGPL.
13280         gnulib-tool will change it to LGPL as needed.
13281
13282         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
13283         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
13284         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
13285         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
13286         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
13287         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
13288         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
13289         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
13290         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
13291         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
13292         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
13293         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
13294         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
13295         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
13296         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
13297         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
13298         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
13299         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
13300         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
13301         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
13302         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
13303         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
13304         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
13305         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
13306         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
13307         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
13308         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
13309         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
13310         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
13311         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
13312         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
13313         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
13314         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
13315         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
13316         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
13317         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
13318         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
13319         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
13320         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
13321         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
13322         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
13323         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
13324         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
13325         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
13326         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
13327         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
13328         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
13329         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
13330         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
13331         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
13332         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
13333         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
13334         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
13335         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
13336         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
13337         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
13338         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
13339         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
13340         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
13341         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
13342         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
13343         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
13344         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
13345         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
13346         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
13347         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
13348         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
13349         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
13350         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
13351         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
13352         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
13353         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
13354         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
13355         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
13356         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
13357         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
13358         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
13359         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
13360         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
13361         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
13362         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
13363         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
13364         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
13365         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
13366         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
13367         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
13368         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
13369         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
13370         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
13371         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
13372         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
13373         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
13374         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
13375         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
13376         lib/yesno.c, lib/yesno.h:
13377         Update FSF postal mail address.
13378
13379 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
13380
13381         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
13382         tests/test-memmem.c, tests/test-stpncpy.c:
13383         Update FSF postal mail address.
13384
13385 2005-05-13  Bruno Haible  <bruno@clisp.org>
13386
13387         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
13388         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
13389         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
13390         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
13391         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
13392         Add support for 64-bit integers in the MSVC compiler.
13393
13394 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
13395
13396         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
13397
13398 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
13399
13400         * gnulib-tool (func_import): Sort and uniquify recommended includes.
13401
13402 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
13403
13404         * doc/getdate.texi (General date syntax): Don't say that date
13405         date --iso-8601=ns generates acceptable dates; it doesn't yet.
13406         Problem reported by Nic Ferrier.
13407
13408 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
13409
13410         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
13411         specified in ai_socktype. Fix invalid ai_protocol
13412         check. ai_protocol is usually set to 0 or depending on
13413         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
13414         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
13415         ai_socktype / ai_protocol in the returned addrinfo structure.
13416
13417 2005-05-10  Simon Josefsson  <jas@extundo.com>
13418
13419         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
13420         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
13421
13422 2005-05-10  Karl Berry  <karl@gnu.org>
13423
13424         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
13425         (from http://www.gnu.org/licenses).
13426         * doc/COPYING.LIB: also rename to COPYING.LESSER.
13427         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
13428         fdl.texi suffices.
13429
13430 2005-05-10  Karl Berry  <karl@gnu.org>
13431
13432         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
13433         (COPYING.DOC): remove.
13434
13435         * config/srclist-update: new FSF address.
13436
13437 2005-05-10  Derek Price  <derek@ximbiot.com>
13438
13439         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
13440         possible.
13441
13442 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
13443             Bruno Haible  <bruno@clisp.org>
13444
13445         * modules/inet_ntop: New file.
13446         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
13447         inet_ntop.
13448
13449 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
13450             Bruno Haible  <bruno@clisp.org>
13451
13452         * m4/inet_ntop.m4: New file.
13453
13454 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
13455             Bruno Haible  <bruno@clisp.org>
13456
13457         * lib/inet_ntop.h: New file.
13458         * lib/inet_ntop.c: New file, from glibc with modifications.
13459
13460 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
13461
13462         * modules/time_r (License): Change to LGPL.
13463         * modules/extensions (License): Change to LGPL.  Actually,
13464         the license is more permissive than that, but currently gnulib-tool
13465         doesn't know how to handle more-permissive licenses.
13466
13467         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
13468         Problem reported by Dave Love.
13469
13470 2005-05-08  Jim Meyering  <jim@meyering.net>
13471
13472         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
13473         blank.
13474
13475 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
13476
13477         * modules/argmatch (Depends-on): Add stdbool.
13478         * modules/backupfile (Depends-on): Likewise.
13479         * modules/chdir-long (Depends-on): Likewise.
13480         * modules/closeout (Depends-on): Likewise.
13481         * modules/cycle-check (Depends-on): Likewise.
13482         * modules/dirname (Depends-on): Likewise.
13483         * modules/fnmatch (Depends-on): Likewise.
13484         * modules/fsusage (Depends-on): Likewise.
13485         * modules/fwriteerror (Depends-on): Likewise.
13486         * modules/getcwd (Depends-on): Likewise.
13487         * modules/getloadavg (Depends-on): Likewise.
13488         * modules/hard-locale (Depends-on): Likewise.
13489         * modules/makepath (Depends-on): Likewise.
13490         * modules/mountlist (Depends-on): Likewise.
13491         * modules/nanosleep (Depends-on): Likewise.
13492         * modules/posixtm (Depends-on): Likewise.
13493         * modules/quotearg (Depends-on): Likewise.
13494         * modules/readtokens (Depends-on): Likewise.
13495         * modules/readtokens0 (Depends-on): Likewise.
13496         * modules/readutmp (Depends-on): Likewise.
13497         * modules/save-cwd (Depends-on): Likewise.
13498         * modules/strftime (Depends-on): Likewise.
13499         * modules/userspec (Depends-on): Likewise.
13500         * modules/utimecmp (Depends-on): Likewise.
13501         * modules/xgetcwd (Depends-on): Likewise.
13502         * modules/xnanosleep (Depends-on): Likewise.
13503         * modules/xstrtod (Depends-on): Likewise.
13504         * modules/yesno (Depends-on): Likewise.
13505
13506 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
13507
13508         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
13509         needless checks.
13510
13511 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
13512
13513         Merge from coreutils.  Among other things,
13514         add bulletproofing for cases where stdin, stdout, or stderr are closed.
13515         * lib/fd-safer.c: New file.
13516         * lib/fcntl-safer.h, open-safer.c: Remove.
13517         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
13518         * lib/dup-safer.c: Include unistd-safer.h first.
13519         Don't include errno.h.
13520         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
13521         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
13522         * lib/file-type.c: Rely on file-type.h change.
13523         * lib/getloadavg.c: Include unistd-safer.h.
13524         (getloadavg): Use safer open.
13525         * lib/getusershell.c: Include "stdio-safer.h".
13526         (getusershell): Use safer fopen.
13527         * lib/long-options.c (long_options): Use NULL rather than 0.
13528         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
13529         'free'.
13530         * lib/modechange.c: Likewise.
13531         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
13532         (MODE_DONE): New constant.
13533         (struct mode_change): Remove 'next' member.
13534         (make_node_op_equals): New function; like the old one of the
13535         same name, except it allocates an array.
13536         (mode_compile, mode_create_from_ref): Use it.
13537         (mode_compile): Allocate result as an array, not a linked list.
13538         Parse octal string ourself, so that we catch mistakes like "+0".
13539         (mode_adjust): Arg is an array, not a linked list.
13540         * lib/modechange.c: Include stat-macros.h, xalloc.h.
13541         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
13542         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
13543         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
13544         Remove.  This is now stat-macros.h's job.
13545         (talloc): Remove.  All callers replaced by xalloc, so that
13546         our invokers don't have to worry about reporting memory failures.
13547         (make_node_op_equals): Remove.
13548         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
13549         New constants.
13550         (struct mode_change): Moved here from modechange.h.
13551         (mode_append_entry): Remove.
13552         (mode_compile): Remove MASKED_OPS arg, since it encouraged
13553         apps to have incorrect behavior.  Use simpler algorithm for head
13554         and tail.  Don't futz with umask; that's now the job of mode_adjust.
13555         Detect more invalid usages rather than having somewhat-random behavior.
13556         Don't insert an "a=" action, as that leads to incorrect behavior.
13557         (mode_compile, mode_create_from_ref): Return NULL on error instead
13558         of an enum, since now there's only one way to have an error.  All
13559         callers changed.
13560         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
13561         at the correct time.  Simplify calculation of "+u" and its ilk.
13562         Don't mishandle "+X".
13563         (mode_free): Remove "register" and localize decls.
13564         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
13565         (struct mode_change): Move to modechange.c; callers don't
13566         need to see this stuff.
13567         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
13568         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
13569         (mode_change, mode_adjust): Reflect the new signatures noted above.
13570         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
13571         that might redefine system include files.
13572         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
13573         (my_usleep): Use NULL rather than (void *) 0.
13574         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
13575         Use siginterrupt to specify that system calls should be interrupted.
13576         (rpl_nanosleep): Move initialization of suspended closer to call of
13577         my_usleep.
13578         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
13579         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
13580         (desirable_utmp_entry): New function.
13581         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
13582         using x2nrealloc, to simplify logic.
13583         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
13584         size calculation.  Do not assume utmp file is a regular file.
13585         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
13586         (READ_UTMP_CHECK_PIDS): New constant.
13587         * lib/save-cwd.c: Include unistd-safer.h.
13588         (save_cwd): Use fd_safer.
13589         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
13590         [!_LIBC] Include "stat-macros.h" instead.
13591         * lib/unistd-safer.h (fd_safer): New decl.
13592
13593 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
13594
13595         * modules/getloadavg (Depends-on): Add unistd-safer.
13596         * modules/getusershell (Depends-on): Add stdio-safer.
13597         * modules/lstat (Depends-on): Remove xalloc.
13598         * modules/mkstemp (Depends-on): Add stat-macros.
13599         * modules/modechange (Depends-on): Remove xstrtol.
13600         Add stat-macros, xalloc.
13601         * modules/save-cwd (Depends-on): Add unistd-safer.
13602         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
13603         * modules/unistd-safer (Files): Add lib/fd-safer.c
13604         (Makefile.am): Remove lib_SOURCES.
13605
13606         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
13607         Remove fcntl-safer; unistd-safer supersedes it.
13608
13609 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
13610
13611         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
13612         AC_HEADER_STAT.
13613         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
13614         (gl_PREREQ_CHOWN): Remove.
13615         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
13616         it.  Don't require AC_HEADER_STAT.
13617         (gl_PREREQ_LSTAT): Remove.
13618         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
13619         Don't require AC_HEADER_STAT.
13620         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
13621         (gl_PREREQ_RMDIR): Remove.
13622         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
13623         mention stat-macros.h or AC_HEADER_STAT, since we'll make
13624         the stat-macros module a prerequisite.
13625         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
13626         * m4/filemode.m4 (gl_FILEMODE): Likewise.
13627         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
13628         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
13629         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
13630         variable names.
13631         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
13632         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
13633         variable prefixes.
13634         * m4/fcntl-safer.m4: Remove.
13635         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
13636         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
13637         Invoke gl_PREREQ_FD_SAFER.
13638         (gl_PREREQ_FD_SAFER): New macro.
13639         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
13640         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
13641         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
13642         Remove duplicate call to AC_LIBOBJ(readutmp).
13643         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
13644
13645         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
13646         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
13647
13648 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
13649
13650         * MODULES.html.sh (Misc): Add byteswap.
13651
13652 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
13653
13654         * modules/getcwd (Depends-on): Add extensions.
13655         * modules/openat (Depends-on): Likewise.
13656
13657 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
13658
13659         * modules/byteswap: New file.
13660
13661 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
13662
13663         * m4/byteswap.m4: New file.
13664
13665 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
13666
13667         * lib/byteswap_.h: New file.
13668
13669 2005-04-25  Karl Berry  <karl@gnu.org>
13670
13671         * m4/gettext.m4: Update from GNU gettext 0.14.4.
13672
13673 2005-04-25  Albert Chin  <china@thewrittenword.com>
13674
13675         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
13676         Toolkit C bug.
13677
13678 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
13679
13680         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
13681         (func_ln_if_changed) Remove forcibly for no error message
13682         in case file does not exist.
13683
13684 2005-04-19  Simon Josefsson  <jas@extundo.com>
13685
13686         * gnulib-tool (Options): Make --symlink mean --symbolic.
13687
13688 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
13689
13690         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
13691
13692 2005-04-16  Simon Josefsson  <jas@extundo.com>
13693
13694         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
13695
13696 2005-04-15  Simon Josefsson  <jas@extundo.com>
13697
13698         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
13699
13700 2005-04-15  Simon Josefsson  <jas@extundo.com>
13701
13702         * gnulib-tool: Rename --symlink to --symbolic.
13703
13704 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
13705
13706         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
13707         symbolic links to files instead of copying/moving.  Add --aux-dir,
13708         specifying directory relative --dir where auxiliary build tools
13709         are placed.
13710
13711 2005-04-14  Bruno Haible  <bruno@clisp.org>
13712
13713         * modules/allocsa (License): Change to LGPL.
13714         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
13715
13716 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
13717
13718         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
13719         that "UTC +1 second" continues to work.  Problem reported
13720         by Dmitry V. Levin.
13721         (relunit_snumber): New rule.
13722         (relunit): Use it.
13723
13724 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
13725
13726         * lib/getdate.y (universal_time_zone_table): New constant.
13727         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
13728         universal_time_zone_table.
13729         (lookup_zone): Prefer universal_time_zone_table to
13730         local_time_zone_table, so that "GMT" time stamps are allowed in
13731         London during the summer.  Problem reported by Ian Abbott.
13732
13733 2005-04-12  Jim Meyering  <jim@meyering.net>
13734
13735         * lib/human.c (humblock): Set *options even when returning due to
13736         xstrtoumax conversion failure.  Thanks to a used-uninitialized
13737         warning from gcc-4.
13738
13739 2005-04-09  Jim Meyering  <jim@meyering.net>
13740
13741         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
13742         -Wuninitialized: initialize tm0.tm_year.
13743
13744 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
13745
13746         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
13747         count, since there's no maximum.  All uses changed.
13748         Add member dsts_seen.
13749         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
13750         not being INT_MAX.
13751         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
13752         Use pc_rels_seen to decide whther a date is absolute.
13753
13754         * lib/getdate.y (number): Don't overwrite year.
13755         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
13756         check.
13757
13758 2005-04-02  Simon Josefsson  <jas@extundo.com>
13759
13760         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
13761         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
13762
13763 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
13764
13765         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
13766         where no absolute path name can be longer than PATH_MAX.
13767
13768 2005-03-27  Jim Meyering  <jim@meyering.net>
13769
13770         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
13771
13772 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
13773
13774         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
13775         "one's complement" -> "ones' complement" in comment, as per Knuth.
13776         "value of type" -> "type or expression" in comment.
13777         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
13778
13779 2005-03-26  Jim Meyering  <jim@meyering.net>
13780
13781         Comment nits.
13782         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
13783         Correct typos: s/or/of/.
13784
13785 2005-03-26  Jim Meyering  <jim@meyering.net>
13786
13787         * modules/check-include-files: Move to ../ and rename to...
13788         * check-module: ...this.
13789
13790 2005-03-25  Jim Meyering  <jim@meyering.net>
13791
13792         * modules/xvasprintf (Files): Add xalloc.h.
13793
13794 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
13795
13796         * modules/gettext (Files): config/config.rpath ->
13797         build-aux/config.rpath
13798         * modules/iconv (Files): Likewise.
13799         Problem reported by Oskar Liljeblad.
13800
13801 2005-03-23  Jim Meyering  <jim@meyering.net>
13802
13803         * modules/check-include-files: New script to check for
13804         missing dependencies, multiple includes, etc.
13805
13806         * modules/c-strtold (Depends-on): Add xalloc.
13807         * modules/c-strtod (Depends-on): Add xalloc.
13808         * modules/hash (Depends-on): Add xalloc.
13809         (Files): Remove lib/xalloc.h.
13810
13811         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
13812         * modules/userspec (Files): Add lib/inttostr.h.
13813
13814 2005-03-23  Jim Meyering  <jim@meyering.net>
13815
13816         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
13817
13818 2005-03-22  Jim Meyering  <jim@meyering.net>
13819
13820         * modules/stat-macros: New module.
13821         * modules/canonicalize, modules/euidaccess, modules/file-type,
13822         * modules/filemode, modules/lchown, modules/makepath,
13823         * modules/rmdir, modules/stat: Depend on new stat-macros module
13824         rather than listing lib/stat-macros.h manually.
13825         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
13826
13827 2005-03-22  Jim Meyering  <jim@meyering.net>
13828
13829         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
13830
13831 2005-03-22  Bruno Haible  <bruno@clisp.org>
13832
13833         * config/srclist.txt: Replace target directory 'config' with
13834         'build-aux'.
13835         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
13836         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
13837         ../build-aux/.
13838
13839 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
13840
13841         * modules/chdir-long (Depends-on): Add mempcpy.
13842
13843         * modules/acl, modules/backupfile, modules/c-strtod,
13844         modules/c-strtold, modules/canon-host, modules/canonicalize,
13845         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
13846         modules/exclude, modules/exitfail, modules/file-type,
13847         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
13848         modules/getdate, modules/getline, modules/getpagesize,
13849         modules/getpass, modules/getugroups, modules/group-member,
13850         modules/hard-locale, modules/hash, modules/human, modules/idcache,
13851         modules/inttostr, modules/long-options, modules/makepath,
13852         modules/md5, modules/memcasecmp, modules/memcoll,
13853         modules/modechange, modules/mountlist, modules/path-concat,
13854         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
13855         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
13856         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
13857         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
13858         modules/strftime, modules/strndup, modules/strverscmp,
13859         modules/timespec, modules/unlocked-io, modules/userspec,
13860         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
13861         modules/yesno:
13862         Remove lib_SOURCES line from Makefile.am section, as this is now
13863         done automatically by the corresponding Autoconf macro.
13864
13865 2005-03-21  Jim Meyering  <jim@meyering.net>
13866
13867         Changes imported from coreutils.
13868
13869         * lib/cycle-check.c: Don't include xalloc.h.
13870
13871         * lib/path-concat.c: Don't include assert.h.
13872         (path_concat): Remove assertion that would have triggered
13873         for ABASE starting with more than one slash.
13874         Reported by Andreas Schwab.
13875
13876         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
13877         properly when ABASE is an absolute file name.
13878         Correct the description of this function.
13879         Include <assert.h>.
13880         Add an assertion and a test driver.
13881         This fixes a bug introduced on 2004-07-02.
13882         Andreas Schwab reported the resulting failure of cp --parents:
13883         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
13884
13885 2005-03-21  Jim Meyering  <jim@meyering.net>
13886
13887         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
13888         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
13889
13890 2005-03-21  Jim Meyering  <jim@meyering.net>
13891         and  Paul Eggert  <eggert@cs.ucla.edu>
13892
13893         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
13894         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
13895         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
13896         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
13897         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
13898         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
13899         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
13900         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
13901         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
13902         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
13903         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
13904         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
13905         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
13906         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
13907         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
13908         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
13909         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
13910         for these modules.
13911
13912 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
13913
13914         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
13915         (which shouldn't happen), generate nothing instead of returning 0
13916         immediately, so that nstrftime (NULL, ...) doesn't return 0.
13917
13918 2005-03-16  Bruno Haible  <bruno@clisp.org>
13919
13920         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
13921         HAVE_LONGLONG_64BIT.
13922
13923 2005-03-16  Bruno Haible  <bruno@clisp.org>
13924
13925         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
13926         HAVE_LONGLONG_64BIT.
13927
13928 2005-03-16  Bruno Haible  <bruno@clisp.org>
13929
13930         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
13931         HAVE_LONGLONG_64BIT.
13932
13933 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
13934
13935         * lib/strftime.c (my_strftime): Prepend space to format so that we can
13936         reliably distinguish strftime failure from empty output on POSIX
13937         hosts.
13938
13939 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
13940
13941         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
13942         (iconv_string): Don't guess a size-zero buffer, as that might cause
13943         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
13944         result would be 'too large', where 'too large' is (heuristically)
13945         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
13946         overflow concerns.  This will prevent some unwanted malloc failures
13947         when the inputs are very large.
13948
13949 2005-03-15  Karl Berry  <karl@gnu.org>
13950
13951         * config/srclist.txt (config.rpath): from gettext.
13952         * config/config.rpath: update.
13953
13954 2005-03-15  Bruno Haible  <bruno@clisp.org>
13955
13956         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
13957         to 'negate'.
13958
13959         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
13960         variable.
13961
13962         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
13963         results.
13964
13965 2005-03-14  Simon Josefsson  <jas@extundo.com>
13966
13967         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
13968         <fx@gnu.org>.
13969
13970 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
13971
13972         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
13973         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
13974         intprops.h.
13975         * lib/strtol.c: Likewise.
13976
13977 2005-03-14  Jim Meyering  <jim@meyering.net>
13978
13979         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
13980         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
13981         to be nonzero so that we (and caller) can detect the difference
13982         between a valid zero-length expansion and an error return, even
13983         when the underlying strftime fails before writing anything into
13984         that location.
13985
13986 2005-03-14  Bruno Haible  <bruno@clisp.org>
13987
13988         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
13989         Update from GNU gettext 0.14.3.
13990
13991 2005-03-10  Jim Meyering  <jim@meyering.net>
13992
13993         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
13994
13995 2005-03-10  Jim Meyering  <jim@meyering.net>
13996
13997         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
13998         so that this module works on systems without fchdir.
13999
14000 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
14001
14002         Factor int-properties macros into a single file, except for
14003         glibc-related files.
14004         * lib/intprops.h: New file.
14005         * lib/getloadavg.c: Include it instead of limits.h.
14006         (INT_STRLEN_BOUND): Remove.
14007         * lib/human.c: Include intprops.h.
14008         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
14009         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
14010         302/1000.
14011         * lib/inttostr.h: Include intprops.h instead of limits.h.
14012         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
14013         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
14014         for consistency with intprops.h.
14015         (time_t_is_integer, twos_complement_arithmetic): Use them.
14016         * lib/sig2str.h: Include <signal.h>, intprops.h.
14017         (INT_STRLEN_BOUND): Remove.
14018         * lib/strftime.c (TYPE_SIGNED): Remove.
14019         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
14020         * lib/strtol.c: Adjust comments to match intprops.h.
14021         * lib/userspec.c: Include intprops.h.
14022         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
14023         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
14024         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
14025         instead of rolling our own expressions.
14026         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
14027
14028         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
14029         instead of int.
14030         (my_strftime): Do not mishandle years close to INT_MAX, by doing
14031         the right thing even if adding 1900 would overflow.  Similarly
14032         for tm_mon + 1 and tm_yday + 1.
14033         Make %Y always equivalent to %C%y, and similarly for %G and %g.
14034         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
14035         (DO_SIGNED_NUMBER): New macro.
14036         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
14037
14038 2005-03-07  Bruno Haible  <bruno@clisp.org>
14039
14040         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
14041
14042 2005-03-07  Bruno Haible  <bruno@clisp.org>
14043
14044         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
14045
14046 2005-03-04  Derek R. Price  <derek@ximbiot.com>
14047
14048         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
14049         (func_import): Only replace files via --import when they have actually
14050         changed.
14051
14052 2005-03-03  Derek R. Price  <derek@ximbiot.com>
14053
14054         * m4/mmap-anon.m4: New file.
14055         * m4/pagealign_alloc.m4: New file.
14056
14057 2005-03-03  Derek R. Price  <derek@ximbiot.com>
14058             Bruno Haible  <bruno@clisp.org>
14059
14060         * modules/pagealign_alloc: New file.
14061         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
14062
14063 2005-03-03  Derek R. Price  <derek@ximbiot.com>
14064             Bruno Haible  <bruno@clisp.org>
14065
14066         * lib/pagealign_alloc.h: New file.
14067         * lib/pagealign_alloc.c: New file.
14068
14069 2005-03-03  Bruno Haible  <bruno@clisp.org>
14070
14071         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
14072         Use an all-permissive copyright notice, recommended by RMS.
14073
14074 2005-03-02  Bruno Haible  <bruno@clisp.org>
14075
14076         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
14077         of AIX, the replacement has to be done only after <string.h> is
14078         included, therefore not in config.h. stpncpy.h does the replacement,
14079         and stpncpy.c uses it.
14080
14081 2005-03-02  Bruno Haible  <bruno@clisp.org>
14082
14083         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
14084         stpncpy.c uses it.
14085
14086 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
14087
14088         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
14089         The workaround isn't strictly needed for POSIX conformance, and
14090         it's too much of a pain to configure and maintain.  We'll ask
14091         people to fix their kernels instead.
14092         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
14093         (NANOSLEEP_BUG_WORKAROUND): Remove.
14094         (xnanosleep): Remove the workaround.
14095
14096 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
14097
14098         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
14099         Reported by Derek Price.
14100         (Include): Add "timespec.h".
14101
14102         * modules/xnanosleep (Depends-on): Remove gethrxtime.
14103
14104 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
14105
14106         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
14107         to detect nanosleep bug.
14108
14109 2005-03-01  Bruno Haible  <bruno@clisp.org>
14110
14111         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
14112
14113 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
14114
14115         * modules/gethrxtime: New file.
14116         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
14117         (Depends-on): Add gethrxtime.
14118         (configure.ac): Add gl_XNANOSLEEP.
14119         (Makefile.am): Remove lib_SOURCES line.
14120
14121 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
14122
14123         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
14124         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
14125
14126 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
14127
14128         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
14129         * lib/timespec.h (gettime): Return void, since it always
14130         succeeds now.  All uses changed.
14131         * lib/gettime.c (gettime) Likewise.
14132         [HAVE_NANOTIME]: Prefer nanotime.
14133         Assume gettimeofday succeeds, as POSIX requires.
14134         Assime time () succeeds, since other code already does.
14135         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
14136         (timespec_subtract): Remove.
14137         (NANOSLEEP_BUG_WORKAROUND): New constant.
14138         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
14139         things considerably.  Use it only on GNU/Linux hosts, since the
14140         workaround shouldn't be needed elsewhere.
14141
14142 2005-02-24  Bruno Haible  <bruno@clisp.org>
14143
14144         * modules/gettext (Files): Add m4/glibc2.m4.
14145
14146 2005-02-24  Bruno Haible  <bruno@clisp.org>
14147
14148         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
14149         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
14150         * m4/progtest.m4:
14151         Update from GNU gettext 0.14.2.
14152         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
14153
14154 2005-02-24  Bruno Haible  <bruno@clisp.org>
14155
14156         * lib/localcharset.c: Update from GNU gettext 0.14.2.
14157         * lib/config.charset: Update from GNU gettext 0.14.2.
14158
14159 2005-02-24  Bruno Haible  <bruno@clisp.org>
14160
14161         * lib/gettext.h: Update from GNU gettext 0.14.2.
14162
14163 2005-02-23  Simon Josefsson  <jas@extundo.com>
14164
14165         * m4/iconvme.m4: New file.
14166
14167 2005-02-23  Jim Meyering  <jim@meyering.net>
14168
14169         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
14170         change.
14171         Thanks to Bruno Haible for catching it.
14172
14173 2005-02-22  Simon Josefsson  <jas@extundo.com>
14174
14175         * modules/iconvme: New file.
14176
14177         * MODULES.html.sh: Add iconvme.
14178
14179 2005-02-22  Simon Josefsson  <jas@extundo.com>
14180
14181         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
14182
14183 2005-02-22  Simon Josefsson  <jas@extundo.com>
14184
14185         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
14186
14187 2005-02-22  Jim Meyering  <jim@meyering.net>
14188
14189         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
14190         s/ifndef/ifdef/.
14191
14192 2005-02-20  Neil Conway  <neilc@samurai.com>
14193
14194         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
14195         returned by OSX/Darwin if the specified buffer is not large
14196         enough for the hostname.
14197
14198 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
14199
14200         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
14201         pass it to _help, otherwise the latter coredumps trying to
14202         dereference state.root_argp.
14203
14204 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
14205
14206         * modules/chdir-long (Depends-on): Add memrchr.
14207         * modules/memrchr (Files): Add lib/memrchr.h.
14208         (Include): "memrchr.h".
14209
14210 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
14211
14212         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
14213
14214 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
14215
14216         * lib/memrchr.h: New file.
14217         * lib/chdir-long.c: Include it.
14218         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
14219         Don't bother including stddef.h.
14220
14221 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
14222
14223         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
14224         inclusion.
14225         Include <sys/types.h>, for dev_t.
14226         (ME_DUMMY, ME_REMOTE): Move from here....
14227         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
14228         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
14229         Dmitry V. Levin.
14230         Include mountlist.h first, to test the interface.
14231
14232 2005-01-29  Bruno Haible  <bruno@clisp.org>
14233
14234         * lib/progname.c (program_name): Initialize.
14235         Needed when linking statically on MacOS X.
14236
14237 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
14238
14239         Sync from coreutils.
14240         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
14241         (Depends-on): Add c-strtod.
14242         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
14243
14244 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
14245
14246         Sync from coreutils.
14247         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
14248
14249         Remove files that are specific to coreutils.
14250         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
14251
14252 2005-01-28  Bruno Haible  <bruno@clisp.org>
14253
14254         * modules/javacomp: New file.
14255         * MODULES.html.sh (Java): Add javacomp.
14256
14257 2005-01-28  Bruno Haible  <bruno@clisp.org>
14258
14259         * m4/javacomp.m4: New file, from GNU gettext.
14260
14261 2005-01-28  Bruno Haible  <bruno@clisp.org>
14262
14263         * lib/javacomp.sh.in: New file, from GNU gettext.
14264         * lib/javacomp.h: New file, from GNU gettext.
14265         * lib/javacomp.c: New file, from GNU gettext.
14266
14267 2005-01-26  Simon Josefsson  <jas@extundo.com>
14268
14269         * lib/gai_strerror.c: Use GPL in header.
14270
14271 2005-01-26  Bruno Haible  <bruno@clisp.org>
14272
14273         * modules/javaexec: New file.
14274         * MODULES.html.sh (Java): Add javaexec.
14275
14276 2005-01-26  Bruno Haible  <bruno@clisp.org>
14277
14278         * m4/javaexec.m4: New file, from GNU gettext.
14279
14280 2005-01-26  Bruno Haible  <bruno@clisp.org>
14281
14282         * lib/javaexec.sh.in: New file, from GNU gettext.
14283         * lib/javaexec.h: New file, from GNU gettext.
14284         * lib/javaexec.c: New file, from GNU gettext.
14285
14286 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
14287
14288         * modules/lchown (Depends-on): Remove lchown.h
14289
14290 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
14291
14292         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
14293         must be defined if the header file was not found, in order
14294         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
14295
14296 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
14297
14298         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
14299         initializers for struct pentry_state.
14300         (__argp_error): Check return value of __asprintf
14301         (__argp_failure): Translate error message
14302
14303         * lib/argp-parse.c: Removed braces around the expansion of N_()
14304
14305 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
14306
14307         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
14308         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
14309         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
14310         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
14311         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
14312         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
14313         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
14314         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
14315         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
14316         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
14317         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
14318         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
14319         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
14320         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
14321         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
14322         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
14323         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
14324         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
14325         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
14326         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
14327         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
14328         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
14329         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
14330         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
14331         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
14332         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
14333         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
14334         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
14335         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
14336         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
14337         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
14338         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
14339         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
14340         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
14341         xstrtol.m4, xstrtoumax.m4, yesno.m4:
14342         Use an all-permissive copyright notice, recommended by RMS.
14343
14344 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
14345
14346         * modules/chdir-long (Depends-on): Remove mempcpy.
14347
14348 2005-01-21  Jim Meyering  <jim@meyering.net>
14349
14350         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
14351         same value as for Solaris 9.
14352
14353         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
14354         component length.  This included changing the parameter to be
14355         of type `char *' rather than `char const *'.
14356         * lib/chdir-long.h (chdir_long): Update prototype.
14357
14358         * lib/openat.c (fdopendir, fstatat): New functions.
14359         * lib/openat.h: Include headers required for use of DIR and struct
14360         stat.
14361         [AT_SYMLINK_NOFOLLOW]: Define.
14362         (fdopendir, fstatat): Add prototypes.
14363
14364 2005-01-21  Bruno Haible  <bruno@clisp.org>
14365
14366         * modules/classpath: New file.
14367         * MODULES.html.sh (Java): Add classpath.
14368
14369 2005-01-21  Bruno Haible  <bruno@clisp.org>
14370
14371         * lib/classpath.h: New file, from GNU gettext.
14372         * lib/classpath.c: New file, from GNU gettext.
14373
14374 2005-01-20  Simon Josefsson  <jas@extundo.com>
14375
14376         * modules/version-etc-fsf: New file.
14377
14378 2005-01-20  Simon Josefsson  <jas@extundo.com>
14379
14380         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
14381         * lib/version-etc.c: Remove version_etc_copyright.
14382         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
14383         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
14384
14385 2005-01-20  Simon Josefsson  <jas@extundo.com>
14386
14387         * lib/base64.h (isbase64): Add.
14388
14389         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
14390         using a unsigned prototype, don't inline.
14391         (base64_decode): Use it.
14392
14393 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
14394
14395         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
14396         it.
14397
14398 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
14399
14400         * lib/save-cwd.c (save_cwd): Remove code to support the case
14401         where fchdir is missing or flaky.
14402
14403 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
14404
14405         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
14406
14407 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
14408
14409         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
14410         AC_LIBSOURCES now does this.
14411         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
14412         with new ullong_max module.
14413
14414 2005-01-19  Bruno Haible  <bruno@clisp.org>
14415
14416         * modules/sh-quote: New file.
14417         * MODULES.html.sh (Executing programs): Add sh-quote.
14418
14419 2005-01-19  Bruno Haible  <bruno@clisp.org>
14420
14421         * lib/sh-quote.h: New file, from GNU gettext.
14422         * lib/sh-quote.c: New file, from GNU gettext.
14423
14424 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
14425
14426         Merge from coreutils.
14427         * m4/ullong_max.m4: New file.
14428         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
14429         (gl_MACROS): Assume localeconv exists.
14430
14431 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
14432
14433         Merge changes from coreutils, as described below in several
14434         changelogs dated today.
14435
14436         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
14437         (O_DIRECTORY): Remove; not needed here, since "." must be
14438         a directory.  All uses removed.
14439         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
14440         universal on Suns, and we also need to test for IRIX.
14441         Revamp code to use 'if' rather than '#if'.
14442         Avoid unnecessary comparison of cwd->desc to 0.
14443
14444         * lib/utimens.c (futimens): Robustify the previous patch, by checking
14445         for known valid error numbers rather than observed invalid ones.
14446
14447 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
14448
14449         * modules/ullong_max: New file.
14450
14451         * modules/chdir-long, modules/openat: New files.
14452         * modules/save-cwd (Depends-on): Depend on chdir-long.
14453         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
14454
14455 2005-01-18  Jim Meyering  <jim@meyering.net>
14456
14457         Merge from coreutils.
14458         * m4/chdir-long.m4, m4/openat.m4: New files.
14459         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
14460         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
14461         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
14462         is sane and DOES follow symlinks.  Besides, testing 20 different
14463         systems found no broken chown implementations.
14464         Prompted by a change in rsync's copy of this macro.
14465         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
14466
14467         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
14468
14469         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
14470         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
14471         NULL-means-set-to-current-time semantics.
14472         Remove temporary file immediately, rather than waiting
14473         for configure's at-exit trap code to do it.
14474
14475 2005-01-18  Jim Meyering  <jim@meyering.net>
14476
14477         * lib/version-etc.c (version_etc_copyright): Update copyright date.
14478
14479         * lib/utimens.c (futimens): Account for the fact that futimes
14480         can also fail with errno == ENOSYS or errno == ENOENT.
14481         Patch from Dmitry V. Levin.
14482
14483         Change the name of the robust chdir function from chdir to chdir_long.
14484         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
14485         (restore_cwd): Use chdir_long, not chdir.
14486         * lib/chdir-long.c: Renamed from chdir.c.
14487         * lib/chdir-long.h: Renamed from chdir.h.
14488         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
14489         Hurd.
14490
14491 2005-01-18  Bruno Haible  <bruno@clisp.org>
14492
14493         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
14494         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
14495         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
14496         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
14497         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
14498         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
14499         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
14500         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
14501         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
14502         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
14503         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
14504         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
14505         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
14506         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
14507         Use an all-permissive copyright notice, recommended by RMS.
14508
14509 2005-01-18  Bob Proulx  <bob@proulx.com>
14510
14511         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
14512         simplify offsetof() macro construct to avoid compile failure with
14513         native HP-UX 11.0 ANSI C compiler.
14514
14515 2005-01-17  Bruno Haible  <bruno@clisp.org>
14516
14517         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
14518         redundant because stpncpy.m4 takes care of it.
14519
14520 2005-01-17  Bruno Haible  <bruno@clisp.org>
14521
14522         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
14523
14524 2005-01-17  Bruno Haible  <bruno@clisp.org>
14525
14526         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
14527         used.
14528
14529 2005-01-17  Bruno Haible  <bruno@clisp.org>
14530
14531         * lib/fwriteerror.h (fwriteerror): Change specification to include
14532         fclose.
14533         * lib/fwriteerror.c: Include <stdbool.h>.
14534         (fwriteerror): At the end, close the file stream. Record whether
14535         stdout was already closed.
14536
14537 2005-01-17  Bruno Haible  <bruno@clisp.org>
14538
14539         * lib/execute.c (environ): Declare if needed.
14540         * lib/pipe.c (environ): Likewise.
14541         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
14542
14543 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
14544
14545         * modules/argp: Depend on vsnprintf
14546
14547 2005-01-10  Jim Meyering  <jim@meyering.net>
14548
14549         * modules/closeout (Depends-on): Add atexit.
14550
14551 2005-01-06  Bruno Haible  <bruno@clisp.org>
14552
14553         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
14554
14555 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
14556
14557         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
14558         definitions to be after all include files, to avoid collisions.
14559         Problem reported by Bob Proulx.
14560
14561 2005-01-04  Jim Meyering  <jim@meyering.net>
14562
14563         Changes imported from coreutils.
14564         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
14565         as the mkstemp template, use a temporary directory and an
14566         8.3-friendly template to avoid trouble on systems like DJGPP.
14567         Reported by Juan M. Guerrero via Stepan Kasal.
14568         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
14569         close. Remove the temporary directory right away, rather than waiting
14570         for configure's at-exit trap code to do it.
14571         Suggestion from Stepan Kasal.
14572
14573 2005-01-01  Simon Josefsson  <jas@extundo.com>
14574
14575         * gnulib-tool: Print #include directives when --import'ing.
14576
14577 2004-12-28  Simon Josefsson  <jas@extundo.com>
14578
14579         * tests/test-base64.c: Include required header files.  Remove
14580         unused variables.
14581
14582 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
14583
14584         * modules/error (Depends-on): Remove gettext.
14585
14586 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
14587
14588         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
14589         not needed.  This removes a dependency on the gettext module.
14590         [defined _LIBC]: Do not include <libintl.h>; not needed.
14591
14592 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
14593
14594         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
14595         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
14596
14597 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
14598
14599         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
14600         HAVE_DECL_STRTOLD.
14601
14602 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
14603
14604         * modules/getdate (Depends-on): Remove alloca-opt.
14605
14606 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
14607
14608         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
14609
14610 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
14611
14612         * lib/argp-parse.c: Include <stddef.h>.
14613         (alignof, alignto): New macros.
14614         (parser_init): Don't assume that void * is aligned sufficiently
14615         for struct option.
14616
14617         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
14618         need to extend the stack.
14619         (YYINITDEPTH): New macro, so that the initial stack isn't overly
14620         large.
14621
14622 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
14623
14624         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
14625
14626 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
14627
14628         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
14629         (2004-10-24) change.  Apparently this was a false alarm.
14630
14631         * modules/getdate: Depend on alloca-opt, not alloca.
14632
14633 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
14634
14635         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
14636         Remove now-obsolete comment about AIX.
14637         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
14638         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
14639         (YYMAXDEPTH): New macro.
14640
14641 2004-12-18  Simon Josefsson  <jas@extundo.com>
14642
14643         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
14644
14645 2004-12-18  Bruno Haible  <bruno@clisp.org>
14646
14647         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
14648
14649 2004-12-18  Bruno Haible  <bruno@clisp.org>
14650
14651         * lib/fatal-signal.c (fatal_signals): Make non-const.
14652         (init_fatal_signals): New function.
14653         (uninstall_handlers, install_handlers): Ignore signals that were set to
14654         SIG_IGN.
14655         (at_fatal_signal): Call init_fatal_signals.
14656         (init_fatal_signal_set): Likewise. Ignore signals that were set to
14657         SIG_IGN.
14658         Reported by Paul Eggert.
14659
14660 2004-12-18  Bruno Haible  <bruno@clisp.org>
14661
14662         * doc/alloca.texi: New file.
14663         * doc/alloca-opt.texi: New file.
14664
14665 2004-12-17  Jim Meyering  <jim@meyering.net>
14666
14667         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
14668         Otherwise, install-sh could exit with improper exit status when
14669         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
14670
14671 2004-12-16  Simon Josefsson  <jas@extundo.com>
14672
14673         * tests/test-base64.c: Add license.
14674
14675 2004-12-15  Stepan Kasal  <address@hidden>
14676
14677         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
14678
14679 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
14680
14681         * modules/getcwd (Files): Add m4/d-ino.m4.
14682         Suggested by Mark D. Baushke.
14683
14684 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
14685
14686         * lib/getdate.y (textint): New member "negative".
14687         (time_zone_hhmm): New function.
14688         Expect 14 shift-reduce conflicts, not 13.
14689         (o_colon_minutes): New rule.
14690         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
14691         (yylex): Set the "negative" member of signed numbers.
14692
14693 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
14694
14695         * doc/getdate.texi (Time of day items, Time zone items):
14696         Describe new formats +00:00, UTC+00:00.
14697
14698 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
14699
14700         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
14701         spurious "-l"s.  Problem reported by Stepan Kasal.
14702
14703 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
14704
14705         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
14706         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
14707
14708 2004-12-04  Simon Josefsson  <jas@extundo.com>
14709
14710         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
14711         Vandoorselaere <yoann@prelude-ids.org>.
14712
14713 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
14714
14715         Changes imported from coreutils.
14716         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
14717         exist.
14718         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
14719
14720 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
14721
14722         Changes imported from coreutils.
14723         * lib/hard-locale.c: Assume <locale.h> exists.
14724         Include "strdup.h".
14725         (GLIBC_VERSION): New macro.
14726         (hard_locale): Assume setlocale exists.
14727         Rewrite to avoid #ifdef.
14728         Use strdup rather than malloc + strcpy.
14729         * lib/human.c: Assume <locale.h> exists.
14730         (human_readable): Assume localeconv exists.
14731
14732 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
14733
14734         * modules/hard-locale (Depends-on): Add strdup.
14735
14736 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
14737
14738         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
14739         convert T2, not T.  (Imported from libc.)
14740
14741 2004-11-30  Simon Josefsson  <jas@extundo.com>
14742
14743         * modules/restrict (License): Change to LGPL.
14744
14745 2004-11-30  Simon Josefsson  <jas@extundo.com>
14746
14747         * m4/restrict.m4: Add copyright and copying conditions.
14748
14749 2004-11-30  Simon Josefsson  <jas@extundo.com>
14750
14751         * m4/base64.m4: New file.
14752
14753 2004-11-30  Simon Josefsson  <jas@extundo.com>
14754
14755         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
14756         base64.
14757
14758         * tests/test-base64.c: New file.
14759
14760         * modules/base64: New file.
14761
14762 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
14763
14764         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
14765         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
14766
14767         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
14768
14769 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
14770
14771         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
14772         (__getcwd.c): Don't restore errno; glibc doesn't.
14773         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
14774         first, falling back to our code only if its results look suspicious.
14775         Ensure that the resulting buffer is only as large as necessary.
14776
14777         * lib/readutmp.c: Include readutmp.h first.
14778         Include <errno.h>, since readutmp.h no longer does that.
14779         * lib/readutmp.h: Don't include <errno.h>,
14780         <sys/param.h>, <time.h>; not needed to establish interface.
14781         (errno): Remove decl.
14782         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
14783         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
14784         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
14785
14786 2004-11-28  Simon Josefsson  <jas@extundo.com>
14787
14788         * lib/base64.h, base64.c: New file.
14789
14790 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
14791
14792         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
14793
14794 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
14795
14796         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
14797         (Depends-on): Remove pathmax, same.  Add mempcpy.
14798         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
14799         (Makefile.am): Append getcwd.h to lib_SOURCES.
14800         (Include): Add getcwd.h.
14801         (Maintainer): Change from Jim Meyering to "all, glibc",
14802         since getdate now uses intended-for-glibc code.
14803         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
14804         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
14805
14806 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
14807
14808         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
14809         HP's ANSI C compiler.
14810         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
14811         Declaring int functions causes warnings on some modern systems and
14812         shouldn't be needed to compile on ancient ones.
14813         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
14814         defined.
14815
14816         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
14817         with the following changes.
14818         (__set_errno): Parenthesize properly.
14819         Include <stdbool.h>.
14820         (MIN, MAX, MATCHING_INO): New macros.
14821         (__getcwd): Define with prototype, not K&R form.
14822         Use heuristics to allocate default buffer on stack if possible.
14823         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
14824         behavior, and to avoid the PATH_MAX limit when computing
14825         ../../../../...
14826         Use MATCHING_INO to compare inode number to file.
14827         Check for arithmetic overflow in size calculations.
14828         Fix bug in reallocation of dot array that caused getcwd to fail
14829         on directories nested deeper than 75.
14830         Be more careful about saving errno on error.
14831         Do not use realloc; use only free+malloc, as this is a bit
14832         more flexible and avoids a needless copy operation.
14833         Do not inspect st_dev and st_ino for symbolic links; POSIX
14834         doesn't specify the latter.
14835         Check for closedir errors.
14836         Avoid needless casts.
14837         Use "#ifdef weak_alias" around weak_alias, to be like other
14838         glibc code.
14839         The following changes to getcwd.c have effect only when used in
14840         gnulib; they have no effect inside glibc proper.
14841         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
14842         as alloca isn't used.
14843         (alloca, __alloca): Likewise.
14844         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
14845         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
14846         unconditionally, as gnulib assumes C89 or better.
14847         Do not include <sys/param.h>.
14848         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
14849         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
14850         better.
14851         (NULL) [!defined NULL]: Remove; we assume C89 or better.
14852         Include <dirent.h> in a way that is compatible with modern Autoconf.
14853         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
14854         New macros, if not already defined.
14855         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
14856         Use "_LIBC", not "defined _LIBC", for consistency.
14857         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
14858         a mempcpy module.
14859         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
14860         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
14861         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
14862         credit only to Jim Meyering and adjust the copyright dates.
14863         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
14864         <stdlib.h>, <unistd.h>, "pathmax.h".
14865         Instead, include "xgetcwd.h" (first) and "getcwd.h".
14866         (INITIAL_BUFFER_SIZE): Remove.
14867         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
14868
14869 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
14870
14871         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
14872         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
14873         Use the _ONCE methods, for efficiency.
14874         Check for fcntl.h.  In test program, include <errno.h>
14875         and <fcntl.h> if available.  Remove old K&R cruft from
14876         test program.  Check for common errors in GNU/Linux,
14877         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
14878         don't do AC_LIBOBJ, as that's getcwd.m4's job.
14879         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
14880         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
14881         name accordingly.
14882         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
14883         accommodate new getcwd.c.
14884         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
14885         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
14886         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
14887         that's all we need now.
14888
14889 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
14890
14891         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
14892         argp-parse.c depends on getopt internals, that means we should
14893         always use our getopt, to be on the safe side.
14894         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
14895         order not to spoil the result of an eventual previous invocation
14896         of gl_GETOPT_SUBSTITUTE.
14897
14898 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
14899
14900         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
14901         redefinition warnings. To avoid them, include the defines
14902         in `#if !defined __need_getopt ... #endif'. The only place
14903         where __getopt_argv_const is used is in definitions
14904         of getopt_long and getopt_long_only below, which are as well
14905         protected by `#ifndef __need_getopt'.
14906         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
14907         __need_getopt after including <stdio.h> and <unistd.h> These
14908         headers might have defined it.
14909
14910 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
14911
14912         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
14913
14914 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
14915
14916         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
14917         (futimens): New function, which uses futimes if available.
14918         (futimens, utimens): Support timespec==NULL, with same semantics
14919         as utime and utimens.
14920         * lib/utimens.h (futimens): New decl.
14921
14922 2004-11-23  Jim Meyering  <jim@meyering.net>
14923
14924         * lib/getopt_.h: Remove trailing blanks.
14925
14926 2004-11-23  Jim Meyering  <jim@meyering.net>
14927
14928         * lib/__fpending.c: Add comment.
14929
14930 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
14931
14932         * modules/canonicalize (Depends-on): Add xreadlink.
14933         Problem reported by James Youngman.
14934
14935 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
14936
14937         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
14938         New macros.
14939         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
14940         optopt): Use them instead of invoking ## directly; otherwise, the
14941         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
14942
14943 2004-11-19  Bruno Haible  <bruno@clisp.org>
14944
14945         * lib/strtok_r.c: Move comments from here...
14946         * lib/strtok_r.h: ... to here.
14947
14948 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
14949
14950         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
14951         implementations that mishandle size_t overflow.
14952
14953 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
14954
14955         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
14956         might fail.  Problem reported by Yoann Vandoorselaere.
14957         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
14958         implementations that mishandle size_t overflow.
14959
14960 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
14961
14962         * modules/canon-host (Depends-on): Add strdup.
14963
14964 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
14965
14966         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
14967
14968 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
14969
14970         * lib/canon-host.c: Include "strdup.h".
14971         (canon_host): Use getaddrinfo if available, so that IPv6 works.
14972         Use strdup instead of malloc/strcpy to duplicate strings.
14973
14974         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
14975         (human_space_before_unit): New constant.
14976         * lib/human.c (human_readable): Support it.
14977
14978         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
14979         (xgetcwd): Set errno correctly when failing.
14980         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
14981         the failure is actually due to a PATH_MAX problem.
14982
14983         Further getopt changes to make it more likely that glibc will
14984         buy the changes back.
14985         * lib/getopt.c (POSIXLY_CORRECT): New constant.
14986         (getopt): Use it, so to preserve glibc semantic
14987         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
14988         when compiling for libc.
14989         * lib/getopt_.h (__getopt_argv_const): Bring it back.
14990         (getopt_long, getopt_long_only): Use it.
14991
14992         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
14993         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
14994         (getopt): Argv is now char * const *, as per standard.
14995         (_getopt_internal_r, _getopt_internal): Argv is now char **,
14996         not char *__getopt_argv_const *.
14997         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
14998         _getopt_long_only_r): Likewise.
14999         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
15000         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
15001         _getopt_long_r, _getopt_long_only_r): Likewise.
15002         * lib/getopt_.h (__getopt_argv_const): Remove.
15003         (getopt): Argv is now char * const *, as per standard.
15004
15005         * lib/getdate.y (tORDINAL): New token.
15006         (day, relunit): Allow it for relative times.
15007         (relative_time_table): Use tORDINAL for ordinals.
15008
15009 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
15010
15011         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
15012         Document that "second" isn't allowed as an ordinal number.
15013
15014 2004-11-16  Jim Meyering  <jim@meyering.net>
15015
15016         * modules/closeout (Depends-on): Add fpending.
15017
15018 2004-11-15  Jim Meyering  <jim@meyering.net>
15019
15020         * lib/closeout.c: Include "__fpending.h" once again.
15021         Include <stdbool.h>.
15022         (close_stdout): Don't fail just because stdout was closed initially,
15023         since some programs don't write to stdout in the normal course of
15024         operation (other than --version and --help), and we don't want this
15025         function to make e.g. `touch file >&-' fail.
15026         But do fail if it was closed and someone has tried to write to it.
15027         E.g., `printf foo >&-' must fail.
15028
15029 2004-11-13  Jim Meyering  <jim@meyering.net>
15030
15031         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
15032
15033 2004-11-12  Simon Josefsson  <jas@extundo.com>
15034
15035         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
15036         small doc fix is still pending.
15037
15038 2004-11-11  Simon Josefsson  <jas@extundo.com>
15039
15040         * modules/strtok_r: New file.
15041
15042         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
15043         strtok_r.
15044
15045 2004-11-11  Simon Josefsson  <jas@extundo.com>
15046
15047         * m4/strtok_r.m4: New file.
15048
15049         * m4/getopt.m4: Replace opterr.
15050
15051 2004-11-11  Simon Josefsson  <jas@extundo.com>
15052
15053         * lib/strtok_r.h, strtok_r.c: New file.
15054
15055 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
15056
15057         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
15058         of replacing opterr, getopt, etc.  This should handle the
15059         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
15060
15061 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
15062
15063         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
15064         we can stop lying to compilers about the constness of argv when we
15065         are compiled outside glibc.
15066         (getopt, getopt_long, getopt_long_only): Use it.
15067         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
15068         _getopt_internal, getopt): Likewise.
15069         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
15070         _getopt_long_only_r): Likewise.
15071         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
15072         _getopt_long_r, _getopt_long_only_r): Likewise.
15073
15074         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
15075         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
15076         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
15077         the other external symbols.
15078         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
15079         declaration, since the above renaming now works around collisions.
15080
15081 2004-11-11  Jim Meyering  <jim@meyering.net>
15082
15083         * lib/linebreak.c: Remove trailing blanks.
15084         * lib/alloca_.h: Likewise.
15085         * lib/acosl.c: Likewise.
15086         * lib/euidaccess.c: Likewise.
15087         * lib/allocsa.h: Likewise.
15088
15089 2004-11-10  Simon Josefsson  <jas@extundo.com>
15090
15091         * m4/getaddrinfo.m4: New file.
15092
15093 2004-11-10  Simon Josefsson  <jas@extundo.com>
15094
15095         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
15096
15097 2004-11-10  Simon Josefsson  <jas@extundo.com>
15098
15099         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
15100         getaddrinfo.
15101
15102         * modules/getaddrinfo: New file.
15103
15104 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
15105
15106         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
15107
15108 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
15109
15110         * lib/mktime.c (SHR): New macro, which is a portable
15111         substitute for >> that should work even on Crays.
15112         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
15113         Problem reported by Mark D. Baushke in
15114         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
15115         * lib/getdate.y (SHR): Likewise.
15116         (tm_diff): Use it.
15117         * lib/strftime.c (SHR): Likewise.
15118         (tm_diff): Use it.
15119         * lib/quotearg.c (struct quoting_options): Use unsigned int for
15120         quote_these_too, so that right shifts are well defined.  All uses
15121         changed.
15122
15123 2004-11-10  Jim Meyering  <jim@meyering.net>
15124
15125         Ensure that no close failure goes unreported.
15126         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
15127         return early when it seems there's nothing to flush.
15128         Don't include __fpending.h.
15129
15130 2004-11-10  Jim Meyering  <jim@meyering.net>
15131
15132         * modules/closeout (Depends-on): Remove fpending.
15133
15134 2004-11-10  Jim Meyering  <jim@meyering.net>
15135
15136         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
15137
15138 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
15139
15140         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
15141         gl_FUNC_STRFTIME.
15142         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
15143         and AC_REQUIRE when possible, to avoid duplicate checks.
15144         Check for <wchar.h>.
15145
15146 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
15147
15148         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
15149
15150 2004-11-09  Bruno Haible  <bruno@clisp.org>
15151
15152         * m4/sockpfaf.m4: New file.
15153
15154 2004-11-05  Bruno Haible  <bruno@clisp.org>
15155
15156         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
15157         Reported by Mark D. Baushke <mdb@cvshome.org>.
15158
15159 2004-11-04  Bruno Haible  <bruno@clisp.org>
15160
15161         2004-09-11  Bruno Haible  <bruno@clisp.org>
15162                 * allocsa.valgrind: New file.
15163         2004-02-06  Bruno Haible  <bruno@clisp.org>
15164                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
15165                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
15166                 Reported by Christopher Seip <chris.seip@hp.com>.
15167
15168 2004-11-04  Bruno Haible  <bruno@clisp.org>
15169
15170         * modules/allocsa (Files): Add lib/allocsa.valgrind.
15171         (Makefile.am): Distribute it.
15172
15173 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
15174
15175         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
15176         with errno == ERANGE if the buffer is too small.
15177         Problem reported by Mark D. Baushke.
15178
15179 2004-11-03  Albert Chin  <china@thewrittenword.com>
15180             Paul Eggert  <eggert@cs.ucla.edu>
15181
15182         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
15183         equivalent, substitute $ac_type for equivalent type rather than
15184         blindly using uint32_t *always* which won't work if uint32_t is not
15185         available.  Define _UINT32_T to work around typedef of uint32_t if
15186         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
15187         2.5.1.
15188
15189 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
15190
15191         * m4/jm-macros.m4: Sync from coreutils.
15192         (gl_MACROS): Check for mbrlen, for pathchk.
15193         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
15194
15195 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
15196
15197         * lib/xreadlink.c (MAXSIZE): New macro.
15198         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
15199         size does not exceed MAXSIZE.  Avoid cast.
15200         As suggested by Mark D. Baushke in
15201         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
15202         if readlink fails with buffer size just under MAXSIZE, try again
15203         with MAXSIZE.
15204
15205 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
15206
15207         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
15208
15209 2004-11-02  Derek R. Price  <derek@ximbiot.com>
15210         and  Paul Eggert  <eggert@cs.ucla.edu>
15211
15212         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
15213         (get_date): Overparenthesize to avoid GCC warning.
15214
15215 2004-11-02  Bruno Haible  <bruno@clisp.org>
15216
15217         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
15218         returns void.
15219
15220 2004-11-02  Bruno Haible  <bruno@clisp.org>
15221
15222         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
15223         function returns void.
15224
15225 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
15226
15227         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
15228         fflush_unlocked, flockfile, funlockfile, funlockfile,
15229         fputs_unlocked, putc_unlocked.
15230
15231 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
15232
15233         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
15234         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
15235         already declared.
15236
15237 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
15238
15239         * modules/getdate (Files): Add doc/getdate.texi.
15240         (Depends-on): Add setenv, xalloc.
15241
15242 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
15243
15244         * lib/getdate.y: Add support for TZ="foo" within a date string.
15245         Fix some bugs near time_t boundaries.  Reject dates with
15246         out-of-range components, e.g., "Sept 31".
15247         Include <stdlib.h>, "setenv.h", "xalloc.h".
15248         (ISDIGIT_LOCALE): Remove; unused.
15249         Note that the TZ and time functions used here are not reentrant.
15250         (mktime_ok, get_tz): New functions.
15251         (TZBUFSIZE): New constant.
15252         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
15253         This requires that we sometimes generate our own TZ="XXX..." setting.
15254
15255 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
15256
15257         * doc/getdate.texi: New file, from coreutils with modifications for
15258         the new TZ parsing.
15259
15260 2004-10-27  Derek R. Price  <derek@ximbiot.com>
15261
15262         * lib/mktime.c (not_equal_tm): Remove redundant check.
15263
15264 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
15265
15266         * modules/regex (lib_SOURCES): Add regex.c.
15267         Reported by James Youngman in
15268         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
15269
15270 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
15271
15272         * lib/getdate.y: Use Bison 1.875 features, and some minor
15273         code cleanups.  This change does not affect semantics.
15274         Don't include <stdlib.h>; no longer needed.
15275         Don't include unlocked-io.h; only the "#if TEST" code uses
15276         stdio, and performance isn't crucial there.
15277         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
15278         Bison 1.875 features as described below.
15279         All uses of "PC." replaced by "pc->".
15280         (YYSTYPE): Add a forward declaration.
15281         (yylex, yyerror): Use full prototypes in forward decls.
15282         Use "%pure-parser" rather than obsolescent "%pure_parser".
15283         Use %parse-param and %lex-param instead of obsolescent
15284         YYPARSE_PARAM and YYLEX_PARAM.
15285         (meridian_table, month_and_day_table, time_units_table,
15286         relative_time_table, time_zone_table, military_table,
15287         lookup_zone, lookup_word, get_date):
15288         Use NULL instead of 0 where appropriate.
15289         (to_hour): Avoid abort (), to avoid a dependency on
15290         stdlib.h.
15291         (yyerror, yylex): Now accepts parser_control * arg.
15292         (main) [TEST]: Use '\0' rather than 0 for char.
15293
15294 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
15295
15296         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
15297
15298 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
15299
15300         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
15301         It's now the caller's responsibility to handle the case where
15302         !HAVE_GETPAGESIZE && !defined getpagesize.
15303
15304         * lib/mktime.c (leapyear): Arg is long int, not int.
15305
15306 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
15307
15308         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
15309
15310 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
15311
15312         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
15313         missing.  Problem reported by James Youngman.
15314
15315 2004-10-16  Simon Josefsson  <jas@extundo.com>
15316
15317         * gnulib-tool: Fix comments.  Fix parse problem.
15318         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
15319
15320 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
15321
15322         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
15323         implementation of getopt_long.  Problem reported by Alexander Taler in:
15324         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
15325
15326 2004-10-15  Bruno Haible  <bruno@clisp.org>
15327
15328         * gnulib-tool: Untabify. Initialize supplied_libname.
15329         (func_usage): More homogenous output.
15330         (func_modules_transitive_closure, func_modules_to_filelist,
15331         func_emit_lib_Makefile_am): New functions.
15332         (func_import): New function, extracted from big case statement. Use
15333         func_get_license, func_modules_transitive_closure,
15334         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
15335         opt_lgpl. Don't use test -a, as it's not portable.
15336         (func_create_testdir): Use func_modules_transitive_closure,
15337         func_modules_to_filelist, func_emit_lib_Makefile_am.
15338
15339 2004-10-15  Bruno Haible  <bruno@clisp.org>
15340
15341         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
15342
15343 2004-10-15  Bruno Haible  <bruno@clisp.org>
15344
15345         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
15346         the portions belonging to each module.
15347         Suggested by Derek Robert Price <derek@ximbiot.com>.
15348
15349 2004-10-12  Simon Josefsson  <jas@extundo.com>
15350
15351         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
15352         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
15353         to real functions.
15354
15355 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
15356
15357         * modules/vsnprintf: New file.
15358
15359 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
15360
15361         * m4/vsnprintf.m4: New file.
15362
15363 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
15364
15365         * lib/vsnprintf.h: New file.
15366         * lib/vsnprintf.c: New file.
15367
15368 2004-10-11  Bruno Haible  <bruno@clisp.org>
15369
15370         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
15371         vsnprintf.
15372
15373 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
15374
15375         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
15376
15377 2004-10-07  Bruno Haible  <bruno@clisp.org>
15378
15379         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
15380         fits into the provided buffer.
15381
15382 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
15383
15384         * lib/diacrit.c, diacrit.h: Add GPL notice.
15385
15386         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
15387         notice.
15388         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
15389         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
15390         This avoids a potential constant-folding bug.
15391
15392 2004-10-05  Bruno Haible  <bruno@clisp.org>
15393
15394         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
15395         for the declaration of strsep.
15396
15397 2004-10-05  Bruno Haible  <bruno@clisp.org>
15398
15399         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
15400
15401 2004-10-04  Simon Josefsson  <jas@extundo.com>
15402
15403         * modules/memmem: New file.
15404         * tests/test-memmem.c: New file.
15405         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
15406
15407 2004-10-04  Simon Josefsson  <jas@extundo.com>
15408
15409         * m4/memmem.m4: New file.
15410
15411 2004-10-04  Simon Josefsson  <jas@extundo.com>
15412
15413         * lib/memmem.h: New file.
15414         * lib/memmem.c: New file, taken from glibc.
15415
15416 2004-10-04  Simon Josefsson  <jas@extundo.com>
15417
15418         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
15419         '#ifdef USE_UNLOCKED_IO'.
15420
15421 2004-10-04  Simon Josefsson  <jas@extundo.com>
15422
15423         * config/srclist.txt: Add memmem from glibc.
15424
15425 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
15426
15427         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
15428
15429         * modules/argmatch, modules/argp, modules/closeout, modules/error,
15430         modules/exclude, modules/getdate, modules/getline,
15431         modules/getndelim2, modules/getpass, modules/getpass-gnu,
15432         modules/getusershell, modules/linebuffer, modules/md5,
15433         modules/mountlist, modules/posixtm, modules/readtokens,
15434         modules/readutmp, modules/regex, modules/sha1,
15435         modules/version-etc, modules/yesno:
15436         Remove dependency on unlocked-io.
15437
15438 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
15439
15440         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
15441
15442         * m4/unlocked-io.m4: Add copyright notice.
15443         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
15444
15445 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
15446
15447         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
15448         * lib/xmalloc.c (xmemdup): Likewise.
15449         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
15450         XFREE): Remove these long-obsolescent macros.
15451         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
15452         * lib/xstrdup.c: Remove.
15453
15454         * lib/regex.c (re_comp): Cast gettext return value to char *,
15455         Problem reported by Martin Neitzel via Mark D. Baushke.
15456
15457 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
15458
15459         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
15460         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
15461         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
15462         regex.c, sha1.c, version-etc.c, yesno.c:
15463         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
15464         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
15465         the includer's responsibility.
15466
15467         Sync from coreutils.
15468
15469         * lib/modechange.c (mode_compile): Don't decrement a pointer that
15470         points to the start of a string, as the C Standard says the
15471         resulting behavior is undefined.
15472
15473         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
15474         simple -> simple_backups, numbered_existing ->
15475         numbered_existing_backups, numbered -> numbered_backups
15476         to avoid shadowing problems.  All uses changed.
15477         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
15478         * lib/backupfile.c (check_extension, numbered_backup):
15479         Rename locals to avoid shadowing 'basename'.
15480         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
15481         once.
15482
15483         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
15484         * lib/.cvsignore: Add getopt.h.
15485
15486 2004-10-04  Bruno Haible  <bruno@clisp.org>
15487
15488         * modules/README: New file.
15489         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
15490         not a module.
15491
15492 2004-10-02  Jim Meyering  <jim@meyering.net>
15493
15494         * lib/dirfd.h, getpagesize.h: Add copyright notice.
15495
15496 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
15497
15498         * modules/strsep: New file.
15499
15500 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
15501
15502         * m4/strsep.m4: New file.
15503
15504 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
15505
15506         * lib/strsep.h: New file.
15507         * lib/strsep.c: New file.
15508
15509 2004-10-01  Simon Josefsson  <jas@extundo.com>
15510
15511         * lib/snprintf.c (snprintf): Handle size==0.
15512
15513 2004-10-01  Simon Josefsson  <jas@extundo.com>
15514             Bruno Haible  <bruno@clisp.org>
15515
15516         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
15517         (snprintf): Declare 'args'.
15518
15519 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
15520
15521         * lib/snprintf.c: Remove comments as to why each header is needed.
15522
15523 2004-10-01  Bruno Haible  <bruno@clisp.org>
15524
15525         * MODULES.html.sh: Add strsep.
15526
15527 2004-09-30  Simon Josefsson  <jas@extundo.com>
15528
15529         * modules/snprintf: New file.
15530
15531 2004-09-30  Simon Josefsson  <jas@extundo.com>
15532
15533         * m4/snprintf.m4: New file.
15534
15535 2004-09-30  Simon Josefsson  <jas@extundo.com>
15536
15537         * lib/snprintf.h, lib/snprintf.c: New files.
15538
15539 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
15540
15541         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
15542         (hol_entry_help): Never translate an empty string.
15543         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
15544         * lib/argp.h (OPTION_NO_TRANS): New option.
15545
15546 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
15547
15548         * modules/argp (Maintainer): Replace Simon Josefsson
15549         by Sergey Poznyakoff.
15550
15551 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
15552
15553         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
15554         changes merged back into glibc.
15555
15556 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
15557
15558         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
15559
15560 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
15561
15562         * lib/xvasprintf.c: Include xalloc.h.
15563         (xvasprintf): Use xalloc_die, not xmalloc_die.
15564
15565 2004-09-29  Bruno Haible  <bruno@clisp.org>
15566
15567         * modules/alloca-opt: New file, derived from modules/alloca.
15568         * modules/allocsa: Depend on alloca-opt instead of alloca.
15569         * modules/setenv: Likewise.
15570         * modules/vasnprintf: Likewise.
15571         * MODULES.html.sh: Add alloca-opt.
15572
15573 2004-09-28  Simon Josefsson  <jas@extundo.com>
15574
15575         * gnulib-tool: New parameter --lgpl, to asseert that modules are
15576         LGPL, and to replace license template from GPL to LGPL.
15577
15578 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
15579
15580         * modules/dummy: Change license to LGPL.
15581
15582 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
15583
15584         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
15585
15586 2004-09-24  Simon Josefsson  <jas@extundo.com>
15587
15588         * modules/minmax (License): Change from GPL to LGPL.
15589
15590 2004-09-23  Simon Josefsson  <jas@extundo.com>
15591
15592         * gnulib-tool (--import): Typo.
15593
15594 2004-09-23  Simon Josefsson  <jas@extundo.com>
15595
15596         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
15597
15598 2004-09-22  Bruno Haible  <bruno@clisp.org>
15599
15600         * modules/*: Add 'License' field.
15601         * gnulib-tool: Accept --extract-license option.
15602         (func_get_license): New function.
15603
15604 2004-09-21  Bruno Haible  <bruno@clisp.org>
15605
15606         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
15607         Reported by Simon Josefsson.
15608
15609 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
15610
15611         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
15612         gl_AC_TYPE_LONG_LONG.
15613
15614 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
15615
15616         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
15617
15618 2004-09-18  Simon Josefsson  <jas@extundo.com>
15619         and  Paul Eggert  <eggert@cs.ucla.edu>
15620
15621         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
15622         calls with autoreconf.  Define GL_LIB.
15623
15624 2004-09-14  Karl Berry  <karl@gnu.org>
15625
15626         * config/srclist.txt: unsync setenv.c, sigh.
15627
15628 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
15629
15630         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
15631         Problem reported by Bruno Haible in:
15632         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
15633
15634 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
15635
15636         * config/srclist.txt: Comment out argp-pvh.c.
15637
15638 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
15639
15640         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
15641         in case some system header has #define'd it.  Problem reported by
15642         Soeren D. Schulze in
15643         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
15644
15645 2004-09-09  Karl Berry  <karl@gnu.org>
15646
15647         * regex.[ch]: delete from the root.  These were supposed to be
15648                 synced with emacs cvs, but this has not happened for about
15649                 a year, and anyway nothing else uses emacs regex.[ch].
15650                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
15651                 lib/regex[.ch] is untouched.
15652
15653 2004-09-09  Bruno Haible  <bruno@clisp.org>
15654
15655         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
15656
15657 2004-09-09  Bruno Haible  <bruno@clisp.org>
15658
15659         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
15660         modifications.
15661         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
15662
15663 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
15664
15665         * modules/xvasprintf: New file.
15666         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
15667
15668 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
15669
15670         * lib/xvasprintf.h: New file.
15671         * lib/xvasprintf.c: New file.
15672         * lib/xasprintf.c: New file.
15673
15674 2004-09-08  Bruno Haible  <bruno@clisp.org>
15675
15676         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
15677
15678 2004-09-08  Bruno Haible  <bruno@clisp.org>
15679
15680         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
15681         length is > INT_MAX.
15682         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
15683         more.
15684
15685 2004-09-08  Bruno Haible  <bruno@clisp.org>
15686
15687         * lib/stdint_.h: New file, taken from GNU clisp.
15688
15689 2004-09-08  Bruno Haible  <bruno@clisp.org>
15690             Oskar Liljeblad  <oskar@osk.mine.nu>
15691
15692         * modules/stdint: New file.
15693         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
15694
15695 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
15696
15697         Import from coreutils.
15698         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
15699         strings on unbounded length.  alloca's performance benefits aren't
15700         that important here.
15701         (V_STRDUP): Remove.
15702         (parse_with_separator): New function, with most of the internals
15703         of the old parse_user_spec.  Allow user to omit both user and group,
15704         for compatibility with FreeBSD.
15705         Clone only the user name, not the entire spec.
15706         Do not set *uid, *gid unless entirely successful.
15707         Avoid memory leak in some failing cases.
15708         Fix regression for USER.GROUP reported by Dmitry V. Levin in
15709         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
15710         (parse_user_spec): Rewrite to use parse_with_separator.
15711
15712 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
15713
15714         * modules/userspec: Don't depend on alloca.
15715
15716 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
15717
15718         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
15719
15720 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
15721
15722         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
15723         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
15724         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
15725
15726 2004-08-16  Simon Josefsson  <jas@extundo.com>
15727
15728         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
15729         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
15730         Add --dry-run for --import.
15731         Let user provided command line parameters override configure.ac
15732         settings.
15733
15734 2004-08-12  Simon Josefsson  <jas@extundo.com>
15735
15736         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
15737         as discussed with Paul Eggert in threads rooted at
15738         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
15739         and
15740         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
15741         Before, the test was empty, and relied on ELIDE_CODE in source
15742         code.)
15743         (gl_PREREQ_GETOPT): New macro.
15744         (gl_GETOPT): Use them.
15745
15746 2004-08-12  Simon Josefsson  <jas@extundo.com>
15747
15748         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
15749         * lib/getopt_.h: Renamed from getopt.h.
15750
15751 2004-08-12  Simon Josefsson  <jas@extundo.com>
15752
15753         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
15754         Change default library name from libfoo to libgnu.
15755         Now, if you have a configure.ac that says:
15756                 gl_SOURCE_BASE(gl)
15757                 gl_M4_BASE(gl/m4)
15758                 gl_MODULES(error getopt etcetera)
15759                 gl_INIT
15760         you can import all you need by running:
15761                 ../gnulib/gnulib-tool --import
15762
15763         * modules/getopt (Files): Rename getopt.h to getopt_.h.
15764         (Makefile.am): Rewrite, use logic from argz.
15765         (Include): Use <getopt.h> instead of "getopt.h".
15766
15767 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
15768
15769         * modules/argp (Files): Add m4/unlocked-io.m4.
15770         (Depends-on): Add extensions.
15771
15772 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
15773
15774         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
15775         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
15776         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
15777         Check for program_invocation_name, program_invocation_short_name,
15778         flockfile, funlockfile, features.h, _getopt_long_only_r.
15779
15780 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
15781
15782         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
15783         its complicated substitute.
15784         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
15785         and program_invocation_name.
15786         (__argp_basename) [!_LIBC]: Remove; the only use was
15787         replaced by its body.
15788         (__argp_short_program_name): Change condition from
15789         !defined __argp_short_program_name to
15790         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
15791         to match argp-namefrob.h.
15792         (__argp_failure): Don't assume strerror_r returns char *.
15793         * lib/argp-parse.c (N_): Define unconditionally.
15794         (argp_default_options): Fill out initializers with 0 to avoid
15795         gcc warnings.
15796
15797 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
15798
15799         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
15800         getopt1.c.
15801
15802 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
15803
15804         Merge from coreutils.
15805
15806         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
15807
15808         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
15809         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
15810
15811 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
15812
15813         Merge from coreutils.
15814
15815         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
15816         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
15817         for Reliant Unix 5.43.
15818
15819         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
15820         (union fooround): Use uintmax_t, not long int.
15821         The rest is a merge from libc:
15822         [defined _LIBC]: Include <shlib-compat.h>.
15823         (_obstack) [defined _LIBC]: Remove after 2.3.4.
15824
15825         * lib/settime.c (settime): Recode to avoid warning with
15826         Sun Forte C 6U2.
15827
15828         * lib/strverscmp.c: Convert to UTF-8.
15829
15830 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
15831
15832         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
15833         m4/uintmax_t.m4.
15834
15835 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
15836
15837         * modules/xalloc-die: New file.
15838         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
15839
15840         * modules/md5 (Files): Add m4/uint32_t.m4.
15841         * modules/sha1: Renamed from modules/sha.
15842         (Files):
15843         Rename lib/sha.h to lib/sha1.h.
15844         Rename lib/sha.c to lib/sha1.c.
15845         Rename m4/sha.m4 to m4/sha1.m4.
15846         (lib_SOURCES): Likewise.
15847         (configure.ac): Rename gl_SHA to gl_SHA1.
15848         (Include): sha.h -> sha1.h.
15849
15850 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
15851
15852         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
15853         * m4/sha1.m4: Renamed from sha.m4.
15854         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
15855
15856 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
15857
15858         * lib/obstack.h (obstack_empty_p):
15859         Don't assume that chunk->contents is suitably aligned.
15860         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
15861         Likewise. Problem reported by Benno in
15862         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
15863
15864         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
15865         readable.  This could be improved further but it'd take some work.
15866
15867 2004-08-08  Simon Josefsson  <jas@extundo.com>
15868
15869         * modules/xgethostname (Depends-on): Remove exit and error (not
15870         used).
15871
15872         * modules/getpass-gnu: Add getpass.h.
15873         (Depends-on): Add stdbool.
15874         * modules/getpass: Add getpass.h.
15875
15876 2004-08-08  Simon Josefsson  <jas@extundo.com>
15877
15878         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
15879         Check getpass declaration.
15880
15881 2004-08-08  Simon Josefsson  <jas@extundo.com>
15882
15883         * lib/xgethostname.c: Don't include error.h (not used).
15884
15885         * lib/getpass.h: Add.
15886         * lib/getpass.c: Include getpass.h first.
15887
15888 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
15889
15890         * lib/xalloc-die.c: New file.
15891         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
15892         All uses removed.
15893         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
15894         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
15895         xalloc-die.c.
15896         (_, N_, xalloc_die): Move to xalloc-die.c.
15897         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
15898         so that we needn't mess with xalloc_msg_memory_exhausted.
15899
15900         * lib/sha1.h: Renamed from sha.h.
15901         (SHA1_H): Renamed from _SHA_H.
15902         (sha1_ctx): Renamed from sha_ctx.
15903         (sha1_init_ctx): Renamed from sha_init_ctx.
15904         (sha1_process_block): Renamed from sha_process_block.
15905         (sha1_process_bytes): Renamed from sha_process_bytes.
15906         (sha1_finish_ctx): Renamed from sha_finish_ctx.
15907         (sha1_read_ctx): Renamed from sha_read_ctx.
15908         (sha1_stream): Renamed from sha_stream.
15909         (sha1_buffer): Renamed from sha_buffer.
15910         * lib/sha1.c: Likewise; renamed from sha.c.
15911         Do not include <sys/types.h>.
15912         Include <stddef.h> rather than <stdlib.h>.
15913
15914 2004-08-08  Bruno Haible  <bruno@clisp.org>
15915
15916         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
15917         FILESYSTEM_PREFIX_LEN.
15918         * lib/progreloc.c: Likewise.
15919         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
15920
15921 2004-08-06  Simon Josefsson  <jas@extundo.com>
15922
15923         * modules/progname (Depends-on): Don't depend on stdbool.
15924
15925 2004-08-06  Simon Josefsson  <jas@extundo.com>
15926
15927         * modules/getsubopt: New file.
15928         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
15929         getsubopt.
15930
15931 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
15932
15933         More merge from coreutils.
15934
15935         * m4/utimens.m4, m4/utimecmp.m4: New files.
15936         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
15937         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
15938         prereq.m4, sha.m4: Import changes from coreutils.
15939
15940 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
15941
15942         More merge from coreutils.
15943         * modules/raise, modules/readtokens0, modules/utimens:
15944         * modules/utimecmp, module/xnanosleep: New files.
15945         * modules/strftime: Add lib/strftime.h.
15946         Change include from <time.h> to "strftime.h".
15947         * modules/yesno: Add lib/yesno.h.
15948         * modules/backupfile: Remove lib/addext.c.
15949         * modules/euidaccess: Add stat-macros.h.
15950         * modules/canonicalize, modules/euidaccess,
15951         modules/filemode, modules/lchown, modules/makepath,
15952         modules/rmdir, modules/stat: Likewise.
15953
15954 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
15955
15956         Merge from tar.
15957         * lib/argp-help.c (make_hol, hol_append): Don't assume that
15958         SIZE_MAX is a valid preprocessor constant.
15959         (__argp_basename): Change from "#ifndef _LIBC"
15960         to "#ifndef __argp_short_program_name", so that
15961         we don't compile these functions for tar.
15962
15963         More merges from coreutils.
15964         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
15965         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
15966         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
15967         * lib/addext.c: Remove; no longer needed.
15968         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
15969         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
15970         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
15971         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
15972         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
15973         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
15974         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
15975         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
15976         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
15977         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
15978         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
15979         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
15980         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
15981         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
15982         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
15983         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
15984         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
15985         Import changes from coreutils.
15986
15987 2004-08-05  Simon Josefsson  <jas@extundo.com>
15988
15989         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
15990
15991 2004-08-05  Simon Josefsson  <jas@extundo.com>
15992
15993         * m4/getsubopt.m4: New file.
15994
15995 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
15996
15997         Merge from coreutils.
15998
15999         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
16000         * m4/getcwd-path-max.m4: New files.
16001
16002         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
16003         FILESYSTEM_PREFIX_LEN ->
16004         FILE_SYSTEM_PREFIX_LEN.
16005         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
16006         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
16007         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
16008         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
16009
16010         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
16011         prerequisite modules now handle the DOS stuff.
16012         Don't check for unistd.h.
16013
16014 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
16015
16016         Merge from coreutils.
16017
16018         * lib/.gdb-history: Remove; this doesn't belong here.
16019
16020         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
16021         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
16022         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
16023         * lib/getcwd.c: New files.
16024
16025         * lib/dirname.h: Include <stdbool.h>.
16026         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
16027         for consistency with POSIX terminology.  All uses changed.
16028         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
16029         (strip_trailing_slashes): Use bool for booleans.
16030         * lib/stripslash.c (strip_trailing_slashes): Likewise.
16031
16032         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
16033         sometimes returns a positive errno value even when it succeeds.
16034         (print_errno_message) [!LIBC]: Fall back on strerror if
16035         __strerror_r fails.
16036
16037         * lib/path-concat.c (mempcpy): Don't define if a system header defines
16038         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
16039         (longest_relative_suffix): New function.
16040         (path_concat): Use it.  Assume first argument is not NULL.
16041         Port to DOS.  Omit redundant separators.
16042         Report an error instead of returning NULL.
16043         Use mempcpy instead of memcpy.
16044         (xpath_concat): Remove: not declared or used.
16045
16046         * lib/same.h: Include <stdbool.h>
16047         (same_name): Return bool, not int.
16048         * lib/same.c (same_name): Likewise.
16049         (errno): Don't declare; we assume C89 or better now.
16050
16051         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
16052         if not already defined.
16053
16054         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
16055         * lib/dup-safer.c (errno): Likewise.
16056
16057 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
16058
16059         Merge from coreutils.
16060         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
16061         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
16062         * modules/path-concat: Don't depend on strdup.
16063
16064 2004-08-03  Simon Josefsson  <jas@extundo.com>
16065
16066         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
16067         * lib/progname.h: Don't include stdbool.h.
16068
16069 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
16070
16071         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
16072         * MODULES.html.sh (func_all_modules): Remove fatal.
16073
16074 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
16075
16076         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
16077
16078 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
16079
16080         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
16081         working.
16082
16083 2004-08-02  Simon Josefsson  <jas@extundo.com>
16084
16085         * lib/getsubopt.h: New file, with comments from Bruno Haible.
16086         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
16087         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
16088
16089 2004-08-01  Simon Josefsson  <jas@extundo.com>
16090
16091         * lib/xgetdomainname.c: Include stdlib.h, for free().
16092
16093 2004-07-19  Bruno Haible  <bruno@clisp.org>
16094
16095         * MODULES.html.sh (func_all_modules): Add dummy.
16096
16097 2004-07-16  Simon Josefsson  <jas@extundo.com>
16098
16099         * modules/dummy: New file.
16100
16101 2004-07-16  Simon Josefsson  <jas@extundo.com>
16102
16103         * lib/dummy.c: New file.
16104
16105 2004-07-16  Bruno Haible  <bruno@clisp.org>
16106
16107         * lib/backupfile.h: Add extern "C" for C++.
16108         * lib/closeout.h: Likewise.
16109         * lib/copy-file.h: Likewise.
16110         * lib/findprog.h: Likewise.
16111         * lib/full-write.h: Likewise.
16112         * lib/pathname.h: Likewise.
16113         * lib/progname.h: Likewise.
16114         * lib/stpcpy.h: Likewise.
16115         * lib/stpncpy.h: Likewise.
16116         * lib/strcase.h: Likewise.
16117         * lib/strstr.h: Likewise.
16118         * lib/xalloc.h: Likewise.
16119
16120         * lib/mbswidth.h: Add extern "C" for C++.
16121         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
16122
16123 2004-07-13  Robert Millan  <robertmh@gnu.org>
16124
16125         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
16126
16127 2004-07-09  Simon Josefsson  <jas@extundo.com>
16128
16129         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
16130         failed without this.)
16131
16132 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
16133
16134         * modules/chown (Files): Add lib/fchown-stub.c, since
16135         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
16136
16137 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
16138
16139         * lib/fchown-stub.c: New file.
16140
16141 2004-06-24  Jim Meyering  <jim@meyering.net>
16142
16143         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
16144
16145 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
16146
16147         * modules/argz: Omit "#include".
16148
16149         * MODULES.html.sh (func_all_modules): Add calloc, to match
16150         2004-06-01 addition of calloc module.
16151
16152 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
16153
16154         * m4/argz.m4: New file, which is autoupdated from libtool.
16155
16156 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
16157
16158         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
16159         libtool.
16160
16161 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
16162
16163         * config/srclist-update: Don't insist on "USA." before the
16164         close-comment, as libtool omits the period and puts the */ on a
16165         separate line.
16166         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
16167         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
16168
16169 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
16170
16171         * modules/argz: New file.
16172         * MODULES.html.sh (func_all_modules): Add argz.
16173
16174 2004-06-12  Jim Meyering  <jim@meyering.net>
16175         and  Paul Eggert  <eggert@cs.ucla.edu>
16176
16177         * modules/hash (Files): Add lib/xalloc.h.
16178         * modules/pipe (Depends-on): Add wait-process.
16179         * modules/stat (Depends-on): Add xalloc.
16180         * modules/userspec (Files): Add lib/userspec.h.
16181         * modules/xstrto
16182
16183         Upgrade from gettext-0.13.
16184         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
16185         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
16186         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
16187
16188 2004-06-10  Jim Meyering  <jim@meyering.net>
16189
16190         * lib/calloc.c: New file.
16191
16192 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
16193
16194         * lib/getdate.y (yylex): Allow space between sign and number.
16195         Problem reported by Dan Jacobson.
16196
16197 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
16198
16199         Merge from coreutils CVS.
16200
16201         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
16202         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
16203         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
16204         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
16205         xstrtol.m4: Fix copyright date and/or serial number.
16206
16207         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
16208         See if we need an fchown replacement.
16209         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
16210         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
16211         and use the replacement function if we detect either defect.
16212
16213         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
16214         gl_UTIMECMP.
16215
16216 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
16217         and  Jim Meyering  <jim@meyering.net>
16218
16219         Merge from coreutils CVS.
16220
16221         * lib/stat-macros.h: New file, with contents from file-type.h
16222         and coreutils' system.h.
16223         * lib/file-type.c: Include "stat-macros.h".
16224         * lib/file-type.h (file_type): Move all macro definitions to new file,
16225         stat-macros.h.
16226
16227         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
16228         Wrap old code with this conditional.
16229         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
16230         function that does not dereference symlinks.
16231         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
16232
16233         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
16234         dependency problems.
16235         (xreadlink): Accept new arg SIZE, for efficiency.
16236         All decls and uses changed.
16237         * lib/xreadlink.h: Include <stddef.h>, for size_t.
16238
16239         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
16240         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
16241
16242         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
16243         sysexits.h.
16244
16245 2004-06-01  Jim Meyering  <jim@meyering.net>
16246
16247         * m4/calloc.m4: New file.
16248
16249 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
16250
16251         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
16252         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
16253         Also, fix a typo in a diagnostic.
16254
16255 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
16256
16257         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
16258         or AC_FUNC_REALLOC.
16259
16260 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
16261
16262         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
16263         macros to be defined.
16264         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
16265         the allocator returns NULL because the requested size is zero.
16266
16267 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
16268
16269         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
16270         var.  Add comment explaining why libc still defines it.  This
16271         merges the following patch from glibc:
16272         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
16273
16274 2004-05-20  Andreas Schwab  <schwab@suse.de>
16275
16276         * m4/free.m4: Replace free if it not known to work, not the other
16277         way round.
16278
16279 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
16280
16281         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
16282         present in glibc since revision 1.1 of this file.
16283         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
16284         obstack_alignment_mask, obstack_alloc, obstack_base,
16285         obstack_blank, obstack_blank_fast, obstack_chunk_size,
16286         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
16287         obstack_grow0, obstack_init, obstack_int_grow,
16288         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
16289         obstack_next_free, obstack_object_size, obstack_ptr_grow,
16290         obstack_ptr_grow_fast, obstack_room): Remove declarations of
16291         nonexistent functions.
16292
16293 2004-05-18  Karl Berry  <karl@gnu.org>
16294
16295         * config/srclist.txt: break link for vasnprintf.c.
16296
16297 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
16298
16299         Port obstack to the AS/400, where pointers are 16 bytes wide and
16300         you cannot cast an integer to a valid pointer.  This patch is
16301         currently waiting to be integrated into glibc; see
16302         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
16303
16304         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
16305         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
16306         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
16307         (struct obstack): temp member is now a union of a pointer and
16308         an integer, instead of an integer.  All integer uses changed.
16309         This does not affect the physical layout of struct obstack,
16310         except on hosts (like the AS/400) where the size or alignment of
16311         void * is greater than that of ptrdiff_t.
16312         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
16313         __STDC__)]: Store temporary in pointer member of union, not
16314         integer member.
16315         * lib/obstack.c: Include <stddef.h>, for offsetof.
16316         (struct fooalign): Remove; it doesn't need a name.
16317         (union fooround): Change double to long double, and add void *.
16318         (DEFAULT_ALIGNMENT): Use offsetof to compute.
16319         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
16320         not a macro.  Hence the values are always int; so remove all
16321         casts-to-int in uses.
16322
16323 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
16324
16325         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
16326         we can get this patch merged into glibc.
16327
16328 2004-05-17  Derek R. Price  <derek@ximbiot.com>
16329             Paul Eggert  <eggert@cs.ucla.edu>
16330
16331         * m4/argp: Depend on alloca.
16332
16333 2004-05-17  Derek R. Price  <derek@ximbiot.com>
16334             Paul Eggert  <eggert@cs.ucla.edu>
16335
16336         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
16337         freecoding.
16338
16339 2004-05-17  Bruno Haible  <bruno@clisp.org>
16340
16341         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
16342         precision that consists of a '.' followed by an empty digit string.
16343         Patch by Tor Lillqvist <tml@iki.fi>.
16344
16345 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
16346
16347         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
16348         for backward compatibility with older code.  We need our own
16349         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
16350         it under some other name, and our alloca.h will define it.
16351
16352 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
16353             Derek Price  <derek@ximbiot.com>
16354
16355         * lib/alloca.c: Include <alloca.h>, to get our interface.
16356         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
16357         include <alloca.h> first.  Use C89 prototype for alloca; this
16358         requires including <stddef.h> for size_t.  Use extern "C" if C++.
16359         Use #elif for simplicity, since we can assume C89 now.
16360         Don't try to source the system alloca.h since it will not be found
16361         and to prevent recursively including its replacement.
16362         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
16363         * lib/regex.c: Likewise.
16364
16365 2004-05-16  Derek Price  <derek@ximbiot.com>
16366             Paul Eggert  <eggert@cs.ucla.edu>
16367
16368         getline cleanup.  This changes the getndelim2 API: both order of
16369         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
16370         no delimiter).
16371
16372         * lib/getline.c: Don't include stddef.h or stdio.h, since our
16373         interface does that.
16374         (getline): Always use getdelim, so that we don't have two
16375         copies of this code.
16376         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
16377         if available.
16378         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
16379         (GETNDELIM2_MAXIMUM): New macro.
16380         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
16381         instead of the old practice of delim2==0.  All callers changed.
16382         Return -1 on overflow, instead of returning junk.
16383         Do not set *linesize unless allocation succeeds.
16384         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
16385         that we include sys/types.h.
16386         * lib/getnline.h: Likewise.
16387         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
16388         (getndelim2): Reorder arguments.
16389         * lib/getnline.c (getnline, getndelim):
16390         Don't discard the NMAX argument.
16391         (getnline): Invoke getndelim, to avoid code duplication.
16392         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
16393         of (size_t) -1 by callers of the getnline family.
16394
16395 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
16396
16397         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
16398         Check for gettimeofday.
16399         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
16400         Check for settimeofday, stime.
16401
16402 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
16403
16404         * lib/nanosleep.c (suspended): Change its type from int to
16405         sig_atomic_t volatile.
16406         (first_call): Make it private to rpl_nanosleep, and have it
16407         be zero initially as that's a bit faster.
16408         (my_usleep): Round up fractional times instead of truncating them,
16409         as this is the usual meaning for 'sleep'.
16410
16411         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
16412         doesn't work.
16413         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
16414         (ENOSYS): Define if not defined.
16415         (settime): Fall back on stime if it exists and settimeofday fails.
16416         But don't bother with fallbacks if a method fails with errno == EPERM.
16417
16418 2004-05-11  Jim Meyering  <jim@meyering.net>
16419
16420         Prior to this change, the save_cwd caller required read access to the
16421         current directory on most systems (ones with the fchdir function).
16422
16423         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
16424         fails, try write-only, and finally, resort to using xgetcwd.
16425
16426 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
16427
16428         * lib/obstack.c, obstack.h: Import changes from libc.
16429
16430 2004-04-28  Bruno Haible  <bruno@clisp.org>
16431
16432         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
16433         also implicitly appends .exe to executables.
16434         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
16435         accepts Windows pathnames.
16436         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
16437         Treat Cygwin like Windows, since it now accepts Windows pathnames.
16438         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
16439         Treat Cygwin like Windows, since it now accepts Windows pathnames.
16440         Reported by Derek Robert Price <derek@ximbiot.com>.
16441
16442 2004-04-21  Karl Berry  <karl@gnu.org>
16443
16444         * config/srclist.txt (localcharset.c): break sync.
16445
16446 2004-04-20  Paul Eggert  <eggert@twinsun.com>
16447
16448         * m4/host-os.m4: Add a copyright notice.
16449
16450 2004-04-20  Jim Meyering  <jim@meyering.net>
16451
16452         Change UTILS_ to gl_ in AC_DEFINE'd names.
16453         Change utils_- and jm_-prefixed variables, too.
16454         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
16455         UTILS_FUNC_MKDIR_TRAILING_SLASH.
16456         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
16457
16458         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
16459         Don't emit trailing blanks.
16460         Also rename jm_-prefixed variables to have gl_ prefix.
16461
16462         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
16463         Also rename jm_-prefixed variables to have gl_ prefix.
16464
16465         * m4/jm-macros.m4: Reflect the renamings.
16466         * m4/prereq.m4: Likewise.
16467
16468 2004-04-20  Jim Meyering  <jim@meyering.net>
16469
16470         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
16471         memory.
16472
16473 2004-04-20  Jim Meyering  <jim@meyering.net>
16474             Bruno Haible  <bruno@clisp.org>
16475
16476         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
16477         memory when realloc fails.
16478
16479 2004-04-19  Jim Meyering  <jim@meyering.net>
16480
16481         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
16482         now that readutmp.c may call `free (0)'.
16483
16484 2004-04-19  Bruno Haible  <bruno@clisp.org>
16485
16486         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
16487         * m4/inttypes_h.m4: Likewise.
16488         * m4/stdint_h.m4: Likewise.
16489         * m4/intmax_t.m4: Likewise.
16490         * m4/uintmax_t.m4: Likewise.
16491
16492 2004-04-18  Jim Meyering  <jim@meyering.net>
16493
16494         * m4/prereq.m4: Don't forbid jm_ prefix.
16495
16496         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
16497         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
16498         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
16499         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
16500         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
16501         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
16502         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
16503         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
16504         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
16505         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
16506         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
16507         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
16508         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
16509         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
16510         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
16511         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
16512         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
16513         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
16514         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
16515
16516 2004-04-18  Jim Meyering  <jim@meyering.net>
16517
16518         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
16519         failure, don't leak memory and do call END_UTMP_ENT.
16520
16521 2004-04-16  Jim Meyering  <jim@meyering.net>
16522
16523         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
16524         coreutils' stat program.
16525         (gl_PREREQ): Don't require jm_PREREQ_STAT.
16526
16527 2004-04-11  Paul Eggert  <eggert@twinsun.com>
16528
16529         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
16530         C89.
16531         (CHAR_BIT): Remove, since we assume C89.
16532         Include <stdint.h> if available, as per current Autoconf CVS advice.
16533
16534 2004-03-31  Jim Meyering  <jim@meyering.net>
16535
16536         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
16537         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
16538         * m4/xalloc.m4: Likewise.
16539
16540 2004-03-30  Paul Eggert  <eggert@twinsun.com>
16541
16542         Merge from coreutils.
16543
16544         * m4/inttostr.m4: New file.
16545         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
16546         Require AM_STDBOOL_H and gl_TIMESPEC instead.
16547         Require gl_CLOCK_TIME.
16548         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
16549
16550 2004-03-30  Paul Eggert  <eggert@twinsun.com>
16551
16552         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
16553         not bool, to be more consistent with Unix conventions.
16554         Suggested by Bruno Haible.
16555
16556         Merge from coreutils.
16557
16558         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
16559         * lib/umaxtostr.c: New files.
16560
16561         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
16562         the usual <time.h> dance.
16563         (get_date): Change signature to support fractional time stamps.
16564         All callers changed.
16565         * lib/getdate.y: Include "getdate.h" first, as we can now
16566         assume C89 and don't need to worry about 'const'.
16567         Similarly, include "unlocked-io.h" near start, not in middle.
16568         Include <limits.h>.
16569         (textint.value): Use long int rather than int.
16570         (textint.digits): Use size_t rather than int.
16571         (BILLION, LOG10_BILLION): New constants.
16572         (parser_control): New member rel_ns.  Members day_ordinal,
16573         time_zone, month, day, hour, minutes, rel_year, rel_month,
16574         rel_day, rel_hour, rel_minutes, rel_seconds
16575         are now long int, not int.  Member seconds is now struct timespec,
16576         not int.  New member timespec_seen.  Members dates_seen, days_seen,
16577         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
16578         not int.
16579         (%union.intval): Now long int, not int.
16580         New member timespec.
16581         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
16582         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
16583         (spec): Now is a timespec or an item list.
16584         (timespec, items): New nonterminals.
16585         (time, rel, relunit, number, get_date):
16586         Add support for fractional seconds.
16587         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
16588         (gmtime, localtime, mktime): Remove decls; not needed with C89.
16589         (to_hour): First arg is now long int, not int.
16590         (to_year): Returns long int, not int.
16591         Don't treat year -70 like 70.
16592         (tm_diff): Returns long int, not int.
16593         (lookup_word): Use bool instead of int when appropriate.
16594         (yylex): Use size_t for count, not int.
16595         Detect overflow when parsing large integer constants.
16596         Add support for fractions.
16597         (get_date): Make pointers 'const' if possible.
16598         Use more-portable code to detect integer overflow.
16599         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
16600         Don't use ctime; it's not reliable if the year has >4 digits.
16601
16602         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
16603         This is for compatibility with BSD.
16604
16605         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
16606         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
16607         From coreutils' system.h.
16608
16609         * lib/userspec.c: Don't include "posixver.h".
16610         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
16611         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
16612         compatible extension.  Simplify code by removing a boolean int
16613         that was always nonzero if a string was nonnull.
16614
16615 2004-03-30  Jim Meyering  <jim@meyering.net>
16616
16617         Merge from coreutils.
16618
16619         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
16620         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
16621         on some systems one must include <grp.h> before it.
16622         Reported by Christian Krackowizer.
16623
16624 2004-03-30  Jim Meyering  <jim@meyering.net>
16625
16626         Merge from coreutils.
16627
16628         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
16629
16630         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
16631         an empty input stream.
16632
16633         * lib/readtokens.c: Include <stdbool.h>.
16634         (readtoken): Use `size_t' rather than int/long.
16635         All callers adjusted.
16636         Use `bool' rather than `int' where appropriate.
16637         Use memset rather than an explicit loop.
16638         Use x2nrealloc rather than xrealloc.
16639         Allow the use of `\0' as a delimiter.
16640         (readtokens): Likewise.
16641         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
16642
16643 2004-03-30  Jim Meyering  <jim@meyering.net>
16644
16645         * m4/realloc.m4: Remove file, since now it does no more than
16646         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
16647         the `configure.ac' section of module/realloc.
16648         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
16649
16650 2004-03-30  Bruno Haible  <bruno@clisp.org>
16651
16652         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
16653         nonnull.
16654
16655 2004-03-29  Paul Eggert  <eggert@twinsun.com>
16656
16657         Merge changes to getloadavg.c from coreutils and Emacs.
16658
16659         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
16660         Define to an expression, not to the empty string.
16661         Include cloexec.h and xalloc.h.
16662         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
16663         Use set_cloexec_flag rather than rolling our own.
16664         * lib/cloexec.c, lib/cloexec.h: New files.
16665
16666 2004-03-29  Paul Eggert  <eggert@twinsun.com>
16667
16668         * m4/cloexec.m4: New file.
16669
16670 2004-03-18  Paul Eggert  <eggert@twinsun.com>
16671
16672         * lib/getopt.h: Sync with libc CVS.
16673
16674 2004-03-18  Paul Eggert  <eggert@twinsun.com>
16675             Bruno Haible  <bruno@clisp.org>
16676
16677         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
16678         mbswidth.
16679
16680 2004-03-18  Paul Eggert  <eggert@twinsun.com>
16681             Bruno Haible  <bruno@clisp.org>
16682
16683         * lib/mbswidth.h: Include <wchar.h> only if
16684         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
16685         <wchar.h>.
16686         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
16687
16688 2004-03-09  Paul Eggert  <eggert@twinsun.com>
16689
16690         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
16691         Sync with libc CVS.
16692         * lib/getopt_int.h: New file, also synced from libc.
16693
16694 2004-03-09  Paul Eggert  <eggert@twinsun.com>
16695
16696         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
16697         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
16698         Bring back getopt.c, getopt.h, getopt1.c.
16699
16700 2004-03-07  Paul Eggert  <eggert@twinsun.com>
16701
16702         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
16703         All uses changed.  Check for sa_sigaction member; this fixes
16704         a bug first reported by Jason Andrade in
16705         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
16706
16707 2004-03-07  Paul Eggert  <eggert@twinsun.com>
16708
16709         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
16710         '#if' expressions.  Unlike the code it replaces, it does not
16711         depend on (defined _SC_PAGESIZE).  However, it does depend on
16712         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
16713         first reported by Jason Andrade in
16714         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
16715
16716 2004-02-25  Simon Josefsson  <jas@extundo.com>
16717
16718         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
16719
16720 2004-02-25  Simon Josefsson  <jas@extundo.com>
16721
16722         * lib/strdup.h: New file.
16723         * lib/strdup.c: Include it.
16724         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
16725         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
16726
16727 2004-02-23  Karl Berry  <karl@gnu.org>
16728
16729         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
16730         (from fencepost.gnu.org:/gd/gnuorg).
16731
16732 2004-02-23  Karl Berry  <karl@gnu.org>
16733
16734         * config/srclistvars.sh (GNUORG) [karl]: redefine.
16735         * config/srclist.txt: add maintain/standards documents.
16736
16737 2004-02-18  Bruno Haible  <bruno@clisp.org>
16738
16739         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
16740         Reported by Derek Robert Price <derek@ximbiot.com>.
16741
16742 2004-02-16  Karl Berry  <karl@gnu.org>
16743
16744         * config/mkinstalldirs, install-sh: update from automake.
16745
16746 2004-02-06  Karl Berry  <karl@gnu.org>
16747
16748         * m4/po.m4: update from gettext 0.14.1.
16749
16750 2004-02-06  Karl Berry  <karl@gnu.org>
16751
16752         * lib/config.charset: update from gettext 0.14.1.
16753
16754 2004-02-05  Paul Eggert  <eggert@twinsun.com>
16755
16756         Add comments and code, prompted by suggestions from Bruno Haible
16757         for sh-quote.
16758         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
16759         describing the enum quoting_style values.
16760         * lib/quotearg.c (quotearg_alloc): New function.
16761         (quotearg_buffer_restyled): Treat lone { and } as special.
16762         Treat = as special.  Work around bug with older shells
16763         that "see" a '\' that is really the 2nd byte of a multibyte char.
16764         Quote empty string with shell_quoting_style.
16765
16766 2004-02-03  Bruno Haible  <bruno@clisp.org>
16767
16768         * m4/pipe.m4: New file, from GNU gettext.
16769
16770 2004-02-03  Bruno Haible  <bruno@clisp.org>
16771
16772         * lib/pipe.h: New file, from GNU gettext.
16773         * lib/pipe.c: New file, from GNU gettext.
16774
16775 2004-01-27  Bruno Haible  <bruno@clisp.org>
16776
16777         * m4/execute.m4: New file, from GNU gettext.
16778
16779 2004-01-27  Bruno Haible  <bruno@clisp.org>
16780
16781         * lib/execute.h: New file, from GNU gettext.
16782         * lib/execute.c: New file, from GNU gettext.
16783         * lib/w32spawn.h: New file, from GNU gettext.
16784
16785 2004-01-24  Paul Eggert  <eggert@twinsun.com>
16786
16787         Merge from diffutils.
16788
16789         * lib/file-type.c (file_type): Add typed memory objects.
16790         * lib/file-type.h (S_TYPEISTMO): New macro.
16791
16792         * lib/c-stack.h (c_stack_action): Remove argv argument.
16793         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
16794         (die): Don't calculate message unless segv_action returns.
16795         (get_stack_location, min_address_from_argv, max_address_from_argv,
16796         volatile stack_base, volatile_stack_size): Remove.
16797         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
16798         that every segmentation violation is a stack overflow.  (Ouch!)
16799         See Debian bug 136249 (still outstanding) for more info about why
16800         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
16801
16802 2004-01-24  Paul Eggert  <eggert@twinsun.com>
16803
16804         Exit-status fix from coreutils.
16805
16806         Use exit_failure consistently in place of EXIT_FAILURE,
16807         so that program exit statuses are consistent on failure.
16808
16809         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
16810         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
16811         * lib/argmatch.h: Comment fix to match the above.
16812         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
16813         Now a macro referring to exit_failure, instead of a separate
16814         variable.  Include "exitfail.h" to get it.
16815         * lib/xstrtol.h: Include "exitfail.h".
16816         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
16817
16818         * lib/long-options.c (parse_long_options): Use prototype
16819         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
16820         for clarity.
16821
16822 2004-01-21  Jim Meyering  <jim@meyering.net>
16823
16824         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
16825         so as not to conflict with a different-sized __mktime_internal
16826         function in GNU libc.
16827         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
16828         Problem building statically-linked `ls' reported by Michael Brunnbauer.
16829
16830 2004-01-20  Karl Berry  <karl@gnu.org>
16831
16832         * config/config.guess: update from config.
16833
16834         * config/srclistvars.sh: GNUWWWLICENSES for karl.
16835
16836 2004-01-20  Bruno Haible  <bruno@clisp.org>
16837
16838         Safer stack allocation.
16839         * lib/setenv.c: Include allocsa.h.
16840         (alloca): Remove fallback definition.
16841         (freea): Remove macro.
16842         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
16843         instead of freea.
16844
16845 2004-01-20  Bruno Haible  <bruno@clisp.org>
16846
16847         * m4/eealloc.m4: New file, from GNU gettext.
16848
16849 2004-01-20  Bruno Haible  <bruno@clisp.org>
16850
16851         * m4/allocsa.m4: New file, from GNU gettext.
16852
16853 2004-01-20  Bruno Haible  <bruno@clisp.org>
16854
16855         * lib/xallocsa.h: New file, from GNU gettext.
16856         * lib/xallocsa.c: New file, from GNU gettext.
16857
16858 2004-01-20  Bruno Haible  <bruno@clisp.org>
16859
16860         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
16861
16862 2004-01-20  Bruno Haible  <bruno@clisp.org>
16863
16864         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
16865         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
16866         specially.
16867
16868 2004-01-20  Bruno Haible  <bruno@clisp.org>
16869
16870         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
16871         patch.
16872
16873 2004-01-20  Bruno Haible  <bruno@clisp.org>
16874
16875         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
16876
16877 2004-01-20  Bruno Haible  <bruno@clisp.org>
16878
16879         * lib/eealloc.h: New file.
16880
16881 2004-01-20  Bruno Haible  <bruno@clisp.org>
16882
16883         * lib/binary-io.h: Avoid warnings on Cygwin.
16884
16885 2004-01-20  Bruno Haible  <bruno@clisp.org>
16886
16887         * lib/allocsa.h: New file, from GNU gettext.
16888         * lib/allocsa.c: New file, from GNU gettext.
16889
16890 2004-01-18  Karl Berry  <karl@gnu.org>
16891
16892         * doc/gpl.texi, doc/lgpl.texi: new files.
16893
16894 2004-01-18  Karl Berry  <karl@gnu.org>
16895
16896         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
16897         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
16898
16899 2004-01-15  Paul Eggert  <eggert@twinsun.com>
16900
16901         Merge from coreutils.
16902
16903         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
16904         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
16905         (gl_DEFAULT_POSIX2_VERSION): Move
16906         the documentation from 'configure' into 'config.hin',
16907         so that 'configure --help' isn't burdened by it and
16908         we don't have to worry about its formatting there.
16909         Reword the documentation so that it's more succinct
16910         and can be run together into a single paragraph.
16911         * m4/same.m4 (gl_SAME): Check for pathconf.
16912
16913 2004-01-15  Paul Eggert  <eggert@twinsun.com>
16914
16915         Merge from coreutils.
16916
16917         * lib/posixver.c: Include posixver.h.
16918
16919         * lib/same.c: Include <stdbool.h>, <limits.h>.
16920         (_POSIX_NAME_MAX): Define if not defined.
16921         (MIN): New macro.
16922         (same_name): If file names are silently truncated, report
16923         that the file names are the same if they are the same after
16924         the silent truncation.
16925
16926         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
16927         conversion function.
16928         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
16929         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
16930         longer needed.
16931
16932 2004-01-15  Jim Meyering  <jim@meyering.net>
16933
16934         Merge from coreutils.
16935
16936         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
16937         if no library is required.
16938         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
16939         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
16940         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
16941         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
16942         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
16943         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
16944         value, $ac_cv_search_crypt, if it's "none required".
16945         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
16946         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
16947         not gl_FUNC_GETLOADAVG.
16948         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
16949         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
16950
16951 2004-01-15  Jim Meyering  <jim@meyering.net>
16952
16953         Merge from coreutils.
16954
16955         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
16956         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
16957         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
16958
16959         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
16960         optional configure-time default.
16961
16962         * lib/version-etc.c (version_etc_copyright): Update copyright date.
16963
16964         * lib/xreadlink.c (xreadlink): Correct outdated comment.
16965
16966 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
16967
16968         Merge from coreutils.
16969
16970         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
16971         value, $ac_cv_search_nanosleep, if it's "none required".
16972
16973 2004-01-14  Paul Eggert  <eggert@twinsun.com>
16974
16975         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
16976         with like-named macro in fnmatch.c.
16977         (EXT): Use an internal constant instead.
16978
16979         Merge fnmatch patches from glibc.
16980         * lib/fnmatch.c (mbsinit): Remove define.
16981         Add libc_hidden_ver (__fnmatch, fnmatch).
16982         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
16983         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
16984
16985 2004-01-14  Karl Berry  <karl@gnu.org>
16986
16987         * config/install-sh: update from automake.
16988
16989 2004-01-13  Karl Berry  <karl@gnu.org>
16990
16991         * config/install-sh: update from automake.
16992
16993 2004-01-09  Karl Berry  <karl@gnu.org>
16994
16995         * config/install-sh: update from automake.
16996
16997 2004-01-05  Karl Berry  <karl@gnu.org>
16998
16999         * config/config.{sub,guess}: update from config.
17000
17001 2003-12-31  Karl Berry  <karl@gnu.org>
17002
17003         * config/depcomp: update from automake.
17004
17005 2003-12-14  Karl Berry  <karl@gnu.org>
17006
17007         * lib/config.charset: update from gettext-runtime.
17008
17009 2003-12-03  Paul Eggert  <eggert@twinsun.com>
17010
17011         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
17012         Bug reported by Alfred M. Szmidt.
17013
17014 2003-12-03  Bruno Haible  <bruno@clisp.org>
17015
17016         * m4/gettext.m4: Upgrade from gettext-0.13.
17017         * m4/po.m4: Upgrade from gettext-0.13.
17018         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
17019         * m4/intmax.m4: New file, from gettext-0.13.
17020         * m4/printf-posix.m4: New file, from gettext-0.13.
17021
17022 2003-11-29  Karl Berry  <karl@gnu.org>
17023
17024         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
17025
17026 2003-11-25  Paul Eggert  <eggert@twinsun.com>
17027             Bruno Haible  <bruno@clisp.org>
17028
17029         * lib/printf-parse.h: Don't include sys/types.h.
17030         (ARG_NONE): New macro.
17031         (char_directive): Change type of *arg_index fields to size_t.
17032         * lib/printf-parse.c: Don't include sys/types.h.
17033         (SSIZE_MAX): Remove macro.
17034         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
17035         Remove unnecessary overflow check.
17036         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
17037         fields.
17038
17039 2003-11-25  Bruno Haible  <bruno@clisp.org>
17040
17041         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
17042
17043 2003-11-25  Bruno Haible  <bruno@clisp.org>
17044
17045         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
17046         gt_TYPE_SSIZE_T.
17047
17048 2003-11-24  Paul Eggert  <eggert@twinsun.com>
17049
17050         * modules/alloca: Remove dependency on xalloc.
17051
17052 2003-11-24  Paul Eggert  <eggert@twinsun.com>
17053
17054         * lib/alloca.c: Remove dependency on xalloc module.
17055         (xalloc_die): Remove.
17056         (memory_full) [!defined emacs]: New macro.
17057         [!defined emacs]: Don't include xalloc.h.
17058         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
17059         address arithmetic overflows.  Change datatypes a bit to avoid
17060         unnecessary casts.
17061
17062 2003-11-22  Jim Meyering  <jim@meyering.net>
17063
17064         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
17065         s/size/size_t/.
17066
17067 2003-11-21  Karl Berry  <karl@gnu.org>
17068
17069         * config/config.{sub,guess}: update from config.
17070
17071 2003-11-18  Karl Berry  <karl@gnu.org>
17072
17073         * config/config.{sub,guess}: update from config.
17074
17075         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
17076
17077 2003-11-17  Paul Eggert  <eggert@twinsun.com>
17078
17079         * README: Mention that S+T cannot overflow if S is the size of
17080         an existing object and T is sufficiently small.
17081
17082 2003-11-17  Jim Meyering  <jim@meyering.net>
17083
17084         On systems without utime and without a utimes function capable of
17085         dealing with a NULL struct utimbuf* argument, this utime replacement
17086         could -- in unusual circumstances -- leak a file descriptor.
17087         * lib/utime.c: Include <unistd.h> and <errno.h>.
17088         (utime_null): Be sure to close `fd' and to preserve errno.
17089         Reported by Geoff Collyer via Arnold Robbins.
17090
17091 2003-11-17  Bruno Haible  <bruno@clisp.org>
17092
17093         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
17094         (Depends-on): Add xsize.
17095
17096 2003-11-17  Bruno Haible  <bruno@clisp.org>
17097
17098         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
17099
17100 2003-11-17  Bruno Haible  <bruno@clisp.org>
17101
17102         * lib/vasnprintf.c (alloca): Remove fallback definition.
17103         (freea): Remove definition.
17104         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
17105         Reported by Paul Eggert.
17106
17107 2003-11-16  Paul Eggert  <eggert@twinsun.com>
17108             Bruno Haible  <bruno@clisp.org>
17109
17110         Protect against address arithmetic overflow.
17111         * lib/printf-args.h: Include stddef.h.
17112         (arguments): Change type of field 'count' to size_t.
17113         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
17114         'unsigned int' where appropriate.
17115         * lib/printf-parse.h: Include sys/types.h.
17116         (char_directive): Change type of *arg_index fields to ssize_t.
17117         (char_directives): Change type of fields 'count', max_*_length to
17118         size_t.
17119         * lib/printf-parse.c: Include sys/types.h and xsize.h.
17120         (SSIZE_MAX): Define fallback value.
17121         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
17122         instead of 'int' where appropriate. Check a_allocated, d_allocated
17123         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
17124         * lib/vasnprintf.c: Include xsize.h.
17125         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
17126         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
17127         overflow. Avoid wraparound when converting a width or precision from
17128         decimal to binary.
17129
17130 2003-11-16  Bruno Haible  <bruno@clisp.org>
17131
17132         Update from GNU gettext.
17133         * lib/printf-parse.c: Generalize to it can be compiled for wide
17134         strings.
17135         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
17136         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
17137         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
17138         SNPRINTF): New macros.
17139         Don't include <alloca.h> if the file is used inside libintl.
17140         (local_wcslen): New function, for Solaris 2.5.1.
17141         (VASNPRINTF): Use it instead of wcslen.
17142
17143 2003-11-16  Bruno Haible  <bruno@clisp.org>
17144
17145         * lib/xsize.h (xmax): New function.
17146         (xsum, xsum3, xsum4): Declare as "pure" functions.
17147
17148 2003-11-12  Paul Eggert  <eggert@twinsun.com>
17149
17150         * modules/xalloc (Files): Undo latest change, since xalloc.h
17151         no longer needs SIZE_MAX or PTRDIFF_MAX.
17152
17153 2003-11-12  Paul Eggert  <eggert@twinsun.com>
17154
17155         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
17156         gl_PTRDIFF_MAX.
17157
17158 2003-11-12  Paul Eggert  <eggert@twinsun.com>
17159
17160         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
17161         "return", to pacify some unknown compiler.  Problem reported
17162         by Joerg Schilling.
17163
17164 2003-11-12  Paul Eggert  <eggert@twinsun.com>
17165
17166         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
17167         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
17168         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
17169         heuristic is just as accurate as far as we know, and it removes a
17170         dependency on size_max.m4 and ptrdiff_max.m4.
17171
17172 2003-11-11  Bruno Haible  <bruno@clisp.org>
17173
17174         * modules/xsize (Files): Add m4/size_max.m4.
17175         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
17176
17177 2003-11-11  Bruno Haible  <bruno@clisp.org>
17178
17179         * m4/size_max.m4: New file.
17180         * m4/ptrdiff_max.m4: New file.
17181         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
17182         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
17183         (gl_XALLOC): Invoke it.
17184
17185 2003-11-11  Bruno Haible  <bruno@clisp.org>
17186
17187         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
17188         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
17189         defined.
17190
17191 2003-11-10  Paul Eggert  <eggert@twinsun.com>
17192
17193         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
17194         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
17195         rejected some allocations of exactly SIZE_MAX - 2 bytes.
17196         From Bruno Haible.
17197         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
17198         not (size_t) -1, since it's defined here.
17199
17200 2003-11-09  Karl Berry  <karl@gnu.org>
17201
17202         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
17203
17204 2003-11-06  Paul Eggert  <eggert@twinsun.com>
17205
17206         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
17207         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
17208         Reject sizes of exactly SIZE_MAX bytes.
17209         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
17210         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
17211
17212 2003-11-05  Bruno Haible  <bruno@clisp.org>
17213
17214         * lib/xsize.h: Include limits.h, to avoid a possible collision with
17215         SIZE_MAX defined in <limits.h> on Solaris.
17216
17217 2003-11-04  Jim Meyering  <jim@meyering.net>
17218
17219         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
17220         variable names, rather than @VAR@.
17221         * modules/poll: Likewise.
17222
17223 2003-11-04  Bruno Haible  <bruno@clisp.org>
17224
17225         * modules/xsize: New file.
17226         * modules/linebreak: Depend on xsize.
17227         * MODULES.html.sh (func_all_modules): Add xsize.
17228
17229 2003-11-04  Bruno Haible  <bruno@clisp.org>
17230
17231         * m4/xsize.m4: New file.
17232
17233 2003-11-04  Bruno Haible  <bruno@clisp.org>
17234
17235         * lib/xsize.h: New file.
17236         * lib/linebreak.c: Include xsize.h.
17237         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
17238         argument for overflow.
17239         Suggested by Paul Eggert.
17240
17241 2003-11-03  Karl Berry  <karl@gnu.org>
17242
17243         * config/config.{guess,sub}: update from config.
17244
17245 2003-11-03  Jim Meyering  <jim@meyering.net>
17246
17247         * modules/userspec (lib_SOURCES): Add userspec.h.
17248         (Include): Add "userspec.h".
17249         Improve description.
17250
17251 2003-11-03  Jim Meyering  <jim@meyering.net>
17252
17253         * lib/userspec.c: Include "userspec.h".
17254         * lib/userspec.h: New file.
17255
17256 2003-11-03  Bruno Haible  <bruno@clisp.org>
17257
17258         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
17259
17260 2003-11-03  Bruno Haible  <bruno@clisp.org>
17261
17262         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
17263         available, to avoid (extremely rare) race condition.
17264         Suggested by Paul Eggert.
17265
17266 2003-11-02  Karl Berry  <karl@gnu.org>
17267
17268         * config/srclist.txt (vasprintf.c): sync broken, sigh.
17269
17270 2003-10-31  Paul Eggert  <eggert@twinsun.com>
17271
17272         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
17273         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
17274         (read_filesystem_list): Set and use me_type_malloced.
17275         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
17276         whatever the type happens to be), for brevity and consistency.
17277         Check for size calculation overflow on Alphas running OSF/1.
17278
17279 2003-10-31  Jim Meyering  <jim@meyering.net>
17280
17281         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
17282
17283         * lib/linebuffer.c: Include <string.h> for declaration of memset.
17284
17285 2003-10-30  Paul Eggert  <eggert@twinsun.com>
17286             Bruno Haible  <bruno@clisp.org>
17287
17288         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
17289         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
17290
17291 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
17292
17293         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
17294         netbsd*-gnu*.  Suggested by Robert Millan.
17295
17296 2003-10-29  Paul Eggert  <eggert@twinsun.com>
17297
17298         * modules/group-member: Depend on stdbool.
17299
17300 2003-10-29  Paul Eggert  <eggert@twinsun.com>
17301
17302         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
17303
17304 2003-10-29  Paul Eggert  <eggert@twinsun.com>
17305
17306         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
17307         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
17308         after the 'gnu' in these cases.  This fixes some bugs in the
17309         previous change, and is based on suggestions by Robert Millan.
17310
17311 2003-10-29  Paul Eggert  <eggert@twinsun.com>
17312
17313         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
17314         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
17315         no longer needed.
17316         * lib/quotearg.c (quotearg_n_options): Use it.
17317         * lib/group-member.c: Include <stdbool.h>.
17318         (free_group_info): Arg is now const *; don't free arg.
17319         (get_group_info): Now returns bool and accepts struct group_info *,
17320         rather than returning a malloc'ed struct group_info *.
17321         All uses changed.  Check for overflow in internal size calculation.
17322
17323         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
17324         rather than xmalloc/xrealloc.
17325         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
17326         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
17327         conformance bug: the old code used a pointer after freeing the
17328         storage that it addressed.
17329         * lib/hash.c (hash_initialize): Simplify the code by using
17330         xalloc_oversized rather than doing it by hand.
17331         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
17332         the buffer preserved.  Use free and xmalloc instead.
17333         * lib/quotearg.c (quotearg_n_options): Likewise.
17334         Use a simpler test for size overflow.  Don't use xalloc_oversized
17335         because unsigned int might be wider than size_t (!); this suggests
17336         that we should switch from unsigned int to size_t for slot numbers.
17337
17338 2003-10-28  Paul Eggert  <eggert@twinsun.com>
17339
17340         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
17341         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
17342         NetBSD kernels.  Requested by Richard Stallman.
17343
17344 2003-10-27  Paul Eggert  <eggert@twinsun.com>
17345
17346         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
17347         to allocate the returned structure.  Do not allocate a subarray,
17348         as x2nrealloc will do that.
17349         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
17350         instead of xnrealloc.
17351         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
17352
17353 2003-10-27  Bruno Haible  <bruno@clisp.org>
17354
17355         * lib/stdbool_.h: Better support for BeOS.
17356
17357 2003-10-26  Paul Eggert  <eggert@twinsun.com>
17358
17359         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
17360         now uses inline.
17361
17362 2003-10-26  Paul Eggert  <eggert@twinsun.com>
17363
17364         * lib/xalloc.h (xalloc_oversized): New static inline function, for
17365         callers that want to do their own size-overflow checking.  Include
17366         <stdbool.h>, since xalloc_oversized returns bool.
17367         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
17368         to use xalloc_oversized.
17369
17370         Add two functions x2realloc, x2nrealloc, for programs that grow
17371         arrays dynamically by doubling their sizes.
17372         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
17373         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
17374         New functions.
17375
17376         Port to C99 semantics for 'inline' of external functions.
17377         Bug reported by Bruno Haible.
17378         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
17379         with the old contents of xnmalloc.
17380         (xnmalloc, xmalloc): Use it.
17381         (xnrealloc_inline): New static inline function,
17382         with the old contents of xnrealloc.
17383         (xnrealloc, xrealloc): Use it.
17384
17385         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
17386         that.
17387
17388 2003-10-26  Karl Berry  <karl@gnu.org>
17389
17390         * config/srclist.txt (COPYING.DOC): no longer available from
17391         /gd/gnuorg; don't know where the ultimate source is.
17392
17393 2003-10-25  Paul Eggert  <eggert@twinsun.com>
17394
17395         Fix several address-calculation bugs in the hash modules,
17396         plus some minor code cleanup.
17397
17398         * lib/hash.h: Include <stdbool.h>, for bool.
17399         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
17400         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
17401         hash_get_n_entries, hash_get_max_bucket_length,
17402         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
17403         hash_rehash): Use size_t rather than unsigned.
17404         * lib/hash.c (struct hash_table, hash_get_n_buckets,
17405         hash_get_n_buckets_used, hash_get_n_entries,
17406         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
17407         hash_get_entries, hash_do_for_each, hash_string, is_prime,
17408         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
17409         Likewise.
17410         (SIZE_MAX): Define if not defined.
17411         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
17412         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
17413         hash_print):
17414         Use const * when possible.
17415         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
17416         (check_tuning): Fix bug: if tuning parameters were very close to
17417         0 or 1, rounding errors could have caused subscript violations.
17418         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
17419         (hash_initialize): Add 'fail:' label
17420         to free table and return NULL, and use it to simplify code.
17421         Use calloc rather than clearing the storage ourself.
17422         (hash_initialize, hash_rehash): Check for arithmetic overflow in
17423         buffer size calculations.
17424         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
17425         Include <stddef.h>, for size_t.
17426         * lib/hash-pjw.c (hash_pjw): Likewise.
17427         Switch to method described by Bruno Haible.
17428         Include <limits.h>, for CHAR_BIT.
17429         (SIZE_BITS): New macro.
17430
17431 2003-10-23  Paul Eggert  <eggert@twinsun.com>
17432
17433         * m4/getline.m4 (AM_FUNC_GETLINE):
17434         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
17435         hosts.  Problem reported by Derek Robert Price in
17436         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
17437         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
17438         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
17439
17440 2003-10-21  Paul Eggert  <eggert@twinsun.com>
17441
17442         * lib/getndelim2.c (getndelim2): When size calculation overflows,
17443         ceiling the allocation at NMAX bytes rather than silently
17444         discarding input bytes before NMAX is reached.  This makes
17445         a difference only if NMAX exceeds SIZE_MAX / 2.
17446
17447         * lib/obstack.c: Merge from glibc.
17448         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
17449         Add libc_hidden_def (_obstack_newchunk).
17450         (_obstack_free) [! defined _LIBC]: Remove.
17451         [defined _LIBC]: Make a strong alias from obstack_free, rather than
17452         a clone of the function body.
17453         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
17454         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
17455
17456         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
17457         glibc.
17458         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
17459         arg to memcpy.
17460
17461         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
17462         (obstack_ptr_grow_fast, obstack_int_grow_fast):
17463         Don't use lvalue casts, as GCC plans to remove support for them
17464         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
17465         was also present in the non-GCC version, indicating that this
17466         code had always been buggy and had never been widely used.
17467         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
17468         Use the fast variant of each macro, rather than copying the
17469         definiens of the fast variant; that way, we'll be more likely to
17470         catch future bugs in the fast variants.
17471
17472 2003-10-20  Bruno Haible  <bruno@clisp.org>
17473
17474         * modules/wait-process: New file.
17475         * MODULES.html.sh (func_all_modules): Add wait-process.
17476
17477 2003-10-20  Bruno Haible  <bruno@clisp.org>
17478
17479         * m4/wait-process.m4: New file.
17480
17481 2003-10-20  Bruno Haible  <bruno@clisp.org>
17482
17483         * lib/wait-process.h: New file, from GNU gettext.
17484         * lib/wait-process.c: New file, from GNU gettext.
17485
17486 2003-10-19  Jim Meyering  <jim@meyering.net>
17487
17488         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
17489         HPUX 10.20.
17490
17491 2003-10-18  Karl Berry  <karl@gnu.org>
17492
17493         * config/config.guess: update from config.
17494
17495 2003-10-16  Paul Eggert  <eggert@twinsun.com>
17496
17497         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
17498         (getgroups): First arg is int, not size_t.
17499         Don't let 'free' mangle errno.
17500
17501 2003-10-16  Paul Eggert  <eggert@twinsun.com>
17502
17503         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
17504
17505 2003-10-16  Karl Berry  <karl@gnu.org>
17506
17507         * config/config.{guess,sub}: update from config.
17508
17509 2003-10-16  Jim Meyering  <jim@meyering.net>
17510
17511         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
17512         memcpy.
17513
17514 2003-10-15  Paul Eggert  <eggert@twinsun.com>
17515
17516         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
17517         (SIZE_MAX): Remove.
17518         (new_exclude, add_exclude_file): Initial size no longer needs to
17519         be a power of 2.
17520         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
17521         our own address arithmetic overflow checking.
17522
17523         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
17524         (fnmatch): Do not alloca more than 2000 wide characters;
17525         instead, use malloc for large buffers.
17526         Check for address arithmetic overflow, and return -1
17527         with errno set to ENOMEM in that case.
17528         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
17529         (NEW_PATTERN): Do not alloca more than 8000 bytes;
17530         instead, return -1.  Check for address arithmetic overflow.
17531
17532 2003-10-14  Paul Eggert  <eggert@twinsun.com>
17533
17534         Handle invalid suffixes and overflow independently, so that
17535         callers can treat them independently as needed.  Fix some bugs in
17536         suffix handling, e.g., "100k@" was not diagnosed as an invalid
17537         suffix for a human-readable blocksize.  The major caller-visible
17538         change is the addition of a new
17539         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
17540         that both overflow and suffix chars were found.
17541
17542         * lib/human.c (humblock): Don't check separately for invalid suffix
17543         char; that is xstrtoumax's job (now that its bug is fixed).
17544         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
17545         INTMAX_MAX]: New macros.
17546         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
17547         TYPE_MAXIMUM): New macros.
17548         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
17549         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
17550         if overflow occurs, as it's what __strtol does and it's more useful
17551         in practice.
17552         (__xstrtol): If __strtol reports some error other than ERANGE,
17553         reflect it to the caller as LONGINT_INVALID.  If it reports
17554         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
17555         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
17556         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
17557         value.
17558         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
17559         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
17560         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
17561         [defined UINTMAX_MAX]: New macros.
17562
17563 2003-10-14  Bruno Haible  <bruno@clisp.org>
17564
17565         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
17566
17567 2003-10-14  Bruno Haible  <bruno@clisp.org>
17568
17569         * m4/sig_atomic_t: New file, from GNU gettext.
17570         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
17571
17572 2003-10-14  Bruno Haible  <bruno@clisp.org>
17573
17574         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
17575         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
17576         Also use volatile where needed.
17577
17578 2003-10-12  Paul Eggert  <eggert@twinsun.com>
17579
17580         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
17581         Change maintainer from Bruno Haible to 'all'.
17582
17583 2003-10-12  Paul Eggert  <eggert@twinsun.com>
17584
17585         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
17586
17587 2003-10-12  Paul Eggert  <eggert@twinsun.com>
17588
17589         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
17590         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
17591         and define in terms of the other primitives.
17592         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
17593         (SIZE_MAX): Define if not already defined.
17594         (array_size_overflow): New function.
17595         (xalloc_die): Abort instead of exiting if 'error' returns.
17596         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
17597         (xmalloc, xrealloc): Use them.
17598         (xcalloc): Check for address arithmetic overflow.
17599         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
17600         a bit faster than strcpy.
17601
17602 2003-10-10  Simon Josefsson  <jas@extundo.com>
17603
17604         * modules/argp (Depends-on): Add restrict and strcase.
17605
17606 2003-10-10  Simon Josefsson  <jas@extundo.com>
17607
17608         * m4/argp.m4: Add AC_C_INLINE.
17609
17610 2003-10-08  Paul Eggert  <eggert@twinsun.com>
17611
17612         Merge getpass from libc, plus a few fixes.
17613
17614         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
17615         Include <stdbool.h>.
17616         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
17617         __fsetlocking to empty.
17618         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
17619         do include <bits/libc-lock.h>.
17620         Do not include <fcntl.h>; not needed.
17621         [_LIBC]: Include <wchar.h>.
17622         (NOTCANCEL_MODE): New macro.
17623         (flockfile, funlockfile) [_LIBC]: New macros.
17624         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
17625         [!_LIBC]: New macros.
17626         (call_fclose): New function.
17627         (getpass): Use it.  Save tty stream separately; this simplifies the
17628         code and makes it more reliable if stdin happens to equal stdout.
17629         Invoke __fsetlocking on tty.
17630         Handle thread cancellation if needed.
17631         Namespace cleanup (use __tcgetattr, __getline).
17632         Use bool for Booleans.
17633         [USE_IN_LIBIO]: Handle wide streams.
17634         [!_LIBC]: Unconditionally do the fseek, since we don't know what
17635         stream might go where.
17636
17637         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
17638         doesn't have to include <stdio.h> before us.
17639         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
17640         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
17641         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
17642         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
17643         if not declared, so that we can use getpass.c code from libc without
17644         rewriting it.
17645         (flockfile, ftrylockfile, funlockfile): New macros.
17646
17647 2003-10-08  Paul Eggert  <eggert@twinsun.com>
17648
17649         * modules/getpass: Depend on stdbool.
17650
17651 2003-10-08  Paul Eggert  <eggert@twinsun.com>
17652
17653         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
17654
17655 2003-10-07  Karl Berry  <karl@gnu.org>
17656
17657         * config/config.{guess,sub}: update from config.
17658
17659 2003-10-06  Jim Meyering  <jim@meyering.net>
17660             Bruno Haible  <bruno@clisp.org>
17661
17662         This lets translators provide better translations for the
17663         "Written by ..." part of --version output.
17664         * lib/version-etc.h: Include stdarg.h.
17665         (version_etc_copyright): Declare as readonly.
17666         (version_etc): Make this function variadic with a NULL-terminated list
17667         of author name strings.
17668         (version_etc_va): New declaration.
17669         * lib/version-etc.c: Include stdarg.h, stdlib.h.
17670         (version_etc_copyright): Declare as readonly.
17671         (version_etc_va): New function. Provide a different translatable string
17672         for each possible number of authors < 10. Abbreviate when there are 10
17673         authors or more.
17674         (version_etc): Make this function variadic. Call version_etc_va.
17675         Suggestion from Gary V. Vaughan.
17676
17677         * lib/long-options.h (parse_long_options): Change prototype: the
17678         authors string is moved to the end and becomes variadic.
17679         * lib/long-options.c: Include stdarg.h.
17680         (parse_long_options): Make this function variadic, too.
17681         Call version_etc_va, not version_etc.
17682
17683 2003-10-06  Bruno Haible  <bruno@clisp.org>
17684
17685         * modules/version-etc-2: Remove file.
17686         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
17687
17688 2003-10-06  Bruno Haible  <bruno@clisp.org>
17689
17690         * modules/fatal-signal: New file.
17691         * MODULES.html.sh (func_all_modules): Add fatal-signal.
17692
17693 2003-10-06  Bruno Haible  <bruno@clisp.org>
17694
17695         * m4/fatal-signal.m4: New file.
17696         * m4/signalblocking.m4: New file, from GNU gettext.
17697
17698 2003-10-06  Bruno Haible  <bruno@clisp.org>
17699
17700         * lib/version-etc-2.h: Remove file.
17701         * lib/version-etc-2.c: Remove file.
17702
17703 2003-10-06  Bruno Haible  <bruno@clisp.org>
17704
17705         * lib/fatal-signal.h: New file, from GNU gettext.
17706         * lib/fatal-signal.c: New file, from GNU gettext.
17707
17708 2003-10-05  Paul Eggert  <eggert@twinsun.com>
17709
17710         * README: Rework advice for preventing empty .o files.
17711         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
17712         not <sys/types.h>.
17713
17714 2003-10-04  Karl Berry  <karl@gnu.org>
17715
17716         * lib/argp*: update from libc.
17717
17718 2003-10-04  Karl Berry  <karl@gnu.org>
17719
17720         * config/config.{guess,sub}: update from config.
17721
17722 2003-10-02  Bruno Haible  <bruno@clisp.org>
17723
17724         * modules/lchown (Include): Add lchown.h.
17725         * modules/time_r (Include): Use "..." syntax.
17726         * modules/xgetdomainname (Include): Add xgetdomainname.h.
17727
17728 2003-10-01  Simon Josefsson  <jas@extundo.com>
17729
17730         * MODULES.html.sh (func_all_modules): Move gethostname from section
17731         'based on' to section 'lacking' POSIX:2001.
17732
17733 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
17734
17735         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
17736         to output mode on the same stream.
17737
17738 2003-09-29  Paul Eggert  <eggert@twinsun.com>
17739
17740         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
17741         Fix arg typo in previous patch.
17742
17743 2003-09-28  Jim Meyering  <jim@meyering.net>
17744
17745         * lib/error.c: Correct cpp indentation.
17746
17747 2003-09-27  Paul Eggert  <eggert@twinsun.com>
17748
17749         * modules/free: New file.
17750
17751 2003-09-27  Paul Eggert  <eggert@twinsun.com>
17752
17753         * m4/free.m4: New file.
17754
17755 2003-09-27  Paul Eggert  <eggert@twinsun.com>
17756
17757         * lib/minmax.h (MIN, MAX)
17758         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
17759         Omit the special code that used __typeof__, since we worry that
17760         it could be more trouble than it's worth.  See:
17761         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
17762         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
17763
17764         * lib/free.c: New file.
17765
17766 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
17767
17768         Trivial fixes to Makefile.am parts of module listings.
17769         * modules/strstr: Append strstr.h to lib_SOURCES.
17770         * modules/strcase: Likewise, for strcase.h.
17771
17772 2003-09-27  Karl Berry  <karl@gnu.org>
17773
17774         * config/mkinstalldirs: update from automake.
17775
17776 2003-09-26  Paul Eggert  <eggert@twinsun.com>
17777
17778         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
17779         (error_tail): Do not loop, reallocating temporary buffer, since
17780         the output cannot contain more wide characters than the input
17781         contains bytes, the size must be big enough already.  This avoids
17782         one potential size overflow calculation.  Check for size overflow
17783         when calculating temporary buffer size.  Free temporary buffer
17784         when done, if it was allocated with malloc; this plugs a memory
17785         leak.  Remove casts from void * to pointers, that are no longer
17786         needed now that we're assuming C89 or better.
17787
17788         Merge error changes from glibc.
17789
17790         * lib/error.c, error.h: Update copyright notice header to match glibc.
17791         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
17792         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
17793         Disable cancellation while printing error.
17794         * lib/error.h: Prepend __ to parameter names.
17795
17796 2003-09-26  Jim Meyering  <jim@meyering.net>
17797
17798         * lib/error.c (error_tail): Move some declarations
17799         into inner scope where the local variables are used.
17800
17801 2003-09-26  Bruno Haible  <bruno@clisp.org>
17802
17803         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
17804         stpncpy().
17805         Don't define stpncpy through config.h; it's now done through stpncpy.h.
17806
17807 2003-09-26  Bruno Haible  <bruno@clisp.org>
17808
17809         * lib/stpncpy.h (gnu_stpncpy): New declaration.
17810         (stpncpy): Define as alias for gnu_stpncpy.
17811         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
17812
17813 2003-09-25  Simon Josefsson  <jas@extundo.com>
17814
17815         * lib/xgetdomainname.h: New file.
17816         * lib/xgetdomainname.c: New file.
17817
17818 2003-09-25  Simon Josefsson  <jas@extundo.com>
17819             Bruno Haible  <bruno@clisp.org>
17820
17821         * modules/getdomainname: New file.
17822         * modules/xgetdomainname: New file.
17823         * MODULES.html.sh (func_all_modules): Add getdomainname,
17824         xgetdomainname.
17825
17826 2003-09-25  Simon Josefsson  <jas@extundo.com>
17827             Bruno Haible  <bruno@clisp.org>
17828
17829         * m4/getdomainname.m4: New file.
17830
17831 2003-09-25  Simon Josefsson  <jas@extundo.com>
17832             Bruno Haible  <bruno@clisp.org>
17833
17834         * lib/getdomainname.h: New file.
17835         * lib/getdomainname.c: New file.
17836
17837 2003-09-25  Karl Berry  <karl@gnu.org>
17838
17839         * lib/argp-fmtstream.c, argp-help.c: update from libc.
17840
17841 2003-09-25  Karl Berry  <karl@gnu.org>
17842
17843         * config/install-sh: update from automake.
17844
17845 2003-09-25  Bruno Haible  <bruno@clisp.org>
17846
17847         * modules/version-etc-2: New file, from modules/version-etc with
17848         modifications.
17849         * MODULES.html.sh (func_all_modules): Add version-etc-2.
17850
17851 2003-09-25  Bruno Haible  <bruno@clisp.org>
17852
17853         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
17854         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
17855
17856 2003-09-24  Simon Josefsson  <jas@extundo.com>
17857
17858         * modules/xgethostname: Add xgethostname.h.
17859
17860 2003-09-24  Paul Eggert  <eggert@twinsun.com>
17861
17862         * lib/linebuffer.c (freebuffer): Don't free the argument, just
17863         the buffer associated with the argument.  Bug reported by
17864         Simon Josefsson.
17865
17866 2003-09-24  Paul Eggert  <eggert@twinsun.com>
17867
17868         * README: Document assumptions that 'int' is at least 32 bits
17869         wide, that integer arithmetic is 2's complement without overflow,
17870         that there are no holes in integer values, that adding sizes of
17871         two nonoverlapping objects can't overflow, and that all-bits-zero
17872         yields scalar zero.  Fix spelling and capitalization typos.
17873
17874 2003-09-19  Karl Berry  <karl@gnu.org>
17875
17876         * lib/argp.h: update from libc.
17877
17878 2003-09-17  Paul Eggert  <eggert@twinsun.com>
17879
17880         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
17881         to avoid spurious warnings like "AC_RUN_IFELSE was called before
17882         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
17883
17884 2003-09-17  Paul Eggert  <eggert@twinsun.com>
17885
17886         * gnulib-tool: Use "test -h", not "test -L", for portability
17887         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
17888         (tags_regexp): Remove, since \| doesn't conform to POSIX.
17889         (sed_extract_prog): Issue s commands one-by-one, rather than
17890         using \| in one s command.
17891
17892 2003-09-16  Paul Eggert  <eggert@twinsun.com>
17893
17894         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
17895         input error, instead of returning NULL the next time we are called
17896         (and therefore losing track of errno).
17897
17898 2003-09-16  Bruno Haible  <bruno@clisp.org>
17899
17900         * gnulib-tool (func_create_testdir): Warn about duplicated
17901         dependencies.
17902
17903 2003-09-15  Paul Eggert  <eggert@twinsun.com>
17904
17905         * modules/argmatch, modules/fatal, modules/obstack,
17906         modules/xalloc, modules/xgethostname: Sort dependencies by
17907         importance, not alphabetically.
17908
17909 2003-09-15  Paul Eggert  <eggert@twinsun.com>
17910
17911         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
17912         fails, so that the caller gets the proper errno.
17913
17914         * lib/readutmp.c (read_utmp): Likewise.
17915         Check for fstat error.  Close stream and free storage
17916         when failing.
17917
17918 2003-09-14  Karl Berry  <karl@gnu.org>
17919
17920         * config/srclist.txt (strdup.c): disable for c89 changes.
17921
17922 2003-09-14  Jim Meyering  <jim@meyering.net>
17923
17924         * lib/getloadavg.c: Correct cpp indentation.
17925         * lib/strdup.c: Likewise.
17926         * lib/vasnprintf.c: Likewise.
17927
17928 2003-09-14  Bruno Haible  <bruno@clisp.org>
17929
17930         * modules/fwriteerror: New file.
17931         * MODULES.html.sh (func_all_modules): Add fwriteerror.
17932
17933 2003-09-14  Bruno Haible  <bruno@clisp.org>
17934
17935         * lib/fwriteerror.h: New file.
17936         * lib/fwriteerror.c: New file.
17937
17938 2003-09-12  Paul Eggert  <eggert@twinsun.com>
17939
17940         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
17941         modules/xgethostname, modules/xalloc: Depend on exit.
17942
17943 2003-09-12  Paul Eggert  <eggert@twinsun.com>
17944
17945         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
17946
17947         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
17948         and AC_MINIX, too, so that their extensions are available.
17949
17950         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
17951         This macro has been superseded by gl_BACKUPFILE.
17952
17953         More patches to assume C89 or better.
17954
17955         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
17956
17957         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
17958         unconditionally.
17959         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
17960         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
17961         Include <string.h>, <stdlib.h> unconditionally.
17962         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
17963         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
17964         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
17965         headers or for string.h.
17966         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
17967         or strtoul.
17968
17969         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
17970         headers.
17971         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
17972         * m4/userspec.m4 (gl_USERSPEC): Likewise.
17973         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
17974         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
17975         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
17976         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
17977         memcpy, memset.
17978         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
17979         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
17980         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
17981         strtol.
17982         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
17983         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
17984         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
17985         strtoul.
17986
17987 2003-09-12  Paul Eggert  <eggert@twinsun.com>
17988
17989         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
17990         * lib/obstack.c [!defined _LIBC]: Likewise.
17991         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
17992         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
17993         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
17994
17995         More changes to assume C89 or better.
17996
17997         * lib/error.c (error_tail): Assume vprintf.
17998
17999         * lib/argmatch.c (getenv): Remove decl.
18000         * lib/progreloc.c (get_full_program_name): Define via prototype.
18001         * lib/setenv.c (clearenv): Likewise.
18002         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
18003         needed.
18004         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
18005         (malloc, memcpy): Remove decls.
18006         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
18007         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
18008         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
18009         (memcpy): Remove macro.
18010         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
18011         (__P): Remove.  All uses removed.
18012         (PTR): Remove.  All uses changed to void *.
18013         (CHAR_BIT, NULL): Remove.
18014         (spaces, zeros, memset_space, memset_zero)
18015         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
18016         Remove.
18017         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
18018         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
18019         Define with prototype.
18020         Remove now-unnecessary prototype decl.
18021         (extra_args_spec): Assume ANSI C.  All uses changed.
18022         (extra_args_spec_iso): Remove.
18023         (my_strftime, emacs_strftimeu): Define via prototype.
18024         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
18025         unconditionally.
18026         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
18027         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
18028         (strtoul, strtol): Remove decls.
18029         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
18030         LONG_MAX): Remove.
18031         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
18032         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
18033         (LOCALE_PARAM_PROTO): New macro.
18034         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
18035         (INTERNAL (strtol), strtol): Define with a prototype.
18036         (PARAMS): Remove.  All uses removed.
18037         * lib/tempname.c: Include <string.h> unconditionally.
18038         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
18039         * lib/xgethostname.c (main): Define with a prototype.
18040         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
18041         Include <stdlib.h> unconditionally.
18042         (calloc, malloc, realloc, free): Remove decls.
18043         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
18044         Include <stdlib.h> unconditionally.  Sort include file names.
18045         (strtod): Remove.
18046         (xstrtod): Define with a prototype.
18047         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
18048         (strtol, strtoul): Remove decls.
18049
18050 2003-09-11  Paul Eggert  <eggert@twinsun.com>
18051
18052         More patches to assume C89 or better.
18053         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
18054         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
18055         string.h, memchr, STDC_HEADERS.
18056
18057 2003-09-11  Paul Eggert  <eggert@twinsun.com>
18058
18059         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
18060         Include <stdlib.h>, <string.h> unconditionally.
18061         Remove now-unnecessary cast to char *.
18062         * lib/strnlen.c: Include <string.h> unconditionally.
18063         * lib/yesno.c (yesno): Define with a prototype.
18064
18065 2003-09-11  Bruno Haible  <bruno@clisp.org>
18066
18067         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
18068
18069 2003-09-10  Jim Meyering  <jim@meyering.net>
18070
18071         * lib/error.c: Correct indentation of cpp directives.
18072
18073 2003-09-10  Bruno Haible  <bruno@clisp.org>
18074
18075         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
18076         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
18077         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
18078         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
18079         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
18080         <stdlib.h> and <string.h> checks.
18081         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
18082         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
18083
18084 2003-09-10  Bruno Haible  <bruno@clisp.org>
18085
18086         * lib/strcspn.c: Include <string.h> unconditionally.
18087         * lib/strpbrk.c: Include <string.h> unconditionally.
18088         * lib/strstr.c: Include <string.h> unconditionally.
18089         * lib/unicodeio.c: Include <string.h> unconditionally.
18090         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
18091         * lib/unsetenv.c: Likewise.
18092         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
18093         * lib/yesno.c: Include <stdlib.h> unconditionally.
18094         (rpmatch): Add prototype.
18095
18096 2003-09-09  Paul Eggert  <eggert@twinsun.com>
18097
18098         More patches to assume C89 or better.
18099         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
18100         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
18101         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
18102         or for string.h.
18103         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
18104         stdlib.h.
18105         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
18106         C headers.
18107         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
18108         string.h.
18109         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
18110         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
18111         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
18112         or for string.h.
18113         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
18114         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
18115         C headers.
18116         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
18117         memcpy.
18118         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
18119         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
18120         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
18121         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
18122         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
18123         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
18124         string.h, free.
18125         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
18126         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
18127         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
18128         C headers, or for string.h.
18129         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
18130         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
18131         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
18132         headers, memory.h, stdlib.h, string.h, strings.h.
18133         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
18134         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
18135         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
18136         strchr.
18137         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
18138         headers, memory.h, string.h.
18139         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
18140         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
18141         free.
18142         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
18143         headers.
18144         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
18145         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
18146         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
18147         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
18148         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
18149
18150 2003-09-09  Paul Eggert  <eggert@twinsun.com>
18151
18152         More K&R removal.
18153
18154         * lib/acosl.c (main): Use a prototype.
18155         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
18156         tanl.c: Likewise.
18157
18158         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
18159
18160         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
18161         (getopt, etopt_long, getopt_long_only, _getopt_internal)
18162         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
18163         with a prototype.
18164         * lib/getopt.c (const): Remove macro.
18165         Include <string.h> unconditionally.
18166         (my_index): Remove; all uses changed to strchr.
18167         (strlen): Remove decl.
18168         (exchange): Remove forward decl; no longer needed.
18169         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
18170         Define with prototype.
18171         * lib/getopt1.c (const): Remove macro.
18172         (getopt_long, getopt_long_only, main): Define with prototype.
18173
18174         * lib/getugroups.c: Include <string.h> unconditionally.
18175
18176         * lib/getusershell.c: Include <stdlib.h> unconditionally.
18177         (getusershell, setusershell, endusershell, readname, main):
18178         Define with prototypes.
18179
18180         * lib/group-member.c: Include group-member.h first.
18181         Include <stdlib.h> unconditionally.
18182
18183         * lib/hard-locale.c: Include hard-locale.h first.
18184         Include <stdlib.h>, <string.h> unconditionally.
18185
18186         * lib/hash.c (free, malloc): Remove decls.
18187         Include <stdlib.h> unconditionally.
18188
18189         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
18190         (getenv): Do not declare.
18191
18192         * lib/idcache.c: Include <string.h> unconditionally.
18193
18194         * lib/long-options.c: Include long-options.h first, to test interface.
18195         Include <stdlib.h> unconditionally.
18196
18197         * lib/makepath.c: Include makepath.h first, to test interface.
18198         Include <stdlib.h> and <string.h> unconditionally.
18199
18200         * lib/linebuffer.c: Include <stdlib.h>.
18201         (free): Remove decl.
18202
18203         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
18204         stddef.h. rpl_malloc returns void *, not char *.
18205         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
18206         prototype.
18207
18208         * lib/md5.h: Include <limits.h> unconditionally.
18209         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
18210         (__P): Remove; all uses removed.
18211         * lib/md5.c: Include "md5.h" first.
18212         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
18213         md5_buffer, md5_process_bytes, md5_process_block):
18214         Define with prototypes.
18215         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
18216         * lib/sha.c: Include "sha.h" first.
18217         Include <stdlib.h>, <string.h> unconditionally.
18218
18219         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
18220         * lib/memcmp.c (__ptr_t): Likewise.
18221         * lib/memrchr.c (__ptr_t): Likewise.
18222         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
18223         Include <string.h> unconditionally.
18224         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
18225         * lib/memchr.c: Include <stdlib.h> unconditionally.
18226         * lib/memchr.c (LONG_MAX): Remove.
18227         * lib/memrchr.c (LONG_MAX): Likewise.
18228         * lib/memchr.c (__memchr): Define via a prototype.
18229         * lib/memrchr.c (__memrchr): Likewise.
18230         * lib/memcmp.c (__P): Remove, and remove all uses.
18231         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
18232         Remove forward decls; no longer needed.
18233         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
18234         Use types required by C89 in prototype.
18235
18236         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
18237         * lib/savedir.c: Likewise.
18238         * lib/mkdir.c (free): Remove decl.
18239         * lib/rmdir.c (rmdir): Define with a prototype.
18240         * lib/savedir.c: Include savedir.h first, to test interface.
18241
18242         * lib/mktime.c (STDC_HEADERS): Remove.
18243         Include <stdlib.h>, <string.h> unconditionally.
18244
18245         * lib/modechange.c: Include <stdlib.h> unconditionally.
18246         (malloc): Remove decl.
18247
18248         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
18249         (free): Remove decl.
18250
18251         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
18252         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
18253         (This type really should be intptr_t, but that's a C99ism.)
18254         (_obstack_memcpy): Remove: all uses changed to memcpy.
18255         Include <string.h> unconditionally.
18256         (struct obstack): Assume __STDC__ for types of members
18257         chunkfun, freefun, extra_arg.
18258         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
18259         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
18260         obstack_begin, obstack_specify_allocation,
18261         obstack_specify_allocation_with_arg, obstack_chunkfun,
18262         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
18263         Remove unprototyped decls and the macros that use them.
18264         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
18265         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
18266         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
18267         (defined __STDC__ && __STDC__)]:
18268         Remove nonprototyped code.
18269         Include <stdlib.h> unconditionally.
18270         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
18271         _obstack_allocated_p, _obstack_free, obstack_free,
18272         _obstack_memory_used, print_and_abort):
18273         Define using prototypes.
18274         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
18275         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
18276         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
18277         obstack_next_free, obstack_object_size, obstack_room) [0]:
18278         Remove unused, unprototyped code.
18279
18280         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
18281
18282         * lib/physmem.c (physmem_total, physmem_available, main): Define
18283         with prototypes.
18284
18285         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
18286         (main): Define with a prototype.
18287
18288         * lib/posixver.c (getenv): Remove decl.
18289
18290         * lib/putenv.c (malloc): Returns void *, not char *.
18291         Include <string.h> unconditionally.
18292         (strchr, memcpy, NULL): Do not define.
18293
18294         * lib/readtokens.c: Include readtokens.h first, to test interface.
18295         Include <stdlib.h>, <string.h> unconditionally.
18296         (init_tokenbuffer): Define with a prototype.
18297
18298         * lib/regex.c (PARAMS): Remove.  All uses removed.
18299         All uses of _RE_ARGS removed, too.
18300         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
18301         unconditionally.
18302         (bzero): Assume memset exists.
18303         (memcmp, memcpy, NULL): Remove.
18304         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
18305         char, or assignments to local vars of type signed char.
18306         (init_syntax_once, PREFIX(extract_number_and_incr),
18307         PREFIX(print_partial_compiled_pattern),
18308         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
18309         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
18310         PREFIX(regex_grow_registers), PREFIX(regex_compile),
18311         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
18312         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
18313         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
18314         wcs_compile_range, byte_compile_range, truncate_wchar,
18315         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
18316         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
18317         count_mbs_length, wcs_re_match_2_internal,
18318         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
18319         PREFIX(alt_match_null_string_p),
18320         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
18321         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
18322         regfree, PREFIX(extract_number)): Define with prototype.  Remove
18323         now-unnecessary declaration, if any.
18324         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
18325         regcomp, regexec):
18326         Remove now-unnecessary casts among pointer types.
18327         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
18328
18329         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
18330         (free): Remove decl.
18331
18332         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
18333
18334         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
18335         (free): Remove decl.
18336
18337         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
18338         * lib/xgetcwd.c: Likewise.
18339
18340         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
18341         (free): Remove decl.
18342
18343         * lib/strchrnul.c (strchrnul): Define with a prototype.
18344         Fix bug: c_in was not converted to char before searching.
18345
18346         The following changes are not K&R related:
18347
18348         * lib/group-member.h: Include <sys/types.h>, so that this file is
18349         self-contained.
18350         * lib/makepath.h: Likewise.
18351
18352         * lib/getusershell.c (readname, default_index, line_size, readname):
18353         Use size_t, not int, for sizes.
18354         (readname): If the size overflows, report an error instead of
18355         looping forever.
18356
18357 2003-09-09  Paul Eggert  <eggert@twinsun.com>
18358
18359         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
18360         libc.
18361
18362 2003-09-09  Paul Eggert  <eggert@twinsun.com>
18363
18364         * README: New section: portability guidelines.
18365
18366 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
18367
18368         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
18369         C89 spec.
18370
18371 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
18372
18373         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
18374
18375 2003-09-08  Paul Eggert  <eggert@twinsun.com>
18376
18377         Assume C89 or better; remove K&R cruft.
18378         A few of these changes were first proposed by Derek Robert Price
18379         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
18380
18381         * lib/addext.c: Include <string.h> unconditionally.
18382         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
18383         Don't declare getenv or malloc.
18384
18385         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
18386         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
18387         (NULL): Remove.
18388         (find_stack_direction, alloca): Use prototypes.
18389
18390         * lib/atexit.c (atexit): Define using a prototype.
18391
18392         * lib/basename.c, dirname.c, stripslash.c:
18393         Include <string.h> unconditionally.
18394
18395         * lib/bcopy.c: Include <stddef.h>.
18396         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
18397
18398         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
18399
18400         * lib/error.h (error, error_at_line, error_print_progname)
18401         [! (defined (__STDC__) && __STDC__)]: Remove decls.
18402         * lib/error.c: Include error.h first, to check interface.
18403         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
18404         (VA_START): Remove; all uses changeed to va_start.
18405         (exit, strerror): Remove decls.
18406         (error_print_progname): Prototype uncondionally.
18407         Don't include <errno.h>; no longer needed.
18408         (private_strerror): Remove.
18409         (error_tail): Always define.
18410         (error, error_at_line): Assume C89 or better; always use prototypes.
18411         * lib/fatal.c: Include "fatal.h" first, to test interface.
18412         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
18413         (VA_START): Remove; all uses changed to va_start.
18414         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
18415         this case.
18416         (exit): Remove decl.
18417         (fatal): Prototype unconditionally.  Assume va_start works.
18418         Abort at end, to pacify gcc.
18419
18420         * lib/euidaccess.c (main): Define with a prototype.
18421
18422         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
18423
18424         * lib/exitfail.c: Include <stdlib.h> unconditionally.
18425
18426         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
18427         prototypes.
18428         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
18429         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
18430         (getenv): Remove decl.
18431         (fnmatch): Define using a prototype.
18432         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
18433         (FCT): Define using a prototype.
18434
18435         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
18436
18437         * lib/gethostname.c: Include <stddef.h>.
18438         (gethostname): Define with prototype.  Length is size_t, not int.
18439
18440 2003-09-08  Paul Eggert  <eggert@twinsun.com>
18441
18442         Assume C89 or better; remove K&R cruft.
18443         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
18444         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
18445         string.h, getenv, malloc.
18446         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
18447         headers.
18448         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
18449         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
18450         do not check for strerror.
18451         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
18452         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
18453         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
18454         do not check for doprnt or vprintf.
18455         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
18456         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
18457
18458 2003-09-08  Paul Eggert  <eggert@twinsun.com>
18459
18460         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
18461         getversion.c should have been removed then, but was accidentally
18462         preserved.
18463
18464         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
18465         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
18466
18467 2003-09-08  Karl Berry  <karl@gnu.org>
18468
18469         * config/config.sub, config.guess, srclistvars.sh: update from savannah
18470                 config, forget about prep.
18471
18472         * config/depcomp, missing: update from automake.
18473
18474 2003-09-07  Paul Eggert  <eggert@twinsun.com>
18475
18476         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
18477         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
18478
18479 2003-09-07  Paul Eggert  <eggert@twinsun.com>
18480
18481         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
18482         copy_tm_result.  Bug reported by Simon Josefsson in
18483         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
18484
18485 2003-09-06  Paul Eggert  <eggert@twinsun.com>
18486
18487         * m4/time_r.m4: New file.
18488         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
18489         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
18490         is. Check for timegm declaration.
18491         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
18492         Do not check for gmtime_r.
18493         Replace mktime if __mktime_internal does not exist and if mktime
18494         hasn't been replaced already.
18495
18496 2003-09-06  Paul Eggert  <eggert@twinsun.com>
18497
18498         * lib/time_r.c, lib/time_r.h: New files.
18499
18500         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
18501         __localtime_r.
18502         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
18503         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
18504
18505         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
18506         __gmtime_r.
18507         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
18508         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
18509         Include <time_r.h>.
18510
18511         * lib/timegm.c: Switch to glibc implementation, with the following
18512         changes:
18513         [defined HAVE_CONFIG_H]: Include <config.h>.
18514         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
18515         (__mktime_internal) [!defined _LIBC]: New decl.
18516         (__gmtime_r) [!defined _LIBC]: New macro and function.
18517         (timegm): Use a prototype, since gnulib assumes C89.
18518         Do not bother declaring tmp to be const, as it's not really usefu.
18519         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
18520         (timegm): Declare only if HAVE_DECL_TIMEGM.
18521
18522 2003-09-06  Paul Eggert  <eggert@twinsun.com>
18523
18524         * MODULES.html.sh (func_all_modules): Add time_r.
18525         * modules/time_r: New file.
18526         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
18527         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
18528
18529 2003-09-03  Paul Eggert  <eggert@twinsun.com>
18530
18531         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
18532         Bug reported by Lute Kamstra in
18533         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
18534
18535         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
18536         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
18537         course with correspondingly smaller numbers for tomorrow and
18538         yesterday.  From Tadayoshi Funaba.  Originally installed into
18539         sh-utils on 1999-08-07, but the patch got lost (I guess during the
18540         coreutils merge?).
18541
18542 2003-08-31  Simon Josefsson  <jas@extundo.com>
18543
18544         * modules/timegm: New file.
18545         * MODULES.html.sh (func_all_modules): Add timegm.
18546
18547 2003-08-31  Simon Josefsson  <jas@extundo.com>
18548
18549         * m4/timegm.m4: New file.
18550
18551 2003-08-31  Simon Josefsson  <jas@extundo.com>
18552
18553         * lib/timegm.h: New file.
18554         * lib/timegm.c: New file.  Based on
18555         wget-1.8.2/src/http.c:mktime_from_utc.
18556
18557 2003-08-31  Karl Berry  <karl@gnu.org>
18558
18559         * lib/argp.h: update from libc.
18560
18561 2003-08-28  Bruno Haible  <bruno@clisp.org>
18562
18563         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
18564         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
18565         followed by '#define fnmatch fnmatch_posix' gives an error.
18566
18567 2003-08-28  Bruno Haible  <bruno@clisp.org>
18568
18569         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
18570         warning on QNX, which defines O_BINARY to 000000.
18571
18572 2003-08-27  Jim Meyering  <jim@meyering.net>
18573
18574         * m4/mkstemp.m4: Require that the system mkstemp be able to create
18575         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
18576         would fail after 32.  Reported by Danny Levinson.  Details here:
18577         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
18578
18579 2003-08-24  Bruno Haible  <bruno@clisp.org>
18580
18581         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
18582         MSVC7 <stdio.h> is included later.
18583
18584 2003-08-22  Simon Josefsson  <jas@extundo.com>
18585
18586         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
18587
18588 2003-08-20  Karl Berry  <karl@gnu.org>
18589
18590         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
18591
18592 2003-08-20  Bruno Haible  <bruno@clisp.org>
18593
18594         * modules/progname: New file.
18595         * MODULES.html.sh (func_all_modules): Add progname.
18596
18597 2003-08-20  Bruno Haible  <bruno@clisp.org>
18598
18599         * lib/progname.h: New file, from GNU gettext.
18600         * lib/progname.c: New file, from GNU gettext.
18601         * lib/progreloc.c: New file, from GNU gettext.
18602
18603 2003-08-19  Jim Meyering  <jim@meyering.net>
18604
18605         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
18606         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
18607
18608 2003-08-19  Bruno Haible  <bruno@clisp.org>
18609
18610         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
18611         more.
18612
18613 2003-08-19  Bruno Haible  <bruno@clisp.org>
18614
18615         * lib/xstrdup.c: Assume <string.h> exists.
18616
18617 2003-08-18  Paul Eggert  <eggert@twinsun.com>
18618
18619         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
18620         in makefile rules.
18621
18622 2003-08-18  Jim Meyering  <jim@meyering.net>
18623
18624         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
18625         * m4/lib-ld.m4: Likewise.
18626
18627 2003-08-18  Jim Meyering  <jim@meyering.net>
18628
18629         * lib/setenv.h: Indent nested cpp directive.
18630         * lib/vasnprintf.c: Remove trailing blanks.
18631
18632 2003-08-17  Simon Josefsson  <jas@extundo.com>
18633
18634         * modules/xstrndup: New file.
18635         * MODULES.html.sh (func_all_modules): Add xstrndup.
18636
18637 2003-08-17  Simon Josefsson  <jas@extundo.com>
18638
18639         * modules/argp: Fix autoconf macro name. Add more dependencies.
18640
18641 2003-08-17  Simon Josefsson  <jas@extundo.com>
18642
18643         * m4/xstrndup.m4: New file.
18644
18645 2003-08-17  Simon Josefsson  <jas@extundo.com>
18646
18647         * m4/argp.m4: New file.
18648
18649 2003-08-17  Simon Josefsson  <jas@extundo.com>
18650             Bruno Haible  <bruno@clisp.org>
18651
18652         * lib/xstrndup.h: New file.
18653         * lib/xstrndup.c: New file.
18654
18655 2003-08-17  Bruno Haible  <bruno@clisp.org>
18656
18657         * modules/strndup (Files, Include): Add lib/strndup.h.
18658
18659 2003-08-17  Bruno Haible  <bruno@clisp.org>
18660
18661         * modules/euidaccess (Files): Add lib/euidaccess.h.
18662
18663 2003-08-17  Bruno Haible  <bruno@clisp.org>
18664
18665         * lib/strndup.h: New file.
18666
18667 2003-08-17  Bruno Haible  <bruno@clisp.org>
18668
18669         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
18670         like AC_GNU_SOURCE.
18671         * modules/extensions (configure.ac): Comment out the invocation of
18672         gl_USE_SYSTEM_EXTENSIONS.
18673
18674 2003-08-16  Paul Eggert  <eggert@twinsun.com>
18675
18676         Merges from coreutils, etc.
18677         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
18678         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
18679         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
18680         fixing a typo.
18681         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
18682         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
18683
18684 2003-08-16  Paul Eggert  <eggert@twinsun.com>
18685
18686         Document merge from coreutils.
18687         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
18688         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
18689         * modules/utime: Add m4/utimes-null.m4.
18690
18691 2003-08-16  Paul Eggert  <eggert@twinsun.com>
18692
18693         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
18694         space, undoing this 2003-08-12 change:
18695         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
18696
18697 2003-08-16  Paul Eggert  <eggert@twinsun.com>
18698
18699         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
18700         strtoul.c from libc, undoing this 2003-08-12 change:
18701         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
18702
18703 2003-08-16  Jim Meyering  <jim@meyering.net>
18704
18705         Merges from coreutils.
18706         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
18707         prefix.  Adjust cache variables similarly.  Create 500 rather than
18708         just 300 files, to exercise bug on Darwin6.5, too.
18709         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
18710         $missing_dir.
18711         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
18712         AM_SYS_POSIX_TERMIOS.
18713         Reported by mkc@mathdogs.com.
18714         Also change use of $am_cv_sys_posix_termios
18715         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
18716         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
18717         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
18718         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
18719         in /proc/mounts until it finds one with matching device number.  This
18720         is unnecessary when the FILE argument *is* a mount point.  No stat call
18721         is necessary in that case.  So, disable the statvfs-testing code on
18722         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
18723         as RedHat bug# 84846.
18724         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
18725         to 1MB, so as not to render systems with no stack size limit (e.g.,
18726         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
18727         Include <unistd.h>.  On some systems,
18728         it is required for the definition of _SC_PAGESIZE.
18729
18730 2003-08-16  Jim Meyering  <jim@meyering.net>
18731
18732         Merge from coreutils.
18733         * lib/xstrtoimax.c: #else #if -> #elif.
18734         * lib/xstrtoumax.c: Likewise.
18735
18736 2003-08-16  Jim Meyering  <jim@meyering.net>
18737
18738         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
18739         * m4/utimes.m4: Removed.
18740         * m4/utimes-null.m4: Renamed from utimes.m4.
18741
18742         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
18743         to 1MB, so as not to render systems with no stack size limit (e.g.,
18744         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
18745         Include <unistd.h>.  On some systems,
18746         it is required for the definition of _SC_PAGESIZE.
18747
18748 2003-08-16  Jim Meyering  <jim@meyering.net>
18749         and Paul Eggert  <eggert@cs.ucla.edu>
18750
18751         Merges from coreutils, etc.
18752
18753         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
18754         using the latest version from cvs.  This avoids problems with #line
18755         directives using a vendor (Sun) compiler.
18756         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
18757         Don't set GETGROUPS_LIB here; now it's
18758         done via getgroups.m4's wrapper function.
18759         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
18760         rather than just in sh-util/configure.in, so that the
18761         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
18762         same.
18763         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
18764         AC_FUNC_GETLOADAVG where to find getloadavg.c.
18765         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
18766         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
18767         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
18768         Remove code that is now done by the newly-required macros.
18769         Append $(EXEEXT) to DF_PROG.
18770         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
18771         Do not invoke or require the following here,
18772         since prereq.m4 or some gnulib .m4 now does this for us:
18773         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
18774         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
18775         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
18776         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
18777         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
18778         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
18779         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
18780         AC_FUNC_OBSTACK.
18781         Do not replace the following functions, as this is now the job
18782         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
18783         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
18784         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
18785         atexit getpass, strdup, getpagesize.
18786         Replace 'raise'.
18787         Do not check for the following functions, as this is now the job
18788         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
18789         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
18790         setregid.
18791         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
18792         Check for sys/sysctl.h.
18793         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
18794         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
18795         of checking for ssize_t ourselves.
18796
18797         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
18798         Require every macro that gnulib/modules/* suggests for us.
18799         (jm_PREREQ_ADDEXT): New macro.
18800         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
18801         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
18802
18803         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
18804         (gl_PHYSMEM): Use it.
18805         Also check for `table' function.
18806         Check for new headers and functions.
18807         Add check for sys/sysmp.h.
18808         With suggestions from Kaveh Ghazi.
18809         Ignore headers that are present but cannot be compiled.  This
18810         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
18811         C 5.4.
18812
18813 2003-08-15  Paul Eggert  <eggert@twinsun.com>
18814
18815         Document merge from coreutils.
18816         * modules/userspec: Depend on posixver.
18817         * modules/strftime: Depend on tzset.
18818
18819 2003-08-15  Paul Eggert  <eggert@twinsun.com>
18820
18821         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
18822         rather than tab, after '#' in shell-script copyright notices.
18823         Suggested by Bruno Haible.
18824
18825 2003-08-15  Paul Eggert  <eggert@twinsun.com>
18826
18827         * config/srclist-update: Use three spaces, rather than tab, after '#'
18828         in shell-script copyright notices.  Suggested by Bruno Haible.
18829         Remove unnecessary parenthesization in regular expression.
18830
18831 2003-08-15  Jim Meyering  <jim@meyering.net>
18832
18833         Merge from coreutils.
18834         * lib/xgethostname.c: Include <stdlib.h>.
18835         (xghostname): Don't exit for anything other than memory-related
18836         failure; just return NULL.
18837         * lib/userspec.c: Include "posixver.h".
18838         (parse_user_spec): Accept `.' as a separator only
18839         in pre-POSIX-200112 mode.
18840         * lib/strtoimax.c: Use #elif rather than #else #if.
18841         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
18842         Remove function, now that we can rely on a working tzset function.
18843         [!_LIBC]: Ensure that the required autoconf test has been run.
18844         [!defined _NL_CURRENT && HAVE_STRFTIME]:
18845         Use underlying_strftime for %r.
18846         * lib/sha.c: Merge in some clean-up and optimization changes from
18847         glibc.
18848         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
18849         Ensure that it is a multiple of 64.
18850         Rearrange loop exit tests so as to avoid performing an
18851         additional fread after encountering an error or EOF.
18852         * lib/realloc.c: Update copyright date.
18853
18854 2003-08-15  Jim Meyering  <jim@meyering.net>
18855         and Paul Eggert  <eggert@twinsun.com>
18856
18857         Merge from coreutils.
18858         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
18859         member but strut utmpx does not.  Needed for AIX 4.3.3.
18860         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
18861
18862 2003-08-15  Jim Meyering  <jim@meyering.net>
18863         and Paul Eggert  <eggert@cs.ucla.edu>
18864
18865         Merges from coreutils, etc.
18866         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
18867         Require gl_FUNC_TZSET_CLOBBER.
18868         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
18869         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
18870         members.
18871
18872 2003-08-14  Paul Eggert  <eggert@twinsun.com>
18873
18874         Help the merge from coreutils.
18875         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
18876         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
18877         * m4/tzset.m4: Use it too.
18878
18879 2003-08-14  Paul Eggert  <eggert@twinsun.com>
18880
18881         * modules/tzset: New file.
18882
18883 2003-08-14  Jim Meyering  <jim@meyering.net>
18884
18885         Merges from coreutils.
18886         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
18887         variable names, rather than @FNMATCH_H@.
18888         * modules/alloca: Likewise for $(ALLOCA_H).
18889
18890         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
18891         the three copies of the literal target, `fnmatch.h'.
18892         * modules/alloca (alloca.h): Likewise.
18893
18894 2003-08-14  Jim Meyering  <jim@meyering.net>
18895
18896         Merge from coreutils.
18897         * m4/tzset.m4: New file.
18898         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
18899         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
18900         otherwise, AIX 5.1 systems would end up using the latter.
18901         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
18902         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
18903         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
18904         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
18905
18906 2003-08-14  Jim Meyering  <jim@meyering.net>
18907
18908         Merge from coreutils.
18909         * lib/obstack.h: Whitespace changes.
18910         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
18911         and xcalloc return values.
18912         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
18913         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
18914         hang on OSF/1 5.1 for DIR on both local and remote file systems.
18915         Reported by (and fix confirmed by) Nelson H. F. Beebe.
18916         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
18917         error from mntctl.
18918         Use mntctl's return value to drive the entry-processing loop, since
18919         we can't rely on the value of the vmt_length member in the last
18920         entry.  On some systems doing so could result in exhausting
18921         virtual memory.  Based in part on a patch from Mike Jetzer.
18922
18923 2003-08-14  Jim Meyering  <jim@meyering.net>
18924         and Paul Eggert  <eggert@twinsun.com>
18925
18926         Merges from coreutils, plus other fixes.
18927         * lib/physmem.c: Merge in portability changes from gcc/libiberty
18928         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
18929         for credits and details.  Thanks to Kaveh Ghazi for helping
18930         to keep these files in sync.
18931         (ARRAY_SIZE): Define it.
18932         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
18933         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
18934         (memcasecmp): Don't assume size_t fits in unsigned int.
18935         Remove casts and duplicate code.
18936         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
18937         (memcpy): Remove definition.
18938         Merge in some clean-up and optimization changes from glibc.
18939         [BLOCKSIZE]: Move definition to top of file.
18940         Ensure that it is a multiple of 64.
18941         Rearrange loop exit tests so as to avoid performing an
18942         additional fread after encountering an error or EOF.
18943         * lib/md5.h (md5_uintptr): Define.
18944         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
18945         return to the initial working directory.  Preserve errno
18946         for caller.
18947         * lib/idcache.c: Include "xalloc.h".
18948         (xmalloc, xrealloc): Remove decls.
18949         (getuser): Remove casts no longer required in C89.
18950         * lib/human.c: Include stdio.h, for sprintf.
18951         * lib/group-member.c: Include "xalloc.h".
18952         (xmalloc, xrealloc): Remove decls.
18953         (get_group_info): Remove casts no longer required in C89.
18954         * lib/getusershell.c (readname): Remove casts no longer required in
18955         C89.
18956         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
18957         * lib/getline.c: Whitespace fix, from coreutils.
18958
18959 2003-08-13  Paul Eggert  <eggert@twinsun.com>
18960
18961         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
18962         Check for isascii.
18963
18964         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
18965         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
18966         Undo previous (whitespace-only) change.
18967
18968 2003-08-13  Paul Eggert  <eggert@twinsun.com>
18969
18970         * lib/exclude.c: Include <ctype.h>
18971         (IN_CTYPE_DOMAIN): New macro.
18972         (is_space): New fn.
18973         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
18974         and empty lines.
18975
18976         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
18977         Undo previous (whitespace-only) change.
18978
18979 2003-08-13  Paul Eggert  <eggert@twinsun.com>
18980
18981         * config/srclist-update: Change update back to the old behavior,
18982         leaving whitespace alone.  Use one 'sed' command rather than a
18983         pipeline.
18984         (fixlicense): Now a variable, not a function.
18985         (remove_trailing_blanks): Remove.
18986         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
18987         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
18988         Undo previous (whitespace-only) change.
18989
18990 2003-08-12  Paul Eggert  <eggert@twinsun.com>
18991
18992         Merge from coreutils.
18993         * modules/euidaccess: Add lib_SOURCES, include for new
18994         file euidaccess.h
18995
18996 2003-08-12  Paul Eggert  <eggert@twinsun.com>
18997
18998         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
18999         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
19000         Normalize leading white space and remove trailing white space.
19001
19002         Merge from coreutils
19003         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
19004
19005         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
19006         0.12.1.  These files are now being upgraded automatically by
19007         ../config/srclist-update.
19008
19009 2003-08-12  Paul Eggert  <eggert@twinsun.com>
19010
19011         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
19012         Normalize leading white space and remove trailing white space.
19013         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
19014         notice, as per ../config/srclist-update.
19015
19016         Merge from coreutils.
19017         * lib/euidaccess.h: New file.
19018         * lib/euidaccess.c: Include it.
19019         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
19020         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
19021         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
19022
19023 2003-08-12  Paul Eggert  <eggert@twinsun.com>
19024
19025         * config/srclist-update: Add copyright notice.
19026         (remove_id_lines, remove_trailing_blanks): New constants.
19027         (fixfile): Use them to normalize spacing a bit in copied files.
19028         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
19029         Normalize leading white space and remove trailing white space.
19030
19031         * config/texinfo.tex: Sync with texinfo.
19032
19033         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
19034         strtoul.c from libc, to merge coreutils whitespace changes.
19035
19036         * config/srclist.txt: Get the following m4 files from gettext:
19037         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
19038         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
19039         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
19040         wint_t.m4.
19041
19042 2003-08-12  Karl Berry  <karl@gnu.org>
19043
19044         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
19045         been made.
19046
19047 2003-08-11  Paul Eggert  <eggert@twinsun.com>
19048
19049         * modules/gnu-source, m4/gnu-source.m4:
19050         Remove; we're assuming Autoconf 2.54 or later now.
19051         Suggested by Bruno Haible.
19052         * MODULES.html.sh (func_all_modules): Remove gnu-source.
19053
19054 2003-08-11  Bruno Haible  <bruno@clisp.org>
19055
19056         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
19057
19058 2003-08-11  Bruno Haible  <bruno@clisp.org>
19059
19060         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
19061         (vasnprintf): Use it instead of wcslen.
19062
19063 2003-08-11  Bruno Haible  <bruno@clisp.org>
19064
19065         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
19066         value to ensure that _Bool promotes to int. Use #define for _Bool when
19067         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
19068
19069 2003-08-10  Karl Berry  <karl@gnu.org>
19070
19071         * lib/regex.h: update from libc (whitespace fix).
19072
19073 2003-08-09  Paul Eggert  <eggert@twinsun.com>
19074
19075         Merge some files from coreutils.  These changes were
19076         originally made by Jim Meyering.
19077         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
19078         many older Unixes require this.
19079         * lib/alloca.c (alloca): Remove cast to argument of free;
19080         no longer needed in C89.
19081         * lib/alloca_.h, regex.h: Fix white space to match
19082         what GNU indent does.
19083
19084 2003-08-09  Paul Eggert  <eggert@twinsun.com>
19085
19086         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
19087         apparently Emacs's Unicode mode got confused before my 2003-08-05
19088         checkin.
19089
19090 2003-08-08  Paul Eggert  <eggert@twinsun.com>
19091
19092         * m4/extensions.m4: New file.
19093         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
19094         Require gl_USE_SYSTEM_EXTENSIONS.
19095         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
19096         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
19097
19098 2003-08-08  Paul Eggert  <eggert@twinsun.com>
19099
19100         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
19101         * modules/extensions, modules/gnu-source: New files.
19102         * modules/timespec, modules/unlocked-io: Depend on extensions.
19103
19104 2003-08-07  Paul Eggert  <eggert@twinsun.com>
19105
19106         * modules/restrict: New file.
19107         * MODULES.html.sh (func_all_modules): Add restrict.
19108         * modules/regex: Depend on restrict.
19109
19110 2003-08-07  Paul Eggert  <eggert@twinsun.com>
19111
19112         * m4/restrict.m4: New file.
19113         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
19114
19115 2003-08-07  Bruno Haible  <bruno@clisp.org>
19116
19117         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
19118         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
19119
19120 2003-08-07  Bruno Haible  <bruno@clisp.org>
19121
19122         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
19123         makes the module 'getndelim2' compatible with the module 'getline'.
19124
19125 2003-08-05  Paul Eggert  <eggert@twinsun.com>
19126
19127         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
19128         byte with "\201" to avoid glitches when editing that source file
19129         with multi-gnome-terminal.
19130
19131 2003-08-05  Paul Eggert  <eggert@twinsun.com>
19132
19133         * lib/bumpalloc.h: Remove.
19134
19135 2003-08-05  Paul Eggert  <eggert@twinsun.com>
19136
19137         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
19138         * modules/bumpalloc: Remove.
19139
19140 2003-08-04  Paul Eggert  <eggert@twinsun.com>
19141
19142         * lib/getloadavg.c: Change copyright notice and spacing to conform to
19143         GNU coding style.
19144
19145         Merge from coreutils.
19146         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
19147         1. From glibc.
19148         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
19149         from Karl Berry, implemented by Jim Meyering.
19150         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
19151         from Dmitry V. Levin.
19152         Remove anachronistic cast of xrealloc.
19153         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
19154         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
19155         type. Otherwise, it wouldn't compile with at least /bin/cc on
19156         ymp-cray-unicos9.0.2.X.
19157         Combine two mostly-identical uses of alloca into one.
19158         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
19159
19160 2003-08-04  Dave Love  <d.love@dl.ac.uk>
19161
19162         [From Emacs.]
19163
19164         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
19165         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
19166         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
19167         obsolete NLIST_NAME_UNION.
19168         [__GNU__]: Undef BSD and FSCALE.
19169         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
19170
19171 2003-08-03  Paul Eggert  <eggert@twinsun.com>
19172
19173         * lib/stdbool_.h (_Bool): Make it signed char, instead of
19174         an enum type, so that it's guaranteed to promote to int.  See:
19175         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
19176
19177 2003-08-03  Karl Berry  <karl@gnu.org>
19178
19179         * config/depcomp: update from automake.
19180
19181 2003-07-31  Paul Eggert  <eggert@twinsun.com>
19182
19183         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
19184         (strerror): Don't assume that a printable int fits in 14 bytes.
19185
19186 2003-07-31  Bruno Haible  <bruno@clisp.org>
19187
19188         * modules/getpass-gnu: New file.
19189         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
19190
19191 2003-07-31  Bruno Haible  <bruno@clisp.org>
19192
19193         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
19194
19195 2003-07-24  Karl Berry  <karl@gnu.org>
19196
19197         * config/missing: update from automake.
19198
19199 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
19200             Bruno Haible  <bruno@clisp.org>
19201
19202         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
19203         * lib/getline.c (getline, getdelim): Likewise.
19204         Remove _GNU_SOURCE define; now it's defined in config.h through
19205         m4/getline.m4.
19206
19207 2003-07-23  Karl Berry  <karl@gnu.org>
19208
19209         * config/config.sub: update from prep.
19210
19211 2003-07-22  Paul Eggert  <eggert@twinsun.com>
19212
19213         * modules/xalloc (Depends-on): Add exitfail.
19214         * modules/xmemcoll: Likewise.
19215
19216 2003-07-22  Paul Eggert  <eggert@twinsun.com>
19217
19218         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
19219         over-parenthesization in macros.
19220
19221         Sync with coreutils.
19222
19223         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
19224         required by C99.
19225
19226         Use `exit_failure' for xalloc and xmemcoll instead of their own
19227         private exit-failure variables.
19228         * lib/xalloc.h (xalloc_exit_failure): Remove.
19229         * lib/xmalloc.c: Likewise.  Include exitfail.h.
19230         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
19231         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
19232         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
19233         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
19234
19235 2003-07-20  Jim Meyering  <jim@meyering.net>
19236
19237         * modules/closeout (Depends-on): Add exitfail.
19238         Suggestion from Bruno Haible.
19239
19240 2003-07-19  Karl Berry  <karl@gnu.org>
19241
19242         * config/config.sub: update from prep.
19243
19244 2003-07-18  Paul Eggert  <eggert@twinsun.com>
19245
19246         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
19247         Remove.
19248         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
19249         to test that it can stand by itself.  Include "exitfail.h".
19250         Clients should set exit_failure instead.
19251         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
19252
19253 2003-07-18  Bruno Haible  <bruno@clisp.org>
19254
19255         * modules/getndelim2: New file.
19256         * modules/getline: Share files with module getndelim2.
19257         * modules/getnline: Depend on getndelim2 instead of sharing files with
19258         it. Add getnline.c to lib_SOURCES.
19259         * MODULES.html.sh (func_all_modules): Add getndelim2.
19260
19261 2003-07-18  Bruno Haible  <bruno@clisp.org>
19262
19263         * m4/getndelim2.m4: New file.
19264         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
19265         invoke gl_PREREQ_GETNDELIM2.
19266         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
19267         gl_PREREQ_GETNDELIM2.
19268         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
19269         gl_GETNDELIM2.
19270
19271 2003-07-18  Bruno Haible  <bruno@clisp.org>
19272
19273         * lib/getndelim2.h: New file.
19274         * lib/getndelim2.c: Make into a module of its own. Include config.h,
19275         getndelim2.h.
19276         (getndelim2): Make non-static. Change return type to ssize_t.
19277         * lib/getline.h: Change argument names.
19278         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
19279         * lib/getnline.c: Include getndelim2.h.
19280
19281 2003-07-18  Andreas Schwab  <schwab@suse.de>
19282
19283         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
19284
19285 2003-07-17  Karl Berry  <karl@gnu.org>
19286
19287         * config/config.sub: update from prep.
19288
19289 2003-07-17  Bruno Haible  <bruno@clisp.org>
19290
19291         * modules/getnline: New file.
19292         * modules/getline: Add lib/getndelim2.c to source file list.
19293         * MODULES.html.sh (func_all_modules): Add getnline.
19294
19295 2003-07-17  Bruno Haible  <bruno@clisp.org>
19296
19297         * m4/getnline.m4: New file.
19298
19299 2003-07-17  Bruno Haible  <bruno@clisp.org>
19300
19301         * m4/Makefile.am.in: Remove file.
19302         * m4/Makefile.am: Remove file.
19303         * m4/Makefile.in: Remove file.
19304
19305 2003-07-17  Bruno Haible  <bruno@clisp.org>
19306
19307         * lib/getnline.h: New file.
19308         * lib/getnline.c: New file.
19309         * lib/getndelim2.c: New file, extracted from getline.c.
19310         (getndelim2): Renamed from getdelim2, with added nmax argument.
19311         * lib/getline.c: Include getndelim2.c.
19312         (getdelim2): Moved out to getndelim2.c.
19313         (getline, getdelim): Update.
19314
19315 2003-07-17  Bruno Haible  <bruno@clisp.org>
19316
19317         * lib/Makefile.am: Remove file.
19318         * lib/Makefile.in: Remove file.
19319
19320 2003-07-17  Bruno Haible  <bruno@clisp.org>
19321
19322         * configure.in: Remove file.
19323         * Makefile.in: Remove file.
19324
19325 2003-07-17  Bruno Haible  <bruno@clisp.org>
19326
19327         * MODULES.html.sh: Put the </BODY> right before </HTML>.
19328
19329 2003-07-16  Karl Berry  <karl@gnu.org>
19330
19331         * config/srclist-update: was running fixlicense twice, which caused
19332                 texinfo.tex to be nullified for some reason.  Simplify,
19333                 $gplsrc is no longer needed as far as I can see?
19334
19335 2003-07-16  Jim Meyering  <jim@meyering.net>
19336
19337         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
19338
19339 2003-07-15  Paul Eggert  <eggert@twinsun.com>
19340
19341         * config/srclist.txt: Get the following files from gettext-runtime/intl
19342         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
19343         ref-del.sin.  From Bruno Haible.
19344         * config/srclist-update (fixfile): Change grep pattern again, since the
19345         previous fix didn't work (there was another trailing $).  Use
19346         '[$]' to escape the $s.
19347
19348 2003-07-15  Karl Berry  <karl@gnu.org>
19349
19350         * lib/vasnprintf.c: update from gettext.
19351
19352 2003-07-15  Karl Berry  <karl@gnu.org>
19353
19354         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
19355         gets expanded when surrounded by '$'.
19356
19357 2003-07-15  Jim Meyering  <jim@meyering.net>
19358
19359         * modules/save-cwd: Don't depend on error.  From Derek Price.
19360
19361 2003-07-15  Jim Meyering  <jim@meyering.net>
19362
19363         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
19364
19365 2003-07-14  Simon Josefsson  <jas@extundo.com>
19366
19367         * modules/mempcpy: New file.
19368         * MODULES.html.sh (func_all_modules): Add mempcpy.
19369
19370 2003-07-14  Simon Josefsson  <jas@extundo.com>
19371
19372         * m4/mempcpy.m4: New file.
19373
19374 2003-07-14  Simon Josefsson  <jas@extundo.com>
19375
19376         * lib/mempcpy.h: New file.
19377         * lib/mempcpy.c: New file.
19378
19379 2003-07-14  Paul Eggert  <eggert@twinsun.com>
19380
19381         * modules/getdate, modules/posixtm: Depend on mktime.
19382
19383 2003-07-14  Paul Eggert  <eggert@twinsun.com>
19384
19385         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
19386         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
19387         unicodeio.c, unicodeio.h, unlocked-io.h:
19388         Switch from LGPL to GPL.
19389
19390 2003-07-14  Paul Eggert  <eggert@twinsun.com>
19391
19392         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
19393         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
19394         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
19395         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
19396         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
19397         updated automatically by ../config/srclist-update.  This changes
19398         their license from LPGL to GPL.
19399
19400 2003-07-14  Paul Eggert  <eggert@twinsun.com>
19401
19402         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
19403         assumed to refer to the root of the most recent stable gettext version.
19404         * config/srclistvars.sh: Add defaults for eggert.
19405         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
19406         Match "This program" as well as "The program".  This is needed
19407         for gettext.
19408
19409 2003-07-14  Jim Meyering  <jim@meyering.net>
19410
19411         Don't emit diagnostics.  Let callers do that.
19412         * lib/save-cwd.c: Don't include "error.h".
19413         (save_cwd): Don't call error.  Ensure that errno is valid
19414         when returning nonzero.
19415
19416         * lib/save-cwd.h (restore_cwd): Update prototype.
19417         * lib/save-cwd.c (restore_cwd): Remove two parameters.
19418         Simplify.  Don't call error upon failure.  Let callers do that.
19419         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
19420         when auditing is enabled.  But don't bother updating the #if.
19421
19422 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
19423
19424         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
19425         it breaks C++ compilation.
19426         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
19427
19428 2003-07-10  Simon Josefsson  <jas@extundo.com>
19429
19430         * modules/strchrnul (Makefile.am): Add strchrnul.h.
19431
19432 2003-07-10  Jim Meyering  <jim@meyering.net>
19433
19434         * m4/clock_time.m4: Remove trailing blank.
19435         * m4/intmax_t.m4: Likewise.
19436
19437 2003-07-10  Jim Meyering  <jim@meyering.net>
19438
19439         * lib/vasnprintf.c: Remove trailing blanks.
19440         Make cpp indentation consistent.
19441
19442 2003-07-09  Paul Eggert  <eggert@twinsun.com>
19443
19444         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
19445         posixver.c, strftime.c, strnlen.c, strverscmp.c:
19446         Switch from LGPL to GPL.
19447
19448 2003-07-09  Paul Eggert  <eggert@twinsun.com>
19449
19450         * config/srclist.txt: Sort sublists.  Add
19451         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
19452         that differ from gnulib for one reason or another; we'd like this list
19453         to be smaller but for now let's document what we have.
19454
19455 2003-07-08  Paul Eggert  <eggert@twinsun.com>
19456
19457         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
19458         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
19459         and sweeter "eval x=$x".
19460         * config/srclist.txt: Get lib/argp* from glibc.
19461
19462 2003-07-07  Paul Eggert  <eggert@twinsun.com>
19463
19464         * lib/mktime.c: Fix some boundary cases and remove need for floating
19465         point.
19466
19467         Issue a compile-time diagnostic if time_t is floating point, or if
19468         two's complement arithmetic is not in effect, or if arithmetic
19469         right shift does not propagate the sign.  These assumptions were
19470         all in the original code but they weren't checked.
19471
19472         (TIME_T_MIDPOINT, verify): New macros.
19473         (__isleap): Remove; it has integer overflow problems.
19474         (leapyear): New function, without those problems.
19475         (ydhms_tm_diff): Remove; splitting into two parts.
19476         (ydhms_diff): New function, containing the arithmetic part of
19477         the old ydhms_tm_diff function.  Issue a compile-time
19478         diagnostic if we are not using C99 integer division.
19479         Avoid casts when possible.
19480         (guess_time_tm): New function, containing the checking part of
19481         the old ydhms_tm_diff function.  Return the new value, rather than
19482         the difference between it and the old.  Accept a new argument T
19483         so that *T specifies the old value.  Check for overflow in the result.
19484
19485         (__mktime_internal): Use a time_t offset, not a long int offset.
19486         This undoes the 2003-06-04 change, which is no longer needed now
19487         that we have better overflow checking.
19488         (localtime_offset): Likewise.
19489
19490         (__mktime_internal): Avoid harmful overflow on hosts where time_t
19491         and long are 64-bit but int is only 32-bit.
19492         (ydhms_diff): Use long int to store year1 and yday1.
19493         Issue a compile-time diagnostic if long int is not wide enough.
19494
19495         (__mktime_internal): Use long int to store adjusted year and yday.
19496         Use plain C rather than preprocessor commands, if that doesn't
19497         affect efficiency.
19498         Check for overflow (and try to repair) after each probe
19499         rather than checking only at the very end.  This avoids some bugs
19500         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
19501         does not equal GMT offset at maximum time).
19502         Use integer to check for overflow rather than floating point; this
19503         is more portable to non-IEEE hosts, and is a tad faster.
19504         When we detect that we are oscillating between two values,
19505         don't check whether tm_isdst has the requested value, since
19506         we already know the answer.  When tm_isdst has the wrong value,
19507         use a different heuristic to find the right one, based on the
19508         extreme values actually observed in practice in tz2003a,
19509         rather than the (overly optimistic) "previous 3 calendar quarters".
19510
19511         (not_equal_tm, print_tm, check_result): Use "const T" rather than
19512         "T const" to accommodate glibc style.
19513         (check_result): Use less-confusing report format.  "long" -> "long int.
19514         (main): Likewise.
19515         Don't loop if the iteration overflows time_t.
19516         Allow a negative step in the iteration.
19517
19518 2003-07-06  Karl Berry  <karl@gnu.org>
19519
19520         * config/depcomp: update from automake.
19521         * config/config.sub: update from prep.
19522
19523 2003-07-03  Karl Berry  <karl@gnu.org>
19524
19525         * config/config.guess: update from prep.
19526
19527 2003-07-01  Paul Eggert  <eggert@twinsun.com>
19528
19529         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
19530         xreadlink.c now includes it unconditionally.
19531
19532 2003-07-01  Paul Eggert  <eggert@twinsun.com>
19533
19534         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
19535         having it depend on HAVE_SYS_TYPES_H.
19536
19537 2003-07-01  Bruno Haible  <bruno@clisp.org>
19538
19539         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
19540         <sys/types.h> should be sufficient.
19541         Reported by Paul Eggert.
19542
19543 2003-06-26  Karl Berry  <karl@gnu.org>
19544
19545         * config/depcomp: update from automake.
19546
19547 2003-06-26  Bruno Haible  <bruno@clisp.org>
19548
19549         * modules/human: Depend on module stdbool.
19550
19551 2003-06-25  Bruno Haible  <bruno@clisp.org>
19552
19553         * modules/readlink: New file.
19554         * modules/xreadlink: Depend on it.
19555         * MODULES.html.sh (func_all_modules): Add readlink.
19556
19557 2003-06-25  Bruno Haible  <bruno@clisp.org>
19558
19559         * m4/readlink.m4: New file.
19560
19561 2003-06-25  Bruno Haible  <bruno@clisp.org>
19562
19563         * lib/readlink.c: New file.
19564
19565 2003-06-22  Karl Berry  <karl@gnu.org>
19566
19567         * config/srclist.txt: update mkinstalldirs from automake.
19568         * config/mkinstalldirs: update.
19569
19570 2003-06-22  Bruno Haible  <bruno@clisp.org>
19571
19572         Portability to mingw32.
19573         * m4/ssize_t.m4: New file, from GNU gettext.
19574         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
19575         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
19576
19577 2003-06-22  Bruno Haible  <bruno@clisp.org>
19578
19579         * modules/safe-read: Add m4/ssize_t.m4.
19580         * modules/xreadlink: Add m4/ssize_t.m4.
19581
19582 2003-06-20  Bruno Haible  <bruno@clisp.org>
19583
19584         Assume C89, so PARAMS isn't needed.
19585         * lib/unicodeio.h (PARAMS): Remove.
19586         * lib/unicodeio.c: Don't use PARAMS.
19587
19588 2003-06-18  Karl Berry  <karl@gnu.org>
19589
19590         * config/config.{guess,sub}: update from prep.
19591
19592 2003-06-18  Jim Meyering  <jim@meyering.net>
19593
19594         Merge changes from coreutils.
19595         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
19596         Remove explicit declarations of xmalloc and realloc.
19597         Include xalloc.h.
19598         (read_utmp): Remove anachronistic cast of xmalloc.
19599
19600 2003-06-17  Paul Eggert  <eggert@twinsun.com>
19601
19602         Assume C89, so PARAMS isn't needed.
19603         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
19604         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
19605         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
19606         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
19607         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
19608         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
19609         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
19610         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
19611         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
19612         lib/xstrtod.h, lib/xstrtol.h: Likewise.
19613         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
19614         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
19615         no longer needed. Anyway, config.h should always be included before any
19616         other file.
19617
19618 2003-06-11  Simon Josefsson  <jas@extundo.com>
19619
19620         * modules/sysexits: New file.
19621         * MODULES.html.sh (func_all_modules): Add sysexits.
19622
19623 2003-06-11  Simon Josefsson  <jas@extundo.com>
19624
19625         * lib/sysexit_.h: New file.
19626
19627 2003-06-11  Derek Price  <derek@ximbiot.com>
19628
19629         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
19630         necessary.
19631
19632 2003-06-11  Bruno Haible  <bruno@clisp.org>
19633
19634         * m4/sysexits.m4: New file.
19635
19636 2003-06-10  Simon Josefsson  <jas@extundo.com>
19637
19638         * lib/argp.h: New file, from glibc.
19639         * lib/argp-ba.c: New file, from glibc.
19640         * lib/argp-eexst.c: New file, from glibc.
19641         * lib/argp-fmtstream.c: New file, from glibc.
19642         * lib/argp-fmtstream.h: New file, from glibc.
19643         * lib/argp-fs-xinl.c: New file, from glibc.
19644         * lib/argp-help.c: New file, from glibc.
19645         * lib/argp-namefrob.h: New file, from glibc.
19646         * lib/argp-parse.c: New file, from glibc.
19647         * lib/argp-pv.c: New file, from glibc.
19648         * lib/argp-pvh.c: New file, from glibc.
19649         * lib/argp-xinl.c: New file, from glibc.
19650
19651 2003-06-10  Simon Josefsson  <jas@extundo.com>
19652
19653         * modules/strchrnul: New file.
19654
19655 2003-06-10  Simon Josefsson  <jas@extundo.com>
19656
19657         * modules/argp: New file.
19658
19659 2003-06-10  Simon Josefsson  <jas@extundo.com>
19660
19661         * m4/strchrnul.m4: New file.
19662
19663 2003-06-10  Simon Josefsson  <jas@extundo.com>
19664
19665         * lib/strchrnul.h: New file.
19666         * lib/strchrnul.c: New file.
19667
19668 2003-06-10  Bruno Haible  <bruno@clisp.org>
19669
19670         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
19671
19672 2003-06-07  Karl Berry  <karl@gnu.org>
19673
19674         * config/config.{guess,sub}: update from prep.
19675
19676 2003-06-07  Jim Meyering  <jim@meyering.net>
19677
19678         * modules/strtod: Use $(...) notation, not @...@ for
19679         AC_REPLACE'd variables.
19680         * modules/localcharset: Likewise.
19681
19682 2003-06-07  Jim Meyering  <jim@meyering.net>
19683
19684         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
19685         in place of my name in the copyright comment.
19686         Remove definition and uses of __P.
19687
19688         From coreutils.
19689         * lib/stat.c: Don't declare xmalloc explicitly.
19690         Instead, include "xalloc.h".
19691         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
19692         xrealloc, and xcalloc return values.
19693         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
19694         Improve comment.
19695         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
19696
19697 2003-06-07  Bruno Haible  <bruno@clisp.org>
19698
19699         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
19700         avoid AC_CONFIG_LINKS.
19701         * modules/fnmatch (Makefile.am): Use explicit creation rule for
19702         fnmatch.h, to avoid AC_CONFIG_LINKS.
19703         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
19704
19705 2003-06-07  Bruno Haible  <bruno@clisp.org>
19706
19707         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
19708         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
19709         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
19710         directory.
19711         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
19712         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
19713         directory.
19714
19715 2003-06-06  Jim Meyering  <jim@meyering.net>
19716
19717         Merge from coreutils.
19718         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
19719         Consolidate declarations and initializations of *_base* locals.
19720
19721         Merge from coreutils.
19722         This avoids a core dump on systems without GNU putenv,
19723         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
19724         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
19725         (unsetenv): New static function, from GNU libc.
19726         (rpl_putenv): Use it.
19727
19728         * lib/modechange.c: Remove trailing blanks.
19729
19730         Merge from coreutils.
19731         * lib/fsusage.c: Remove declaration of statfs.
19732         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
19733
19734         * lib/posixtm.c: Include <stdbool.h> unconditionally.
19735
19736 2003-06-06  Jim Meyering  <jim@meyering.net>
19737
19738         * lib/stdbool_.h: Renamed from stdbool.h.in.
19739
19740 2003-06-06  Jim Meyering  <jim@meyering.net>
19741             Bruno Haible  <bruno@clisp.org>
19742
19743         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
19744         Adjust Makefile.am snippet not to redirect directly to target.
19745         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
19746
19747 2003-06-05  Paul Eggert  <eggert@twinsun.com>
19748
19749         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
19750         mismatch, look in future quarters as well as past.  This fixes a
19751         bug when processing fall-backwards gaps immediately after a long
19752         period of daylight-saving time.
19753
19754         * lib/mktime.c: Assume freestanding C89 or better.
19755         (HAVE_LIMITS_H): Remove.  Assume it's 1.
19756         (__P): Remove; not used.
19757         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
19758         (mktime, not_equal_tm, print_tm, check_result,
19759         main): Use prototypes.  Use const * where appropriate.
19760         (main): Fix typo in testing code that uncovered by above changes.
19761         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
19762
19763 2003-06-04  Paul Eggert  <eggert@twinsun.com>
19764
19765         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
19766         locale.h, localeconv.  This merges changes from coreutils.
19767
19768         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
19769         It can be removed after the next Autoconf is released.
19770         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
19771         needed.
19772
19773 2003-06-04  Paul Eggert  <eggert@twinsun.com>
19774
19775         * lib/mktime.c: Fix Debian bug 177940
19776         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
19777         (localtime_offset): Now long int, not time_t, because we want it
19778         to be guaranteed to be signed.  All uses changed.
19779         (__mktime_internal): If overflow would occur when adding offset,
19780         don't add it.
19781
19782         Merge 'human' changes from coreutils.  Rewrite to support
19783         locale-specific notations like thousands separators.
19784         * lib/human.c: Simplify authorship notice.
19785         Include human.h immediately after config.h.
19786         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
19787         <limits.h>: Do not include, since human.h does.
19788         (SIZE_MAX, UINTMAX_MAX): New macros.
19789         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
19790         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
19791         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
19792         (power_letter): Renamed from suffixes.
19793         (generate_suffix_backwards): Remove.
19794         (adjust_value): Now takes int style (because of human.h changes)
19795         and long double value (for greater precision on some platforms).
19796         (group_number): New function.
19797         (human_readable): Use it.  Use integer options, not enum.
19798         Put the options before the sizes in the arg list.
19799         Support all the new options.
19800         The old human_readable function has been removed;
19801         use inttostr.h instead.
19802         (human_readable, default_block_size, humblock):
19803         Use uintmax_t, not int, for block sizes.
19804         (human_readable_inexact, block_size_types): Remove.
19805         (block_size_opts): New constant.
19806         (human_options): Renamed from human_block_size, with new signature
19807         that allows block sizes up to UINTMAX_MAX.  All callers changed.
19808         * lib/human.h: Add copyright and authorship notice.
19809         Include <limits.h> and <stdbool.h> unconditionally.
19810         (PARAMS): Remove.  All uses removed.
19811         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
19812         (enum human_inexact_style): Remove tag; now a nameless enum.
19813         (human_floor, human_ceiling, human_round_to_even): Now have
19814         values 2, 0, 1 rather than -1, 1, 0.
19815         (human_group_digits, human_suppress_point_zero, human_autoscale,
19816         human_base_1024, human_SI, human_B): New constants.
19817         (human_readable_inexact, human_block_size): Remove.
19818         (human_readable): Size args are now uintmax_t, not int.
19819         (human_options): New decl.
19820
19821         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
19822         unnecessary now that we assume C89 or better.  This change
19823         imported from coreutils.
19824
19825         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
19826         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
19827         in the 2003-05-30 sync from glibc.
19828
19829         .h files should stand alone, but we shouldn't include <sys/types.h>
19830         if we can get away with just <stddef.h>.
19831
19832         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
19833         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
19834         rather than <sys/types.h>, as we merely need size_t.
19835         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
19836         to get size_t.
19837         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
19838         Include <stdio.h>, to get FILE.
19839         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
19840         memcasecmp.h has included <stddef.h> and all we need is size_t.
19841         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
19842         our interface, instead of including <sys/types.h>
19843
19844 2003-06-04  Paul Eggert  <eggert@twinsun.com>
19845
19846         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
19847         now, as glibc mktime is buggy on non-glibc systems.
19848
19849 2003-06-03  Karl Berry  <karl@gnu.org>
19850
19851         * config/config.sub: update from prep.
19852
19853 2003-06-02  Paul Eggert  <eggert@twinsun.com>
19854
19855         [from coreutils]
19856         Fix some minor time-related bugs with POSIX time arguments.
19857         Some valid time stamps were being rejected (notably -1, and
19858         time stamps before 1900 on 64-bit hosts).  And some invalid
19859         time stamps were being accepted, e.g. September 31.
19860
19861         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
19862         that we can return (time_t) -1 successfully.
19863         * lib/posixtm.c: Likewise.
19864         [HAVE_STDBOOL_H]: Include <stdbool.h>.
19865         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
19866         (t): Remove static var.
19867         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
19868         of static var.  All uses changed.
19869         (year): Do not reject years before 1900; they can occur with
19870         64-bit time_t.
19871         (posix_time_parse): Do not check for out-of-range components;
19872         that is now the caller's responsibility, since our checks were
19873         only approximations.
19874         (posixtime): Use mktime to check for out-of-range components,
19875         since it knows them exactly.
19876         If mktime returns (time_t) -1, check whether an error actually occurred
19877         by invoking localtime on -1.
19878         (main) [TEST_POSIXTIME]: Check for input data errors, and report
19879         posixtime failures better.
19880         Improve the test data (in comments only).
19881
19882 2003-06-02  Karl Berry  <karl@gnu.org>
19883
19884         * config/mkinstalldirs (version): new variable.
19885         (--version): new option.
19886         (usage): improve message.
19887
19888 2003-05-30  Karl Berry  <karl@gnu.org>
19889
19890         * lib/mktime.c: update from libc.
19891
19892 2003-05-30  Bruno Haible  <bruno@clisp.org>
19893
19894         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
19895         * config/config.rpath: Upgrade to gettext-0.12.1.
19896
19897 2003-05-30  Bruno Haible  <bruno@clisp.org>
19898
19899         * m4/gettext.m4: Upgrade to gettext-0.12.1.
19900         * m4/nls.m4: New file, from gettext-0.12.1.
19901         * m4/po.m4: New file, from gettext-0.12.1.
19902         * m4/progtest.m4: Upgrade to gettext-0.12.1.
19903
19904 2003-05-30  Bruno Haible  <bruno@clisp.org>
19905
19906         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
19907         * lib/localcharset.h: Likewise.
19908         * lib/localcharset.c: Likewise.
19909
19910 2003-05-29  Karl Berry  <karl@gnu.org>
19911
19912         * config/config.rpath: update from gettext.
19913
19914 2003-05-28  Paul Eggert  <eggert@twinsun.com>
19915
19916         Assume the headers required for C89 freestanding compilers.
19917         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
19918         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
19919         * m4/human.m4 (gl_HUMAN): Likewise.
19920         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
19921         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
19922         * m4/userspec.m4 (gl_USERSPEC): Likewise.
19923         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
19924         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
19925         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
19926
19927 2003-05-28  Paul Eggert  <eggert@twinsun.com>
19928
19929         Assume the headers required for C89 freestanding compilers.
19930         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
19931         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
19932         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
19933         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
19934         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
19935         define, since <limits.h> is guaranteed to do that.
19936         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
19937         * lib/exclude.c: Include <stdbool.h> unconditionally.
19938         * lib/tempname.c: Include <stddef.h> unconditionally.
19939         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
19940         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
19941         <stddef.h> does that.
19942         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
19943         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
19944         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
19945         needed.
19946         * lib/xstrtol.c: Likewise.
19947         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
19948         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
19949
19950         * lib/addext.c (addext): Use assignment rather than cast, to avoid
19951         warnings on some platforms.
19952
19953         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
19954         arbitrarily.
19955
19956 2003-05-26  Jim Meyering  <jim@meyering.net>
19957
19958         Merge in a change from coreutils:
19959         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
19960         that is guaranteed to be `no'.  Use `no_such_member' to indicate
19961         that condition, rather than `-1' which is slightly misleading.
19962         Change the name of the cache variable to have the gl_ prefix.
19963         Prompted by a patch from Richard Dawe for DJGPP.
19964
19965 2003-05-24  Karl Berry  <karl@gnu.org>
19966
19967         * config/config.guess: update from prep.
19968
19969 2003-05-22  Karl Berry  <karl@gnu.org>
19970
19971         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
19972
19973 2003-05-20  Karl Berry  <karl@gnu.org>
19974
19975         * config/config.guess: update from prep.
19976
19977 2003-05-18  Karl Berry  <karl@gnu.org>
19978
19979         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
19980         might actually be set by the user.
19981
19982         * config/depcomp, install-sh, mdate-sh: update from automake.
19983
19984 2003-05-17  Bruno Haible  <bruno@clisp.org>
19985
19986         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
19987         invalid expansion for AC_EGREP_CPP.
19988         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
19989         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
19990         Suggested by Akim Demaille <akim@epita.fr> in
19991         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
19992
19993 2003-05-12  Jim Meyering  <jim@meyering.net>
19994
19995         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
19996         the space-padded-by-default conversion specifiers, %e, %k, %l.
19997
19998 2003-05-12  Bruno Haible  <bruno@clisp.org>
19999
20000         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
20001         the string is longer than 4 KB.
20002
20003 2003-05-11  Karl Berry  <karl@gnu.org>
20004
20005         * config/config.{guess,sub}: update from prep.
20006
20007 2003-05-09  Bruno Haible  <bruno@clisp.org>
20008
20009         * modules/error: Add m4/strerror_r.m4 to file list.
20010
20011 2003-05-03  Bruno Haible  <bruno@clisp.org>
20012
20013         Upgrade to Unicode-4.0.
20014         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
20015         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
20016         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
20017         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
20018         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
20019         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
20020         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
20021         Change width of U+E0100..U+E01EF from 1 to 0.
20022
20023 2003-04-25  Jim Meyering  <jim@meyering.net>
20024
20025         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
20026         of type size_t, not int.
20027
20028 2003-04-25  Bruno Haible  <bruno@clisp.org>
20029
20030         * lib/copy-file.c: Include <stddef.h>, for size_t.
20031
20032 2003-04-21  Paul Eggert  <eggert@twinsun.com>
20033
20034         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
20035         code which expansion is under static control.  Patch imported from
20036         Akim Demaille's patch to Bison; see
20037         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
20038
20039 2003-04-14  Bruno Haible  <bruno@clisp.org>
20040
20041         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
20042
20043 2003-04-11  Jim Meyering  <jim@meyering.net>
20044
20045         Merge changes from Coreutils.
20046
20047         2003-03-22  Jim Meyering  <jim@meyering.net>
20048
20049         * lib/strftime.c (widen): Cast alloca return value to proper type.
20050
20051         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
20052
20053         From GNU libc.
20054         * lib/strftime.c (my_strftime): Handle very large width
20055         specifications for numeric values correctly.  Improve checks for
20056         overflow.
20057
20058         2003-01-19  Jim Meyering  <jim@meyering.net>
20059
20060         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
20061         definitions.
20062         (nl_get_alt_digit) [! defined my_strftime]: Define.
20063         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
20064         _nl_get_alt_digit and _nl_get_walt_digit.
20065
20066         * lib/strftime.c (my_strftime): Merge in locale-related changes from
20067         libc. These changes have no effect outside of _LIBC.
20068
20069 2003-04-10  Bruno Haible  <bruno@clisp.org>
20070
20071         * modules/findprog: New file.
20072         * MODULES.html.sh (func_all_modules): Add it.
20073
20074 2003-04-10  Bruno Haible  <bruno@clisp.org>
20075
20076         * m4/findprog.m4: New file.
20077         * m4/eaccess.m4: New file.
20078
20079 2003-04-10  Bruno Haible  <bruno@clisp.org>
20080
20081         * lib/findprog.h: New file, from GNU gettext.
20082         * lib/findprog.c: New file, from GNU gettext.
20083
20084 2003-04-05  Jim Meyering  <jim@meyering.net>
20085
20086         Merge changes from Coreutils.
20087
20088         * lib/exclude.h (PARAMS): Remove definition and uses.
20089         * lib/exclude.c: Remove uses of `PARAMS'.
20090
20091         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
20092         Add test-cases for DOS filenames. Declare program_name.
20093         (main): Set up program_name.  Patch by Rich Dawe.
20094
20095         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
20096         error from mntctl.
20097         Use mntctl's return value to drive the entry-processing loop, since
20098         we can't rely on the value of the vmt_length member in the last
20099         entry.  On some systems doing so could result in exhausting
20100         virtual memory.  Based in part on a patch from Mike Jetzer.
20101
20102 2003-04-04  Bruno Haible  <bruno@clisp.org>
20103
20104         * modules/linebreak: New file.
20105         * MODULES.html.sh (func_all_modules): Add it.
20106
20107 2003-04-04  Bruno Haible  <bruno@clisp.org>
20108
20109         * m4/linebreak.m4: New file.
20110
20111 2003-04-04  Bruno Haible  <bruno@clisp.org>
20112
20113         * lib/linebreak.h: New file, from GNU gettext.
20114         * lib/linebreak.c: New file, from GNU gettext with slight
20115         modifications.
20116         * lib/lbrkprop.h: New file, from GNU gettext.
20117
20118 2003-04-03  Bruno Haible  <bruno@clisp.org>
20119
20120         * modules/utf8-ucs4: New file.
20121         * modules/utf16-ucs4: New file.
20122         * modules/ucs4-utf8: New file.
20123         * modules/ucs4-utf16: New file.
20124         * MODULES.html.sh (func_all_modules): Add them.
20125
20126 2003-04-03  Bruno Haible  <bruno@clisp.org>
20127
20128         * m4/utf-ucs4.m4: New file.
20129         * m4/ucs4-utf.m4: New file.
20130
20131 2003-04-03  Bruno Haible  <bruno@clisp.org>
20132
20133         * lib/utf8-ucs4.h: New file, from GNU gettext.
20134         * lib/utf16-ucs4.h: New file, from GNU gettext.
20135         * lib/ucs4-utf8.h: New file, from GNU gettext.
20136         * lib/ucs4-utf16.h: New file, from GNU gettext.
20137
20138 2003-04-02  Bruno Haible  <bruno@clisp.org>
20139
20140         * modules/binary-io: New file.
20141         * MODULES.html.sh (func_all_modules): Add it.
20142
20143 2003-04-02  Bruno Haible  <bruno@clisp.org>
20144
20145         * lib/binary-io.h: New file, from GNU gettext.
20146
20147 2003-04-01  Bruno Haible  <bruno@clisp.org>
20148
20149         * modules/pathname: New file.
20150         * MODULES.html.sh (func_all_modules): Add it.
20151
20152 2003-04-01  Bruno Haible  <bruno@clisp.org>
20153
20154         * lib/pathname.h: New file, from GNU gettext.
20155         * lib/concatpath.c: New file, from GNU gettext.
20156
20157 2003-03-30  Bruno Haible  <bruno@clisp.org>
20158
20159         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
20160
20161 2003-03-30  Bruno Haible  <bruno@clisp.org>
20162
20163         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
20164         function chown() doesn't exist.
20165
20166 2003-03-28  Bruno Haible  <bruno@clisp.org>
20167
20168         * modules/copy-file: New file.
20169         * MODULES.html.sh (func_all_modules): Add it.
20170
20171 2003-03-28  Bruno Haible  <bruno@clisp.org>
20172
20173         * m4/copy-file.m4: New file.
20174
20175 2003-03-28  Bruno Haible  <bruno@clisp.org>
20176
20177         * lib/copy-file.h: New file, from GNU gettext.
20178         * lib/copy-file.c: New file, from GNU gettext.
20179
20180 2003-03-18  Jim Meyering  <jim@meyering.net>
20181
20182         * lib/quote.c (quote_n): Fix typo in comment.
20183
20184 2003-03-18  Bruno Haible  <bruno@clisp.org>
20185
20186         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
20187         checking.
20188         * m4/onceonly_2_57.m4: Likewise.
20189
20190 2003-03-17  Bruno Haible  <bruno@clisp.org>
20191
20192         * m4/onceonly.m4: Require autoconf 2.54 or newer.
20193         (m4_quote): Remove macro.
20194         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
20195
20196 2003-03-14  Jim Meyering  <jim@meyering.net>
20197
20198         Merge changes from Coreutils.
20199         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
20200         to be const, in order to avoid warnings.
20201         (obstack_room): Likewise.
20202         (obstack_empty_p): Likewise.
20203
20204 2003-03-14  Bruno Haible  <bruno@clisp.org>
20205
20206         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
20207         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
20208
20209 2003-03-13  Paul Eggert  <eggert@twinsun.com>
20210
20211         Merge changes from Bison.
20212         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
20213         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
20214         when compiling Bison 1.875's `bitset bset = obstack_alloc
20215         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
20216         * lib/hash.c: Include <stdbool.h> unconditionally.
20217
20218 2003-03-13  Paul Eggert  <eggert@twinsun.com>
20219
20220         * m4/onceonly.m4 (m4_quote): New macro.
20221         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
20222         Quote AC_FOREACH variable-expansions properly.
20223
20224 2003-03-13  Paul Eggert  <eggert@twinsun.com>
20225
20226         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
20227
20228 2003-03-09  Paul Eggert  <eggert@twinsun.com>
20229
20230         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
20231         Reported by Bruce Becker; see:
20232         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
20233
20234 2003-03-03  Paul Eggert  <eggert@twinsun.com>
20235             Bruno Haible  <bruno@clisp.org>
20236
20237         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
20238         Reported by John Hughes, see
20239         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
20240
20241 2003-02-20  Bruno Haible  <bruno@clisp.org>
20242
20243         * MODULES.html.sh (func_all_modules): Add poll.
20244
20245 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
20246
20247         * modules/poll: New file.
20248
20249 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
20250
20251         * lib/poll_.h: New file.
20252         * lib/poll.c: New file.
20253
20254 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
20255
20256         * m4/poll.m4: New file.
20257
20258 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
20259
20260         * modules/mathl: New file.
20261
20262 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
20263
20264         * lib/mathl.h: New file.
20265         * lib/acosl.c: New file.
20266         * lib/asinl.c: New file.
20267         * lib/atanl.c: New file.
20268         * lib/ceill.c: New file.
20269         * lib/cosl.c: New file.
20270         * lib/expl.c: New file.
20271         * lib/floorl.c: New file.
20272         * lib/frexpl.c: New file.
20273         * lib/ldexpl.c: New file.
20274         * lib/logl.c: New file.
20275         * lib/sincosl.c: New file.
20276         * lib/sinl.c: New file.
20277         * lib/sqrtl.c: New file.
20278         * lib/tanl.c: New file.
20279         * lib/trigl.c: New file.
20280         * lib/trigl.h: New file.
20281
20282 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
20283
20284         * m4/mathl.m4: New file.
20285
20286 2003-02-18  Bruno Haible  <bruno@clisp.org>
20287
20288         * MODULES.html.sh (func_all_modules): Add mathl.
20289
20290 2003-02-17  Bruno Haible  <bruno@clisp.org>
20291
20292         * modules/mkdtemp: New module.
20293         * MODULES.html.sh (func_all_modules): Add it.
20294
20295 2003-02-17  Bruno Haible  <bruno@clisp.org>
20296
20297         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
20298
20299 2003-02-17  Bruno Haible  <bruno@clisp.org>
20300
20301         * lib/mkdtemp.h: New file, from GNU gettext.
20302         * lib/mkdtemp.c: New file, from GNU gettext.
20303
20304 2003-02-02  Jim Meyering  <jim@meyering.net>
20305
20306         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
20307         e.g. glibc-2.2.93.
20308
20309 2003-01-31  Bruno Haible  <bruno@clisp.org>
20310
20311         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
20312         'rpl_rename'.
20313         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
20314         'rpl_strnlen'.
20315         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
20316         'rpl_strtod'.
20317         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
20318         'rpl_utime'.
20319
20320 2003-01-31  Bruno Haible  <bruno@clisp.org>
20321
20322         * lib/rename.c: #undef rename before defining rpl_rename.
20323         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
20324
20325 2003-01-30  Bruno Haible  <bruno@clisp.org>
20326
20327         * modules/vasnprintf, modules/vasprintf: New modules.
20328         * MODULES.html.sh (func_all_modules): Add them.
20329
20330 2003-01-30  Bruno Haible  <bruno@clisp.org>
20331
20332         * m4/signed.m4: New file, from GNU gettext.
20333         * m4/longdouble.m4: New file, from GNU gettext.
20334         * m4/wchar_t.m4: New file, from GNU gettext.
20335         * m4/wint_t.m4: New file, from GNU gettext.
20336         * m4/vasnprintf.m4: New file.
20337         * m4/vasprintf.m4: New file.
20338
20339 2003-01-30  Bruno Haible  <bruno@clisp.org>
20340
20341         * lib/printf-args.h: New file, from GNU gettext.
20342         * lib/printf-args.c: New file, from GNU gettext.
20343         * lib/printf-parse.h: New file, from GNU gettext.
20344         * lib/printf-parse.c: New file, from GNU gettext.
20345         * lib/vasnprintf.h: New file, from GNU gettext.
20346         * lib/vasnprintf.c: New file, from GNU gettext.
20347         * lib/asnprintf.c: New file, from GNU gettext.
20348         * lib/vasprintf.h: New file, from GNU gettext with modifications.
20349         * lib/vasprintf.c: New file, from GNU gettext.
20350         * lib/asprintf.c: New file, from GNU gettext.
20351
20352 2003-01-29  Bruno Haible  <bruno@clisp.org>
20353
20354         * modules/stpncpy: New module.
20355         * MODULES.html.sh (func_all_modules): Add it.
20356
20357 2003-01-29  Bruno Haible  <bruno@clisp.org>
20358
20359         * m4/stpncpy.m4: New file.
20360
20361 2003-01-29  Bruno Haible  <bruno@clisp.org>
20362
20363         * lib/stpncpy.h: New file, from GNU gettext with modifications.
20364         * lib/stpncpy.c: New file, from GNU gettext with modifications.
20365
20366 2003-01-28  Bruno Haible  <bruno@clisp.org>
20367
20368         * modules/c-ctype: New module.
20369         * MODULES.html.sh (func_all_modules): Add it.
20370
20371 2003-01-28  Bruno Haible  <bruno@clisp.org>
20372
20373         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
20374         Paul Eggert.
20375         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
20376         Paul Eggert.
20377
20378 2003-01-27  Bruno Haible  <bruno@clisp.org>
20379
20380         * modules/xsetenv: New module.
20381         * MODULES.html.sh (func_all_modules): Add it.
20382
20383 2003-01-27  Bruno Haible  <bruno@clisp.org>
20384
20385         * lib/xsetenv.h: New file, from GNU gettext.
20386         * lib/xsetenv.c: New file, from GNU gettext.
20387
20388 2003-01-23  Jim Meyering  <jim@meyering.net>
20389
20390         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
20391         from working on systems without dirfd (at least Irix and OSF1/Tru64).
20392
20393 2003-01-23  Bruno Haible  <bruno@clisp.org>
20394
20395         * modules/minmax: New module.
20396         * MODULES.html.sh (func_all_modules): Add it.
20397
20398 2003-01-23  Bruno Haible  <bruno@clisp.org>
20399
20400         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
20401         Eggert.
20402
20403 2003-01-22  Bruno Haible  <bruno@clisp.org>
20404
20405         * modules/exit: New module.
20406         * MODULES.html.sh (func_all_modules): Add it.
20407
20408 2003-01-22  Bruno Haible  <bruno@clisp.org>
20409
20410         * lib/exit.h: New file, from GNU gettext.
20411
20412 2003-01-19  Bruno Haible  <bruno@clisp.org>
20413
20414         * gnulib-tool: Recognize option --extract-maintainer.
20415         (func_get_maintainer): New function.
20416         * modules/*: Add Maintainer entry.
20417
20418 2003-01-16  Jim Meyering  <jim@meyering.net>
20419
20420         * m4/regex.m4: The `regex' struct is both input and output.
20421         Initialize it before each use.  Patch by Tim Waugh.
20422
20423 2003-01-16  Bruno Haible  <bruno@clisp.org>
20424
20425         * MODULES.html.sh: Add a table of contents. Add the module name as
20426         leftmost column. Add hyperlinks.
20427
20428 2003-01-15  Bruno Haible  <bruno@clisp.org>
20429
20430         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
20431
20432 2003-01-15  Bruno Haible  <bruno@clisp.org>
20433
20434         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
20435         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
20436         suffix.
20437
20438 2003-01-15  Bruno Haible  <bruno@clisp.org>
20439
20440         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
20441
20442 2003-01-15  Bruno Haible  <bruno@clisp.org>
20443
20444         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
20445         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
20446
20447 2003-01-14  Jim Meyering  <jim@meyering.net>
20448
20449         * lib/same.c (same_name): Tweak a comment.
20450
20451 2003-01-14  Bruno Haible  <bruno@clisp.org>
20452
20453         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
20454         when a string comparison is sufficient.
20455
20456 2003-01-14  Bruno Haible  <bruno@clisp.org>
20457
20458         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
20459         'unsigned int'.
20460
20461 2003-01-14  Bruno Haible  <bruno@clisp.org>
20462
20463         * lib/hash-pjw.c: Add comment about low quality of this function.
20464
20465 2003-01-13  Bruno Haible  <bruno@clisp.org>
20466
20467         * modules/stpcpy: Distribute lib/stpcpy.h.
20468         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
20469
20470 2003-01-13  Bruno Haible  <bruno@clisp.org>
20471
20472         * modules/*: Add a description.
20473         * modules/strpbrk: Fix Makefile.am snippet.
20474         * modules/strtoimax: Fix dependencies.
20475         * modules/strtoumax: Likewise.
20476
20477 2003-01-13  Bruno Haible  <bruno@clisp.org>
20478
20479         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
20480         * modules/alloca (Makefile.am): All object files depend on alloca.h.
20481         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
20482
20483 2003-01-13  Bruno Haible  <bruno@clisp.org>
20484
20485         * gnulib-tool (func_create_testdir): Store config/* files in the main
20486         directory.
20487         * config.rpath: Move to ...
20488         * config/config.rpath: ... here.
20489         * modules/gettext: Contains config/config.rpath, not config.rpath.
20490         * modules/iconv: Likewise.
20491
20492 2003-01-12  Paul Eggert  <eggert@twinsun.com>
20493
20494         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
20495         to avoid collisions with libcurses and libreadline.
20496
20497         * m4/getstr.m4: Remove.
20498         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
20499
20500 2003-01-12  Paul Eggert  <eggert@twinsun.com>
20501
20502         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
20503         to avoid collisions with libcurses and libreadline.
20504
20505         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
20506         * lib/getstr.h, getstr.c: Remove.
20507         * lib/getline.c: Include "getline.h", to check interface.
20508         Move body of old getstr.c here: this defines MIN_CHUNK and
20509         declares getdelim2, which is renamed from getstr.
20510         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
20511
20512         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
20513         All uses changed.
20514         * lib/linebuffer.h: Likewise.
20515         (readline): Remove backward-compatibility macro.
20516
20517 2003-01-12  Paul Eggert  <eggert@twinsun.com>
20518
20519         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
20520         to avoid collisions with libcurses and libreadline.
20521         * getstr: Remove.
20522         * MODULES.html.sh: Remove getstr.
20523         * modules/getline: Depend on unlocked-io, not getstr.
20524
20525 2003-01-12  Jim Meyering  <jim@meyering.net>
20526
20527         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
20528
20529 2003-01-10  Bruno Haible  <bruno@clisp.org>
20530
20531         * modules/alloca: Change Makefile.am requirements. Simplify Include
20532         requirements. Add lib/alloca_.h to file list.
20533
20534 2003-01-10  Bruno Haible  <bruno@clisp.org>
20535
20536         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
20537
20538 2003-01-10  Bruno Haible  <bruno@clisp.org>
20539
20540         * lib/alloca_.h: New file.
20541         * lib/getdate.y: Unconditionally include alloca.h.
20542         * lib/makepath.c: Likewise.
20543         * lib/setenv.c: Likewise.
20544         * lib/userspec.c: Likewise.
20545
20546 2003-01-09  Karl Berry  <karl@gnu.org>
20547
20548         * MODULES.html.sh: include `dirname $0` in PATH, to find
20549         gnulib-tool.
20550
20551 2003-01-09  Bruno Haible  <bruno@clisp.org>
20552
20553         * modules/stdbool: Change configure.ac, Makefile.am requirements.
20554         Simplify Include requirements. Add lib/stdbool.h.in to file list.
20555
20556 2003-01-09  Bruno Haible  <bruno@clisp.org>
20557
20558         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
20559
20560 2003-01-09  Bruno Haible  <bruno@clisp.org>
20561
20562         * lib/stdbool.h.in: New file.
20563
20564 2003-01-09  Bruno Haible  <bruno@clisp.org>
20565
20566         * gnulib-tool (func_all_modules): Ignore files ending in ~.
20567         * MODULES.html.sh: Likewise.
20568
20569 2003-01-08  Jim Meyering  <jim@meyering.net>
20570
20571         * lib/full-write.c: Undefine and define-away `const' after inclusion
20572         of errno.h, not before.  Suggestion from Bruno Haible.
20573
20574 2003-01-08  Bruno Haible  <bruno@clisp.org>
20575
20576         * modules/full-read: Depend on full-write.
20577
20578 2003-01-08  Bruno Haible  <bruno@clisp.org>
20579
20580         * lib/safe-read.c: Include specification header first, to ensure its
20581         selfcontainedness.
20582         * lib/full-write.c: Likewise.
20583
20584 2003-01-07  Jim Meyering  <jim@meyering.net>
20585
20586         * lib/full-write.c: Rework so that it may serve to define full_read,
20587         too.
20588         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
20589
20590 2003-01-07  Bruno Haible  <bruno@clisp.org>
20591
20592         * lib/strtoimax.c: Include <stdint.h> as an alternative to
20593         <inttypes.h>.
20594         * lib/xstrtol.h: Likewise.
20595         * lib/xstrtoimax.c: Likewise.
20596         * lib/xstrtoumax.c: Likewise.
20597         * lib/human.h: Likewise.
20598
20599         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
20600         on systems that have <inttypes.h> but not <stdint.h>.
20601
20602 2003-01-07  Bruno Haible  <bruno@clisp.org>
20603
20604         * MODULES.html.sh: Add copyright notice.
20605         (missed_files): Omit CVS directory entries.
20606         (func_module): Make it work with sed-3.02.
20607         * MODULES.txt: Remove file.
20608
20609 2003-01-06  Jim Meyering  <jim@meyering.net>
20610
20611         * lib/version-etc.c: Update year in translatable copyright string.
20612
20613 2003-01-03  Karl Berry  <karl@gnu.org>
20614
20615         * config/config.{guess,sub}: update from prep.
20616
20617 2003-01-02  Karl Berry  <karl@gnu.org>
20618
20619         * doc/COPYING.DOC: belatedly updated to 1.2.
20620
20621 2003-01-01  Karl Berry  <karl@gnu.org>
20622
20623         * gnulib-tool (func_verify_module): report module name $module in
20624         error message, not $1.
20625         * gnulib-tool (create-testdir): don't complain if destdir couldn't
20626         be created, only if it doesn't exist.
20627         * gnulib-tool (last_checkin_date): don't expand the $Date here.
20628
20629 2002-12-31  Paul Eggert  <eggert@twinsun.com>
20630
20631         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
20632
20633 2002-12-31  Paul Eggert  <eggert@twinsun.com>
20634
20635         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
20636         memcmp if strcoll doesn't work.
20637
20638 2002-12-31  Bruno Haible  <bruno@clisp.org>
20639
20640         * lib/utime.c (utime_null): No need to call ftruncate if the file was
20641         nonempty.
20642
20643 2002-12-31  Bruno Haible  <bruno@clisp.org>
20644
20645         * lib/memcoll.c (STRCOLL): New macro.
20646         (memcoll): Use it.
20647
20648 2002-12-31  Bruno Haible  <bruno@clisp.org>
20649
20650         * lib/localcharset.h: New file.
20651         * lib/localcharset.c: Include it.
20652         * lib/unicodeio.c: Likewise.
20653
20654 2002-12-31  Bruno Haible  <bruno@clisp.org>
20655
20656         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
20657         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
20658
20659 2002-12-31  Bruno Haible  <bruno@clisp.org>
20660
20661         * lib/getline.h: Include <stddef.h>, for size_t.
20662
20663         * lib/unicodeio.h: Include <stddef.h>, for size_t.
20664         * lib/unicodeio.c: Don't include <stddef.h>.
20665
20666 2002-12-31  Bruno Haible  <bruno@clisp.org>
20667
20668         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
20669         HAVE_TM_ZONE.
20670
20671 2002-12-24  Karl Berry  <karl@gnu.org>
20672
20673         * config/config.guess: update from prep.
20674
20675 2002-12-24  Bruno Haible  <bruno@clisp.org>
20676
20677         General infrasructure.
20678         * m4/README: Rewritten.
20679         * m4/onceonly.m4: New file.
20680         * m4/onceonly_2_57.m4: New file.
20681
20682         Module atexit.
20683         * m4/atexit.m4: New file.
20684
20685         Module strtod.
20686         * m4/strtod.m4: New file.
20687
20688         Module strtol.
20689         * m4/strtol.m4: New file.
20690
20691         Module strtoul.
20692         * m4/strtoul.m4: New file.
20693
20694         Module memchr.
20695         * m4/memchr.m4: New file.
20696
20697         Module memcmp.
20698         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
20699         (jm_FUNC_MEMCMP): Invoke it.
20700
20701         Module memcpy.
20702         * m4/memcpy.m4: New file.
20703
20704         Module memmove.
20705         * m4/memmove.m4: New file.
20706
20707         Module memset.
20708         * m4/memset.m4: New file.
20709
20710         Module strcspn.
20711         * m4/strcspn.m4: New file.
20712
20713         Module strpbrk.
20714         * m4/strpbrk.m4: New file.
20715
20716         Module strstr.
20717         * m4/strstr.m4: New file.
20718
20719         Module strerror.
20720         * m4/strerror.m4: New file.
20721
20722         Module mktime.
20723         * m4/mktime.m4: Renamed from jm-mktime.m4.
20724         (gl_PREREQ_MKTIME): New macro.
20725         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
20726
20727         Module malloc.
20728         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
20729         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
20730         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
20731
20732         Module realloc.
20733         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
20734         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
20735         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
20736
20737         Module strftime.
20738         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
20739         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
20740         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
20741         gl_TM_GMTOFF.
20742         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
20743
20744         Module xalloc.
20745         * m4/xalloc.m4: New file.
20746
20747         Module alloca.
20748         * m4/alloca.m4: New file.
20749
20750         Module putenv.
20751         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
20752         (jm_FUNC_PUTENV): Invoke it.
20753
20754         Module setenv.
20755         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
20756         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
20757         when invoked twice.
20758         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
20759         gt_FUNC_SETENV.
20760
20761         Module memrchr.
20762         * m4/memrchr.m4: New file.
20763
20764         Module stpcpy.
20765         * m4/stpcpy.m4: New file.
20766
20767         Module strcase.
20768         * m4/strcase.m4: New file.
20769
20770         Module strdup.
20771         * m4/strdup.m4: New file.
20772
20773         Module strnlen.
20774         * m4/strnlen.m4: New file.
20775
20776         Module strndup.
20777         * m4/strndup.m4: New file.
20778
20779         Module xstrtod.
20780         * m4/xstrtod.m4: New file.
20781
20782         Module xstrtol.
20783         * m4/xstrtol.m4: New file.
20784
20785         Module getdate.
20786         * m4/getdate.m4: New file.
20787
20788         Module unlocked-io.
20789         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
20790         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
20791         * m4/jm-glibc-io.m4n: Remove file.
20792
20793         Module long-options.
20794         * m4/long-options.m4: New file.
20795
20796         Module md5.
20797         * m4/md5.m4: New file.
20798
20799         Module sha.
20800         * m4/sha.m4: New file.
20801
20802         Module getstr.
20803         * m4/getstr.m4: New file.
20804
20805         Module getline.
20806         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
20807         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
20808         <sys/types.h>, for size_t. Use the function name gnu_getline, not
20809         simply getline. Infoke gl_PREREQ_GETLINE.
20810
20811         Module obstack.
20812         * m4/obstack.m4: New file.
20813
20814         Module hash.
20815         * m4/hash.m4: New file.
20816
20817         Module readtokens.
20818         * m4/readtokens.m4: New file.
20819
20820         Module strverscmp.
20821         * m4/strverscmp.m4: New file.
20822
20823         Module stdbool.
20824         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
20825         OSF/1.
20826
20827         Module strtoll.
20828         * m4/strtoll.m4: New file.
20829
20830         Module strtoull.
20831         * m4/strtoull.m4: New file.
20832
20833         Module strtoimax.
20834         * m4/strtoimax.m4: New file.
20835
20836         Module strtoumax.
20837         * m4/strtoumax.m4: New file.
20838
20839         Module xstrtoimax.
20840         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
20841         jm_AC_PREREQ_XSTRTOIMAX.
20842         Moved the strtol prerequisites to strtol.m4.
20843         Moved the strtoll prerequisites to strtoll.m4.
20844         Moved the strtoimax prerequisites to strtoimax.m4.
20845
20846         Module xstrtoumax.
20847         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
20848         jm_AC_PREREQ_XSTRTOUMAX.
20849         Moved the strtoul prerequisites to strtoul.m4.
20850         Moved the strtoull prerequisites to strtoull.m4.
20851         Moved the strtoumax prerequisites to strtoumax.m4.
20852
20853         Module chown.
20854         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
20855         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
20856
20857         Module dup2.
20858         * m4/dup2.m4: New file.
20859
20860         Module ftruncate.
20861         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
20862         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
20863
20864         Module getgroups.
20865         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
20866         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
20867
20868         Module gettimeofday.
20869         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
20870         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
20871         gl_PREREQ_GETTIMEOFDAY.
20872
20873         Module mkdir.
20874         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
20875         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
20876
20877         Module mkstemp.
20878         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
20879         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
20880         jm_AC_TYPE_UINTMAX_T.
20881         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
20882
20883         Module stat.
20884         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
20885         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
20886
20887         Module lstat.
20888         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
20889         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
20890
20891         Module timespec.
20892         * m4/timespec.m4 (gl_TIMESPEC): New macro.
20893         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
20894         * m4/st_mtim.m4: Indentation.
20895
20896         Module nanosleep.
20897         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
20898         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
20899         gl_PREREQ_NANOSLEEP.
20900
20901         Module regex.
20902         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
20903         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
20904         (gl_REGEX): New macro.
20905
20906         Module rename.
20907         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
20908         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
20909
20910         Module rmdir.
20911         * m4/rmdir.m4: New file.
20912
20913         Module utime.
20914         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
20915         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
20916         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
20917
20918         Module dirname.
20919         * m4/dirname.m4: New file.
20920
20921         Module getopt.
20922         * m4/getopt.m4: New file.
20923
20924         Module unistd-safer.
20925         * m4/unistd-safer.m4: New file.
20926
20927         Module fnmatch.
20928         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
20929         declaration.
20930         (gl_PREREQ_FNMATCH_EXTRA): New macro.
20931         (gl_FUNC_FNMATCH_POSIX): New macro.
20932         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
20933         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
20934         simply fnmatch.
20935
20936         Module exclude.
20937         * m4/exclude.m4: New file.
20938
20939         Module human.
20940         * m4/human.m4: New file.
20941
20942         Module acl.
20943         * m4/acl.m4: Nop.
20944
20945         Module backupfile.
20946         * m4/backupfile.m4: New file.
20947         * m4/d-ino.m4: Indentation.
20948
20949         Module fsusage.
20950         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
20951         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
20952         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
20953
20954         Module dirfd.
20955         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
20956         requirements.
20957
20958         Module euidaccess.
20959         * m4/euidaccess.m4: New file.
20960
20961         Module file-type.
20962         * m4/file-type.m4: New file.
20963
20964         Module fileblocks.
20965         * m4/fileblocks.m4: New file.
20966
20967         Module filemode.
20968         * m4/filemode.m4: New file.
20969
20970         Module isdir.
20971         * m4/isdir.m4: New file.
20972
20973         Module lchown.
20974         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
20975         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
20976
20977         Module makepath.
20978         * m4/makepath.m4: New file.
20979
20980         Module modechange.
20981         * m4/modechange.m4: New file.
20982
20983         Module mountlist.
20984         * m4/mountlist.m4: New file.
20985         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
20986         Indentation.
20987
20988         Module path-concat.
20989         * m4/path-concat.m4: New file.
20990
20991         Module pathmax.
20992         * m4/pathmax.m4: New file.
20993
20994         Module same.
20995         * m4/same.m4: New file.
20996
20997         Module save-cwd.
20998         * m4/save-cwd.m4: New file.
20999
21000         Module savedir.
21001         * m4/savedir.m4: New file.
21002
21003         Module xgetcwd.
21004         * m4/xgetcwd.m4: New file.
21005         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
21006
21007         Module xreadlink.
21008         * m4/xreadlink.m4: New file.
21009
21010         Module safe-read.
21011         * m4/safe-read.m4: New file.
21012
21013         Module safe-write.
21014         * m4/safe-write.m4: New file.
21015
21016         Module closeout.
21017         * m4/closeout.m4: New file.
21018
21019         Module stdio-safer.
21020         * m4/stdio-safer.m4: New file.
21021
21022         Module getpass.
21023         * m4/getpass.m4: New file.
21024
21025         Module getugroups.
21026         * m4/getugroups.m4: New file.
21027
21028         Module group-member.
21029         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
21030         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
21031
21032         Module idcache.
21033         * m4/idcache.m4: New file.
21034
21035         Module userspec.
21036         * m4/userspec.m4: New file.
21037
21038         Module gettime.
21039         * m4/clock_time.m4: New file.
21040         * m4/gettime.m4: New file.
21041
21042         Module settime.
21043         * m4/settime.m4: New file.
21044
21045         Module posixtm.
21046         * m4/posixtm.m4: New file.
21047
21048         Module gethostname.
21049         * m4/gethostname.m4: New file.
21050
21051         Module canon-host.
21052         * m4/canon-host.m4: New file.
21053
21054         Module gettext.
21055         * m4/codeset.m4: New file, from gettext-0.11.5.
21056         * m4/gettext.m4: New file, from gettext-0.11.5.
21057         * m4/glibc21.m4: New file, from gettext-0.11.5.
21058         * m4/iconv.m4: New file, from gettext-0.11.5.
21059         * m4/intdiv0.m4: New file, from gettext-0.11.5.
21060         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
21061         * m4/inttypes.m4: New file, from gettext-0.11.5.
21062         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
21063         * m4/isc-posix.m4: New file, from gettext-0.11.5.
21064         * m4/lcmessage.m4: New file, from gettext-0.11.5.
21065         * m4/lib-ld.m4: New file, from gettext-0.11.5.
21066         * m4/lib-link.m4: New file, from gettext-0.11.5.
21067         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
21068         * m4/progtest.m4: New file, from gettext-0.11.5.
21069         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
21070         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
21071         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
21072
21073         Module localcharset.
21074         * m4/localcharset.m4: New file.
21075
21076         Module hard-locale.
21077         * m4/hard-locale.m4: New file.
21078
21079         Module mbswidth.
21080         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
21081         onceonly macros.
21082         * m4/mbrtowc.m4: Add comment.
21083
21084         Module memcasecmp.
21085         * m4/memcasecmp.m4: New file.
21086
21087         Module memcoll.
21088         * m4/memcoll.m4: New file.
21089
21090         Module unicodeio.
21091         * m4/unicodeio.m4: New file.
21092
21093         Module rpmatch.
21094         * m4/rpmatch.m4: New file.
21095
21096         Module yesno.
21097         * m4/yesno.m4: New file.
21098
21099         Module exitfail.
21100         * m4/exitfail.m4: New file.
21101
21102         Module c-stack.
21103         * m4/c-stack.m4 (gl_C_STACK): New macro.
21104         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
21105
21106         Module error.
21107         * m4/error.m4 (gl_ERROR): New macro.
21108         (jm_PREREQ_ERROR): Use onceonly macros.
21109
21110         Module fatal.
21111         * m4/fatal.m4: New file.
21112
21113         Module getloadavg.
21114         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
21115         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
21116
21117         Module getpagesize.
21118         * m4/getpagesize.m4: New file.
21119
21120         Module getusershell.
21121         * m4/getusershell.m4: New file.
21122
21123         Module physmem.
21124         * m4/physmem.m4: New file.
21125
21126         Module posixver.
21127         * m4/posixver.m4: New file.
21128
21129         Module quotearg.
21130         * m4/quotearg.m4: New file.
21131
21132         Module quote.
21133         * m4/quote.m4: New file.
21134
21135         Module readutmp.
21136         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
21137
21138         Module sig2str.
21139         * m4/sig2str.m4: New file.
21140
21141         Other.
21142         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
21143         ulonglong.m4.
21144         * m4/intmax_t.m4: New file.
21145         * m4/d-type.m4: Indentation.
21146         * m4/jm-macros.m4: Update.
21147         * m4/prereq.m4 (jm_PREREQ): Update.
21148         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
21149         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
21150         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
21151         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
21152         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
21153         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
21154         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
21155         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
21156         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
21157         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
21158         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
21159         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
21160         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
21161         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
21162         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
21163         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
21164         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
21165         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
21166         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
21167
21168 2002-12-24  Bruno Haible  <bruno@clisp.org>
21169
21170         * MODULES.txt: Update according to m4/ changes.
21171
21172         Module gettext.
21173         * config.rpath: New file, from gettext-0.11.5.
21174
21175         * modules/*: New module descriptions.
21176         * gnulib-tool: New file.
21177         * MODULES.html.sh: New file.
21178
21179 2002-12-21  Karl Berry  <karl@gnu.org>
21180
21181         * doc/fdl.texi: update to version 1.2.
21182
21183 2002-12-19  Karl Berry  <karl@gnu.org>
21184
21185         * config/config.guess: update from prep.
21186
21187 2002-12-18  Bruno Haible  <bruno@clisp.org>
21188
21189         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
21190         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
21191
21192 2002-12-17  Bruno Haible  <bruno@clisp.org>
21193
21194         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
21195         stdlib.h, string.h.
21196
21197 2002-12-17  Bruno Haible  <bruno@clisp.org>
21198
21199         * lib/canon-host.c (strdup): Remove unused declaration.
21200
21201         * lib/fsusage.c: Include full_read.h.
21202         (get_fs_usage): Use full_read instead of safe_read.
21203
21204         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
21205
21206 2002-12-12  Karl Berry  <karl@gnu.org>
21207
21208         * config/config.guess: update from prep.
21209
21210 2002-12-11  Bruno Haible  <bruno@clisp.org>
21211
21212         * m4/setenv.m4: New file, from gettext-0.11.5.
21213
21214 2002-12-11  Bruno Haible  <bruno@clisp.org>
21215
21216         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
21217         not unsetenv().
21218         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
21219         modifications:
21220
21221         2002-12-11  Bruno Haible  <bruno@clisp.org>
21222
21223                 * setenv.c (alloca): Fall back to malloc.
21224                 (freea): New macro.
21225                 (setenv): Use freea() to free memory allocated with alloca().
21226
21227         2002-11-13  Bruno Haible  <bruno@clisp.org>
21228
21229                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
21230                 function declarations.
21231                 * unsetenv.c (unsetenv): Likewise.
21232
21233         2002-03-04  Bruno Haible  <bruno@clisp.org>
21234
21235                 Portability to AIX 4.3.3.
21236                 * unsetenv.c: New file, extracted from setenv.c.
21237                 * setenv.c: Move the unsetenv() function to unsetenv.c.
21238
21239         2001-12-20  Bruno Haible  <bruno@clisp.org>
21240
21241                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
21242                 use malloc instead. For SunOS 4.
21243
21244         2001-12-11  Bruno Haible  <bruno@clisp.org>
21245
21246                 * setenv.c: Declare alloca.
21247                 (compar_fn_t): New typedef.
21248                 (KNOWN_VALUE, STORE_VALUE): Use it.
21249
21250         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
21251         setenv.h.
21252
21253 2002-12-10  Paul Eggert  <eggert@twinsun.com>
21254
21255         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
21256         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
21257         Choose values that are less likely to collide with system fnmatch
21258         options.
21259         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
21260         defined (e.g., a pure POSIX system).
21261         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
21262         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
21263
21264 2002-12-06  Paul Eggert  <eggert@twinsun.com>
21265
21266         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
21267         a pain in practice to deal with generated m4 files.  This change
21268         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
21269
21270         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
21271         and jm-glibc-io.m4, as they are no longer a special case.
21272         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
21273         kludge and the auto-generation stuff.  Check only whether the
21274         functions are declared, not whether they exist, since older hosts
21275         that don't declare the functions can't use the optimization anyway.
21276
21277 2002-12-06  Jim Meyering  <jim@meyering.net>
21278
21279         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
21280
21281         Merge in changes from libc's misc/error.c, in preparation
21282         for the merge of gnulib's changes back into libc.
21283
21284         * lib/error.c (_): Define only if not already defined.
21285         Move definition to follow all #include directives.
21286         Include unlocked-io.h only if !_LIBC.
21287         [_LIBC]: Include <libio/libioP.h>.
21288         [USE_IN_LIBIO]: Include <libio/iolibio.h>
21289         (fflush): Tweak definition to use INTUSE.
21290         (putc): Define.
21291
21292 2002-12-05  Paul Eggert  <eggert@twinsun.com>
21293
21294         * lib/alloca.c [defined emacs]: Include "lisp.h".
21295         (xalloc_die) [defined emacs]: New macro.
21296         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
21297         [! defined emacs]: Include <xalloc.h>.
21298         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
21299         (pointer): Typedef to POINTER_TYPE *.
21300         (malloc): Remove decl; we now always use xmalloc.
21301         (alloca): Use old-style definition, since Emacs needs this.
21302         Check for arithmetic overflow when computing combined size.
21303
21304 2002-12-04  Paul Eggert  <eggert@twinsun.com>
21305
21306         Do not generate unlocked-io.h automatically, since it's easier to
21307         maintain it by hand.
21308
21309         * lib/unlocked-io.h: New file, from GNU diffutils,
21310         but with proper copyright notice and attribution.
21311         * lib/gen-uio: Remove.
21312         * lib/Makefile.am: Add copyright notice.
21313         (libfetish_a_SOURCES): Add unlocked-io.h.
21314         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
21315         (DISTCLEANFILES, io_functions): Remove macros.
21316         (EXTRA_DIST): Remove gen_uio.
21317         (unlocked-io.h): Remove rule.
21318
21319 2002-12-04  Jim Meyering  <jim@meyering.net>
21320
21321         Reflect the fact that stat.c and lstat.c are no longer generated.
21322         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
21323         (DISTCLEANFILES): Likewise.
21324         (EXTRA_DIST): Likewise.
21325         (all_local): Don't depend on stat.c or lstat.c.
21326         (stat.c, lstat.c): Remove rules.
21327         (EXTRA_DIST): Remove xstat.in.
21328
21329         * lib/xstat.in: Remove file.  Contents moved into stat.c.
21330         * lib/stat.c: New file.  Contents mostly from xstat.in.
21331         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
21332         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
21333
21334         * lib/safe-read.c: Rework so that it may serve to define safe_write,
21335         too.
21336         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
21337
21338 2002-12-03  Jim Meyering  <jim@meyering.net>
21339
21340         * lib/safe-read.c, safe-write.c: Change variable names and comments,
21341         but not semantics, to minimize the differences between these two files.
21342         (safe_read): Change comment to mention SAFE_READ_ERROR.
21343
21344         * lib/safe-read.c (IS_EINTR): Define.
21345         (safe_read): Use IS_EINTR in place of in-function cpp directives.
21346
21347 2002-12-02  Jim Meyering  <jim@meyering.net>
21348
21349         * lib/safe-read.c (EINTR): Define.
21350         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
21351         (INT_MAX): Provide fallback.
21352         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
21353
21354         * lib/safe-read.h (SAFE_READ_ERROR): Define.
21355
21356 2002-12-02  Bruno Haible  <bruno@clisp.org>
21357
21358         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
21359         Define, taken from safe-read.c.
21360         (INT_MAX): Provide fallback.
21361         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
21362         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
21363
21364         * lib/safe-read.c (EINTR): Remove definition.
21365         (safe_read): Don't use EINTR if it is absent.
21366
21367 2002-12-01  Jim Meyering  <jim@meyering.net>
21368
21369         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
21370         zero.
21371         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
21372
21373 2002-11-27  Paul Eggert  <eggert@twinsun.com>
21374
21375         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
21376         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
21377         with `if (! (value < limit)) abort ();', for readability.
21378
21379 2002-11-26  Karl Berry  <karl@gnu.org>
21380
21381         * lib/strdup.c: copy from libc again, with jim's ok.
21382         * lib/.cppi-disable: re-add strdup.c
21383
21384 2002-11-25  Karl Berry  <karl@gnu.org>
21385
21386         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
21387         instead of "strtol.c".
21388
21389 2002-11-25  Karl Berry  <karl@gnu.org>
21390
21391         * config/install-sh: update from automake for variable quoting, $0 in
21392         error msgs, etc.
21393
21394         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
21395         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
21396         entry.
21397
21398 2002-11-25  Jim Meyering  <jim@meyering.net>
21399
21400         * lib/mktime.c: Sync from libc, now that it has the latest fix.
21401
21402 2002-11-24  Karl Berry  <karl@gnu.org>
21403
21404         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
21405         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
21406
21407 2002-11-24  Jim Meyering  <jim@meyering.net>
21408
21409         Update from coreutils:
21410
21411         * lib/mktime.c: Merge in changes from libc.
21412
21413         Avoid a link-time failure on some Linux systems.
21414         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
21415         (otherwise).
21416         (__mon_yday): Declare with the STATIC attribute.
21417         (__mktime_internal): Likewise.
21418         Based on a report from Greg Schafer.
21419
21420 2002-11-23  Jim Meyering  <jim@meyering.net>
21421
21422         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
21423         Use `unsigned', not `int', as type of index.
21424
21425         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
21426
21427         * lib/fsusage.c: Remove unneeded parentheses around operands of
21428         `defined'.
21429
21430 2002-11-22  Paul Eggert  <eggert@twinsun.com>
21431
21432         * lib/quotearg.h: Allow multiple inclusion by surrounding with
21433         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
21434         so that we can be included first.
21435         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
21436         * lib/quotearg.c: Include quotearg.h immediately after config.h.
21437         No need to include stddef.h or sys/types.h any more.
21438         Surround local include files with "", not "<>".
21439         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
21440         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
21441         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
21442         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
21443         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
21444         (ISPRINT): Remove; no longer needed now that we assume C89.
21445
21446         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
21447         Preserve errno.
21448
21449         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
21450         quotearg_char): Use SIZE_MAX rather than
21451         (size_t) -1 when we are talking about "infinity".
21452
21453         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
21454
21455 2002-11-22  Paul Eggert  <eggert@twinsun.com>
21456
21457         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
21458         hint that one should use `if (! x) abort ();' rather than `assert
21459         (x);', and anyway it's one less thing to worry about configuring.
21460         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
21461         hash_rehash, hash_insert): Use abort rather than assert.
21462
21463 2002-11-22  Bruno Haible  <bruno@clisp.org>
21464
21465         * lib/safe-read.h: Assume C89. Add comments.
21466         (safe_read): Change return type to size_t.
21467         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
21468         byte counts > SSIZE_MAX correctly.
21469         * lib/safe-write.h: New file.
21470         * lib/safe-write.c: New file.
21471         * lib/full-read.h: New file.
21472         * lib/full-read.c: New file.
21473         * lib/full-write.h: Assume C89. Add comments.
21474         * lib/full-write.c: Include safe-write.h.
21475         (full_write): Rewritten to use safe_write.
21476         Suggested by Jim Meyering and Paul Eggert.
21477
21478 2002-11-21  Jim Meyering  <jim@meyering.net>
21479
21480         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
21481
21482         Merge in changes from the coreutils.
21483
21484         2002-09-25  Paul Eggert  <eggert@twinsun.com>
21485         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
21486         <stdint.h>.
21487         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
21488         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
21489         int.  Work more efficiently if X is the same width as uintmax_t.
21490         Do not compare X to -1, to avoid bogus compiler warning.
21491         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
21492         Don't assume that f_frsize and f_bsize are the same type.
21493
21494         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
21495         warning on FreeBSD.
21496
21497         * lib/makepath.c (make_path): Restore umask *before* creating the final
21498         component.
21499         (make_path): Minor reformatting.
21500
21501         * lib/xmalloc.c: Adjust to work with new autoconf macros,
21502         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
21503         HAVE_MALLOC/HAVE_REALLOC.
21504
21505         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
21506         dummy ones.  At least on GNU/Linux systems, `auto' means something
21507         else.
21508         From Michael Stone.
21509
21510 2002-11-21  Bruno Haible  <bruno@clisp.org>
21511
21512         Remove case insensitive option matching.
21513         * lib/argmatch.h (argcasematch): Remove declaration.
21514         (ARGCASEMATCH): Remove macro.
21515         (__xargmatch_internal): Remove case_sensitive argument.
21516         (XARGMATCH): Update.
21517         (XARGCASEMATCH): Remove macro.
21518         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
21519         case_sensitive argument.
21520         (argcasematch): Remove function.
21521         (__xargmatch_internal): Remove case_sensitive argument.
21522         (main): Use XARGMATCH instead of XARGCASEMATCH.
21523
21524         * lib/xmalloc.c: Change compile-time error message. Add comment about
21525         required autoconf version.
21526
21527 2002-11-20  Paul Eggert  <eggert@twinsun.com>
21528
21529         Merge argmatch cleanups from Bison.  Assume C89.
21530
21531         * lib/argmatch.c: Include config.h here, not in argmatch.h.
21532         Include stdlib.h, for EXIT_FAILURE.
21533         Always include <string.h>, since we assume C89.
21534         (EXIT_FAILURE): Remove pre-C89 bug workaround.
21535         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
21536         Include <stddef.h> instead, since it's all we need for size_t.
21537         (PARAMS): Remove.  All uses removed.
21538         (ARRAY_CARDINALITY): Do not bother to #undef.
21539         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
21540         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
21541         Remove unnecessary parentheses.
21542         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
21543         Insert necessary parentheses.
21544         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
21545         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
21546
21547 2002-11-19  Bruno Haible  <bruno@clisp.org>
21548
21549         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
21550         * lib/mbswidth.h: Include <stddef.h>, for size_t.
21551
21552         * lib/mbswidth.h (PARAMS): Remove macro.
21553         (mbswidth, mbsnwidth): Use ANSI C function declarations.
21554         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
21555
21556         * lib/gcd.h (PARAMS): Remove macro.
21557         (gcd): Use ANSI C function declarations.
21558         * lib/gcd.c (gcd): Likewise.
21559
21560 2002-11-15  Bruno Haible  <bruno@clisp.org>
21561
21562         * lib/strcspn.c: Include <stddef.h>.
21563         (strcspn): Use ANSI C function declaration. Change return type to
21564         size_t. Use NULL.
21565         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
21566         (strpbrk): Use NULL.
21567         * lib/strpbrk.h (PARAMS): Remove macro.
21568         (strpbrk): Use ANSI C function declaration.
21569         * lib/strstr.c: Don't include <sys/types.h>.
21570         * lib/strstr.h (PARAMS): Remove macro.
21571         (strstr): Use ANSI C function declarations.
21572
21573 2002-11-14  Karl Berry  <karl@gnu.org>
21574
21575         * config/mkinstalldirs: `do' on separate line, instead of
21576         `for var; do'.
21577
21578 2002-11-06  Bruno Haible  <bruno@clisp.org>
21579
21580         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
21581         * lib/gcd.c (gcd): Likewise.
21582
21583 2002-11-05  Bruno Haible  <bruno@clisp.org>
21584
21585         * lib/gcd.h: New file, from gettext-0.11.5.
21586         * lib/gcd.c: New file, from gettext-0.11.5.
21587
21588 2002-11-05  Bruno Haible  <bruno@clisp.org>
21589
21590         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
21591         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
21592         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
21593         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
21594
21595         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
21596         <libintl.h>.
21597         * lib/makepath.c: Include gettext.h instead of <locale.h> and
21598         <libintl.h>.
21599
21600         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
21601         * lib/human.c: Include gettext.h instead of <libintl.h>.
21602         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
21603         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
21604         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
21605         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
21606         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
21607         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
21608         (textdomain): Remove definition.
21609         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
21610
21611         * lib/long-options.c: Remove include of <libintl.h> and definition of
21612         _.
21613         * lib/same.c: Remove include of <libintl.h> and definition of _.
21614
21615 2002-11-04  Owen Taylor  <otaylor@redhat.com>
21616
21617         * lib/config.charset: A few additions for Solaris.
21618
21619 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
21620
21621         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
21622         * lib/localcharset.c (locale_charset): Declare as extern "C".
21623
21624 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
21625
21626         * lib/config.charset: msdos in uk_UA uses CP1125.
21627
21628 2002-11-04  Bruno Haible  <bruno@clisp.org>
21629
21630         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
21631         * lib/strcase.h: New file, from GNU gettext-0.11.5.
21632         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
21633         * lib/strstr.h: New file, from GNU gettext-0.11.5.
21634         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
21635
21636 2002-11-04  Bruno Haible  <bruno@clisp.org>
21637
21638         * lib/localcharset.c (locale_charset): Don't return an empty string.
21639
21640 2002-11-04  Bruno Haible  <bruno@clisp.org>
21641
21642         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
21643         aliases.
21644
21645 2002-11-04  Bruno Haible  <bruno@clisp.org>
21646
21647         * lib/config.charset: Update for newest glibc. Add canonical names
21648         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
21649
21650 2002-11-04  Bruno Haible  <bruno@clisp.org>
21651
21652         * lib/config.charset: Add support for NetBSD.
21653
21654 2002-11-04  Bruno Haible  <bruno@clisp.org>
21655
21656         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
21657
21658 2002-11-01  Bruno Haible  <bruno@clisp.org>
21659
21660         * configure.in: Add AC_CONFIG_AUX_DIR call.
21661         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
21662         test/Makefile.
21663         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
21664
21665 2002-09-28  Karl Berry  <karl@gnu.org>
21666
21667         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
21668         installed automake until the next release, since changes have been
21669         made.
21670
21671 2002-09-25  Karl Berry  <karl@gnu.org>
21672
21673         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
21674         * lib/getopt*: copy from libc/posix.
21675         * lib/gettext.h: copy from gettext.
21676         * lib/.cppi-disable: add strdup.c, gettext.h.
21677
21678 2002-09-25  Karl Berry  <karl@gnu.org>
21679
21680         * config/srclist.txt: enable gettext.h check.
21681         * config/config.{guess,sub}: update from prep.
21682         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
21683                 from automake 1.6.3.
21684         See srclist*.
21685
21686 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
21687
21688         * regex.c (PATFETCH): Remove the translating fetch.
21689         (PATFETCH_RAW): Rename to PATFETCH.
21690         (set_image_of_range): New fun.
21691         (SET_RANGE_TABLE_WORK_AREA): Use it.
21692         (regex_compile): Don't translate the pattern chars so eagerly.
21693         Only do it when inserting an `exactn' bytecode or when handling
21694         a char-range.
21695         (mutually_exclusive_p): Avoid empty statement.
21696
21697 2002-07-06  Jim Meyering  <meyering@lucent.com>
21698
21699         * m4/README: Don't mention Makefile.am.in.
21700         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
21701
21702 2002-07-01  Jim Meyering  <meyering@lucent.com>
21703
21704         * lib/c-stack.c: Include sys/time.h.
21705         From Volker Borchert.
21706
21707 2002-06-26  Paul Eggert  <eggert@twinsun.com>
21708
21709         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
21710
21711 2002-06-26  Paul Eggert  <eggert@twinsun.com>
21712
21713         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
21714         New macro.  Use it uniformly instead of
21715         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
21716         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
21717         reported by Vin Shelton.
21718
21719 2002-06-22  Paul Eggert  <eggert@twinsun.com>
21720
21721         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
21722         Do not assume SA_SIGINFO behavior.
21723         Bug reported by Jim Meyering on NetBSD 1.5.2.
21724
21725 2002-06-22  Jim Meyering  <meyering@lucent.com>
21726
21727         * m4/c-stack.m4: New file, from diffutils-2.8.2.
21728         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
21729
21730         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
21731         now that configure.ac uses AC_GNU_SOURCE.
21732         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
21733         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
21734
21735         Update to latest tools.  Suggestions from Paul Eggert.
21736         * m4/stdbool.m4: New file, from diffutils-2.8.2.
21737         * m4/gnu-source.m4: Update from diffutils-2.8.2.
21738         * m4/fnmatch.m4: Likewise.
21739         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
21740         to AC_HEADER_STDBOOL
21741
21742 2002-06-22  Jim Meyering  <meyering@lucent.com>
21743
21744         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
21745         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
21746
21747 2002-06-22  Jim Meyering  <meyering@lucent.com>
21748
21749         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
21750
21751         * lib/exitfail.c, exitfail.h: Likewise.
21752         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
21753
21754         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
21755         of fnmatch.h.
21756         (EXTRA_DIST): Add fnmatch_loop.c.
21757         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
21758
21759         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
21760         * lib/fnmatch.c: Update from diffutils-2.8.2.
21761         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
21762         * lib/fnmatch.h: Remove file.
21763
21764 2002-06-21  Jim Meyering  <meyering@lucent.com>
21765
21766         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
21767         * m4/mbrtowc.m4: Likewise.
21768
21769         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
21770         * m4/mbswidth.m4: Reflect name change:
21771         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
21772         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
21773
21774         * m4/lib-link.m4: Update from gettext-0.11.2.
21775         * m4/gettext.m4: Likewise.
21776
21777         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
21778         From Alfred M. Szmidt.
21779
21780 2002-06-18  Paul Eggert  <eggert@twinsun.com>
21781
21782         * lib/file-type.h: Report an error if neither S_ISREG nor
21783         S_IFREG is defined, instead of using a test specific to glibc
21784         2.2.  This should be safe, since POSIX requires S_ISREG and
21785         Unix Version 7 had S_IFREG.  We don't need to check for
21786         <sys/types.h> since we don't use any symbols that it defines.
21787
21788 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
21789
21790         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
21791         $@-t, so that each temporary file name is unique and valid in the first
21792         8 characters, for operation under DOS.
21793
21794 2002-06-15  Paul Eggert  <eggert@twinsun.com>
21795
21796         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
21797
21798 2002-06-15  Jim Meyering  <meyering@lucent.com>
21799
21800         Work even with DJGPP 2.03, which lacks support for symlinks.
21801         From Richard Dawe.
21802         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
21803         is defined.
21804         * lib/lchown.c (S_ISLNK): Likewise.
21805
21806 2002-06-15  Jim Meyering  <meyering@lucent.com>
21807
21808         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
21809         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
21810         have been included before this file.
21811
21812 2002-06-14  Jim Meyering  <meyering@lucent.com>
21813
21814         * lib/file-type.h: Use the version from diffutils-2.8.2.
21815         * lib/file-type.c: Likewise.
21816
21817 2002-06-07  Jim Meyering  <meyering@lucent.com>
21818
21819         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
21820         They're needed at least for NetBSD 1.5.2.
21821         ($statxfs_includes): Include those same headers.
21822         ($statxfs_includes): Include sys/vfs.h if available.
21823         ($statxfs_includes): Likewise for sys/statvfs.h.
21824         Check for the following members in both structs statfs and statvfs:
21825         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
21826
21827 2002-06-01  Jim Meyering  <meyering@lucent.com>
21828
21829         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
21830         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
21831
21832 2002-05-28  Jim Meyering  <meyering@lucent.com>
21833
21834         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
21835         Reported by Volker Borchert.
21836
21837 2002-05-27  Jim Meyering  <meyering@lucent.com>
21838
21839         Fix a problem seen only on nonconforming systems whereby ls.c's
21840         use of localtime, and then of gettimeofday would cause trouble:
21841         the localtime call used to initialize rpl_gettimeofday's save
21842         mechanism would clobber ls's current local time information so
21843         that in any long listing the first file would always be listed
21844         with date 1970-01-01.  Analysis by Volker Borchert.
21845
21846         * lib/gettimeofday.c (localtime): Undefine.
21847         (rpl_localtime): New function.
21848
21849 2002-05-27  Jim Meyering  <meyering@lucent.com>
21850
21851         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
21852         localtime.
21853
21854         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
21855         use the replacement function; it wouldn't resolve at link time.
21856         Reported by Volker Borchert.
21857
21858 2002-05-22  Jim Meyering  <meyering@lucent.com>
21859
21860         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
21861         file-type.h.
21862         * lib/file-type.h: New file.
21863         * lib/file-type.c (file_type): New file/function.  Extracted from
21864         diffutils.
21865
21866 2002-04-30  Jim Meyering  <meyering@lucent.com>
21867
21868         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
21869
21870 2002-04-29  Paul Eggert  <eggert@twinsun.com>
21871
21872         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
21873
21874 2002-04-29  Paul Eggert  <eggert@twinsun.com>
21875
21876         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
21877         Do not check for alloca.h (no longer used) or stdbool.h (was never
21878         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
21879
21880 2002-04-29  Paul Eggert  <eggert@twinsun.com>
21881
21882         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
21883
21884 2002-04-29  Jim Meyering  <meyering@lucent.com>
21885
21886         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
21887         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
21888         Use AC_FUNC_STRNLEN here instead.
21889
21890         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
21891         With autoconf-2.53a, it's part of AC_PROG_CC.
21892
21893 2002-04-28  Paul Eggert  <eggert@twinsun.com>
21894
21895         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
21896         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
21897
21898 2002-04-28  Paul Eggert  <eggert@twinsun.com>
21899
21900         * lib/sig2str.h, lib/sig2str.c: New files.
21901         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
21902
21903 2002-04-28  Paul Eggert  <eggert@twinsun.com>
21904
21905         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
21906         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
21907         of 127, since 64 is the largest conceivable number for ancient
21908         nonstandard hosts.
21909         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
21910
21911 2002-04-28  Jim Meyering  <meyering@lucent.com>
21912
21913         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
21914
21915 2002-04-24  Jim Meyering  <meyering@lucent.com>
21916
21917         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
21918         (jm_PREREQ): Use it.
21919
21920         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
21921         mach/mach.h fcntl.h.
21922         Check for this function: setlocale.
21923
21924 2002-04-24  Jim Meyering  <meyering@lucent.com>
21925
21926         * lib/gettext.h: New file, from Gettext.
21927         * lib/Makefile.am (INCLUDES): Remove -I../intl.
21928         (libfetish_a_SOURCES): Add gettext.h.
21929
21930 2002-04-16  Jim Meyering  <meyering@lucent.com>
21931
21932         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
21933         ut_pid, ut_id, ut_exit.
21934
21935 2002-04-16  Jim Meyering  <meyering@lucent.com>
21936
21937         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
21938         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
21939         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
21940
21941 2002-04-12  Jim Meyering  <meyering@lucent.com>
21942
21943         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
21944         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
21945         existence of the getmntinfo function.  Needed for Darwin 5.3.
21946
21947         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
21948         This is necessary at least on Darwin 5.3.
21949
21950         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
21951         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
21952         strnlen.o in the library, and that makes some versions of ranlib
21953         object.
21954
21955 2002-04-12  Jim Meyering  <meyering@lucent.com>
21956
21957         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
21958
21959 2002-04-09  Jim Meyering  <meyering@lucent.com>
21960
21961         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
21962         to be more precise.  Rather than saying we're checking whether the
21963         function `works', say what we're testing.
21964         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
21965         Reported by Bruno Haible.
21966
21967 2002-03-10  Jim Meyering  <meyering@lucent.com>
21968
21969         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
21970         Suggestion from Santiago Vila.
21971
21972 2002-03-08  Jim Meyering  <meyering@lucent.com>
21973
21974         * lib/rename.c: Mention that this wrapper is needed also on
21975         mips-dec-ultrix4.4 systems.
21976
21977 2002-03-02  Jim Meyering  <meyering@lucent.com>
21978
21979         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
21980         not HAVE_CLOCK_SETTIME.
21981
21982 2002-02-27  Paul Eggert  <eggert@twinsun.com>
21983
21984         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
21985         Check for clock_settime.
21986
21987 2002-02-27  Paul Eggert  <eggert@twinsun.com>
21988
21989         * lib/nanosleep.h: Rename to....
21990         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
21991
21992         * lib/gettime.c: New file.
21993         * lib/settime.c: New file.
21994         * lib/stime.c: Remove.
21995
21996         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
21997         timespec.h.  Remove nanosleep.h.
21998
21999 2002-02-25  Paul Eggert  <eggert@twinsun.com>
22000
22001         * m4/acl.m4: New file.
22002         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
22003         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
22004
22005 2002-02-25  Paul Eggert  <eggert@twinsun.com>
22006
22007         * lib/acl.c, lib/acl.h: New files.
22008         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
22009
22010 2002-02-24  Jim Meyering  <meyering@lucent.com>
22011
22012         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
22013         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
22014         cause trouble.  Reported by Nelson Beebe.
22015
22016 2002-02-23  Paul Eggert  <eggert@twinsun.com>
22017
22018         * lib/path-concat.c (xpath_concat): Reorder code to pacify
22019         compilers that don't know that xalloc_die never returns.
22020
22021 2002-02-20  Jim Meyering  <meyering@lucent.com>
22022
22023         * lib/getdate.c: Regenerate using bison-1.33.
22024
22025 2002-02-17  Jim Meyering  <meyering@lucent.com>
22026
22027         * config/config.guess (main): Don't use `head -1'; it's no longer
22028         portable. Use `sed 1q' instead.
22029
22030 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
22031
22032         * m4/codeset.m4: Upgrade to gettext-0.11.
22033         * m4/gettext.m4: Upgrade to gettext-0.11.
22034         * m4/glibc21.m4: Upgrade to gettext-0.11.
22035         * m4/iconv.m4: Upgrade to gettext-0.11.
22036         * m4/isc-posix.m4: Upgrade to gettext-0.11.
22037         * m4/lcmessage.m4: Upgrade to gettext-0.11.
22038         * m4/lib-ld.m4: New file, from gettext-0.11.
22039         * m4/lib-link.m4: New file, from gettext-0.11.
22040         * m4/lib-prefix.m4: New file, from gettext-0.11.
22041         * m4/progtest.m4: Upgrade to gettext-0.11.
22042
22043 2002-02-15  Paul Eggert  <eggert@twinsun.com>
22044
22045         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
22046         (jm_PREREQ): Use it.
22047
22048 2002-02-15  Paul Eggert  <eggert@twinsun.com>
22049
22050         * lib/posixver.c, lib/posixver.h: New files.
22051         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
22052
22053 2002-02-02  Paul Eggert  <eggert@twinsun.com>
22054             Bruno Haible  <bruno@clisp.org>
22055
22056         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
22057         (fwrite_success_callback): New declaration.
22058         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
22059         print_unicode_char. Call failure callback instead of error.
22060         (fwrite_success_callback): New function.
22061         (exit_failure_callback): New function.
22062         (fallback_failure_callback): New function.
22063         (print_unicode_char): Call unicode_to_mb.
22064
22065 2002-01-26  Jim Meyering  <meyering@lucent.com>
22066
22067         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
22068         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
22069
22070 2002-01-26  Jim Meyering  <meyering@lucent.com>
22071
22072         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
22073
22074 2002-01-22  Paul Eggert  <eggert@twinsun.com>
22075
22076         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
22077
22078 2002-01-22  Jim Meyering  <meyering@lucent.com>
22079
22080         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
22081         Otherwise, some versions of automake would omit the rule that makes
22082         Makefile from Makefile.in.
22083
22084 2002-01-21  Paul Eggert  <eggert@twinsun.com>
22085
22086         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
22087         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
22088         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
22089         (memcoll): Set errno to zero if there is no error.
22090
22091         * lib/quotearg.c (quotearg_buffer_restyled):
22092         Fix bug with quoting buffers containing NUL when backslashing escapes.
22093         This bug was exposed by the other changes in this patch.
22094         (quotearg_n_options): New arg ARGSIZE.
22095         All callers changed.
22096         (quoting_options_from_style): New function.
22097         (quotearg_n_style): Use it.
22098         (quotearg_n_style_mem): New function.
22099
22100         * lib/quotearg.h (quotearg_n_style_mem): New function.
22101
22102 2002-01-19  Jim Meyering  <meyering@lucent.com>
22103
22104         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
22105         Remove useless quotes: DF_PROG="df".
22106         * m4/strnlen.m4: New file.
22107
22108 2002-01-16  Paul Eggert  <eggert@twinsun.com>
22109
22110         * lib/backupfile.c (ISDIGIT): Comment fix.
22111         * lib/getdate.y (ISDIGIT): Likewise.
22112         * lib/posixtm.c (ISDIGIT, year): Likewise.
22113         * lib/strverscmp.c (ISDIGIT): Likewise.
22114         * lib/userspec.c (ISDIGIT): Likewise.
22115
22116 2002-01-16  Jim Meyering  <meyering@lucent.com>
22117
22118         * lib/getdate.y: Add three semicolons, each just before a closing
22119         brace. Bison (as of version 1.31) no longer papers over that mistake.
22120
22121 2002-01-05  Jim Meyering  <meyering@lucent.com>
22122
22123         * lib/version-etc.c (version_etc_copyright): Update copyright year.
22124
22125 2001-12-19  Paul Eggert  <eggert@twinsun.com>
22126
22127         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
22128         not silently exit merely because the output buffer happens to
22129         have nothing pending.
22130
22131 2001-12-18  Paul Eggert  <eggert@twinsun.com>
22132
22133         See the big note in ../ChangeLog.
22134         * lib/human.c (suffixes): Prefer K to k for 1024.
22135         (generate_suffix_backwards): New function.
22136         (human_readable_inexact): Use it.
22137         * lib/xstrtol.c (__xstrtol): If there is no number but there
22138         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
22139         Accept 'K' as well as 'k'.
22140
22141 2001-12-15  Jim Meyering  <meyering@lucent.com>
22142
22143         * lib/regex.h (__restrict_arr): Update from libc.
22144
22145         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
22146         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
22147         (STREQ): Define.
22148
22149 2001-12-14  Jim Meyering  <meyering@lucent.com>
22150
22151         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
22152         Suggestion from Bruno Haible.
22153
22154 2001-12-10  Jim Meyering  <meyering@lucent.com>
22155
22156         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
22157         xrealloc, Instead, include "xalloc.h".
22158         (initbuffer): Don't cast xmalloc return value to char*.
22159         (readline): Reword comment.
22160         Don't cast xrealloc return value to char*
22161         Return NULL, not 0.
22162
22163 2001-12-09  Jim Meyering  <meyering@lucent.com>
22164
22165         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
22166         about `signed and unsigned type in conditional expression'.
22167         * lib/posixtm.c (posix_time_parse): Likewise.
22168
22169         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
22170
22171         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
22172         to avoid a pedantic warning.
22173
22174         * lib/getstr.c: Don't include assert.h.
22175         (getstr): Remove warning-evoking assertions.
22176         Return -1 if offset parameter is out of bounds.
22177         Change the type of a local from int to size_t.
22178
22179         * lib/strftime.c (my_strftime_localtime_r): Include this function
22180         definition in the `#if ! HAVE_TM_GMTOFF' block.
22181
22182         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
22183         Include xalloc.h instead.
22184
22185 2001-12-02  Jim Meyering  <meyering@lucent.com>
22186
22187         * lib/tempname.c: Don't declare getenv, thus reverting the change of
22188         2001-11-18.  It's no longer necessary, now that stdlib.h is always
22189         included.
22190
22191         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
22192         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
22193
22194 2001-11-30  Akim Demaille  <akim@epita.fr>
22195
22196         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
22197         before being defined.
22198
22199 2001-11-27  Paul Eggert  <eggert@twinsun.com>
22200
22201         * lib/quotearg.h (quotearg_n, quotearg_n_style):
22202         First arg is int, not unsigned.
22203         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
22204         (SIZE_MAX, UINT_MAX): New macros.
22205         (quotearg_n_options): Abort if N is negative.
22206         Avoid overflow check on hosts where size_t is 64 bits and int
22207         is 32 bits, as overflow is impossible there.
22208         Fix off-by-one typo that caused unnecessary reallocation.
22209
22210 2001-11-27  Jim Meyering  <meyering@lucent.com>
22211
22212         * lib/tempname.c: Merge with version from libc.
22213         * lib/regex.c: Likewise.
22214
22215         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
22216         systems for which STDC_HEADERS is 0, it was not included, resulting in
22217         a warning about an integer-to-pointer conversion problem with getenv.
22218         Reported by Volker Borchert.
22219
22220 2001-11-26  Jim Meyering  <meyering@lucent.com>
22221
22222         * lib/gtod.h: Remove file.
22223         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
22224         * lib/gettimeofday.c: Don't include gtod.h.
22225         (GTOD_init): Remove function.
22226         (rpl_gettimeofday): Do its job here instead, rather than aborting.
22227         Suggestion from Volker Borchert.
22228
22229 2001-11-23  Jim Meyering  <meyering@lucent.com>
22230
22231         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
22232         it.
22233         * lib/hash.c (struct hash_table): Define it here instead.
22234
22235 2001-11-22  Jim Meyering  <meyering@lucent.com>
22236
22237         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
22238
22239 2001-11-20  Jim Meyering  <meyering@lucent.com>
22240
22241         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
22242         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
22243
22244 2001-11-19  Jim Meyering  <meyering@lucent.com>
22245
22246         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
22247         directory.  Use "conftestXXXXXX" as the template.
22248         Suggestion from Paul Eggert.
22249
22250         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
22251         immediately, so the test doesn't mistakenly hit the max-open-files
22252         limit.
22253
22254 2001-11-18  Paul Eggert  <eggert@twinsun.com>
22255
22256         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
22257         (TEMPORARIES): New macro.
22258         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
22259         removes an artificial limitation (e.g. HP-UX 10.20, where
22260         TMP_MAX is 17576).
22261
22262 2001-11-18  Jim Meyering  <meyering@lucent.com>
22263
22264         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
22265
22266 2001-11-18  Jim Meyering  <meyering@lucent.com>
22267
22268         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
22269         on SunOS 4.
22270
22271         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
22272         files will be created before anything else.
22273
22274 2001-11-17  Paul Eggert  <eggert@twinsun.com>
22275
22276         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
22277         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
22278
22279 2001-11-17  Jim Meyering  <meyering@lucent.com>
22280
22281         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
22282         Prompted by a report from Bob Proulx.
22283
22284         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
22285         Instead, require UTILS_FUNC_MKSTEMP.
22286
22287 2001-11-17  Jim Meyering  <meyering@lucent.com>
22288
22289         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
22290         Now, that's done as part of AC_FUNC_STRTOD.
22291
22292 2001-11-17  Jim Meyering  <meyering@lucent.com>
22293
22294         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
22295         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
22296         rather than group writable.  Patch by Juan F. Codagnone.
22297
22298         * lib/readtokens.c: Remove explicit declarations of xmalloc and
22299         xrealloc, Instead, include "xalloc.h".
22300
22301         * lib/mountlist.c: Include unlocked-io.h after all system headers.
22302         Remove explicit declarations of xmalloc, xrealloc,
22303         and xstrdup.  Instead, include "xalloc.h".
22304
22305         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
22306         unlocked-io.h.
22307         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
22308         Likewise.
22309         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
22310
22311         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
22312         Reported by Padraig Brady.
22313
22314         * lib/mkstemp.c: #undef mkstemp.
22315         Include config.h.
22316         (rpl_mkstemp): Rename from mkstemp.
22317         Protoize.
22318
22319 2001-11-16  Jim Meyering  <meyering@lucent.com>
22320
22321         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
22322         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
22323         determine the amount of total physical memory, use pstat_getstatic.
22324         HPUX-11 doesn't define _SC_PHYS_PAGES.
22325         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
22326         If sysconf couldn't be used to determine the amount of available
22327         physical memory, use both pstat_getstatic and pstat_getdynamic.
22328         Based on a patch from Bob Proulx.
22329
22330 2001-11-10  Jim Meyering  <meyering@lucent.com>
22331
22332         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
22333         (jm_PREREQ): Use it.
22334
22335 2001-11-09  Jim Meyering  <meyering@lucent.com>
22336
22337         * m4/jm-macros.m4: Require autoconf-2.52f.
22338         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
22339         Use these AC_-prefixed names, not the AM_-prefixed ones.
22340
22341         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
22342
22343 2001-11-05  Jim Meyering  <meyering@lucent.com>
22344
22345         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
22346
22347 2001-11-04  Jim Meyering  <meyering@lucent.com>
22348
22349         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
22350         $DEFS.
22351
22352 2001-11-03  Jim Meyering  <meyering@lucent.com>
22353
22354         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
22355         of AC_DEFUN.
22356
22357         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
22358         know the name of the variable in the macro definition.
22359
22360 2001-11-03  Jim Meyering  <meyering@lucent.com>
22361
22362         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
22363         in argmatch_to_argument call.
22364
22365         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
22366         argument.
22367
22368         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
22369         e.g., a fault due to an attempt to free a NULL pointer.
22370
22371 2001-11-01  Jim Meyering  <meyering@lucent.com>
22372
22373         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
22374         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
22375
22376 2001-11-01  Jim Meyering  <meyering@lucent.com>
22377
22378         * lib/dirfd.c, lib/dirfd.h: New files.
22379         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
22380
22381         * lib/hash.c (hash_print) [TESTING]: Clean up.
22382
22383 2001-10-22  Paul Eggert  <eggert@twinsun.com>
22384
22385         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
22386         to avoid a warning if -Wall.
22387
22388 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
22389
22390         * README: New file
22391         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
22392         (per RMS's instructions, this is now the canonical source)
22393         * lgpl/, gpl/: New directories.
22394
22395 2001-10-21  Paul Eggert  <eggert@twinsun.com>
22396
22397         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
22398
22399 2001-10-21  Jim Meyering  <meyering@lucent.com>
22400
22401         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
22402         this code would end up calling gettext even in packages built
22403         with --disable-nls.
22404         * lib/getopt.c (_): Likewise.
22405         * lib/regex.c (_): Likewise.
22406
22407 2001-10-20  Paul Eggert  <eggert@twinsun.com>
22408
22409         * m4/error.m4 (jm_PREREQ_ERROR):
22410         Do not invoke AC_CHECK_FUNCS with strerror_r, as
22411         AC_FUNC_STRERROR_R does that.
22412         Check for strerror declaration.
22413
22414         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
22415         are supposed to have them these days.
22416         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
22417         Merge changes from latest Autoconf CVS.
22418         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
22419         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
22420         POSIX decided to standardize on the int flavor of strerror_r.
22421
22422 2001-10-20  Paul Eggert  <eggert@twinsun.com>
22423
22424         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
22425         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
22426         Use strerror_r that is only a macro, even if it is not a function.
22427         (strerror): Check for HAVE_DECL_STRERROR before declaring.
22428         (private_strerror): Use prototypes, not old-style function definition.
22429         (print_errno_message): New function.
22430         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
22431         char*-flavored one.
22432         (error_tail, error, error_at_line): Use it.
22433
22434 2001-10-11  Jim Meyering  <meyering@lucent.com>
22435
22436         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
22437         and quote_n (1, ... to avoid clobbering a buffer.
22438
22439 2001-10-05  Jim Meyering  <meyering@lucent.com>
22440
22441         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
22442         hash-pjw.h.
22443         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
22444         * lib/hash-pjw.h: New file.
22445
22446 2001-09-30  Jim Meyering  <meyering@lucent.com>
22447
22448         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
22449         `struct fsstat' has the `f_fstypename' member.
22450         Use that to define FS_TYPE, which is now used to make
22451         the getfsstat link test tighter.
22452
22453 2001-09-30  Jim Meyering  <meyering@lucent.com>
22454
22455         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
22456         Include <sys/ucred.h>, for Apple Darwin.
22457         Include sys/mount.h and sys/fs_types.h only if available.
22458         (FS_TYPE): Define.
22459         (read_filesystem_list): Use FS_TYPE.
22460
22461 2001-09-29  Paul Eggert  <eggert@twinsun.com>
22462
22463         * lib/exclude.c (excluded_filename): 0 -> false, since it's
22464         a boolean context.
22465
22466 2001-09-29  Jim Meyering  <meyering@lucent.com>
22467
22468         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
22469         [one-argument getmntent function]): Include stdio.h before mntent.h.
22470         SunOS 4.1.x needs it for the declaration of `FILE'.
22471         Patch by Volker Borchert.
22472
22473         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
22474         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
22475         sys/fs_types.h, and make the link-test for getfsstat guard #include
22476         directives with appropriate #if HAVE_*_H tests so that we can
22477         detect getfsstat on Apple Darwin1.3.7 systems.
22478         Reported by Nelson Beebe.
22479         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
22480
22481 2001-09-28  Paul Eggert  <eggert@twinsun.com>
22482
22483         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
22484         #defines strtoimax.  Also treat the other strto* functions
22485         like strtoimax.
22486
22487         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
22488         Check for strtoul and strtoumax,
22489         as those declarations are made even in the signed case.
22490         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
22491         Likewise, for strtol and strtoimax.
22492
22493 2001-09-28  Paul Eggert  <eggert@twinsun.com>
22494
22495         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
22496         #defines strtoimax.  Also treat the other strto* functions
22497         like strtoimax.
22498
22499         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
22500         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
22501         (strtoimax, strtoumax): Do not declare if already defined as a macro.
22502
22503 2001-09-26  Jim Meyering  <meyering@lucent.com>
22504
22505         Most macros in unlocked-io.h had the wrong number of arguments.
22506         * lib/gen-uio: New script.
22507         (USE_UNLOCKED_IO): Define to 1 if not already defined.
22508         * lib/unlocked-io.hin: Remove file.
22509         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
22510         rather than trying to embed it here.
22511         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
22512         Reported by Padraig Brady.
22513
22514 2001-09-25  Volker Borchert  <bt@teknon.de>
22515
22516         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
22517         `result'.
22518
22519 2001-09-24  Jim Meyering  <meyering@lucent.com>
22520
22521         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
22522
22523 2001-09-23  Jim Meyering  <meyering@lucent.com>
22524
22525         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
22526         instead of the mere test for existence of mntent.h.  The latter
22527         would get a false-positive on AIX 3.4 systems.
22528         In the outer getmntent if-block, don't die if neither of the getmntent
22529         tests succeeds.  Instead, just fall through and continue with the
22530         remaining tests.
22531
22532 2001-09-23  Jim Meyering  <meyering@lucent.com>
22533
22534         * lib/mountlist.c: Remove useless parentheses in #if directives.
22535         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
22536         the deprecated MOUNTED symbol is no longer defined in mntent.h.
22537
22538 2001-09-22  Jim Meyering  <meyering@lucent.com>
22539
22540         * m4/gettext.m4: New file.  From gettext.
22541         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
22542         * m4/progtest.m4: Likewise
22543         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
22544         * m4/glibc21.m4: Likewise.
22545
22546         * m4/libintl.m4: Remove.  No longer used.
22547
22548 2001-09-22  Jim Meyering  <meyering@lucent.com>
22549
22550         * lib/localcharset.c: Update from latest gettext.
22551         * lib/config.charset: Likewise.
22552
22553 2001-09-20  Jim Meyering  <meyering@lucent.com>
22554
22555         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
22556         strtoimax.
22557         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
22558         strtoumax.
22559
22560 2001-09-20  Jim Meyering  <meyering@lucent.com>
22561
22562         * lib/xstrtol.c (strtoimax): Guard declaration with
22563         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
22564         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
22565         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
22566         (strtoumax): Likewise, for completeness (it wasn't necessary).
22567
22568 2001-09-17  Paul Eggert  <eggert@twinsun.com>
22569
22570         * lib/strtoimax.c (HAVE_LONG_LONG):
22571         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
22572         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
22573         to work around bug in IBM C compiler.
22574
22575 2001-09-17  Jim Meyering  <meyering@lucent.com>
22576
22577         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
22578         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
22579         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
22580         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
22581         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
22582         whenever the right hand side need not be expanded by the shell.
22583
22584 2001-09-16  Paul Eggert  <eggert@twinsun.com>
22585
22586         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
22587         library.  It's not correct, as some older glibcs are buggy.
22588         fnmatch wasn't fixed until glibc 2.2.
22589
22590         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
22591         special shell magic here.
22592
22593 2001-09-16  Jim Meyering  <meyering@lucent.com>
22594
22595         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
22596         * m4/jm-macros.m4: Require it.
22597
22598 2001-09-16  Jim Meyering  <meyering@lucent.com>
22599
22600         * lib/mkdir.c: New file.
22601
22602 2001-09-15  Jim Meyering  <meyering@lucent.com>
22603
22604         * m4/jm-macros.m4: Check for help2man.
22605
22606 2001-09-11  Jim Meyering  <meyering@lucent.com>
22607
22608         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
22609         The body, by Paul Eggert, was moved here from configure.in.
22610         * m4/jm-macros.m4: Require UTILS_HOST_OS.
22611
22612 2001-09-04  Paul Eggert  <eggert@twinsun.com>
22613
22614         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
22615         (jm_PREREQ): Use it.
22616
22617 2001-09-04  Paul Eggert  <eggert@twinsun.com>
22618
22619         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
22620         Use ssize_t, not int, to store result of readlink.
22621         Check for ssize_t overflow as well as size_t overflow,
22622         as POSIX says the result of readlink is implementation-defined
22623         when ssize_t overflows.
22624         Remove unnecessary cast to char*.
22625         Use free+malloc instead of realloc, as the storage doesn't need
22626         to be preserved and it's clearer and can be more efficient that way.
22627         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
22628         * lib/xreadlink.h (xreadlink): Update prototype.
22629
22630 2001-09-04  Paul Eggert  <eggert@twinsun.com>
22631
22632         * lib/xgetcwd.c: Revert some of the previous change; intead,
22633         fix the HAVE_GETCWD_NULL code to behave more like the
22634         !HAVE_GETCWD_NULL code used to.
22635
22636         Include "xalloc.h".
22637         (xgetcwd): Do not return NULL when memory is exhausted; instead,
22638         invoke xalloc_die.
22639
22640 2001-09-03  Paul Eggert  <eggert@twinsun.com>
22641
22642         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
22643         sys/param.h, as pathmax.h includes them.
22644
22645 2001-09-03  Paul Eggert  <eggert@twinsun.com>
22646
22647         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
22648         (jm_PREREQ_XGETCWD): New macro.
22649
22650         * m4/getcwd.m4: New file.
22651
22652 2001-09-03  Paul Eggert  <eggert@twinsun.com>
22653
22654         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
22655         like the HAVE_GETCWD_NULL code.
22656         Include pathmax.h if not HAVE_GETCWD.
22657         Do not include xalloc.h.
22658         (INITIAL_BUFFER_SIZE): New symbol.
22659         Do not use xmalloc / xrealloc, since the caller is responsible for
22660         handling errors.  Preserve errno around `free' during failure.
22661         Do not overrun buffer when using getwd.
22662
22663 2001-09-03  Paul Eggert  <eggert@twinsun.com>
22664
22665         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
22666         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
22667         getcwd (NULL, 0).
22668
22669 2001-09-03  Paul Eggert  <eggert@twinsun.com>
22670
22671         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
22672         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
22673         spotted by Jim Meyering.
22674
22675 2001-09-03  Jim Meyering  <meyering@lucent.com>
22676
22677         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
22678         failure.
22679
22680 2001-09-02  Jim Meyering  <meyering@lucent.com>
22681
22682         * lib/error.c: Update from GNU libc.
22683
22684 2001-09-01  Jim Meyering  <meyering@lucent.com>
22685
22686         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
22687         Used by df.
22688
22689 2001-09-01  Jim Meyering  <meyering@lucent.com>
22690
22691         * lib/xreadlink.c: New file.
22692         * lib/xreadlink.h: New file.
22693         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
22694         xreadlink.h.
22695
22696         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
22697         doesn't conflict with sparc Solaris 7's definition in
22698         /usr/include/sys/int_types.h.
22699
22700         * lib/exclude.c: Use `""', not `<>' to #include non-system header
22701         files.
22702         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
22703         and strncasecmp as r-values.  Unixware didn't have declarations.
22704
22705 2001-08-31  Paul Eggert  <eggert@twinsun.com>
22706
22707         * lib/xstrtol.h: Add copyright notice.
22708         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
22709         LONGINT_INVALID_SUFFIX_CHAR.
22710
22711 2001-08-31  Paul Eggert  <eggert@twinsun.com>
22712
22713         * lib/xstrtol.c (strtoimax): New decl.
22714
22715 2001-08-31  Paul Eggert  <eggert@twinsun.com>
22716
22717         * lib/xgetcwd.c: Don't include pathmax.h.
22718         Include stdlib.h and unistd.h if available.
22719         Include xalloc.h.
22720         (xmalloc, xstrdup, free): Remove decls.
22721         (xgetcwd): Don't assume sizes fit in unsigned.
22722         Check for overflow when computing sizes.
22723         Simplify reallocation code.
22724
22725 2001-08-31  Paul Eggert  <eggert@twinsun.com>
22726
22727         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
22728         a directory's st_size can have an arbitrary value, so the old
22729         usage could waste an arbitrary amount of memory.  All uses
22730         changed.
22731         * lib/savedir.h: Update prototype.
22732
22733 2001-08-31  Paul Eggert  <eggert@twinsun.com>
22734
22735         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
22736
22737         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
22738         old strtoimax.c.
22739
22740         Also, make the following further changes to make this file's
22741         configuration more similar to that of strtol.c:
22742         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
22743         (strtoumax, uintmax_t, strtoull, strtol): Remove.
22744         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
22745         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
22746         changed to signed values.
22747
22748         And make the following changes as well:
22749         Fix copyright notice, as 1999 was missing.
22750         (verify): New macro.
22751         (strtoimax): Check sizes at compile-time, not run-time.
22752         Prefer strtol to strtoll if both work.
22753         (main): Remove; it was not that useful and was a pain to maintain.
22754
22755         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
22756
22757 2001-08-31  Jim Meyering  <meyering@lucent.com>
22758
22759         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
22760         Use an initial, malloc'd, buffer of length 128 rather than
22761         a statically allocated one of length 1024.
22762
22763 2001-08-30  Paul Eggert  <eggert@twinsun.com>
22764
22765         Simplify code, partly by assuming autoconf 2.52 semantics.
22766
22767         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
22768
22769         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
22770         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
22771         All uses removed.
22772         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
22773         Move AC_REQUIRE to next-to-top level, to avoid confusion.
22774         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
22775         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
22776         jm_AC_HEADER_INTTYPES_H.
22777         * m4/jm-macros.m4 (jm_MACROS): Likewise.
22778
22779         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
22780
22781         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
22782         Quote first arg of AC_DEFUN.
22783         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
22784         since they are needed to parse the include file even if we need
22785         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
22786         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
22787         but with opposite signedness.
22788
22789 2001-08-30  Paul Eggert  <eggert@twinsun.com>
22790
22791         Merge 'exclude' changes from tar 1.13.22.
22792         This fixes one or two unlikely storage allocation overflow bugs,
22793         but doesn't change user-visible behavior otherwise.
22794
22795 2001-08-30  Paul Eggert  <eggert@twinsun.com>
22796
22797         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
22798         (jm_PREREQ_EXCLUDE): New macro.
22799
22800 2001-08-30  Paul Eggert  <eggert@twinsun.com>
22801
22802         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
22803         tm to be declared.
22804
22805 2001-08-30  Paul Eggert  <eggert@twinsun.com>
22806
22807         * lib/hash.c: Remove '2001' from copyright notice.
22808
22809 2001-08-30  Paul Eggert  <eggert@twinsun.com>
22810
22811         * lib/full-write.h: New file.
22812         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
22813         * lib/full-write.c: Correct credits, as cccp.c no longer
22814         exists and anyway it was so heavily changed from the old cccp
22815         code as to be unrecognizable.  Include full-write.h.
22816         (full_write) Return size_t, with short writes meaning failure.
22817         All callers changed.  This fixes a bug with large buffers
22818         on 64-bit hosts.
22819         * lib/utime.c: Include full-write.h.
22820
22821 2001-08-30  Paul Eggert  <eggert@twinsun.com>
22822
22823         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
22824         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
22825         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
22826         Include if available.
22827         (<xalloc.h>): Include
22828         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
22829         (verify): New macro.  Use it to verify that EXCLUDE macros do not
22830         collide with FNM macros.
22831         (struct patopts): New struct.
22832         (struct exclude): Use it, as exclude patterns now come with options.
22833         (new_exclude): Support above changes.
22834         (new_exclude, add_exclude_file):
22835         Initial size must now be a power of two to simplify overflow checking.
22836         (free_exclude, fnmatch_no_wildcards): New function.
22837         (excluded_filename): No longer requires options arg, as the options
22838         are determined by add_exclude.  Now returns bool, not int.
22839         (excluded_filename, add_exclude):
22840         Add support for the fancy new exclusion options.
22841         (add_exclude, add_exclude_file): Now takes int options arg.
22842         Check for arithmetic overflow when computing sizes.
22843         (add_exclude_file): xrealloc might modify errno, so don't
22844         realloc until after errno might be used.
22845
22846         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
22847         New macros.
22848         (free_exclude): New decl.
22849         (add_exclude, add_exclude_file): Now takes int options arg.
22850         (excluded_filename): No longer requires options arg, as the options
22851         are determined by add_exclude.  Now returns bool, not int.
22852
22853 2001-08-30  Paul Eggert  <eggert@twinsun.com>
22854
22855         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
22856
22857 2001-08-27  Jim Meyering  <meyering@lucent.com>
22858
22859         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
22860
22861         * lib/version-etc.c (N_): Remove definition.
22862         Revert most of last change.
22863         Instead, simply don't mark the `Copyright...' string for translation.
22864         Based on advice from Paul Eggert.
22865
22866         * lib/strtoxmax.c: Tweak comment.
22867
22868 2001-08-26  Jim Meyering  <meyering@lucent.com>
22869
22870         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
22871
22872         * m4/xstrtoimax.m4: New file.
22873         * m4/xstrtoumax.m4: Add comments explaining why we
22874         AC_REPLACE_FUNCS(strtol).
22875
22876 2001-08-26  Jim Meyering  <meyering@lucent.com>
22877
22878         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
22879         of copyright with `%s' so translators don't get an untranslated
22880         message in 2002.
22881         (COPYRIGHT_YEAR): Define.
22882         (version_etc): Use fprintf rather than fputs.
22883         Suggestion from Ulrich Drepper.
22884
22885         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
22886
22887         * lib/strtoll.c: New file, from GNU libc.
22888         * lib/xstrtoimax.c: New file.
22889
22890         * lib/xstrtol.h: Add xstrtoimax.
22891         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
22892         * lib/strtoimax.c: New file.  Likewise, but first define
22893         STRTOUXMAX_SIGNED.
22894
22895         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
22896         ...
22897         * lib/strtoxmax.c: ... then renamed to this.
22898
22899 2001-08-18  Paul Eggert  <eggert@twinsun.com>
22900
22901         * m4/inttypes.m4: Add AC_PREREQ(2.13).
22902         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
22903         (jm_AC_TYPE_INTMAX_T): New macro.
22904         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
22905
22906         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
22907
22908         * m4/longlong.m4: Renamed from ulonglong.m4.
22909         * m4/inttypes.m4: Renamed from inttypes_h.m4.
22910         * m4/uintmax_t.m4: Removed.
22911
22912 2001-08-13  Paul Eggert  <eggert@twinsun.com>
22913
22914         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
22915         Port to Solaris 8, where 'sed' requires a space after the 'r'
22916         command, and where sh dislikes "$/".  Clean up the spacing a bit.
22917         Redirect output to $tmp just once.
22918
22919 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
22920
22921         * lib/addext.c (<errno.h>): Include.
22922         (errno): Declare if not defined.
22923         (addext): Work correctly when pathconf returns -1 and leaves
22924         errno alone because there is no limit.  Also, work even if
22925         pathconf returns a value greater than SIZE_MAX.
22926
22927 2001-08-12  Jim Meyering  <meyering@lucent.com>
22928
22929         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
22930         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
22931         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
22932         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
22933         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
22934         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
22935         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
22936         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
22937         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
22938         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
22939         utime.m4, utimes.m4, xstrtoumax.m4:
22940         Quote the first argument in each use of AC_DEFUN.
22941
22942 2001-08-12  Jim Meyering  <meyering@lucent.com>
22943
22944         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
22945         Simply `return getcwd (NULL, 0);'.
22946         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
22947         Use 1300 as initial value for length, not PATH_MAX.
22948
22949         * lib/pathmax.h: Clean up cpp syntax.
22950
22951 2001-08-12  Jim Meyering  <meyering@lucent.com>
22952
22953         * lib/gettimeofday.c: New file.
22954         * lib/gtod.h: New file.
22955         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
22956
22957 2001-08-05  Jim Meyering  <meyering@lucent.com>
22958
22959         * m4/jm-macros.m4: Require autoconf-2.52.
22960
22961 2001-08-04  Jim Meyering  <meyering@lucent.com>
22962
22963         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
22964         stmt, to get in sync with glibc.
22965
22966 2001-08-03  Paul Eggert  <eggert@twinsun.com>
22967
22968         The following changes are from gettext 0.10.39 as maintained by
22969         Bruno Haible.
22970
22971         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
22972         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
22973         with inverted sense.  All uses changed.
22974
22975         * lib/mbswidth.c: Don't include <limits.h>.
22976         Include <stdlib.h> and <string.h> unconditionally.
22977         (iswcntrl, mbsinit, ISCNTRL): New macros.
22978         (mbsnwidth): Use K&R style function declarations.
22979         Don't bother checking for MB_LEN_MAX == 1, since the compiler
22980         can optimize it when MB_CUR_MAX == 1.
22981         The width of control characters is zero, not 1.
22982
22983 2001-08-03  Paul Eggert  <eggert@twinsun.com>
22984
22985         The following changes are from gettext 0.10.39 as maintained by
22986         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
22987
22988         * m4/codeset.m4: Upgrade to serial AM1.
22989         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
22990         all uses changed.  Quote first arg of AC_DEFUN.
22991         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
22992
22993         * m4/iconv.m4: Upgrade to serial AM2.
22994         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
22995         Add --with-libconv-prefix.
22996         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
22997         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
22998         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
22999         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
23000         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
23001
23002         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
23003         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
23004         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
23005         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
23006         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
23007         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
23008         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
23009         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
23010         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
23011
23012         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
23013         string.h any more.
23014
23015         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
23016         not the default value.
23017
23018         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
23019         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
23020         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
23021         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
23022         Also check for iswcntrl, used for wcwidth fallback.
23023         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
23024         to Autoconf 2.13.
23025
23026 2001-08-03  Jim Meyering  <meyering@lucent.com>
23027
23028         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
23029         as it was in the original.  Reported by Paul Eggert.
23030
23031 2001-07-16  Jim Meyering  <meyering@lucent.com>
23032
23033         * m4/gettimeofday.m4: New file.
23034         Prompted by a report from Bernhard Baehr.
23035
23036 2001-07-15  Jim Meyering  <meyering@lucent.com>
23037
23038         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
23039         stuff. Now it's in ../Makefile.cfg.
23040
23041 2001-07-15  Jim Meyering  <meyering@lucent.com>
23042
23043         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
23044         (BUILT_SOURCES): Add unlocked-io.h.
23045         (io_functions): Define.
23046         (unlocked-io.h): New rule.
23047         (DISTCLEANFILES): Add unlocked-io.h.
23048         (all-local): Depend on unlocked-io.h, to ensure it is created.
23049
23050         * lib/unlocked-io.hin: New file
23051
23052         * lib/regex.c: Update from glibc.
23053
23054 2001-07-05  Jim Meyering  <meyering@lucent.com>
23055
23056         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
23057         recommendation.
23058         (libfetish_a_SOURCES): Put all .h files here instead.
23059         Remove a thus-exposed (better checks in automake) duplicate and
23060         two unnecessary .h files.
23061
23062 2001-07-04  Jim Meyering  <meyering@lucent.com>
23063
23064         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
23065         that generates jm-glibc-io.m4 so that it doesn't trigger any make
23066         distcheck failure.
23067
23068 2001-07-02  Jim Meyering  <meyering@lucent.com>
23069
23070         The following changes were prompted by suggestions from Bruno Haible.
23071
23072         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
23073         is now generated.
23074         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
23075         definition of EXTRA_DIST.
23076         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
23077         ensure that the generated file is created/updated whenever the list
23078         of $(unlocked_functions) is changed.
23079         (jm-glibc-io.m4): New rule.
23080         (unlocked-io.h): New rule -- currently unused.
23081
23082 2001-06-24  Jim Meyering  <meyering@lucent.com>
23083
23084         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
23085         unmatched right bracket, rather than kludging it with an extra,
23086         falsely-matching quote in a comment.  Patch by Akim Demaille.
23087
23088 2001-06-11  Jim Meyering  <meyering@lucent.com>
23089
23090         * lib/regex.c: Update from GNU libc.
23091
23092 2001-05-27  Jim Meyering  <meyering@lucent.com>
23093
23094         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
23095         Check for ut_type in struct utmp.
23096
23097 2001-05-27  Jim Meyering  <meyering@lucent.com>
23098
23099         * lib/readutmp.h (UT_TYPE): Define.
23100
23101 2001-05-24  Jim Meyering  <meyering@lucent.com>
23102
23103         * lib/argmatch.c: Include "quote.h".
23104         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
23105         quote function.  Reported by Göran Uddeborg.
23106
23107 2001-05-22  Jim Meyering  <meyering@lucent.com>
23108
23109         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
23110         now that we use the package-supplied version unconditionally.
23111         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
23112
23113 2001-05-21  Jim Meyering  <meyering@lucent.com>
23114
23115         * m4/regex.m4: Change a couple backticks to single quotes to avoid
23116         shell syntax errors.
23117
23118 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
23119
23120         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
23121
23122 2001-05-20  Paul Eggert  <eggert@twinsun.com>
23123
23124         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
23125         Don't bother to check library strftime, since
23126         we'll be using our own my_strftime function anyway.
23127         Define my_strftime instead of strftime.
23128
23129 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
23130
23131         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
23132         which is not yet declared.
23133
23134 2001-05-15  Jim Meyering  <meyering@lucent.com>
23135
23136         * m4/regex.m4: Use proper quoting so brackets appear in the test
23137         program.
23138         Reported by, and with help from, Bruno Haible.
23139
23140 2001-05-13  Jim Meyering  <meyering@lucent.com>
23141
23142         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
23143         undefined.
23144
23145 2001-05-11  Paul Eggert  <eggert@twinsun.com>
23146
23147         dirname code cleanup.  base_name now behaves more compatibly
23148         with POSIX basename when given file names that have trailing
23149         slashes, and similarly for dir_name.  Add new primitives
23150         base_len and dir_len.  Put the directory-name-related decls
23151         into dirname.h.
23152
23153         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
23154         * lib/backupfile.c (base_name): Likewise.
23155         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
23156         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
23157         * lib/makepath.c (strip_trailing_slashes): Likewise.
23158         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
23159         ISSLASH): Likewise.
23160         * lib/rename.c (strip_trailing_slashes): Likewise.
23161         * lib/same.c (base_name): Likewise.
23162         * lib/stripslash.c (ISSLASH): Likewise.
23163
23164         * lib/addext.c: Include <dirname.h> after size_t is defined.
23165         * lib/backupfile.c: Likewise.
23166
23167         * lib/addext.c (addext): Use base_len to trim redundant
23168         trailing slashes instead of doing it ourselves.
23169         But do not trim the last slash if it is not redundant.
23170
23171         * lib/backupfile.c (find_backup_file_name,
23172         max_backup_version): Use base_len instead of rolling it ourselves.
23173         Handle the case of "" and (on DOS) "C:" correctly.
23174
23175         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
23176         needed. Include <string.h>, <dirname.h>.
23177         (base_name): Allow file names ending in slashes, other than names
23178         that are all slashes.  In this case, return the basename followed
23179         by the slashes.  This is more general, and can be used in places
23180         where the original base_name purposely had an assertion failure.
23181         (base_len): New function.
23182
23183         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
23184         Do not include <assert.h>; no longer needed.
23185         Include xalloc.h.
23186         (memrchr): Remove decl.
23187         (dir_name_r): Remove.
23188         (dir_len): Renamed from dirlen.  All callers changed.
23189         Rewrite in terms of base_name, for simplicity and consistency.
23190         (dir_name): Never return NULL.  All callers changed.
23191         Do not include <stdlib.h> in test program; no longer needed.
23192         return 0; is fine for test program.
23193
23194         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
23195         New macros.
23196         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
23197
23198         * lib/path-concat.c (path_concat): Use base_len to compute
23199         base length, not strlen; this means we cannot rely on memcpy
23200         to null-terminate.
23201
23202         * lib/same.c (STREQ): Remove.
23203         (same_name): Handle the case where the basename ends in trailing '/'.
23204
23205         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
23206         a slash was stripped.  Do not strip the last slash after a
23207         file system prefix.
23208
23209 2001-05-11  Paul Eggert  <eggert@twinsun.com>
23210
23211         * lib/Makefile.am (libfetish_a_SOURCES):
23212         Add strftime.c, since we now compile it on all hosts.
23213
23214         * lib/strftime.c (my_strftime):
23215         Define to nstrftime if emacs, but only if my_strftime is not defined.
23216         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
23217         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
23218         Add one more extra argument: a nanoseconds value.
23219         All uses changed.
23220         (ns): New macro.
23221         (my_strftime function): Add %N format.
23222         (emacs_strftimeu): Renamed from emacs_strftime,
23223         with extra ut argument.
23224
23225 2001-05-09  Paul Eggert  <eggert@twinsun.com>
23226
23227         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
23228
23229 2001-04-21  Jim Meyering  <meyering@lucent.com>
23230
23231         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
23232         doesn't interfere.
23233
23234 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
23235
23236         * m4/ftruncate.m4: Check for chsize.
23237         Link with ftruncate.o unconditionally if ftruncate is missing.
23238         This was required when cross-compiling to i586-mingw32msvc.
23239
23240 2001-04-08  Jim Meyering  <meyering@lucent.com>
23241
23242         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
23243         recomputed; that's necessary when the offset spans a DST transition.
23244         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
23245
23246 2001-04-02  Jim Meyering  <meyering@lucent.com>
23247
23248         * lib/regex.h, regex.c: Update from GNU libc.
23249
23250 2001-03-24  Jim Meyering  <meyering@lucent.com>
23251
23252         * m4/jm-macros.m4: Require autoconf-2.49d.
23253
23254 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
23255
23256         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
23257
23258 2001-03-19  Paul Eggert  <eggert@twinsun.com>
23259
23260         * lib/version-etc.c (version_etc_copyright): Update to 2001.
23261
23262 2001-03-17  Jim Meyering  <meyering@lucent.com>
23263
23264         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
23265         now that the version in autoconf is equivalent.
23266         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
23267
23268         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
23269         Suggestion from Akim Demaille.
23270
23271         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
23272         (jm_PREREQ_TEMPNAME): New function.
23273
23274 2001-03-16  Paul Eggert  <eggert@twinsun.com>
23275
23276         * lib/tempname.c (uint64_t): Define to uintmax_t if
23277         not defined, and if UINT64_MAX is not defined.
23278         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
23279         Reported by John David Anglin.
23280
23281 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
23282
23283         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
23284         resolve alias if codeset is empty.
23285         * lib/config.charset (BeOS): Use wildcard syntax.
23286
23287 2001-03-13  Jim Meyering  <meyering@lucent.com>
23288
23289         * lib/path-concat.c (path_concat)
23290         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
23291         concatenating e.g., `C:' and `foo'.
23292         From Bruno Haible.
23293
23294 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
23295
23296         * lib/localcharset.c (locale_charset): Don't use
23297         setlocale(LC_CTYPE,NULL). Don't return NULL.
23298         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
23299
23300 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
23301
23302         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
23303         support for DOS/DJGPP.
23304
23305 2001-03-01  Paul Eggert  <eggert@twinsun.com>
23306
23307         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
23308         lacks mkstemp.  Compile our own tempname.c if we compile our own
23309         mkstemp.c, as mkstemp relies on tempname.
23310
23311 2001-03-01  Jim Meyering  <meyering@lucent.com>
23312
23313         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
23314         AH_VERBATIM really does output its argument verbatim.
23315
23316 2001-02-28  Paul Eggert  <eggert@twinsun.com>
23317
23318         * lib/Makefile.am (libfetish_a_SOURCES):
23319         Add dup-safer.c, fopen-safer.c.
23320         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
23321
23322         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
23323         * lib/unistd-safer.h: New files.
23324
23325 2001-02-25  Paul Eggert  <eggert@twinsun.com>
23326
23327         The mkstemp replacement is taken from glibc 2.2.2, with some
23328         portability fixes for use outside glibc, as follows:
23329
23330         * lib/tempname.c (struct_stat64): New macro.
23331         (direxists, __gen_tempname): Use it.
23332         This avoids a portability problem with Solaris 8.
23333
23334         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
23335         (<stddef.h>, <stdint.h>, <string.h>):
23336         Include only if STDC_HEADERS || _LIBC.
23337         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
23338         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
23339         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
23340         (__set_errno): Define this macro if <errno.h> doesn't.
23341         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
23342         Define these macros if <stdio.h> doesn't.
23343         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
23344         Define these macros if <sys/stat.h>
23345         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
23346         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
23347         __xstat64): Define if not _LIBC.
23348         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
23349         (__gen_tempname): Invoke gettimeofday only if
23350         HAVE_GETTIMEOFDAY || _LIBC;
23351         otherwise, fall back on plain "time".
23352         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
23353
23354         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
23355
23356         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
23357
23358 2001-02-18  Paul Eggert  <eggert@twinsun.com>
23359
23360         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
23361
23362 2001-02-17  Paul Eggert  <eggert@twinsun.com>
23363
23364         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
23365         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
23366         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
23367         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
23368
23369 2001-02-17  Paul Eggert  <eggert@twinsun.com>
23370
23371         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
23372         Remove workaround macros for hosts that have mbrtowc but not
23373         mbstate_t, as we now insist on proper declarations for both
23374         before using mbrtowc.
23375
23376 2001-02-17  Jim Meyering  <meyering@lucent.com>
23377
23378         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
23379         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
23380         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
23381         UnixWare 7.1.1.
23382
23383         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
23384         rather than AC_CACHE_VAL.
23385
23386 2001-02-17  Jim Meyering  <meyering@lucent.com>
23387
23388         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
23389         around included file name.
23390
23391         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
23392
23393         * lib/strftime.c: Update from GNU libc (the only changes were to
23394         comments).
23395
23396 2001-02-17  Jim Meyering  <meyering@lucent.com>
23397
23398         * lib/regex.c: Update from libc.
23399
23400 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
23401
23402         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
23403         clash.
23404
23405 2001-02-16  Paul Eggert  <eggert@twinsun.com>
23406
23407         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
23408         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
23409         Reported by Mark Hounschell via Paul Eggert.
23410
23411 2001-02-07  Jim Meyering  <meyering@lucent.com>
23412
23413         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
23414
23415 2001-02-05  Jim Meyering  <meyering@lucent.com>
23416
23417         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
23418         it includes the patch required for `large file' support with at least
23419         HP-UX's 10.20 /bin/cc.
23420
23421 2001-02-03  Jim Meyering  <meyering@lucent.com>
23422
23423         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
23424         AS_IF, now that it works once again (mysteriously).
23425         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
23426
23427 2001-01-30  Jim Meyering  <meyering@lucent.com>
23428
23429         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
23430         * m4/chown.m4: Rename conftestchown to conftest.chown.
23431         * m4/rename.m4: s/conftestdir/conftest.d1/ and
23432         s/conftestdir2/conftest.d2/.
23433         * m4/utimes.m4: s/conftestdata/conftest.data/
23434         Inspired by Pavel Roskin's change in autoconf.
23435
23436 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
23437
23438         * lib/config.charset: Update for FreeBSD 4.2.
23439
23440 2001-01-27  Jim Meyering  <meyering@lucent.com>
23441
23442         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
23443         a use of AS_IF.
23444         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
23445
23446 2001-01-26  Jim Meyering  <meyering@lucent.com>
23447
23448         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
23449         quotearg.c includes it.
23450
23451 2001-01-26  Jim Meyering  <meyering@lucent.com>
23452
23453         * lib/quotearg.c: Include stddef.h.
23454         * lib/quote.c: Include stddef.h.
23455         Reported by Axel Kittenberger.
23456
23457         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
23458         line in double quotes so that it evokes a better diagnostic.
23459         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
23460         Reported by Axel Kittenberger.
23461
23462 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
23463
23464         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
23465         as if it was a `charset'.
23466
23467 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
23468
23469         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
23470         has const.
23471
23472 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
23473
23474         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
23475         to avoid a warning.  Add back 'const' to inptr.
23476
23477 2001-01-20  Jim Meyering  <meyering@lucent.com>
23478
23479         Be sure that headers are checked before used in code compiled
23480         for the type checks.
23481         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
23482         In place of that, invoke jm_CHECK_ALL_TYPES.
23483         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
23484         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
23485         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
23486         The check for ssize_t was mistakenly run before the test for unistd.h.
23487
23488         The configure-time check for stdbool.h was missing.
23489         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
23490         (jm_PREREQ_HASH): New function.
23491
23492 2001-01-17  Jim Meyering  <meyering@lucent.com>
23493
23494         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
23495         for autoconf-2.49c.
23496         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
23497
23498 2001-01-16  Jim Meyering  <meyering@lucent.com>
23499
23500         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
23501         From Bruno Haible.
23502
23503 2001-01-14  Jim Meyering  <meyering@lucent.com>
23504
23505         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
23506         foo and bar.  Create conftestdir/ in the script, not in the C code.
23507         Remove directories in the script, not in the C code.
23508         Remove conftestdir{,2} before trying to create the directory.
23509         Make the entire configure script fail if the mkdir fails.
23510
23511 2001-01-14  Jim Meyering  <meyering@lucent.com>
23512
23513         * lib/rename.c: New file.  From Volker Borchert.
23514         Include stdlib.h, string.h or strings.h, and xalloc.h.
23515         Use strip_trailing_slashes rather than open-coding it.
23516
23517 2001-01-03  Paul Eggert  <eggert@twinsun.com>
23518
23519         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
23520
23521 2001-01-03  Jim Meyering  <meyering@lucent.com>
23522
23523         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
23524         of local `inptr' to avoid warning with some system declarations of
23525         iconv.
23526
23527 2001-01-02  Volker Borchert  <bt@teknon.de>
23528
23529         * m4/rename.m4: New file.
23530         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
23531
23532 2001-01-01  Jim Meyering  <meyering@lucent.com>
23533
23534         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
23535         even on systems with utmpx.h.  It's necessary for the declaration of
23536         utmp's ut_user member.  Reported by Andreas Jaeger.
23537
23538         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
23539         available. They are required for the declarations of getgrgid and
23540         getpwuid resp.
23541         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
23542         Reported by Andreas Jaeger.
23543
23544 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
23545
23546         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
23547         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
23548         so `make install' also works in VPATH builds.
23549
23550 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
23551
23552         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
23553         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
23554         can be used in subdirectories.
23555
23556 2000-12-29  Paul Eggert  <eggert@twinsun.com>
23557
23558         * lib/modechange.c: Do not assume that mode_t uses the
23559         traditional octal encoding.  E.g. "chmod 1 FOO" should set
23560         the other-execute bit of FOO even if S_IXOTH != 1.
23561
23562         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
23563         WOTH, XOTH, ALLM): New macros.
23564         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
23565          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
23566         Use them.
23567         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
23568         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
23569         (mode_compile):
23570         No need to use uintmax_t; unsigned long is long enough.
23571         Don't bother to get suffix since we don't use it.
23572
23573 2000-12-26  Jim Meyering  <meyering@lucent.com>
23574
23575         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
23576         better with autoheader.
23577
23578 2000-12-24  Jim Meyering  <meyering@lucent.com>
23579
23580         * lib/hash.c (is_prime): Return explicit boolean values.
23581         (hash_get_first): Return NULL to appease Irix5.6's 89.
23582         Reported by Nelson Beebe.
23583
23584 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
23585
23586         * lib/localcharset.c (locale_charset): Add support for Win32.
23587
23588 2000-12-18  Paul Eggert  <eggert@twinsun.com>
23589
23590         * lib/physmem.h, lib/physmem.c: New files.
23591
23592         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
23593         (noinst_HEADERS): Add physmem.h.
23594
23595         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
23596         't' for compatibility with Solaris 8 sort.
23597
23598 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
23599
23600         * lib/config.charset: Add support for BeOS.
23601
23602 2000-12-17  Jim Meyering  <meyering@lucent.com>
23603
23604         * m4/dos.m4 (jm_AC_DOS): New file and macro.
23605         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
23606
23607 2000-12-16  Jim Meyering  <meyering@lucent.com>
23608
23609         This bug had a serious impact on chown: `chown N:M FILE' (for integer
23610         N and M) would have treated it like `chown N:N FILE'.
23611
23612         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
23613
23614 2000-12-16  Jim Meyering  <meyering@lucent.com>
23615
23616         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
23617         SHELLS_FILE to a file name that's useful on djgpp systems.
23618         Include stdlib.h.
23619         (ADDITIONAL_DEFAULT_SHELLS): Define.
23620         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
23621         Based mostly on a patch from Prashant TR.
23622
23623 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
23624
23625         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
23626         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
23627         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
23628
23629 2000-12-08  Andreas Schwab  <schwab@suse.de>
23630
23631         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
23632         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
23633
23634 2000-12-07  Jim Meyering  <meyering@lucent.com>
23635
23636         * lib/stripslash.c (ISSLASH): Define.
23637         (strip_trailing_slashes): Use ISSLASH rather than comparing against
23638         `/'.
23639         From Prashant TR.
23640
23641         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
23642         (dir_name_r): Declare this function as static.
23643         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
23644         manifest itself on a name containing a mix of slashes and
23645         backslashes.
23646         Make this function work with names starting with a DOS-style
23647         drive letter and colon prefix.
23648         (dir_name): Append `.' if necessary.
23649         Based mostly on patches from Prashant TR and Eli Zaretskii.
23650
23651         * lib/dirname.h (dir_name_r): Remove prototype.
23652
23653 2000-12-06  Paul Eggert  <eggert@twinsun.com>
23654
23655         * m4/off_t-format.m4: Remove this file.
23656         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
23657
23658 2000-12-06  Jim Meyering  <meyering@lucent.com>
23659
23660         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
23661         replacement strtoull, we may well need the replacement strtoul, too.
23662         Check for declarations of strtoul and strtoull.
23663         Check for strtol.  Mainly as a cue to cause automake to include
23664         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
23665         Check for limits.h -- strtol.c needs it.
23666
23667 2000-12-05  Jim Meyering  <meyering@lucent.com>
23668
23669         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
23670
23671 2000-12-04  Jim Meyering  <meyering@lucent.com>
23672
23673         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
23674         Also include memory.h, stdlib.h, unistd.h if appropriate.
23675         Reported by Andreas Jaeger (conflicting declaration of malloc).
23676
23677 2000-12-02  Jim Meyering  <meyering@lucent.com>
23678
23679         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
23680         * m4/jm-macros.m4 (jm_MACROS): require it.
23681
23682 2000-12-02  Jim Meyering  <meyering@lucent.com>
23683
23684         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
23685
23686 2000-12-01  Paul Eggert  <eggert@twinsun.com>
23687
23688         * lib/memrchr.c: Include <config.h> before any system include file.
23689
23690 2000-11-30  Jim Meyering  <meyering@lucent.com>
23691
23692         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
23693
23694 2000-11-30  Jim Meyering  <meyering@lucent.com>
23695
23696         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
23697
23698 2000-11-29  Paul Eggert  <eggert@twinsun.com>
23699
23700         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
23701
23702 2000-11-26  Jim Meyering  <meyering@lucent.com>
23703
23704         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
23705
23706 2000-11-22  Paul Eggert  <eggert@twinsun.com>
23707
23708         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
23709         size of (size_t) -1; it's not portable.
23710
23711 2000-11-17  Jim Meyering  <meyering@lucent.com>
23712
23713         * lib/strstr.c: Update from GNU libc.
23714
23715 2000-11-17  Akim Demaille  <akim@epita.fr>
23716
23717         * lib/obstack.h: Formatting changes.
23718         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
23719         prevent type checking.
23720         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
23721         cast the value to (void *): assigning a `foo *' to a `void *'
23722         variable is valid.
23723         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
23724
23725 2000-11-16  Jim Meyering  <meyering@lucent.com>
23726
23727         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
23728
23729 2000-11-11  Jim Meyering  <meyering@lucent.com>
23730
23731         * lib/error.c: Add a couple #includes, merging from GNU libc version.
23732
23733 2000-11-10  Jim Meyering  <meyering@lucent.com>
23734
23735         * lib/obstack.h: Update from GNU libc.
23736         * lib/obstack.c: Likewise.
23737
23738 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
23739
23740         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
23741
23742 2000-11-06  Paul Eggert  <eggert@twinsun.com>
23743
23744         * lib/getusershell.c (setusershell): Use rewind rather than
23745         fseek/fseeko, to avoid configuration hassles with fseeko.
23746         Don't bother opening SHELLS_FILE if shellstream is NULL;
23747         it's not necessary.
23748
23749 2000-11-05  Jim Meyering  <meyering@lucent.com>
23750
23751         * lib/makepath.h (make_dir): Declare.
23752         * lib/makepath.c (make_dir): Remove `static' attribute.
23753         Tweak a comment.
23754
23755 2000-11-04  Jim Meyering  <meyering@lucent.com>
23756
23757         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
23758
23759 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
23760
23761         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
23762         last one in a bucket, advance to the next bucket.
23763
23764 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
23765
23766         * lib/fnmatch.c: Do not comment out all the code if we are using
23767         the GNU C library, because in some cases we are replacing buggy
23768         code in the GNU C library itself.
23769
23770 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
23771
23772         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
23773         (regex_compile): Catch bogus \(\1\).
23774
23775 2000-10-30  Paul Eggert  <eggert@twinsun.com>
23776
23777         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
23778         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
23779         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
23780
23781 2000-10-30  Paul Eggert  <eggert@twinsun.com>
23782
23783         * lib/error.h, getline.h, modechange.h:
23784         Remove "2000" from Copyright line, as the file hasn't been
23785         changed this year other than in the copyright notice.
23786
23787         * lib/xalloc.h: Add "2000" to Copyright line, as this file
23788         was changed this year.
23789
23790 2000-10-29  Jim Meyering  <meyering@lucent.com>
23791
23792         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
23793         renaming.
23794         * m4/ls-mntd-fs.m4: Likewise
23795
23796 2000-10-29  Jim Meyering  <meyering@lucent.com>
23797
23798         * lib/xstat.in: Fix grammar in comment.
23799
23800 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
23801
23802         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
23803         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
23804         doesn't define __restrict_arr.
23805
23806 2000-10-28  Jim Meyering  <meyering@lucent.com>
23807
23808         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
23809         (jm_PREREQ_MEMCHR): New function.
23810
23811 2000-10-28  Jim Meyering  <meyering@lucent.com>
23812
23813         * lib/memchr.c: Update from libc.
23814         Adjust for portability:
23815         [HAVE_STDLIB_H]: Include stdlib.h.
23816         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
23817         Undef __memchr, too.
23818         [!weak_alias]: Define __memchr to memchr.
23819
23820         * lib/regex.c: Update from libc.
23821         * lib/regex.h: Likewise.
23822         * lib/getopt1.c: Likewise.
23823         * lib/memcmp.c: Likewise.
23824
23825         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
23826         Avoid using fseek, when possible -- it's broken by design.
23827         Patch by Ulrich Drepper.
23828
23829 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
23830
23831         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
23832         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
23833         Giving in to popular pressure to shut up the compiler with casts.
23834
23835 2000-10-26  Jim Meyering  <meyering@lucent.com>
23836
23837         * lib/strftime.c: Update from libc.
23838
23839 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
23840
23841         * regex.c: More `unsigned char' -> `re_char' changes.
23842         Also change several `int' into `re_wchar_t'.
23843         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
23844         (PUSH_FAILURE_POINTER): Don't cast any more.
23845         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
23846         We want GCC to complain, since this piece of code makes
23847         re_match non-reentrant, which *should* be fixed.
23848         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
23849         (EXTEND_BUFFER): Use RETALLOC.
23850         (SET_LIST_BIT): Don't cast.
23851         (re_wchar_t): New type.
23852         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
23853         that those two functions will always properly return.
23854         (IMMEDIATE_QUIT_CHECK): Cast to void.
23855         (analyse_first): Use recursion rather than an explicit stack.
23856         (re_compile_fastmap): Can't fail anymore.
23857         (re_search_2): Don't check re_compile_fastmap for failure.
23858         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
23859         Now also sets the new value (passed in a new argument).
23860         (re_match_2_internal): Use it.
23861         Also, use a new var `reg' of type size_t when looping through regs
23862         rather than reuse the inappropriate `mcnt'.
23863
23864 2000-10-25  Jim Meyering  <meyering@lucent.com>
23865
23866         * lib/obstack.c: Update from libc.
23867
23868 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
23869
23870         * regex.c (regex_compile): Change the way of handling a range from
23871         a char less than 256 to a char not less than 256.
23872
23873 2000-10-24  Andrew Innes  <andrewi@gnu.org>
23874
23875         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
23876         NT-Emacs only.
23877         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
23878         so that re_search functions only quit when callers expect them to.
23879
23880 2000-10-23  Jim Meyering  <meyering@lucent.com>
23881
23882         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
23883         wrong.  That set_locale call must not have any side effects.
23884         From Paul Eggert.
23885
23886 2000-10-22  Jim Meyering  <meyering@lucent.com>
23887
23888         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
23889         [CYCLIC]: Remove now-unused definition.
23890
23891         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
23892         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
23893         Suggestion from Ulrich Drepper.
23894
23895 2000-10-21  Jim Meyering  <meyering@lucent.com>
23896
23897         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
23898         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
23899         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
23900
23901 2000-10-21  Jim Meyering  <meyering@lucent.com>
23902
23903         * lib/dirname.c (memrchr): Declare if necessary.
23904         (dir_name): Remove the restriction that there be no
23905         trailing slashes.  Now, this code skips past them, effectively
23906         ignoring them.
23907         [TEST_DIRNAME] (main): New unit tests.
23908
23909         * lib/memrchr.c: New file from GNU libc.
23910         Undef __memrchr, too.
23911         [!weak_alias]: Define __memrchr to memrchr.
23912         Guard weak_alias use with `#ifdef weak_alias'.
23913
23914 2000-10-21  Jim Meyering  <meyering@lucent.com>
23915
23916         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
23917         (dir_name): Use dir_name_r.
23918         * lib/dirname.h (dir_name_r): Declare it.
23919
23920 2000-10-17  Jim Meyering  <meyering@lucent.com>
23921
23922         * lib/quote.h (PARAMS): Define and use.
23923         Reported by Akim Demaille.
23924
23925         * lib/getopt.c: Update from libc.
23926
23927 2000-10-16  Jim Meyering  <meyering@lucent.com>
23928
23929         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
23930         setlocale.
23931         From Jan Fedak.
23932
23933 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
23934
23935         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
23936
23937 2000-09-25  Jim Meyering  <meyering@lucent.com>
23938
23939         * lib/md5.h (rol): Define (from GnuPG).
23940
23941         * lib/sha.c: Give credit (GnuPG) where due.
23942         (M): Use rol rather than open-coding it.
23943         Add a FIXME comment.
23944
23945 2000-09-21  Jim Meyering  <meyering@lucent.com>
23946
23947         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
23948         Reported by Michael Stone.
23949
23950 2000-09-20  Jim Meyering  <meyering@lucent.com>
23951
23952         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
23953         (noinst_HEADERS): Add sha.h.
23954         Based on code from Scott G. Miller and from GnuPG.
23955
23956 2000-09-18  Jim Meyering  <meyering@lucent.com>
23957
23958         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
23959         LIBS. Otherwise, everyone ends up linking with -lelf for some
23960         configurations.
23961         Reported by Mike Stone.
23962
23963 2000-09-15  Jim Meyering  <meyering@lucent.com>
23964
23965         * lib/regex.c: Update from libc.
23966
23967 2000-09-10  Jim Meyering  <meyering@lucent.com>
23968
23969         * lib/getopt.c (_getopt_internal): Update from glibc.
23970
23971 2000-09-09  Jim Meyering  <meyering@lucent.com>
23972
23973         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
23974         think it should be used as a general replacement for isascii.
23975         * lib/fnmatch.c: Likewise.
23976         * lib/mbswidth.c: Likewise
23977         * lib/regex.c: Likewise.
23978
23979         Don't use atoi.
23980         * lib/userspec.c: Include sys/param.h and limits.h.
23981         Include xstrtol.h.
23982         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
23983         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
23984         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
23985         UID, GID.  Check range.
23986
23987 2000-09-06  Jim Meyering  <meyering@lucent.com>
23988
23989         * lib/getopt.c (_getopt_internal): Update from glibc.
23990
23991 2000-08-30  Jim Meyering  <meyering@lucent.com>
23992
23993         * lib/strftime.c: Merge in changes from GNU libc.
23994
23995 2000-08-26  Jim Meyering  <meyering@lucent.com>
23996
23997         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
23998         * m4/fpending.m4: New file.
23999
24000 2000-08-26  Jim Meyering  <meyering@lucent.com>
24001
24002         * lib/closeout.c: Include "__fpending.h".
24003         (close_stdout_status): Return right away if there's nothing to flush.
24004
24005         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
24006         * lib/__fpending.c: New file.
24007         * lib/__fpending.h: New file.
24008
24009 2000-08-20  Jim Meyering  <meyering@lucent.com>
24010
24011         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
24012         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
24013         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
24014
24015 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
24016
24017         Improve fileutils installation on systems where running
24018         programs (like install) can't be unlinked.
24019         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
24020         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
24021
24022 2000-08-07  Paul Eggert  <eggert@twinsun.com>
24023
24024         Standardize on "memory exhausted" instead of "Memory exhausted"
24025         or "virtual memory exhausted".
24026         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
24027         "virtual memory exhausted".
24028         * lib/same.c (same_name): Invoke xalloc_die instead of printing
24029         our own message.
24030         * lib/userspec.c (parse_user_spec): Likewise.
24031         * lib/bumpalloc.h: comment fix
24032         * lib/same.c, userspec.c: Include xalloc.h.
24033
24034         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
24035         not char *const and pointing to a constant array.
24036         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
24037         (xrealloc): Comment fix.
24038
24039         * lib/userspec.c (parse_user_spec):
24040         Don't translate a message until just before returning,
24041         to avoid unnecessary translation.
24042
24043 2000-08-07  Jim Meyering  <meyering@lucent.com>
24044
24045         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
24046         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
24047         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
24048         getgroups.c, gethostname.c, getopt.h, group-member.c,
24049         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
24050         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
24051         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
24052         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
24053         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
24054         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
24055         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
24056         yesno.c: Back out Copyright date changes for each file with no change
24057         this year.  This eases coordination with other programs using the same
24058         source code modules.  From Paul Eggert.
24059
24060 2000-08-06  Paul Eggert  <eggert@twinsun.com>
24061
24062         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
24063         not char, for compatibility with glibc 2.1.3 strftime.c.
24064
24065 2000-08-03  Greg McGary  <greg@mcgary.org>
24066
24067         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
24068         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
24069         (EXTEND_BUFFER): Use them.
24070
24071 2000-08-01  Jim Meyering  <meyering@lucent.com>
24072
24073         * lib/dirname.c (ISSLASH): Define.
24074         (BACKSLASH_IS_PATH_SEPARATOR): Define.
24075         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
24076         both `\' and `/' may be use as path separators.
24077         Based on a patch from Prashant TR.
24078
24079 2000-07-31  Paul Eggert  <eggert@twinsun.com>
24080
24081         * lib/quotearg.c (quotearg_n_options): Don't make the initial
24082         slot vector a constant, since it might get modified.
24083
24084 2000-07-31  Jim Meyering  <meyering@lucent.com>
24085
24086         * lib/xmalloc.c: Use `virtual memory exhausted', not
24087         `Memory exhausted'.
24088         * lib/obstack.c (print_and_abort): Likewise.
24089
24090 2000-07-30  Paul Eggert  <eggert@twinsun.com>
24091
24092         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
24093         buffer, so that the caller can always quote one small
24094         component of a "memory exhausted" message in slot 0.
24095         From a suggestion by Jim Meyering.
24096
24097 2000-07-30  Jim Meyering  <meyering@lucent.com>
24098
24099         * lib/makepath.c (make_path): Quote the other instance, too.
24100
24101         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
24102         (STATIC_BUF_SIZE): Define.
24103         (quotearg_n_options): Use only statically allocated storage when
24104         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
24105         than STATIC_BUF_SIZE.
24106
24107 2000-07-29  Jim Meyering  <meyering@lucent.com>
24108
24109         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
24110         * lib/dirname.c (dir_name): Likewise.
24111
24112         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
24113         `/'.
24114
24115         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
24116         (dir_name): Assert that there are no trailing slashes.
24117
24118 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
24119
24120         * lib/mbswidth.h (mbswidth): Add a flags argument.
24121         (mbswidth): New declaration.
24122         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
24123         * lib/mbswidth.c (mbswidth): Add a flags argument.
24124         (mbsnwidth): New function.
24125
24126 2000-07-24  Jim Meyering  <meyering@lucent.com>
24127
24128         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
24129
24130 2000-07-23  Paul Eggert  <eggert@twinsun.com>
24131
24132         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
24133
24134 2000-07-23  Paul Eggert  <eggert@twinsun.com>
24135
24136         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
24137         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
24138         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
24139         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
24140         invoke multibyte primitives.
24141
24142 2000-07-23  Paul Eggert  <eggert@twinsun.com>
24143
24144         * lib/quotearg.c:
24145         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
24146         so that mbstate_t is always defined.
24147
24148         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
24149         be 1 in at least one GCC installation, and this configuration
24150         error is likely to be common.  Ignoring MB_LEN_MAX hurts
24151         performance on hosts that have mbrtowc but have only unibyte
24152         locales, but I assume these hosts are rare.
24153
24154 2000-07-23  Paul Eggert  <eggert@twinsun.com>
24155
24156         * lib/mbswidth.c (_XOPEN_SOURCE):
24157         Don't define; this causes problems on Solaris 7.
24158         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
24159
24160 2000-07-23  Jim Meyering  <meyering@lucent.com>
24161
24162         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
24163         too: getgrgid, getpwuid, getuid.
24164
24165 2000-07-23  Jim Meyering  <meyering@lucent.com>
24166
24167         * lib/basename.c (base_name): Add an assertion.
24168
24169 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
24170
24171         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
24172         shadow its mbsinit function.
24173
24174 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
24175
24176         * lib/mbswidth.h: New file.
24177         * lib/mbswidth.c: New file.
24178         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
24179         (noinst_HEADERS): Add mbswidth.h.
24180
24181 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
24182
24183         * lib/config.charset: Add support for FreeBSD. Improve support for
24184         HP-UX and IRIX 6.
24185
24186 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
24187
24188         * m4/mbswidth.m4: New file.
24189         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
24190
24191 2000-07-15  Jim Meyering  <meyering@lucent.com>
24192
24193         * lib/makepath.c: Include quote.h.
24194         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
24195         corresponding argument in a `quote (...)' call.
24196         Give better diagnostics.
24197
24198         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
24199         (noinst_HEADERS): Add quote.h.
24200
24201         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
24202         from tar's src/misc.c.
24203         * lib/quote.h: New file.  Prototypes for same.
24204
24205 2000-07-14  Paul Eggert  <eggert@twinsun.com>
24206
24207         From a suggestion by Bruno Haible.
24208         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
24209         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
24210         to decide whether to define the BeOS workaround macro;
24211         this adjusts to the change to AC_MBSTATE_T.
24212
24213 2000-07-14  Jim Meyering  <meyering@lucent.com>
24214
24215         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
24216         jm_AC_TYPE_UINTMAX_T.
24217
24218 2000-07-13  Paul Eggert  <eggert@twinsun.com>
24219
24220         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
24221
24222         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
24223         quotearg_buffer_restyled): Add support for
24224         clocale_quoting_style.  Undo previous change to
24225         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
24226         and "{RIGHT QUOTATION MARK}" msgids.
24227
24228 2000-07-10  Paul Eggert  <eggert@twinsun.com>
24229
24230         From a suggestion by Bruno Haible.
24231         * m4/mbstate_t.m4 (AC_MBSTATE_T):
24232         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
24233         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
24234         and mbstate_t, to a single-part test that simply defines mbstate_t.
24235         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
24236         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
24237
24238 2000-07-10  Jim Meyering  <meyering@lucent.com>
24239
24240         * m4/strerror_r.m4: Mirror the correction made in autoconf.
24241
24242         * m4/gnu-source.m4: Output to confdefs.h directly.
24243         Suggestion from Akim Demaille.
24244
24245 2000-07-09  Paul Eggert  <eggert@twinsun.com>
24246
24247         The old behavior of quoting `like this' doesn't look good with
24248         newer, ISO-style fonts.  See:
24249         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
24250
24251         Instead, quote "like this" by default.  Let the translator
24252         tailor the locale-specific quoting behavior by providing
24253         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
24254
24255         * lib/quotearg.c (N_): New macro.
24256         (gettext_default): New function.
24257         (quotearg_buffer_restyled): Use
24258         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
24259         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
24260
24261 2000-07-09  Jim Meyering  <meyering@lucent.com>
24262
24263         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
24264         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
24265
24266         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
24267         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
24268
24269 2000-07-09  Jim Meyering  <meyering@lucent.com>
24270
24271         * lib/Most files: Update copyright dates to include 2000.
24272
24273 2000-07-08  Jim Meyering  <meyering@lucent.com>
24274
24275         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
24276         if not defined.
24277         (xgethostname): Remove now-unnecessary #ifdef.
24278         Move declaration of `err' into loop where it's used.
24279
24280 2000-07-05  Paul Eggert  <eggert@twinsun.com>
24281         and Bruno Haible  <haible@clisp.cons.org>
24282
24283         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
24284         only if the test for an object-type mbstate_t fails.  This
24285         prevents us from mistakenly reporting that mbstate_t is a
24286         system object type after we "#define mbstate_t int" to work
24287         around its lack.
24288
24289 2000-07-05  Paul Eggert  <eggert@twinsun.com>
24290         and Bruno Haible  <haible@clisp.cons.org>
24291
24292         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
24293
24294 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
24295
24296         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
24297         to strerror_r.
24298         Include <ctype.h> for use of isalpha.
24299
24300 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
24301
24302         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
24303         by allocating a larger buffer. Test the gethostname return value for
24304         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
24305         returns an error and ENAMETOOLONG isn't defined.
24306
24307 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
24308
24309         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
24310         dimension.
24311
24312 2000-07-04  Jim Meyering  <meyering@lucent.com>
24313
24314         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
24315         of the deprecated AC_CHECKING.
24316
24317 2000-07-04  Jim Meyering  <meyering@lucent.com>
24318
24319         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
24320         Reported by Bruno Haible.
24321
24322 2000-07-04  Jim Meyering  <meyering@lucent.com>
24323
24324         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
24325         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
24326         lacks mbrtowc.
24327
24328 2000-07-03  Paul Eggert  <eggert@twinsun.com>
24329
24330         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
24331         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
24332
24333 2000-07-03  Paul Eggert  <eggert@twinsun.com>
24334         and Bruno Haible  <haible@clisp.cons.org>
24335
24336         * lib/quotearg.c (mbrtowc):
24337         Assign to *pwc, and return 1 only if result is nonzero.
24338         (iswprint): Use ISPRINT when substituting our own mbrtowc.
24339
24340 2000-07-03  Jim Meyering  <meyering@lucent.com>
24341
24342         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
24343
24344 2000-07-03  Jim Meyering  <meyering@lucent.com>
24345
24346         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
24347         This is necessary to get a definition of e.g., UTMP_FILE on
24348         HP-UX 10.20.
24349         From Bob Proulx.
24350
24351 2000-07-02  Jim Meyering  <meyering@lucent.com>
24352
24353         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
24354
24355         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
24356         AC_LIBOBJ(function_name).
24357         * m4/chown.m4: Likewise.
24358         * m4/fnmatch.m4: Likewise.
24359         * m4/ftruncate.m4: Likewise.
24360         * m4/getgroups.m4: Likewise.
24361         * m4/getline.m4: Likewise.
24362         * m4/group-member.m4: Likewise.
24363         * m4/jm-macros.m4: Likewise.
24364         * m4/lstat.m4: Likewise.
24365         * m4/malloc.m4: Likewise.
24366         * m4/memcmp.m4: Likewise.
24367         * m4/nanosleep.m4: Likewise.
24368         * m4/putenv.m4: Likewise.
24369         * m4/realloc.m4: Likewise.
24370         * m4/regex.m4: Likewise.
24371         * m4/stat.m4: Likewise.
24372         * m4/strftime.m4: Likewise.
24373
24374 2000-07-02  Jim Meyering  <meyering@lucent.com>
24375
24376         * lib/quotearg.c (mbstate_t): Don't define here.
24377
24378 2000-07-02  Jim Meyering  <meyering@lucent.com>
24379
24380         * lib/nanosleep.c (SIGCONT): Define if not already defined.
24381
24382 2000-07-01  Jim Meyering  <meyering@lucent.com>
24383
24384         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
24385
24386 2000-07-01  Jim Meyering  <meyering@lucent.com>
24387
24388         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
24389         problem.
24390
24391 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
24392
24393         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
24394         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
24395
24396 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
24397
24398         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
24399         per change in ../m4/ls-mntd-fs.m4.
24400         (read_filesystem_list): Ignore symbolic links.
24401
24402 2000-06-29  Jim Meyering  <meyering@lucent.com>
24403
24404         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
24405         for declaration of strcmp.
24406
24407         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
24408
24409         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
24410         Avoid warning by casting result to `char *' to remove `const'.
24411
24412 2000-06-28  Jim Meyering  <meyering@lucent.com>
24413
24414         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
24415         included by quotearg.c, for which we perform this test.  From
24416         Bruno Haible.
24417
24418 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
24419
24420         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
24421         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
24422         <utmpx.h> exists, put readutmp.o into LIBOBJS.
24423
24424 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
24425
24426         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
24427
24428 2000-06-26  Paul Eggert  <eggert@twinsun.com>
24429
24430         savedir now sets errno on failure and invokes xmalloc to get memory.
24431         Fix a couple of other minor bugs while we're at it.
24432
24433         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
24434         (NAMLEN): Remove macro.
24435         (malloc, realloc): Remove decls.
24436         (stpcpy): Likewise.
24437         ("xalloc.h"): Include.
24438         (NAME_SIZE_DEFAULT): New macro.
24439         (savedir): Use xmalloc / xrealloc to allocate memory.
24440         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
24441         Skip "" directory entries.
24442         Use strlen to calculate directory entry length, since the old method
24443         is rarely used these days and isn't worth supporting.
24444         Don't use a pointer after freeing it.
24445         Check for integer overflow when calculating allocation size.
24446         Use memcpy to copy entries, instead of stpcpy.
24447         Set errno properly when returning NULL.
24448         Check for readdir error.
24449
24450 2000-06-26  Jim Meyering  <meyering@lucent.com>
24451
24452         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
24453
24454 2000-06-25  Jim Meyering  <meyering@lucent.com>
24455
24456         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
24457         Linux header bug when _XOPEN_SOURCE is defined to 500.
24458
24459 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
24460
24461         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
24462         deficiency.
24463
24464 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
24465
24466         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
24467         Include xalloc.h.
24468         Don't include <stdlib.h>.  Don't declare malloc, realloc.
24469
24470 2000-06-24  Jim Meyering  <meyering@lucent.com>
24471
24472         * m4/strerror_r.m4: Revive this file -- to try out an experimental
24473         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
24474         for which strerror does return char*, but which lacks a conveniently
24475         accessible declaration of the function.  If the compile-test says
24476         strerror_r doesn't work, then resort to a `run'-test that works on
24477         BeOS and segfaults on DEC Unix.
24478
24479 2000-06-24  Jim Meyering  <meyering@lucent.com>
24480
24481         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
24482
24483 2000-06-23  Paul Eggert  <eggert@twinsun.com>
24484
24485         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
24486         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
24487
24488 2000-06-23  Paul Eggert  <eggert@twinsun.com>
24489
24490         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
24491         (mbrtowc, mbstate_t): Define substitutes if
24492         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
24493         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
24494         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
24495
24496 2000-06-23  Jim Meyering  <meyering@lucent.com>
24497
24498         * m4/afs.m4: Add missing AC_MSG_RESULT.
24499         Reported by Bruno Haible.
24500
24501         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
24502         Suggestion from Bruno Haible.
24503
24504 2000-06-23  Jim Meyering  <meyering@lucent.com>
24505
24506         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
24507
24508 2000-06-21  Jim Meyering  <meyering@lucent.com>
24509
24510         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
24511
24512 2000-06-21  Jim Meyering  <meyering@lucent.com>
24513
24514         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
24515         (noinst_HEADERS): Add getstr.h.
24516
24517         * lib/getline.c (getstr): Move into a separate file.
24518         * lib/getstr.c (getstr): New file, extracted from getline.c, with
24519         the following changes: new parameter, delim2; both delim[12]
24520         parameters have type `int', not `char'.  The latter would lose
24521         with 8-bit delimiters.
24522         * lib/getstr.h: New file.
24523
24524 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
24525
24526         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
24527         than 1024, return a memory chunk of least possible size, instead
24528         of size PATH_MAX + 2. In the loop, increment the size proportionally.
24529         Use free/xmalloc instead of xrealloc to avoid copying for very long
24530         paths.
24531
24532 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
24533
24534         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
24535         the empty string.
24536
24537 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
24538
24539         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
24540         address, not strdup.  Include <stdlib.h> and don't declare free().
24541
24542 2000-06-19  Jim Meyering  <meyering@lucent.com>
24543
24544         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
24545
24546 2000-06-18  Jim Meyering  <meyering@lucent.com>
24547
24548         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
24549
24550         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
24551         `checking whether...' message to be consistent with that of the
24552         lstat test.
24553
24554 2000-06-18  Jim Meyering  <meyering@lucent.com>
24555
24556         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
24557         Besides, these days every porting target provides a mkdir function.
24558
24559         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
24560         needed. (this snippet comes from src/system.h).
24561
24562 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
24563
24564         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
24565
24566 2000-06-15  Paul Eggert  <eggert@twinsun.com>
24567
24568         * lib/human.c (adjust_value): New function.
24569         (human_readable_inexact): Apply rounding style even when
24570         printing approximate values.
24571
24572 2000-06-14  Paul Eggert  <eggert@twinsun.com>
24573
24574         * lib/human.c (human_readable_inexact): Allow an input block
24575         size that is not a multiple of the output block size, and vice versa.
24576         Reported by Piergiorgio Sartor.
24577
24578 2000-06-14  Paul Eggert  <eggert@twinsun.com>
24579
24580         * lib/getdate.y (get_date): Apply relative times after time
24581         zone indicator, not before.  Reported by Todd A. Jacobs.
24582
24583 2000-06-13  Jim Meyering  <meyering@lucent.com>
24584
24585         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
24586
24587         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
24588
24589 2000-06-12  Paul Eggert  <eggert@twinsun.com>
24590
24591         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
24592
24593 2000-06-12  Jim Meyering  <meyering@lucent.com>
24594
24595         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
24596         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
24597         optional argument.
24598         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
24599         the optional argument, `lib'.
24600
24601 2000-06-08  Jim Meyering  <meyering@lucent.com>
24602
24603         * m4/largefile.m4: Remove file (now that it's part of autoconf).
24604
24605 2000-06-04  Paul Eggert  <eggert@twinsun.com>
24606
24607         Rewrite largefile configuration so that we don't need to run
24608         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
24609         AC_CANONICAL_HOST in configure.in -- jmm]
24610
24611         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
24612         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
24613         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
24614         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
24615         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
24616         All uses changed.
24617         Instead of inspecting the output of getconf, try to compile the
24618         test program without and with the macro definition.
24619         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
24620         for getconf.  Instead, check for the needed flags by compiling
24621         test programs.
24622
24623 2000-06-04  Paul Eggert  <eggert@twinsun.com>
24624
24625         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
24626
24627 2000-06-04  Jim Meyering  <meyering@lucent.com>
24628
24629         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
24630         SunOS 4.1.4 for which gid_t is an unsigned type.
24631
24632 2000-06-03  Jim Meyering  <meyering@lucent.com>
24633
24634         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
24635         now that autoconf requires that.
24636
24637         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
24638         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
24639         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
24640
24641 2000-06-03  Jim Meyering  <meyering@lucent.com>
24642
24643         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
24644
24645 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
24646
24647         * m4/glibc21.m4: New file.
24648         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
24649
24650 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
24651
24652         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
24653         newer, don't install charset.alias.
24654         * lib/config.charset: Change the Linux/glibc rules so they become empty
24655         on glibc-2.1 or newer.
24656
24657 2000-06-02  Jim Meyering  <meyering@lucent.com>
24658
24659         * lib/mountlist.c: Back out last change.  Instead, do this...
24660         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
24661         me_dummy member using the same `ignore'-testing code.
24662         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
24663         fs_type strings.
24664         From Mark D. Roth.
24665
24666 2000-05-29  Jim Meyering  <meyering@lucent.com>
24667
24668         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
24669         mounts with the `ignore' attribute.  Based on a patch from
24670         Mark D. Roth.
24671
24672 2000-05-28  Jim Meyering  <meyering@lucent.com>
24673
24674         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
24675         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
24676         * m4/stat.m4: Likewise.
24677         * m4/lstat.m4: Likewise.
24678         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
24679
24680         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
24681         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
24682
24683 2000-05-26  Jim Meyering  <meyering@lucent.com>
24684
24685         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
24686
24687 2000-05-24  Jim Meyering  <meyering@lucent.com>
24688
24689         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
24690         autoconf requires that.
24691         * m4/lib-check.m4: Likewise.
24692         * m4/jm-macros.m4: Likewise.
24693         * m4/strftime.m4: Likewise.
24694
24695         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
24696         AC_CHECK_DECLS, now that autoconf requires that.
24697
24698 2000-05-22  Jim Meyering  <meyering@lucent.com>
24699
24700         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
24701         * m4/lstat.m4: Likewise.
24702
24703 2000-05-22  Jim Meyering  <meyering@lucent.com>
24704
24705         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
24706
24707 2000-05-20  Jim Meyering  <meyering@lucent.com>
24708
24709         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
24710         (jm_PREREQ): Use it.
24711
24712 2000-05-18  Jim Meyering  <meyering@lucent.com>
24713
24714         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
24715         back, too, since it may have been modified by allocate_entry.
24716         (hash_delete): Rewrite to use neither the assignment operator
24717         nor the comma operator in an if-expression.
24718
24719 2000-05-15  Paul Eggert  <eggert@twinsun.com>
24720
24721         * lib/closeout.c:
24722         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
24723         Remove; no longer needed.
24724         "quotearg.h": Add include.
24725         (file_name): Do not bother to explicitly initialize to NULL; it's less
24726         efficient on some hosts.
24727         (close_stdout_status): Remove test as to whether stdout was already
24728         closed; it breaks for the case "echo x | sort >&-".
24729         Quote file name colons.
24730         Do not assume that _("write error") lacks format strings.
24731
24732 2000-05-15  Jim Meyering  <meyering@lucent.com>
24733
24734         * lib/version-etc.c (version_etc_copyright): Update the copyright
24735         string used in all --version output.
24736
24737 2000-05-14  Jim Meyering  <meyering@lucent.com>
24738
24739         * lib/closeout.c (close_stdout_set_file_name): New function.
24740         (close_stdout_status): Use new file-scoped global.
24741         Return right away if fstat says the stdout file descriptor is invalid.
24742         * lib/closeout.h (close_stdout_set_file_name): Declare.
24743
24744 2000-05-10  Jim Meyering  <meyering@lucent.com>
24745
24746         * lib/closeout.c [default_exit_status]: New file-scoped variable.
24747         (close_stdout_set_status): New function.
24748         * lib/closeout.h (close_stdout_set_status): Declare.
24749
24750 2000-05-09  Jim Meyering  <meyering@lucent.com>
24751
24752         * m4/gettext.m4: Rename this...
24753         * m4/libintl.m4: ...to this.
24754
24755 2000-05-08  Jim Meyering  <meyering@lucent.com>
24756
24757         * lib/long-options.c: Don't include closeout.h.
24758         (parse_long_options): Don't call close_stdout for --version.
24759
24760 2000-05-06  Paul Eggert  <eggert@twinsun.com>
24761
24762         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
24763         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
24764         2.1.3 bug.  This avoids a clash when files like regex.c define
24765         _GNU_SOURCE.
24766
24767 2000-05-06  Jim Meyering  <meyering@lucent.com>
24768
24769         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
24770         (AC_REPLACE_FUNCS): Add strnlen.
24771
24772         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
24773         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
24774
24775         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
24776         AC_SEARCH_LIBS call for nanosleep.
24777         (LIB_NANOSLEEP): Set and AC_SUBST.
24778
24779 2000-05-06  Jim Meyering  <meyering@lucent.com>
24780
24781         * lib/strnlen.c: Undefine __strnlen and strnlen.
24782         [!weak_alias]: Define __strnlen to strnlen.
24783
24784         * lib/atexit.c: New file, from libiberty.
24785
24786 2000-05-06  Jim Meyering  <meyering@lucent.com>
24787
24788         * lib/closeout.c (close_stdout_status): Also check for errors on the
24789         stderr stream.
24790
24791 2000-05-05  Jim Meyering  <meyering@lucent.com>
24792
24793         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
24794         AC_SEARCH_LIBS call for clock_gettime.
24795         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
24796
24797         * m4/search-libs.m4: Update from autoconf.
24798
24799         su doesn't work on Solaris 2.6.
24800         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
24801         <shadow.h>.  Reported by Dragos Harabor.
24802
24803 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
24804
24805         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
24806         memcpy instead of xmalloc, xrealloc, path_concat.
24807         (locale_charset): Treat empty environment variables as absent.
24808         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
24809
24810 2000-05-04  Jim Meyering  <meyering@lucent.com>
24811
24812         * lib/getopt.c: Update from glibc.
24813         * lib/obstack.c: Likewise.
24814         * lib/obstack.h: Likewise.
24815         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
24816         file
24817
24818         * lib/regex.h: Likewise.
24819         * lib/strndup.c: Likewise.
24820         * lib/strnlen.c: New file, from glibc.
24821
24822 2000-05-03  Jim Meyering  <meyering@lucent.com>
24823
24824         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
24825
24826 2000-05-02  Paul Eggert  <eggert@twinsun.com>
24827
24828         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
24829         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
24830         compile-time test, rather than inspecting host and OS, to
24831         decide whether to define _LARGEFILE_SOURCE.
24832
24833 2000-05-01  Jim Meyering  <meyering@lucent.com>
24834
24835         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
24836
24837         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
24838         Based on a patch from Bruno Haible.
24839
24840 2000-05-01  Jim Meyering  <meyering@lucent.com>
24841
24842         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
24843
24844 2000-04-29  Jim Meyering  <meyering@lucent.com>
24845
24846         * lib/path-concat.c: Declare strdup only if it's not defined.
24847         * lib/canon-host.c: Likewise.
24848
24849 2000-04-28  Jim Meyering  <meyering@lucent.com>
24850
24851         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
24852         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
24853         is included first, then limits.h is included by locale.h by libintl.h.
24854         From John David Anglin.
24855
24856 2000-04-25  Jim Meyering  <meyering@lucent.com>
24857
24858         * lib/makepath.c (S_IRWXUGO): Define.
24859         (make_path): Always perform explicit chmod if MODE specifies any
24860         of the `special' permission bits.  Prompted by a bug report against
24861         install from Mate Wierdl and Joost van Baal.
24862
24863 2000-04-18  Jim Meyering  <meyering@lucent.com>
24864
24865         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
24866         (jm_PREREQ): Use it.
24867
24868 2000-04-18  Jim Meyering  <meyering@lucent.com>
24869
24870         * lib/README: New file.
24871
24872         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
24873         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
24874
24875 2000-04-17  Jim Meyering  <meyering@lucent.com>
24876
24877         Get it right :-)
24878         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
24879         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
24880         Suggestion from Akim Demaille.
24881
24882 2000-04-17  Jim Meyering  <meyering@lucent.com>
24883
24884         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
24885         the definition of it to rpl_strftime also defined-away the system's
24886         declaration.
24887
24888 2000-04-15  Jim Meyering  <meyering@lucent.com>
24889
24890         Use `C' to denote so-called `contiguous' files, the same way
24891         that tar does.
24892         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
24893         (ftypelet): Use S_ISCTG.
24894         From Michael Deutschmann.
24895
24896 2000-04-14  Jim Meyering  <meyering@lucent.com>
24897
24898         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
24899         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
24900         clobbered.
24901
24902 2000-04-14  Jim Meyering  <meyering@lucent.com>
24903
24904         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
24905
24906 2000-04-13  Jim Meyering  <meyering@lucent.com>
24907
24908         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
24909         AH_VERBATIM to insert required #ifndef into config.h.in.
24910         Suggestion from Akim Demaille.
24911
24912 2000-04-12  Jim Meyering  <meyering@lucent.com>
24913
24914         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
24915         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
24916         Christian Krackowizer.
24917
24918         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
24919         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
24920         (AC_SYS_LARGEFILE): Require.
24921         (AM_C_PROTOTYPES): Require.
24922
24923 2000-04-08  Jim Meyering  <meyering@lucent.com>
24924
24925         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
24926         names don't conflict.  Reported by Eli Zaretskii.
24927
24928 2000-04-07  Jim Meyering  <meyering@lucent.com>
24929
24930         * lib/putenv.c: Move inclusion of errno.h so it follows that of
24931         sys/types.h, to work around system header problems on AIX 3.2.5.
24932         From Bruno Haible.
24933
24934 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
24935
24936         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
24937         bug.  Deal with the different error behavior of Irix iconv.
24938
24939 2000-04-05  Paul Eggert  <eggert@twinsun.com>
24940
24941         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
24942         IRIX if the installer said otherwise.
24943
24944 2000-04-05  Jim Meyering  <meyering@lucent.com>
24945
24946         Portability tweaks required for ultrix4.3.
24947         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
24948         (jm_CHECK_DECLS): Add getutent to the list of functions.
24949         (_jm_DECL_HEADERS): Add utmpx.h.
24950         From John David Anglin.
24951
24952         * m4/strftime.m4: Back out the 2000-04-02 change.
24953         Instead of that change, simply undefine putenv in the test program.
24954
24955 2000-04-05  Jim Meyering  <meyering@lucent.com>
24956
24957         Portability tweaks required for ultrix4.3.
24958         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
24959         getutent.
24960         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
24961         * lib/canon-host.c: Declare strdup.
24962         * lib/path-concat.c: Likewise.
24963         From John David Anglin.
24964
24965 2000-04-04  Jim Meyering  <meyering@lucent.com>
24966
24967         Be more DOS 8.3-friendly.
24968         * lib/ref-add.sin: Renamed from ref-add.sed.in.
24969         * lib/ref-del.sin: Renamed from ref-del.sed.in.
24970         * lib/Makefile.am: Reflect renaming.
24971         Reported by Eli Zaretskii.
24972
24973         Use a temporary file name that won't clash with `charset.alias'
24974         in the DOS 8.3 name space.
24975         * lib/Makefile.am (charset_tmp): Define.
24976         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
24977         (uninstall-local): Likewise.
24978         Reported by Eli Zaretskii.
24979
24980 2000-04-03  Jim Meyering  <meyering@lucent.com>
24981
24982         * m4/gettext.m4: Fix typo in comment.
24983
24984         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
24985         textutils/configure.in).  Suggestion from Paul Eggert.
24986         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
24987
24988 2000-04-02  Paul Eggert  <eggert@twinsun.com>
24989
24990         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
24991         variable in the shell rather than using putenv, which isn't
24992         portable.  This avoids the configure-time inter-test dependency
24993         on the potentially-renamed putenv function.
24994
24995 2000-03-30  Paul Eggert  <eggert@twinsun.com>
24996
24997         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
24998         before checking struct stat.st_blksize, so that
24999         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
25000
25001 2000-03-29  Paul Eggert  <eggert@twinsun.com>
25002
25003         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
25004         since strftime.c uses HAVE_STRFTIME to decide whether to use
25005         the underlying strftime.
25006
25007 2000-03-29  Paul Eggert  <eggert@twinsun.com>
25008
25009         * lib/time/strftime.c (my_strftime): Make sure we call the system
25010         strftime, not ourselves, when invoking the underlying strftime.
25011
25012 2000-03-24  Jim Meyering  <meyering@lucent.com>
25013
25014         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
25015         (charset_alias): Define.
25016         (install-exec-local): Factor out common code.
25017         (uninstall-local): Split lines longer than 80.
25018         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
25019         (SUFFIXES): Define.
25020         (.sed.in.sed): New rule.  Don't redirect directly to $@.
25021         (CLEANFILES): Add ref-add.sed and ref-del.sed.
25022
25023 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
25024
25025         * lib/config.charset: Output a line containing "Packages using this
25026         file".
25027         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
25028         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
25029         ref-del.sed): New rules.
25030
25031 2000-03-17  Jim Meyering  <meyering@lucent.com>
25032
25033         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
25034         Otherwise, include <strings.h>
25035
25036 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
25037
25038         * lib/unicodeio.c (utf8_wctomb): New function.
25039         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
25040         format instead of in UCS-4 with platform dependent endianness.
25041
25042 2000-03-10  Jim Meyering  <meyering@lucent.com>
25043
25044         * m4/lib-check.m4: Look for getspnam in -lgen, too.
25045         From Marco Franzen.
25046
25047 2000-03-07  Paul Eggert  <eggert@twinsun.com>
25048
25049         * lib/savedir.c (savedir): Work even if directory size is
25050         negative; this can happen with some screwy NFS configurations.
25051
25052 2000-03-06  Jim Meyering  <meyering@lucent.com>
25053
25054         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
25055         if it's NULL (because we ran out of memory).  From Bruno Haible.
25056
25057 2000-03-05  Jim Meyering  <meyering@lucent.com>
25058
25059         * lib/localcharset.c ("path-concat.h"): Include.
25060         (get_charset_aliases): Use path_concat instead of ANSI string
25061         concatenation.
25062
25063         * lib/unicodeio.h (PARAMS): Define.
25064         Use it to guard prototype.
25065
25066 2000-03-04  Jim Meyering  <meyering@lucent.com>
25067
25068         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
25069         for lib/localcharset.c.
25070
25071 2000-03-04  Jim Meyering  <meyering@lucent.com>
25072
25073         * lib/Makefile.am (install-exec-local): Create $(libdir) before
25074         installing into it.
25075         (uninstall-local): Uncomment this rule so `make distcheck' works
25076         once again.
25077
25078         * lib/unicodeio.c (<errno.h>): Include it.
25079         (errno): Declare if not defined.
25080
25081         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
25082
25083         * lib/config.charset: New version, incorporating remarks from a linux
25084         i18n mailing list.  From Bruno Haible.
25085
25086 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
25087
25088         * m4/codeset.m4: New file.
25089         * m4/iconv.m4: New file.
25090         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
25091
25092 2000-03-03  Jim Meyering  <meyering@lucent.com>
25093
25094         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
25095
25096 2000-03-02  Jim Meyering  <meyering@lucent.com>
25097
25098         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
25099         the messages come out on separate lines.
25100
25101         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
25102         rather than jm_CHECK_DECLARATIONS.
25103         * m4/decl.m4: Remove now-unused file.
25104
25105         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
25106         geteuid.
25107
25108 2000-03-02  Jim Meyering  <meyering@lucent.com>
25109
25110         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
25111
25112 2000-03-01  Jim Meyering  <meyering@lucent.com>
25113
25114         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
25115         * lib/unicodeio.c: Likewise.
25116
25117 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
25118
25119         * lib/config.charset: New file.
25120         * lib/localcharset.c: New file.
25121         * lib/unicodeio.h, lib/unicodeio.c: New files.
25122         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
25123         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
25124         (noinst_HEADERS): Add unicodeio.h.
25125         (all-local, install-exec-local, charset.alias): New targets.
25126
25127 2000-02-28  Paul Eggert  <eggert@twinsun.com>
25128
25129         * lib/quotearg.c (ALERT_CHAR): New macro.
25130         (quotearg_buffer_restyled): Use it.
25131
25132 2000-02-27  Jim Meyering  <meyering@lucent.com>
25133
25134         * m4/check-decl.m4: Add getenv to the list.
25135
25136 2000-02-27  Jim Meyering  <meyering@lucent.com>
25137
25138         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
25139         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
25140
25141         * lib/backupfile.c: Guard inclusion of stdlib.h with
25142         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
25143         Declare malloc if needed.
25144
25145         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
25146         `#ifndef HAVE_DECL..'
25147         now that autoconf always defines the HAVE_DECL_ symbols.
25148         * lib/human.c: Likewise.
25149         * lib/same.c: Likewise.
25150         * lib/strtoumax.c: Likewise.
25151
25152         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
25153         declaration check was not run.
25154         * lib/hash.c: Likewise.
25155         * lib/human.c: Likewise.
25156         * lib/same.c: Likewise.
25157         * lib/strtoumax.c: Likewise.
25158
25159         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
25160         `.', then first look up the entire `.'-containing string as a login
25161         name.
25162
25163 2000-02-23  Jim Meyering  <meyering@lucent.com>
25164
25165         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
25166         in place of my hack.
25167
25168 2000-02-18  Paul Eggert  <eggert@twinsun.com>
25169
25170         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
25171         (textint): New typedef.
25172         (parser_control): Member year changed from int to textint.
25173         All uses changed.
25174         (YYSTYPE): Removed; replaced by %union with int and textint members.
25175         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
25176         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
25177         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
25178         (tSNUMBER, tUNUMBER): Now of type <textintval>.
25179         (date, number, to_year): Use width of number in digits, not its value,
25180         to determine whether it's a 2-digit year, or a 2-digit time.
25181         (yylex): Store number of digits of numeric tokens.
25182         Reported by John Kendall.
25183
25184         (parser_control): Changed from struct parser_control to typedef (for
25185         consistency).  All uses changed.
25186
25187         (tID): Removed; not used.
25188         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
25189
25190 2000-02-14  Paul Eggert  <eggert@twinsun.com>
25191
25192         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
25193         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
25194
25195 2000-02-12  Jim Meyering  <meyering@lucent.com>
25196
25197         * lib/userspec.c (ISDIGIT): Define it.
25198         (isdigit): Remove definition.
25199         (is_number): Use ISDIGIT, not isdigit.
25200         <libintl.h>: Include.
25201         (_ and N_): Define.
25202         (parse_user_spec): Mark translatable strings.
25203
25204 2000-02-10  Jim Meyering  <meyering@lucent.com>
25205
25206         With these changes, nanosleep.[ch] are finally enough like the other
25207         lib/* replacement files to compile on a few more losing systems.
25208
25209         * lib/nanosleep.h: Don't include config.h.
25210         Remove prototype from declaration of nanosleep.
25211         (PARAMS): Remove now-unneeded definition.
25212         * lib/nanosleep.c: #undef nanosleep.
25213         (rpl_nanosleep): Rename from nanosleep.
25214
25215 2000-02-10  Jim Meyering  <meyering@lucent.com>
25216
25217         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
25218         gnu_nanosleep to rpl_nanosleep.
25219
25220 2000-02-09  Jim Meyering  <meyering@lucent.com>
25221
25222         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
25223         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
25224
25225 2000-02-08  Akim Demaille  <akim@epita.fr>
25226
25227         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
25228         `[' and `]' and remove uses of `changequote'.
25229         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
25230         (AC_SYS_LARGEFILE): Likewise.
25231         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
25232         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
25233         of changequote.
25234         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
25235         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
25236         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
25237         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
25238
25239 2000-02-05  Jim Meyering  <meyering@lucent.com>
25240
25241         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
25242         Remove explicit use of AC_HEADER_TIME.  It is required by
25243         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
25244         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
25245         in autoconf whereby the expansion of the latter ended up preceding
25246         the expansion of its prerequisite, AC_HEADER_TIME.
25247         Reported by Volker Borchert.
25248
25249 2000-02-03  Jim Meyering  <meyering@lucent.com>
25250
25251         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
25252
25253 2000-02-03  Jim Meyering  <meyering@lucent.com>
25254
25255         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
25256         rather than with `#if HAVE_UTMPNAME'.
25257
25258 2000-02-02  Jim Meyering  <meyering@lucent.com>
25259
25260         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
25261         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
25262         Reported by Eli Zaretskii.
25263
25264 2000-02-01  Jim Meyering  <meyering@lucent.com>
25265
25266         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
25267
25268 2000-01-31  Jim Meyering  <meyering@lucent.com>
25269
25270         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
25271         functions.  Add the time.h and sys/time.h headers along with the
25272         AC_REQUIRE'ment of AC_HEADER_TIME.
25273
25274 2000-01-31  Jim Meyering  <meyering@lucent.com>
25275
25276         * lib/nanosleep.h (nanosleep): Guard declaration with
25277         `#if ! HAVE_DECL_NANOSLEEP'.
25278         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
25279         the declaration in that vendor's sys/timers.h.
25280         Reported by Christian Krackowizer.
25281
25282         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
25283         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
25284         (ISPRINT): Likewise.
25285         Reported by Tom Tromey.
25286
25287 2000-01-30  Jim Meyering  <meyering@lucent.com>
25288
25289         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
25290
25291         * m4/prereq.m4 (utmp_includes): Define.
25292         Check for ut_user and ut_name members in both struct utmpx
25293         and struct utmp.
25294
25295 2000-01-30  Jim Meyering  <meyering@lucent.com>
25296
25297         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
25298         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
25299         header files where only utmpx.ut_user is declared.
25300
25301         * lib/readutmp.h (UT_USER): Define.
25302
25303 2000-01-29  Jim Meyering  <meyering@lucent.com>
25304
25305         * m4/lib-check.m4: New file containing library-related checks from
25306         fileutils and sh-utils (textutils had none).
25307
25308 2000-01-28  Jim Meyering  <meyering@lucent.com>
25309
25310         * m4/perl.m4: Change format of warning message to look more like that
25311         from the missing script.  Suggestion from François Pinard.
25312
25313 2000-01-25  Jim Meyering  <meyering@lucent.com>
25314
25315         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
25316         well as time.h in the compile check.
25317         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
25318         Fix typo in cross-compiling case: s/yes/no/.
25319
25320 2000-01-23  Jim Meyering  <meyering@lucent.com>
25321
25322         * m4/jm-macros.m4: Move df-related tests here from
25323         fileutils/configure.in
25324
25325         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
25326         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
25327
25328         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
25329         s/space/ac_fsusage_space/.
25330         (jm_FILE_SYSTEM_USAGE): Take two parameters.
25331
25332         * m4/ftruncate.m4: New file (derived from part of
25333         fileutils/configure.in).
25334         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
25335         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
25336
25337         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
25338         AC_SUBST these here, rather than just in sh-util/configure.in, so
25339         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
25340         all the same.
25341         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
25342         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
25343         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
25344         (AC_SUBST(POW_LIBM)): Likewise.
25345         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
25346
25347 2000-01-23  Jim Meyering  <meyering@lucent.com>
25348
25349         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
25350         obstack.c.
25351
25352 2000-01-22  Jim Meyering  <meyering@lucent.com>
25353
25354         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
25355
25356         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
25357
25358         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
25359         configure.in
25360         (AC_CHECK_HEADERS): Likewise for sh-utils.
25361         (AC_CHECK_HEADERS): Likewise for textutils.
25362         Merge the three lists of headers.
25363
25364         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
25365         from fileutils' configure.in.
25366
25367         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
25368         code. Moved tests into their own function (_jm_DECL_HEADERS) in
25369         check-decl.m4.
25370
25371         * m4/check-decl.m4: Use #if rather than #ifdef.
25372         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
25373         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
25374         (_jm_DECL_HEADERS): Define new function.
25375         (jm_CHECK_DECLARATIONS): Require it.
25376
25377 2000-01-22  Jim Meyering  <meyering@lucent.com>
25378
25379         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
25380         [! HAVE_DECL_STRTOULL]: Declare strtoull.
25381         Required for some AIX systems.  Reported by Christian Krackowizer.
25382         [TESTING] (main): New function.
25383
25384         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
25385         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
25386         letters.
25387
25388         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
25389         iswprint.
25390
25391         * lib/strverscmp.c (ISDIGIT): Define.
25392         (strverscmp): Use ISDIGIT, not isdigit.
25393
25394 2000-01-19  Jim Meyering  <meyering@lucent.com>
25395
25396         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
25397         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
25398         defines `struct timespec' in <sys/time.h>
25399
25400         * m4/c-bs-a.m4: Remove uses of changequote altogether.
25401         Thanks to Akim for explaining.
25402
25403 2000-01-17  Paul Eggert  <eggert@twinsun.com>
25404
25405         * lib/nanosleep.c (nanosleep):
25406         Don't use SA_INTERRUPT to decide whether to call sigaction, as
25407         POSIX.1 doesn't require SA_INTERRUPT and some systems
25408         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
25409         it's been part of POSIX.1 since day 1 (in 1988).
25410
25411 2000-01-17  Jim Meyering  <meyering@lucent.com>
25412
25413         * lib/interlock: Remove unused file.  Reported by François Pinard.
25414
25415 2000-01-16  Paul Eggert  <eggert@twinsun.com>
25416
25417         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
25418         alert, backslash, formfeed, and vertical tab unnecessarily in
25419         shell quoting style.
25420
25421 2000-01-16  Jim Meyering  <meyering@lucent.com>
25422
25423         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
25424         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
25425         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
25426         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
25427
25428 2000-01-16  Jim Meyering  <meyering@lucent.com>
25429
25430         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
25431         because the latter didn't work.
25432
25433 2000-01-15  Jim Meyering  <meyering@lucent.com>
25434
25435         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
25436         (AC_REPLACE_FUNCS): Add memcpy and memset.
25437         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
25438         Add strpbrk.
25439         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
25440
25441 2000-01-12  Jim Meyering  <meyering@lucent.com>
25442
25443         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
25444         (jm_PREREQ): Use it.
25445         (jm_PREREQ_READUTMP): New macro.
25446         (jm_PREREQ): Use it.
25447
25448 2000-01-11  Paul Eggert  <eggert@twinsun.com>
25449
25450         Quote multibyte characters correctly.
25451         * m4/c-bs-a.m4: New file.
25452         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
25453         (jm_PREREQ): Use it.
25454
25455 2000-01-11  Paul Eggert  <eggert@twinsun.com>
25456
25457         * m4/uintmax_t.m4: Port to autoconf 2.13.
25458
25459 2000-01-08  Jim Meyering  <meyering@ascend.com>
25460
25461         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
25462         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
25463
25464 2000-01-04  Jim Meyering  <meyering@ascend.com>
25465
25466         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
25467         jm_STRUCT_DIRENT_D_TYPE.
25468         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
25469         jm_STRUCT_DIRENT_D_INO.
25470         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
25471         jm_STRUCT_UTIMBUF.
25472         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
25473         renamings.
25474         * m4/utime.m4: Likewise.
25475
25476         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
25477         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
25478
25479 2000-01-03  Paul Eggert  <eggert@twinsun.com>
25480
25481         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
25482         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
25483
25484 2000-01-02  Jim Meyering  <meyering@ascend.com>
25485
25486         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
25487         remember if this is necessary.
25488
25489 1999-12-26  Jim Meyering  <meyering@ascend.com>
25490
25491         * m4/jm-macros.m4: Use it here.
25492         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
25493
25494 1999-12-23  Jim Meyering  <meyering@ascend.com>
25495
25496         * m4/jm-macros.m4: Check for clock_gettime (moved from
25497         fileutils/configure.in)
25498         Check for gettimeofday.
25499
25500 1999-12-20  Jim Meyering  <meyering@ascend.com>
25501
25502         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
25503         autoconf-2.14a-1999-12-20.
25504
25505 1999-12-19  Jim Meyering  <meyering@ascend.com>
25506
25507         * m4/lstat-slash.m4: New file.
25508         * m4/jm-macros.m4: Use the new macro:
25509         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
25510
25511 1999-12-07  Jim Meyering  <meyering@ascend.com>
25512
25513         * m4/perl.m4: Require that File::Compare be available, too.
25514         Too many systems seem to lack it.
25515
25516         * m4/strftime.m4: Add checks for most of the cpp macros tested in
25517         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
25518
25519 1999-11-18  Paul Eggert  <eggert@twinsun.com>
25520
25521         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
25522         problem with the QNX 4.25 shell, which doesn't propagate exit
25523         status of failed commands inside shell assignments.
25524
25525 1999-11-17  Jim Meyering  <meyering@ascend.com>
25526
25527         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
25528
25529 1999-11-07  Jim Meyering  <meyering@ascend.com>
25530
25531         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
25532
25533 1999-11-06  Jim Meyering  <meyering@ascend.com>
25534
25535         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
25536         * m4/jm-macros.m4 (jm_MACROS): Use it here.
25537
25538 1999-11-05  Jim Meyering  <meyering@ascend.com>
25539
25540         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
25541         configure.in of textutils, fileutils, and sh-utils into this one
25542         (shared between those packages) file.
25543         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
25544         AC_STRUCT_ST_BLKSIZE.
25545
25546 1999-11-03  Jim Meyering  <meyering@ascend.com>
25547
25548         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
25549         of AC_CHECK_TYPE checks includes unistd.h.
25550         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
25551         Suggestion from Akim Demaille.
25552
25553 1999-10-30  Jim Meyering  <meyering@ascend.com>
25554
25555         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
25556         m4-quoted string.
25557         * m4/ls-mntd-fs.m4: Likewise.
25558         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
25559         * m4/jm-winsz1.m4: Likewise.
25560
25561         * m4/const.m4: Remove file, since the fix made it into the experimental
25562         version of autoconf.
25563         * m4/mktime.m4: Likewise.
25564
25565         * m4/check-type.m4: Remove file, now that the latest version of
25566         AC_CHECK_TYPE takes a third arg to specify additional #includes.
25567
25568         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
25569         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
25570         AC_CHECK_TYPE.
25571
25572 1999-10-04  Jim Meyering  <meyering@ascend.com>
25573
25574         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
25575
25576 1999-09-22  Paul Eggert  <eggert@twinsun.com>
25577
25578         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
25579         2.95.1 bug with HP-UX 10.20.
25580
25581 1999-09-17  Jim Meyering  <meyering@ascend.com>
25582
25583         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
25584         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
25585         due to missing strdup (against sh-utils-2.0).
25586
25587 1999-08-29  Jim Meyering  <meyering@ascend.com>
25588
25589         * m4/jm-macros.m4: Require jm_BISON.
25590         * m4/bison.m4: New file.
25591
25592 1999-08-17  Paul Eggert  <eggert@twinsun.com>
25593
25594         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
25595         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
25596
25597 1999-08-05  Jim Meyering  <meyering@ascend.com>
25598
25599         * m4/getline.m4: Rename test file from conftestdata to conftest.data
25600         to avoid conflicts with `conftest' on 8+3 filesystems.
25601         Suggestion from Eli Zaretskii.
25602
25603 1999-08-04  Jim Meyering  <meyering@ascend.com>
25604
25605         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
25606         fileutils and sh-utils (textutils's getline test was inadequate).
25607         (AM_FUNC_GETLINE): Run this test.
25608         (AC_CHECK_FUNCS): Check for getdelim.
25609         Reported by Bob Proulx.
25610
25611 1999-08-02  Jim Meyering  <meyering@ascend.com>
25612
25613         * m4/jm-macros.m4: Add a comment.
25614
25615 1999-08-01  Paul Eggert  <eggert@twinsun.com>
25616
25617         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
25618         <inttypes.h> defines strtoumax as a macro (and not as a
25619         function).
25620
25621 1999-08-01  Paul Eggert  <eggert@twinsun.com>
25622
25623         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
25624         that we can shift, multiply and divide unsigned long long
25625         values; Ultrix cc can't do it.
25626
25627 1999-08-01  Paul Eggert  <eggert@twinsun.com>
25628
25629         * m4/mktime.m4: New file, which is a preview of what should appear
25630         in the next public autoconf release.
25631
25632 1999-08-01  Paul Eggert  <eggert@twinsun.com>
25633
25634         * m4/lfs.m4: Remove this file.
25635         * m4/largefile.m4: New file.  It contains the old contents of
25636         lfs.m4, except that all names with prefix AC_LFS have been
25637         changed to use the prefix AC_SYS_LARGEFILE instead, to be
25638         compatible with future autoconf versions.  Also, some minor m4
25639         quoting problems have been fixed.
25640
25641 1999-08-01  Paul Eggert  <eggert@twinsun.com>
25642
25643         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
25644         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
25645         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
25646         and simplify the shell code.
25647
25648 1999-08-01  Jim Meyering  <meyering@ascend.com>
25649
25650         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
25651         m4.
25652
25653 1999-07-20  Jim Meyering  <meyering@ascend.com>
25654
25655         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
25656
25657 1999-07-15  Jim Meyering  <meyering@ascend.com>
25658
25659         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
25660
25661 1999-05-22  Jim Meyering  <meyering@ascend.com>
25662
25663         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
25664
25665 1999-05-20  Jim Meyering  <meyering@ascend.com>
25666
25667         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
25668         Add a colon after each `then' in case $4 is empty.
25669
25670 1999-05-16  Jim Meyering  <meyering@ascend.com>
25671
25672         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
25673
25674 1999-05-10  Jim Meyering  <meyering@ascend.com>
25675
25676         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
25677
25678         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
25679         AC_FUNC_MKTIME.
25680
25681 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
25682
25683         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
25684
25685 1999-05-04  Paul Eggert  <eggert@twinsun.com>
25686
25687         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
25688         not CPPFLAGS, so that linking works correctly in IRIX.
25689
25690 1999-04-30  Paul Eggert  <eggert@twinsun.com>
25691
25692         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
25693
25694 1999-04-20  Paul Eggert  <eggert@twinsun.com>
25695
25696         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
25697         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
25698         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
25699         jm_AC_TYPE_UNSIGNED_LONG_LONG.
25700         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
25701
25702         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
25703
25704 1999-04-20  Jim Meyering  <meyering@ascend.com>
25705
25706         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
25707         AC_REPLACE xstroull if necessary.  From Paul Eggert.
25708         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
25709
25710 1999-04-18  Jim Meyering  <meyering@ascend.com>
25711
25712         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
25713         * m4/jm-macros.m4: Use it.
25714
25715 1999-04-06  Jim Meyering  <meyering@ascend.com>
25716
25717         * m4/strftime.m4: Remove test for %f.
25718
25719 1999-03-29  Jim Meyering  <meyering@ascend.com>
25720
25721         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
25722         superset of the AC_TYPE_* checks in the textutils, fileutils,
25723         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
25724         AC_TYPE_PID_T.
25725
25726 1999-03-28  Jim Meyering  <meyering@ascend.com>
25727
25728         * m4/jm-macros.m4: Define GNU_PACKAGE here.
25729         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
25730         replaced e.g., in the *.sh files of the sh-utils.
25731
25732 1999-03-20  Jim Meyering  <meyering@ascend.com>
25733
25734         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
25735         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
25736         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
25737
25738 1999-03-19  Jim Meyering  <meyering@ascend.com>
25739
25740         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
25741
25742 1999-03-12  Jim Meyering  <meyering@ascend.com>
25743
25744         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
25745
25746 1999-03-07  Jim Meyering  <meyering@ascend.com>
25747
25748         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
25749         declared.
25750
25751 1999-02-17  Jim Meyering  <meyering@ascend.com>
25752
25753         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
25754         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
25755
25756 1999-02-07  Jim Meyering  <meyering@ascend.com>
25757
25758         * m4/group-member.m4: New file -- extracted from sh-utils'
25759         configure.in.
25760
25761         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
25762         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
25763
25764 1999-02-06  Jim Meyering  <meyering@ascend.com>
25765
25766         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
25767         * m4/fnmatch.m4: Likewise.
25768         * m4/getgroups.m4: Likewise.
25769         * m4/lstat.m4: Likewise.
25770         * m4/malloc.m4: Likewise.
25771         * m4/putenv.m4: Likewise.
25772         * m4/realloc.m4: Likewise.
25773         * m4/regex.m4: Likewise.
25774         * m4/stat.m4: Likewise.
25775         * m4/strftime.m4: Likewise.
25776         Suggestion from Alain Magloire.
25777
25778         * m4/chown.m4: Use `.$ac_objext', not `.o'.
25779         * m4/fnmatch.m4: Likewise.
25780         * m4/getgroups.m4: Likewise.
25781         * m4/getline.m4: Likewise.
25782         * m4/lstat.m4: Likewise.
25783         * m4/malloc.m4: Likewise.
25784         * m4/memcmp.m4: Likewise.
25785         * m4/putenv.m4: Likewise.
25786         * m4/realloc.m4: Likewise.
25787         * m4/regex.m4: Likewise.
25788         * m4/stat.m4: Likewise.
25789         * m4/strftime.m4: Likewise.
25790         Suggestion from Alain Magloire.
25791
25792         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
25793         an argument.
25794
25795         * m4/regex.m4: Add a run-time Test for proper operation of
25796         re_compile_pattern.
25797
25798 1999-01-31  Jim Meyering  <meyering@ascend.com>
25799
25800         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
25801
25802 1999-01-30  Jim Meyering  <meyering@ascend.com>
25803
25804         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
25805
25806         * m4/jm-mktime.m4: Make this a wrapper around the official
25807         AM_FUNC_MKTIME rather than my private copy, now that the official one
25808         is up to date.
25809         * m4/mktime.m4: Remove file.
25810
25811         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
25812         * m4/uptime.m4: Likewise.
25813         * m4/uintmax_t.m4: Likewise.
25814
25815 1999-01-28  Jim Meyering  <meyering@ascend.com>
25816
25817         * m4/jm-macros.m4: Use jm_AFS.
25818         * m4/afs.m4: New file (from fileutils' configure.in).
25819
25820         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
25821         * m4/chown.m4: Likewise.
25822         * m4/d-ino.m4: Likewise.
25823         * m4/d-type.m4: Likewise.
25824         * m4/fnmatch.m4: Likewise.
25825         * m4/getgroups.m4: Likewise.
25826         * m4/gettext.m4: Likewise.
25827         * m4/jm-mktime.m4: Likewise.
25828         * m4/jm-winsz2.m4: Likewise.
25829         * m4/lcmessage.m4: Likewise.
25830         * m4/ls-mntd-fs.m4: Likewise.
25831         * m4/malloc.m4: Likewise.
25832         * m4/memcmp.m4: Likewise.
25833         * m4/putenv.m4: Likewise.
25834         * m4/realloc.m4: Likewise.
25835         * m4/st_mtim.m4: Likewise.
25836         * m4/strftime.m4: Likewise.
25837
25838 1999-01-16  Jim Meyering  <meyering@ascend.com>
25839
25840         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
25841         (ARGMATCH_DIE_DECL): Define.
25842
25843 1999-01-12  Jim Meyering  <meyering@ascend.com>
25844
25845         * m4/Makefile.am.in: Rewrite to avoid using fmt.
25846         Reported by Lars Hecking.
25847
25848 1999-01-10  Jim Meyering  <meyering@ascend.com>
25849
25850         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
25851         gross kludge.
25852         * m4/inttypes_h.m4: Likewise.
25853         * m4/lstat.m4: Likewise.
25854         * m4/malloc.m4: Likewise.
25855         * m4/readdir.m4: Likewise.
25856         * m4/realloc.m4: Likewise.
25857         * m4/st_dm_mode.m4: Likewise.
25858         * m4/stat.m4: Likewise.
25859         * m4/utimbuf.m4: Likewise.
25860         * m4/utimes.m4: Likewise.
25861
25862         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
25863         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
25864         comments in config.h.in are meaningful.
25865
25866         * m4/jm-macros.m4: Require autoconf-2.13 here.
25867
25868         * m4/regex.m4: By default, don't use the included regex.c on systems
25869         with glibc 2.  Suggestion from Uli Drepper.
25870
25871 1999-01-02  Jim Meyering  <meyering@ascend.com>
25872
25873         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
25874
25875 1998-12-18  Jim Meyering  <meyering@ascend.com>
25876
25877         * m4/Makefile.am.in (Makefile.am): Simplify rule.
25878         Based on a suggestion from Lars Hecking.
25879
25880 1998-11-16  Paul Eggert  <eggert@twinsun.com>
25881
25882         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
25883
25884 1998-11-16  Jim Meyering  <meyering@ascend.com>
25885
25886         * m4/lfs.m4: Double-quote the `uname...` expression.
25887
25888 1998-11-14  Jim Meyering  <meyering@ascend.com>
25889
25890         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
25891         * m4/stat.m4: Likewise.
25892
25893 1998-11-03  Jim Meyering  <meyering@ascend.com>
25894
25895         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
25896         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
25897
25898 1998-10-18  Jim Meyering  <meyering@ascend.com>
25899
25900         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
25901
25902 1998-10-17  Jim Meyering  <meyering@ascend.com>
25903
25904         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
25905         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
25906         calls for those previously hard-coded headers.  Instead, take a new
25907         parameter.
25908         (jm_CHECK_DECLARATIONS): Reflect interface change.
25909         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
25910         (jm_CHECK_DECL_LOCALTIME_R): New macro.
25911
25912         * m4/mktime.m4: Test for spring-forward gap before long-running test.
25913
25914 1998-10-14  Jim Meyering  <meyering@ascend.com>
25915
25916         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
25917         instead of "TZ=America/Vancouver".  From Paul Eggert.
25918
25919 1998-10-11  Jim Meyering  <meyering@ascend.com>
25920
25921         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
25922         This adds a test for a recently added compatibility fix for mktime.c.
25923         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
25924
25925 1998-09-27  Jim Meyering  <meyering@ascend.com>
25926
25927         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
25928
25929         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
25930         ../configure.in, including a change from Gordon Matzigkeit to allow
25931         cross-compiling for the Hurd.
25932
25933         * m4/glibc.m4: New file/macro to test for the GNU C Library
25934         versions 1 and 2.  From Gordon Matzigkeit.
25935         Indent.
25936
25937 1998-09-21  Jim Meyering  <meyering@ascend.com>
25938
25939         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
25940
25941 1998-08-18  Paul Eggert  <eggert@twinsun.com>
25942
25943         Port nanosecond-resolution times to UnixWare 2.1.2 and
25944         pedantic Solaris 2.6.
25945
25946         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
25947         AC_STRUCT_ST_MTIM.
25948         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
25949         Generate name of ns member, instead of just 1 or undef.
25950         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
25951
25952 1998-08-15  Jim Meyering  <meyering@ascend.com>
25953
25954         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
25955         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
25956         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
25957         instead of jm_TYPE_SSIZE_T.
25958
25959 1998-08-12  Jim Meyering  <meyering@ascend.com>
25960
25961         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
25962
25963 1998-08-02  Jim Meyering  <meyering@ascend.com>
25964
25965         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
25966         in acconfig.h manually.
25967
25968 1998-07-31  Paul Eggert  <eggert@twinsun.com>
25969
25970         * m4/st_mtim.m4: New file.
25971
25972 1998-07-28  Jim Meyering  <meyering@ascend.com>
25973
25974         * m4/utimes.m4: Undef stat.
25975
25976 1998-07-25  Jim Meyering  <meyering@ascend.com>
25977
25978         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
25979         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
25980
25981 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
25982
25983         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
25984         uid and gid actually remain unchanged.
25985
25986 1998-07-07  Jim Meyering  <meyering@ascend.com>
25987
25988         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
25989
25990 1998-07-04  Jim Meyering  <meyering@ascend.com>
25991
25992         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
25993         to prove that this macro can be used in packages without regex.c.
25994
25995 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
25996
25997         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
25998         is to be used.
25999
26000 1998-07-03  Jim Meyering  <meyering@ascend.com>
26001
26002         * m4/gettext.m4: Add -lintl if it's found to be necessary.
26003
26004         * m4/gettext.m4: New file -- from gettext-0.10.35.
26005         * m4/lcmessage.m4: Likewise.
26006         * m4/progtest.m4: Likewise.
26007
26008         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
26009         * m4/jm-macros.m4: Require the new macro.
26010
26011 1998-06-29  Jim Meyering  <meyering@ascend.com>
26012
26013         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
26014         for the definition of NGROUPS (used in a system header included
26015         by sys/mount.h).
26016
26017 1998-06-28  Jim Meyering  <meyering@ascend.com>
26018
26019         * m4/ls-mntd-fs.m4: New file.
26020         * m4/fstypename.m4: New file.
26021
26022         * m4/jm-macros.m4: Require the new macro.
26023         * m4/jm-glibc-io.m4: New file.
26024
26025 1998-05-19  Jim Meyering  <meyering@ascend.com>
26026
26027         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
26028         * m4/lchown.m4: New file.
26029
26030         * m4/Makefile.am.in: New file.
26031         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
26032
26033 1998-05-14  Jim Meyering  <meyering@ascend.com>
26034
26035         * m4/Makefile.am (EXTRA_DIST): Add them.
26036         * m4/jm-macros.m4: New file.
26037         * m4/utimbuf.m4: New file.
26038
26039 1998-05-12  Jim Meyering  <meyering@ascend.com>
26040
26041         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
26042
26043 1998-05-11  Jim Meyering  <meyering@ascend.com>
26044
26045         * m4/isc-posix.m4: New file.
26046
26047 1998-05-10  Jim Meyering  <meyering@ascend.com>
26048
26049         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
26050
26051 1998-05-09  Jim Meyering  <meyering@ascend.com>
26052
26053         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
26054         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
26055         with automake.
26056
26057         * m4/ssize_t.m4: New file.
26058         * m4/mktime.m4: Remove file -- the new automake has this now.
26059
26060 1998-04-26  Jim Meyering  <meyering@ascend.com>
26061
26062         * m4/assert.m4: New file.
26063         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
26064
26065 1998-04-05  Jim Meyering  <meyering@ascend.com>
26066
26067         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
26068         (jm_PREREQ): Use it here.
26069
26070 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
26071
26072         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
26073         in acconfig.h.
26074
26075 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
26076
26077         * m4/prereq.m4: New file.
26078         * m4/error.m4: New file.
26079         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
26080
26081 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
26082
26083         * m4/getline.m4: Don't set am_cv_func_working_getline before the
26084         cache-check for the same variable -- that defeated the purpose of
26085         the test; the test program was never run.  This was a problem only
26086         on systems with losing getline functions -- HP-UX 10.20 is one.
26087         Reported by Bjorn Helgaas.
26088
26089 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
26090
26091         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
26092
26093 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
26094
26095         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
26096
26097         * m4/const.m4: New file.  Use an initializer in this declaration
26098         typedef int charset[2]; const charset x;
26099         Reported by Bob Glickstein.
26100
26101 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
26102
26103         * m4/chown.m4: Fix reversed types on -1 args to chown.
26104         From Kaveh Ghazi.
26105
26106 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
26107
26108         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
26109         Add lseek and memchr.
26110
26111         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
26112         T.E.Dickey <dickey@clark.net> said that some older preprocessors
26113         have a 20-character limit on names.
26114
26115 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
26116
26117         * m4/inttypes_h.m4: New file.
26118         * m4/uintmax_t.m4: New file.
26119         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
26120
26121 Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
26122   Free Software Foundation, Inc.
26123 Copying and distribution of this file, with or without modification,
26124 are permitted provided the copyright notice and this notice are preserved.