* lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
[gnulib.git] / ChangeLog
1 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
2
3         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
4         a circularity problem with HP-UX ia64 reported by Bob Proulx in
5         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
6         All uses changed.
7         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
8         All uses changed.
9         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
10         to _Restrict_.
11         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
12         the parameter matches the prototype.
13
14 2007-01-28  Jim Meyering  <jim@meyering.net>
15
16         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
17         sys/time.h here, reverting that part of the previous patch:
18         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
19
20 2007-01-28  Bruno Haible  <bruno@clisp.org>
21
22         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
23         value of $(SYS_TIME_H).
24         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
25         remove it conditionally, too. [added by Jim Meyering]
26         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
27         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
28         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
29         GETTIMEOFDAY_REPLACEMENT to 1.
30
31 2007-01-28  Bruno Haible  <bruno@clisp.org>
32
33         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
34         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
35         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
36         Set UNISTD_H instead of UNISTD_H2.
37         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
38
39 2007-01-28  Bruno Haible  <bruno@clisp.org>
40
41         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
42         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
43
44 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45
46         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
47         (func_create_testdir): Ensure C locale for `grep' and `tr'
48         character ranges.
49         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
50         ACLOCAL_AMFLAGS parsing state machine.
51
52 2007-01-27  Bruno Haible  <bruno@clisp.org>
53
54         * modules/unistr/base: Update.
55
56 2007-01-27  Bruno Haible  <bruno@clisp.org>
57
58         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
59         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
60         * modules/unistr/u32-mbtouc-unsafe: Renamed from
61         modules/unistr/u32-mbtouc.
62         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
63         * lib/unistr.h: Update.
64         * lib/linebreak.c: Update.
65         * modules/unistr/u32-mbtouc: Renamed from
66         modules/unistr/u32-mbtouc-safe.
67         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
68         * lib/unistr.h: Update.
69         * lib/unistr/u32-to-u8.c: Update.
70         * lib/unistr/u32-to-u16.c: Update.
71
72 2007-01-27  Bruno Haible  <bruno@clisp.org>
73
74         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
75         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
76         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
77         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
78         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
79         * modules/unistr/u16-mbtouc-unsafe: Renamed from
80         modules/unistr/u16-mbtouc.
81         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
82         * lib/unistr.h: Update.
83         * lib/linebreak.c: Update.
84         * modules/linebreak: Update.
85         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
86         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
87         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
88         * modules/unistr/u16-mbtouc: Renamed from
89         modules/unistr/u16-mbtouc-safe.
90         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
91         * lib/unistr.h: Update.
92         * lib/unistr/u16-to-u8.c: Update.
93         * modules/unistr/u16-to-u8: Update.
94         * lib/unistr/u16-to-u32.c: Update.
95         * modules/unistr/u16-to-u32: Update.
96
97 2007-01-27  Bruno Haible  <bruno@clisp.org>
98
99         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
100         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
101         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
102         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
103         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
104         * modules/unistr/u8-mbtouc-unsafe: Renamed from
105         modules/unistr/u8-mbtouc.
106         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
107         * lib/unistr.h: Update.
108         * lib/striconveh.c: Update.
109         * modules/striconveh: Update.
110         * lib/linebreak.c: Update.
111         * modules/linebreak: Update.
112         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
113         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
114         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
115         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
116         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
117         * lib/unistr.h: Update.
118         * lib/striconveh.c: Update.
119         * modules/striconveh: Update.
120         * lib/unistr/u8-to-u16.c: Update.
121         * modules/unistr/u8-to-u16: Update.
122         * lib/unistr/u8-to-u32.c: Update.
123         * modules/unistr/u8-to-u32: Update.
124
125 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
126
127         Sync from Libtool.
128         * lib/argz.c: Do not include strings.h nor memory.h, include
129         string.h unconditionally.  Patch by Simon Josefsson.
130
131 2007-01-27  Bruno Haible  <bruno@clisp.org>
132
133         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
134         from gl_HEADER_STRING_H_BODY.
135         (gl_HEADER_STRING_H_BODY): Require it.
136         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
137         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
138         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
139         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
140         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
141         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
142         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
143         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
144         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
145         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
146         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
147         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
148         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
149         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
150         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
151
152 2007-01-27  Bruno Haible  <bruno@clisp.org>
153
154         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
155         check_PROGRAMS into noinst_PROGRAMS.
156         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
157         check_PROGRAMS in this case.
158         (func_import): Set for_test to false.
159         (func_create_testdir): Set for_test to true.
160
161 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
162             Bruno Haible  <bruno@clisp.org>
163
164         * modules/strcasestr (Files): Remove lib/strcasestr.h.
165         (Depends-on): Add string.
166         (Includes): Use <string.h> instead of strcasestr.h.
167         * modules/string (Makefile.am): Also substitute the value of
168         REPLACE_STRCASESTR.
169         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
170         assume strcasestr is declared in <string.h> not <strings.h>. Also
171         set REPLACE_STRCASESTR.
172         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
173         REPLACE_STRCASESTR.
174         * lib/strcasestr.h: Remove file.
175         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
176         * lib/string_.h (strcasestr): New declaration.
177
178 2007-01-27  Bruno Haible  <bruno@clisp.org>
179
180         * lib/string_.h: Use 'extern'.
181
182 2007-01-27  Jim Meyering  <jim@meyering.net>
183
184         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
185         of set-but-not-used local, "q".
186
187         * lib/mempcpy.c: Include <config.h> before <string.h>.
188         This fixes a compilation error on HP-UX, due to the system's
189         "restrict"-using mempcpy prototype.
190
191 2007-01-26  Bruno Haible  <bruno@clisp.org>
192
193         Small optimization.
194         * lib/javacomp.c: Include c-strstr.h.
195          (is_envjavac_gcj): Use c_strstr instead of strstr.
196         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
197
198 2007-01-26  Bruno Haible  <bruno@clisp.org>
199
200         * MODULES.html.sh (Unicode string functions): Add the new modules.
201
202         * modules/uniconv/u32-strconv-to-locale: New file.
203         * lib/uniconv/u32-strconv-to-locale.c: New file.
204
205         * modules/uniconv/u16-strconv-to-locale: New file.
206         * lib/uniconv/u16-strconv-to-locale.c: New file.
207
208         * modules/uniconv/u8-strconv-to-locale: New file.
209         * lib/uniconv/u8-strconv-to-locale.c: New file.
210
211         * modules/uniconv/u32-strconv-from-locale: New file.
212         * lib/uniconv/u32-strconv-from-locale.c: New file.
213
214         * modules/uniconv/u16-strconv-from-locale: New file.
215         * lib/uniconv/u16-strconv-from-locale.c: New file.
216
217         * modules/uniconv/u8-strconv-from-locale: New file.
218         * lib/uniconv/u8-strconv-from-locale.c: New file.
219
220         * modules/uniconv/u32-strconv-to-enc: New file.
221         * lib/uniconv/u32-strconv-to-enc.c: New file.
222         * modules/uniconv/u32-strconv-to-enc-tests: New file.
223         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
224
225         * modules/uniconv/u16-strconv-to-enc: New file.
226         * lib/uniconv/u16-strconv-to-enc.c: New file.
227         * lib/uniconv/u-strconv-to-enc.h: New file.
228         * modules/uniconv/u16-strconv-to-enc-tests: New file.
229         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
230
231         * modules/uniconv/u8-strconv-to-enc: New file.
232         * lib/uniconv/u8-strconv-to-enc.c: New file.
233         * modules/uniconv/u8-strconv-to-enc-tests: New file.
234         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
235
236         * modules/uniconv/u32-strconv-from-enc: New file.
237         * lib/uniconv/u32-strconv-from-enc.c: New file.
238         * modules/uniconv/u32-strconv-from-enc-tests: New file.
239         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
240
241         * modules/uniconv/u16-strconv-from-enc: New file.
242         * lib/uniconv/u16-strconv-from-enc.c: New file.
243         * modules/uniconv/u16-strconv-from-enc-tests: New file.
244         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
245
246         * modules/uniconv/u8-strconv-from-enc: New file.
247         * lib/uniconv/u8-strconv-from-enc.c: New file.
248         * lib/uniconv/u-strconv-from-enc.h: New file.
249         * modules/uniconv/u8-strconv-from-enc-tests: New file.
250         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
251
252         * modules/uniconv/u32-conv-from-enc: New file.
253         * lib/uniconv/u32-conv-from-enc.c: New file.
254         * modules/uniconv/u32-conv-from-enc-tests: New file.
255         * tests/uniconv/test-u32-conv-from-enc.c: New file.
256
257         * modules/uniconv/u16-conv-from-enc: New file.
258         * lib/uniconv/u16-conv-from-enc.c: New file.
259         * lib/uniconv/u-conv-from-enc.h: New file.
260         * modules/uniconv/u16-conv-from-enc-tests: New file.
261         * tests/uniconv/test-u16-conv-from-enc.c: New file.
262
263         * modules/uniconv/u8-conv-from-enc: New file.
264         * lib/uniconv/u8-conv-from-enc.c: New file.
265         * modules/uniconv/u8-conv-from-enc-tests: New file.
266         * tests/uniconv/test-u8-conv-from-enc.c: New file.
267
268         * modules/uniconv/base: New file.
269         * lib/uniconv.h: New file.
270
271 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
272
273         * doc/gnulib-tool.texi (Initial import): Update to match current
274         behavior with strdup module.
275         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
276         * lib/memmem.h: Remove; all uses removed.  This is now done
277         by <string.h>.
278         * lib/mempcpy.h: Likewise.
279         * lib/memrchr.h: Likewise.
280         * lib/stpcpy.h: Likewise.
281         * lib/stpncpy.h: Likewise.
282         * lib/strcase.h: Likewise.
283         * lib/strchrnul.h: Likewise.
284         * lib/strdup.h: Likewise.
285         * lib/strndup.h: Likewise.
286         * lib/strnlen.h: Likewise.
287         * lib/strpbrk.h: Likewise.
288         * lib/strsep.h: Likewise.
289         * lib/strstr.h: Likewise.
290         * lib/strtok_r.h: Likewise.
291         * lib/string_.h: New file.
292         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
293         Rely on <string.h> instead.
294         * lib/canon-host.c: Likewise.
295         * lib/chdir-long.c: Likewise.
296         * lib/concatpath.c: Likewise.
297         * lib/exclude.c: Likewise.
298         * lib/fchdir.c: Likewise.
299         * lib/getaddrinfo.c: Likewise.
300         * lib/getcwd.c: Likewise.
301         * lib/getsubopt.c: Likewise.
302         * lib/glob.c: Likewise.
303         * lib/hard-locale.c: Likewise.
304         * lib/iconvme.c: Likewise.
305         * lib/javacomp.c: Likewise.
306         * lib/mempcpy.c: Likewise.
307         * lib/memrchr.c: Likewise.
308         * lib/regex_internal.h: Likewise.
309         * lib/stpncpy.c: Likewise.
310         * lib/strcasecmp.c: Likewise.
311         * lib/strchrnul.c: Likewise.
312         * lib/strdup.c: Likewise.
313         * lib/striconv.c: Likewise.
314         * lib/striconveh.c: Likewise.
315         * lib/striconveha.c: Likewise.
316         * lib/strncasecmp.c: Likewise.
317         * lib/strndup.c: Likewise.
318         * lib/strnlen.c: Likewise.
319         * lib/strsep.c: Likewise.
320         * lib/strstr.c: Likewise.
321         * lib/strtok_r.c: Likewise.
322         * lib/userspec.c: Likewise.
323         * lib/w32spawn.h: Likewise.
324         * lib/xstrndup.c: Likewise.
325         * lib/mountlist.c (strstr): Remove decl.
326         * m4/string_h.m4: New file.
327         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
328         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
329         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
330         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
331         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
332         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
333         Set REPLACE_STRCASECMP if necessary.
334         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
335         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
336         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
337         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
338         HAVE_DECL_STRDUP if necessary.
339         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
340         since gl_FUNC_STRNDUP does that now.
341         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
342         Check for decl here...
343         (gl_PREREQ_STRNLEN): ... not here.
344         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
345         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
346         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
347         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
348         necessary.
349         * modules/string: New file.
350         * modules/memmem (Files): Remove special-purpose include file.
351         (Depends-on): Add string.
352         (Include): Include <string.h>, not the removed file.
353         * modules/mempcpy: Likewise.
354         * modules/memrchr: Likewise.
355         * modules/stpcpy: Likewise.
356         * modules/stpncpy: Likewise.
357         * modules/strcase: Likewise.
358         * modules/strchrnul: Likewise.
359         * modules/strdup: Likewise.
360         * modules/strndup: Likewise.
361         * modules/strnlen: Likewise.
362         * modules/strpbrk: Likewise.
363         * modules/strsep: Likewise.
364         * modules/strstr: Likewise.
365         * modules/strtok_r: Likewise.
366         * tests/test-dirname.c: Don't include "strdup.h", since
367         <string.h> now suffices.
368         * tests/test-memmem.c: Don't include "memmem.h", since
369         <string.h> now suffices.
370
371 2007-01-25  Bruno Haible  <bruno@clisp.org>
372
373         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
374         *resultp is 0.
375
376         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
377         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
378         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
379         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
380
381         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
382         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
383         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
384         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
385         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
386         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
387
388 2007-01-24  Bruno Haible  <bruno@clisp.org>
389
390         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
391         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
392         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
393         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
394         gl_FUNC_FTS_CORE.
395         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
396         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
397         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
398         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
399         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
400         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
401         gl_FUNC_FCHOWNAT.
402         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
403         gl_FUNC_STRFTIME.
404         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
405         Reported by Ralf Wildenhues.
406
407 2007-01-24  Bruno Haible  <bruno@clisp.org>
408
409         Drop AC_REQUIRE calls that are redundant with the module dependencies.
410         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
411         gl_GETADDRINFO.
412         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
413         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
414         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
415
416 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
417
418         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
419         Don't use 'exit'; just return from 'main'.
420         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
421
422         * lib/fnmatch_.h: Readjust white space and comments to match
423         glibc, to avoid spurious diffs.
424
425 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
426
427         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
428         2004-12-01 change by Jakub Jelinek, since this code won't compile
429         if !LIBC.  Problem reported by Bob Proulx.
430
431 2007-01-23  Bruno Haible  <bruno@clisp.org>
432
433         * lib/striconveh.c: Include c-strcaseeq.h.
434         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
435         * modules/striconveh (Depends-on): Add c-strcaseeq.
436
437 2007-01-23  Bruno Haible  <bruno@clisp.org>
438
439         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
440
441         * modules/c-strcaseeq: New file.
442         * lib/c-strcaseeq.h: New file.
443
444         * modules/streq: New file.
445         * lib/streq.h: New file.
446
447 2007-01-23  Bruno Haible  <bruno@clisp.org>
448
449         * modules/striconveha-tests: New file.
450         * tests/test-striconveha.c: New file.
451
452         * lib/striconveha.h: Include <stdbool.h>.
453         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
454         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
455         (mem_iconveha_notranslit): Renamed from mem_iconveha.
456         (mem_iconveha): New function.
457         (str_iconveha_notranslit): Renamed from str_iconveha.
458         (str_iconveha): New function.
459         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
460         c-strcase.
461
462 2007-01-23  Bruno Haible  <bruno@clisp.org>
463
464         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
465         encodings without forgiving before trying any encoding with handler.
466         (str_iconveha): Try all encodings without forgiving before trying any
467         encoding with handler.
468
469 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
470
471         Import the following changes from libc.
472
473         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
474
475         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
476
477         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
478
479         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
480         normal_bracket label.
481
482         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
483
484         [BZ #361]
485         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
486         to normal_bracket after fetching the next character.
487
488 2007-01-22  Bruno Haible  <bruno@clisp.org>
489
490         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
491         argument.
492         * lib/striconveh.c (iconv_carefully_1): New function.
493         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
494         argument.
495         (str_cd_iconveh): Update.
496         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
497         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
498         * tests/test-striconveh.c (MAGIC): New macro.
499         (new_offsets): New function.
500         (main): Test call with and without offsets.
501
502 2007-01-22  Bruno Haible  <bruno@clisp.org>
503
504         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
505         * modules/sys_select (Makefile.am): Likewise.
506         * modules/sys_socket (Makefile.am): Likewise.
507         * modules/sys_time (Makefile.am): Likewise.
508
509 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
510
511         * modules/gettimeofday (License): Change from GPL to LGPL, since
512         gettimeofday is a library function.
513
514 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
515
516         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
517
518 2007-01-21  Bruno Haible  <bruno@clisp.org>
519
520         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
521
522 2007-01-21  Bruno Haible  <bruno@clisp.org>
523
524         * modules/striconveha: New file.
525         * lib/striconveha.h: New file.
526         * lib/striconveha.c: New file.
527         * MODULES.html.sh (Internationalization functions): Add striconveha.
528         * lib/striconv.c (str_iconv): Optimize the case of an empty input
529         string.
530         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
531
532 2007-01-21  Bruno Haible  <bruno@clisp.org>
533
534         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
535         * lib/striconveh.c (str_iconveh): Likewise.
536
537 2007-01-21  Bruno Haible  <bruno@clisp.org>
538
539         * lib/striconveh.h (mem_iconveh): New declaration.
540         * lib/striconveh.c (mem_iconveh): New function.
541         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
542
543 2007-01-21  Bruno Haible  <bruno@clisp.org>
544
545         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
546
547         * lib/striconveh.h (mem_cd_iconveh): Change specification.
548         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
549         original result buffer.
550         (str_cd_iconveh): Update.
551         * tests/test-striconveh.c (main): Update.
552
553         * lib/striconv.h (mem_cd_iconv): Change specification.
554         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
555         result buffer.
556         (str_cd_iconv): Update.
557         * tests/test-striconv.c (main): Update.
558
559 2007-01-21  Bruno Haible  <bruno@clisp.org>
560
561         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
562
563 2007-01-20  Jim Meyering  <jim@meyering.net>
564
565         * lib/userspec.c (parse_with_separator): If a user or group string
566         starts with "+", skip the corresponding name-to-ID look-up, since
567         such a look-up must fail: user and group names may not include "+".
568
569 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
570
571         * lib/poll.c: Include sys/time.h and time.h unconditionally,
572         since we now assume the sys_time module.
573         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
574         check for sys/time.h; no longer needed.
575         * modules/poll (Depends-on): Depend on sys_time.
576
577 2007-01-18  Bruno Haible  <bruno@clisp.org>
578
579         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
580         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
581
582         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
583         gettimeofday.
584
585         * tests/test-gettimeofday.c: Include <time.h>.
586         (dummy): Remove variable.
587
588         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
589         gl_HEADER_SYS_TIME_H.
590         (gl_HEADER_SYS_TIME_H): New macro.
591
592         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
593         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
594         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
595         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
596         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
597         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
598         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
599         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
600         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
601         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
602         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
603
604         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
605         last change; it caused a compilation error when cross-compiling to
606         Cygwin.
607
608 2007-01-18  Jim Meyering  <jim@meyering.net>
609
610         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
611         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
612         than the race-prone "test -d sys || mkdir sys".
613         (configure.ac): Use AC_PROG_MKDIR_P.
614         * modules/sys_select: Likewise.
615         * modules/sys_socket: Likewise.
616         * modules/sys_time: Likewise.
617
618 2007-01-18  Eric Blake  <ebb9@byu.net>
619
620         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
621         replace gettimeofday.
622         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
623         name, to avoid infinite recursion.
624
625 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
626
627         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
628         module sys_time.
629         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
630         assume timespec.h defines struct timeval.
631         * lib/settime.c: Likewise.
632         * lib/utimens.c: Likewise.
633         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
634         since we now assume the gettimeofday module.
635         * lib/tempname.c (__gen_tempname): Likewise.
636         * lib/gettimeofday.h: Remove.
637         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
638         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
639         Include <time.h>, for 'time()'.
640         (localtime_buffer_addr): Also use this workaround if
641         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
642         to simplify the uses.  All uses changed.
643         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
644         that #undef is inside {}, and 'const' follows type name consistently.
645         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
646         (gettimeofday): Do not use the maximum possible value for
647         tv->tv_usec, since that might break usages other than ls.c.
648         Instead, we'll leave ls.c alone.  This undoes today's patch
649         by Bruno.  Add a compile-time warning for 1s-clock resolution;
650         we've never observed the problem but might as well keep the
651         canary.
652         * lib/nanosleep.c: Include timespec.h first, for interface check.
653         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
654         now assume the sys_time module.
655         * lib/tempname.c: Likewise.
656         * lib/timespec.h: Likewise.
657         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
658         needed.
659         * lib/strftime.c: Likewise.
660         * lib/timespec.h: Likewise.
661         * lib/posixtm.c: Include posixtm.h first, for interface check.
662         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
663         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
664         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
665         * lib/sys_time_.h: New file.
666         * lib/timespec.h (struct timespec): Use long int, not long.
667         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
668         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
669         Remove obsolescent call to AC_HEADER_TIME.
670         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
671         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
672         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
673         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
674         Likewise.
675         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
676         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
677         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
678         into the sys_time module.  Check for gettimeofday just once.
679         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
680         for gettimeofday signature to just check the signature.  Merely
681         compile it, since linking doesn't test signature.  Improve test for
682         whether gettimeofday.o is actually needed.
683         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
684         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
685         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
686         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
687         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
688         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
689         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
690         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
691         than worrying about sys/time.h.
692         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
693         Don't bother worrying about TIME_WITH_SYS_TIME.
694         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
695         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
696         * m4/sys_time_h.m4: New file.
697         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
698         Don't include sys/time.h.  Return from main rather than exiting.
699         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
700         all uses changed.
701         * modules/gethrxtime (Depends-on): Add sys_time.
702         * modules/gettime (Depends-on): Likewise.
703         * modules/gettimeofday (Depends-on): Likewise.
704         * modules/nanosleep (Depends-on): Likewise.
705         * modules/settime (Depends-on): Likewise.
706         * modules/tempname (Depends-on): Likewise.
707         * modules/utimens (Depends-on): Likewise.
708         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
709         (Include:) Change back to <sys/time.h>.
710         (Maintainer:) Add self.
711         * modules/sys_time: New file.
712         * modules/tempname (Depends-on): Add gettimeofday.
713         * tests/test-gettimeofday.c: Include <sys/time.h>
714         rather than gettimeofday.h.
715
716 2007-01-17  Bruno Haible  <bruno@clisp.org>
717
718         * gnulib-tool (func_get_license): Revert last patch. Instead, let
719         the license default to GPL.
720         (func_create_testdir): Don't complain if a module is LGPL and its
721         tests module depends on GPLed modules.
722
723 2007-01-17  Bruno Haible  <bruno@clisp.org>
724
725         * lib/gettimeofday.c (gettimeofday): Add code for the case
726         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
727         maximum possible value for tv->tv_usec, rather than the minimum one.
728
729 2005-10-08  Martin Lambers  <marlam@marlam.de>
730 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
731 2007-01-16  Bruno Haible  <bruno@clisp.org>
732
733         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
734         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
735         gl_FUNC_GETTIMEOFDAY.
736         (Include): Add gettimeofday.h.
737         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
738         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
739         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
740         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
741         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
742         * lib/gettimeofday.h: New file.
743         * lib/gettimeofday.c: Include <sys/timeb.h>.
744         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
745         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
746         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
747         fall back on time().
748
749         * tests/test-gettimeofday.c: New file.
750         * modules/gettimeofday-tests: New file.
751
752 2007-01-16  Eric Blake  <ebb9@byu.net>
753
754         * modules/fnmatch (Depends-on): Depend on wchar.
755         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
756         * m4/fnmatch.m4: Likewise.
757         * modules/mbchar (Makefile.am): Assume <wchar.h>.
758         * m4/mbchar.m4: Likewise.
759         * modules/mbswidth (Depends-on): Depend on wchar.
760         * lib/mbswidth.c: Assume <wchar.h>.
761         * m4/mbswidth.m4: Likewise.
762         * modules/quotearg (Depends-on): Depend on wchar.
763         * lib/quotearg.c: Assume <wchar.h>.
764         * m4/quotearg.m4: Likewise.
765         * modules/regex (Depends-on): Depend on wchar.
766         * lib/regex_internal.h: Assume <wchar.h>.
767         * m4/regex.m4: Likewise.
768         * modules/stdint (Depends-on): Depend on wchar.
769         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
770         * m4/stdint.m4: Likewise.
771         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
772         * modules/strftime (Depends-on): Depend on wchar.
773         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
774         * modules/strtol (Depends-on): Depend on wchar.
775         * lib/strtol.c: Assume <wchar.h>.
776         * modules/wcwidth (Depends-on): Depend on wchar.
777         * lib/wcwidth.h: Assume <wchar.h>.
778         * m4/wcwidth.m4: Likewise.
779
780 2007-01-16  Bruno Haible  <bruno@clisp.org>
781
782         * modules/csharpexec-script: New, created from...
783         * modules/csharpexec: ... this.
784
785 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
786
787         * modules/javaexec-script: New, created from...
788         * modules/javaexec: ... this.
789
790 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
791
792         * modules/poll (Dependencies): Add sys_select.
793
794 2007-01-15  Jim Meyering  <jim@meyering.net>
795
796         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
797         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
798         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
799         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
800
801 2007-01-15  Bruno Haible  <bruno@clisp.org>
802
803         * modules/striconveh: New file.
804         * lib/striconveh.h: New file.
805         * lib/striconveh.c: New file.
806         * MODULES.html.sh (Internationalization functions): Add striconveh.
807
808         * modules/striconveh-tests: New file.
809         * tests/test-striconveh.c: New file.
810
811 2007-01-15  Bruno Haible  <bruno@clisp.org>
812
813         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
814         not from GNU libiconv or GNU libc.
815
816 2007-01-15  Bruno Haible  <bruno@clisp.org>
817
818         * doc/gnulib-intro.texi (Copyright): Explain the different license
819         terms for module descriptions, autoconf macros, tests, documentation.
820
821 2007-01-14  Bruno Haible  <bruno@clisp.org>
822
823         * modules/striconv-tests: New file.
824         * tests/test-striconv.c: New file.
825
826 2007-01-14  Bruno Haible  <bruno@clisp.org>
827
828         * modules/iconv-tests: New file.
829         * tests/test-iconv.c: New file.
830
831 2007-01-14  Bruno Haible  <bruno@clisp.org>
832
833         * gnulib-tool (func_get_license): For test modules, use the license of
834         the main module.
835
836 2007-01-14  Bruno Haible  <bruno@clisp.org>
837
838         * modules/iconv (Include): Clarify that <iconv.h> can only be included
839         if iconv is found to exist.
840
841 2007-01-14  Bruno Haible  <bruno@clisp.org>
842
843         * modules/c-ctype-tests: New file.
844         * tests/test-c-ctype.c: New file.
845
846 2007-01-14  Bruno Haible  <bruno@clisp.org>
847
848         * modules/binary-io-tests: New file.
849         * tests/test-binary-io.sh: New file.
850         * tests/test-binary-io.c: New file.
851
852 2007-01-14  Bruno Haible  <bruno@clisp.org>
853
854         * modules/array-oset-tests: New file.
855         * tests/test-array_oset.c: New file.
856
857 2007-01-14  Bruno Haible  <bruno@clisp.org>
858
859         * modules/array-list-tests: New file.
860         * tests/test-array_list.c: New file.
861
862 2007-01-14  Bruno Haible  <bruno@clisp.org>
863
864         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
865         and make.
866         Reported by Simon Josefsson in
867         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
868
869 2007-01-14  Bruno Haible  <bruno@clisp.org>
870
871         * modules/allocsa-tests: New file.
872         * tests/test-allocsa.c: New file.
873
874 2007-01-14  Bruno Haible  <bruno@clisp.org>
875
876         * modules/fchdir (Depends-on): Add absolute-header.
877         * modules/unistd (Depends-on): Likewise.
878
879 2006-12-30  Bruno Haible  <bruno@clisp.org>
880
881         * modules/fchdir: New file.
882         * modules/unistd (Files): Add lib/unistd_.h.
883         (Makefile.am): Generate unistd.h from unistd_.h.
884         * lib/fchdir.c: New file.
885         * lib/dirent_.h: New file.
886         * lib/unistd_.h: New file.
887         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
888         * m4/fchdir.m4: New file.
889         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
890         (gl_HEADER_UNISTD): Invoke it.
891         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
892         function.
893         * lib/backupfile.c (opendir, closedir): Undefine.
894         * lib/chown.c (open, close): Undefine.
895         * lib/clean-temp.c (open, close): Undefine.
896         * lib/copy-file.c (open, close): Undefine.
897         * lib/execute.c (open, close): Undefine.
898         * lib/fsusage.c (open, close): Undefine.
899         * lib/gc-gnulib.c (open, close): Undefine.
900         * lib/getcwd.c (opendir, closedir): Undefine.
901         * lib/glob.c (opendir, closedir): Undefine.
902         * lib/javacomp.c (open, close): Undefine.
903         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
904         * lib/openat-proc.c (open, close): Undefine.
905         * lib/pagealign_alloc.c (open, close): Undefine.
906         * lib/pipe.c (open, close): Undefine.
907         * lib/progreloc.c (open, close): Undefine.
908         * lib/savedir.c (opendir, closedir): Undefine.
909         * lib/utime.c (open, close): Undefine.
910         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
911
912 2007-01-10  Bruno Haible  <bruno@clisp.org>
913
914         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
915
916 2007-01-12  Eric Blake  <ebb9@byu.net>
917
918         Provide a robust <wchar.h>.  Further simplifications are now
919         possible in other modules, but not included here.
920         * modules/wchar: New module.
921         * m4/wchar.m4: New file.
922         * lib/wchar_.h: Likewise.
923         * modules/mbchar (Depends-on): Depend on wchar, as the first use
924         of the new module.
925         * MODULES.html.sh (Extended multibyte and wide character utilities):
926         New section.
927
928 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
929
930         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
931         to a reasonable default for memory allocation.
932         (xreadlink): Don't allocate a huge buffer, to work around a buggy
933         file system that reports garbage st_size values for symlinks.
934         Problem reported by Liyang Hu.
935
936 2007-01-11  Simon Josefsson  <simon@josefsson.org>
937
938         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
939         Emacs .#* auto-save files).
940
941 2007-01-11  Bruno Haible  <bruno@clisp.org>
942
943         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
944         directory.
945
946 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
947
948         Use @...@ consistently in lib/wctype_.h.
949         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
950         on it being set to 1 or 0.
951         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
952         go back to AC_SUBSTing it.
953         * modules/wctype (Makefile.am): Undo previous change.
954
955 2007-01-10  Eric Blake  <ebb9@byu.net>
956
957         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
958         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
959         * modules/wctype (Makefile.am): Likewise.
960         Reported by Chris McGuire.
961
962 2007-01-10  Jim Meyering  <jim@meyering.net>
963
964         fts.c: a small readability/maintainability improvement
965         * lib/fts.c (fts_read): Make this code slightly more readable and
966         maintainable by hoisting the "sp->fts_cur = p" assignments to
967         immediately follow the statements that set P.  Derived from
968         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
969
970 2007-01-10  Eric Blake  <ebb9@byu.net>
971
972         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
973         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
974         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
975         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
976         Reported by Chris McGuire.
977
978 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
979
980         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
981         in sed script.
982
983 2007-01-09  Bruno Haible  <bruno@clisp.org>
984
985         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
986         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
987         variables.
988         (func_module): Use them.
989
990 2007-01-09  Bruno Haible  <bruno@clisp.org>
991
992         * modules/unistr/base: New file.
993         * lib/unistr.h: New file.
994
995         * modules/unistr/u8-to-u16: New file.
996         * lib/unistr/u8-to-u16.c: New file.
997
998         * modules/unistr/u8-to-u32: New file.
999         * lib/unistr/u8-to-u32.c: New file.
1000
1001         * modules/unistr/u16-to-u8: New file.
1002         * lib/unistr/u16-to-u8.c: New file.
1003
1004         * modules/unistr/u16-to-u32: New file.
1005         * lib/unistr/u16-to-u32.c: New file.
1006
1007         * modules/unistr/u32-to-u8: New file.
1008         * lib/unistr/u32-to-u8.c: New file.
1009
1010         * modules/unistr/u32-to-u16: New file.
1011         * lib/unistr/u32-to-u16.c: New file.
1012
1013         * modules/unistr/u8-check: New file.
1014         * modules/unistr/u16-check: New file.
1015         * modules/unistr/u32-check: New file.
1016         * lib/unistr/u8-check.c: New file.
1017         * lib/unistr/u16-check.c: New file.
1018         * lib/unistr/u32-check.c: New file.
1019
1020         * modules/unistr/u8-chr: New file.
1021         * modules/unistr/u16-chr: New file.
1022         * modules/unistr/u32-chr: New file.
1023         * lib/unistr/u8-chr.c: New file.
1024         * lib/unistr/u16-chr.c: New file.
1025         * lib/unistr/u32-chr.c: New file.
1026
1027         * modules/unistr/u8-cmp: New file.
1028         * modules/unistr/u16-cmp: New file.
1029         * modules/unistr/u32-cmp: New file.
1030         * lib/unistr/u8-cmp.c: New file.
1031         * lib/unistr/u16-cmp.c: New file.
1032         * lib/unistr/u32-cmp.c: New file.
1033
1034         * modules/unistr/u8-cpy: New file.
1035         * modules/unistr/u16-cpy: New file.
1036         * modules/unistr/u32-cpy: New file.
1037         * lib/unistr/u8-cpy.c: New file.
1038         * lib/unistr/u16-cpy.c: New file.
1039         * lib/unistr/u32-cpy.c: New file.
1040         * lib/unistr/u-cpy.h: New file.
1041
1042         * modules/unistr/u8-cpy-alloc: New file.
1043         * modules/unistr/u16-cpy-alloc: New file.
1044         * modules/unistr/u32-cpy-alloc: New file.
1045         * lib/unistr/u8-cpy-alloc.c: New file.
1046         * lib/unistr/u16-cpy-alloc.c: New file.
1047         * lib/unistr/u32-cpy-alloc.c: New file.
1048         * lib/unistr/u-cpy-alloc.h: New file.
1049
1050         * modules/unistr/u8-endswith: New file.
1051         * modules/unistr/u16-endswith: New file.
1052         * modules/unistr/u32-endswith: New file.
1053         * lib/unistr/u8-endswith.c: New file.
1054         * lib/unistr/u16-endswith.c: New file.
1055         * lib/unistr/u32-endswith.c: New file.
1056         * lib/unistr/u-endswith.h: New file.
1057
1058         * modules/unistr/u8-mblen: New file.
1059         * modules/unistr/u16-mblen: New file.
1060         * modules/unistr/u32-mblen: New file.
1061         * lib/unistr/u8-mblen.c: New file.
1062         * lib/unistr/u16-mblen.c: New file.
1063         * lib/unistr/u32-mblen.c: New file.
1064
1065         * modules/unistr/u8-mbtouc: New file.
1066         * modules/unistr/u16-mbtouc: New file.
1067         * modules/unistr/u32-mbtouc: New file.
1068         * lib/unistr/u8-mbtouc.c: New file.
1069         * lib/unistr/u16-mbtouc.c: New file.
1070         * lib/unistr/u32-mbtouc.c: New file.
1071
1072         * modules/unistr/u8-mbtouc-safe: New file.
1073         * modules/unistr/u16-mbtouc-safe: New file.
1074         * modules/unistr/u32-mbtouc-safe: New file.
1075         * lib/unistr/u8-mbtouc-safe.c: New file.
1076         * lib/unistr/u16-mbtouc-safe.c: New file.
1077         * lib/unistr/u32-mbtouc-safe.c: New file.
1078
1079         * modules/unistr/u8-move: New file.
1080         * modules/unistr/u16-move: New file.
1081         * modules/unistr/u32-move: New file.
1082         * lib/unistr/u8-move.c: New file.
1083         * lib/unistr/u16-move.c: New file.
1084         * lib/unistr/u32-move.c: New file.
1085         * lib/unistr/u-move.h: New file.
1086
1087         * modules/unistr/u8-next: New file.
1088         * modules/unistr/u16-next: New file.
1089         * modules/unistr/u32-next: New file.
1090         * lib/unistr/u8-next.c: New file.
1091         * lib/unistr/u16-next.c: New file.
1092         * lib/unistr/u32-next.c: New file.
1093
1094         * modules/unistr/u8-prev: New file.
1095         * modules/unistr/u16-prev: New file.
1096         * modules/unistr/u32-prev: New file.
1097         * lib/unistr/u8-prev.c: New file.
1098         * lib/unistr/u16-prev.c: New file.
1099         * lib/unistr/u32-prev.c: New file.
1100
1101         * modules/unistr/u8-set: New file.
1102         * modules/unistr/u16-set: New file.
1103         * modules/unistr/u32-set: New file.
1104         * lib/unistr/u8-set.c: New file.
1105         * lib/unistr/u16-set.c: New file.
1106         * lib/unistr/u32-set.c: New file.
1107         * lib/unistr/u-set.h: New file.
1108
1109         * modules/unistr/u8-startswith: New file.
1110         * modules/unistr/u16-startswith: New file.
1111         * modules/unistr/u32-startswith: New file.
1112         * lib/unistr/u8-startswith.c: New file.
1113         * lib/unistr/u16-startswith.c: New file.
1114         * lib/unistr/u32-startswith.c: New file.
1115         * lib/unistr/u-startswith.h: New file.
1116
1117         * modules/unistr/u8-stpcpy: New file.
1118         * modules/unistr/u16-stpcpy: New file.
1119         * modules/unistr/u32-stpcpy: New file.
1120         * lib/unistr/u8-stpcpy.c: New file.
1121         * lib/unistr/u16-stpcpy.c: New file.
1122         * lib/unistr/u32-stpcpy.c: New file.
1123         * lib/unistr/u-stpcpy.h: New file.
1124
1125         * modules/unistr/u8-stpncpy: New file.
1126         * modules/unistr/u16-stpncpy: New file.
1127         * modules/unistr/u32-stpncpy: New file.
1128         * lib/unistr/u8-stpncpy.c: New file.
1129         * lib/unistr/u16-stpncpy.c: New file.
1130         * lib/unistr/u32-stpncpy.c: New file.
1131         * lib/unistr/u-stpncpy.h: New file.
1132
1133         * modules/unistr/u8-strcat: New file.
1134         * modules/unistr/u16-strcat: New file.
1135         * modules/unistr/u32-strcat: New file.
1136         * lib/unistr/u8-strcat.c: New file.
1137         * lib/unistr/u16-strcat.c: New file.
1138         * lib/unistr/u32-strcat.c: New file.
1139         * lib/unistr/u-strcat.h: New file.
1140
1141         * modules/unistr/u8-strchr: New file.
1142         * modules/unistr/u16-strchr: New file.
1143         * modules/unistr/u32-strchr: New file.
1144         * lib/unistr/u8-strchr.c: New file.
1145         * lib/unistr/u16-strchr.c: New file.
1146         * lib/unistr/u32-strchr.c: New file.
1147
1148         * modules/unistr/u8-strcmp: New file.
1149         * modules/unistr/u16-strcmp: New file.
1150         * modules/unistr/u32-strcmp: New file.
1151         * lib/unistr/u8-strcmp.c: New file.
1152         * lib/unistr/u16-strcmp.c: New file.
1153         * lib/unistr/u32-strcmp.c: New file.
1154
1155         * modules/unistr/u8-strcpy: New file.
1156         * modules/unistr/u16-strcpy: New file.
1157         * modules/unistr/u32-strcpy: New file.
1158         * lib/unistr/u8-strcpy.c: New file.
1159         * lib/unistr/u16-strcpy.c: New file.
1160         * lib/unistr/u32-strcpy.c: New file.
1161         * lib/unistr/u-strcpy.h: New file.
1162
1163         * modules/unistr/u8-strcspn: New file.
1164         * modules/unistr/u16-strcspn: New file.
1165         * modules/unistr/u32-strcspn: New file.
1166         * lib/unistr/u8-strcspn.c: New file.
1167         * lib/unistr/u16-strcspn.c: New file.
1168         * lib/unistr/u32-strcspn.c: New file.
1169         * lib/unistr/u-strcspn.h: New file.
1170
1171         * modules/unistr/u8-strdup: New file.
1172         * modules/unistr/u16-strdup: New file.
1173         * modules/unistr/u32-strdup: New file.
1174         * lib/unistr/u8-strdup.c: New file.
1175         * lib/unistr/u16-strdup.c: New file.
1176         * lib/unistr/u32-strdup.c: New file.
1177         * lib/unistr/u-strdup.h: New file.
1178
1179         * modules/unistr/u8-strlen: New file.
1180         * modules/unistr/u16-strlen: New file.
1181         * modules/unistr/u32-strlen: New file.
1182         * lib/unistr/u8-strlen.c: New file.
1183         * lib/unistr/u16-strlen.c: New file.
1184         * lib/unistr/u32-strlen.c: New file.
1185         * lib/unistr/u-strlen.h: New file.
1186
1187         * modules/unistr/u8-strmblen: New file.
1188         * modules/unistr/u16-strmblen: New file.
1189         * modules/unistr/u32-strmblen: New file.
1190         * lib/unistr/u8-strmblen.c: New file.
1191         * lib/unistr/u16-strmblen.c: New file.
1192         * lib/unistr/u32-strmblen.c: New file.
1193
1194         * modules/unistr/u8-strmbtouc: New file.
1195         * modules/unistr/u16-strmbtouc: New file.
1196         * modules/unistr/u32-strmbtouc: New file.
1197         * lib/unistr/u8-strmbtouc.c: New file.
1198         * lib/unistr/u16-strmbtouc.c: New file.
1199         * lib/unistr/u32-strmbtouc.c: New file.
1200
1201         * modules/unistr/u8-strncat: New file.
1202         * modules/unistr/u16-strncat: New file.
1203         * modules/unistr/u32-strncat: New file.
1204         * lib/unistr/u8-strncat.c: New file.
1205         * lib/unistr/u16-strncat.c: New file.
1206         * lib/unistr/u32-strncat.c: New file.
1207         * lib/unistr/u-strncat.h: New file.
1208
1209         * modules/unistr/u8-strncmp: New file.
1210         * modules/unistr/u16-strncmp: New file.
1211         * modules/unistr/u32-strncmp: New file.
1212         * lib/unistr/u8-strncmp.c: New file.
1213         * lib/unistr/u16-strncmp.c: New file.
1214         * lib/unistr/u32-strncmp.c: New file.
1215
1216         * modules/unistr/u8-strncpy: New file.
1217         * modules/unistr/u16-strncpy: New file.
1218         * modules/unistr/u32-strncpy: New file.
1219         * lib/unistr/u8-strncpy.c: New file.
1220         * lib/unistr/u16-strncpy.c: New file.
1221         * lib/unistr/u32-strncpy.c: New file.
1222         * lib/unistr/u-strncpy.h: New file.
1223
1224         * modules/unistr/u8-strnlen: New file.
1225         * modules/unistr/u16-strnlen: New file.
1226         * modules/unistr/u32-strnlen: New file.
1227         * lib/unistr/u8-strnlen.c: New file.
1228         * lib/unistr/u16-strnlen.c: New file.
1229         * lib/unistr/u32-strnlen.c: New file.
1230         * lib/unistr/u-strnlen.h: New file.
1231
1232         * modules/unistr/u8-strpbrk: New file.
1233         * modules/unistr/u16-strpbrk: New file.
1234         * modules/unistr/u32-strpbrk: New file.
1235         * lib/unistr/u8-strpbrk.c: New file.
1236         * lib/unistr/u16-strpbrk.c: New file.
1237         * lib/unistr/u32-strpbrk.c: New file.
1238         * lib/unistr/u-strpbrk.h: New file.
1239
1240         * modules/unistr/u8-strrchr: New file.
1241         * modules/unistr/u16-strrchr: New file.
1242         * modules/unistr/u32-strrchr: New file.
1243         * lib/unistr/u8-strrchr.c: New file.
1244         * lib/unistr/u16-strrchr.c: New file.
1245         * lib/unistr/u32-strrchr.c: New file.
1246
1247         * modules/unistr/u8-strspn: New file.
1248         * modules/unistr/u16-strspn: New file.
1249         * modules/unistr/u32-strspn: New file.
1250         * lib/unistr/u8-strspn.c: New file.
1251         * lib/unistr/u16-strspn.c: New file.
1252         * lib/unistr/u32-strspn.c: New file.
1253         * lib/unistr/u-strspn.h: New file.
1254
1255         * modules/unistr/u8-strstr: New file.
1256         * modules/unistr/u16-strstr: New file.
1257         * modules/unistr/u32-strstr: New file.
1258         * lib/unistr/u8-strstr.c: New file.
1259         * lib/unistr/u16-strstr.c: New file.
1260         * lib/unistr/u32-strstr.c: New file.
1261         * lib/unistr/u-strstr.h: New file.
1262
1263         * modules/unistr/u8-strtok: New file.
1264         * modules/unistr/u16-strtok: New file.
1265         * modules/unistr/u32-strtok: New file.
1266         * lib/unistr/u8-strtok.c: New file.
1267         * lib/unistr/u16-strtok.c: New file.
1268         * lib/unistr/u32-strtok.c: New file.
1269         * lib/unistr/u-strtok.h: New file.
1270
1271         * modules/unistr/u8-uctomb: New file.
1272         * modules/unistr/u16-uctomb: New file.
1273         * modules/unistr/u32-uctomb: New file.
1274         * lib/unistr/u8-uctomb.c: New file.
1275         * lib/unistr/u16-uctomb.c: New file.
1276         * lib/unistr/u32-uctomb.c: New file.
1277
1278         * MODULES.html.sh (Unicode string functions): Add the new modules.
1279
1280 2007-01-08  Bruno Haible  <bruno@clisp.org>
1281
1282         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
1283         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
1284         subdirectories.
1285
1286 2007-01-08  Karl Berry  <karl@gnu.org>
1287
1288         * doc/error.texi: mention that main() fns must set program_name
1289         when progname is used.
1290
1291 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
1292
1293         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
1294         WCTYPE_H is empty, for the benefit of builds from non-distclean
1295         directories.  Problem reported by Eric Blake in
1296         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
1297
1298 2007-01-08  Bruno Haible  <bruno@clisp.org>
1299
1300         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
1301         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
1302         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
1303         PROVIDE_CANONICALIZE_FILENAME_MODE.
1304         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
1305
1306 2007-01-08  Bruno Haible  <bruno@clisp.org>
1307
1308         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
1309         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
1310         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
1311         * lib/fts.c: Likewise.
1312         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
1313
1314 2006-12-25  Bruno Haible  <bruno@clisp.org>
1315
1316         * modules/utf8-ucs4-safe: New file.
1317         * lib/utf8-ucs4-safe.h: New file.
1318         * lib/unistr/utf8-ucs4-safe.c: New file.
1319
1320         * modules/utf16-ucs4-safe: New file.
1321         * lib/utf16-ucs4-safe.h: New file.
1322         * lib/unistr/utf16-ucs4-safe.c: New file.
1323
1324         * MODULES.html.sh (Unicode string functions): Add the new modules.
1325
1326 2007-01-08  Bruno Haible  <bruno@clisp.org>
1327
1328         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
1329         (Depends-on): Add unitypes.
1330         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
1331         (u8_mbtouc_aux): Move out to separate file.
1332         (u8_mbtouc): Use ucs4_t, uint8_t types.
1333         * lib/unistr/utf8-ucs4.c: New file.
1334
1335         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
1336         (Depends-on): Add unitypes.
1337         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
1338         (u16_mbtouc_aux): Move out to separate file.
1339         (u16_mbtouc): Use ucs4_t, uint16_t types.
1340         * lib/unistr/utf16-ucs4.c: New file.
1341
1342         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
1343         (Depends-on): Add unitypes.
1344         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
1345         (u8_uctomb_aux): Move out to separate file.
1346         (u8_uctomb): Use ucs4_t, uint8_t types.
1347         * lib/unistr/ucs4-utf8.c: New file.
1348
1349         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
1350         (Depends-on): Add unitypes.
1351         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
1352         (u16_uctomb_aux): Move out to separate file.
1353         (u16_uctomb): Use ucs4_t, uint16_t types.
1354         * lib/unistr/ucs4-utf16.c: New file.
1355
1356 2006-12-25  Bruno Haible  <bruno@clisp.org>
1357
1358         * modules/unitypes: New file.
1359         * lib/unitypes.h: New file.
1360         * MODULES.html.sh (func_all_modules): New section "Unicode string
1361         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
1362         this section. Add unitypes.
1363
1364 2007-01-08  Bruno Haible  <bruno@clisp.org>
1365
1366         Avoid variable names that conflict with those from libtool.
1367         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
1368         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
1369         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
1370         library_names_spec to acl_library_names_spec, hardcode_* to
1371         acl_hardcode_*.
1372         Reported by Ralf Wildenhues.
1373
1374 2007-01-08  Bruno Haible  <bruno@clisp.org>
1375
1376         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
1377         definition.
1378         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
1379         definition.
1380         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
1381         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
1382         definition.
1383         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
1384         definition.
1385         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
1386         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
1387         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
1388         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
1389         definition.
1390         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
1391         definition.
1392         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
1393         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
1394         GC_USE_<algorithm>.
1395         * lib/gc-libgcrypt.c: Likewise.
1396         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
1397         * modules/gc-arctwo (configure.ac): Likewise.
1398         * modules/gc-des (configure.ac): Likewise.
1399         * modules/gc-hmac-md5 (configure.ac): Likewise.
1400         * modules/gc-hmac-sha1 (configure.ac): Likewise.
1401         * modules/gc-md2 (configure.ac): Likewise.
1402         * modules/gc-md4 (configure.ac): Likewise.
1403         * modules/gc-md5 (configure.ac): Likewise.
1404         * modules/gc-random (configure.ac): Likewise.
1405         * modules/gc-rijndael (configure.ac): Likewise.
1406         * modules/gc-sha1 (configure.ac): Likewise.
1407
1408 2007-01-08  Bruno Haible  <bruno@clisp.org>
1409
1410         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
1411         macro definition.
1412         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
1413         definition.
1414         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
1415         definition.
1416         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
1417         * modules/fcntl-safer (configure.ac): Likewise.
1418         * modules/fopen-safer (configure.ac): Likewise.
1419         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
1420         GNULIB_FWRITEERROR macro definition.
1421
1422 2007-01-08  Bruno Haible  <bruno@clisp.org>
1423
1424         * m4/gnulib-common.m4: New file.
1425         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
1426         (func_get_filelist): Add m4/gnulib-common.m4.
1427
1428 2007-01-08  Bruno Haible  <bruno@clisp.org>
1429
1430         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
1431         command.
1432
1433 2007-01-08  Jim Meyering  <jim@meyering.net>
1434
1435         Use a more robust test for a "can't happen" condition.
1436         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
1437         narrowed the st_size value.  Presuming the "can't happen" condition
1438         is true, that narrowing could conceivably convert an invalid st_size
1439         value into a valid one.  Instead, use a change based on Matthew
1440         Woehlke's original patch.
1441
1442         Slight readability improvement: use an assert-like macro
1443         in place of literal "abort ()" uses.
1444         * lib/fts.c (fts_assert): Define.
1445         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
1446         Use this macro instead of a bare 'abort'.
1447
1448 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
1449
1450         Don't worry about using IRIX 5.3's wctype.h broken definitions;
1451         simply work around them.
1452         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
1453         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
1454         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before declaring.
1455         Don't bother to define as macros, since the standard doesn't require it.
1456         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
1457         longer worry about IRIX 5.3.
1458         (HAVE_WCTYPE_CTMP_BUG): Remove.
1459
1460 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
1461
1462         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
1463         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
1464         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
1465         Problems reported by Georg Schwarz for IRIX 5.3.
1466
1467         * gnulib-tool (autoconf_minversion): Take the maximum version number
1468         found, not the minimum.  Problem reported by James Youngman.
1469
1470 2007-01-03  Karl Berry  <karl@gnu.org>
1471
1472         * doc/error.texi: new file, explaining interaction with progname.
1473         * doc/gnulib.texi: include it.  Update copyright.
1474
1475 2007-01-03  Simon Josefsson  <simon@josefsson.org>
1476
1477         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
1478         AC_CANONICAL_HOST, to improve autobuild outputs.
1479
1480 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
1481             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
1482
1483         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
1484         sockets, server sockets, and other file descriptors.  Count errors
1485         to compute the return value.  Reorder the code a bit to be easier
1486         to follow.  Don't set event bits that were not requested (except
1487         POLLERR and POLLHUP).
1488
1489 2007-01-01  Bruno Haible  <bruno@clisp.org>
1490
1491         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
1492
1493 2007-01-03  Jim Meyering  <jim@meyering.net>
1494
1495         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
1496
1497 2007-01-02  Bruno Haible  <bruno@clisp.org>
1498
1499         * modules/settime (Include): Require timespec.h.
1500         * modules/nanosleep (Include): Likewise.
1501
1502 2007-01-01  Bruno Haible  <bruno@clisp.org>
1503
1504         * gnulib-tool (func_emit_copyright_notice): Bump year.
1505         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
1506
1507 2007-01-01  Bruno Haible  <bruno@clisp.org>
1508
1509         Improve support for OpenBSD.
1510         * build-aux/config.rpath (libname_spec): Export.
1511         (library_names_spec): New variable. Export.
1512         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
1513         library_names_spec from the config.rpath output. Locate shared library
1514         through the name pattern in library_names_spec.
1515
1516 2007-01-01  Eric Blake  <ebb9@byu.net>
1517
1518         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
1519
1520 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
1521
1522         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
1523         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
1524         assume the C locale, and avoid an "eval" that could cause trouble.
1525         Problem with SORT reported by Bob Proulx.
1526
1527         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
1528         Define.  Trivial patch from Henning Nielsen Lund, originally
1529         sent to bug-grep@gnu.org today.
1530
1531 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
1532
1533         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
1534         struct stat.  Problem reported by Henning Nielsen Lund.
1535         * lib/acl.c: Include acl.h first, to check interface.  Don't
1536         bother to include sys/types.h and sys/stat.h again.
1537
1538 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
1539
1540         Import the following change from libc; problem reported by
1541         Sven Verdoolaege.
1542
1543         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
1544
1545         [BZ #1373]
1546         * lib/argp.h: Remove __NTH for __argp_usage inline function.
1547
1548 2006-12-28  Jim Meyering  <jim@meyering.net>
1549
1550         * build-aux/announce-gen: Do not assume that the package
1551         builds any of tar.gz, tar.bz2, and .xdelta files.
1552         Suggestion from Simon Josefsson.
1553
1554 2006-12-28  Simon Josefsson  <simon@josefsson.org>
1555
1556         * modules/announce-gen: New file.
1557
1558 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
1559
1560         * lib/mbchar.h: Just include <wctype.h>; the wctype module
1561         handles its gotchas now.
1562         * lib/mbswidth.c: Likewise.
1563         * lib/wcwidth.h: Likewise.
1564         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
1565         and iswcntrl; the wctype module does this stuff now.
1566         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
1567         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
1568         * modules/mbchar (Depends-on): Add wctype.
1569         * modules/mbswidth (Depends-on): Likewise.
1570         * modules/wcwidth (Depends-on): Likewise.
1571
1572 2006-12-27  Eric Blake  <ebb9@byu.net>
1573
1574         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
1575         module uses more than what <wctype.h> is required to provide.
1576
1577 2006-12-26  Eric Blake  <ebb9@byu.net>
1578
1579         * gnulib-tool (sed_extract_prog): Avoid space-tab.
1580
1581 2006-12-26  Eric Blake  <ebb9@byu.net>
1582
1583         * modules/absolute-header: New module.
1584         * modules/fcntl (Depends-on): Depend on it.
1585         * modules/inttypes (Depends-on): Likewise.
1586         * modules/stdint (Depends-on): Likewise.
1587         * modules/sys_stat (Depends-on): Likewise.
1588         * modules/wctype (Depends-on): Likewise.
1589         * MODULES.html.sh (Support for building libraries and
1590         executables): Document it.
1591
1592 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
1593
1594         * gnulib-tool (SED): Remove, undoing previous change.
1595         The problem was that it broke coreutils on Solaris, because
1596         "sed --posix" leaked into a makefile.
1597         (sed): New alias, if 'alias' and GNU sed.
1598
1599 2006-12-24  Jim Meyering  <jim@meyering.net>
1600
1601         Work around an fchownat bug in glibc-2.4:
1602         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
1603         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
1604         in spite of the -P option.
1605         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
1606         New macros.
1607         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
1608         * modules/openat (Files): Add lib/fchownat.c.
1609         * lib/openat.c (fchownat): Don't define here.  Move to...
1610         * lib/fchownat.c: ...this new file.
1611
1612 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
1613
1614         Fix bug reported by Bruno Haible in
1615         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
1616         where quotearg.c didn't compile on Mac OS X 10.2 because it
1617         lacks <wchar.h> and wint_t.
1618         * lib/wctype_.h (__wctype_wint_t): New type.
1619         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
1620         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
1621         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
1622         Arg is now of type __wctype_wint_t, not wint_t.
1623         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
1624         substitute HAVE_WINT_T.
1625         * modules/wctype (Files): Add m4/wint_t.m4.
1626         (wctype.h): Substitute HAVE_WINT_T.
1627
1628 2006-12-23  Bruno Haible  <bruno@clisp.org>
1629
1630         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
1631
1632 2006-12-23  Bruno Haible  <bruno@clisp.org>
1633
1634         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
1635         S_ISLNK.
1636         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
1637         mingw.
1638
1639 2006-12-22  Bruno Haible  <bruno@clisp.org>
1640
1641         * lib/copy-file.c: Include acl.h.
1642         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
1643         Close the file descriptors only after being done with copy_acl.
1644         * modules/copy-file (Depends-on): Add acl.
1645
1646 2006-12-22  Bruno Haible  <bruno@clisp.org>
1647
1648         * gnulib-tool (SED): New variable.
1649         Use $SED instead of sed everywhere.
1650
1651 2006-12-22  Bruno Haible  <bruno@clisp.org>
1652
1653         * modules/no-c++: New file.
1654         * m4/no-c++.m4: New file.
1655         * MODULES.html.sh (Support for building libraries and executables):
1656         Add no-c++.
1657
1658 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
1659
1660         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
1661         Include <limits.h>, and use its INT_MAX to rewrite the
1662         j loop so that it does not overflow 'int'.  Problem reported by
1663         Ralf Wildenhues in
1664         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
1665         Play it safe by shifting left by 1 rather than multiplying by 2,
1666         as GCC is less likely to optimize this away when the value
1667         is signed (when it assumes overflow leads to undefined behavior).
1668         Also, don't assume time_t uses two's complement.
1669
1670 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
1671
1672         * MODULES.html.sh: New module wctype.
1673         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
1674         * lib/fnmatch.c: Don't bother to include <wchar.h> before
1675         <wctype.h>, since the new wctype module should fix this.
1676         * lib/quotearg.c: Include <wctype.h> unconditionally, since
1677         the wctype module should arrange for it.
1678         * lib/regex_internal.h: Likewise.
1679         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
1680         since the wctype module should handle this now.
1681         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
1682         * modules/fnmatch (Depends-on): Add wctype.
1683         * modules/quotearg (Depends-on): Likewise.
1684         * modules/regex (Depends-on): Likewise.
1685
1686 2006-12-19  Bruno Haible  <bruno@clisp.org>
1687
1688         * lib/strdup.h [C++]: Wrap definitions in extern "C".
1689         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
1690
1691 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1692
1693         * modules/savewd (Depends-on): Fix dependency on fcntl.
1694
1695 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
1696
1697         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
1698         conforms to C99, rather than relying on the user's environment
1699         setting of STDINT_H.
1700
1701 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
1702         and Eric Blake  <ebb9@byu.net>
1703
1704         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
1705         This is more consistent with the other defines here.
1706         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
1707         Port to z/OS.  Problem reported by Paul Gilmartin.
1708         Change local vars to use gl_ prefix rather than ac_.
1709         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
1710         with other defines.
1711         * modules/double-slash-root: New module.
1712         * modules/dirname (Files): Remove m4/double-slash-root.m4.
1713         (Depends-on): Add double-slash-root.
1714         * MODULES.html.sh (File system functions): Mention new module.
1715
1716 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
1717
1718         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
1719         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
1720         This is for the benefit of gzip, which doesn't do i18n.
1721
1722 2006-12-12  Jim Meyering  <jim@meyering.net>
1723
1724         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
1725         Reported by Andreas Schwab <schwab@suse.de>.
1726
1727 2006-12-12  Bruno Haible  <bruno@clisp.org>
1728
1729         Merge these changes.
1730         2006-09-05  Bruno Haible  <bruno@clisp.org>
1731         * lib/iconvme.c (iconv_string): No need to save and restore errno when
1732         iconv_alloc succeeded.
1733         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
1734         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
1735         test for " && dest " at the end - dest is always != NULL there. Call
1736         iconv with 4xNULL arguments initially, to reset the state. Call iconv
1737         with 2xNULL arguments, also to flush the state storage. Handle the
1738         IRIX iconv behaviour. Realloc the final result, to throw away unused
1739         memory.
1740
1741 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
1742
1743         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
1744         and fchmodat unconditionally, since glibc 2.4 has them.
1745         Problem reported by Arkadiusz Miskiewicz.
1746
1747 2006-12-10  Bruno Haible  <bruno@clisp.org>
1748
1749         * gnulib-tool (func_import): Show the include files only for those
1750         modules that are copied and specified.
1751         Reported by Karl Berry.
1752
1753 2006-12-08  Jim Meyering  <jim@meyering.net>
1754
1755         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
1756         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
1757
1758         * build-aux/announce-gen: Add two new options, both optional:
1759         --bootstrap-tools=TOOL_LIST
1760               a comma-separated list of tools, e.g.,
1761               autoconf,automake,bison,gnulib
1762         --gnulib-snapshot-date=DATE
1763               if gnulib is in the bootstrap tool list,
1764               then report this as the snapshot date.
1765               If not specified, use the current date/time.
1766               If you specify a date here, be sure it's UTC.
1767
1768 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1769
1770         * tests/test-argp-2.sh: Fix test to match actual output.
1771         (func_compare): Fix sed script to be portable.
1772
1773 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
1774
1775         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
1776         workaround for this case.  It is not autoconfigured now; offhand
1777         it's hard to see how to autoconfigure it.
1778
1779 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
1780
1781         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
1782         a directory that is about to be chowned.  Such a directory's
1783         initial file permissions should permit the owner only and this
1784         should not be changed until after the chown, since the group and
1785         other bits would be incorrect if they granted permission before
1786         the chown.
1787
1788         Fix porting problem for iswctype reported by Georg Schwarz in:
1789         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
1790         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
1791         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
1792         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
1793         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
1794
1795 2006-12-03  Jim Meyering  <jim@meyering.net>
1796
1797         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
1798         p->fts_statp may not yet be defined.
1799         (fts_read): Instead, set it in the caller, once p->fts_statp is
1800         sure to be defined, and corresponds to a top-level directory.
1801         This bug made du -x fail.  Here's the coreutils test case:
1802         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
1803         Reported by Mike Frysinger.
1804
1805 2006-12-01  Jim Meyering  <jim@meyering.net>
1806
1807         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
1808         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
1809         Reported by Simon Josefsson.
1810
1811 2006-11-30  Jim Meyering  <jim@meyering.net>
1812
1813         * m4/warning.m4: Use the all-permissive copyright notice
1814         recommended by RMS (rather than LGPL).
1815         * m4/vararrays.m4: Likewise.
1816         * m4/flexmember.m4: Likewise.
1817
1818 2006-11-29  Bruno Haible  <bruno@clisp.org>
1819
1820         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
1821         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
1822         using +=.
1823         Reported by Simon Josefsson <simon@josefsson.org>.
1824
1825 2006-11-28  James Youngman <jay@gnu.org>
1826
1827         * README: Advise users that they might find the bug-gnulib@gnu.org
1828         and autotools-announce@gnu.org mailing lists useful.
1829
1830 2006-11-28  Bruno Haible  <bruno@clisp.org>
1831
1832         * m4/ptrdiff_max.m4: Remove file.
1833
1834 2006-11-21  Bruno Haible  <bruno@clisp.org>
1835
1836         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
1837         _AC_COMPUTE_INT.
1838         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
1839         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
1840         _AC_COMPUTE_INT.
1841         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
1842         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
1843         _AC_COMPUTE_INT.
1844         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
1845
1846 2006-11-28  Jim Meyering  <jim@meyering.net>
1847
1848         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
1849         warning from "gcc -Wshadow" about shadowing the builtin.
1850
1851 2006-11-27  Bruno Haible  <bruno@clisp.org>
1852
1853         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
1854         _AC_COMPUTE_INT.
1855         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
1856
1857 2006-11-27  Bruno Haible  <bruno@clisp.org>
1858             Paul Eggert  <eggert@cs.ucla.edu>
1859
1860         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
1861
1862 2006-11-26  Bruno Haible  <bruno@clisp.org>
1863
1864         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
1865         noinst_LTLIBRARIES.
1866
1867 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
1868             Bruno Haible  <bruno@clisp.org>
1869
1870         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
1871         if compiling with "gcc -ansi".
1872
1873 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
1874
1875         Fix some incompatibilities with gcc -ansi -pedantic.
1876         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
1877         if compiling pedantically with GCC, unless it's C99 or later.
1878         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
1879         it mishandles gcc -ansi -pedantic as well.
1880         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
1881         if gcc -pedantic.
1882         * lib/regexec.c (check_node_accept_bytes): Don't use auto
1883         initializers for struct if -pedantic, unless it's C99 or later.
1884
1885 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
1886
1887         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
1888         Don't close an fd more than once. Identical atimes indicate
1889         success, not failure.
1890
1891 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
1892
1893         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
1894
1895 2006-11-23  Jim Meyering  <jim@meyering.net>
1896
1897         * build-aux/announce-gen: New file.  From coreutils.
1898
1899 2006-11-22  Jim Meyering  <jim@meyering.net>
1900
1901         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
1902         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
1903         (fts_read): Use a temporary to narrow the overused st_size member
1904         before using it in a switch statement.  Reported by Matthew Woehlke.
1905
1906         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
1907         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
1908
1909 2006-11-20  Bruno Haible  <bruno@clisp.org>
1910
1911         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
1912         changequote instead of pairs of brackets.
1913         Reported by Andreas Schwab <schwab@suse.de>.
1914
1915 2006-11-21  Jim Meyering  <jim@meyering.net>
1916
1917         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
1918         so as to remain compatible with older compilers.
1919         Patch from Michael Deutschmann.
1920
1921 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
1922
1923         * MODULES.html.sh (File system functions): Add openat.
1924
1925         * lib/openat.h (rpl_fstatat): New macro, if
1926         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
1927         (fstatat): Define to rpl_fstatat under the same conditions,
1928         unless COMPILING_FSTATAT.
1929         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
1930         seems to have the bug.
1931         * lib/fstatat.c: New file.
1932         * modules/openat (Files): Add it.
1933
1934 2006-11-20  Bruno Haible  <bruno@clisp.org>
1935
1936         * Makefile: New file.
1937
1938 2006-11-20  Jim Meyering  <jim@meyering.net>
1939
1940         The beginnings of syntax-related checks for gnulib.
1941         * lib/Makefile: New file.
1942         * lib/t-idcache: New script.  Ensure that the two halves of
1943         idcache.c stay in sync.
1944
1945         * lib/idcache.c: Adjust comments in user- and group- portions to
1946         be more accurate, and to be consistent with one another.
1947
1948 2006-11-20  Jim Meyering  <jim@meyering.net>
1949
1950         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
1951         continue using the flexible array member (thus, this module performs
1952         half as many malloc calls), with the addition that...
1953         (getgroup, getuser): Consistently record a non-match via an empty
1954         "name" string, and map an empty string match to a NULL return value.
1955         * modules/idcache (Depends-on): Re-add flexmember.
1956
1957         * lib/idcache.c (getuser): Remove all uses of the register keyword.
1958         (getuidbyname, getgroup, getgidbyname): Likewise.
1959
1960         Use cleaner syntax: NULL rather than 0.
1961         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
1962
1963 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
1964
1965         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
1966         It mishandled the case where the group was missing.
1967         Problem reported by Greg Schafer.
1968         * modules/idcache: Likewise.
1969
1970 2006-11-18  Jim Meyering  <jim@meyering.net>
1971
1972         * check-module (%exempt_header): Add exception for some
1973         conditionally-included headers.
1974
1975         * modules/i-ring (Depends-on): Add verify.
1976         (License): Change to LGPL.
1977
1978 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
1979
1980         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
1981         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
1982         and inttostr.h.  Use snprintf rather than uinttostr, so that
1983         LGPLed code doesn't depend on GPLed.
1984
1985 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
1986
1987         * modules/inline (License): Change from GPL to LGPL.
1988
1989 2006-11-17  Jim Meyering  <jim@meyering.net>
1990
1991         * modules/d-type (License): Switch to LGPL.
1992
1993 2006-11-15  Bruno Haible  <bruno@clisp.org>
1994
1995         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
1996
1997 2006-11-15  Eric Blake  <ebb9@byu.net>
1998
1999         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
2000         the module dependency.
2001
2002 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
2003             Bruno Haible  <bruno@clisp.org>
2004
2005         * gnulib-tool (func_create_testdir): Add license consistency check.
2006
2007 2006-11-15  Eric Blake  <ebb9@byu.net>
2008
2009         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
2010         random "(cached)" in configure output.
2011
2012 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2013
2014         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
2015         test for conforming inttypes.h is both announced and cached.
2016
2017         * MODULES.html.sh (seen_modules, seen_files): New variables.
2018         (func_module): Rewrite to use a few less gnulib-tool and sed
2019         invocations.  Avoid a couple of quadratic algorithms for ...
2020         (missed_modules, missed_files): ... these, with ...
2021         (func_append, func_tmpdir): ... these new functions, from
2022         gnulib-tool.  Analogously, install traps for cleanup.
2023
2024         * tests/test-gc.c (main): Remove unused variables.
2025         * tests/test-read-file.c: Include stdlib.h, for 'free'.
2026
2027 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
2028
2029         * modules/inttostr (License): Change to LGPL.
2030
2031 2006-11-14  Eric Blake  <ebb9@byu.net>
2032
2033         * modules/tempname (License): Change to LGPL.
2034
2035 2006-11-14  Eric Blake  <ebb9@byu.net>
2036
2037         * doc/functions.texi (Function Portability): *printf functions on
2038         Cygwin now understand all POSIX size specifiers.
2039
2040 2006-11-14  Bruno Haible  <bruno@clisp.org>
2041
2042         * modules/c-ctype (License): Change to LGPL.
2043
2044 2006-11-12  Bruno Haible  <bruno@clisp.org>
2045
2046         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
2047         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
2048         for GNOME libraries, for which the include files are installed in
2049         subdirectories of $prefix/include.
2050
2051 2006-11-12  Bruno Haible  <bruno@clisp.org>
2052
2053         * m4/lib-link.m4: Require at least autoconf-2.54.
2054         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
2055         name to underscores for the --with option.
2056
2057 2006-11-13  Bruno Haible  <bruno@clisp.org>
2058
2059         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
2060         the tests directory.
2061         Reported by Ralf Wildenhues.
2062
2063 2006-11-13  Bruno Haible  <bruno@clisp.org>
2064
2065         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
2066         (func_emit_initmacro_end): Undo the override here.
2067         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
2068         Works around the famous automake error in coreutils.
2069
2070 2006-11-13  Eric Blake  <ebb9@byu.net>
2071
2072         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
2073         element, not its node.
2074
2075 2006-11-12  Bruno Haible  <bruno@clisp.org>
2076
2077         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
2078         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
2079
2080 2006-11-12  Bruno Haible  <bruno@clisp.org>
2081
2082         * gnulib-tool: New option --local-symlink.
2083         (func_usage): Document it.
2084         (lsymbolic): New variable.
2085         (func_import, func_create_testdir): If --symlink was not specified,
2086         test whether --local-symlink was specified and the file comes from
2087         the local_gnulib_dir.
2088
2089 2006-11-12  Bruno Haible  <bruno@clisp.org>
2090
2091         * gnulib-tool (func_ln): New function.
2092         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
2093
2094 2006-11-12  Bruno Haible  <bruno@clisp.org>
2095
2096         Finish support for source files in subdirectories.
2097         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
2098         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
2099         AUTOMAKE_OPTIONS.
2100         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
2101
2102 2006-11-12  Bruno Haible  <bruno@clisp.org>
2103
2104         * gnulib-tool (func_get_automake_snippet): Synthesize also an
2105         EXTRA_lib_SOURCES augmentation.
2106         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
2107
2108 2006-11-12  Jim Meyering  <jim@meyering.net>
2109
2110         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
2111         file descriptors.  This also averts a failure on systems with
2112         native openat support when a traversed directory lacks "x" access.
2113         * lib/fts_.h: Include "i-ring.h"
2114         (struct FTS) [fts_fd_ring]: New member.
2115         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
2116         (FCHDIR): Add parentheses.
2117         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
2118         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
2119         When descending, rather than simply closing the previous
2120         fts_cwd_fd value, push that file descriptor onto the ring.
2121         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
2122         (fts_open): Initialize the new fd_ring member.
2123         (fts_close): Clear the ring.
2124         (fts_safe_changedir): When possible, use our new fd_ring to skip
2125         the diropen and fstat and dev/ino comparison that would normally
2126         accompany a virtual `chdir ("..")'.
2127
2128         * modules/fts (Depends-on): Add i-ring.
2129         * modules/i-ring: New module.
2130         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
2131         * m4/i-ring.m4: New file.
2132
2133 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2134
2135         * gnulib-tool (func_create_testdir): Fix replacement of
2136         `build-aux' in configure.ac.  Run autotools in gltests
2137         subdirectory.
2138         (func_create_testdir, func_create_megatestdir, test): There is
2139         no need for '--force' in most autotool invocations in a new
2140         tree.  Actually fail the whole test if any of the tools, or the
2141         configure or make stages fail.
2142
2143         Sync from Automake.
2144         * build-aux/gnupload: Revert last change.  Add pointer to upload
2145         instructions of the GNU Maintenance Instructions.
2146         Suggestion by Karl Berry.
2147
2148 2006-11-10  Jim Meyering  <jim@meyering.net>
2149
2150         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
2151
2152 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
2153
2154         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
2155         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
2156         (bind_textdomain_codeset) [! ENABLE_NLS]:
2157         Evaluate all the arguments.  That way, callers get compatible behavior
2158         if the arguments have side effects.  Also, it avoids some GCC
2159         diagnostics in some cases; Joel E. Denny reported problems when Bison
2160         was configured with --enable-gcc-warnigs.
2161
2162 2006-11-10  Jim Meyering  <jim@meyering.net>
2163
2164         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
2165         relevant options in CFLAGS (like -O, -fno-inline) are taken into
2166         account.
2167
2168 2006-11-10  Jim Meyering  <jim@meyering.net>
2169
2170         * modules/inline: New file/module.
2171         * modules/xalloc (Files): Remove m4/inline.m4.
2172         (Depends-on): Add inline, instead.
2173         * modules/oset: Likewise.
2174         * modules/list: Likewise.
2175
2176 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
2177
2178         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
2179         Problem reported by Matthew Woehlke.
2180
2181 2006-11-09  Bruno Haible  <bruno@clisp.org>
2182
2183         * lib/tempname.c (gen_tempname): Remove variant that invokes
2184         __gen_tempname.
2185         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
2186         __gen_tempname.
2187
2188 2006-11-08  Bruno Haible  <bruno@clisp.org>
2189
2190         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
2191         to 'yes' instead of 'cross-compiling'.
2192
2193 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
2194
2195         * lib/quotearg.h (quotearg_free): New decl.
2196         * lib/quotearg.c (quotearg_free): New function.
2197         (slot0, nslots, slotvec0, slotvec):
2198         Now file-scope so that quotearg_free can get at them.
2199
2200 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2201
2202         Sync from Automake.
2203         * build-aux/gnupload: Add missing 'gnu' to example URL.
2204         Report by Karl Berry.
2205
2206 2006-11-08  Bruno Haible  <bruno@clisp.org>
2207
2208         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
2209         Suggested by Paul Eggert.
2210
2211 2006-11-08  Jim Meyering  <jim@meyering.net>
2212
2213         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
2214         It's already included if !_LIBC.
2215         (fts_safe_changedir): Add a comment.
2216
2217 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
2218
2219         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
2220         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
2221         Matthew Woehlke.
2222
2223         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
2224         definitions up, to avoid colliding with change below.
2225         (static_inline) [HAVE_INLINE]: New macro.
2226         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
2227         Provide extern decls when !HAVE_INLINE.  Do not define unless
2228         static_inline is defined, either by us or by xmalloc.c.  Use
2229         static_inline rather than static inline.
2230         (XCALLOC): Optimize sizeof(T) = 1 case.
2231         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
2232
2233 2006-11-07  Bruno Haible  <bruno@clisp.org>
2234
2235         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
2236         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
2237         AC_C_INLINE.
2238         * modules/xalloc (Files): Add m4/inline.m4.
2239
2240 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2241
2242         * README: Fix typo.
2243         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
2244         (Miscellanous Notes): ...from this.
2245
2246 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
2247
2248         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
2249         Mention that offsetof should be used instead of sizeof.
2250         From Bruno Haible.
2251
2252 2006-11-07  Bruno Haible  <bruno@clisp.org>
2253
2254         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
2255
2256 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
2257
2258         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
2259         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
2260         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
2261         (gl_tree_add_before, gl_tree_add_after):
2262         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
2263         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
2264         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
2265         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
2266         (gl_linked_add_after, gl_linked_add_at): Likewise.
2267         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
2268         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
2269         (gl_tree_add_before, gl_tree_add_after): Likewise.
2270         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
2271         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
2272         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
2273
2274 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2275
2276         * lib/gl_oset.h: Use C comment style, not C++ comment style.
2277
2278 2006-11-06  Bruno Haible  <bruno@clisp.org>
2279
2280         * m4/inline.m4: New file.
2281         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
2282         * modules/list (Files): Add m4/inline.m4.
2283         * modules/oset (Files): Likewise.
2284
2285 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
2286
2287         * lib/idcache.c: Include <stddef.h>, for offsetof.
2288         (struct userid.name): Change from char * to a flexible array member.
2289         All uses changed.
2290         * modules/idcache (Depends-on): Add flexmember.
2291
2292         * MODULES.html.sh (Core language properties): New module flexmember.
2293         * modules/flexmember, m4/flexmember.m4: New files.
2294
2295         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
2296         inline functions that are identical with the old xnmalloc_inline,
2297         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
2298         that we can avoid some unnecessary integer multiplications and
2299         divisions in the common case where the element size is known at
2300         compile time.
2301         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
2302         needed.
2303         (xnboundedmalloc): Remove.
2304         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
2305         arguments, for consistency with rest of this header.
2306         (xcharalloc): Rewrite using XNMALLOC.
2307         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
2308         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
2309         versions have been moved to lib/xalloc.h and renamed to be the
2310         non-*_inline versions.
2311         (xmalloc, xrealloc): Implement without reference to the xnmalloc
2312         and xnrealloc functions, since those functions are now inline and
2313         now call us.
2314         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
2315         renaming described above.
2316         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
2317         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
2318         captures the dependency in AC_C_INLINE.
2319
2320         New module canonicalize-lgpl, proposed by Charles Wilson in
2321         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
2322         with a few small changes afterwards.
2323         * MODULES.html.sh (File system functions): New module
2324         canonicalize-lgpl.
2325         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
2326         and canonicalize_file_name.
2327         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
2328         * modules/canonicalize-lgpl: New files.
2329
2330 2006-11-05  Bruno Haible  <bruno@clisp.org>
2331
2332         * gnulib-tool (func_import, func_create_testdir): Create directories
2333         also for files in subdirectories of lib/.
2334
2335 2006-11-05  Bruno Haible  <bruno@clisp.org>
2336
2337         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
2338         ANSI C compliant.
2339
2340 2006-11-03  Bruno Haible  <bruno@clisp.org>
2341
2342         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
2343         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
2344         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
2345         (xnboundedmalloc): New inline function.
2346         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
2347         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
2348         xmalloc.
2349         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
2350         xmalloc.
2351         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
2352         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
2353         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
2354         xmalloc.
2355         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
2356         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
2357         xmalloc.
2358         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
2359         gl_tree_add_after): Use XMALLOC instead of xmalloc.
2360         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
2361         xmalloc.
2362         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
2363         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
2364         gl_tree_add_after): Use XMALLOC instead of xmalloc.
2365         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
2366         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
2367         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
2368         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
2369
2370 2006-11-03  Bruno Haible  <bruno@clisp.org>
2371
2372         * lib/c-ctype.h [C++]: Define functions without name mangling.
2373         * lib/fwriteerror.h [C++]: Likewise.
2374         * lib/gcd.h [C++]: Likewise.
2375         * lib/linebreak.h [C++]: Likewise.
2376
2377 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
2378
2379         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
2380         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
2381         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
2382         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
2383         Check for functions and headers just once.
2384         Check for declaration of canonicalize_file_name.
2385         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
2386
2387 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
2388
2389         * gnulib-tool (func_import): Fix typo in actioncmd.
2390
2391 2006-11-02  Bruno Haible  <bruno@clisp.org>
2392
2393         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
2394         newline sequence in the Makefile.am snippet as a space, like "make"
2395         does.
2396         Reported by Roger Persson <perrog@gmail.com>.
2397
2398 2006-11-01  Bruno Haible  <bruno@clisp.org>
2399
2400         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
2401         already declared in <string.h>.
2402         * lib/strcase.h (strncasecmp): Don't declare it if yes.
2403
2404 2006-11-01  Bruno Haible  <bruno@clisp.org>
2405
2406         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
2407         * lib/strcase.h: Include <string.h>.
2408         (strcasecmp): Define to rpl_strcasecmp here.
2409
2410 2006-11-01  Bruno Haible  <bruno@clisp.org>
2411
2412         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
2413
2414 2006-11-01  Eric Blake  <ebb9@byu.net>
2415
2416         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
2417
2418         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
2419
2420 2006-10-29  Bruno Haible  <bruno@clisp.org>
2421
2422         Make it compile in C++ mode.
2423         * lib/full-write.c (full_rw): Add a cast.
2424
2425 2006-11-01  Bruno Haible  <bruno@clisp.org>
2426
2427         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
2428         be POSIX compliant.
2429         Reported by Roger Persson <perrog@gmail.com>.
2430
2431 2006-11-01  Eric Blake  <ebb9@byu.net>
2432
2433         * lib/getopt_.h: Fix comments.
2434
2435 2006-10-31  Eric Blake  <ebb9@byu.net>
2436
2437         * modules/tmpdir (Depends-on): Add sys_stat.
2438         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
2439         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
2440         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
2441         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
2442         tempname.
2443
2444 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
2445
2446         Avoid some C++ diagnostics reported by Bruno Haible.
2447         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
2448         xmalloc.
2449         (quotearg_alloc): Use xcharalloc rather than xmalloc.
2450         (struct slotvec): Move to top level.
2451         (quotearg_n_options): Rewrite to avoid xmalloc.
2452         * lib/xalloc.h (xcharalloc): New function.
2453         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
2454         [defined __cplusplus]: Add function template that provides result
2455         type propagation.  This part of the change is from Bruno Haible.
2456
2457 2006-10-29  Bruno Haible  <bruno@clisp.org>
2458
2459         Make it compile in C++ mode.
2460         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
2461         * lib/strnlen1.c (strnlen1): Cast memchr result.
2462         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
2463         * lib/clean-temp.c (string_equals, string_hash): Add casts.
2464         (create_temp_dir): Rename local variable 'template'.
2465         (compile_csharp_using_sscli): Add cast.
2466         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
2467         * lib/findprog.c (find_in_path): Likewise.
2468         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
2469         * lib/wait-process.c (register_slave_subprocess): Likewise.
2470
2471 2006-10-22  Bruno Haible  <bruno@clisp.org>
2472
2473         * modules/tsearch: New file.
2474         * lib/tsearch.h: New file.
2475         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
2476         * m4/tsearch.m4: New file.
2477         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
2478
2479 2006-10-29  Eric Blake  <ebb9@byu.net>
2480
2481         * lib/arcfour.c: Assume config.h.
2482         * lib/arctwo.c: Likewise.
2483         * lib/base64.c: Likewise.
2484         * lib/check-version.c: Likewise.
2485         * lib/crc.c: Likewise.
2486         * lib/des.c: Likewise.
2487         * lib/gc-gnulib.c: Likewise.
2488         * lib/gc-libgcrypt.c: Likewise.
2489         * lib/gc-pbkdf2-sha1.c: Likewise.
2490         * lib/getaddrinfo.c: Likewise.
2491         * lib/getdelim.c: Likewise.
2492         * lib/getline.c: Likewise.
2493         * lib/hmac-md5.c: Likewise.
2494         * lib/hmac-sha1.c: Likewise.
2495         * lib/iconvme.c: Likewise.
2496         * lib/md2.c: Likewise.
2497         * lib/md4.c: Likewise.
2498         * lib/memxor.c: Likewise.
2499         * lib/read-file.c: Likewise.
2500         * lib/readline.c: Likewise.
2501         * lib/rijndael-alg-fst.c: Likewise.
2502         * lib/rijndael-api-fst.c: Likewise.
2503         * lib/xgetdomainname.c: Likewise.
2504
2505 2006-10-28  Eric Blake  <ebb9@byu.net>
2506
2507         * lib/xstrndup.c: Assume config.h.
2508
2509 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
2510
2511         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
2512         stat-macros.h is now for our own macros, whereas stat_h is for
2513         macros in the <sys/stat.h> name space.
2514         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
2515         (STAT_MACROS_H): Remove.
2516         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
2517         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
2518         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
2519         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
2520         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
2521         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
2522         Move these macros to ...
2523         * lib/stat_.h: here.  Don't include stat-macros.h.
2524         * lib/canonicalize.c: Don't include stat-macros.h.
2525         * lib/chown.c: Likewise.
2526         * lib/euidaccess.c: Likewise.
2527         * lib/file-type.c: Likewise.
2528         * lib/filemode.c: Likewise.
2529         * lib/glob.c: Likewise.
2530         * lib/isapipe.c: Likewise.
2531         * lib/lchown.c: Likewise.
2532         * lib/lstat.c: Likewise.
2533         * lib/mkdir-p.c: Likewise.
2534         * lib/rmdir.c: Likewise.
2535         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
2536         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
2537         unless mkdir isn't declared, to speed up 'configure'.
2538         Always create sys/stat.h, since it's unlikely any real sys/stat.h
2539         would define all the S_* symbols.
2540         * modules/canonicalize (Depends-on):
2541         Depend on sys_stat, not stat-macros.
2542         * modules/chown: Likewise.
2543         * modules/euidaccess: Likewise.
2544         * modules/filemode: Likewise.
2545         * modules/file-type: Likewise.
2546         * modules/glob: Likewise.
2547         * modules/isapipe: Likewise.
2548         * modules/lchown: Likewise.
2549         * modules/lstat: Likewise.
2550         * modules/mkancesdirs: Likewise.
2551         * modules/rmdir: Likewise.
2552         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
2553         * modules/modechange: Likewise.
2554         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
2555         (configure.ac): Remove gl_STAT_MACROS.
2556         * modules/sys_stat (Depends-on): Remove stat-macros.
2557
2558 2006-10-27  Bruno Haible  <bruno@clisp.org>
2559
2560         * m4/signed.m4: Remove file.
2561         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
2562         invocation.
2563         * modules/vasnprintf (Files): Remove m4/signed.m4.
2564
2565 2006-10-27  Bruno Haible  <bruno@clisp.org>
2566
2567         Update to GNU gettext 0.16.
2568         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
2569         m4/inttypes-h.m4, m4/signed.m4.
2570         * m4/gettext.m4: Update to GNU gettext 0.16.
2571         * m4/intl.m4: New file, from GNU gettext.
2572         * m4/intldir.m4: New file, from GNU gettext.
2573         * config/srclist.txt: Update
2574
2575 2006-10-27  Eric Blake  <ebb9@byu.net>
2576
2577         * MODULES.html.sh: Document tempname.
2578         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
2579         dependencies.
2580         (Files): Move lib/tempname.c...
2581         * modules/tempname: ...to this new module.
2582         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
2583         (gl_PREREQ_TEMPNAME): Move...
2584         * m4/tempname.m4: ...to this new file.
2585         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
2586         * modules/sys_stat (Depends-on): Add stat-macros.
2587         * lib/stat_.h (includes): Pick up stat macros.
2588         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
2589         if stat macros are broken.
2590         * lib/tempname.c (includes): No need to include "stat-macros.h".
2591         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
2592         (direxists, __path_search) [!_LIBC]: Don't compile these in
2593         gnulib; the tmpdir module covers that.
2594         * lib/tempname.h: New file.
2595
2596 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
2597
2598         * COPYING: Explain how gnulib-tool converts licence headers.
2599         Almost all wording by Eric Blake.
2600
2601 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
2602
2603         * lib/mbchar.h (is_basic_table): Make read-only.
2604         * lib/mbchar.c (is_basic_table): Likewise.
2605         Reported by John Darrington.
2606
2607 2006-10-25  Bruno Haible  <bruno@clisp.org>
2608
2609         * lib/progname.h (set_program_name): Undefine before defining.
2610
2611 2006-10-25  Bruno Haible  <bruno@clisp.org>
2612
2613         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
2614         false for non-gcc C++ compilers.
2615         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
2616
2617 2006-10-24  Bruno Haible  <bruno@clisp.org>
2618
2619         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
2620         iconv implementations like Irix iconv.
2621
2622 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
2623
2624         * modules/vararrays: New file.
2625         * m4/vararrays.m4: New file, taken from diffutils.
2626         * MODULES.html.sh: New module vararrays.
2627
2628 2006-10-24  Karl Berry  <karl@gnu.org>
2629
2630         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
2631         Don't call GNU Unix.
2632
2633 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2634
2635         * users.txt: Add Libtool.
2636
2637         Sync from Libtool:
2638
2639         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
2640
2641         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
2642         to gnulib's policy of including config.h unconditionally.
2643
2644 2006-10-24  Bruno Haible  <bruno@clisp.org>
2645
2646         * modules/wcwidth (Files): Add m4/wint_t.m4.
2647         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
2648         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
2649
2650 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
2651
2652         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
2653         to pacify GCC with some -W flags enabled.  Problem reported by
2654         Bruno Haible.
2655
2656 2006-10-24  Jim Meyering  <jim@meyering.net>
2657
2658         * MODULES.html.sh: Remove uinttostr.  It's not a module.
2659         Reported by Karl Berry.
2660
2661 2006-10-23  Bruno Haible  <bruno@clisp.org>
2662
2663         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
2664
2665 2006-10-24  Bruno Haible  <bruno@clisp.org>
2666
2667         * lib/gl_list.h: Use C comment style, not C++ comment style.
2668
2669 2006-10-23  Eric Blake  <ebb9@byu.net>
2670
2671         * lib/getaddrinfo.c (includes): Add missing include.
2672
2673 2006-10-23  Bruno Haible  <bruno@clisp.org>
2674             Paul Eggert  <eggert@cs.ucla.edu>
2675
2676         Ability to rename obstack_free.
2677         * lib/obstack.h (__obstack_free): New macro. Declare instead of
2678         obstack_free.
2679         (obstack_free): Invoke the __obstack_free macro.
2680         * lib/obstack.c (obstack_free): Use __obstack_free macro.
2681
2682 2006-10-23  Bruno Haible  <bruno@clisp.org>
2683             Paul Eggert  <eggert@cs.ucla.edu>
2684
2685         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
2686         __argc, __argv from the declaration. (They are defined as macros on
2687         mingw.)
2688
2689 2006-10-22  Bruno Haible  <bruno@clisp.org>
2690
2691         * doc/gnulib-intro.texi: New file.
2692         * doc/gnulib.texi: Include it.
2693
2694 2006-10-21  Bruno Haible  <bruno@clisp.org>
2695
2696         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
2697         "Introduction", "Miscellanous Notes", "Particular Modules".
2698
2699 2006-10-21  Bruno Haible  <bruno@clisp.org>
2700
2701         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
2702         Change mostlyclean-local rule to avoid sh syntax error from bash
2703         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
2704
2705 2006-10-23  Jim Meyering  <jim@meyering.net>
2706
2707         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
2708         in place of snprintf.
2709
2710         * modules/inttostr (Files): Add lib/uinttostr.c.
2711         * lib/uinttostr.c (inttostr): New file/function.
2712         * lib/inttostr.h (uinttostr): Declare.
2713         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
2714         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
2715         Add uinttostr.
2716         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
2717
2718 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
2719
2720         * lib/canonicalize.c (ELOOP): Define if not already defined.
2721         Problem reported by Bruno Haible in
2722         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
2723
2724 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
2725
2726         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
2727         Problem reported by Perry Smith and Ville Laurikari.
2728
2729         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
2730         uses.
2731
2732 2006-10-19  Bruno Haible  <bruno@clisp.org>
2733
2734         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
2735         for mingw.
2736
2737 2006-10-19  Bruno Haible  <bruno@clisp.org>
2738
2739         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
2740         Needed for mingw.
2741
2742 2006-10-19  Bruno Haible  <bruno@clisp.org>
2743
2744         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
2745
2746 2006-10-19  Bruno Haible  <bruno@clisp.org>
2747
2748         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
2749         it.
2750
2751 2006-10-19  Bruno Haible  <bruno@clisp.org>
2752
2753         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
2754         invocation.
2755
2756 2006-10-19  Bruno Haible  <bruno@clisp.org>
2757
2758         * gnulib-tool (func_create_testdir): Don't include ftruncate and
2759         mountlist by default.
2760
2761 2006-10-16  Bruno Haible  <bruno@clisp.org>
2762
2763         * lib/c-strstr.c: Include c-strstr.h.
2764
2765 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
2766
2767         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
2768         in a slash.
2769
2770 2006-10-18  Bruno Haible  <bruno@clisp.org>
2771
2772         * lib/lock.h [C++]: Wrap definitions in extern "C".
2773
2774 2006-10-18  Bruno Haible  <bruno@clisp.org>
2775
2776         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
2777         gl_LIBOBJS list.
2778
2779 2006-10-18  Bruno Haible  <bruno@clisp.org>
2780
2781         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
2782
2783 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
2784
2785         * lib/xstrtol.h: Include gettext.h.
2786         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
2787         Problem reported by Eric Blake.
2788         * modules/xstrtol (Depends-on): Add gettext-h.
2789
2790 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
2791
2792         * lib/strftime.c (advance): New macro.
2793         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
2794         incomplete type, so you can't add 0 to it.  Problem and patch
2795         reported by Eelco Dolstra for dietlibc.
2796
2797 2006-10-18  Jim Meyering  <jim@meyering.net>
2798
2799         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
2800         type for a local, and rename it: s/up/user_proc/.
2801
2802 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
2803
2804         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
2805         READ_UTMP_USER_PROCESS.
2806         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
2807
2808 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
2809
2810         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
2811         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
2812
2813 2006-10-17  Eric Blake  <ebb9@byu.net>
2814
2815         * lib/sigprocmask.c (sigprocmask): Fix typo.
2816
2817         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
2818
2819         * modules/clean-temp (Makefile.am): Don't add to make output...
2820         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
2821         config.h.
2822
2823 2006-10-17  Bruno Haible  <bruno@clisp.org>
2824
2825         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
2826         differently if DEFAULT_TEXT_DOMAIN is set.
2827
2828 2006-10-16  Bruno Haible  <bruno@clisp.org>
2829
2830         * lib/clean-temp.c: Include fwriteerror.h.
2831
2832 2006-10-16  Bruno Haible  <bruno@clisp.org>
2833
2834         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
2835
2836 2006-10-16  Bruno Haible  <bruno@clisp.org>
2837
2838         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
2839         * lib/sigprocmask.h: Include <sys/types.h>.
2840         (sigset_t): Use the system's definition if present.
2841
2842 2006-10-17  Eric Blake  <ebb9@byu.net>
2843
2844         * lib/xvasprintf.c (includes): Assume config.h.
2845         * lib/xasprintf.c (includes): Likewise.
2846
2847 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
2848
2849         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
2850         at least as wide as intmax_t.
2851
2852 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
2853
2854         (Imported from Automake.)
2855         * build-aux/gnupload: Update to version 1.1 of directive file.
2856
2857 2006-10-16  Eric Blake  <ebb9@byu.net>
2858
2859         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
2860         match Automake 1.10a.
2861
2862 2006-10-14  Bruno Haible  <bruno@clisp.org>
2863
2864         * modules/sigprocmask: New file.
2865         * lib/sigprocmask.h: New file.
2866         * lib/sigprocmask.c: New file.
2867         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
2868         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
2869         request sigprocmask.o.
2870         (gl_PREREQ_SIGPROCMASK): New macro.
2871         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
2872         (Depends-on): Add sigprocmask.
2873         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
2874         gt_SIGNALBLOCKING. Test for 'raise' only once.
2875         * lib/fatal-signal.c: Include sigprocmask.h.
2876         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
2877         unblock_fatal_signals): Define always.
2878         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
2879         sigprocmask.
2880
2881 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
2882
2883         Sync from Automake.
2884         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
2885         which incorrectly sets the mode of an existing destination
2886         directory.  In some cases the unpatched install-sh could do the
2887         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
2888         system.  We hope this is rare in practice, but it's clearly worth
2889         fixing.  Problem reported by Alex Unleashed in
2890         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
2891         Also, don't bother to check for -m bugs unless we're using -m;
2892         suggested by Stepan Kasal.
2893
2894 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2895
2896         Sync from Automake.
2897         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
2898         `-c' flag, so they appear at the same position as in %FASTDEP%
2899         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
2900         which ignores unknown options only after the first non-option.
2901         Bug report against M4 by Nelson H. F. Beebe.
2902
2903 2006-10-13  Jim Meyering  <jim@meyering.net>
2904
2905         Fix a bug in yesterday's change.
2906         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
2907         p->fts_statp->st_dev would be used uninitialized.
2908         Ensures that we always call fts_stat on the very first entry.
2909         Miklos Szeredi reported that find -xdev stopped working.
2910
2911 2006-10-12  Bruno Haible  <bruno@clisp.org>
2912
2913         * gnulib-tool (func_get_automake_snippet): Append an automatically
2914         computed EXTRA_DIST augmentation.
2915         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
2916         * modules/alloca-opt (Makefile.am): Likewise.
2917         * modules/allocsa (Makefile.am): Likewise.
2918         * modules/arcfour (Makefile.am): Likewise.
2919         * modules/arctwo (Makefile.am): Likewise.
2920         * modules/argmatch (Makefile.am): Likewise.
2921         * modules/argz (Makefile.am): Likewise.
2922         * modules/atexit (Makefile.am): Likewise.
2923         * modules/backupfile (Makefile.am): Likewise.
2924         * modules/byteswap (Makefile.am): Likewise.
2925         * modules/c-strtod (Makefile.am): Likewise.
2926         * modules/c-strtold (Makefile.am): Likewise.
2927         * modules/calloc (Makefile.am): Likewise.
2928         * modules/canon-host (Makefile.am): Likewise.
2929         * modules/canonicalize (Makefile.am): Likewise.
2930         * modules/chdir-long (Makefile.am): Likewise.
2931         * modules/chdir-safer (Makefile.am): Likewise.
2932         * modules/check-version (Makefile.am): Likewise.
2933         * modules/chown (Makefile.am): Likewise.
2934         * modules/cloexec (Makefile.am): Likewise.
2935         * modules/close-stream (Makefile.am): Likewise.
2936         * modules/closeout (Makefile.am): Likewise.
2937         * modules/crc (Makefile.am): Likewise.
2938         * modules/csharpexec (Makefile.am): Likewise.
2939         * modules/cycle-check (Makefile.am): Likewise.
2940         * modules/des (Makefile.am): Likewise.
2941         * modules/dev-ino (Makefile.am): Likewise.
2942         * modules/dirfd (Makefile.am): Likewise.
2943         * modules/dirname (Makefile.am): Likewise.
2944         * modules/dup2 (Makefile.am): Likewise.
2945         * modules/eealloc (Makefile.am): Likewise.
2946         * modules/error (Makefile.am): Likewise.
2947         * modules/euidaccess (Makefile.am): Likewise.
2948         * modules/exclude (Makefile.am): Likewise.
2949         * modules/exitfail (Makefile.am): Likewise.
2950         * modules/fcntl-safer (Makefile.am): Likewise.
2951         * modules/fcntl (Makefile.am): Likewise.
2952         * modules/file-type (Makefile.am): Likewise.
2953         * modules/fileblocks (Makefile.am): Likewise.
2954         * modules/filemode (Makefile.am): Likewise.
2955         * modules/filenamecat (Makefile.am): Likewise.
2956         * modules/fnmatch (Makefile.am): Likewise.
2957         * modules/fopen-safer (Makefile.am): Likewise.
2958         * modules/fpending (Makefile.am): Likewise.
2959         * modules/fprintftime (Makefile.am): Likewise.
2960         * modules/free (Makefile.am): Likewise.
2961         * modules/fsusage (Makefile.am): Likewise.
2962         * modules/ftruncate (Makefile.am): Likewise.
2963         * modules/fts (Makefile.am): Likewise.
2964         * modules/gc-arcfour (Makefile.am): Likewise.
2965         * modules/gc-des (Makefile.am): Likewise.
2966         * modules/gc-hmac-md5 (Makefile.am): Likewise.
2967         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
2968         * modules/gc-md4 (Makefile.am): Likewise.
2969         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
2970         * modules/gc-sha1 (Makefile.am): Likewise.
2971         * modules/gc (Makefile.am): Likewise.
2972         * modules/getaddrinfo (Makefile.am): Likewise.
2973         * modules/getcwd (Makefile.am): Likewise.
2974         * modules/getdelim (Makefile.am): Likewise.
2975         * modules/getdomainname (Makefile.am): Likewise.
2976         * modules/getgroups (Makefile.am): Likewise.
2977         * modules/gethostname (Makefile.am): Likewise.
2978         * modules/gethrxtime (Makefile.am): Likewise.
2979         * modules/getline (Makefile.am): Likewise.
2980         * modules/getloadavg (Makefile.am): Likewise.
2981         * modules/getlogin_r (Makefile.am): Likewise.
2982         * modules/getndelim2 (Makefile.am): Likewise.
2983         * modules/getopt (Makefile.am): Likewise.
2984         * modules/getpagesize (Makefile.am): Likewise.
2985         * modules/getpass-gnu (Makefile.am): Likewise.
2986         * modules/getpass (Makefile.am): Likewise.
2987         * modules/getsubopt (Makefile.am): Likewise.
2988         * modules/gettime (Makefile.am): Likewise.
2989         * modules/gettimeofday (Makefile.am): Likewise.
2990         * modules/getugroups (Makefile.am): Likewise.
2991         * modules/getusershell (Makefile.am): Likewise.
2992         * modules/glob (Makefile.am): Likewise.
2993         * modules/group-member (Makefile.am): Likewise.
2994         * modules/hard-locale (Makefile.am): Likewise.
2995         * modules/hash (Makefile.am): Likewise.
2996         * modules/hmac-md5 (Makefile.am): Likewise.
2997         * modules/hmac-sha1 (Makefile.am): Likewise.
2998         * modules/human (Makefile.am): Likewise.
2999         * modules/idcache (Makefile.am): Likewise.
3000         * modules/imaxabs (Makefile.am): Likewise.
3001         * modules/imaxdiv (Makefile.am): Likewise.
3002         * modules/inet_ntop (Makefile.am): Likewise.
3003         * modules/inet_pton (Makefile.am): Likewise.
3004         * modules/intprops (Makefile.am): Likewise.
3005         * modules/inttostr (Makefile.am): Likewise.
3006         * modules/inttypes (Makefile.am): Likewise.
3007         * modules/isapipe (Makefile.am): Likewise.
3008         * modules/javaversion (Makefile.am): Likewise.
3009         * modules/lchmod (Makefile.am): Likewise.
3010         * modules/lchown (Makefile.am): Likewise.
3011         * modules/localcharset (Makefile.am): Likewise.
3012         * modules/long-options (Makefile.am): Likewise.
3013         * modules/lstat (Makefile.am): Likewise.
3014         * modules/malloc (Makefile.am): Likewise.
3015         * modules/mathl (Makefile.am): Likewise.
3016         * modules/mbchar (Makefile.am): Likewise.
3017         * modules/md2 (Makefile.am): Likewise.
3018         * modules/md4 (Makefile.am): Likewise.
3019         * modules/md5 (Makefile.am): Likewise.
3020         * modules/memcasecmp (Makefile.am): Likewise.
3021         * modules/memchr (Makefile.am): Likewise.
3022         * modules/memcmp (Makefile.am): Likewise.
3023         * modules/memcoll (Makefile.am): Likewise.
3024         * modules/memcpy (Makefile.am): Likewise.
3025         * modules/memmem (Makefile.am): Likewise.
3026         * modules/memmove (Makefile.am): Likewise.
3027         * modules/mempcpy (Makefile.am): Likewise.
3028         * modules/memrchr (Makefile.am): Likewise.
3029         * modules/memset (Makefile.am): Likewise.
3030         * modules/memxor (Makefile.am): Likewise.
3031         * modules/mkancesdirs (Makefile.am): Likewise.
3032         * modules/mkdir-p (Makefile.am): Likewise.
3033         * modules/mkdir (Makefile.am): Likewise.
3034         * modules/mkdtemp (Makefile.am): Likewise.
3035         * modules/mkstemp (Makefile.am): Likewise.
3036         * modules/mktime (Makefile.am): Likewise.
3037         * modules/modechange (Makefile.am): Likewise.
3038         * modules/mountlist (Makefile.am): Likewise.
3039         * modules/nanosleep (Makefile.am): Likewise.
3040         * modules/obstack (Makefile.am): Likewise.
3041         * modules/openat (Makefile.am): Likewise.
3042         * modules/pagealign_alloc (Makefile.am): Likewise.
3043         * modules/pathmax (Makefile.am): Likewise.
3044         * modules/physmem (Makefile.am): Likewise.
3045         * modules/poll (Makefile.am): Likewise.
3046         * modules/posixtm (Makefile.am): Likewise.
3047         * modules/posixver (Makefile.am): Likewise.
3048         * modules/putenv (Makefile.am): Likewise.
3049         * modules/quote (Makefile.am): Likewise.
3050         * modules/quotearg (Makefile.am): Likewise.
3051         * modules/raise (Makefile.am): Likewise.
3052         * modules/read-file (Makefile.am): Likewise.
3053         * modules/readline (Makefile.am): Likewise.
3054         * modules/readlink (Makefile.am): Likewise.
3055         * modules/readtokens (Makefile.am): Likewise.
3056         * modules/readutmp (Makefile.am): Likewise.
3057         * modules/realloc (Makefile.am): Likewise.
3058         * modules/regex (Makefile.am): Likewise.
3059         * modules/rename-dest-slash (Makefile.am): Likewise.
3060         * modules/rename (Makefile.am): Likewise.
3061         * modules/rijndael (Makefile.am): Likewise.
3062         * modules/rmdir (Makefile.am): Likewise.
3063         * modules/rpmatch (Makefile.am): Likewise.
3064         * modules/safe-read (Makefile.am): Likewise.
3065         * modules/safe-write (Makefile.am): Likewise.
3066         * modules/same-inode (Makefile.am): Likewise.
3067         * modules/same (Makefile.am): Likewise.
3068         * modules/save-cwd (Makefile.am): Likewise.
3069         * modules/savedir (Makefile.am): Likewise.
3070         * modules/setenv (Makefile.am): Likewise.
3071         * modules/settime (Makefile.am): Likewise.
3072         * modules/sha1 (Makefile.am): Likewise.
3073         * modules/sig2str (Makefile.am): Likewise.
3074         * modules/snprintf (Makefile.am): Likewise.
3075         * modules/stat-macros (Makefile.am): Likewise.
3076         * modules/stat-time (Makefile.am): Likewise.
3077         * modules/stdbool (Makefile.am): Likewise.
3078         * modules/stdint (Makefile.am): Likewise.
3079         * modules/stdlib-safer (Makefile.am): Likewise.
3080         * modules/stpcpy (Makefile.am): Likewise.
3081         * modules/stpncpy (Makefile.am): Likewise.
3082         * modules/strcase (Makefile.am): Likewise.
3083         * modules/strcasestr (Makefile.am): Likewise.
3084         * modules/strchrnul (Makefile.am): Likewise.
3085         * modules/strcspn (Makefile.am): Likewise.
3086         * modules/strdup (Makefile.am): Likewise.
3087         * modules/strerror (Makefile.am): Likewise.
3088         * modules/strftime (Makefile.am): Likewise.
3089         * modules/strndup (Makefile.am): Likewise.
3090         * modules/strnlen (Makefile.am): Likewise.
3091         * modules/strpbrk (Makefile.am): Likewise.
3092         * modules/strsep (Makefile.am): Likewise.
3093         * modules/strstr (Makefile.am): Likewise.
3094         * modules/strtod (Makefile.am): Likewise.
3095         * modules/strtoimax (Makefile.am): Likewise.
3096         * modules/strtok_r (Makefile.am): Likewise.
3097         * modules/strtol (Makefile.am): Likewise.
3098         * modules/strtoll (Makefile.am): Likewise.
3099         * modules/strtoul (Makefile.am): Likewise.
3100         * modules/strtoull (Makefile.am): Likewise.
3101         * modules/strtoumax (Makefile.am): Likewise.
3102         * modules/strverscmp (Makefile.am): Likewise.
3103         * modules/sys_socket (Makefile.am): Likewise.
3104         * modules/sys_stat (Makefile.am): Likewise.
3105         * modules/sysexits (Makefile.am): Likewise.
3106         * modules/time_r (Makefile.am): Likewise.
3107         * modules/timegm (Makefile.am): Likewise.
3108         * modules/timespec (Makefile.am): Likewise.
3109         * modules/tmpfile-safer (Makefile.am): Likewise.
3110         * modules/trim (Makefile.am): Likewise.
3111         * modules/unistd-safer (Makefile.am): Likewise.
3112         * modules/unlinkdir (Makefile.am): Likewise.
3113         * modules/unlocked-io (Makefile.am): Likewise.
3114         * modules/userspec (Makefile.am): Likewise.
3115         * modules/utime (Makefile.am): Likewise.
3116         * modules/utimecmp (Makefile.am): Likewise.
3117         * modules/utimens (Makefile.am): Likewise.
3118         * modules/vasnprintf (Makefile.am): Likewise.
3119         * modules/vasprintf (Makefile.am): Likewise.
3120         * modules/vsnprintf (Makefile.am): Likewise.
3121         * modules/xalloc (Makefile.am): Likewise.
3122         * modules/xgetcwd (Makefile.am): Likewise.
3123         * modules/xnanosleep (Makefile.am): Likewise.
3124         * modules/xreadlink (Makefile.am): Likewise.
3125         * modules/xstrtod (Makefile.am): Likewise.
3126         * modules/xstrtol (Makefile.am): Likewise.
3127         * modules/xstrtold (Makefile.am): Likewise.
3128         * modules/yesno (Makefile.am): Likewise.
3129         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
3130
3131 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
3132
3133         * modules/error (Makefile.am): Distribute files through
3134         EXTRA_DIST, not lib_SOURCES.
3135
3136 2006-10-12  Eric Blake  <ebb9@byu.net>
3137
3138         * modules/error (Makefile.am): Distribute files in /lib.
3139         * modules/obstack (Makefile.am): Likewise.
3140
3141 2006-10-12  Bruno Haible  <bruno@clisp.org>
3142
3143         * modules/acl (Makefile.am): Distribute all files in lib/ through
3144         EXTRA_DIST.
3145         * modules/arcfour (Makefile.am): Likewise.
3146         * modules/arctwo (Makefile.am): Likewise.
3147         * modules/argmatch (Makefile.am): Likewise.
3148         * modules/argz (Makefile.am): Likewise.
3149         * modules/atexit (Makefile.am): Likewise.
3150         * modules/backupfile (Makefile.am): Likewise.
3151         * modules/c-strtod (Makefile.am): Likewise.
3152         * modules/c-strtold (Makefile.am): Likewise.
3153         * modules/calloc (Makefile.am): Likewise.
3154         * modules/canon-host (Makefile.am): Likewise.
3155         * modules/canonicalize (Makefile.am): Likewise.
3156         * modules/chdir-long (Makefile.am): Likewise.
3157         * modules/chdir-safer (Makefile.am): Likewise.
3158         * modules/check-version (Makefile.am): Likewise.
3159         * modules/chown (Makefile.am): Likewise.
3160         * modules/cloexec (Makefile.am): Likewise.
3161         * modules/close-stream (Makefile.am): Likewise.
3162         * modules/closeout (Makefile.am): Likewise.
3163         * modules/crc (Makefile.am): Likewise.
3164         * modules/cycle-check (Makefile.am): Likewise.
3165         * modules/des (Makefile.am): Likewise.
3166         * modules/dirfd (Makefile.am): Likewise.
3167         * modules/dirname (Makefile.am): Likewise.
3168         * modules/dup2 (Makefile.am): Likewise.
3169         * modules/euidaccess (Makefile.am): Likewise.
3170         * modules/exclude (Makefile.am): Likewise.
3171         * modules/exitfail (Makefile.am): Likewise.
3172         * modules/fcntl-safer (Makefile.am): Likewise.
3173         * modules/file-type (Makefile.am): Likewise.
3174         * modules/fileblocks (Makefile.am): Likewise.
3175         * modules/filemode (Makefile.am): Likewise.
3176         * modules/filenamecat (Makefile.am): Likewise.
3177         * modules/fnmatch (Makefile.am): Likewise.
3178         * modules/fopen-safer (Makefile.am): Likewise.
3179         * modules/fpending (Makefile.am): Likewise.
3180         * modules/fprintftime (Makefile.am): Likewise.
3181         * modules/free (Makefile.am): Likewise.
3182         * modules/fsusage (Makefile.am): Likewise.
3183         * modules/ftruncate (Makefile.am): Likewise.
3184         * modules/fts (Makefile.am): Likewise.
3185         * modules/gc (Makefile.am): Likewise.
3186         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
3187         * modules/getaddrinfo (Makefile.am): Likewise.
3188         * modules/getcwd (Makefile.am): Likewise.
3189         * modules/getdelim (Makefile.am): Likewise.
3190         * modules/getdomainname (Makefile.am): Likewise.
3191         * modules/getgroups (Makefile.am): Likewise.
3192         * modules/gethostname (Makefile.am): Likewise.
3193         * modules/gethrxtime (Makefile.am): Likewise.
3194         * modules/getline (Makefile.am): Likewise.
3195         * modules/getloadavg (Makefile.am): Likewise.
3196         * modules/getlogin_r (Makefile.am): Likewise.
3197         * modules/getopt (Makefile.am): Likewise.
3198         * modules/getpass (Makefile.am): Likewise.
3199         * modules/getpass-gnu (Makefile.am): Likewise.
3200         * modules/getsubopt (Makefile.am): Likewise.
3201         * modules/gettime (Makefile.am): Likewise.
3202         * modules/gettimeofday (Makefile.am): Likewise.
3203         * modules/getugroups (Makefile.am): Likewise.
3204         * modules/getusershell (Makefile.am): Likewise.
3205         * modules/glob (Makefile.am): Likewise.
3206         * modules/group-member (Makefile.am): Likewise.
3207         * modules/hard-locale (Makefile.am): Likewise.
3208         * modules/hash (Makefile.am): Likewise.
3209         * modules/hmac-md5 (Makefile.am): Likewise.
3210         * modules/hmac-sha1 (Makefile.am): Likewise.
3211         * modules/human (Makefile.am): Likewise.
3212         * modules/idcache (Makefile.am): Likewise.
3213         * modules/imaxabs (Makefile.am): Likewise.
3214         * modules/imaxdiv (Makefile.am): Likewise.
3215         * modules/inet_ntop (Makefile.am): Likewise.
3216         * modules/inet_pton (Makefile.am): Likewise.
3217         * modules/inttostr (Makefile.am): Likewise.
3218         * modules/isapipe (Makefile.am): Likewise.
3219         * modules/lchown (Makefile.am): Likewise.
3220         * modules/long-options (Makefile.am): Likewise.
3221         * modules/lstat (Makefile.am): Likewise.
3222         * modules/malloc (Makefile.am): Likewise.
3223         * modules/mathl (Makefile.am): Likewise.
3224         * modules/mbchar (Makefile.am): Likewise.
3225         * modules/md2 (Makefile.am): Likewise.
3226         * modules/md4 (Makefile.am): Likewise.
3227         * modules/md5 (Makefile.am): Likewise.
3228         * modules/memcasecmp (Makefile.am): Likewise.
3229         * modules/memchr (Makefile.am): Likewise.
3230         * modules/memcmp (Makefile.am): Likewise.
3231         * modules/memcoll (Makefile.am): Likewise.
3232         * modules/memcpy (Makefile.am): Likewise.
3233         * modules/memmem (Makefile.am): Likewise.
3234         * modules/memmove (Makefile.am): Likewise.
3235         * modules/mempcpy (Makefile.am): Likewise.
3236         * modules/memrchr (Makefile.am): Likewise.
3237         * modules/memset (Makefile.am): Likewise.
3238         * modules/memxor (Makefile.am): Likewise.
3239         * modules/mkancesdirs (Makefile.am): Likewise.
3240         * modules/mkdir (Makefile.am): Likewise.
3241         * modules/mkdir-p (Makefile.am): Likewise.
3242         * modules/mkdtemp (Makefile.am): Likewise.
3243         * modules/mkstemp (Makefile.am): Likewise.
3244         * modules/mktime (Makefile.am): Likewise.
3245         * modules/modechange (Makefile.am): Likewise.
3246         * modules/mountlist (Makefile.am): Likewise.
3247         * modules/nanosleep (Makefile.am): Likewise.
3248         * modules/openat (Makefile.am): Likewise.
3249         * modules/pagealign_alloc (Makefile.am): Likewise.
3250         * modules/physmem (Makefile.am): Likewise.
3251         * modules/poll (Makefile.am): Likewise.
3252         * modules/posixtm (Makefile.am): Likewise.
3253         * modules/posixver (Makefile.am): Likewise.
3254         * modules/putenv (Makefile.am): Likewise.
3255         * modules/quote (Makefile.am): Likewise.
3256         * modules/quotearg (Makefile.am): Likewise.
3257         * modules/raise (Makefile.am): Likewise.
3258         * modules/read-file (Makefile.am): Likewise.
3259         * modules/readline (Makefile.am): Likewise.
3260         * modules/readlink (Makefile.am): Likewise.
3261         * modules/readtokens (Makefile.am): Likewise.
3262         * modules/readutmp (Makefile.am): Likewise.
3263         * modules/realloc (Makefile.am): Likewise.
3264         * modules/regex (Makefile.am): Likewise.
3265         * modules/rename (Makefile.am): Likewise.
3266         * modules/rename-dest-slash (Makefile.am): Likewise.
3267         * modules/rijndael (Makefile.am): Likewise.
3268         * modules/rmdir (Makefile.am): Likewise.
3269         * modules/rpmatch (Makefile.am): Likewise.
3270         * modules/safe-read (Makefile.am): Likewise.
3271         * modules/safe-write (Makefile.am): Likewise.
3272         * modules/same (Makefile.am): Likewise.
3273         * modules/save-cwd (Makefile.am): Likewise.
3274         * modules/savedir (Makefile.am): Likewise.
3275         * modules/setenv (Makefile.am): Likewise.
3276         * modules/settime (Makefile.am): Likewise.
3277         * modules/sha1 (Makefile.am): Likewise.
3278         * modules/sig2str (Makefile.am): Likewise.
3279         * modules/snprintf (Makefile.am): Likewise.
3280         * modules/stdlib-safer (Makefile.am): Likewise.
3281         * modules/stpcpy (Makefile.am): Likewise.
3282         * modules/stpncpy (Makefile.am): Likewise.
3283         * modules/strcase (Makefile.am): Likewise.
3284         * modules/strcasestr (Makefile.am): Likewise.
3285         * modules/strchrnul (Makefile.am): Likewise.
3286         * modules/strcspn (Makefile.am): Likewise.
3287         * modules/strdup (Makefile.am): Likewise.
3288         * modules/strerror (Makefile.am): Likewise.
3289         * modules/strftime (Makefile.am): Likewise.
3290         * modules/strndup (Makefile.am): Likewise.
3291         * modules/strnlen (Makefile.am): Likewise.
3292         * modules/strpbrk (Makefile.am): Likewise.
3293         * modules/strsep (Makefile.am): Likewise.
3294         * modules/strstr (Makefile.am): Likewise.
3295         * modules/strtod (Makefile.am): Likewise.
3296         * modules/strtoimax (Makefile.am): Likewise.
3297         * modules/strtok_r (Makefile.am): Likewise.
3298         * modules/strtol (Makefile.am): Likewise.
3299         * modules/strtoll (Makefile.am): Likewise.
3300         * modules/strtoul (Makefile.am): Likewise.
3301         * modules/strtoull (Makefile.am): Likewise.
3302         * modules/strtoumax (Makefile.am): Likewise.
3303         * modules/strverscmp (Makefile.am): Likewise.
3304         * modules/time_r (Makefile.am): Likewise.
3305         * modules/timegm (Makefile.am): Likewise.
3306         * modules/tmpfile-safer (Makefile.am): Likewise.
3307         * modules/unistd-safer (Makefile.am): Likewise.
3308         * modules/unlinkdir (Makefile.am): Likewise.
3309         * modules/userspec (Makefile.am): Likewise.
3310         * modules/utime (Makefile.am): Likewise.
3311         * modules/utimecmp (Makefile.am): Likewise.
3312         * modules/utimens (Makefile.am): Likewise.
3313         * modules/vasnprintf (Makefile.am): Likewise.
3314         * modules/vasprintf (Makefile.am): Likewise.
3315         * modules/vsnprintf (Makefile.am): Likewise.
3316         * modules/xalloc (Makefile.am): Likewise.
3317         * modules/xgetcwd (Makefile.am): Likewise.
3318         * modules/xnanosleep (Makefile.am): Likewise.
3319         * modules/xreadlink (Makefile.am): Likewise.
3320         * modules/xstrtod (Makefile.am): Likewise.
3321         * modules/xstrtol (Makefile.am): Likewise.
3322         * modules/xstrtold (Makefile.am): Likewise.
3323         * modules/yesno (Makefile.am): Likewise.
3324
3325 2006-10-12  Jim Meyering  <jim@meyering.net>
3326
3327         * m4/getloadavg.m4: Revert the change below.
3328
3329         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
3330         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
3331         fail with a symlink, which is what coreutils' ./bootstrap now
3332         creates by default.
3333
3334 2006-10-12  Bruno Haible  <bruno@clisp.org>
3335
3336         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
3337         mingw.
3338         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
3339         MSVC and mingw explicitly.
3340
3341 2006-10-11  Simon Josefsson  <jas@extundo.com>
3342             Bruno Haible  <bruno@clisp.org>
3343
3344         Add support for multiple gnulib-tool invocations in the scope of a
3345         single configure.ac file.
3346         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
3347         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
3348         with the same contents as the _LIBADD variable.
3349         (func_emit_initmacro_start, func_emit_initmacro_end,
3350         func_emit_initmacro_done): New functions.
3351         (func_import, func_create_testdir): Invoke them. Allow the identifiers
3352         gl_LIBOBJS and gl_LTLIBOBJS.
3353
3354 2006-10-11  Bruno Haible  <bruno@clisp.org>
3355
3356         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
3357         (func_create_testdir): Don't create po/Makefile.am, don't invoke
3358         autoreconf. Instead, invoke autopoint explicitly but move back the
3359         *.m4 files from gnulib.
3360
3361 2006-10-11  Bruno Haible  <bruno@clisp.org>
3362
3363         * gnulib-tool (func_usage): Make module names after --create-testdir
3364         optional.
3365         (func_create_testdir): If no module was specified, use nearly all
3366         modules.
3367
3368 2006-10-12  Jim Meyering  <jim@meyering.net>
3369
3370         Big performance improvement for fts-based tools that use FTS_NOSTAT.
3371         Avoid spurious inode-mismatch problems on non-POSIX file systems.
3372         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
3373         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
3374         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
3375         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
3376         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
3377         (fts_set_stat_required): New function.
3378         (fts_open): Defer the calls to fts_stat, if possible or requested.
3379         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
3380         into fts_stat itself.
3381         (fts_read): Perform any required (deferred) fts_stat call.
3382         (fts_build): Likewise, for the directory we're about to open and read.
3383         In the readdir loop, carefully decide whether each entry will require
3384         an eventual call to fts_stat, using dirent.d_type info if available.
3385         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
3386         a command line argument into this function.  Update all callers.
3387         Map a return value of FTS_DOT to FTS_D for a command line argument.
3388         * modules/fts (Depends-on): Add d-type.  Alphabetize.
3389         Thanks to Miklos Szeredi for his tenacity and for the initial
3390         bug report about "find" failing on a FUSE-based file system.
3391
3392         * lib/fts.c (fts_open): Use consistent indentation.
3393
3394 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
3395
3396         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
3397         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
3398         reported by Jim Meyering.  All uses of cache variables renamed
3399         to match Autoconf's.
3400         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
3401         the other one.
3402
3403         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
3404         Fix misspelling in diagnostic.
3405
3406 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
3407
3408         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
3409         defined.  Problem reported by Matthew Woehlke.
3410
3411         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
3412         Add support for Tandem NonStop R series.
3413         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
3414         Use new macro.
3415
3416         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
3417         (has_trailing_slash): Omit size arg; all callers changed.
3418         Omit 'inline', since it doesn't help performance and we'd
3419         need to configure it.
3420         Don't count //, ///, etc. as having a trailing slash.
3421         As a side effect, this removes a C99ism reported by Matthew Woehlke.
3422         (rpl_rename_dest_slash): On failure, use rename's errno rather
3423         than (in some cases) an incorrect or junk errno.
3424         Simplify code by removing need to compute length; this does
3425         cause it to make two passes instead of one over the file name,
3426         but it's worth it.
3427
3428         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
3429         change, since Autoconf's version may no longer be appropriate now
3430         that we are using CVS Autoconf's version.  Add support for Tandem.
3431
3432 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
3433             Bruno Haible  <bruno@clisp.org>
3434
3435         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
3436         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
3437         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
3438         gl_AC_TYPE_LONG_LONG.
3439
3440         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
3441         instead of HAVE_LONG_LONG.
3442         * lib/printf-args.c (printf_fetchargs): Likewise.
3443         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
3444         * lib/vasnprintf.c (VASNPRINTF): Likewise.
3445         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
3446         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
3447         gl_AC_TYPE_LONG_LONG.
3448
3449 2006-10-11  Bruno Haible  <bruno@clisp.org>
3450
3451         * m4/longlong.m4: Add comments.
3452         * m4/ulonglong.m4: Likewise.
3453
3454 2006-10-10  Bruno Haible  <bruno@clisp.org>
3455
3456         Make it possible to #define stpcpy, strdup to aliases.
3457         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
3458         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
3459
3460 2006-10-10  Bruno Haible  <bruno@clisp.org>
3461
3462         Make it possible to #define gcd to an alias.
3463         * lib/gcd.c: Include config.h.
3464
3465 2006-10-10  Bruno Haible  <bruno@clisp.org>
3466
3467         Make it possible to #define c_isascii to an alias.
3468         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
3469         defined. Undefine the macros before defining them, to avoid gcc
3470         warnings.
3471         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
3472         define NO_C_CTYPE_MACROS early.
3473
3474 2006-10-10  Bruno Haible  <bruno@clisp.org>
3475
3476         Make it possible to #define set_program_name to an alias.
3477         * lib/progname.c: Don't undefine set_program_name; instead, undefine
3478         ENABLE_RELOCATABLE early.
3479
3480 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
3481
3482         Port to Tandem NSK OSS, which has 64-bit signed int but at most
3483         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
3484         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
3485         More generally, don't assume that 64-bit signed int is available
3486         if unsigned int is, and vice versa.
3487         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
3488         unsigned symbols, not on their signed counterparts.
3489         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
3490         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
3491         (UINT64_C, UINTMAX_C):
3492         Likewise.
3493         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
3494         unsigned counterparts.
3495         (Have_long_long, Unsigned): New macros.
3496         (Int): Renamed from INT.
3497         (strtoimax): Use the new macros.
3498         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
3499         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
3500         * modules/inttypes (inttypes.h): Substitute
3501         HAVE_UNSIGNED_LONG_LONG_INT.
3502         * modules/stdint (stdint.h): Likewise.
3503         (Files): Add m4/ulonglong.m4.
3504
3505 2006-10-10  Bruno Haible  <bruno@clisp.org>
3506
3507         Fix a gcc -Wshadow warning.
3508         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
3509         to 'bucket'.
3510         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
3511         gl_linked_indexof_from_to): Likewise.
3512         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
3513         Likewise.
3514         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
3515         Likewise.
3516         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
3517         Reported by Eric Blake.
3518
3519 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
3520
3521         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
3522         for NetBSD.  Problem reported by Bruno Haible.
3523
3524 2006-10-09  Jim Meyering  <jim@meyering.net>
3525
3526         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
3527         Patch from Bruno Haible.
3528
3529 2006-10-09  Jim Meyering  <jim@meyering.net>
3530
3531         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
3532         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
3533         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
3534
3535 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
3536
3537         Don't include <config.h> twice; this doesn't work in some cases,
3538         e.g., when config.h has "#define intmax_t long long int" and
3539         we include <config.h>, <inttypes.h>, <config.h> in that order.
3540         Problem reported by Matthew Woehlke in:
3541         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
3542         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
3543         * lib/fts-cycle.c: Don't include config.h.
3544         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
3545         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
3546         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
3547         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
3548         inttypes.h.
3549         * lib/xstrtoumax.c: Likewise.
3550         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
3551         __strtol and the like, so that this module is more like its siblings.
3552         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
3553         Remove; no longer needed now that we assume gnulib inttypes.h.
3554
3555 2006-10-08  Bruno Haible  <bruno@clisp.org>
3556
3557         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
3558         option.
3559
3560 2006-10-07  Jim Meyering  <jim@meyering.net>
3561
3562         * modules/inttypes (inttypes.h): Revert what seems to have been
3563         an inadvertent part of today's change: use "|", not "/" in the
3564         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
3565
3566 2006-10-07  Bruno Haible  <bruno@clisp.org>
3567
3568         * modules/sublist: New file.
3569
3570 2006-10-07  Bruno Haible  <bruno@clisp.org>
3571
3572         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
3573         * modules/argz (argz.h): Likewise.
3574         * modules/arpa_inet (arpa/inet.h): Likewise.
3575         * modules/byteswap (byteswap.h): Likewise.
3576         * modules/configmake (configmake.h): Likewise.
3577         * modules/fcntl (fcntl.h): Likewise.
3578         * modules/fnmatch (fnmatch.h): Likewise.
3579         * modules/getopt (getopt.h): Likewise.
3580         * modules/glob (glob.h): Likewise.
3581         * modules/inttypes (inttypes.h): Likewise.
3582         * modules/netinet_in (netinet/in.h): Likewise.
3583         * modules/poll (poll.h): Likewise.
3584         * modules/stdbool (stdbool.h): Likewise.
3585         * modules/stdint (stdint.h): Likewise.
3586         * modules/sys_select (sys/select.h): Likewise.
3587         * modules/sys_socket (sys/socket.h): Likewise.
3588         * modules/sys_stat (sys/stat.h): Likewise.
3589         * modules/sysexits (sysexits.h): Likewise.
3590         * modules/unistd (unistd.h): Likewise.
3591         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
3592         Add a "DO NOT EDIT" comment to the generated file.
3593         (func_import): Likewise for gnulib-comp.m4.
3594
3595 2006-10-07  Bruno Haible  <bruno@clisp.org>
3596
3597         * lib/gl_sublist.h: New file.
3598         * lib/gl_sublist.c: New file.
3599
3600 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
3601
3602         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
3603         name (relative to the original working directory) and the file
3604         name component (relative to the temporary working directory).  All
3605         callers changed.
3606         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
3607         * lib/mkdir-p.c (make_dir_parents): Likewise.
3608         * lib/mkdir-p.h (make_dir_parents): Likewise.
3609
3610 2006-10-06  Eric Blake  <ebb9@byu.net>
3611
3612         Define several macros for use by the clean-temp module.
3613         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
3614         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
3615         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
3616
3617         * lib/clean-temp.h (close_stream_temp): New declaration.
3618         * lib/clean-temp.c (includes): Pull in headers according to what
3619         other modules are in use.
3620         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
3621
3622 2006-10-06  Bruno Haible  <bruno@clisp.org>
3623
3624         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
3625         instead of fopen, fwriteerror.
3626
3627 2006-10-06  Bruno Haible  <bruno@clisp.org>
3628
3629         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
3630         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
3631         int.
3632         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
3633         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
3634         Return an error indicator.
3635         Suggested by Eric Blake.
3636
3637 2006-10-06  Bruno Haible  <bruno@clisp.org>
3638
3639         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
3640         Reported by Eric Blake.
3641
3642 2006-10-06  Bruno Haible  <bruno@clisp.org>
3643
3644         * modules/closeout (Description): Mention stderr too.
3645
3646 2006-10-06  Bruno Haible  <bruno@clisp.org>
3647         and Paul Eggert  <eggert@cs.ucla.edu>
3648
3649         * lib/closeout.c (close_stdout): Also close stderr.
3650         * lib/closeout.h: Update comment.
3651
3652 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
3653
3654         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
3655         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
3656         * lib/dirchownmod.c: Include lchown.h.
3657         * lib/lchown.c: Don't include files that lchown.h now includes.
3658         Don't declare chown, since lchown.h now does that.
3659         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
3660         (lchown): Define to rpl_chown if lchown is declared but
3661         does not exist.  Declare using a prototype if lchown is not
3662         declared.  Add a copyright notice.
3663         * lib/mkstemp.h: Include <unistd.h>.
3664         * lib/openat.c: Include lchown.h.
3665
3666         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
3667         we now test for that separately.
3668         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
3669         rather than O_NOFOLLOW, when testing whether it's possible to
3670         avoid a race condition reliably.
3671         * lib/savewd.c (savewd_chdir): Likewise.
3672
3673         Remove macros that are no longer needed now that stdint.h is
3674         reliable.
3675         * lib/fsusage.c (UINTMAX_MAX): Remove.
3676         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
3677         * lib/utimecmp.c (SIZE_MAX): Remove.
3678
3679         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
3680
3681         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
3682         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
3683         O_NOATIME works.
3684
3685 2006-10-05  Bruno Haible  <bruno@clisp.org>
3686
3687         * lib/gl_list.h (gl_sortedlist_search_from_to,
3688         gl_sortedlist_indexof_from_to): New declarations.
3689         (gl_list_implementation): New fields sortedlist_search_from_to,
3690         sortedlist_indexof_from_to.
3691         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
3692         inline functions.
3693         * lib/gl_list.c (gl_sortedlist_search_from_to,
3694         gl_sortedlist_indexof_from_to): New functions.
3695         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
3696         function.
3697         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
3698         (gl_array_sortedlist_search_from_to): New function.
3699         (gl_array_list_implementation): Update.
3700         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
3701         function.
3702         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
3703         (gl_carray_sortedlist_search_from_to): New function.
3704         (gl_carray_list_implementation): Update.
3705         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
3706         gl_linked_sortedlist_indexof_from_to): New functions.
3707         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
3708         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
3709         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
3710         gl_tree_sortedlist_indexof_from_to): New functions.
3711         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
3712         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
3713         Update.
3714         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
3715         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
3716         Update.
3717
3718 2006-10-05  Bruno Haible  <bruno@clisp.org>
3719
3720         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
3721         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
3722         (struct gl_list_implementation): Add fields search_from_to,
3723         indexof_from_to. Remove fields search, indexof.
3724         (gl_list_search): Use the search_from_to method.
3725         (gl_list_search_from, gl_list_search_from_to): New functions.
3726         (gl_list_indexof): Use the indexof_from_to method.
3727         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
3728         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
3729         (gl_list_search_from, gl_list_search_from_to): New functions.
3730         (gl_list_indexof): Use the indexof_from_to method.
3731         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
3732         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
3733         gl_array_indexof. Add start_index, end_index arguments.
3734         (gl_array_search_from_to): Renamed from gl_array_search. Add
3735         start_index, end_index arguments.
3736         (gl_array_remove, gl_array_list_implementation): Update.
3737         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
3738         gl_carray_indexof. Add start_index, end_index arguments.
3739         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
3740         start_index, end_index arguments.
3741         (gl_carray_remove, gl_carray_list_implementation): Update.
3742         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
3743         gl_linked_search. Add start_index, end_index arguments.
3744         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
3745         start_index, end_index arguments.
3746         (gl_linked_remove): Update.
3747         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
3748         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
3749         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
3750         field to 'size_t'.
3751         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
3752         gl_tree_search. Add start_index, end_index arguments.
3753         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
3754         start_index, end_index arguments.
3755         (gl_tree_remove): Update.
3756         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
3757         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
3758         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
3759         function.
3760         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
3761         gl_tree_search. Add start_index, end_index arguments.
3762         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
3763         start_index, end_index arguments.
3764         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
3765         Update.
3766         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
3767
3768 2006-10-05  Bruno Haible  <bruno@clisp.org>
3769
3770         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
3771
3772         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
3773         fwriteerror_temp): New declarations.
3774         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
3775         (descriptors): New variable.
3776         (cleanup): First, close the descriptors.
3777         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
3778         fclose_temp, fwriteerror_temp): New functions.
3779
3780 2006-10-04  Jim Meyering  <jim@meyering.net>
3781
3782         * lib/fts.c (fts_open): Tiny comment change.
3783
3784 2006-10-04  Bruno Haible  <bruno@clisp.org>
3785
3786         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
3787         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
3788         gl_LOCK_BODY.
3789         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
3790         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
3791         gl_LOCK_EARLY_BODY.
3792         (gl_LOCK): Require gl_LOCK_BODY.
3793
3794 2006-10-04  Bruno Haible  <bruno@clisp.org>
3795
3796         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
3797         (gl_oset_search_atleast): New declaration.
3798         (struct gl_oset_implementation): Add field 'search_atleast'.
3799         (gl_oset_search_atleast): New inline function.
3800         * lib/gl_oset.c (gl_oset_search_atleast): New function.
3801         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
3802         (gl_array_oset_implementation): Update.
3803         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
3804         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
3805         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
3806
3807 2006-10-04  Bruno Haible  <bruno@clisp.org>
3808
3809         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
3810
3811 2006-10-03  Bruno Haible  <bruno@clisp.org>
3812
3813         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
3814         from gl_avltreehash_list_implementation.
3815
3816 2006-10-03  Bruno Haible  <bruno@clisp.org>
3817
3818         * lib/gl_oset.c (gl_oset_add): Fix return type.
3819
3820 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
3821
3822         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
3823
3824 2006-10-02  Eric Blake  <ebb9@byu.net>
3825
3826         * modules/strnlen (Depends-on): Add extensions.
3827
3828 2006-10-02  Eric Blake  <ebb9@byu.net>
3829
3830         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
3831         definition in 2.60+.
3832
3833 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
3834
3835         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
3836         checks.
3837
3838 2006-10-02  Bruno Haible  <bruno@clisp.org>
3839
3840         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
3841         to the AUTOMAKE_OPTIONS.
3842         Reported by Jim Meyering.
3843
3844 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
3845
3846         Work around bug in Solaris 10 /proc file system:
3847         /proc/self/fd/NNN/.. isn't the parent directory of
3848         the directory whose file descriptor is NNN.  This needs to
3849         be worked around at run time, not compile time, since a
3850         program might be built on Solaris 8, where things work, and
3851         run on Solaris 10.
3852         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
3853         to use the following interface instead:
3854         (OPENAT_BUFFER_SIZE): New macro.
3855         (openat_proc_name): New function.
3856         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
3857         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
3858         Likewise.
3859         * lib/openat-proc.c: New file.
3860         * modules/openat (Files): Add lib/openat-proc.c.
3861         (Depends-on): Add same-inode, stdbool.
3862         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
3863
3864 2006-09-29  Bruno Haible  <bruno@clisp.org>
3865
3866         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
3867         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
3868         argument. Set stdout_closed before testing for ferror, not after.
3869         (fwriteerror, fwriteerror_no_ebadf): New functions.
3870
3871 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3872
3873         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
3874
3875 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
3876
3877         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
3878         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
3879
3880 2006-09-28  Jim Meyering  <jim@meyering.net>
3881
3882         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
3883         Include <unistd.h>.
3884
3885 2006-09-28  Bruno Haible  <bruno@clisp.org>
3886
3887         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
3888         * modules/linkedhash-list (Depends-on): Likewise.
3889         * modules/rbtreehash-list (Depends-on): Likewise.
3890
3891 2006-09-28  Bruno Haible  <bruno@clisp.org>
3892
3893         * lib/strndup.h: Simplify the redefinition of strndup.
3894         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
3895         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
3896
3897 2006-09-28  Bruno Haible  <bruno@clisp.org>
3898
3899         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
3900         * lib/gl_linkedhash_list.c: Likewise.
3901         * lib/gl_rbtreehash_list.c: Likewise.
3902
3903 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
3904
3905         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
3906         getaddrinfo.
3907
3908         * lib/__fpending.h: Don't include <stdio_ext.h> unless
3909         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
3910         it causes <stdio_ext.h> to cause a compile-time error.
3911         Problem reported by Nelson H. F. Beebe.
3912         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
3913         of HAVE_DECL___PENDING.
3914
3915         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
3916         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
3917         declaration.
3918
3919 2006-09-27  Jim Meyering  <jim@meyering.net>
3920
3921         This file could end up with a definition for a function
3922         named __strndup, rather than rpl_strndup on a system with
3923         incomplete weak_alias support.
3924         * lib/strndup.c (strndup): Rename from __strndup.
3925         Remove #defines that used to map __strndup to strndup.
3926         Don't use K&R prototypes.
3927         Remove LIBC-related code, since this file is not sync'd with glibc.
3928         * lib/strndup.h: Revamp, accordingly.
3929         * m4/strndup.m4: Modernize.
3930
3931 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
3932
3933         * modules/savewd (Depends-on): Add 'raise'.
3934         * lib/savewd.c: Include <signal.h>, for 'raise'.
3935
3936 2006-09-26  Jim Meyering  <jim@meyering.net>
3937
3938         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
3939         when we detect Darwin 8.7.0's acl_get_file bug.
3940         Rearrange to perform the new (below) run-test while $LIBS
3941         contains any acl-related library.  Set USE_ACL at the end.
3942         (gl_ACL_GET_FILE): New function.
3943
3944 2006-09-26  Eric Blake  <ebb9@byu.net>
3945
3946         * lib/verror.c: Include <config.h> unconditionally.
3947
3948 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
3949
3950         * modules/clock-time (Maintainer): Add self.
3951         * modules/getlogin_r (Depends-on): Add extensions.
3952
3953 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3954
3955         * modules/clock-time: New module.
3956         * modules/nanosleep (Depends-on): Add clock-time.
3957         * modules/gethrxtime (Depends-on): Likewise.
3958         * modules/gettime (Depends-on): Likewise.
3959         * modules/settime (Depends-on): Likewise.
3960
3961         * modules/fts-lgpl: Depend on openat.
3962         * modules/mkancesdirs: Depend on savewd.
3963         * modules/mkdir-p: Likewise.
3964
3965 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3966
3967         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
3968
3969         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
3970         `gl_have_arbitrary_file_name_length_limit' to
3971         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
3972         actually works between configure runs.
3973
3974 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3975             Bruno Haible  <bruno@clisp.org>
3976
3977         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
3978
3979 2006-09-25  Jim Meyering  <jim@meyering.net>
3980
3981         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
3982         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
3983
3984 2006-09-25  Eric Blake  <ebb9@byu.net>
3985
3986         * gnulib-tool (func_import, func_create_testdir): Fix typos in
3987         exec's in 2006-09-18 patch when shuffling fds.
3988
3989 2006-09-25  Bruno Haible  <bruno@clisp.org>
3990
3991         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
3992         Reported by Jim Meyering.
3993
3994 2006-09-24  Jim Meyering  <jim@meyering.net>
3995
3996         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
3997         compare a pointer against a literal "0".  That caused failures with
3998         at least HP-UX's hpcc.
3999
4000 2006-09-22  Simon Josefsson  <jas@extundo.com>
4001
4002         * modules/gc-sha1:
4003         * modules/gc-md4:
4004         * modules/gc-hmac-sha1:
4005         * modules/gc-hmac-md5:
4006         * modules/gc-des:
4007         * modules/gc-arcfour: Distribute more files.
4008
4009 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4010
4011         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
4012         (gl_linked_iterator_from_to): Initialize struct completely.
4013         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
4014         (gl_tree_iterator_from_to): Likewise
4015         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
4016         * lib/gl_array_list.c [lint] (gl_array_iterator)
4017         (gl_array_iterator_from_to): Likewise.
4018         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
4019         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
4020         (gl_carray_iterator_from_to): Likewise.
4021
4022         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
4023         * lib/md4.c (md4_process_block): Remove unused variable.
4024         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
4025         parentheses for clarity.
4026
4027 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4028
4029         * modules/bison-i18n (Depends-on): Add gettext.
4030
4031 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4032
4033         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
4034         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
4035         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
4036         also add missing comma that caused broken test.
4037         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
4038         stdlib.h, for `abort'.
4039         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
4040         variables.
4041         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
4042         include unistd.h if present, for `rmdir'.
4043         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
4044         variables.
4045         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
4046         in the process include standard headers for prototypes.
4047         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
4048         gets declared on GNU/Linux.
4049         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
4050         unistd.h, for `rmdir'.
4051         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
4052
4053         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
4054         always true.
4055         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
4056
4057         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
4058
4059 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4060
4061         * gnulib-tool (func_version): Create output all at once.  This
4062         may help avoid triggering unnecessary SIGPIPEs, and at any
4063         rate it doesn't hurt.
4064
4065 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4066             Bruno Haible  <bruno@clisp.org>
4067
4068         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
4069         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
4070         * m4/signed.m4 (bh_C_SIGNED): Likewise.
4071
4072         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
4073         (gl_FUNC_VASPRINTF): Invoke it.
4074
4075 2006-09-22  Bruno Haible  <bruno@clisp.org>
4076
4077         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
4078         getloadavg.c as first argument.
4079
4080 2006-09-22  Bruno Haible  <bruno@clisp.org>
4081
4082         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
4083         at the beginning of the gl_INIT macro.
4084         * modules/getloadavg (configure.ac): Pass $gl_source_base to
4085         gl_GETLOADAVG.
4086
4087 2006-09-22  Bruno Haible  <bruno@clisp.org>
4088
4089         * gnulib-tool (func_create_megatestdir): Don't include the config-h
4090         module.
4091         Suggested by Ralf Wildenhues.
4092
4093 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
4094
4095         Import this patch from libc:
4096
4097         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
4098
4099         * lib/regex_internal.c (re_string_reconstruct): Handle
4100         offset < pstr->valid_raw_len && pstr->offsets_needed case.
4101         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
4102         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
4103         re_string_context_at.
4104
4105         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
4106         now requires it.
4107         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
4108         gl_REGEX now does it for us.
4109         (gl_REGEX): Add test taken from
4110         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
4111
4112         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
4113         Check that large offsets work.  Modernize Autoconf usages.
4114         Prefer "yes" to mean a good thing rather than a bad.
4115         Don't put "#define mkstemp" in config.h, as this might interfere
4116         with standard system headers that "#define mkstemp mkstemp64".
4117
4118         * modules/mkstemp (Depends-on): Add extensions, so that
4119         mkstemp is visible on some platforms.
4120         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
4121         (Include): Change to "mkstemp.h" from <stdlib.h>.
4122         (Files): Add mkstemp.h.
4123
4124         * lib/mkstemp.h: New file, since some standard headers
4125         #define mkstemp.
4126         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
4127         Include "mkstemp.h".
4128         Make the _LIBC code resemble glibc original more,
4129         e.g., use K&R style.
4130         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
4131         (mkstemp): Remove, since mkstemp.h does this for us.
4132         * lib/stdlib--.h: Include mkstemp.h.
4133
4134         Import this patch from libc:
4135
4136         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
4137
4138         * lib/tempname.c (__gen_tempname): Change attempts_min
4139         into a macro.  Use preprocessor to decide how to initialize
4140         attempts [Coverity CID 67].
4141
4142 2006-09-20  Bruno Haible  <bruno@clisp.org>
4143
4144         * lib/mkdtemp.c: Import from libc.
4145         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
4146                 * sysdeps/posix/tempname.c (__gen_tempname): Change
4147                 attempts_min into a macro.  Use preprocessor to decide how to
4148                 initialize attempts [Coverity CID 67].
4149         2001-11-27  Paul Eggert  <eggert@twinsun.com>
4150                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
4151                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
4152
4153 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4154
4155         * gnulib-tool (func_exit): New function, to allow to pass the
4156         exit status portably through the trap.  Use everywhere.
4157         (--help, --version): Signal a write error.
4158         (trap): catch SIGPIPE, for write errors.
4159         Exit at the end of the trap, with the correct exit status.
4160
4161 2006-09-19  Karl Berry  <karl@gnu.org>
4162
4163         * doc/gnulib.texi: note about the license texinfo files.
4164
4165 2006-09-19  Eric Blake  <ebb9@byu.net>
4166
4167         * gnulib-tool: Avoid space-tab.
4168
4169 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
4170
4171         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
4172         that prevented coreutils 6.1 from building.  Problem reported
4173         by Petter Reinholdtsen.
4174
4175 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
4176
4177         * gnulib-tool (avoidlist): Fix typo that broke options like
4178         --avoid=lock that are used by coreutils bootstrap.
4179
4180 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
4181
4182         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
4183         more systematically.
4184
4185 2006-09-18  Jim Meyering  <jim@meyering.net>
4186
4187         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
4188
4189 2006-09-18  Bruno Haible  <bruno@clisp.org>
4190
4191         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
4192
4193 2006-09-18  Bruno Haible  <bruno@clisp.org>
4194
4195         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
4196         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
4197         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
4198         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
4199         * m4/gettext.m4: Require autoconf >= 2.52.
4200         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
4201         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
4202         of gl_cv_header_inttypes_h.
4203
4204 2006-09-18  Bruno Haible  <bruno@clisp.org>
4205
4206         * lib/javaversion.c: Include configmake.h.
4207
4208 2006-09-18  Bruno Haible  <bruno@clisp.org>
4209
4210         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
4211         avoid that the while loops be executed in a subshell.
4212
4213 2006-09-18  Bruno Haible  <bruno@clisp.org>
4214
4215         * MODULES.html.sh (func_module): Break long lines.
4216         Suggested by Bruce Korb <bkorb@gnu.org>.
4217
4218 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4219
4220         Speed up by a factor of 1.12.
4221         * gnulib-tool (nl): New variable.
4222         (func_import): Rewrite include directive extraction to only read each
4223         directive once.
4224
4225 2006-09-17  Bruno Haible  <bruno@clisp.org>
4226
4227         * modules/javaversion (Makefile.am): Remove DEFS setting.
4228         (Depends-on): Add configmake, for PKGDATADIR definition.
4229
4230 2006-09-17  Bruno Haible  <bruno@clisp.org>
4231
4232         * gnulib-tool (func_create_testdir): Rewrite all files at once.
4233
4234 2006-09-17  Bruno Haible  <bruno@clisp.org>
4235
4236         * gnulib-tool (func_append): New function, stolen from libtool.m4.
4237         (func_modules_transitive_closure, func_modules_add_dummy,
4238         func_modules_to_filelist, func_import, func_create_testdir,
4239         func_create_megatestdir, ...): Use it wherever possible.
4240         Suggested by Ralf Wildenhues.
4241
4242 2006-09-16  Karl Berry  <karl@gnu.org>
4243
4244         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
4245         to avoid sectioning errors.
4246         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
4247         [ifinfo]: blank line after @center-ed titles.
4248         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
4249         Spell FSF address consistently with others.
4250         (These changes approved by rms.)
4251
4252 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4253
4254         Speed up by a factor of 1.61.
4255         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
4256         already checked module names again.
4257
4258 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4259
4260         Speed up by a factor of 1.13.
4261         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
4262         for new_files, and the input to func_add_or_update.
4263
4264 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4265
4266         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
4267         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
4268
4269 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
4270
4271         * modules/mkancesdirs (Depends-on): Add fcntl.
4272         * modules/savewd: New file.
4273         * MODULES.html.sh (File system functions): Add savewd.
4274
4275         * modules/configmake (Makefile.am): Add support for the
4276         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
4277
4278 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
4279
4280         * m4/savewd.m4: New file.
4281
4282 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
4283
4284         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
4285         (dirchownmod): New arg FD.  All callers changed.
4286         Use FD rather than opening the directory ourself, as opening is
4287         now the caller's responsibility.
4288         * lib/dirchownmod.h: Likewise.
4289         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
4290         hosts that require <sys/types.h> before <sys/stat.h>.  Include
4291         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
4292         (test_dir): Remove.
4293         (mkancesdirs): Return length of prefix of FILE that has already
4294         been made, or -2 if there is a child doing the work.  Redo
4295         algorithm so that it is O(N) rather than O(N**2).  Optimize away
4296         ".", and treat ".." specially since it might stray back into
4297         already-created areas.  Use a subprocess if necessary.  New arg
4298         WD; all users changed.  MAKE_DIR function should now return 1
4299         if it creates a directory that is not readable.  Return -2 if
4300         a child process is spun off.
4301         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
4302         Adjust signature to match code.
4303         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
4304         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
4305         all users changed.
4306         * lib/savewd.c, lib/savewd.h: New files.
4307
4308 2006-09-15  Jim Meyering  <jim@meyering.net>
4309
4310         * modules/rename-dest-slash: New module.
4311         * MODULES.html.sh (posix_compat): Add it here.
4312
4313         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
4314
4315 2006-09-15  Jim Meyering  <jim@meyering.net>
4316
4317         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
4318         file.
4319
4320         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
4321
4322 2006-09-15  Jim Meyering  <jim@meyering.net>
4323
4324         * lib/rename-dest-slash.c (has_trailing_slash): Use
4325         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
4326         (rpl_rename_dest_slash): Perform the cheaper trailing slash
4327         test before testing whether SRC is a directory.
4328         Suggestions from Bruno Haible.
4329
4330         Avoid a warning about an unused variable.
4331         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
4332         into the #ifdef block where it's used.
4333
4334         * lib/rename-dest-slash.c: New file.
4335
4336 2006-09-14  Bruno Haible  <bruno@clisp.org>
4337
4338         * lib/allocsa.c: Include <config.h> unconditionally.
4339         * lib/asnprintf.c: Likewise.
4340         * lib/asprintf.c: Likewise.
4341         * lib/c-strcasecmp.c: Likewise.
4342         * lib/c-strcasestr.c: Likewise.
4343         * lib/c-strncasecmp.c: Likewise.
4344         * lib/c-strstr.c: Likewise.
4345         * lib/classpath.c: Likewise.
4346         * lib/clean-temp.c: Likewise.
4347         * lib/concatpath.c: Likewise.
4348         * lib/copy-file.c: Likewise.
4349         * lib/csharpcomp.c: Likewise.
4350         * lib/csharpexec.c: Likewise.
4351         * lib/execute.c: Likewise.
4352         * lib/fatal-signal.c: Likewise.
4353         * lib/findprog.c: Likewise.
4354         * lib/fwriteerror.c: Likewise.
4355         * lib/gl_array_list.c: Likewise.
4356         * lib/gl_array_oset.c: Likewise.
4357         * lib/gl_avltree_list.c: Likewise.
4358         * lib/gl_avltree_oset.c: Likewise.
4359         * lib/gl_avltreehash_list.c: Likewise.
4360         * lib/gl_carray_list.c: Likewise.
4361         * lib/gl_linked_list.c: Likewise.
4362         * lib/gl_linkedhash_list.c: Likewise.
4363         * lib/gl_list.c: Likewise.
4364         * lib/gl_oset.c: Likewise.
4365         * lib/gl_rbtree_list.c: Likewise.
4366         * lib/gl_rbtree_oset.c: Likewise.
4367         * lib/gl_rbtreehash_list.c: Likewise.
4368         * lib/imaxabs.c: Likewise.
4369         * lib/imaxdiv.c: Likewise.
4370         * lib/javacomp.c: Likewise.
4371         * lib/javaexec.c: Likewise.
4372         * lib/javaversion.c: Likewise.
4373         * lib/linebreak.c: Likewise.
4374         * lib/localcharset.c: Likewise.
4375         * lib/lock.c: Likewise.
4376         * lib/mbchar.c: Likewise.
4377         * lib/mbswidth.c: Likewise.
4378         * lib/mkdtemp.c: Likewise.
4379         * lib/pipe.c: Likewise.
4380         * lib/printf-args.c: Likewise.
4381         * lib/printf-parse.c: Likewise.
4382         * lib/progname.c: Likewise.
4383         * lib/progreloc.c: Likewise.
4384         * lib/readlink.c: Likewise.
4385         * lib/sh-quote.c: Likewise.
4386         * lib/stpcpy.c: Likewise.
4387         * lib/stpncpy.c: Likewise.
4388         * lib/strcasecmp.c: Likewise.
4389         * lib/strcasestr.c: Likewise.
4390         * lib/strcspn.c: Likewise.
4391         * lib/striconv.c: Likewise.
4392         * lib/strncasecmp.c: Likewise.
4393         * lib/strnlen1.c: Likewise.
4394         * lib/strstr.c: Likewise.
4395         * lib/strtok_r.c: Likewise.
4396         * lib/tls.c: Likewise.
4397         * lib/tmpdir.c: Likewise.
4398         * lib/unicodeio.c: Likewise.
4399         * lib/unsetenv.c: Likewise.
4400         * lib/vasnprintf.c: Likewise.
4401         * lib/vasprintf.c: Likewise.
4402         * lib/wait-process.c: Likewise.
4403         * lib/xallocsa.c: Likewise.
4404         * lib/xsetenv.c: Likewise.
4405         * lib/xstriconv.c: Likewise.
4406
4407 2006-09-13  Simon Josefsson  <jas@extundo.com>
4408
4409         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
4410         that internally, suggested by Ralf Wildenhues
4411         <Ralf.Wildenhues@gmx.de>.
4412
4413 2006-09-13  Simon Josefsson  <jas@extundo.com>
4414
4415         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
4416         @LIBOBJS@.
4417         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4418
4419 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
4420
4421         * lib/_fpending.c: Include <config.h> unconditionally, since we no
4422         longer worry about uses that don't define HAVE_CONFIG_H.
4423         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
4424         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
4425         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
4426         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
4427         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
4428         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
4429         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
4430         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
4431         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
4432         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
4433         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
4434         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
4435         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
4436         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
4437         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
4438         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
4439         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
4440         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
4441         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
4442         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
4443         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
4444         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
4445         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
4446         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
4447         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
4448         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
4449         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
4450         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
4451         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
4452         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
4453         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
4454         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
4455         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
4456         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
4457         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
4458         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
4459         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
4460         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
4461         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
4462         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
4463         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
4464         Likewise.
4465
4466 2006-09-13  Eric Blake  <ebb9@byu.net>
4467
4468         * lib/getopt.c: Fix typo in last commit.
4469
4470 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
4471
4472         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
4473         dgettext.
4474
4475 2006-09-12  Jim Meyering  <jim@meyering.net>
4476
4477         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
4478         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
4479         Reported by Nelson H. F. Beebe.
4480
4481 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
4482
4483         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
4484         program_invocation_name and program_invocation_short_name are
4485         initialized.
4486         * lib/argp-namefrob.h: Move declarations of program_invocation_name
4487         and program_invocation_short_name to argp.h, so they are visible
4488         to user programs.
4489         * lib/argp.h: Likewise
4490
4491 2006-09-10  Bruno Haible  <bruno@clisp.org>
4492
4493         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
4494         m4/inttypes_h.m4, m4/uintmax_t.m4.
4495
4496 2006-09-10  Bruno Haible  <bruno@clisp.org>
4497
4498         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
4499         gl_AC_TYPE_UINTMAX_T.
4500
4501 2006-09-10  Bruno Haible  <bruno@clisp.org>
4502
4503         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
4504
4505 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
4506
4507         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
4508         convention.  Text proposed by Bruno Haible.
4509         (struct argp_option): Document the use of N_() wrappers.
4510
4511         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
4512         '\v', and translate the two parts separately, instead of feeding
4513         the whole string to gettext.  This allows to exclude
4514         '\v' from the strings visible to the translator by writing doc
4515         strings as N_("..") "\v" N_("..").
4516
4517 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
4518
4519         * config/srclist.txt: Undo latest change; the bug was fixed.
4520
4521 2006-09-09  Bruno Haible  <bruno@clisp.org>
4522
4523         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
4524         assignments if building a library without libtool.
4525         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
4526         in func_emit_lib_Makefile_am.
4527         (func_import): When building a static library libfoo.a, arrange to
4528         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
4529         (func_create_testdir): Likewise.
4530         * modules/gc (configure.ac, Makefile.am): If building statically,
4531         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
4532         * modules/iconvme (configure.ac, Makefile.am): Likewise.
4533         * modules/striconv (configure.ac, Makefile.am): Likewise.
4534         Based on a suggestion by Ralf Wildenhues.
4535
4536 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
4537
4538         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
4539         Check for unistd.h too, since Autoconf doesn't assume POSIX.
4540         Also:
4541
4542         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
4543         Add year_2050_test to catch glibc bug 2821
4544         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
4545
4546         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
4547         Prefer #ifdef to #if.
4548
4549         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
4550         Return from 'main' instead of calling 'exit'.
4551
4552 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
4553
4554         * lib/mktime.c (guess_time_tm): Fix bug where mktime
4555         returned the maximum time_t value rather than (time_t) -1.
4556         Problem originally reported by William Bardwell
4557         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
4558
4559         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
4560         Moved to here ...
4561         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
4562         ... from here.
4563
4564 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
4565
4566         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
4567         2821 is fixed.
4568
4569 2006-09-08  Jim Meyering  <jim@meyering.net>
4570
4571         Don't make generated files read-only.  That would bother too many
4572         people.  However, do retain the ability to work when targets are
4573         read-only: remove the destination and temporary files before writing
4574         them (when generated via sed or echo), or by using the -f option for
4575         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
4576         * modules/alloca-opt, modules/argz, modules/arpa_inet:
4577         * modules/byteswap, modules/configmake, modules/fcntl:
4578         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
4579         * modules/localcharset, modules/netinet_in, modules/poll:
4580         * modules/stdbool, modules/stdint, modules/sys_select:
4581         * modules/sys_socket, modules/sys_stat, modules/sysexits:
4582
4583 2006-09-08  Jim Meyering  <jim@meyering.net>
4584
4585         Avoid new build failure on FreeBSD 6.0.
4586         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
4587         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
4588         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
4589
4590 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4591
4592         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
4593
4594 2006-09-07  Jim Meyering  <jim@meyering.net>
4595
4596         Fix global typo in last change: use chmod u-w, not chmod u-x.
4597         Spotted by Paul Eggert and Bruce Korb.
4598         * modules/alloca-opt, modules/argz, modules/arpa_inet:
4599         * modules/byteswap, modules/configmake, modules/fcntl:
4600         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
4601         * modules/localcharset, modules/netinet_in, modules/poll:
4602         * modules/stdbool, modules/stdint, modules/sys_select:
4603         * modules/sys_socket, modules/sys_stat, modules/sysexits:
4604
4605 2006-09-06  Jim Meyering  <jim@meyering.net>
4606
4607         Make generated files be read-only.
4608         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
4609         Ensure that each generated file is now read-only.
4610         * modules/argz: Likewise.
4611         * modules/arpa_inet: Likewise.
4612         * modules/byteswap: Likewise.
4613         * modules/configmake: Likewise.
4614         * modules/fcntl: Likewise.
4615         * modules/fnmatch: Likewise.
4616         * modules/getopt: Likewise.
4617         * modules/glob: Likewise.
4618         * modules/inttypes: Likewise.
4619         * modules/netinet_in: Likewise.
4620         * modules/poll: Likewise.
4621         * modules/stdbool: Likewise.
4622         * modules/stdint: Likewise.
4623         * modules/sys_select: Likewise.
4624         * modules/sys_socket: Likewise.
4625         * modules/sys_stat: Likewise.
4626         * modules/sysexits: Likewise.
4627         * modules/localcharset: Same as above, but continue using temporary
4628         file named "t-$@" (why different?) rather than the "$@-t" used
4629         everywhere else.
4630
4631         * modules/sysexits (Makefile.am): Replace literal occurrences
4632         of "sysexit.h" more readable, and more consistent, "$@".
4633
4634 2006-09-06  Bruno Haible  <bruno@clisp.org>
4635
4636         * modules/striconv: New file.
4637         * modules/xstriconv: New file.
4638         * MODULES.html.sh (Internationalization functions): Add striconv,
4639         xstriconv.
4640
4641 2006-09-06  Bruno Haible  <bruno@clisp.org>
4642
4643         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
4644         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
4645         not using libtool correctly.
4646
4647 2006-09-06  Bruno Haible  <bruno@clisp.org>
4648
4649         * lib/striconv.h: New file.
4650         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
4651         iconvstring.c.
4652         * lib/xstriconv.h: New file.
4653         * lib/xstriconv.c: New file.
4654
4655 2006-09-06  Bruno Haible  <bruno@clisp.org>
4656
4657         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
4658         lib_..._LDFLAGS.
4659
4660 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4661
4662         * lib/argz_.h: Sync from Libtool.
4663
4664         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
4665                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4666
4667         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
4668
4669 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
4670
4671         * modules/trim: New file.
4672
4673 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
4674
4675         * lib/trim.h: New file.
4676         * lib/trim.c: New file.
4677
4678 2006-09-05  Bruno Haible  <bruno@clisp.org>
4679
4680         * MODULES.html.sh (String handling): Add trim.
4681
4682 2006-09-04  Karl Berry  <karl@gnu.org>
4683
4684         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
4685         until next release.
4686
4687 2006-09-03  Bruno Haible  <bruno@clisp.org>
4688
4689         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
4690         correctly.
4691
4692 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
4693
4694         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
4695         not gl_GETLOADAVG.  Omit unneeded semicolons.
4696         Problems reported by Ralf Wildenhues in
4697         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
4698         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
4699         at the end, which is the usual gnulib style.
4700
4701         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
4702         of doing all the work ourselves.
4703         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
4704         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
4705
4706 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
4707
4708         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
4709         Problem reported by Ralf Wildenhues in
4710         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
4711
4712         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
4713         HAVE_STRUCT_STATFS_F_FSTYPENAME.
4714
4715 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
4716
4717         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
4718         yesterday's patch by changing test -n to test -z.
4719
4720 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
4721
4722         * modules/getloadavg (Files): Add m4/getloadavg.m4.
4723         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
4724         the former is now obsolescent.
4725
4726         * modules/chdir-long (Depends-on): Add fcntl.
4727
4728 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
4729
4730         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
4731         obsolescent, and programs should use gnulib instead.
4732         * m4/getloadavg.m4: New file, with contents taken from Autoconf
4733         but with prefixes changed.
4734
4735 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
4736
4737         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
4738         or stdbool.h, because they might not exist while configuring.
4739
4740         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
4741         Don't include unistd.h or limits.h; not needed, since chdir-long.h
4742         does that for us.
4743         (O_DIRECTORY): Remove.
4744
4745 2006-08-31  Eric Blake  <ebb9@byu.net>
4746
4747         * gnulib-tool: Don't let emacs change spaces to TAB.
4748
4749 2006-08-31  Bruno Haible  <bruno@clisp.org>
4750
4751         * gnulib-tool: When calling func_import more than once, do it in a
4752         subshell.
4753         Reported by Eric Blake <ebb9@byu.net>.
4754
4755 2006-08-31  Bruno Haible  <bruno@clisp.org>
4756
4757         * gnulib-tool (nl): Remove variable.
4758         (sed_transform_lib_file): Use more robust test for config-h module.
4759         (func_import): Fix typo in 2006-08-25 patch.
4760
4761 2006-08-31  Bruno Haible  <bruno@clisp.org>
4762
4763         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
4764         specified, augment Makefile.am variables instead of assigning them.
4765
4766 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
4767
4768         Work around a bug in both the Linux and SunOS 64-bit kernels:
4769         nanosleep mishandles sleeps for longer than 2**31 seconds.
4770         Problem reported by Frank v Waveren in
4771         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
4772         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
4773         Check for nanosleep bug.
4774         (LIB_NANOSLEEP): Append clock_gettime library if needed.
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         * lib/nanosleep.c (BILLION): New constant.
4783         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
4784         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
4785         implementation.
4786
4787 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
4788
4789         * modules/nanosleep (Depends-on): Add gettime.
4790
4791 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
4792         and Simon Josefsson  <jas@extundo.com>
4793         and Oskar Liljeblad  <oskar@osk.mine.nu>
4794
4795         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
4796         * gnulib-tool (func_import): New license type 'unmodifiable license
4797         text'.
4798         * modules/fdl: Use it.  Longer description.
4799         * module/gpl, module/lgpl: New files.
4800
4801 2006-08-30  Jim Meyering  <jim@meyering.net>
4802
4803         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
4804         shadowing the parameter.
4805
4806 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4807
4808         Sync from Libtool:
4809
4810         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4811
4812         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
4813         sharing with gnulib.  Report by Eric Blake.
4814
4815 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
4816
4817         * modules/isapipe: New file.
4818         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
4819
4820 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
4821
4822         * modules/configmake (Makefile.am): Add a comment, and omit
4823         the CONFIGMAKE_ prefix from generated macro names.  Suggested
4824         by Bruno Haible.
4825
4826 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
4827
4828         * m4/isapipe.m4: New file.
4829
4830 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
4831
4832         * lib/isapipe.c, lib/isapipe.h: New files.
4833
4834 2006-08-29  Jim Meyering  <jim@meyering.net>
4835
4836         * modules/configmake (Makefile.am): Make configmake.h depend on
4837         Makefile.  Otherwise, a stale configmake.h could hang around.
4838
4839 2006-08-29  Eric Blake  <ebb9@byu.net>
4840
4841         * lib/error.c (error_at_line, print_errno_message): Match libc, after
4842         resolution of upstream bug 3044.
4843
4844 2006-08-29  Bruno Haible  <bruno@clisp.org>
4845
4846         * modules/localcharset (Depends-on): Add configmake.
4847         (Makefile.am): Remove setting of LIBDIR through DEFS.
4848
4849 2006-08-29  Bruno Haible  <bruno@clisp.org>
4850
4851         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
4852         defined.
4853
4854 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
4855
4856         * modules/fcntl: New file.
4857         * modules/chdir-safer (Depends-on): Add fcntl.
4858         * modules/fts: Likewise.
4859         * modules/mkdir-p: Likewise.
4860
4861         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
4862         This undoes the most recent change, since we're now addressing the
4863         problem in a different way.
4864
4865         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
4866         into output, since the output might be called Makefile.am even
4867         if $makefile_name is something different.
4868         (func_import): Use $makefile_am rather than
4869         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
4870         empty.
4871
4872         * modules/inttypes (Files): Add m4/inttypes-h.m4.
4873
4874 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
4875
4876         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
4877         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
4878         recent change to stdint.m4, since we're now addressing the problem in a
4879         different way.
4880
4881 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
4882
4883         * m4/fcntl_h.m4: New file.
4884
4885 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
4886
4887         * lib/fcntl_.h: New file.
4888         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
4889         the fcntl module.
4890         * lib/dirchownmod.c: Likewise.
4891         * lib/fts.c: Likewise.
4892
4893         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
4894         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
4895         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
4896         just before including <inttypes.h>, to avoid circular inclusion.
4897
4898 2006-08-28  Jim Meyering  <jim@meyering.net>
4899
4900         * doc/visibility.texi: Actually read and correct the grammar of the
4901         sentence affected by yesterday's change.
4902
4903 2006-08-28  Eric Blake  <ebb9@byu.net>
4904
4905         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
4906         needs wrapper.
4907
4908 2006-08-28  Eric Blake  <ebb9@byu.net>
4909
4910         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
4911
4912 2006-08-28  Eric Blake  <ebb9@byu.net>
4913
4914         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
4915
4916 2006-08-28  Bruno Haible  <bruno@clisp.org>
4917
4918         * modules/c-strstr: New file, from GNU gettext.
4919         * MODULES.html.sh (String handling): Add c-strstr.
4920
4921 2006-08-28  Bruno Haible  <bruno@clisp.org>
4922
4923         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
4924         macros.
4925         Reported by Eric Blake.
4926
4927 2006-08-28  Bruno Haible  <bruno@clisp.org>
4928
4929         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
4930         (VASNPRINTF): Return a string of length > INT_MAX without failing.
4931         * lib/vasprintf.c: Include errno.h, limits.h.
4932         (EOVERFLOW): New fallback definition.
4933         (vasprintf): Test here whether the string length is > INT_MAX.
4934         * lib/vsnprintf.c: Include errno.h, limits.h.
4935         (EOVERFLOW): New fallback definition.
4936         (vsnprintf): Fix bug when generated string was too long for the buffer.
4937         Test here whether the string length is > INT_MAX.
4938
4939 2006-08-28  Bruno Haible  <bruno@clisp.org>
4940
4941         * lib/inttypes_.h (SCNX*): Remove definitions.
4942         Reported by Eric Blake.
4943
4944 2006-08-28  Bruno Haible  <bruno@clisp.org>
4945
4946         * lib/c-strstr.h: New file, from GNU gettext.
4947         * lib/c-strstr.c: New file, from GNU gettext.
4948
4949 2006-08-28  Bruno Haible  <bruno@clisp.org>
4950
4951         * gnulib-tool: Reorder some statements.
4952
4953 2006-08-28  Bruno Haible  <bruno@clisp.org>
4954
4955         * gnulib-tool: New option --makefile-name.
4956         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
4957         $makefile_name.
4958         (func_import): Write $makefile_name to the cache file, and read it from
4959         there unless explicitly specified. Use $makefile_name as file name
4960         instead of Makefile.am. Adjust the recommendations accordingly.
4961
4962 2006-08-28  Bruno Haible  <bruno@clisp.org>
4963
4964         * gnulib-tool (func_verify_module): Check against misapplying patch.
4965
4966 2006-08-28  Bruno Haible  <bruno@clisp.org>
4967
4968         * gnulib-tool (func_relativize, func_relconcat): New functions.
4969         Give an error if --local-dir is given with --update.
4970         Remove trailing slashes from $local_gnulib_dir.
4971         (func_import): Store the relativized $local_gnulib_dir in
4972         gnulib-cache.m4, and read it from there if not specified explicitly.
4973
4974 2006-08-28  Bruno Haible  <bruno@clisp.org>
4975
4976         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
4977         is the current directory. Respect also $local_gnulib_dir.
4978
4979 2006-08-28  Bruno Haible  <bruno@clisp.org>
4980             Simon Josefsson  <jas@extundo.com>
4981
4982         BeOS portability.
4983         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
4984
4985 2006-08-27  Jim Meyering  <jim@meyering.net>
4986
4987         * doc/visibility.texi: Remove duplicate word: "pointer".
4988
4989 2006-08-26  Bruno Haible  <bruno@clisp.org>
4990
4991         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
4992         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
4993         (Makefile.am): Create inttypes.h from inttypes_.h.
4994         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
4995
4996         * modules/imaxabs: New file.
4997
4998         * modules/imaxdiv: New file.
4999
5000 2006-08-26  Bruno Haible  <bruno@clisp.org>
5001
5002         * m4/inttypes.m4: New file.
5003         * m4/_inttypes_h.m4: Remove file.
5004         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
5005         PRI_MACROS_BROKEN.
5006         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
5007
5008         * m4/imaxabs.m4: New file.
5009
5010         * m4/imaxdiv.m4: New file.
5011
5012 2006-08-26  Bruno Haible  <bruno@clisp.org>
5013
5014         * lib/inttypes_.h: New file.
5015         * lib/inttypes.h: Remove file.
5016         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
5017
5018         * lib/imaxabs.c: New file.
5019
5020         * lib/imaxdiv.c: New file.
5021
5022 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
5023
5024         New config-h module, so that "make" output needn't be cluttered
5025         by -DHAVE_CONFIG_H.
5026         * MODULES.html.sh (Support for building libraries and executables):
5027         Add config-h.
5028         * modules/config-h: New file.
5029         * gnulib-tool (nl, sed_transform_lib_file): New vars.
5030         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
5031         the config-h module is used.
5032
5033         New configmake module, so that "make" output needn't be cluttered
5034         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
5035         * MODULES.html.sh (Support for building libraries and executables):
5036         Add configmake.
5037         * modules/configmake: New file.
5038
5039 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
5040
5041         * m4/config-h.m4: New file.
5042
5043 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
5044
5045         * config/srclist.txt: Add elisp-comp.
5046
5047 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
5048
5049         * MODULES.html.sh (Support for building libraries and executables):
5050         Add elisp-comp.
5051         * build-aux/elisp-comp: New file.
5052         * modules/elisp-comp: New file.
5053
5054 2006-08-24  Bruno Haible  <bruno@clisp.org>
5055
5056         * gnulib-tool (func_create_testdir): Use non-default values of
5057         sourcebase and m4base.
5058
5059 2006-08-24  Bruno Haible  <bruno@clisp.org>
5060
5061         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
5062         HTML structure.
5063
5064 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
5065
5066         * modules/openat (Depends-on): Add lchown.
5067
5068 2006-08-23  Bruno Haible  <bruno@clisp.org>
5069
5070         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
5071         of gl_LOCK_EARLY instead of gl_LOCK.
5072
5073 2006-08-23  Bruno Haible  <bruno@clisp.org>
5074
5075         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
5076         on OSF/1 to no.
5077         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
5078
5079 2006-08-23  Bruno Haible  <bruno@clisp.org>
5080
5081         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
5082         as unusable.
5083
5084         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
5085         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
5086         (gl_LOCK): New macro.
5087
5088 2006-08-22  Simon Josefsson  <jas@extundo.com>
5089
5090         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
5091         to md5 module.
5092
5093 2006-08-22  Simon Josefsson  <jas@extundo.com>
5094
5095         * MODULES.html.sh: Add "Support for maintaining and release
5096         projects".
5097
5098         * build-aux/gnupload: New file, from coreutils.
5099
5100 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
5101
5102         Avoid the need for AC_LIBSOURCES in m4 macros.
5103         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
5104         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
5105         * modules/check-version (EXTRA_DIST): Add check-version.h.
5106         * modules/crc (EXTRA_DIST): Add crc.h.
5107         * modules/des (EXTRA_DIST): Add des.h.
5108         * modules/gc (EXTRA_DIST): Add gc.h.
5109         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
5110         * modules/getline (EXTRA_DIST): Add getline.h.
5111         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
5112         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
5113         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
5114         * modules/md2 (EXTRA_DIST): Add md2.h.
5115         * modules/md4 (EXTRA_DIST): Add md4.h.
5116         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
5117         * modules/read-file (EXTRA_DIST): Add read-file.h.
5118         * modules/readline (EXTRA_DIST): Add readline.h.
5119         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
5120         rijndael-api-fst.h.
5121
5122 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
5123
5124         * m4/rijndael.m4 (gl_ARCFOUR):
5125         * m4/arctwo.m4 (gl_ARCTWO):
5126         * m4/check-version.m4 (gl_CHECK_VERSION):
5127         * m4/crc.m4 (gl_CRC):
5128         * m4/des.m4 (gl_DES):
5129         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
5130         * m4/gc.m4 (gl_GC):
5131         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
5132         * m4/getline.m4 (gl_FUNC_GETLINE):
5133         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
5134         * m4/hmac-md5.m4 (gl_HMAC_MD5):
5135         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
5136         * m4/md2.m4 (gl_MD2):
5137         * m4/md4.m4 (gl_MD4):
5138         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
5139         * m4/read-file.m4 (gl_FUNC_READ_FILE):
5140         * m4/readline.m4 (gl_FUNC_READLINE):
5141         * m4/rijndael.m4 (gl_RIJNDAEL):
5142         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
5143         to get the necessary .h files and whatnot.
5144
5145 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
5146
5147         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
5148         gnulib rather than the other way around.
5149         * config/srclistvars.sh (COREUTILS): Remove.
5150
5151 2006-08-22  Jim Meyering  <jim@meyering.net>
5152
5153         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
5154
5155         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
5156
5157 2006-08-22  Eric Blake  <ebb9@byu.net>
5158
5159         * modules/regexprops-generic: New file.
5160         * MODULES.html.sh (Support for building documentation): List it.
5161
5162 2006-08-22  Eric Blake  <ebb9@byu.net>
5163
5164         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
5165         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
5166         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
5167         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
5168
5169 2006-08-22  Bruno Haible  <bruno@clisp.org>
5170
5171         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
5172         and lib_LTLIBRARIES like the other lib_* variables.
5173
5174 2006-08-22  Bruno Haible  <bruno@clisp.org>
5175
5176         * build-aux/x-to-1.in: New file, from GNU gettext.
5177
5178 2006-08-22  Bruno Haible  <bruno@clisp.org>
5179
5180         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
5181         <utmpx.h> exists.
5182
5183 2006-08-22  Bruno Haible  <bruno@clisp.org>
5184
5185         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
5186         <utmpx.h> exists.
5187
5188 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
5189
5190         BeOS portability.
5191         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
5192         exist.
5193         Problem reported by Bruno Haible.
5194
5195 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
5196
5197         Avoid the need for AC_LIBSOURCES in m4 macros.
5198         * modules/acl (EXTRA_DIST): Add acl.h.
5199         * modules/argmatch (Files): Add m4/argmatch.m4.
5200         (configure.ac): Add gl_ARGMATCH.
5201         (EXTRA_DIST): Renamed from lib_SOURCES, for
5202         consistency with the other modules.  Remove argmatch.c.
5203         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
5204         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
5205         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
5206         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
5207         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
5208         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
5209         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
5210         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
5211         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
5212         * modules/closeout (EXTRA_DIST): Add closeout.h.
5213         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
5214         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
5215         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
5216         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
5217         dirname.h; remove basename.c and stripslash.c.
5218         * modules/exclude (EXTRA_DIST): Add exclude.h.
5219         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
5220         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
5221         * modules/file-type (EXTRA_DIST): Add file-type.h.
5222         * modules/filemode (EXTRA_DIST): Add filemode.h.
5223         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
5224         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
5225         * modules/fpending (EXTRA_DIST): Add __fpending.h.
5226         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
5227         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
5228         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
5229         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
5230         * modules/getdate (EXTRA_DIST): Add getdate.c.
5231         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
5232         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
5233         * modules/getpass (EXTRA_DIST): Add getpass.h.
5234         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
5235         * modules/group-member (EXTRA_DIST): Add group-member.h.
5236         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
5237         * modules/hash (EXTRA_DIST): Add hash.h.
5238         * modules/human (EXTRA_DIST): Add human.h.
5239         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
5240         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
5241         * modules/lchown (EXTRA_DIST): Add lchown.h.
5242         * modules/long-options (EXTRA_DIST): Add long-options.h.
5243         * modules/lstat (EXTRA_DIST): Add lstat.h.
5244         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
5245         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
5246         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
5247         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
5248         * modules/memxor (EXTRA_DIST): Add memxor.h.
5249         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
5250         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
5251         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
5252         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
5253         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
5254         * modules/physmem (EXTRA_DIST): Add physmem.h.
5255         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
5256         * modules/posixver (EXTRA_DIST): Add posixver.h.
5257         * modules/quote (EXTRA_DIST): Add quote.h.
5258         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
5259         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
5260         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
5261         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
5262         regex_internal.h regexec.c.
5263         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
5264         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
5265         * modules/same (EXTRA_DIST): Add same.h.
5266         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
5267         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
5268         * modules/savedir (EXTRA_DIST): Add savedir.h.
5269         * modules/sha1 (EXTRA_DIST): Add sha1.h.
5270         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
5271         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
5272         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
5273         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
5274         * modules/strdup (EXTRA_DIST): Add strdup.h.
5275         * modules/strftime (EXTRA_DIST): Add strftime.h.
5276         * modules/strndup (EXTRA_DIST): Add strndup.h.
5277         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
5278         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
5279         * modules/time_r (EXTRA_DIST): Add time_r.h.
5280         * modules/timespec (EXTRA_DIST): Add timespec.h.
5281         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
5282         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
5283         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
5284         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
5285         * modules/userspec (EXTRA_DIST): Add userspec.h.
5286         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
5287         * modules/utimens (EXTRA_DIST): Add utimens.h.
5288         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
5289         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
5290         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
5291         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
5292         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
5293         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
5294         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
5295         * modules/yesno (EXTRA_DIST): Add yesno.h.
5296
5297 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
5298
5299         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
5300
5301         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
5302         * m4/dev-ino.m4, same-inode.m4: Remove.
5303
5304         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
5305         * m4/acl.m4 (AC_FUNC_ACL):
5306         * m4/backupfile.m4 (gl_BACKUPFILE):
5307         * m4/c-strtod.m4 (gl_C99_STRTOLD):
5308         * m4/canon-host.m4 (gl_CANON_HOST):
5309         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
5310         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
5311         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
5312         * m4/cloexec.m4 (gl_CLOEXEC):
5313         * m4/close-stream.m4 (gl_CLOSE_STREAM):
5314         * m4/closeout.m4 (gl_CLOSEOUT):
5315         * m4/dirfd.m4 (gl_FUNC_DIRFD):
5316         * m4/dirname.m4 (gl_DIRNAME):
5317         * m4/exclude.m4 (gl_EXCLUDE):
5318         * m4/exitfail.m4 (gl_EXITFAIL):
5319         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
5320         * m4/file-type.m4 (gl_FILE_TYPE):
5321         * m4/filemode.m4 (gl_FILEMODE):
5322         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
5323         * m4/fpending.m4 (gl_FUNC_FPENDING):
5324         * m4/fprintftime.m4 (gl_FPRINTFTIME):
5325         * m4/fts.m4 (gl_FUNC_FTS):
5326         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
5327         * m4/getdate.m4 (gl_GETDATE):
5328         * m4/gethrxtime.m4 (gl_GETHRXTIME):
5329         * m4/getpagesize.m4 (gl_GETPAGESIZE):
5330         * m4/getpass.m4 (gl_FUNC_GETPASS):
5331         * m4/gettime.m4 (gl_GETTIME):
5332         * m4/getugroups.m4 (gl_GETUGROUPS):
5333         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
5334         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
5335         * m4/hard-locale.m4 (gl_HARD_LOCALE):
5336         * m4/hash.m4 (gl_HASH):
5337         * m4/idcache.m4 (gl_IDCACHE):
5338         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
5339         * m4/lchown.m4 (gl_FUNC_LCHOWN):
5340         * m4/long-options.m4 (gl_LONG_OPTIONS):
5341         * m4/lstat.m4 (gl_FUNC_LSTAT):
5342         * m4/md5.m4 (gl_MD5):
5343         * m4/memcasecmp.m4 (gl_MEMCASECMP):
5344         * m4/memcoll.m4 (gl_MEMCOLL):
5345         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
5346         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
5347         * m4/memxor.m4 (gl_MEMXOR):
5348         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
5349         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
5350         * m4/modechange.m4 (gl_MODECHANGE):
5351         * m4/mountlist.m4 (gl_MOUNTLIST):
5352         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
5353         * m4/openat.m4 (gl_FUNC_OPENAT):
5354         * m4/pathmax.m4 (gl_PATHMAX):
5355         * m4/physmem.m4 (gl_PHYSMEM):
5356         * m4/posixtm.m4 (gl_POSIXTM):
5357         * m4/posixver.m4 (gl_POSIXVER):
5358         * m4/quote.m4 (gl_QUOTE):
5359         * m4/quotearg.m4 (gl_QUOTEARG):
5360         * m4/readtokens.m4 (gl_READTOKENS):
5361         * m4/readutmp.m4 (gl_READUTMP):
5362         * m4/regex.m4 (gl_REGEX):
5363         * m4/safe-read.m4 (gl_SAFE_READ):
5364         * m4/safe-write.m4 (gl_SAFE_WRITE):
5365         * m4/same.m4 (gl_SAME):
5366         * m4/save-cwd.m4 (gl_SAVE_CWD):
5367         * m4/savedir.m4 (gl_SAVEDIR):
5368         * m4/settime.m4 (gl_SETTIME):
5369         * m4/sha1.m4 (gl_SHA1):
5370         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
5371         * m4/stat-macros.m4 (gl_STAT_MACROS):
5372         * m4/stat-time.m4 (gl_STAT_TIME):
5373         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
5374         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
5375         * m4/strdup.m4 (gl_FUNC_STRDUP):
5376         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
5377         * m4/strndup.m4 (gl_FUNC_STRNDUP):
5378         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
5379         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
5380         * m4/time_r.m4 (gl_TIME_R):
5381         * m4/timespec.m4 (gl_TIMESPEC):
5382         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
5383         * m4/unlinkdir.m4 (gl_UNLINKDIR):
5384         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
5385         * m4/userspec.m4 (gl_USERSPEC):
5386         * m4/utimecmp.m4 (gl_UTIMECMP):
5387         * m4/utimens.m4 (gl_UTIMENS):
5388         * m4/xalloc.m4 (gl_XALLOC):
5389         * m4/xgetcwd.m4 (gl_XGETCWD):
5390         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
5391         * m4/xreadlink.m4 (gl_XREADLINK):
5392         * m4/xstrtod.m4 (gl_XSTRTOD):
5393         * m4/yesno.m4 (gl_YESNO):
5394         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
5395         to get the necessary .h files and whatnot.
5396
5397 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
5398             Bruno Haible  <bruno@clisp.org>
5399
5400         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
5401         /bin/sh understanding of '!' conditional negation.
5402
5403 2006-08-21  Jim Meyering  <jim@meyering.net>
5404
5405         * modules/openat (Depends-on): Really alphabetize.
5406
5407         * modules/acl (Depends-on): Add error and quote.
5408
5409         * check-module (find_included_lib_files): Add at-func.c to the
5410         ok-to-include-more-than-once white list.
5411
5412         * modules/openat (Depends-on): Add lstat.  Alphabetize.
5413
5414 2006-08-21  Bruno Haible  <bruno@clisp.org>
5415
5416         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
5417         Emit a pkgdata_DATA variable only if some snippets add contents to it.
5418         Reported by Martin Lambers <marlam@marlam.de>.
5419
5420 2006-08-21  Bruno Haible  <bruno@clisp.org>
5421
5422         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
5423         specify an installation location, don't emit a noinst_LIBRARIES or
5424         noinst_LTLIBRARIES assignment.
5425
5426 2006-08-21  Bruno Haible  <bruno@clisp.org>
5427
5428         BeOS portability.
5429         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
5430         BeOS has mbrtowc() but no <wctype.h>.
5431
5432 2006-08-21  Bruno Haible  <bruno@clisp.org>
5433
5434         BeOS portability.
5435         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
5436         exist.
5437
5438 2006-08-21  Bruno Haible  <bruno@clisp.org>
5439
5440         BeOS portability.
5441         * lib/mbchar.h: Include <wctype.h> only if it exists.
5442
5443 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
5444
5445         Remove files that are no longer needed by their respective modules.
5446         * m4/obstack.m4: Remove.
5447         * m4/strerror_r.m4: Remove.
5448         * m4/uint32_t.m4: Remove.
5449         * m4/uintptr_t.m4: Remove.
5450         * m4/ullong_max.m4: Remove.
5451         * m4/xstrtoimax.m4: Remove.
5452         * m4/xstrtoumax.m4: Remove.
5453
5454         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
5455         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
5456         dependencies now capture this.
5457
5458         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
5459         Do not use AC_LIBSOURCES, since gnulib modules now do this.
5460         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
5461         * m4/human.m4 (gl_HUMAN): Likewise.
5462         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
5463         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
5464
5465         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
5466
5467         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
5468         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
5469         stdint.
5470         * m4/human.m4 (gl_HUMAN): Likewise.
5471         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
5472         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
5473         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
5474         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
5475         * m4/xstrtol (gl_XSTRTOL): Likewise.
5476
5477         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
5478         AC_TYPE_LONG_LONG_INT.
5479         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
5480         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
5481         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
5482         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
5483
5484         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
5485         on stdbool.
5486
5487         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
5488         (gl_PREREQ_XSTRTOUL): Remove.
5489
5490         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
5491
5492         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
5493         mode.
5494
5495 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
5496
5497         Add and change modules to make it easier for coreutils to use
5498         gnulib-tool.
5499         * modules/backupfile (Files): Remove m4/d-ino.m4.
5500         (Depends-on): Add d-ino.
5501         * modules/cycle-check (Depends-on): Add stdint.
5502         (lib_SOURCES): Add cycle-check.h.
5503         * modules/d-ino: New module.
5504         * modules/d-type: New module.
5505         * modules/error (Files): Remove m4/strerror_r.m4.
5506         * modules/filemode (Files): Add m4/st_dm_mode.m4.
5507         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
5508         m4/inttypes_h.m4, m4/uintmax_t.m4.
5509         (Depends-on): Add stdint.
5510         (lib_SOURCES): Add fsusage.h.
5511         * modules/getcwd (Files): Remove d-ino.m4.
5512         (Depends-on): Add d-ino.
5513         * modules/getndelim2 (Depends-on): Add stdint.
5514         * modules/glob (Files): Remove m4/d-type.m4.
5515         (Depends-on): Add d-type.
5516         * modules/host-os: New module.
5517         * modules/human (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 human.h.
5521         * modules/inttostr (Files): Remove m4/intmax_t.m4,
5522         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
5523         m4/uintmax_t.m4, m4/ulonglong.m4.
5524         (Depends-on): Add stdint.
5525         (EXTRA_DIST): Add inttostr.h.
5526         * modules/lchmod: New module.
5527         * modules/link-follow: New module.
5528         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
5529         (Depends-on): Add lchmod.
5530         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
5531         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
5532         (Depends-on): Add stdint.
5533         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
5534         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
5535         (Depends-on): Add stdint.
5536         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
5537         * modules/perl: New module.
5538         * modules/regex (Depends-on): Add stdint.
5539         * modules/rmdir-errno: New module.
5540         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
5541         m4/intmax_t.m4.
5542         (Depends-on): Add stdint.
5543         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
5544         m4/uintmax_t.m4.
5545         (Depends-on): Add stdint.
5546         * modules/unlink-busy: New module.
5547         * modules/utimecmp (Depends-on): Add stdint.
5548         * modules/uptime: New module.
5549         * modules/winsz-ioctl: New module.
5550         * modules/winsz-termios: New module.
5551         * modules/xnanosleep (Depends-on): Add nanosleep.
5552         * modules/ullong_max: Remove.
5553         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
5554         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
5555         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
5556         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
5557         (Depends-on): Add inttypes.
5558         (lib_SOURCES): Add xstrtol.h.
5559         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
5560         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
5561         * MODULES.html.sh: Move 'assert' into the assert section.
5562         Move 'dummy' into the linking section.
5563         Remove ullong_max.
5564         Add section for compatibility checks for POSIX:2001 functions,
5565         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
5566         winsz-ioctl, and winsz-termios into it.
5567         Add lchmod.
5568         Add top-level Misc section and put host-os, perl, and uptime
5569         into it.
5570
5571 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
5572
5573         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
5574         now assume the stdint module.  Do not include inttypes.h.
5575         * lib/fsusage.h: Likewise.
5576         * lib/getndelim2.c: Likewise.
5577         * lib/human.h: Likewise.
5578         * lib/inttostr.h: Likewise.
5579         * lib/obstack.c: Likewise.
5580         * lib/regex_internal.h: Likewise.
5581         * lib/tempname.c: Likewise.
5582         * lib/utimecmp.c: Likewise.
5583         * lib/xstrtol.h: Likewise.
5584
5585         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
5586
5587         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
5588         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
5589         * lib/xtime.h: Likewise.
5590
5591 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
5592
5593         * modules/openat (Files): Add lib/fchmodat.c.
5594         Fixes problem reported by Jay Youngman.
5595
5596 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
5597
5598         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
5599         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
5600
5601 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
5602             Bruno Haible  <bruno@clisp.org>
5603
5604         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
5605         and is a script that invokes bison. Tighten the code. Add comments.
5606
5607 2006-08-18  Jim Meyering  <jim@meyering.net>
5608
5609         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
5610         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
5611         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
5612         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
5613
5614 2006-08-18  Bruno Haible  <bruno@clisp.org>
5615
5616         * modules/bison-i18n: New file.
5617         * MODULES.html.sh (Internationalization functions): Add it.
5618
5619 2006-08-18  Bruno Haible  <bruno@clisp.org>
5620
5621         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
5622         sys/statvfs.h. When getmntinfo was found, check its declaration and
5623         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
5624
5625 2006-08-18  Bruno Haible  <bruno@clisp.org>
5626
5627         * m4/bison-i18n.m4: New file, from bison.
5628
5629 2006-08-18  Bruno Haible  <bruno@clisp.org>
5630
5631         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
5632         (ME_DUMMY): Treat "kernfs" as a dummy.
5633         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
5634
5635 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
5636
5637         Update from coreutils.
5638
5639         2006-08-15  Jim Meyering  <jim@meyering.net>
5640
5641         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
5642
5643         2006-01-17  Jim Meyering  <jim@meyering.net>
5644
5645         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
5646
5647         2006-01-11  Jim Meyering  <jim@meyering.net>
5648
5649         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
5650         Check for the lchmod function.
5651
5652 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
5653
5654         Update from coreutils.
5655
5656         * lib/__fpending.h: Add copyright notice.
5657         * lib/fprintftime.h: Likewise.
5658         * lib/savedir.c: Use (C) in copyright notice.
5659         * lib/savedir.h: Likewise.
5660
5661         2006-08-15  Jim Meyering  <jim@meyering.net>
5662
5663         * lib/at-func.c: New file, with the logic of all emulated at-functions.
5664         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
5665         in support of the EXPECTED_ERRNO macro.
5666         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
5667         definitions.  Instead, define the appropriate symbols and include
5668         "at-func.c".
5669         * lib/mkdirat.c (mkdirat): Likewise.
5670         * lib/fchmodat.c (fchmodat): Likewise.
5671         (ENOSYS): Remove definition.
5672         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
5673         it.  Don't include "unistd--.h" -- it wasn't ever used.
5674
5675         2006-01-17  Jim Meyering  <jim@meyering.net>
5676
5677         Rewrite fts.c not to change the current working directory,
5678         by using openat, fstatat, fdopendir, etc..
5679
5680         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
5681         (HAVE_OPENAT_SUPPORT): Define.
5682         [_LIBC] (fchdir): Don't undef or define; no longer used.
5683         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
5684         Now, this `function' always succeeds, and consumes its file descriptor
5685         parameter -- so callers must not close such FDs.  Update callers.
5686         (diropen_fd, opendirat, cwd_advance_fd): New functions.
5687         (diropen): Add parameter, SP.  Adjust all callers.
5688         Implement using diropen_fd, rather than open.
5689         (fts_open): Initialize new member, fts_cwd_fd.
5690         Remove fts_rft-setting code.
5691         (fts_close): Close fts_cwd_fd, if necessary.
5692         (__opendir2): Define in terms of opendir or opendirat,
5693         depending on whether the FST_NOCHDIR flag is set.
5694         (fts_build): Since fts_safe_changedir consumes its FD, and since
5695         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
5696         and close the dup'd file descriptor upon failure.
5697         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
5698         (fts_safe_changedir): Tweak semantics to reflect that this function
5699         now calls cwd_advance_fd and hence consumes its FD argument.
5700         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
5701         [struct FTS] (fts_rft): Remove now-unused member.
5702         [struct FTS] (fts_cycle.state): Improve comment.
5703
5704         * lib/openat.c (openat_needs_fchdir): New function.
5705         * lib/openat.h (openat_needs_fchdir): Declare it.
5706
5707 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
5708
5709         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
5710         Problem and fix reported by Pádraig Brady in
5711         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
5712
5713 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
5714
5715         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
5716
5717 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
5718
5719         * lib/memcoll.c (memcoll): Optimize for the common case where the
5720         arguments are bytewise equal.
5721
5722 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
5723
5724         * doc/regexprops-generic.texi: Add a copyright notice.
5725
5726 2006-08-15  Bruno Haible  <bruno@clisp.org>
5727
5728         * modules/tmpdir (License): Change to LGPL.
5729
5730 2006-08-15  Bruno Haible  <bruno@clisp.org>
5731
5732         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
5733         module.
5734
5735 2006-08-14  Simon Josefsson  <jas@extundo.com>
5736
5737         * config/srclist.txt: Add gnupload.
5738
5739 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
5740
5741         Change copyright notice from LGPL 2 to GPL 2, since that's the
5742         standard form used in the gnulib repository.
5743         * tests/test-lock.c: Likewise.
5744         * tests/test-stdint.c: Likewise.
5745         * tests/test-tls.c: Likewise.
5746
5747         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
5748         prelude-manager.  User shorter URLs for GNU projects, without '?'.
5749         Add copyright notice.
5750
5751         * check-module: Add copyright notice.  Output a copyright
5752         notice if "--version" is specified.
5753         * modules/COPYING: New file.
5754         * tests/test-getaddrinfo.c: Add copyright notice.
5755         * tests/test-verify.c: Likewise.
5756
5757 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
5758
5759         Change copyright notice from LGPL 2 to GPL 2, since that's the
5760         standard form used in the gnulib repository.
5761         * lib/lock.c: LGPL -> GPL.
5762         * lib/lock.h: Likewise.
5763         * lib/strnlen1.c: Likewise.
5764         * lib/strnlen1.h: Likewise.
5765         * lib/tls.c: Likewise.
5766         * lib/tls.h: Likewise.
5767         * lib/tmpdir.c: Likewise.
5768
5769         * lib/TODO: Remove; this belongs only in coreutils.
5770
5771 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
5772
5773         Add copyright notices to long-enough files that lack them, since
5774         otherwise the files aren't clearly free.  Use the same notice that
5775         getdate.texi already uses.
5776         * doc/alloca-opt.texi: Add copyright notice.
5777         * doc/alloca.texi: Likewise.
5778         * doc/ctime.texi: Likewise.
5779         * doc/functions.texi: Likewise.
5780         * doc/gcd.texi: Likewise.
5781         * doc/gnulib-tool.texi: Likewise.
5782         * doc/inet_ntoa.texi: Likewise.
5783         * doc/visibility.texi: Likewise.
5784
5785         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
5786         * doc/quote.texi: Add copyright notice.
5787
5788         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
5789         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
5790         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
5791         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
5792         is now obsolete, and give a pointer to the Sun list.
5793         Add copyright notice.
5794
5795 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
5796
5797         * config/srclistvars.sh: Add copyright notice.
5798
5799 2006-08-14  Eric Blake  <ebb9@byu.net>
5800
5801         Import the following change from libc:
5802
5803         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
5804
5805         Upstream bug 2997.
5806         * lib/misc/error.c: Add space between program name and message if file
5807         name is missing.
5808
5809 2006-08-12  Karl Berry  <karl@gnu.org>
5810
5811         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
5812         remove, these originate in gnulib now.
5813
5814 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5815
5816         * doc/Makefile (standards.info standards.html standards.dvi):
5817         Also depend on make-stds.texi.
5818
5819 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
5820
5821         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
5822         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
5823
5824         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
5825         in wchar_t.  Problem reported by Eric Blake.
5826
5827         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
5828         LEN is smaller than SIZE.  Suggested by Bruno Haible.
5829         Also, help the compiler to keep LEN in a register.
5830
5831 2006-08-11  Eric Blake  <ebb9@byu.net>
5832
5833         * users.txt: Sort.  Add tar.
5834
5835 2006-08-11  Bruno Haible  <bruno@clisp.org>
5836
5837         * users.txt: New file.
5838
5839 2006-08-11  Bruno Haible  <bruno@clisp.org>
5840
5841         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
5842         before <wchar.h>. Needed for OSF/1 and BSD/OS.
5843
5844 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
5845
5846         * modules/snprintf (Depends-on): Remove minmax.
5847         (Maintainer): Add self and Bruno.
5848
5849 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
5850
5851         * lib/.cppi-disable: Add snprintf.h, socket_.h.
5852         * lib/snprintf.c: Include <errno.h> and <limits.h>.
5853         (EOVERFLOW): Define if the system does not.
5854         Do not include "minmax.h"; it wasn't used.
5855         (snprintf): Don't assume size_t promotes to an unsigned type.
5856         Fix bug when generated string was too long for the buffer: the
5857         buffer's contents are supposed to be the initial prefix of the
5858         output.  Don't assume vasnprintf returns EOVERFLOW if the size
5859         exceeds INT_MAX; do the check ourselves.
5860
5861         Import the following changes from libc:
5862
5863         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
5864
5865         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
5866         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
5867         set wc to the byte which couldn't be converted.
5868         (re_string_reconstruct): Don't clear valid_raw_len before calling
5869         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
5870         tip_context using re_string_context_at.
5871
5872         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
5873
5874         * lib/posix/regex.h: g++ still cannot handled [restrict].
5875
5876         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
5877
5878         * lib/posix/regex.h: Remove special handling for VMS.
5879
5880 2006-08-10  Jim Meyering  <jim@meyering.net>
5881
5882         * modules/same-inode: New module.
5883         * modules/dev-ino: New module.
5884         * modules/cycle-check: Depend on these modules, rather than simply
5885         including their .h files.
5886         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
5887         required via m4/cycle-check.m4.
5888         * modules/same: Depend on new same-inode module, rather than
5889         including same-inode.h.
5890         * modules/chdir-safer: New file.
5891
5892         * modules/chown (Depends-on): Add stat-macros.
5893
5894 2006-08-10  Jim Meyering  <jim@meyering.net>
5895
5896         * m4/cycle-check.m4: New file.
5897         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
5898         * m4/dev-ino.m4, m4/same-inode.m4: New files.
5899
5900 2006-08-10  Eric Blake  <ebb9@byu.net>
5901
5902         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
5903         in from original proposal.
5904
5905 2006-08-10  Eric Blake  <ebb9@byu.net>
5906         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5907
5908         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
5909         namespace.
5910
5911 2006-08-10  Bruno Haible  <bruno@clisp.org>
5912
5913         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
5914         as well.
5915
5916 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
5917
5918         Sync from coreutils.
5919
5920         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
5921
5922         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
5923         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
5924
5925 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
5926
5927         * modules/restrict: Remove; no longer needed now that we assume
5928         Autoconf 2.59 or later.
5929         * MODULES.html.sh: Remove 'restrict'.
5930         * modules/argp (Depends-on): Remove 'restrict'.
5931         * modules/base64 (Depends-on): Likewise.
5932         * modules/gc (Depends-on): Likewise.
5933         * modules/getaddrinfo (Depends-on): Likewise.
5934         * modules/glob (Depends-on): Likewise.
5935         * modules/inet_ntop (Depends-on): Likewise.
5936         * modules/inet_pton (Depends-on): Likewise.
5937         * modules/memxor (Depends-on): Likewise.
5938         * modules/regex (Depends-on): Likewise.
5939         * modules/strtok_r (Depends-on): Likewise.
5940         * modules/time_r (Depends-on): Likewise.
5941
5942 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
5943
5944         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
5945         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
5946         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
5947         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
5948         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
5949         * m4/memxor.m4 (gl_MEMXOR): Likewise.
5950         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
5951         gl_C_RESTRICT replaced by AC_C_RESTRICT.
5952
5953         Merge from coreutils.
5954         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
5955         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
5956         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
5957         * m4/time_r.m4 (gl_TIME_R): Likewise.
5958
5959 2006-08-09  Karl Berry  <karl@gnu.org>
5960
5961         * config/srclist.txt: no more gettext-tools, per Bruno.
5962
5963 2006-08-08  Eric Blake  <ebb9@byu.net>
5964
5965         * modules/verror: New module.
5966         * MODULES.html.sh: Document it.
5967
5968 2006-08-08  Eric Blake  <ebb9@byu.net>
5969
5970         * lib/verror.h, lib/verror.c: New files.
5971
5972 2006-08-08  Eric Blake  <ebb9@byu.net>
5973
5974         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
5975         verror_at_line output complies with GNU Coding Standards even when
5976         file is NULL.
5977
5978 2006-08-07  Bruno Haible  <bruno@clisp.org>
5979
5980         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
5981         versions of AIX.
5982         Reported by Ralf Wildenhues.
5983
5984 2006-08-07  Bruno Haible  <bruno@clisp.org>
5985
5986         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
5987         in an AC_DEFUN. Needed so that the autoconf snippets can use
5988         AC_REQUIRE.
5989
5990 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5991
5992         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
5993         Initialize pkgdata_DATA.
5994         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
5995         overriding it.
5996
5997 2006-08-06  Eric Blake  <ebb9@byu.net>
5998
5999         * lib/error.h: Fold in some upstream changes from glibc.
6000         * lib/error.c: Likewise.
6001
6002 2006-08-04  Bruno Haible  <bruno@clisp.org>
6003
6004         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
6005         Make the mostlyclean-local rule depend on mostlyclean-generic.
6006         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
6007
6008 2006-07-31  Bruno Haible  <bruno@clisp.org>
6009
6010         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
6011         <stdlib.h>, <string.h>.
6012
6013 2006-07-30  Bruno Haible  <bruno@clisp.org>
6014
6015         * modules/readlink (License): Change to LGPL.
6016
6017 2006-07-30  Bruno Haible  <bruno@clisp.org>
6018
6019         * modules/javaversion (Makefile.am): Distribute javaversion.java and
6020         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
6021         set PKGDATADIR to point to it.
6022
6023 2006-07-30  Bruno Haible  <bruno@clisp.org>
6024
6025         * modules/csharpexec (configure.ac): Comment out macro invocation.
6026         * modules/javaexec (configure.ac): Likewise.
6027         * modules/javacomp-script (configure.ac): Likewise.
6028
6029         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
6030
6031 2006-07-30  Bruno Haible  <bruno@clisp.org>
6032
6033         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
6034         linked-list.
6035
6036 2006-07-30  Bruno Haible  <bruno@clisp.org>
6037
6038         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
6039
6040 2006-07-30  Bruno Haible  <bruno@clisp.org>
6041
6042         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
6043         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
6044         get removed.
6045
6046 2006-07-29  Bruno Haible  <bruno@clisp.org>
6047
6048         Make it possible for gnulib-tool to work with locally modified or
6049         augmented gnulib repositories.
6050         * gnulib-tool (func_usage): Document --local-dir option.
6051         (local_gnulib_dir): New variable.
6052         Handle --local-dir option.
6053         (func_lookup_file): New function.
6054         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
6055         (func_get_description, func_get_filelist, func_get_description,
6056         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
6057         func_get_automake_snippet, func_get_include_directive,
6058         func_get_license, func_get_maintainer): Use func_lookup_file.
6059         (func_import, func_create_testdir): Use func_lookup_file.
6060
6061 2006-07-29  Bruno Haible  <bruno@clisp.org>
6062
6063         * modules/setenv (Depends-on): Add unistd.
6064
6065 2006-07-29  Bruno Haible  <bruno@clisp.org>
6066
6067         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
6068
6069 2006-07-29  Bruno Haible  <bruno@clisp.org>
6070
6071         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
6072
6073 2006-07-29  Bruno Haible  <bruno@clisp.org>
6074
6075         * gnulib-tool (import, update): If there is no Makefile.am, look at
6076         aclocal.m4, instead of bailing out.
6077
6078 2006-07-29  Bruno Haible  <bruno@clisp.org>
6079
6080         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
6081         Categorize the options by when they are useful.
6082
6083 2006-07-29  Bruno Haible  <bruno@clisp.org>
6084
6085         * gnulib-tool (func_usage): Document option --no-libtool.
6086         Handle option --no-libtool.
6087         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
6088         for changed semantics of $libtool variable.
6089         (func_import): Likewise. If libtool is not used, show this through
6090         an option --no-libtool.
6091         (func_create_testdir): Update.
6092
6093 2006-07-29  Bruno Haible  <bruno@clisp.org>
6094
6095         * gnulib-tool (func_import): Extend error message about missing
6096         --doc-base.
6097
6098 2006-07-29  Bruno Haible  <bruno@clisp.org>
6099
6100         * gnulib-tool (func_import): Don't create the $docbase directory if
6101         there is no file to store there.
6102
6103 2006-07-29  Bruno Haible  <bruno@clisp.org>
6104
6105         * gnulib-tool (autoconf_minversion): If a --dir option is given and
6106         relevant, look for configure.ac there, not in the current directory.
6107         Also use a simple search for AC_PREREQ, not "autoconf --trace".
6108
6109 2006-07-29  Bruno Haible  <bruno@clisp.org>
6110
6111         * gnulib-tool (SORT): New variable.
6112         (func_usage): Undocument --assume-autoconf option.
6113         Remove --assume-autoconf option handling.
6114         (autoconf_minversion): Determine from the contents of configure.ac.
6115         (func_import): Remove autoconf_minversion handling.
6116         Suggested by Eric Blake.
6117
6118 2006-07-29  Bruno Haible  <bruno@clisp.org>
6119
6120         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
6121
6122 2006-07-29  Bruno Haible  <bruno@clisp.org>
6123
6124         * config/srclist.txt (*setenv.[ch]): Remove rules.
6125
6126 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
6127
6128         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
6129
6130 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
6131
6132         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
6133         arpa/inet.h.
6134
6135 2006-07-28  Simon Josefsson  <jas@extundo.com>
6136
6137         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
6138         * modules/inet_pton (Depends-on): Likewise.
6139
6140 2006-07-28  Simon Josefsson  <jas@extundo.com>
6141
6142         * m4/netinet_in_h.m4: New file.
6143
6144 2006-07-28  Simon Josefsson  <jas@extundo.com>
6145
6146         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
6147         #include's.
6148
6149 2006-07-28  Simon Josefsson  <jas@extundo.com>
6150
6151         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
6152         #include's.
6153
6154 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
6155
6156         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
6157         setgid on directories only if they set these bits.
6158         * lib/modechange.h: Remove obsolete comment about masks.
6159
6160 2006-07-28  Eric Blake  <ebb9@byu.net>
6161
6162         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
6163         macro expansion.
6164
6165 2006-07-28  Bruno Haible  <bruno@clisp.org>
6166
6167         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
6168
6169 2006-07-28  Bruno Haible  <bruno@clisp.org>
6170
6171         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
6172
6173 2006-07-28  Bruno Haible  <bruno@clisp.org>
6174
6175         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
6176         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
6177         Define fallbacks.
6178         Avoids link error on FreeBSD 4.x.
6179         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
6180
6181         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
6182         encoding.
6183         * lib/mbswidth.c (iswcntrl): Likewise.
6184
6185 2006-07-27  Bruno Haible  <bruno@clisp.org>
6186
6187         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
6188         test.
6189
6190 2006-07-27  Bruno Haible  <bruno@clisp.org>
6191
6192         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
6193         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
6194         defined.
6195
6196 2006-07-26  Eric Blake  <ebb9@byu.net>
6197
6198         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
6199
6200 2006-07-26  Eric Blake  <ebb9@byu.net>
6201
6202         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
6203         like mingw that lack mkstemp.
6204         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
6205         avoid compilation warning on mingw.
6206
6207 2006-07-26  Bruno Haible  <bruno@clisp.org>
6208
6209         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
6210         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
6211         INT_FAST*_MIN, INTPTR_MIN.
6212
6213 2006-07-25  Bruno Haible  <bruno@clisp.org>
6214
6215         * modules/version-etc (Depends-on): Add stdarg.
6216
6217 2006-07-25  Bruno Haible  <bruno@clisp.org>
6218
6219         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
6220         complex commands.
6221
6222 2006-07-25  Bruno Haible  <bruno@clisp.org>
6223
6224         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
6225         defined in <stdarg.h> or config.h.
6226
6227 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
6228
6229         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
6230         (gl_STDIO_SAFER): Remove.
6231
6232 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
6233
6234         * MODULES.html.sh (File stream based Input/Output):
6235         Add fopen-safer, tmpfile-safer; remove stdio-safer.
6236         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
6237         * modules/fopen-safer, modules/tmpfile-safer: New files.
6238         * modules/stdio-safer: Remove.
6239
6240 2006-07-24  Bruno Haible  <bruno@clisp.org>
6241
6242         * modules/tmpdir: New file.
6243         * MODULES.html.sh (File system functions): Add it.
6244
6245 2006-07-24  Bruno Haible  <bruno@clisp.org>
6246
6247         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
6248         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
6249
6250 2006-07-24  Bruno Haible  <bruno@clisp.org>
6251
6252         * modules/clean-temp: New file.
6253
6254 2006-07-24  Bruno Haible  <bruno@clisp.org>
6255
6256         * m4/tmpdir.m4: New file, from GNU gettext.
6257
6258 2006-07-24  Bruno Haible  <bruno@clisp.org>
6259
6260         * lib/tmpdir.h: New file, from GNU gettext.
6261         * lib/tmpdir.c: New file, from GNU gettext.
6262
6263 2006-07-24  Bruno Haible  <bruno@clisp.org>
6264
6265         * lib/clean-temp.h: New file, from GNU gettext.
6266         * lib/clean-temp.c: New file, from GNU gettext.
6267
6268 2006-07-23  Eric Blake  <ebb9@byu.net>
6269
6270         * modules/stdio-safer (Files): Add tmpfile-safer.c.
6271         (Depends-on): Add binary-io.
6272
6273 2006-07-23  Eric Blake  <ebb9@byu.net>
6274
6275         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
6276
6277 2006-07-23  Eric Blake  <ebb9@byu.net>
6278
6279         * lib/tmpfile-safer.c: New file.
6280         * lib/stdio-safer.h (fopen_safer): Add prototype.
6281         * lib/stdio--.h (tmpfile): Make safer.
6282
6283 2006-07-23  Bruno Haible  <bruno@clisp.org>
6284
6285         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
6286         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
6287         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
6288         gl_linked_remove_at): Use it.
6289
6290 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
6291         and Simon Josefsson <jas@extundo.com>
6292
6293         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
6294
6295         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
6296
6297 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
6298
6299         * modules/close-stream: New file.
6300         * modules/closeout (Description): Make it clear that it exits
6301         with a diagnostic on error.
6302         (Depends-on): Add close-stream.  Remove fpending, stdbool.
6303         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
6304
6305 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
6306
6307         * m4/close-stream.m4: New file.
6308
6309 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
6310
6311         * lib/close-stream.c, lib/close-stream.h: New files.
6312
6313 2006-07-22  Bruno Haible  <bruno@clisp.org>
6314
6315         Merge from GNU gettext 0.15.
6316
6317         2006-05-01  Bruno Haible  <bruno@clisp.org>
6318
6319                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
6320
6321         2006-07-22  Bruno Haible  <bruno@clisp.org>
6322
6323                 * modules/javaversion: New file.
6324                 * MODULES.html.sh (Java): Add javaversion.
6325
6326         2006-03-12  Bruno Haible  <bruno@clisp.org>
6327
6328                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
6329
6330         2005-12-04  Bruno Haible  <bruno@clisp.org>
6331
6332                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
6333                 (untested).
6334
6335         2006-06-21  Bruno Haible  <bruno@clisp.org>
6336
6337                 Avoid warnings from recent versions of mcs.
6338                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
6339                 -o, -L, -r any more. Use options documented since mcs-1.0
6340                 instead. Similarly for -g.
6341
6342         2005-12-04  Bruno Haible  <bruno@clisp.org>
6343
6344                 * build-aux/csharpcomp.sh.in: Suffix for resources is
6345                 .resources, not .resource.
6346
6347         2005-07-09  Bruno Haible  <bruno@clisp.org>
6348
6349                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
6350                 add a .dll suffix.
6351                 Reported by Mark Junker <mjscod@gmx.de>.
6352
6353         2006-07-22  Bruno Haible  <bruno@clisp.org>
6354
6355                 * modules/gettext: Upgrade to gettext-0.15.
6356                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
6357                 m4/visibility.m4.
6358                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
6359
6360 2006-07-22  Bruno Haible  <bruno@clisp.org>
6361
6362         Merge from GNU gettext 0.15.
6363
6364         2006-03-25  Bruno Haible  <bruno@clisp.org>
6365
6366                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
6367
6368         2006-07-21  Bruno Haible  <bruno@clisp.org>
6369
6370                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
6371                 "1.1".
6372
6373         2006-05-09  Bruno Haible  <bruno@clisp.org>
6374
6375                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
6376                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
6377                 for the conftestver execution.
6378
6379         2006-05-01  Bruno Haible  <bruno@clisp.org>
6380
6381                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
6382                 optional target-version argument. Verify that the compiler
6383                 groks source of the specified source-version, or add -source
6384                 option as necessary. Verify that the compiler produces
6385                 bytecode in the specified target-version, or add -target and
6386                 -source options as necessary. Make the result of the test
6387                 available as variable CONF_JAVAC. Also log error output in
6388                 config.log.
6389
6390         2006-03-11  Bruno Haible  <bruno@clisp.org>
6391
6392                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
6393
6394         2006-05-09  Bruno Haible  <bruno@clisp.org>
6395
6396                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
6397                 CLASSPATH_SEPARATOR to a semicolon.
6398
6399         2006-03-12  Bruno Haible  <bruno@clisp.org>
6400
6401                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
6402                 available as variable CONF_JAVA, for subsequent autoconf
6403                 tests. Also log error output in config.log.
6404
6405         2006-07-19  Bruno Haible  <bruno@clisp.org>
6406
6407                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
6408                 that getline works on glibc2 systems. Needed to avoid trouble
6409                 in relocatable.c.
6410                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
6411
6412         2005-12-04  Bruno Haible  <bruno@clisp.org>
6413
6414                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
6415                 launcher (untested).
6416
6417         2005-12-04  Bruno Haible  <bruno@clisp.org>
6418
6419                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
6420
6421         2006-07-22  Bruno Haible  <bruno@clisp.org>
6422
6423                 * gettext.m4: Update from GNU gettext-0.15.
6424                 * nls.m4: Likewise.
6425                 * po.m4: Likewise.
6426                 * inttypes-pri.m4: Likewise.
6427                 * inttypes-h.m4: Renamed from inttypes.m4.
6428                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
6429
6430 2006-07-22  Bruno Haible  <bruno@clisp.org>
6431
6432         Merge from GNU gettext 0.15.
6433
6434         2005-07-05  Bruno Haible  <bruno@clisp.org>
6435
6436                 * printf-args.c (printf_fetchargs): Work around broken
6437                 definition of wint_t on mingw.
6438
6439         2005-02-12  Bruno Haible  <bruno@clisp.org>
6440
6441                 * xallocsa.h: Add extern "C" for C++.
6442
6443         2006-05-17  Bruno Haible  <bruno@clisp.org>
6444
6445                 Cygwin portability.
6446                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
6447
6448         2006-04-30  Bruno Haible  <bruno@clisp.org>
6449
6450                 * progreloc.c: Include <mach-o/dyld.h> if available.
6451                 (find_executable): Use _NSGetExecutablePath when possible.
6452
6453         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
6454
6455                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
6456                 function.
6457
6458         2005-12-29  Bruno Haible  <bruno@clisp.org>
6459
6460                 * progreloc.c (set_program_name_and_installdir): Fix
6461                 compilation error.
6462
6463         2005-12-04  Bruno Haible  <bruno@clisp.org>
6464
6465                 Cygwin portability.
6466                 * progreloc.c: Include <windows.h> also on Cygwin.
6467                 (find_executable): Add support for Cygwin.
6468                 (set_program_name_and_installdir): Handle also platforms with
6469                 nonempty EXEEXT.
6470
6471         2006-07-11  Bruno Haible  <bruno@clisp.org>
6472
6473                 * javacomp.c: Fix a comment.
6474                 Reported by Jim Meyering.
6475
6476         2006-04-30  Bruno Haible  <bruno@clisp.org>
6477
6478                 * javacomp.h (compile_java_class): Add source_version,
6479                 target_version arguments.
6480                 * javacomp.c: Rewritten to choose only a compiler that
6481                 respects the specified source_version and target_version.
6482
6483         2006-06-27  Bruno Haible  <bruno@clisp.org>
6484
6485                 Assume correct S_ISDIR macro.
6486                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
6487
6488         2006-07-22  Bruno Haible  <bruno@clisp.org>
6489
6490                 * javaversion.h: New file, from GNU gettext.
6491                 * javaversion.c: New file, from GNU gettext.
6492                 * javaversion.java: New file, from GNU gettext.
6493                 * javaversion.class: New file, from GNU gettext.
6494
6495         2006-05-17  Bruno Haible  <bruno@clisp.org>
6496
6497                 Cygwin portability.
6498                 * javaexec.c (execute_java_class): Test for jview program
6499                 also on Cygwin.
6500
6501         2006-04-09  Bruno Haible  <bruno@clisp.org>
6502
6503                 * fatal-signal.c: Don't include string.h.
6504                 (at_fatal_signal): Use a copying loop instead of memcpy.
6505
6506         2005-12-04  Bruno Haible  <bruno@clisp.org>
6507
6508                 * csharpexec.c: Add support for 'clix' launcher (untested).
6509                 (execute_csharp_using_sscli): New function.
6510                 (execute_csharp_program): Call it.
6511
6512         2006-06-21  Bruno Haible  <bruno@clisp.org>
6513
6514                 Avoid warnings from recent versions of mcs.
6515                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
6516                 -o, -L, -r any more. Use options documented since mcs-1.0
6517                 instead. Similarly for -g.
6518
6519         2005-07-09  Bruno Haible  <bruno@clisp.org>
6520
6521                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
6522                 add a .dll suffix.
6523                 Reported by Mark Junker <mjscod@gmx.de>.
6524
6525         2006-06-17  Bruno Haible  <bruno@clisp.org>
6526
6527                 * config.charset: Update for NetBSD 3.0.
6528
6529         2006-05-17  Bruno Haible  <bruno@clisp.org>
6530
6531                 Cygwin portability.
6532                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
6533
6534         2006-05-16  Bruno Haible  <bruno@clisp.org>
6535
6536                 * localcharset.c [CYGWIN]: Include <windows.h>.
6537                 (get_charset_aliases): For Cygwin, return the same CPxxx
6538                 aliases list as under WIN32.
6539                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
6540                 the environment variables. Fall back to GetACP().
6541
6542         2006-04-05  Bruno Haible  <bruno@clisp.org>
6543
6544                 * config.charset: Update Juan Manuel Guerrero's address.
6545
6546         2005-02-12  Bruno Haible  <bruno@clisp.org>
6547
6548                 * allocsa.h: Add extern "C" for C++.
6549
6550         2005-02-10  Bruno Haible  <bruno@clisp.org>
6551
6552                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
6553                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
6554
6555         2006-07-22  Bruno Haible  <bruno@clisp.org>
6556
6557                 * gettext.h: Update to GNU gettext-0.15.
6558
6559 2006-07-22  Bruno Haible  <bruno@clisp.org>
6560
6561         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
6562         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
6563         lib-prefix.m4, longdouble.m4, ssize_t.m4.
6564
6565 2006-07-21  Eric Blake  <ebb9@byu.net>
6566
6567         * modules/stdlib-safer: New file.
6568         * MODULES.html.sh (File stream based Input/Output): Add
6569         stdlib-safer.
6570
6571 2006-07-21  Eric Blake  <ebb9@byu.net>
6572
6573         * lib/stdlib-safer.h: New file from coreutils, required by
6574         stdlib--.h.
6575
6576 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
6577
6578         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
6579
6580 2006-07-20  Bruno Haible  <bruno@clisp.org>
6581
6582         * gnulib-tool: Recognize new option --assume-autoconf.
6583         (autoconf_minversion): New variable.
6584         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
6585
6586 2006-07-20  Bruno Haible  <bruno@clisp.org>
6587
6588         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
6589
6590 2006-07-19  Derek R. Price  <derek@ximbiot.com>
6591
6592         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
6593         Reindent and repaginate.
6594
6595 2006-07-19  Derek Price  <derek@ximbiot.com>
6596
6597         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
6598         Correct grammar.
6599
6600 2006-07-17  Bruno Haible  <bruno@clisp.org>
6601
6602         * modules/list: New file.
6603         * modules/array-list: New file.
6604         * modules/carray-list, modules/carray-list-tests: New files.
6605         * modules/linked-list, modules/linked-list-tests: New files.
6606         * modules/avltree-list, modules/avltree-list-tests: New files.
6607         * modules/rbtree-list, modules/rbtree-list-tests: New files.
6608         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
6609         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
6610         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
6611         * modules/oset: New file.
6612         * modules/array-oset: New file.
6613         * modules/avltree-oset, modules/avltree-oset-tests: New files.
6614         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
6615         * tests/test-carray_list.c: New file.
6616         * tests/test-linked_list.c: New file.
6617         * tests/test-avltree_list.c: New file.
6618         * tests/test-rbtree_list.c: New file.
6619         * tests/test-linkedhash_list.c: New file.
6620         * tests/test-avltreehash_list.c: New file.
6621         * tests/test-rbtreehash_list.c: New file.
6622         * tests/test-avltree_oset.c: New file.
6623         * tests/test-rbtree_oset.c: New file.
6624         * MODULES.html.sh (Container data structures): New section.
6625
6626 2006-07-17  Bruno Haible  <bruno@clisp.org>
6627
6628         * m4/gl_list.m4: New file.
6629
6630 2006-07-17  Bruno Haible  <bruno@clisp.org>
6631
6632         * lib/gl_list.h: New file.
6633         * lib/gl_list.c: New file.
6634         * lib/gl_array_list.h: New file.
6635         * lib/gl_array_list.c: New file.
6636         * lib/gl_carray_list.h: New file.
6637         * lib/gl_carray_list.c: New file.
6638         * lib/gl_linked_list.h: New file.
6639         * lib/gl_linked_list.c: New file.
6640         * lib/gl_anylinked_list1.h: New file.
6641         * lib/gl_anylinked_list2.h: New file.
6642         * lib/gl_avltree_list.h: New file.
6643         * lib/gl_avltree_list.c: New file.
6644         * lib/gl_anyavltree_list1.h: New file.
6645         * lib/gl_anyavltree_list2.h: New file.
6646         * lib/gl_rbtree_list.h: New file.
6647         * lib/gl_rbtree_list.c: New file.
6648         * lib/gl_anyrbtree_list1.h: New file.
6649         * lib/gl_anyrbtree_list2.h: New file.
6650         * lib/gl_anytree_list1.h: New file.
6651         * lib/gl_anytree_list2.h: New file.
6652         * lib/gl_linkedhash_list.h: New file.
6653         * lib/gl_linkedhash_list.c: New file.
6654         * lib/gl_anyhash_list1.h: New file.
6655         * lib/gl_anyhash_list2.h: New file.
6656         * lib/gl_avltreehash_list.h: New file.
6657         * lib/gl_avltreehash_list.c: New file.
6658         * lib/gl_rbtreehash_list.h: New file.
6659         * lib/gl_rbtreehash_list.c: New file.
6660         * lib/gl_anytreehash_list1.h: New file.
6661         * lib/gl_anytreehash_list2.h: New file.
6662
6663         * lib/gl_oset.h: New file.
6664         * lib/gl_oset.c: New file.
6665         * lib/gl_array_oset.h: New file.
6666         * lib/gl_array_oset.c: New file.
6667         * lib/gl_avltree_oset.h: New file.
6668         * lib/gl_avltree_oset.c: New file.
6669         * lib/gl_rbtree_oset.h: New file.
6670         * lib/gl_rbtree_oset.c: New file.
6671         * lib/gl_anytree_oset.h: New file.
6672
6673 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
6674
6675         * m4/mkancesdirs.m4: New file.
6676         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
6677         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
6678         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
6679         it.
6680
6681 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
6682
6683         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
6684         * lib/mkancesdirs.h: New files.
6685         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
6686         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
6687         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
6688         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
6689         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
6690         callers changed.  Revamp internals significantly, by not
6691         attempting to create directories that are temporarily more
6692         permissive than the final results.  Do not attempt to use
6693         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
6694         This removes some race conditions, fixes some bugs, and simplifies
6695         things.  Use new dirchownmod function to do owner and mode changes.
6696         * lib/mkdir-p.h: Likewise.
6697         * lib/modechange.c (octal_to_mode): New function.
6698         (struct mode_change): New member mentioned.
6699         (make_node_op_equals): New arg mentioned.  All callers changed.
6700         (mode_compile): Keep track of which mode bits the user has explicitly
6701         mentioned.
6702         (mode_adjust): New arg DIR, so that we implement the X op correctly.
6703         New arg PMODE_BITS, to keep track of which mode bits the user
6704         mentioned; it treats S_ISUID and S_ISGID speciall.
6705         All callers changed.
6706         * lib/modechange.h: Likewise.
6707
6708 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
6709
6710         * MODULES.html.sh: Add mkancestors.
6711         * modules/mkancesdirs: New module.
6712         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
6713         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
6714         The chdir-safer and afs files are now orphans; I'll remove them
6715         unless someone speaks up.
6716         Add lib/dirchownmod.c, lib/dirchownmod.h.
6717         (Depends-on): Remove alloca, chown, save-cwd, dirname.
6718         Add lchown, mkancesdirs.
6719         (Maintainer): Add self.
6720
6721 2006-07-15  Karl Berry  <karl@gnu.org>
6722
6723         * gnulib-tool: help message wording/arrangement.
6724
6725 2006-07-14  Simon Josefsson  <jas@extundo.com>
6726
6727         * doc/gnulib.texi (Libtool and Windows): New section.
6728
6729 2006-07-12  Simon Josefsson  <jas@extundo.com>
6730
6731         * modules/gendocs (License): Fix license, approved by Karl.
6732
6733 2006-07-12  Eric Blake  <ebb9@byu.net>
6734
6735         * MODULES.html.sh: Add gendocs.
6736
6737 2006-07-11  Eric Blake  <ebb9@byu.net>
6738
6739         * modules/fdl: New module, to install doc/fdl.texi.
6740         * MODULES.html.sh: Add new section for documentation modules.
6741         * gnulib-tool: Avoid space-tab.
6742         (--doc-base): New option, to manage files from doc.
6743
6744 2006-07-11  Eric Blake  <ebb9@byu.net>
6745
6746         * m4/absolute-header.m4: Fix comments to match recent change.
6747
6748 2006-07-11  Eric Blake  <ebb9@byu.net>
6749
6750         * gnulib-tool: List --doc-base before --tests-base.
6751
6752 2006-07-11  Derek R. Price  <derek@ximbiot.com>
6753
6754         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
6755
6756 2006-07-11  Bruno Haible  <bruno@clisp.org>
6757
6758         * README: Mention where to put documentation.
6759
6760 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6761
6762         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
6763
6764 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
6765
6766         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
6767         to stdint.m4.
6768
6769 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
6770
6771         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
6772         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
6773         "no/such/file/stdint.h" when there is no such file, so that
6774         the resulting C code can be parsed by dodgy compilers.
6775         Problems reported by Bob Proulx.
6776
6777 2006-07-10  Derek R. Price  <derek@ximbiot.com>
6778
6779         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
6780         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
6781         macros into the GNU _D_EXACT_NAMLEN.
6782         * lib/savedir.c:  Likewise.
6783         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
6784
6785 2006-07-10  Derek R. Price  <derek@ximbiot.com>
6786         and Paul Eggert  <eggert@cs.ucla.edu>
6787
6788         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
6789         * m4/savedir.m4:
6790         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
6791         macros into the GNU _D_EXACT_NAMLEN.
6792
6793 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
6794
6795         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
6796         around the absolute name, to work around a problem with the HP-UX
6797         11.23 native C compiler, reported by Bob Proulx.
6798
6799 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
6800
6801         * doc/maintain.texi, make-stds.texi: Sync from
6802         <http://savannah.gnu.org/projects/gnustandards>.
6803
6804 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
6805
6806         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
6807
6808 2006-07-09  Jim Meyering  <jim@meyering.net>
6809
6810         * m4/glob.m4: Remove a doubled word in a comment.
6811
6812 2006-07-09  Jim Meyering  <jim@meyering.net>
6813
6814         * lib/argp-pv.c: Remove a doubled word in a comment.
6815         * lib/check-version.c (check_version): Likewise.
6816         * lib/javacomp.c (compile_java_class): Likewise.
6817
6818 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
6819
6820         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
6821         for the benefit of people using Autoconf 2.60.  If you want to
6822         support older Autoconf versions you can copy m4/onceonly_2_57.m4
6823         (or m4/onceonly.m4, if pre-2.57) manually.
6824
6825 2006-07-08  Jim Meyering  <jim@meyering.net>
6826
6827         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
6828         comment.
6829         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
6830         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
6831         comment.
6832
6833 2006-07-08  Jim Meyering  <jim@meyering.net>
6834
6835         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
6836
6837 2006-07-07  Simon Josefsson  <jas@extundo.com>
6838
6839         * tests/test-crc.c: Change expected crc value, the test vector
6840         were probably computed using the old broken crc.c?
6841
6842 2006-07-06  Simon Josefsson  <jas@extundo.com>
6843
6844         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
6845         now the canonical place for the M4 file).
6846
6847         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
6848         from the sys_socket dependency now.
6849
6850         * modules/inet_pton (Files): Ditto.
6851
6852         * modules/inet_ntop (Files): Ditto.
6853
6854 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
6855
6856         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
6857         not gl_PREREQ_GETUSERSHELL.
6858
6859 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6860
6861         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
6862         with only one argument, for Autoconf 2.60.
6863         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
6864         expand to nothing, so add a shell command to avoid syntax error.
6865         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
6866
6867 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6868
6869         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
6870
6871 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
6872
6873         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
6874         no longer needed.  Check for isblank decl.
6875         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
6876         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
6877         of existence.
6878
6879 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
6880
6881         * lib/getloadavg.c: Use __VMS, not VMS.
6882         * lib/getopt.c: Likewise.
6883         * lib/getpagesize.h: Likewise.
6884         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
6885         and probably does not work.
6886
6887 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
6888
6889         * lib/.cppi-disable: Add wcwidth.
6890         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
6891         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
6892         (ISGRAPH): Remove.  All uses changed to isgraph.
6893         (FOLD) [!defined _LIBC]: Remove special case.
6894         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
6895         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
6896         HAVE_ISBLANK.
6897         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
6898         case.
6899
6900 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
6901
6902         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
6903         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
6904         brackets.  Other minor changes to suppress some compiler
6905         warnings.
6906
6907 2006-07-06  Derek R. Price  <derek@ximbiot.com>
6908         and Paul Eggert  <eggert@cs.ucla.edu>
6909
6910         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
6911         of invoking obsolescent AC_HEADER_DIRENT macro.
6912         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
6913         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
6914         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
6915         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
6916         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
6917         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
6918         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
6919         * m4/readdir.m4: Remove; no longer needed.
6920
6921 2006-07-06  Derek R. Price  <derek@ximbiot.com>
6922         and Paul Eggert  <eggert@cs.ucla.edu>
6923
6924         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
6925         Don't worry about this obsolete case any more.
6926         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
6927         directories.
6928         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
6929         worry about this obsolete case any more.
6930         * lib/fts.c: Likewise.
6931         * lib/getcwd.c: Likewise.
6932         * lib/glob.h: Likewise.
6933         * lib/savedir.c: Likewise.
6934
6935 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
6936
6937         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
6938         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
6939         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
6940         needed.
6941         All uses removed.
6942         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
6943         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
6944         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
6945         needed.
6946         * m4/getdate.m4 (gl_GETDATE): Likewise.
6947         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
6948         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
6949         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
6950         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
6951         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
6952         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
6953         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
6954         needed.
6955
6956 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
6957
6958         * lib/memcasecmp.c: Include <limits.h>.
6959         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
6960         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
6961         Don't assume isdigit succeeds only on '0' through '9'.
6962
6963 2006-07-05  Eric Blake  <ebb9@byu.net>
6964
6965         * modules/getaddrinfo (Depends-on): Add snprintf.
6966
6967 2006-07-05  Eric Blake  <ebb9@byu.net>
6968
6969         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
6970         to avoid 'header present but could not be compiled' on cygwin.
6971
6972 2006-07-05  Eric Blake  <ebb9@byu.net>
6973
6974         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
6975         missing from netdb.h.
6976         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
6977
6978 2006-07-05  Derek R. Price  <derek@ximbiot.com>
6979
6980         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
6981         no longer needed.
6982         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
6983         * m4/getdate.m4 (gl_GETDATE): Likewise.
6984         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
6985         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
6986         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
6987         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
6988         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
6989
6990 2006-07-05  Derek R. Price  <derek@ximbiot.com>
6991
6992         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
6993         All uses of is_space replaced by isspace.
6994         * lib/exit.h: Don't talk about STDC_HEADERS.
6995         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
6996         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
6997         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
6998         replaced by isprint etc.
6999         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
7000         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
7001         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
7002         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
7003         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
7004         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
7005
7006 2006-07-05  Bruno Haible  <bruno@clisp.org>
7007
7008         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
7009         the function exists, before testing against AIX.
7010         Reported by Martin Lambers <marlam@marlam.de>.
7011
7012 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
7013
7014         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
7015         From Mark D. Baushke.
7016
7017 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
7018
7019         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
7020         to the absolute name, not just one, to bypass Sun C 5.8's
7021         "warning: #include of /usr/include/... may be non-portable".
7022
7023 2006-07-04  Eric Blake  <ebb9@byu.net>
7024
7025         * modules/dirname-tests: New test module.
7026         * tests/test-dirname.c: New file, replacing dirname.c
7027         TEST_DIRNAME section that was recently deleted.
7028
7029 2006-07-04  Bruno Haible  <bruno@clisp.org>
7030
7031         Assume ANSI C header files and <ctype.h> functions.
7032         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
7033         (mbsnwidth): Use isprint, iscntrl instead.
7034
7035 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
7036
7037         Merge from coreutils.
7038         * MODULES.html.sh: Add xstrtold.
7039         * modules/xstrtold: New file.
7040         * modules/cycle-check (Files): Add lib/same-inode.h.
7041         * modules/dirname (Files): Add m4/double-slash-root.m4.
7042         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
7043         * modules/mkdir-p (Files): Add lib/same-inode.h.
7044         * modules/same (Files): Add lib/same-inode.h.
7045
7046 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
7047
7048         * m4/absolute-header.m4: Renamed from full-header-path.m4.
7049         This is to keep the terminology clean; POSIX talks about
7050         "absolute pathnames", not "full pathnames", but the GNU
7051         Coding Standards say to use "path" for something else;
7052         so use "absolute" to keep both sides happy.
7053         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
7054         Set gl_absolute_header, not gl_full_header_path.
7055         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
7056         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
7057         All uses changed.
7058
7059         Merge from coreutils.
7060
7061         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
7062
7063         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
7064         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
7065         want to require the building of c-strtod.o.
7066         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
7067         needs -lm directly.
7068         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
7069
7070         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
7071
7072         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
7073         --as-needed option if available.  Problem reported by Albert Chin in
7074         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
7075         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
7076         cc merely issues a bunch of annoying warnings for --as-needed
7077         (this problem was reported by Bob Proulx).  Also, try linking with
7078         -lm to detect a bug in binutils 2.16 (this problem was reported
7079         by Ralf Wildenhues).
7080
7081         2006-06-18  Jim Meyering  <jim@meyering.net>
7082
7083         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
7084         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
7085         macro.
7086         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
7087         also check for glibc-2.4's abort-inducing bug.
7088
7089         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
7090         Low-probability clean-up should be to use rmdir to get rid of
7091         the just-created directory, not unlink.
7092
7093         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
7094         configure fail, and request a bug report to inform us about it.
7095         Add a comment that, barring reports to the contrary, in 2007 we'll
7096         assume ftruncate is universally available.
7097
7098         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
7099
7100         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
7101
7102         2006-03-12  Jim Meyering  <jim@meyering.net>
7103
7104         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
7105         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
7106         * m4/same.m4 (gl_SAME): Likewise.
7107         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
7108
7109         2006-03-11  Eric Blake  <ebb9@byu.net>
7110
7111         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
7112         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
7113         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
7114         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
7115
7116 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
7117
7118         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
7119         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
7120         reported by Mark D. Baushke, one in
7121         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
7122
7123         Merge from coreutils.
7124
7125         * lib/.cppi-disable: Add stdint_.h.
7126         * lib/.cvsignore: Add stdint.h.
7127
7128         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
7129
7130         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
7131         both double and long double versions.
7132         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
7133         * lib/xstrtold.c: New file.
7134         * lib/xstrtod.h (xstrtold): New decl.
7135
7136         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
7137
7138         * lib/filemode.c (setst): Remove.
7139         (strmode): Rewrite to avoid setst.  This makes the code shorter,
7140         (arguably) clearer, and the generated code is a bit smaller on my
7141         Debian GNU/Linux stable x86 host.
7142
7143         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
7144
7145         * lib/filemode.c: Include "filemode.h" first, to test the interface.
7146         Assume that filemode.h includes sys/types.h and sys/stat.h.
7147         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
7148         (ftypelet): Reorder to put common cases first, for efficiency.
7149         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
7150         to do 'M'.
7151         (strmode): Renamed from mode_string, and now stores 12 bytes instead
7152         of 10, for compatibility with FreeBSD.  All callers changed.
7153         (filemodestring): Now stores 12 bytes instead of 10, and sets file
7154         types that can't be deduced solely from st_mode.  First arg is now a
7155         const pointer.
7156         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
7157         (strmode): Renamed from mode_string.
7158         (filemodestring): New decl.
7159         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
7160         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
7161         needed.
7162         (S_ISPORT, S_ISWHT): New macros, if not already defined.
7163
7164         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
7165
7166         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
7167         fsusage.h now does that.  Include fsusage.h first, to test interface.
7168         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
7169         at most one method (the old code could have generated decls that
7170         didn't conform to C89, not that this was ever exercised).
7171         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
7172
7173         2006-03-19  Jim Meyering  <jim@meyering.net>
7174
7175         Work even in a chroot where d_ino values for entries in "/"
7176         don't match the stat.st_ino values for the same names.
7177         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
7178         number, iterate through all entries again, using lstat instead.
7179         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
7180         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
7181
7182         * lib/getcwd.c (__getcwd): Clarify a comment.
7183         Use memcpy in place of a call to strcpy.
7184
7185         2006-03-12  Jim Meyering  <jim@meyering.net>
7186
7187         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
7188         matches that of the current directory (which we're about to chdir ".."
7189         out of), then save the dev-ino of the parent, instead.
7190
7191         * lib/same-inode.h (SAME_INODE): New file/macro.
7192         * lib/chdir-safer.c (SAME_INODE): Remove definition.
7193         Include "same-inode.h", instead.
7194         * lib/same.c: Likewise.
7195         * lib/cycle-check.h: Include "same-inode.h".
7196         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
7197         * lib/cycle-check.c (SAME_INODE): Remove definition.
7198         * lib/root-dev-ino.h: Include "same-inode.h".
7199
7200         2006-03-11  Eric Blake  <ebb9@byu.net>
7201
7202         * lib/same.c (same_name): s/base_name/last_component/
7203         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
7204         * lib/filenamecat.c (file_name_concat): Likewise.
7205
7206         2006-03-11  Eric Blake  <ebb9@byu.net>,
7207                     Paul Eggert  <eggert@cs.ucla.edu>
7208
7209         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
7210         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
7211         drive prefix.
7212         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
7213         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
7214         (last_component): New method.
7215         * lib/dirname.c (dir_len): Determine when drive letters need a
7216         subsequent slash.  Preserve // when it is special.
7217         (dir_name): Don't append dot when drive letter is absolute.
7218         [TEST_DIRNAME]: Move into a full-blown gnulib test.
7219         * lib/basename.c (base_name): New semantics - malloc the result.
7220         Preserve // when it is special.  Preserve relative files that look
7221         like drive letters.
7222         (base_len): Preserve // when it is special.
7223         (last_component): New method, similar to old base_name semantics.
7224         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
7225         base_name.  Strip redundant slashes from ///.
7226
7227 2006-07-03  Jim Meyering  <jim@meyering.net>
7228
7229         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
7230         macro is used before the first cycle_check call.
7231
7232 2006-07-03  Eric Blake  <ebb9@byu.net>
7233
7234         * modules/dirname (Depends-on): Add xstrndup.
7235
7236 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
7237
7238         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
7239         test cases, so that config.log is a bit easier to follow.
7240
7241 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
7242
7243         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
7244         both are 64 bits, since this seems to be the tradition, and this
7245         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
7246         we ever run into a host that prefers long long to long in this
7247         case, we'll need another configure-time test.  Problem reported by
7248         Jim Meyering.
7249
7250 2006-07-02  Eric Blake  <ebb9@byu.net>
7251
7252         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
7253
7254 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
7255
7256         * modules/inttypes (Depends-on): No longer depends on stdint.
7257         * modules/stdint (Description): Say more about assumptions.
7258         Say that the fast types might differ.  Say macros are used.
7259         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
7260         (Makefile.am): Revise list of substituted symbols to match
7261         new stdint.m4.
7262         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
7263         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
7264         * tests/test-stdint.c (verify_same_types)
7265         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
7266         the code conforms to C99/C89.
7267         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
7268         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
7269
7270 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
7271
7272         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
7273         but fix a bug, by requiring at least 64 bits.
7274         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
7275         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
7276         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
7277         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
7278
7279         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
7280         changes.  Make 2.59 a prerequisite.  Check and substitute for
7281         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
7282         inttypes.h.  Do not use special include files; just use the
7283         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
7284         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
7285         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
7286         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
7287         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
7288         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
7289         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
7290         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
7291         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
7292         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
7293         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
7294         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
7295         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
7296         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
7297         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
7298         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
7299         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
7300         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
7301         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
7302         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
7303         WINT_MAX.  Check for C99 conformance more strictly, by detecting
7304         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
7305         not check for things that C99 does not require, e.g., int8_t.  If
7306         a test isn't needed unless <stdint.h> isn't working, and is
7307         unlikely to be needed for any other reason, then don't do it
7308         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
7309         size_t, since we assume C89 freestanding at least.  Do not check
7310         for sig_atomic_t, wchar_t, or wint_t, since the code now does
7311         the right thing even if the types are not defined.  Instead use:
7312         (gl_STDINT_TYPE_PROPERTIES): New macro.
7313         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
7314         testing whether <sys/types.h> clashes, as Autoconf does this for
7315         us now.  All uses removed.
7316         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
7317         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
7318         (gl_CHECK_TYPE_SAME):
7319         Remove; no longer needed.
7320         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
7321         exists, since we'll return 0 anyway in that case.
7322         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
7323
7324 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
7325
7326         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
7327         possible collision with system files.
7328         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
7329         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
7330         WCHAR_MIN and WCHAR_MAX in this case.
7331         (<stddef.h>): Do not include; no longer needed.
7332         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
7333         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
7334         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
7335         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
7336         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
7337         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
7338         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
7339         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
7340         !defined(__c99))]: Include in this case too, since it's harmless
7341         now.
7342         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
7343         dangerous to do so.
7344         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
7345         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
7346         (_STDINT_MIN, _STDINT_MAX): New macros.
7347         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
7348         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
7349         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
7350         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
7351         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
7352         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
7353         macros, not typedefs; this simplifies things quite a bit.
7354         Use long int for all types narrower than int64_t.
7355         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
7356         Define in terms of long long int or int64_t or long int,
7357         not int64_t or int32_t.  This saves some compile-time testing.
7358         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
7359         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
7360         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
7361         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
7362         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
7363         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
7364         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
7365         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
7366         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
7367         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
7368         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
7369         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
7370         undef any previous version and define our own version, for
7371         simplicity and consistency with the new macros for types.
7372         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
7373         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
7374         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
7375         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
7376         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
7377         @WINT_T_SUFFIX@ to keep things simple here.
7378         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
7379         Simplify by assuming typical 8/16/32/64 host, since we're
7380         already doing that elsewhere anyway.
7381         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
7382         and assume long long int is 64 bits if available.  This
7383         speeds up 'configure'.
7384
7385 2006-07-01  Eric Blake  <ebb9@byu.net>
7386
7387         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
7388         Reported by Andreas Buening.
7389
7390 2006-07-01  Eric Blake  <ebb9@byu.net>
7391
7392         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
7393
7394 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
7395
7396         * lib/getaddrinfo.c: fixed typo
7397
7398 2006-06-29  Jim Meyering  <jim@meyering.net>
7399
7400         * modules/strftime (Maintainer): Add my name, since with the
7401         FPRINTFTIME changes strftime.c has forked from glibc.
7402
7403 2006-06-29  Eric Blake  <ebb9@byu.net>
7404
7405         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
7406
7407 2006-06-29  Eric Blake  <ebb9@byu.net>
7408
7409         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
7410
7411 2006-06-29  Eric Blake  <ebb9@byu.net>
7412
7413         * lib/stat_.h: New file.
7414
7415 2006-06-29  Eric Blake  <ebb9@byu.net>
7416
7417         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
7418         unused static function.
7419
7420 2006-06-29  Eric Blake  <ebb9@byu.net>
7421
7422         * doc/functions.texi (Function Portability): Document missing lstat
7423         on mingw.
7424
7425 2006-06-29  Eric Blake  <ebb9@byu.net>
7426
7427         * MODULES.html.sh: Add sys_stat.
7428         * modules/sys_stat: New module.
7429         * modules/mkstemp (Depends-on): Add sys_stat.
7430
7431 2006-06-29  Derek R. Price  <derek@ximbiot.com>
7432
7433         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
7434
7435 2006-06-29  Derek R. Price  <derek@ximbiot.com>
7436
7437         * m4/c-bs-a.m4: Removed.
7438
7439 2006-06-29  Derek R. Price  <derek@ximbiot.com>
7440
7441         * lib/strftime.c: Assume strftime() exists.
7442
7443 2006-06-29  Derek Price  <derek@ximbiot.com>
7444
7445         * modules/c-bs-a: Removed - \a is C89.
7446         * MODULES.html.sh: Remove c-bs-a.
7447
7448 2006-06-29  Bruno Haible  <bruno@clisp.org>
7449
7450         * modules/wcwidth (License): Change to LGPL.
7451
7452 2006-06-28  Simon Josefsson  <jas@extundo.com>
7453
7454         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
7455         on _WIN32.
7456
7457         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
7458         getnameinfo.
7459
7460 2006-06-28  Simon Josefsson  <jas@extundo.com>
7461
7462         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
7463
7464 2006-06-28  Simon Josefsson  <jas@extundo.com>
7465
7466         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
7467         functions there.  It will succeed on Windows XP, but on Windows
7468         2000 and (presumably) earlier, it will fail, and use the internal
7469         re-implementation.
7470         (use_win32_p): New function.
7471         (getaddrinfo): Use strtoul on servname, to support numeric ports.
7472         Support AI_NUMERICSERV to disable getservbyname.
7473         (getnameinfo): New function, only supports
7474         NI_NUMERICHOST|NI_NUMERICSERV for now.
7475
7476         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
7477         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
7478         getnameinfo.
7479
7480 2006-06-28  Eric Blake  <ebb9@byu.net>
7481
7482         * modules/wcwidth: New file.
7483         * modules/mbchar (Depends-on): Add wcwidth.
7484         * modules/mbswidth (Depends-on): Add wcwidth.
7485         * MODULES.html.sh: Add wcwidth.
7486
7487 2006-06-28  Eric Blake  <ebb9@byu.net>
7488
7489         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
7490         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
7491
7492 2006-06-28  Eric Blake  <ebb9@byu.net>
7493
7494         * lib/xvasprintf.h: Fix comments.
7495
7496 2006-06-28  Eric Blake  <ebb9@byu.net>
7497
7498         * lib/mbchar.h (wcwidth): Include wcwidth.h.
7499         * lib/mbswidth.c (wcwidth): Move from here...
7500         * lib/wcwidth.h: ...to this new file.
7501
7502 2006-06-28  Derek R. Price  <derek@ximbiot.com>
7503
7504         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
7505
7506         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
7507         it's obsolete.
7508         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
7509
7510 2006-06-28  Derek R. Price  <derek@ximbiot.com>
7511
7512         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
7513         Autoconf 2.60 says this stuff was obsolete.
7514
7515 2006-06-28  Bruno Haible  <bruno@clisp.org>
7516
7517         * modules/wcwidth (Files): Add m4/wchar_t.m4.
7518
7519 2006-06-28  Bruno Haible  <bruno@clisp.org>
7520
7521         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
7522         gt_TYPE_WCHAR_T.
7523
7524 2006-06-28  Bruno Haible  <bruno@clisp.org>
7525
7526         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
7527         declaration for wcwidth.
7528         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
7529
7530 2006-06-28  Bruno Haible  <bruno@clisp.org>
7531
7532         * lib/mkdtemp.c [MINGW]: Include <io.h>.
7533         (mkdir): Define using _mkdir.
7534
7535 2006-06-28  Bruno Haible  <bruno@clisp.org>
7536
7537         * lib/getaddrinfo.h: Fix POSIX URL.
7538         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
7539         _WIN32.
7540         (use_win32_p): Make static.
7541         (getaddrinfo): Reject service name if it is empty or does not consist
7542         solely of decimal digits, or if its value is > 65535.
7543         (getnameinfo): Remove useless casts.
7544
7545 2006-06-27  Simon Josefsson  <jas@extundo.com>
7546
7547         * modules/sys_select: New file, suggested by Bruno Haible, Paul
7548         Eggert and Martin Lambers.
7549
7550 2006-06-27  Simon Josefsson  <jas@extundo.com>
7551
7552         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
7553         Eggert and Martin Lambers.
7554
7555 2006-06-27  Bruno Haible  <bruno@clisp.org>
7556
7557         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
7558         result to 0, not to empty.
7559         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
7560
7561 2006-06-27  Bruno Haible  <bruno@clisp.org>
7562
7563         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
7564
7565 2006-06-26  Simon Josefsson  <jas@extundo.com>
7566
7567         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
7568         present.
7569
7570 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
7571
7572         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
7573         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
7574         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
7575
7576 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
7577
7578         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
7579
7580 2006-06-26  Bruno Haible  <bruno@clisp.org>
7581
7582         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
7583
7584 2006-06-26  Bruno Haible  <bruno@clisp.org>
7585
7586         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
7587
7588 2006-06-26  Bruno Haible  <bruno@clisp.org>
7589
7590         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
7591         SGI C compiler in pre-C99 mode.
7592         Suggested by Mark D. Baushke and Larry Jones.
7593
7594 2006-06-26  Bruno Haible  <bruno@clisp.org>
7595
7596         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
7597         WCHAR_MAX.
7598         Reported by Mark D. Baushke and Larry Jones.
7599
7600 2006-06-26  Bruno Haible  <bruno@clisp.org>
7601
7602         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
7603         in pre-C99 mode.
7604         Suggested by Mark D. Baushke and Larry Jones.
7605
7606 2006-06-23  Simon Josefsson  <jas@extundo.com>
7607             Bruno Haible  <bruno@clisp.org>
7608
7609         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
7610         Emit mostlyclean-local rule.
7611         (func_emit_tests_Makefile_am): Likewise.
7612         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
7613
7614 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
7615
7616         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
7617
7618 2006-06-23  Bruno Haible  <bruno@clisp.org>
7619
7620         * tests/test-stdint.c: Update to match ISO C 99 Technical
7621         Corrigendum 1.
7622
7623 2006-06-23  Bruno Haible  <bruno@clisp.org>
7624
7625         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
7626
7627 2006-06-23  Bruno Haible  <bruno@clisp.org>
7628
7629         * lib/stdint_.h: Treat IRIX like OpenBSD.
7630
7631 2006-06-23  Bruno Haible  <bruno@clisp.org>
7632
7633         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
7634         ISO C 99 Technical Corrigendum 1.
7635
7636 2006-06-22  Simon Josefsson  <jas@extundo.com>
7637
7638         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
7639         MinGW.
7640
7641 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
7642
7643         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
7644         needed.  Some compiler complained about some of them.  Problem reported
7645         by Larry Jones in
7646         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
7647
7648 2006-06-21  Simon Josefsson  <jas@extundo.com>
7649
7650         * tests/test-getaddrinfo.c: New file.
7651
7652         * modules/getaddrinfo-tests: New file.
7653
7654         * MODULES.html.sh: Add inet_pton.
7655
7656         * modules/inet_pton: New file.
7657
7658 2006-06-21  Simon Josefsson  <jas@extundo.com>
7659
7660         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
7661         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
7662         of using the (limited) gnulib implementation on Windows XP.
7663
7664         * m4/inet_pton.m4: New file.
7665
7666 2006-06-21  Simon Josefsson  <jas@extundo.com>
7667
7668         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
7669         variable.
7670
7671         * lib/socket_.h: Don't define WINVER.
7672
7673         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
7674         slightly modified to work in gnulib.
7675
7676 2006-06-21  Simon Josefsson  <jas@extundo.com>
7677
7678         * doc/gnulib.texi (Windows sockets): Add.
7679
7680 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
7681
7682         * lib/read-file.c (fread_file): Start with buffer allocation of
7683         0 bytes rather than 1 byte; this simplifies the code.
7684         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
7685         code to free buffer and save/restore errno.
7686         (internal_read_file): Remove unused local.
7687
7688 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
7689
7690         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
7691         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
7692         Problem reported by Denis Excoffier in
7693         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
7694
7695 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
7696
7697         * modules/sys_socket, modules/socklen: Include sys/types since
7698         FreeBSD 4.x's sys/socket.h needs it.
7699
7700 2006-06-19  Simon Josefsson  <jas@extundo.com>
7701
7702         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
7703
7704 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
7705
7706         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
7707
7708 2006-06-19  Bruno Haible  <bruno@clisp.org>
7709
7710         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
7711         and FULL_PATH_INTTYPES_H in angle brackets.
7712         Reported by Mark D. Baushke <mdb@gnu.org>.
7713
7714 2006-06-17  Eric Blake  <ebb9@byu.net>
7715
7716         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
7717         errno.
7718
7719 2006-06-17  Bruno Haible  <bruno@clisp.org>
7720
7721         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
7722         <sys/inttypes.h>.
7723
7724 2006-06-17  Bruno Haible  <bruno@clisp.org>
7725
7726         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
7727         whether errno is declared. Assume <errno.h> declares errno.
7728
7729 2006-06-17  Bruno Haible  <bruno@clisp.org>
7730
7731         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
7732
7733 2006-06-17  Bruno Haible  <bruno@clisp.org>
7734
7735         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
7736         problem on Solaris 2.5.1.
7737
7738 2006-06-16  Eric Blake  <ebb9@byu.net>
7739
7740         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
7741         * lib/unicodeio.c [!defined errno]: Likewise.
7742         * lib/strtol.c [!defined errno]: Likewise.
7743         * lib/strtod.c [!defined errno]: Likewise.
7744
7745 2006-06-15  Eric Blake  <ebb9@byu.net>
7746
7747         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
7748
7749 2006-06-15  Eric Blake  <ebb9@byu.net>
7750
7751         * config/srclist.txt (ssize_t.m4): Lose sync.
7752
7753 2006-06-15  Bruno Haible  <bruno@clisp.org>
7754
7755         * modules/stdint (Files): Include m4/full-header-path.m4,
7756         m4/size_max.m4, m4/wchar_t.m4.
7757         (Makefile.am): Many more substitutions.
7758         * modules/stdint-tests: New file.
7759         * tests/test-stdint.c: New file.
7760
7761 2006-06-15  Bruno Haible  <bruno@clisp.org>
7762
7763         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
7764         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
7765         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
7766         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
7767         gl_CHECK_TYPE_SAME): New macros.
7768
7769 2006-06-15  Bruno Haible  <bruno@clisp.org>
7770
7771         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
7772
7773 2006-06-15  Bruno Haible  <bruno@clisp.org>
7774
7775         * lib/stdint_.h: Rewritten to be fully auto-configured.
7776         Fixes bug on HP-UX/IA64.
7777
7778 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
7779
7780         * lib/getdate.y (__attribute__): Don't define if already defined.
7781         Problem reported by Larry Jones.
7782         * lib/utimens.c (__attribute__): Likewise.
7783
7784 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
7785
7786         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
7787         reported by Andreas Schwab.
7788
7789 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7790             Bruno Haible  <bruno@clisp.org>
7791
7792         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
7793         check for the declaration of strnlen and a run test that exposes the
7794         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
7795         rpl_strndup.
7796
7797 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7798             Bruno Haible  <bruno@clisp.org>
7799
7800         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
7801
7802 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7803
7804         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
7805         compile test, for Tru64 4.0D.
7806
7807 2006-05-28  Karl Berry  <karl@gnu.org>
7808
7809         * config/srclist.txt (printf-args.c): lose sync.
7810
7811 2006-05-26  Martin Lambers  <marlam@marlam.de>
7812
7813         * lib/getpass.c: Updates the test for the native W32 API, and adds
7814         missing includes, thus fixing compilation warnings.
7815
7816 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
7817
7818         * lib/exclude.c (exclude_fnmatch): New function.
7819         (excluded_file_name): Call exclude_fnmatch.
7820         * lib/exclude.h (excluded_file_name): New prototype
7821
7822 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
7823
7824         * lib/tempname.c (small_open, large_open): New macros.
7825         (__open, __open64) [!_LIBC]: Remove.
7826         (__gen_tempname): Use small_open and large_open instead of __open
7827         and __open64.  This fixes a portability bug on HP-UX 11.11i
7828         reported by Simon Wing-Tang in
7829         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
7830
7831 2006-05-24  Bruno Haible  <bruno@clisp.org>
7832
7833         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
7834         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
7835         Reported by Thorsten Maerz <torte@netztorte.de> via
7836         Aaron Stone <aaron@serendipity.cx>.
7837
7838 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
7839
7840         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
7841         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
7842         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
7843         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
7844         not really conditional on the cache.
7845         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
7846
7847 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
7848
7849         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
7850         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
7851         (my_usleep): Don't mishandle maximum value.
7852
7853 2006-05-19  Jim Meyering  <jim@meyering.net>
7854
7855         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
7856
7857 2006-05-17  Bruno Haible  <bruno@clisp.org>
7858
7859         Cygwin portability.
7860         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
7861
7862 2006-05-17  Bruno Haible  <bruno@clisp.org>
7863
7864         * lib/stdint_.h: Fix recognition of Cygwin.
7865
7866 2006-05-15  Bruno Haible  <bruno@clisp.org>
7867
7868         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
7869         on libtool patch by Ralf Wildenhues.
7870
7871 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
7872
7873         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
7874         test for C99 conformance; (bool) 0.5 is an integer constant
7875         expression, but (bool) -0.5 is not.  Problem reported by Fedor
7876         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
7877
7878 2006-05-11  Simon Josefsson  <jas@extundo.com>
7879
7880         * m4/xvasprintf.m4: Fix obvious typo.
7881
7882 2006-05-11  Jim Meyering  <jim@meyering.net>
7883
7884         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
7885         James Lemley.
7886
7887 2006-05-10  Simon Josefsson  <jas@extundo.com>
7888
7889         * lib/md4.c: Typo fix, update copyright years.
7890         (K1, K2): Don't use L because it turn computations into 64-bit on
7891         64-bit platforms.
7892
7893 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
7894
7895         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
7896         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
7897         unwanted sign propagation, e.g., on hosts with 64-bit int.
7898         There still are some problems with reeelly weird theoretical hosts
7899         (e.g., 33-bit int) but it's not worth worrying about now.
7900         * lib/sha1.c (rol): Likewise.
7901         (K1, K2, K3, K4): Remove unnecessary L suffix.
7902
7903 2006-05-10  Bruno Haible  <bruno@clisp.org>
7904
7905         * lib/des.c: Cast to avoid warnings.
7906
7907 2006-05-09  Bruno Haible  <bruno@clisp.org>
7908
7909         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
7910         (Depends-on): Depend also on xsize, stdarg.
7911         (configure.ac): Add gl_XVASPRINTF.
7912
7913 2006-05-09  Bruno Haible  <bruno@clisp.org>
7914
7915         * m4/xvasprintf.m4: New file.
7916
7917 2006-05-09  Bruno Haible  <bruno@clisp.org>
7918
7919         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
7920         (EOVERFLOW): Define fallback value.
7921         (xstrcat): New function.
7922         (xvasprintf): Recognize the special case of a string concatenation.
7923
7924 2006-05-08  Eric Blake  <ebb9@byu.net>
7925
7926         * gnulib-tool (func_version): Base copyright year on CVS date.
7927         (func_emit_copyright_notice): New function.
7928         (func_emit_lib_Makefile_am): Use it.
7929         (func_emit_tests_Makefile_am): Likewise.
7930         (func_import): Likewise.
7931
7932 2006-05-08  Bruno Haible  <bruno@clisp.org>
7933
7934         * modules/stdarg: New file.
7935         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
7936
7937 2006-05-08  Bruno Haible  <bruno@clisp.org>
7938
7939         * m4/stdarg.m4: New file, from GNU gettext.
7940
7941 2006-05-08  Bruno Haible  <bruno@clisp.org>
7942
7943         * config/srclist.txt (build-aux/config.rpath): different from latest
7944         release.
7945
7946 2006-05-08  Bruno Haible  <bruno@clisp.org>
7947
7948         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
7949
7950 2006-05-05  Jim Meyering  <jim@meyering.net>
7951
7952         * m4/warning.m4: New file, derived from bison's file by the same name.
7953
7954 2006-05-03  Bruno Haible  <bruno@clisp.org>
7955
7956         * lib/stdint_.h: Shorter URL.
7957         * lib/inttypes.h: Likewise.
7958
7959 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
7960
7961         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
7962
7963 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
7964
7965         * lib/verify.h: Document the internals better.  Most of this change
7966         was written by Bruno Haible.
7967
7968 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
7969
7970         * doc/verify.texi: New file, partly based on a proposal by
7971         Bruno Haible.
7972
7973 2006-05-02  Bruno Haible  <bruno@clisp.org>
7974
7975         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
7976         test from here...
7977         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
7978
7979 2006-04-29  Bruno Haible  <bruno@clisp.org>
7980
7981         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
7982         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
7983
7984 2006-04-29  Bruno Haible  <bruno@clisp.org>
7985
7986         * gnulib-tool: Make --update option actually work.
7987
7988 2006-04-29  Bruno Haible  <bruno@clisp.org>
7989
7990         * doc/gcd.texi: New file.
7991         * doc/gnulib.texi: Include it.
7992
7993 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
7994
7995         * lib/getdate.y (get_date): When adding relative date, start with the
7996         initial time, not with the result of the first mktime call.
7997
7998 2006-04-25  Bruno Haible  <bruno@clisp.org>
7999
8000         * gnulib-tool (func_import): Output the include directives in three
8001         blocks, sorted separately.
8002         Reported by Ben Pfaff <blp@cs.stanford.edu>.
8003
8004 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
8005
8006         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
8007         to define main with arguments, for C++.  Reported by Eric Blake.
8008         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
8009         Prefer 'int main ()' to 'int main (void)', for C++.
8010         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
8011         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
8012         for 'main', for C99 and C++.
8013
8014 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
8015
8016         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
8017         Don't assume that exit status -1 is valid.
8018         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
8019         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
8020         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
8021         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
8022         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
8023         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
8024         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
8025         functions can be used without declaring them, or that you can
8026         exit with status -1.
8027         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
8028
8029 2006-04-24  Karl Berry  <karl@gnu.org>
8030
8031         * config/srclist.txt (longdouble.m4): sync lost.
8032
8033 2006-04-24  Eric Blake  <ebb9@byu.net>
8034
8035         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
8036
8037 2006-04-24  Bruno Haible  <bruno@clisp.org>
8038
8039         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
8040         poll() implementation in AIX.
8041         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8042
8043 2006-04-24  Bruno Haible  <bruno@clisp.org>
8044
8045         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
8046         assigned exactly once.
8047
8048 2006-04-23  Claudio Fontana  <claudio@gnu.org>
8049             Bruno Haible  <bruno@clisp.org>
8050
8051         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
8052         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
8053         for AM_CPPFLAGS.
8054
8055 2006-04-23  Bruno Haible  <bruno@clisp.org>
8056
8057         * modules/copy-file: Depend on unistd.
8058         * modules/execute: Likewise.
8059         * modules/fatal-signal: Likewise.
8060         * modules/findprog: Likewise.
8061         * modules/mkdtemp : Likewise.
8062         * modules/pipe: Likewise.
8063         * modules/wait-process: Likewise.
8064
8065 2006-04-23  Bruno Haible  <bruno@clisp.org>
8066
8067         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
8068         condition was already detected.
8069         Reported by Ben Pfaff <blp@cs.stanford.edu>.
8070
8071 2006-04-23  Bruno Haible  <bruno@clisp.org>
8072
8073         * lib/copy-file.c: Include <unistd.h> unconditionally.
8074         * lib/execute.c: Likewise.
8075         * lib/fatal-signal.c: Likewise.
8076         * lib/findprog.c: Likewise.
8077         * lib/mkdtemp.c: Likewise.
8078         * lib/pipe.h: Likewise.
8079         * lib/pipe.c: Likewise.
8080         * lib/wait-process.h: Likewise.
8081
8082 2006-04-23  Bruno Haible  <bruno@clisp.org>
8083
8084         * gnulib-tool (func_usage): Fix --import description. Document
8085         --update.
8086         (func_import): Create temporary file in a temporary directory, if
8087         --dry-run is specified. Silence errors from 'grep' when there are no
8088         m4 files in $m4dir.
8089         (func_create_testdir): Silence errors from 'grep' when there are no
8090         m4 files in $m4dir.
8091         Reported by Karl Berry <karl@freefriends.org>.
8092
8093 2006-04-20  Bruno Haible  <bruno@clisp.org>
8094
8095         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
8096         one argument, so that the code will be portable to Autoconf 2.60.
8097         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
8098         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
8099         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
8100
8101 2006-04-19  Derek Price  <derek@ximbiot.com>
8102             Eric Blake  <ebb9@byu.net>
8103
8104         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
8105         rather than "/full/path.h".  Update comment to match.  Shorten &
8106         generalize m4_translit call via AS_TR_CPP.
8107
8108 2006-04-19  Derek Price  <derek@ximbiot.com>
8109             Eric Blake  <ebb9@byu.net>
8110
8111         * lib/inttypes.h: Correct grammar in comment.
8112
8113 2006-04-18  Derek Price  <derek@ximbiot.com>
8114             Paul Eggert  <eggert@cs.ucla.edu>
8115
8116         * modules/inttypes: New file.
8117         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
8118
8119 2006-04-18  Derek Price  <derek@ximbiot.com>
8120             Paul Eggert  <eggert@cs.ucla.edu>
8121
8122         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
8123         New files.
8124
8125 2006-04-18  Derek Price  <derek@ximbiot.com>
8126             Paul Eggert  <eggert@cs.ucla.edu>
8127
8128         * lib/inttypes.h: New file.
8129         * lib/strtoimax.c: Assume <inttypes.h>.
8130
8131 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
8132
8133         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
8134         isn't mounted.  Problem reported by Kir Kolyshkin.
8135
8136 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
8137
8138         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
8139         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
8140         Derek R. Price.
8141         * lib/regex.h (RE_DUP_MAX): Update comment to match current
8142         implementation.
8143
8144 2006-04-12  Eric Blake  <ebb9@byu.net>
8145
8146         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
8147         is now done automatically by the corresponding Autoconf macro.
8148
8149 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
8150
8151         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
8152         time_r.h.
8153
8154 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
8155
8156         Merge regex changes from libc, removing some of our
8157         POSIX-conformance changes that were rejected and redoing them in a
8158         less-intrusive way.
8159
8160         * lib/regcomp.c (re_compile_internal, init_dfa):
8161         Length arg is now size_t, not Idx.  All uses changed.
8162         (peek_token): Forward decl now says internal_function.
8163         (__re_error_msgid, __re_error_msgid_idx):
8164         Now static rather than extern with attribute_hidden.
8165         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
8166         For some reason libc prefers K&R style defns for external functions.
8167         (regerror) [!defined _LIBC]: Likewise.
8168         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
8169         (seek_collating_symbol_entry, lookup_collation_sequence_value):
8170         (build_range_exp, build_collating_symbol):
8171         Use K&R-style defn.
8172         (re_compile_fastmap): Use '\0' to memset, not 0.
8173         (utf8_sb_map): Make the calculations more obvious.
8174         (init_dfa, parse_bracket_exp, build_charclass_op):
8175         Call calloc and cast result, as glibc does.
8176         (init_word_char, fetch_token, peek_token, peek_token_bracket):
8177         (build_range_exp, build_collating_symbol):
8178         Now internal functions.
8179
8180         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
8181
8182         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
8183         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
8184         Don't depend on VMS; depend on __VMS instead, for POSIX
8185         namespace cleanness.
8186         (regoff_t): Define to ssize_t, not long int.
8187
8188         Remove the REG_ macros named below.  Instead, make the old names
8189         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
8190         __USE_GNU_REGEX.
8191         (REG_BACKSLASH_ESCAPE_IN_LISTS):
8192         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
8193         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
8194         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
8195         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
8196         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
8197         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
8198         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
8199         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
8200         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
8201         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
8202         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
8203         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
8204         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
8205         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
8206         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
8207         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
8208         (REG_NREGS):
8209         Remove.  All uses replaced by the old RE_* names.
8210         (RE_BACKSLASH_ESCAPE_IN_LISTS):
8211         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
8212         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
8213         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
8214         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
8215         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
8216         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
8217         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
8218         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
8219         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
8220         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
8221         Don't bother having these macros be independent of each others'
8222         values, since they no longer exist in the POSIX name space.
8223
8224         Rename the following member names back to their old names,
8225         unless !__USE_GNU_REGEX.  All uses changed back.
8226         (buffer): Renamed from re_buffer.
8227         (allocated): Renamed from re_allocated.
8228         (used): Renamed from re_used.
8229         (syntax): Renamed from re_syntax.
8230         (fastmap): Renamed from re_fastmap.
8231         (translate): Renamed from re_translate.
8232         (can_be_null): Renamed from re_can_be_null.
8233         (regs_allocated): Renamed from re_regs_allocated.
8234         (fastmap_accurate): Renamed from re_fastmap_accurate.
8235         (no_sub): Renamed from re_no_sub.
8236         (not_bol): Renamed from re_not_bol.
8237         (not_eol): Renamed from re_not_eol.
8238         (newline_anchor): Renamed from re_newline_anchor.
8239         (num_regs): Renamed from rm_num_regs.
8240         (start): Renamed from rm_start.
8241         (end): Renamed from rm_end.
8242
8243         (free_state): Move up a bit.
8244
8245         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
8246         #define to be empty.
8247         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
8248         when that is what is intended.
8249         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
8250         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
8251         (MAX): New macro.
8252         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
8253         All uses changed back to re_malloc, etc.  It's now the caller's
8254         responsibility to check for overflow; all callers changed.
8255         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
8256         (re_x2nrealloc): Remove.
8257         (free_state): Remove decl.
8258
8259         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
8260         (re_set_registers, re_exec):
8261         Use K&R-style defn.
8262
8263         2006-01-31  Roland McGrath  <roland@redhat.com>
8264
8265         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
8266         Reported by Mike Frysinger <vapier@gentoo.org>.
8267
8268         2006-01-15  Andreas Jaeger  <aj@suse.de>
8269
8270         [BZ #1950]
8271         * lib/regex_internal.c (re_string_reconstruct): Adjust for
8272         build_wcs_upper_buffer change.
8273         (build_wcs_upper_buffer): Change return type.
8274
8275         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
8276
8277         * lib/regex_internal.h: Include <stdint.h> if available.
8278
8279         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
8280
8281         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
8282
8283         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
8284
8285         * lib/regcomp.c: Adjust for changed secondary hash function.
8286
8287         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
8288
8289         * lib/regex.h: Pretty printing.
8290         Clean up namespace a bit.
8291
8292         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
8293
8294         * lib/regexec.c (update_cur_sifted_state, check_arrival,
8295         check_arrival_add_next_nodes): Avoid using uninitialized variable.
8296
8297         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
8298                     Ulrich Drepper  <drepper@redhat.com>
8299
8300         [BZ #1302]
8301         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
8302         changed.
8303         (bitset_word_t): Renamed from bitset_word.  All uses changed.
8304
8305         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
8306
8307         [BZ #281]
8308         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
8309         * lib/regcomp.c: Remove unnecessary uses of
8310         unsigned RE_TRANSLATE_TYPE.
8311         * lib/regex_internal.h: Likewise.
8312         * lib/regex_internal.c: Likewise.
8313         * lib/regexec.c: Likewise.
8314         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
8315
8316         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
8317
8318         * lib/regexec.c (find_recover_state): Remove unnecessary
8319         initialization.
8320         (transit_state_bkref): Make DFA a const pointer.
8321         (get_subexp): Likewise.
8322         (check_arrival): Likewise.
8323         (update_cur_sifted_state): Likewise.
8324         (re_search_internal): Likewise.
8325         (prune_impossible_nodes): Likewise.
8326         (acquire_init_state_context): Likewise.
8327         (proceed_next_node): Likewise.
8328         (set_regs): Likewise.
8329         (free_fail_stack_return): Likewise.
8330         (check_arrival_expand_ecl): Mark DFA parameter as const.
8331         (check_arrival_expand_ecl_sub): Likewise.
8332         (check_subexp_limits): Likewise.
8333         (sub_epsilon_src_nodes):  Likewise.
8334         (add_epsilon_src_nodes):  Likewise.
8335         (merge_state_array): Likewise.
8336         (update_regs): Likewise.
8337         (build_trtable): Likewise.
8338         (sift_states_backward): Mark MCTX parameter as const.
8339         (build_sifted_states): Likewise.
8340         (update_cur_sifted_state): Likewise.
8341         (sift_states_mkref): Likewise.
8342         (check_arrival_expand_ecl): Mark eclosure as const.
8343         (check_dst_limits_calc_pos_1): Likewise.
8344         * lib/regex_internal.h (re_match_context_t): Make dfa a const
8345         pointer.
8346
8347         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
8348
8349         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
8350         (transit_state_sb): Likewise.
8351         (transit_state_mb): Likewise.
8352         (sift_states_iter_mb): Likewise.
8353         (check_arrival_add_next_nodes): Likewise.
8354         (check_node_accept_bytes): Change first parameter to pointer-to-const.
8355         [_LIBC] (re_search_2_stub): Use mempcpy.
8356
8357         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
8358         mbrtowc for very simple UTF-8 case.
8359
8360         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
8361         a pointer-to-const.
8362         (re_acquire_state_context): Likewise.
8363         * lib/regex_internal.h: Adjust prototypes.
8364
8365         * lib/regex.c: Prevent using C++ compilers.
8366
8367         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
8368         (re_acquire_state_context): Likewise.
8369
8370 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
8371
8372         * modules/regex (Depends-on): Add ssize_t.
8373
8374 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
8375
8376         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
8377         translation table.
8378
8379 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
8380
8381         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
8382
8383 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
8384             Bruno Haible  <bruno@clisp.org>
8385
8386         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
8387         <sys/types.h> and <inttypes.h>.
8388
8389 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8390
8391         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
8392         `__error_t_defined', so argp.h will not typedef the former.
8393
8394 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
8395
8396         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
8397         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
8398         glibc names.  Even if glibc is changed to conform to POSIX, the
8399         traditional names will be available anyway, since regex depends on
8400         the extensions module.  Also, fix a longstanding typo in the
8401         implementation of Spencer ERE test #75 from grep 2.3.  Problems
8402         reported by Emanuele Giaquinta.  Also, change sense of cached
8403         variable, so that the message makes sense.
8404
8405 2006-03-24  Simon Josefsson  <jas@extundo.com>
8406
8407         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
8408         including some doc fixes.
8409         (base64_encode_alloc): Fix +1 bug on allocation failures.
8410
8411 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8412
8413         * lib/base64.c (base64_encode): Do not read past end of array with
8414         unsanitized input on systems with CHAR_BIT > 8.
8415
8416 2006-03-24  Eric Blake  <ebb9@byu.net>
8417
8418         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
8419
8420 2006-03-22  Karl Berry  <karl@gnu.org>
8421
8422         * config/srclist.txt (*setenv.[ch]): get from coreutils.
8423         * config/srclistvars.sh (COREUTILS): new var.
8424
8425 2006-03-17  Jim Meyering  <jim@meyering.net>
8426
8427         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
8428         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
8429
8430 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
8431
8432         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
8433         no longer needs it.  Instead, check that regoff_t is as least
8434         as wide as ptrdiff_t.
8435
8436         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
8437         so that our regex.h stays compatible with the installed regex.
8438         This is helpful for installers who configure --without-included-regex.
8439         Problem reported by Emanuele Giaquinta.
8440
8441 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
8442
8443         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
8444         Typedef to long int, not to off_, as POSIX will likely change
8445         in that direction.
8446
8447 2006-03-15  Eric Blake  <ebb9@byu.net>
8448
8449         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
8450
8451 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
8452
8453         * lib/argp-help.c (validate_uparams): Fix typo
8454         * lib/argp-parse.c (argp_default_options): Consistently begin help
8455         messages with a lowercase letter.
8456
8457 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
8458
8459         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
8460         overrun buffers and shouldn't be used (much as gets shouldn't be
8461         used).
8462         * lib/time_r.c (asctime_r, ctime_r): Likewise.
8463
8464 2006-03-08  Simon Josefsson  <jas@extundo.com>
8465
8466         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
8467         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8468
8469 2006-03-08  Simon Josefsson  <jas@extundo.com>
8470
8471         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
8472         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8473
8474 2006-03-08  Simon Josefsson  <jas@extundo.com>
8475
8476         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
8477         signal that configure disabled the device.
8478
8479 2006-03-08  Simon Josefsson  <jas@extundo.com>
8480
8481         * build-aux/maint.mk: Fix refresh-po, to handle no translated
8482         languages.
8483
8484 2006-03-07  Simon Josefsson  <jas@extundo.com>
8485
8486         * modules/getopt (Depends-on): Add unistd.
8487
8488         * modules/unistd: New file.
8489
8490 2006-03-07  Simon Josefsson  <jas@extundo.com>
8491
8492         * modules/gc-random: New file.
8493
8494 2006-03-07  Simon Josefsson  <jas@extundo.com>
8495
8496         * m4/unistd_h.m4: New file.
8497
8498 2006-03-07  Simon Josefsson  <jas@extundo.com>
8499
8500         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
8501         test to be side-effect free by storing the result in the cache
8502         variable gl_cv_lib_readline, and moving the assignment of
8503         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
8504         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8505
8506 2006-03-07  Simon Josefsson  <jas@extundo.com>
8507
8508         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
8509         error on missing devices (the functions will return an error).
8510
8511         * m4/gc.m4: Move random stuff to gc-random.m4
8512
8513 2006-03-07  Simon Josefsson  <jas@extundo.com>
8514
8515         * lib/unistd_.h: New file.
8516
8517 2006-03-07  Simon Josefsson  <jas@extundo.com>
8518
8519         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
8520
8521 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
8522
8523         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
8524         Problem reported by Juan Manuel Guerrero.
8525
8526 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
8527
8528         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
8529         the unistd module.
8530         * lib/getlogin_r.c: Likewise.
8531         * lib/getlogin_r.h: Likewise.
8532         * lib/glob.c: Likewise.
8533         * lib/pagealign_alloc.c: Likewise.
8534         * lib/unistd_.h: Remove; no longer needed.
8535
8536 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
8537
8538         * MODULES.html.sh (Support for systems lacking POSIX:2001):
8539         Add unistd.
8540         * modules/c-stack (Depends-on): Add unistd.
8541         * modules/getlogin_r: Likewise.
8542         * modules/glob: Likewise.
8543         * modules/pagealign_alloc: Likewise.
8544         * modules/unistd (Files): Remove lib/unistd_.h.
8545         (EXTRA_DIST): Remove.
8546         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
8547         need unistd_.h.
8548         (MOSTLYCLEANFILES): Remove unistd.h-t.
8549
8550 2006-03-03  Simon Josefsson  <jas@extundo.com>
8551
8552         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
8553
8554 2006-03-03  Simon Josefsson  <jas@extundo.com>
8555
8556         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
8557         libidn and bison.
8558
8559 2006-03-03  Simon Josefsson  <jas@extundo.com>
8560
8561         * build-aux/maint.mk: Add indent target.
8562
8563 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
8564
8565         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
8566         our replacement poll.h in any case, to avoid a differing
8567         declaration from a system header.  Seen on AIX.
8568
8569 2006-03-01  Simon Josefsson  <jas@extundo.com>
8570
8571         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
8572         <kasal@ucw.cz>.
8573
8574 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
8575
8576         * modules/gettime (Depends-on): Add extensions module.
8577         * modules/nanosleep (Depends-on): Likewise.
8578         * modules/settime (Depends-on): Likewise.
8579
8580 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
8581
8582         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
8583         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
8584         pedantically.
8585         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
8586         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
8587
8588         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
8589         not "==".  Reported by Ralf Wildenhues.
8590
8591 2006-03-01  Karl Berry  <karl@gnu.org>
8592
8593         * doc/Copyright/request-*: new files, synced from gnuorg.
8594
8595 2006-03-01  Karl Berry  <karl@gnu.org>
8596
8597         * config/srclist.txt (Copyright/*): new entries.
8598
8599 2006-02-28  Simon Josefsson  <jas@extundo.com>
8600
8601         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
8602
8603 2006-02-27  Simon Josefsson  <jas@extundo.com>
8604
8605         * lib/base64.h: Indent #define's.  From Jim Meyering
8606         <jim@meyering.net>.
8607
8608 2006-02-27  Jim Meyering  <jim@meyering.net>
8609
8610         Revert the change of 2006-02-24, so these files can continue
8611         to be sync'd from gettext.
8612         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
8613         of `config.h'.
8614
8615 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
8616
8617         * modules/intprops: New file.
8618         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
8619         Add intprops.
8620         * modules/getloadavg (Files): Remove lib/intprops.h.
8621         (Depends-on): Add intprops.
8622         * modules/human: Likewise.
8623         * modules/inttostr: Likewise.
8624         * modules/openat: Likewise.
8625         * modules/sig2str: Likewise.
8626         * modules/userspec: Likewise.
8627         * modules/utimecmp: Likewise.
8628         * modules/xnanosleep: Likewise.
8629         * modules/xstrtol: Likewise.
8630
8631 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
8632
8633         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
8634         * modules/lock-tests (TESTS): Use $(EXEEXT).
8635         * modules/tls-tests: Likewise.
8636         * modules/argp-tests: Likewise.
8637         (check_PROGRAMS): New var, replacing...
8638         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
8639
8640 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8641
8642         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
8643         `config.h'.
8644
8645 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
8646
8647         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
8648
8649 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8650
8651         Sync from coreutils.
8652         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
8653         gl_CHDIR_SAFER.
8654
8655 2006-02-22  Jim Meyering  <jim@meyering.net>
8656
8657         Sync from coreutils.
8658         * m4/chdir-safer.m4: New file.
8659
8660 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
8661
8662         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
8663         AT_FDCWD exceeds INT_MAX.
8664         * lib/openat.h (AT_FDCWD): Likewise.
8665
8666 2006-02-17  Eric Blake  <address@hidden>
8667
8668         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
8669
8670 2006-02-16  Simon Josefsson  <jas@extundo.com>
8671
8672         * modules/getaddrinfo (Depends-on): Add sys_socket.
8673
8674 2006-02-15  Simon Josefsson  <jas@extundo.com>
8675
8676         * build-aux/maint.mk: Add dsyntax-check rule.
8677
8678 2006-02-15  Eric Blake  <ebb9@byu.net>
8679
8680         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
8681         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
8682         'present but cannot compile' warnings on cygwin.
8683         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
8684         use ws2tcpip.h if sys/socket.h works.
8685         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
8686         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
8687
8688 2006-02-14  Simon Josefsson  <jas@extundo.com>
8689
8690         * modules/maintainer-makefile (Files): Rename.
8691
8692         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
8693         and (the local) Makefile.cfg to maint-cfg.mk.
8694
8695         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
8696         to the latter.
8697
8698         * modules/maintainer-makefile: New module.
8699
8700         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
8701         severaly stripped to make it possible to build it up from scratch
8702         with reliable tests.
8703
8704         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
8705         fixes to permit overriding the default actions when configure and
8706         makefile are not available.
8707
8708 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
8709
8710         Sync from coreutils.
8711         * modules/lstat (Depends-on): Don't depend on xalloc.
8712         (License): Change from GPL to LGPL, since this is now simply a
8713         replacement for a libc function.
8714
8715 2006-02-14  Jim Meyering  <jim@meyering.net>
8716
8717         Sync from coreutils.
8718
8719         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
8720         failure on deficient systems, and simplify gnulib lgpl dependencies.
8721         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
8722         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
8723
8724         * lib/xalloc-die.c: Remove unused definition of N_.
8725
8726 2006-02-14  Jim Meyering  <jim@meyering.net>
8727
8728         Sync from coreutils.
8729         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
8730         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
8731         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
8732         double-quote uses of that variable, to accommodate the rare case in
8733         which getmntent is available in none of the libraries checked.  This
8734         happens at least on FreeBSD 5.0.
8735
8736 2006-02-13  Simon Josefsson  <jas@extundo.com>
8737
8738         * gnulib-tool (Usage): Fix --import, from
8739         karl@freefriends.org (Karl Berry).
8740
8741 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
8742
8743         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
8744
8745 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
8746
8747         * lib/argp-namefrob.h: Restore changes accidentally lost during the
8748         "autoupdate" on 2005-12-12.
8749
8750 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
8751
8752         * modules/closeout (Depends-on): Remove atexit.
8753
8754 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
8755
8756         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
8757         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
8758
8759 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
8760
8761         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
8762         __EXTENSIONS__ if this causes compilation to fail.  Problem
8763         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
8764         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
8765
8766 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
8767
8768         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
8769         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
8770         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
8771         All uses changed.
8772
8773 2006-01-26  Simon Josefsson  <jas@extundo.com>
8774
8775         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
8776         prototype is visible on mingw32.
8777
8778         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
8779         for mingw32.
8780
8781         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
8782         mingw32).
8783
8784 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
8785
8786         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
8787         attempt to open for write; this always fails, at least on POSIX
8788         hosts.  This reinstates the 2006-01-09 change, which was
8789         inadvertently removed.
8790
8791 2006-01-26  Bruno Haible  <bruno@clisp.org>
8792
8793         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
8794         Reported by Paul Eggert.
8795
8796 2006-01-26  Bruno Haible  <bruno@clisp.org>
8797             Paul Eggert  <eggert@cs.ucla.edu>
8798
8799         * lib/stdbool_.h (_Bool)
8800         [(! (defined __cplusplus || defined __BEOS__)
8801           && !defined __GNUC__
8802           && !(defined __HP_cc || defined __xlc__
8803                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
8804                || defined __sgi))]:
8805         #define to signed char in these cases too; this simplifies
8806         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
8807         etc., separately) and makes it more conservative.
8808
8809 2006-01-25  Simon Josefsson  <jas@extundo.com>
8810
8811         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
8812         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
8813         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
8814
8815 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
8816
8817         * lib/argp-namefrob.h: Bugfix. Remove stray #
8818
8819 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
8820
8821         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
8822         so that we test the test.
8823         Check for yet another HP-UX cc bug involving *bool |= bool.
8824
8825 2006-01-25  Karl Berry  <karl@gnu.org>
8826
8827         * config/srclist.txt (vasnprintf.c): sync lost.
8828
8829 2006-01-25  Jim Meyering  <jim@meyering.net>
8830
8831         Sync from the stable (b5) branch of coreutils:
8832
8833         * lib/fts.c (fts_children): Don't let close() clobber errno from
8834         failed fchdir().
8835
8836         * lib/fts.c (fts_stat): When following a symlink-to-directory,
8837         don't necessarily interpret stat-fails+lstat-succeeds as indicating
8838         a dangling symlink.  That can also happen at least for ELOOP.
8839         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
8840         FYI, this bug predates the inclusion of fts.c in coreutils.
8841
8842         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
8843         in their own block, so pre-c99 compilers don't object.
8844
8845         Avoid the double-free (first in fts_read, second in fts_close) that
8846         would occur when an `active' directory is made inaccessible (e.g.,
8847         via chmod a-x) during a traversal.
8848         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
8849         before returning.  Reproduce this failure by
8850         mkdir -p a/b; cd a; chmod a-x . b
8851         Reported by Stavros Passas.
8852
8853 2006-01-25  Jim Meyering  <jim@meyering.net>
8854
8855         * lib/fileblocks.c: Remove more useless parentheses.
8856         * lib/readutmp.h: Likewise.
8857
8858 2006-01-25  Bruno Haible  <bruno@clisp.org>
8859
8860         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
8861         warnings.
8862         Reported by Paul Eggert.
8863
8864 2006-01-25  Bruno Haible  <bruno@clisp.org>
8865
8866         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
8867         rid of a trap command. For Solaris sh.
8868         Reported by Mark D. Baushke <mdb@gnu.org>.
8869
8870 2006-01-24  Simon Josefsson  <jas@extundo.com>
8871
8872         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
8873         Bruno.
8874
8875 2006-01-24  Karl Berry  <karl@gnu.org>
8876
8877         * config/srclist.txt (argp-namefrob.h): sync lost.
8878
8879 2006-01-24  Jim Meyering  <jim@meyering.net>
8880
8881         * modules/openat (Files): Add lib/intprops.h.
8882         From Mark D. Baushke.
8883
8884 2006-01-24  Jim Meyering  <jim@meyering.net>
8885
8886         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
8887         Reported by Mark D. Baushke.
8888
8889 2006-01-24  Jim Meyering  <jim@meyering.net>
8890
8891         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
8892
8893 2006-01-24  Bruno Haible  <bruno@clisp.org>
8894
8895         * modules/strnlen (Maintainer): Change from glibc to all.
8896
8897 2006-01-24  Bruno Haible  <bruno@clisp.org>
8898
8899         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
8900         Patch by Paul Eggert.
8901
8902 2006-01-24  Bruno Haible  <bruno@clisp.org>
8903
8904         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
8905         already has it.
8906         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
8907         2005-11-26.
8908
8909         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
8910         'signed char' to avoid problems with the built-in _Bool type.
8911         Reported by Paul Eggert on 2005-11-26.
8912
8913 2006-01-24  Bruno Haible  <bruno@clisp.org>
8914
8915         * gnulib-tool (func_import): Avoid constructing complicated sed
8916         expressions inside backquote.
8917         Report and solution by Mark D. Baushke <mdb@gnu.org>.
8918
8919 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
8920
8921         These changes imported from libc.
8922         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
8923         test and two separate function calls.
8924         * lib/strndup.c (__strndup): Add libc_hidden_def.
8925
8926 2006-01-23  Simon Josefsson  <jas@extundo.com>
8927
8928         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
8929         Remove the test_*_SOURCES variable: automake infers it by default.
8930         * modules/tls-tests: Likewise.
8931
8932 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
8933
8934         Work around porting bugs reported by Dieter in
8935         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
8936         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
8937         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
8938         Include "getopt.h" first, to check interface.
8939         (getenv): Declare only if defined HAVE_DECL_GETENV &&
8940         !HAVE_DECL_GETENV.
8941         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
8942         (__strndup): Revert to K&R-style function dfns, the glibc style.
8943         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
8944         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
8945         Include strnlen.h first, to get prototype properly.
8946         (strnlen): Renamed from __strnlen.
8947         Remove weak alias.
8948
8949 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
8950
8951         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
8952
8953 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
8954
8955         * config/srclist.txt: Adjust to reflect glibc reorganization.
8956         This affects only comments.
8957
8958 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
8959
8960          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
8961          Reported by Bruce Korb <bkorb@gnu.org>.
8962
8963 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
8964
8965         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
8966         to pacify gcc -Wswitch-default.
8967
8968 2006-01-22  Bruno Haible  <bruno@clisp.org>
8969
8970         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
8971         temporary buffer for sprintf, take into account the precision also
8972         for 'd', 'i', 'u', 'o', 'x', 'X'.
8973
8974 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
8975
8976         * modules/argp-tests: New module
8977         * tests/test-argp.c: New file
8978         * tests/test-argp-2.sh: New file
8979
8980 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
8981
8982         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
8983         (__argp_base_name): Removed
8984         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
8985         typo.
8986         (__argp_base_name): Provide macro definition or extern declaration
8987         depending on the configuration
8988
8989 2006-01-20  Simon Josefsson  <jas@extundo.com>
8990
8991         * modules/inet_ntop (Depends-on): Depend on sys_socket.
8992
8993 2006-01-20  Simon Josefsson  <jas@extundo.com>
8994
8995         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
8996
8997 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
8998
8999         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
9000         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
9001         Suggested by Bruno Haible.
9002
9003 2006-01-20  Karl Berry  <karl@gnu.org>
9004
9005         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
9006         until changes propagate, I guess.
9007
9008 2006-01-19  Simon Josefsson  <jas@extundo.com>
9009
9010         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
9011
9012 2006-01-19  Simon Josefsson  <jas@extundo.com>
9013
9014         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
9015
9016 2006-01-19  Simon Josefsson  <jas@extundo.com>
9017
9018         * gnulib-tool: Set check_PROGRAMS.
9019
9020         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
9021         modules/des-tests, modules/gc-arcfour-tests,
9022         modules/gc-arctwo-tests, modules/gc-des-tests,
9023         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
9024         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
9025         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
9026         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
9027         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
9028         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
9029         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
9030         test_*_SOURCES.
9031
9032 2006-01-18  Simon Josefsson  <jas@extundo.com>
9033
9034         * modules/socklen (Depends-on): Depend on sys_socket.
9035
9036 2006-01-18  Simon Josefsson  <jas@extundo.com>
9037
9038         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
9039         modules/des-tests, modules/gc-arcfour-tests,
9040         modules/gc-arctwo-tests, modules/gc-des-tests,
9041         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
9042         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
9043         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
9044         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
9045         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
9046         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
9047         $(EXEEXT) to automake TESTS variable, for mingw32.
9048
9049 2006-01-17  Simon Josefsson  <jas@extundo.com>
9050
9051         * modules/socklen (Include): Need sys/socket.h.
9052
9053 2006-01-17  Bruno Haible  <bruno@clisp.org>
9054
9055         * modules/ssize_t (Include): Add <sys/types.h>.
9056
9057 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
9058
9059         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
9060         it's not portable and it doesn't work with cross-compiles.
9061         Problem reported by Bruno Haible.  Fix missing-$ typo in
9062         'test "gl_cv_ignore_unused_libraries" ...' that prevented
9063         -zignore from being used with Sun's C compiler.
9064
9065 2006-01-12  Simon Josefsson  <jas@extundo.com>
9066
9067         * lib/base64.c: Fix warning, reported by Bruno Haible
9068         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
9069
9070 2006-01-12  Bruno Haible  <bruno@clisp.org>
9071
9072         * modules/ldd: New file.
9073         * build-aux/ldd.sh.in: New file.
9074         * MODULES.html.sh (Support for building libraries and executables): Add
9075         ldd.
9076
9077 2006-01-12  Bruno Haible  <bruno@clisp.org>
9078
9079         * m4/ldd.m4: New file.
9080
9081 2006-01-12  Bruno Haible  <bruno@clisp.org>
9082
9083         * gnulib-tool (func_import, func_create_testdir): Don't go into an
9084         endless loop while replacing $auxdir with build-aux.
9085
9086 2006-01-11  Simon Josefsson  <jas@extundo.com>
9087
9088         * lib/stdint_.h (SIZE_MAX): Add missing (.
9089
9090 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
9091
9092         Sync from coreutils.
9093         * lib/md5.c: Fix commentary typos.
9094         (alignof, UNALIGNED_P): No need for a GCC-specific version.
9095         * lib/md5.h (__attribute__): Remove; unused.
9096         * lib/sha1.c: Fix commentary to match md5 better.
9097         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
9098         so that we don't need to worry about alignment.  All uses changed.
9099         This merges the 2005-10-28 md5 change into sha1.
9100
9101 2006-01-11  Jim Meyering  <jim@meyering.net>
9102
9103         Sync from coreutils.
9104         * lib/md5.c (OP): Fix spacing.
9105
9106 2006-01-11  Bruno Haible  <bruno@clisp.org>
9107
9108         Ensure automatic ordering between gl_LOCK and gl_ARGP.
9109         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
9110         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
9111
9112 2006-01-11  Bruno Haible  <bruno@clisp.org>
9113
9114         Ensure automatic ordering between gl_LOCK and gl_ARGP.
9115         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
9116         the "early" section as well.
9117
9118 2006-01-11  Bruno Haible  <bruno@clisp.org>
9119
9120         Avoid "ar: no archive members specified" error on MacOS X.
9121         * gnulib-tool (func_modules_add_dummy): New function.
9122         (func_import, func_create_testdir): Invoke it.
9123
9124 2006-01-11  Bruno Haible  <bruno@clisp.org>
9125
9126         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
9127         with $auxdir in AC_CONFIG_FILES statements.
9128
9129 2006-01-11  Bruno Haible  <bruno@clisp.org>
9130
9131         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
9132         Initialize also noinst_HEADERS to empty.
9133
9134 2006-01-11  Bruno Haible  <bruno@clisp.org>
9135
9136         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
9137         variables.
9138         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
9139         autoreconf.
9140
9141 2006-01-11  Bruno Haible  <bruno@clisp.org>
9142
9143         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
9144         overridable by the user.
9145         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9146
9147 2006-01-10  Simon Josefsson  <jas@extundo.com>
9148
9149         * modules/sys_socket: New file.
9150
9151 2006-01-10  Simon Josefsson  <jas@extundo.com>
9152
9153         * m4/sys_socket_h.m4: New file.
9154
9155 2006-01-10  Simon Josefsson  <jas@extundo.com>
9156
9157         * lib/socket_.h: New file.
9158
9159 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
9160
9161         * modules/readutmp (Maintainer): Add myself.
9162
9163 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
9164
9165         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
9166         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
9167         People who are still concerned with buggy memcmp implementations
9168         can invoke gl_FUNC_MEMCMP themselves.
9169
9170 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
9171
9172         * lib/regex_internal.h (BITSET_WORD_BITS):
9173         Work around a bug in 64-bit PGC (before version 6.1-2), where the
9174         preprocessor mishandles large unsigned values as if they were signed.
9175         Problem reported by Claudio Fontana in
9176         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
9177
9178 2006-01-10  Jim Meyering  <jim@meyering.net>
9179
9180         Avoid the double-free (first in fts_read, second in fts_close) that
9181         would occur when an `active' directory is made inaccessible (e.g.,
9182         via chmod a-x) during a traversal.
9183         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
9184         before returning.  Reproduce this failure by
9185         mkdir -p a/b; cd a; chmod a-x . b
9186         Reported by Stavros Passas.
9187
9188         Sync from coreutils.
9189         * lib/sha1.c: Tweak grammar in a comment.
9190
9191 2006-01-10  Jim Meyering  <jim@meyering.net>
9192
9193         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
9194         Patch by Joerg Sonnenberger.
9195
9196 2006-01-10  Bruno Haible  <bruno@clisp.org>
9197
9198         * modules/readutmp: Depend on module free.
9199         * modules/strtok_r: Depend on module restrict.
9200
9201 2006-01-10  Bruno Haible  <bruno@clisp.org>
9202
9203         * modules/gettext (configure.ac): Add an invocation of
9204         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
9205
9206 2006-01-10  Bruno Haible  <bruno@clisp.org>
9207
9208         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
9209         Reported by Werner Lemberg <wl@gnu.org>.
9210
9211 2006-01-10  Bruno Haible  <bruno@clisp.org>
9212
9213         * lib/localcharset.c: Update from GNU gettext.
9214
9215 2006-01-10  Bruno Haible  <bruno@clisp.org>
9216
9217         * lib/argp.h (__const): Remove macro. Use const instead.
9218         * lib/argp-fmtstream.h (__const): Likewise.
9219         * lib/glob_.h (__const): Remove macro.
9220         * lib/glob-libc.h: Use const instead of __const.
9221
9222 2006-01-10  Bruno Haible  <bruno@clisp.org>
9223
9224         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
9225         variable.
9226         Needed to avoid an automake error regarding the 'gettext' module.
9227
9228 2006-01-09  Simon Josefsson  <jas@extundo.com>
9229
9230         * modules/inet_ntop (Depends-on): Add restrict.
9231
9232 2006-01-09  Simon Josefsson  <jas@extundo.com>
9233
9234         * modules/gc-rijndael-tests (License): Put under LGPL.
9235
9236         * modules/gc-des-tests (License): Likewise.
9237
9238         * modules/gc-arcfour-tests (License): Likewise.
9239
9240         * modules/gc-arctwo-tests (License): Likewise.
9241
9242         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
9243
9244         * modules/gc-hmac-sha1-tests (Files): Likewise.
9245
9246         * modules/gc-hmac-md5-tests (License): Likewise.
9247
9248         * modules/gc-sha1-tests (License): Likewise.
9249
9250         * modules/gc-md5-tests (License): Likewise.
9251
9252         * modules/gc-md4-tests (License): Likewise.
9253
9254         * modules/gc-md2-tests (License): Likewise.
9255
9256         * modules/gc-tests (License): Likewise.
9257
9258         * modules/des-tests (License): Likewise.
9259
9260         * modules/md4-tests (License): Likewise.
9261
9262         * modules/md2-tests (License): Likewise.
9263
9264 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
9265
9266         Sync from coreutils:
9267
9268         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
9269         * modules/lib-ignore: New file.
9270         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
9271         chdir-safer.m4, lchmod.m4.
9272         * modules/openat: Add mkdirat.c, openat-priv.h.
9273
9274 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
9275
9276         Sync from coreutils.
9277         * m4/lib-ignore.m4: New file.
9278         * m4/lchmod.m4: New file.
9279
9280 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
9281
9282         Sync from coreutils.
9283         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
9284         for write access: POSIX says that must fail.
9285         * lib/fts.c (diropen): Likewise.
9286         * lib/save-cwd.c (save_cwd): Likewise.
9287         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
9288         well, for minor improvements on hosts that lack O_DIRECTORY.
9289         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
9290         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
9291         Fall back on chown if open failed with EACCES.
9292
9293         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
9294         Report an error at compile-time if only a 1-second nominal clock
9295         resolution is found.
9296
9297         * lib/lchmod.h: New file.
9298         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
9299         (make_dir_parents): Use lchown rather than chown, and
9300         lchmod rather than chmod.
9301
9302         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
9303         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
9304         "proc" reported by n0dalus.
9305
9306         * lib/mountlist.c: Include <limits.h>.
9307         (dev_from_mount_options)
9308         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
9309         New function.  It no longer assumes "dev=" has the System V meaning
9310         on Linux (since it doesn't).  It also parses "dev=" more carefully.
9311         (read_file_system_list)
9312         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
9313         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
9314         dev= in that case.
9315
9316         * lib/posixtm.h (PDS_PRE_2000): New macro.
9317         * lib/posixtm.c (year): Arg is now syntax_bits rather than
9318         allow_century.  All usages changed.  Reject dates outside the range
9319         1969-1999 if PDS_PRE_2000 is used.
9320
9321 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
9322
9323         Sync from coreutils.
9324         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
9325         (Time of day items): Mention the possibility of leap seconds.
9326         Problem reported by Dr. David Alan Gilbert.
9327
9328 2006-01-09  Jim Meyering  <jim@meyering.net>
9329
9330         Sync from coreutils.
9331
9332         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
9333
9334         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
9335
9336         * lib/modechange.c (mode_compile): Reject an invalid mode string
9337         that starts with an octal digit.  From Andreas Gruenbacher.
9338
9339         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
9340         and dup to open_safer and dup_safer, respectively.
9341         (openat_permissive): Fix typo in comment.
9342
9343         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
9344         "gettext.h"; either no longer needed or are guaranteed by openat.h.
9345         (_): Remove; no longer needed.
9346         (openat): Renamed from rpl_openat; no need for rpl_openat
9347         since openat.h renames openat for us.
9348         Replace most of the body with a call to openat_permissive,
9349         to avoid duplicate code.
9350         Port to (probably hypothetical) environments were mode_t is
9351         wider than int.
9352         (openat_permissive): Require mode arg, so that we can check
9353         types better.  Put it just after flags.  Change cwd failure
9354         indicator from pointer-to-bool to pointer-to-errno-value.
9355         All callers changed.
9356         Invoke openat_save_fail and/or openat_restore_fail if
9357         cwd_errno is null, so that openat can call us.
9358         (openat_permissive, fdopendir, fstatat, unlinkat):
9359         Simplify errno handling to avoid some duplicate code,
9360         as it's OK to set errno on success.
9361         * lib/openat.h: Revamp code so that function macros depend on
9362         __OPENAT_PREFIX only, not also on AT_FDCWD.
9363         (openat_ro): Remove.  Caller changed to use openat_permissive.
9364         (openat_permissive): Now a macro, if not a function.
9365         (openat_restore_fail, openat_save_fail): Now always functions,
9366         since mkdirat needs them even if __OPENAT_PREFIX is defined.
9367
9368         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
9369         and openat.c.
9370         * lib/mkdirat.c: Include openat-priv.h.
9371         Remove definitions of macros defined therein.
9372         * lib/openat.c: Likewise.
9373
9374         * lib/mkdirat.c (mkdirat): New file and function.
9375         * lib/openat.h (mkdirat): Declare.
9376
9377         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
9378
9379         * lib/openat.h (openat_permissive): Declare.
9380         (openat_ro): Define.
9381
9382         * lib/openat.c (EXPECTED_ERRNO): New macro.
9383         (openat_permissive): New function -- used in remove.c rewrite.
9384         (all functions): Set errno just before returning, only if there
9385         was an actual failure.
9386         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
9387
9388         Emulate openat-family functions using Linux's procfs, if possible.
9389         Idea and some code based on Ulrich Drepper's glibc changes.
9390
9391         * lib/openat.c: (BUILD_PROC_NAME): New macro.
9392         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
9393         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
9394         before falling back on save_cwd and restore_cwd.
9395         (fdopendir, fstatat, unlinkat): Likewise.
9396
9397         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
9398         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
9399
9400         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
9401         as second argument to va_arg.  Otherwise, some versions of gcc
9402         warn that `if this code is reached, the program will abort'.
9403
9404 2006-01-09  Jim Meyering  <jim@meyering.net>
9405
9406         Sync from coreutils.
9407         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
9408         Require openat-priv.h.
9409
9410 2006-01-09  Bruno Haible  <bruno@clisp.org>
9411
9412         * modules/strnlen (Include): Use strnlen.h.
9413
9414 2006-01-09  Bruno Haible  <bruno@clisp.org>
9415
9416         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
9417
9418 2006-01-09  Bruno Haible  <bruno@clisp.org>
9419
9420         * lib/sysexit_.h (EX_OK): New macro.
9421         Suggested by Martin Lambers <marlam@marlam.de>.
9422
9423 2006-01-09  Bruno Haible  <bruno@clisp.org>
9424
9425         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
9426         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
9427
9428 2006-01-09  Bruno Haible  <bruno@clisp.org>
9429
9430         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
9431         numbers.
9432
9433 2006-01-09  Bruno Haible  <bruno@clisp.org>
9434
9435         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
9436         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
9437         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
9438         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
9439
9440 2006-01-09  Bruno Haible  <bruno@clisp.org>
9441
9442         * build-aux/javacomp.sh.in: New file, moved from lib/.
9443         * modules/javacomp-script (Files): Update.
9444         (configure.ac): Add AC_CONFIG_FILES invocation.
9445         (EXTRA_DIST): Remove variable.
9446
9447         * build-aux/javaexec.sh.in: New file, moved from lib/.
9448         * modules/javaexec (Files): Update.
9449         (configure.ac): Add AC_CONFIG_FILES invocation.
9450         (EXTRA_DIST): Remove javaexec.sh.in.
9451
9452         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
9453         * modules/csharpcomp-script (Files): Update.
9454         (configure.ac): Add AC_CONFIG_FILES invocation.
9455         (EXTRA_DIST): Remove variable.
9456
9457         * build-aux/csharpexec.sh.in: New file, moved from lib/.
9458         * modules/csharpexec (Files): Update.
9459         (configure.ac): Add AC_CONFIG_FILES invocation.
9460         (EXTRA_DIST): Remove csharpexec.sh.in.
9461
9462 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
9463
9464         Sync from coreutils.
9465
9466         Add POSIX ACL support
9467         * lib/acl.h (copy_acl, set_acl): Add declarations.
9468         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
9469         systems other than Linux.
9470         (chmod_or_fchmod): New function: use fchmod when possible,
9471         and chmod otherwise.
9472         (file_has_acl): Add a POSIX ACL implementation, with a
9473         Linux-specific subcase.
9474         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
9475         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
9476         acls are unsupported.
9477         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
9478         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
9479         are unsupported.
9480
9481 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
9482
9483         Sync from coreutils.
9484         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
9485
9486 2006-01-07  Bruno Haible  <bruno@clisp.org>
9487
9488         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
9489         gl_EARLY.
9490
9491 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
9492
9493         * lib/strftime.c (tzname): Don't declare if it is already #defined.
9494         Problem reported for Mingw by Mark Junker.
9495
9496 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
9497
9498         * README: Gnulib normally doesn't generate a tarball.
9499
9500 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
9501
9502         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
9503         long int, not int, for nanosecond counts, so that people who are
9504         used to POSIX struct timespec won't be surprised.  Reported by Jim
9505         Meyering.
9506
9507 2005-12-28  Bruno Haible  <bruno@clisp.org>
9508
9509         * build-aux/config.rpath: Update from GNU gettext.
9510
9511 2005-12-16  Jim Meyering  <jim@meyering.net>
9512
9513         * modules/fprintftime: New module.
9514         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
9515
9516 2005-12-16  Jim Meyering  <jim@meyering.net>
9517
9518         * m4/fprintftime.m4: New file.
9519
9520 2005-12-16  Jim Meyering  <jim@meyering.net>
9521
9522         * lib/fprintftime.c, lib/fprintftime.h: New files.
9523
9524 2005-12-15  Simon Josefsson  <jas@extundo.com>
9525
9526         * modules/socklen (configure.ac): Fix M4 macro name, to align with
9527         new m4/socklen.m4.
9528
9529 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
9530
9531         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
9532         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
9533
9534 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
9535
9536         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
9537         * lib/argp-help.c (fill_in_uparams): Check if the constructed
9538         struct uparams is valid. Fall back to the default values if it is
9539         not.
9540
9541 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
9542
9543         * modules/argp (Files): Add argp-pin.c
9544         (Depends-on): dirname
9545         (lib_SOURCES): Add argp-pin.c
9546
9547 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
9548
9549         * m4/argp.m4:  Check if program_invocation_name and
9550         program_invocation_short_name are declared and define appropriate
9551         macros if they are not.
9552
9553 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
9554
9555         * lib/argp-help.c (__argp_base_name): New function
9556         (__argp_short_program_name): Rewrite using __argp_base_name
9557         * lib/argp-namefrob.h: Define program_invocation_name and
9558         program_invocation_short_name if requested
9559         (__argp_base_name): Add prototype
9560         * lib/argp-parse.c (argp_def): Use gettext wrappers
9561         (argp_default_parser): Use __argp_base_name
9562         * lib/argp-pin.c: New file. Defines program_invocation_name and
9563         program_invocation_short_name on systems that lack them.
9564
9565 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
9566
9567         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
9568         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
9569         porting problem reported by Georg Schwarz in
9570         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
9571
9572 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
9573
9574         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
9575         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
9576         porting problem reported by Georg Schwarz in
9577         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
9578
9579 2005-12-05  Bruno Haible  <bruno@clisp.org>
9580
9581         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
9582         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
9583         Reported by Mark Junker <mjscod@gmx.de>.
9584
9585 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
9586
9587         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
9588         Use implementation from Albert Chin, with some
9589         comments/corrections by Stepan Kasal and myself.
9590
9591 2005-12-02  Bruno Haible  <bruno@clisp.org>
9592
9593         * gnulib-tool (func_import): Accept GPLed build tool modules when
9594         --lgpl is given.
9595         * modules/csharpcomp-script: New file.
9596         * modules/csharpcomp: Depend on it.
9597         * modules/javacomp-script: New file.
9598         * modules/javacomp: Depend on it.
9599         Suggested by Simon Josefsson.
9600
9601 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
9602
9603         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
9604         statement, to work around an HP-UX 10.20 compiler bug reported by
9605         Peter O'Gorman.
9606
9607 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
9608
9609         * modules/savedir (Depends-on): Add openat.
9610
9611 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
9612
9613         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
9614         (uintmax_t) [defined uintmax_t]: Do not declare.
9615         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
9616         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
9617         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
9618         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
9619         sake of portability to weird hosts that C allows (though we don't
9620         know of any practical examples).
9621
9622         * lib/savedir.h (fdsavedir): New decl.
9623         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
9624         contains most of the former guts of savedir.
9625         (savedir): Use savedirstream.
9626         Include "openat.h".
9627
9628 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
9629
9630         * modules/obstack (Files): Add m4/ulonglong.m4.
9631         Problem reported by Davide Angelocola.
9632
9633 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
9634
9635         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
9636         coreutils no longer futzes with rounding modes.
9637
9638 2005-11-14  Jim Meyering  <jim@meyering.net>
9639
9640         * lib/mkstemp-safer.c: Include <config.h>, required for possible
9641         replacement of mkstemp.
9642
9643 2005-11-10  Simon Josefsson  <jas@extundo.com>
9644
9645         * lib/readline.c: Remove EOL.
9646
9647 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
9648
9649         * modules/gethrxtime (Depends-on): Add gettime.
9650
9651 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
9652
9653         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
9654         or gettimeofday; no longer needed.
9655
9656 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
9657
9658         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
9659         time business.
9660         (gethrxtime) [! (HAVE_NANOUPTIME
9661         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
9662         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
9663         our own approximation.
9664
9665 2005-11-08  Eric Blake  <ebb9@byu.net>
9666
9667         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
9668
9669 2005-11-08  Eric Blake  <ebb9@byu.net>
9670
9671         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
9672
9673 2005-11-04  Bruno Haible  <bruno@clisp.org>
9674
9675         * gnulib-tool: Implement --update mode.
9676
9677 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
9678
9679         Fix porting problem reported by Theodoros V. Kalamatianos.
9680         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
9681         Don't assume that futimes failing means we must fail.
9682
9683 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
9684
9685         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
9686         variables to suggest the intended function of the PATH_MAX check.
9687
9688 2005-10-30  Kean Johnston  <jkj@sco.com>
9689
9690         Trivial changes to support SCO systems.
9691         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
9692         as PATH_MAX.
9693         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
9694         where __ptr is null when no I/O is pending.
9695
9696 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
9697
9698         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
9699         leave errno alone.  Problem reported by Dmitry V. Levin.
9700
9701 2005-10-28  Simon Josefsson  <jas@extundo.com>
9702
9703         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
9704         Test more.
9705
9706         * tests/test-gc-md2.c, tests/test-md2.c: New files.
9707
9708         * modules/md2, modules/md2-tests: New files.
9709
9710 2005-10-28  Simon Josefsson  <jas@extundo.com>
9711
9712         * m4/inet_ntop.m4: More tests.
9713
9714         * m4/gc-md2.m4, md2.m4: New file.
9715
9716 2005-10-28  Simon Josefsson  <jas@extundo.com>
9717
9718         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
9719         "restrict" keywords, as per POSIX.  Protect the function
9720         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
9721         Don't use K&R prototypes.  Check the sprintf return values.
9722         Re-define EAFNOSUPPORT if not present.  Indent.
9723
9724         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
9725         suggested by Bruno Haible <bruno@clisp.org>.
9726
9727         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
9728
9729         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
9730
9731         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
9732         libgcrypt).
9733
9734         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
9735
9736         * lib/md2.h, lib/md2.c: New files.
9737
9738 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
9739
9740         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
9741         errno alone.  Problem reported by Frederic Jolliton.
9742
9743 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
9744
9745         * modules/verify (License): Change from GPL to LGPL.  This is a
9746         tiny module and there are apparently near-equivalents that are
9747         under the BSD license.
9748
9749 2005-10-24  Simon Josefsson  <jas@extundo.com>
9750
9751         * modules/sha1: Relicense to LGPL.
9752
9753 2005-10-24  Simon Josefsson  <jas@extundo.com>
9754
9755         * lib/md4.h: Shrink buffer size, now that we changed the type.
9756
9757 2005-10-23  Simon Josefsson  <jas@extundo.com>
9758
9759         * gnulib-tool (func_import): Fix --tests-base.
9760
9761 2005-10-22  Simon Josefsson  <jas@extundo.com>
9762
9763         * modules/arcfour (Depends-on): Need stdint.
9764
9765 2005-10-22  Simon Josefsson  <jas@extundo.com>
9766
9767         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
9768         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
9769
9770 2005-10-22  Simon Josefsson  <jas@extundo.com>
9771
9772         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
9773         suggested by Bruno Haible <bruno@clisp.org>.
9774
9775 2005-10-22  Simon Josefsson  <jas@extundo.com>
9776
9777         * lib/crc.h: Include stddef.h, for size_t.
9778
9779 2005-10-22  Simon Josefsson  <jas@extundo.com>
9780
9781         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
9782         arcfour_context struct (simplify test vector testing in GNU
9783         Shishi).
9784
9785 2005-10-21  Simon Josefsson  <jas@extundo.com>
9786
9787         * modules/des, modules/des-tests: New files.
9788
9789         * modules/gc-des, modules/gc-des-tests: New files.
9790
9791         * tests/test-des.c, tests/test-gc-des.c: New file.
9792
9793 2005-10-21  Simon Josefsson  <jas@extundo.com>
9794
9795         * modules/arctwo, modules/arctwo-tests: New files.
9796
9797         * tests/test-arctwo.c: New file.
9798
9799         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
9800
9801         * tests/test-gc-arctwo.c: New file.
9802
9803 2005-10-21  Simon Josefsson  <jas@extundo.com>
9804
9805         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
9806         Bruno Haible <bruno@clisp.org>.
9807
9808         * m4/gc-des.m4: New file.
9809
9810 2005-10-21  Simon Josefsson  <jas@extundo.com>
9811
9812         * m4/arctwo.m4: New file.
9813
9814         * m4/gc-arctwo.m4: New file.
9815
9816 2005-10-21  Simon Josefsson  <jas@extundo.com>
9817
9818         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
9819         block.
9820
9821 2005-10-21  Simon Josefsson  <jas@extundo.com>
9822
9823         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
9824         <bruno@clisp.org>.
9825
9826         * lib/hmac-sha1.c (hmac_sha1): Likewise.
9827
9828         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
9829         Bruno Haible <bruno@clisp.org>.
9830
9831         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
9832         <bruno@clisp.org>.
9833
9834 2005-10-21  Simon Josefsson  <jas@extundo.com>
9835
9836         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
9837
9838 2005-10-21  Simon Josefsson  <jas@extundo.com>
9839
9840         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
9841
9842 2005-10-21  Simon Josefsson  <jas@extundo.com>
9843
9844         * lib/des.h, lib/des.c: New files.
9845
9846         * lib/gc-gnulib.c: Support DES.c
9847
9848 2005-10-21  Simon Josefsson  <jas@extundo.com>
9849
9850         * lib/arctwo.h, lib/arctwo.c: New files.
9851
9852         * lib/gc-gnulib.c: Support ARCTWO.
9853
9854 2005-10-21  Simon Josefsson  <jas@extundo.com>
9855
9856         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
9857         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9858
9859 2005-10-21  Simon Josefsson  <jas@extundo.com>
9860
9861         * gnulib-tool (func_import, func_create_testdir): Define automake
9862         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
9863         Makefile.am snippet),
9864         suggested by Bruno Haible <bruno@clisp.org>.
9865
9866         * modules/gc (Makefile.am): Use it.
9867
9868 2005-10-21  Bruno Haible  <bruno@clisp.org>
9869
9870         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
9871         patch.
9872
9873 2005-10-19  Simon Josefsson  <jas@extundo.com>
9874
9875         * tests/test-gc-rijndael.c: New file.
9876
9877         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
9878
9879 2005-10-19  Simon Josefsson  <jas@extundo.com>
9880
9881         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
9882         interface too.
9883
9884 2005-10-19  Simon Josefsson  <jas@extundo.com>
9885
9886         * tests/test-gc-arcfour.c: New file.
9887
9888         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
9889
9890 2005-10-19  Simon Josefsson  <jas@extundo.com>
9891
9892         * modules/gc-md4, modules/gc-md4-tests: New file.
9893
9894         * tests/test-gc-md4.c: New file.
9895
9896 2005-10-19  Simon Josefsson  <jas@extundo.com>
9897
9898         * m4/gc-md4.m4: New file.
9899
9900 2005-10-19  Simon Josefsson  <jas@extundo.com>
9901
9902         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
9903         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
9904         <kasal@ucw.cz>.
9905
9906 2005-10-19  Simon Josefsson  <jas@extundo.com>
9907
9908         * m4/gc-arcfour.m4: New file.
9909
9910         * m4/gc-rijndael.m4: New file.
9911
9912 2005-10-19  Simon Josefsson  <jas@extundo.com>
9913
9914         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
9915
9916 2005-10-19  Simon Josefsson  <jas@extundo.com>
9917
9918         * lib/gc-gnulib.c: Support ARCFOUR.
9919
9920 2005-10-19  Simon Josefsson  <jas@extundo.com>
9921
9922         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
9923         support.
9924
9925         * lib/gc.h: Add ECB enum type.
9926
9927         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
9928
9929 2005-10-18  Simon Josefsson  <jas@extundo.com>
9930
9931         * tests/test-md5.c: New file.
9932
9933         * modules/md5-tests: New file.
9934
9935 2005-10-18  Simon Josefsson  <jas@extundo.com>
9936
9937         * tests/test-md4.c: New file.
9938
9939         * modules/md4, modules/md4-tests: New files.
9940
9941 2005-10-18  Simon Josefsson  <jas@extundo.com>
9942
9943         * m4/md4.m4: New file.
9944
9945 2005-10-18  Simon Josefsson  <jas@extundo.com>
9946
9947         * lib/md4.h, lib/md4.c: New files, based on md5.?.
9948
9949 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
9950
9951         * gnulib-tool (func_create_testdir): Omit the second check whether
9952         BUILT_SOURCES in nonempty.
9953
9954 2005-10-17  Simon Josefsson  <jas@extundo.com>
9955
9956         * tests/test-rijndael.c: New file.
9957
9958 2005-10-17  Simon Josefsson  <jas@extundo.com>
9959
9960         * modules/sha1: Depend on stdint instead of md5.
9961
9962         * modules/md5: Depend on stdint, remove uint32_t.
9963
9964 2005-10-17  Simon Josefsson  <jas@extundo.com>
9965
9966         * modules/gc-sha1-tests: New file.
9967
9968         * tests/test-gc-sha1.c: New file.
9969
9970 2005-10-17  Simon Josefsson  <jas@extundo.com>
9971
9972         * m4/md5.m4: Remove call to uint32_t.m4.
9973
9974 2005-10-17  Simon Josefsson  <jas@extundo.com>
9975
9976         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
9977
9978         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
9979         md5.h.
9980
9981         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
9982
9983         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
9984
9985 2005-10-17  Simon Josefsson  <jas@extundo.com>
9986
9987         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
9988
9989 2005-10-17  Simon Josefsson  <jas@extundo.com>
9990
9991         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
9992
9993 2005-10-17  Simon Josefsson  <jas@extundo.com>
9994
9995         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
9996
9997         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
9998
9999 2005-10-17  Bruno Haible  <bruno@clisp.org>
10000
10001         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
10002         that it can also be used in a test.
10003
10004 2005-10-16  Bruno Haible  <bruno@clisp.org>
10005
10006         * gnulib-tool (func_emit_tests_Makefile_am): Also define
10007         TESTS_ENVIRONMENT, so that individual tests can augment it.
10008
10009         * gnulib-tool (func_create_testdir): Use an intermediate target for
10010         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
10011         macros, like $(ALLOCA_H), which cannot be passed through the command
10012         line.
10013
10014 2005-10-15  Simon Josefsson  <jas@extundo.com>
10015
10016         * modules/rijndael-tests: New file.
10017
10018         * modules/rijndael: New file.
10019
10020 2005-10-15  Simon Josefsson  <jas@extundo.com>
10021
10022         * m4/rijndael.m4: New file.
10023
10024 2005-10-15  Simon Josefsson  <jas@extundo.com>
10025
10026         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
10027
10028         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
10029
10030 2005-10-14  Simon Josefsson  <jas@extundo.com>
10031
10032         * tests/test-arcfour.c: New file.
10033
10034         * modules/arcfour, modules/arcfour-tests: New files.
10035
10036 2005-10-14  Simon Josefsson  <jas@extundo.com>
10037
10038         * m4/arcfour.m4: New file.
10039
10040 2005-10-14  Simon Josefsson  <jas@extundo.com>
10041
10042         * lib/arcfour.h, lib/arcfour.c: New files.
10043
10044 2005-10-14  Roland McGrath  <roland@redhat.com>
10045
10046         Import from libc.  [BZ #1331]
10047         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
10048         macro argument.
10049         Reported by Matej Vela <vela@debian.org>.
10050
10051 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
10052
10053         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
10054         include <wchar.h>; no longer needed.
10055
10056 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
10057
10058         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
10059
10060 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
10061         and  Ulrich Drepper  <drepper@redhat.com>
10062
10063         Import from libc.
10064         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
10065         instead of inline stream orientation test and two separate
10066         function calls.  Pay no attention to USE_IN_LIBIO.
10067
10068 2005-10-13  Simon Josefsson  <jas@extundo.com>
10069
10070         * modules/gc-hmac-md5-tests: New file.
10071
10072         * tests/test-gc-hmac-sha1.c: New file.
10073
10074         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
10075
10076         * modules/gc-hmac-md5-tests: New file.
10077
10078         * tests/test-gc-md5.c: New file.
10079
10080         * modules/gc-md5-tests: New file.
10081
10082 2005-10-13  Simon Josefsson  <jas@extundo.com>
10083
10084         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
10085         Move memory allocation outside of loop.
10086
10087 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
10088
10089         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
10090         intermediate directory is in a read-only file system.  Problem
10091         reported by Eric Blake.
10092
10093 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
10094
10095         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
10096
10097 2005-10-12  Simon Josefsson  <jas@extundo.com>
10098
10099         * tests/test-hmac-sha1.c: New file.
10100
10101         * modules/hmac-sha1-tests: New file.
10102
10103         * modules/hmac-sha1: New file.
10104
10105 2005-10-12  Simon Josefsson  <jas@extundo.com>
10106
10107         * modules/gc-sha1: New file.
10108
10109 2005-10-12  Simon Josefsson  <jas@extundo.com>
10110
10111         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
10112
10113         * tests/test-gc-pbkdf2-sha1.c: New file.
10114
10115 2005-10-12  Simon Josefsson  <jas@extundo.com>
10116
10117         * modules/gc-md5, modules/gc-hmac-md5: New files.
10118
10119         * modules/gc (Files): Remove md5, memxor and hmac files.
10120
10121 2005-10-12  Simon Josefsson  <jas@extundo.com>
10122
10123         * m4/gc-pbkdf2-sha1.m4: New file.
10124
10125         * m4/gc-hmac-sha1.m4: New file.
10126
10127         * m4/gc-sha1: New file.
10128
10129         * m4/hmac-sha1.m4: New file.
10130
10131 2005-10-12  Simon Josefsson  <jas@extundo.com>
10132
10133         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
10134
10135         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
10136
10137 2005-10-12  Simon Josefsson  <jas@extundo.com>
10138
10139         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
10140         suggested by Bruno Haible <bruno@clisp.org>.
10141
10142 2005-10-12  Simon Josefsson  <jas@extundo.com>
10143
10144         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
10145
10146 2005-10-12  Simon Josefsson  <jas@extundo.com>
10147
10148         * lib/gc-pbkdf2-sha1.c: New file.
10149
10150         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
10151
10152 2005-10-12  Simon Josefsson  <jas@extundo.com>
10153
10154         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
10155
10156         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
10157
10158 2005-10-12  Simon Josefsson  <jas@extundo.com>
10159
10160         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
10161         GC_USE_HMAC_MD5, respectively.
10162
10163         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
10164         (gc_md5): Fix typo.
10165
10166         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
10167
10168         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
10169
10170         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
10171
10172 2005-10-12  Bruno Haible  <bruno@clisp.org>
10173
10174         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
10175         Reported by Stepan Kasal <kasal@ucw.cz>.
10176
10177 2005-10-11  Simon Josefsson  <jas@extundo.com>
10178
10179         * tests/test-crc.c: New file.
10180
10181         * modules/crc, modules/crc-tests: New files.
10182
10183 2005-10-11  Simon Josefsson  <jas@extundo.com>
10184
10185         * m4/crc.m4: New file.
10186
10187 2005-10-11  Simon Josefsson  <jas@extundo.com>
10188
10189         * lib/gc.h: Add gc_hash and gc_hash_buffer.
10190
10191         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
10192
10193         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
10194
10195 2005-10-11  Simon Josefsson  <jas@extundo.com>
10196
10197         * lib/crc.h, lib/crc.c: New files.
10198
10199         * lib/gc.h (gc_hash_buffer): Add doc.
10200
10201 2005-10-11  Bruno Haible  <bruno@clisp.org>
10202
10203         * modules/c-strcasestr: New file.
10204         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
10205
10206 2005-10-11  Bruno Haible  <bruno@clisp.org>
10207
10208         * modules/c-strcase: New file.
10209         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
10210
10211 2005-10-11  Bruno Haible  <bruno@clisp.org>
10212
10213         * lib/strcasecmp.c: Include limits.h.
10214         (strcasecmp): Avoid integer overflow on exotic platforms.
10215         * lib/strncasecmp.c: Include limits.h.
10216         (strncasecmp): Avoid integer overflow on exotic platforms.
10217         Reported by Paul Eggert.
10218
10219 2005-10-11  Bruno Haible  <bruno@clisp.org>
10220
10221         * lib/c-strcasestr.h: New file, from GNU gettext.
10222         * lib/c-strcasestr.c: New file, from GNU gettext.
10223
10224 2005-10-11  Bruno Haible  <bruno@clisp.org>
10225
10226         * lib/c-strcase.h: New file, from GNU gettext.
10227         * lib/c-strcasecmp.c: New file, from GNU gettext.
10228         * lib/c-strncasecmp.c: New file, from GNU gettext.
10229
10230 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
10231
10232         * modules/mempcpy (License): GPL -> LGPL.
10233         * modules/strchrnul (License): Likewise.
10234         * modules/sysexits (License): Likewise.
10235
10236 2005-10-08  Simon Josefsson  <jas@extundo.com>
10237
10238         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
10239
10240 2005-10-07  Simon Josefsson  <jas@extundo.com>
10241
10242         * m4/memxor.m4: Remove gl_C_RESTRICT call.
10243
10244 2005-10-06  Simon Josefsson  <jas@extundo.com>
10245
10246         * tests/test-hmac-md5.c: New file.
10247
10248         * modules/hmac-md5-tests: New file.
10249
10250         * modules/hmac-md5: New file.
10251
10252 2005-10-06  Simon Josefsson  <jas@extundo.com>
10253
10254         * m4/hmac-md5.m4: New file.
10255
10256         * m4/memxor.m4: Require gl_C_RESTRICT.
10257
10258 2005-10-06  Simon Josefsson  <jas@extundo.com>
10259
10260         * lib/memxor.c (memxor): Avoid casts and warnings.
10261
10262 2005-10-06  Simon Josefsson  <jas@extundo.com>
10263
10264         * lib/hmac-md5.c: New file.
10265
10266         * lib/hmac.h: New file.
10267
10268 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
10269
10270         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
10271         promotes to int, not unsigned int, to catch the AIX 5.3
10272         compiler bug.
10273
10274 2005-10-05  Simon Josefsson  <jas@extundo.com>
10275
10276         * modules/memxor: New file.
10277
10278         * modules/iconv (Files): Move config.rpath to havelib, it is used
10279         there.
10280
10281         * modules/havelib (Files): Add config.rpath.
10282
10283 2005-10-05  Simon Josefsson  <jas@extundo.com>
10284
10285         * m4/memxor.m4: New file.
10286
10287 2005-10-05  Simon Josefsson  <jas@extundo.com>
10288
10289         * lib/memxor.c (memxor): Fix compiler error.
10290
10291         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
10292         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
10293
10294         * lib/memxor.h, lib/memxor.c: New files.
10295
10296         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
10297         we assume all systems have it, suggested by Jim Meyering
10298         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
10299         any systems lack sys/socket.h; mingw32 is known to lack it, but we
10300         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
10301         same reasons.
10302
10303 2005-10-05  Simon Josefsson  <jas@extundo.com>
10304
10305         * config/srclist.txt: Add glibc bug 1423 for md5.h.
10306
10307 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
10308
10309         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
10310         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
10311         needed, since the source code now assumes these .h files.
10312
10313 2005-10-05  Derek Price  <derek@ximbiot.com>
10314
10315         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
10316
10317 2005-10-05  Bruno Haible  <bruno@clisp.org>
10318
10319         * modules/stdint (License): Change to LGPL.
10320
10321 2005-10-04  Simon Josefsson  <jas@extundo.com>
10322
10323         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
10324         D. Baushke" <mdb@gnu.org>.
10325
10326 2005-10-04  Bruno Haible  <bruno@clisp.org>
10327
10328         * lib/verify.h (verify_true): Provide alternative definition for C++.
10329
10330 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
10331
10332         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
10333         (SSIZE_MAX): New macro, if not already defined.
10334         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
10335         than 2 GiB.
10336
10337 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
10338
10339         Sync from coreutils.
10340         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
10341         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
10342         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
10343         ULLONG_MAX doesn't work with 2.7.2.1.
10344
10345 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
10346
10347         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
10348         From Ben Pfaff.
10349
10350         * modules/exclude (Depends-on): Depend on verify.
10351         * modules/strtoimax (Depends-on): Likewise.
10352         * modules/utimecmp (Depends-on): Likewise.
10353
10354 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
10355
10356         * lib/exclude.c: Include verify.h.
10357         (verify): Remove.  All callers changed to use verify.h's version.
10358         * lib/strtoimax.c: Likewise.
10359         * lib/utimecmp.c: Likewis.e
10360
10361         Sync from coreutils.
10362         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
10363         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
10364         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
10365         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
10366         bother returning ENOSYS if settimeofday or stime fails; just let
10367         them return whatever errno they want to return.
10368         * lib/utimens.c: Include unistd.h, for dup2.
10369         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
10370         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
10371
10372 2005-10-02  Jim Meyering  <jim@meyering.net>
10373
10374         Sync from coreutils.
10375         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
10376         from glibc-2.2.5 that fails for read-only files.
10377
10378 2005-10-02  Jim Meyering  <jim@meyering.net>
10379
10380         Sync from coreutils.
10381         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
10382         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
10383         `#if HAVE_CONFIG_H'.
10384         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
10385         Remove AT_FDCWD test.
10386         Do not consume the fd unless successful.
10387         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
10388         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
10389         block, so that we don't even try to compile it if settimeofday is
10390         available.  This works around a compilation failure on OSF1 V5.1,
10391         due to stime requiring a `long int*' while tv_sec is `int'.
10392
10393 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
10394
10395         Sync from coreutils.
10396         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
10397         against `yes', rather than just testing for nonempty.
10398
10399 2005-10-01  Simon Josefsson  <jas@extundo.com>
10400
10401         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
10402         and Darwin.
10403
10404         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
10405         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
10406         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
10407         freeaddrinfo and gai_strerror are declared by the POSIX headers.
10408         Check if struct addrinfo is declared.
10409
10410 2005-10-01  Simon Josefsson  <jas@extundo.com>
10411
10412         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
10413         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
10414         AI_* and EAI_* definitions.  Protect function declarations.
10415
10416 2005-10-01  Jim Meyering  <jim@meyering.net>
10417
10418         Sync from coreutils.
10419
10420         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
10421         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
10422         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
10423         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
10424         in the inet and nsl libraries.  Required on Solaris 5.7.
10425
10426 2005-10-01  Jim Meyering  <jim@meyering.net>
10427
10428         Sync from coreutils.
10429         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
10430         in the inet and nsl libraries.  Required on Solaris 5.7.
10431
10432 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
10433
10434         * lib/getdelim.c (getdelim): Remove unused variables.
10435
10436 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
10437
10438         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
10439         so that the code works even with ancient cpp.  Portability problem
10440         with GCC 2.7.2.1 reported by Thomas M.Ott.
10441
10442 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
10443
10444         * modules/regex (Depends-on): Add strcase.
10445
10446         * modules/gethostname (Licence): Change from GPL to LGPL, since
10447         gethostname.c is a trivial implementation of a standard library
10448         function.
10449         * modules/poll (License): Change from GPL to LGPL, since it's
10450         derived from LGPL code.
10451
10452 2005-09-27  Jim Meyering  <jim@meyering.net>
10453
10454         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
10455         HAVE_CONFIG_H.
10456
10457         * lib/intprops.h (signed_type_or_expr__): Define.
10458         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
10459         for unsigned types.
10460
10461 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
10462
10463         * lib/verify.h (verify_expr): Remove, replacing with:
10464         (verify_true): New macro that returns true instead of void.
10465         (verify_type__): Remove.
10466         (verify): Use verify_true rather than verify_type__.
10467
10468 2005-09-26  Bruno Haible  <bruno@clisp.org>
10469
10470         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
10471         is necessary.
10472         (lib_SOURCES): Remove mbchar.c.
10473         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
10474         (Files): Add m4/mbrtowc.m4.
10475         * modules/mbiter: Likewise.
10476         * modules/mbuiter: Likewise.
10477
10478 2005-09-26  Bruno Haible  <bruno@clisp.org>
10479
10480         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
10481         compile mbchar.c if they are not both present.
10482         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
10483         * m4/mbiter.m4 (gl_MBITER): Likewise.
10484         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
10485         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
10486         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
10487
10488 2005-09-25  Jim Meyering  <jim@meyering.net>
10489
10490         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
10491         also uses socklen_t.
10492
10493 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
10494
10495         * lib/utimens.c (ENOSYS): Define if not already defined.
10496         (futimens): Support having a null PATH if the file descriptor
10497         is nonnegative.
10498
10499         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
10500         Remove.
10501         (__attribute): Define to empty unless GCC 3.1 or later.
10502         This works around a core dump on OpenBSD 3.4, which has GCC
10503         2.95.3, which dumps core when given __attribute__(()).  It also
10504         simplifies other tests, since we really don't want to bother with
10505         worrying about which ancient version of GCC supported what.
10506         Original problem reported by Yoann Vandoorselaere, with part of
10507         the fix suggested by Derek Price.
10508
10509 2005-09-24  Jim Meyering  <jim@meyering.net>
10510
10511         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
10512         so we can once again use a positive bitfield width of 1 -- now we
10513         don't have to explain why we were using a bitfield width of 2.
10514
10515 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
10516
10517         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
10518         and similarly for the other external symbols.  Problem reported
10519         by James Gallager.
10520
10521         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
10522         bug reported by Jim Meyering.
10523
10524         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
10525         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
10526         not needed, since socklen is a prerequisite module.
10527
10528 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
10529
10530         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
10531         Problem reported by Eric Blake.
10532         (getaddrinfo): Initialize se so that it's not garbage.
10533         Redo internal storage allocation so that it doesn't make unportable
10534         assumptions about alignment.
10535         Fix a memory leak.
10536
10537         * lib/utimens.c (futimens): Use futimesat if available.
10538         Prefer it to futimes since it doesn't have the futimes bug.
10539
10540         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
10541         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
10542         Instead, declare a function that returns a pointer to an array,
10543         and use verify_type__ to declare the size of the array.
10544         Problem and germ of a solution reported by Bruno Haible.
10545         (verify_type__): Use 2, not 1, for bitfield size, to avoid
10546         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
10547
10548 2005-09-23  Jim Meyering  <jim@meyering.net>
10549
10550         Sync from coreutils.
10551         Correct build failure (socklen_t not defined) on at least
10552         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
10553         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
10554
10555 2005-09-23  Jim Meyering  <jim@meyering.net>
10556
10557         * modules/getaddrinfo (Depends-on): Add socklen.
10558
10559 2005-09-23  Bruno Haible  <bruno@clisp.org>
10560
10561         * tests/test-verify.c: New file.
10562
10563 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
10564
10565         Sync from coreutils.
10566
10567         * modules/argmatch (Depends-on): Add verify.
10568         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
10569         unistd-safer.
10570         * modules/save-cwd (Depends-on): Likewise.
10571
10572         * modules/openat (Files): Add lib/openat-die.c.
10573         (Depends-on): Remove error, exitfail.
10574         Add dirname.
10575
10576         * modules/verify: New file.
10577         * MODULES.html.sh (Diagnostics <assert.h>): New section,
10578         with "verify" module.
10579
10580 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
10581
10582         Sync from coreutils.
10583
10584         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
10585         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
10586         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
10587         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
10588         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
10589         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
10590         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
10591         Don't bother checking for string.h, stdlib.h, unistd.h.
10592         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
10593         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
10594         module's job.
10595         * m4/jm-macros.m4 (gl_MACROS): Likewise.
10596         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
10597
10598         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
10599         (gl_GETDATE): Use it.
10600
10601         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
10602
10603 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
10604
10605         Sync from coreutils.
10606
10607         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
10608         stat-time.h.
10609         * lib/argmatch.h: Include verify.h
10610         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
10611         (ARGMATCH_ASSERT): Remove; unused.
10612         * lib/canonicalize.c: Assume STDC_HEADERS.
10613         * lib/exclude.c: Include "strcase.h".
10614         * lib/regex_internal.h [!defined _LIBC]: Likewise.
10615         * lib/getusershell.c: Include stdio--.h rather than stdio.h
10616         and stdio-safer.h.
10617         (getusershell): Call fopen, not fopen_safer.
10618         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
10619         Do not include unistd-safer.h.
10620         (save_cwd): Don't call fd_safer; no longer needed
10621         now that we include fcntl--.h.
10622
10623         * lib/getdate.y (relative_time): New type.
10624         (RELATIVE_TIME_0): New constant.
10625         (parser_control): Use relative_time instead of doing it ourselves.
10626         (%union): Add new relative_time rel member.
10627         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
10628         Now typeless.
10629         (relunit, relunit_snumber): Now of type rel.
10630         (zone, rel, relunit, get_date): Adjust to above changes.
10631
10632         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
10633         Do not include unistd-safer.h.
10634         (getloadavg): Don't call fd_safer; no longer needed
10635         now that we include fcntl--.h.
10636
10637         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
10638         (make_dir_parents): Treat ENOSYS like EEXIST.
10639
10640         Improve quality of diagnostics on restore_cwd failure.
10641         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
10642         (make_dir_parents): Last arg is now int * (for errno), not bool *.
10643         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
10644         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
10645         each time through the loop.  Do not diagnose restore_cwd failure;
10646         that is the caller's job (and perhaps the caller does not care).
10647
10648         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
10649         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
10650         If the file already exists but is not a directory, don't bother
10651         to try to make its parents.
10652         Close potential file descriptor leak if we can't chdir("/") (!).
10653         Don't always return true if chdir($PWD) fails; return true only
10654         if the requested action was done successfully (except for the
10655         chdir($PWD)).
10656         Don't log final directory unless we actually made it.
10657         Refactor to avoid duplicate code to fix up permissions.
10658         Don't attempt to fix up parent permissions if chdir($PWD) fails.
10659
10660         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
10661         to make it a bit faster and (I hope) clearer.
10662         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
10663         Fix bug in formats like %2N.
10664
10665         * lib/verify.h: New file.
10666
10667 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
10668
10669         Sync from coreutils.
10670         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
10671
10672 2005-09-22  Jim Meyering  <jim@meyering.net>
10673
10674         Sync from coreutils.
10675
10676         * m4/lstat.m4 (gl_FUNC_LSTAT):
10677         Use AC_LIBSOURCES to require lstat.c and lstat.h.
10678         Remove obsolete comment.
10679         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
10680         * m4/xstrtod.m4: Likewise.
10681
10682         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
10683
10684 2005-09-22  Jim Meyering  <jim@meyering.net>
10685
10686         Sync from coreutils.
10687
10688         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
10689
10690         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
10691         the .tm_year member, since otherwise gcc-4.0 would now warn about
10692         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
10693
10694         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
10695         order to avoid an unsuppressible warning from gcc on 64-bit systems.
10696
10697         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
10698         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
10699         when run in a time zone for which daylight savings time is in effect
10700         for the starting date.
10701
10702         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
10703         stop us from restricting permissions of just-created absolute-named
10704         directories.
10705         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
10706         to restore initial working directory.
10707         * lib/mkdir-p.c (make_dir_parents): New parameter:
10708         different_working_dir, to tell caller if/when we change the working
10709         directory and are unable to return to the initial one.
10710         * lib/mkdir-p.h (make_dir_parents): Update prototype.
10711         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
10712         `return false'.  This fixes a bug introduced on 2004-07-30.
10713
10714         * lib/openat.c (fdopendir): Be sure to close the supplied
10715         file descriptor before returning.  This makes our replacement
10716         implementation a little closer to Solaris's, where fdopendir
10717         ties the file descriptor to the returned DIR* pointer.
10718         * lib/openat.c (unlinkat): New function.
10719         * lib/openat.h (unlinkat): Add prototype.
10720         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
10721         (openat_restore_fail): Rename from openat_restore_die.
10722         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
10723
10724         Provide an alternative to exiting immediately upon save_cwd or
10725         restore_cwd failure.  Now, an application can arrange e.g.,
10726         to perform a longjump in that case.
10727         * lib/openat.c: Include dirname.h.
10728         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
10729         (rpl_openat, fdopendir, fstatat): Call openat_save_die
10730         and openat_restore_die rather than calling error directly.
10731         Don't include "error.h" or "exitfail.h"; they're no longer needed.
10732
10733         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
10734         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
10735         define.
10736
10737         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
10738         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
10739                             int utc, int nanoseconds);
10740         Background:
10741         date should not have to allocate a megabyte of virtual memory to
10742         handle a format argument like +%1048575T.  When implemented with
10743         strftime, it must allocate such a buffer, use strftime to fill it
10744         in, print it, then free it.
10745         With fprintftime, it simply prints everything and exits.
10746         With no need for memory allocation, that's one fewer way to fail.
10747         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
10748         optional field width, not before, so we accept %9:z, not %:9z.
10749         (my_strftime): Be sure to use L_('x') for literals.
10750
10751         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
10752         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
10753         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
10754         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
10755         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
10756         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
10757         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
10758         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
10759         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
10760         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
10761         * lib/xgethostname.c, lib/xreadlink.c:
10762         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
10763
10764         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
10765         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
10766         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
10767         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
10768         and don't include <sys/file.h>).
10769
10770 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
10771
10772         Sync from coreutils.
10773
10774         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
10775         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
10776         [!LDAV_DONE]: Avoid unused variable warning.
10777
10778 2005-09-21  Bruno Haible  <bruno@clisp.org>
10779
10780         * lib/unicodeio.h (unicode_to_mb): New declaration.
10781
10782 2005-09-20  Derek Price  <derek@ximbiot.com>
10783
10784         * lib/getaddrinfo.c: Don't include <netdb.h> included from
10785         getaddrinfo.h.
10786
10787 2005-09-20  Bruno Haible  <bruno@clisp.org>
10788
10789         * gnulib-tool: Remove trailing slashes from the values specified for
10790         --source-base, --m4-base, --tests-base, --aux-dir.
10791         Suggested by Simon Josefsson <jas@extundo.com>.
10792
10793 2005-09-20  Bruno Haible  <bruno@clisp.org>
10794
10795         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
10796         func_modules_to_filelist, func_import, func_create_testdir): Make all
10797         sorting results locale-independent, so that gnulib-cache.m4 doesn't
10798         change when gnulib-tool is invoked in a different locale.
10799
10800 2005-09-19  Simon Josefsson  <jas@extundo.com>
10801
10802         * m4/socklen.m4: Fix typo.
10803
10804 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10805
10806         Use a consistent style for including <config.h>.
10807         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
10808         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
10809         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
10810         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
10811         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
10812         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
10813         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
10814         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
10815         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
10816         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
10817         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
10818         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
10819         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
10820         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
10821         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
10822         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
10823         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
10824         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
10825         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
10826         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
10827         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
10828         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
10829         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
10830         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
10831         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
10832         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
10833         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
10834         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
10835         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
10836         lib/xstrtoumax.c, lib/yesno.c:
10837         Standardize inclusion of config.h.
10838         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
10839         lib/inttostr.h:  Removed inclusion of config.h from header files.
10840         * lib/inttostr.c:  Adjusted in-tree users.
10841         * lib/timespec.h: Remove superfluous warning to include config.h.
10842         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
10843         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
10844         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
10845         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
10846         config.h with HAVE_CONFIG_H.
10847
10848 2005-09-19  Jim Meyering  <jim@meyering.net>
10849
10850         * modules/pathmax (License): Change to LGPL.
10851
10852 2005-09-19  Derek Price  <derek@ximbiot.com>
10853
10854         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
10855
10856 2005-09-19  Bruno Haible  <bruno@clisp.org>
10857
10858         * gnulib-tool (import): Provide default for --tests-base.
10859
10860 2005-09-19  Bruno Haible  <bruno@clisp.org>
10861
10862         * doc/quote.texi: New file, extracted from gnulib.texi.
10863         * doc/ctime.texi: New file, extracted from gnulib.texi.
10864         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
10865         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
10866         * doc/gnulib.texi: Include them.
10867
10868 2005-09-18  Bruno Haible  <bruno@clisp.org>
10869
10870         Portability fix.
10871         * gnulib-tool (func_readlink): New function.
10872         (func_ln_if_changed): Use it.
10873
10874 2005-09-18  Bruno Haible  <bruno@clisp.org>
10875
10876         * gnulib-tool: Support --with-tests also with --import.
10877         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
10878         (func_import): Use variables $testsbase and $inctests. Emit a
10879         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
10880         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
10881         SUBDIRS += $testsdir.
10882         (func_create_testdir): Update.
10883
10884 2005-09-18  Bruno Haible  <bruno@clisp.org>
10885
10886         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
10887         instead of $dry_run.
10888         (func_cp_if_changed, func_mv_if_changed): Remove functions.
10889         (func_ln_if_changed): Don't handle dry-run here.
10890         (func_import): In dry-run mode, detect more precisely which actions
10891         would be performed, and don't use "...ing" verbs.
10892
10893 2005-09-18  Bruno Haible  <bruno@clisp.org>
10894
10895         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
10896         (func_import): Use join on two temporary files instead of three nested
10897         loops, in order to determine which files are new or old.
10898
10899 2005-09-18  Bruno Haible  <bruno@clisp.org>
10900
10901         * gnulib-tool (func_import): Comment out code that spits out the
10902         new files with --dry-run.
10903
10904 2005-09-18  Bruno Haible  <bruno@clisp.org>
10905
10906         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
10907
10908 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
10909
10910         * lib/stat-time.h: New file.
10911         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
10912         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
10913         in a different way.
10914         (timespec_cmp): New function.
10915         * lib/utimecmp.c: Include stat-time.h.
10916         (SYSCALL_RESOLUTION): Depend on whether various struct stat
10917         members exist, not on the obsolescent ST_MTIM_NSEC.
10918         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
10919
10920 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
10921
10922         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
10923
10924 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
10925
10926         * MODULES.html.sh (File system functions): Add stat-time.
10927         * modules/stat-time: New file.
10928         * modules/timespec (Files): Remove m4/st_mtim.m4; this
10929         is now done in a different way, by the stat-time module.
10930         * modules/utimecmp (Depends-on): Add stat-time.
10931
10932 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
10933
10934         * m4/st_mtim.m4: Remove.  Superseded by...
10935         * m4/stat-time.m4: New file.
10936         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
10937         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
10938
10939 2005-09-15  Derek Price  <derek@ximbiot.com>
10940
10941         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
10942
10943 2005-09-15  Derek Price  <derek@ximbiot.com>
10944
10945         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
10946         * lib/regex_internal.c: Ditto, using this...
10947         (__GNUC_PREREQ): ...new macro.
10948         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
10949         using...
10950         (__GNUC_PREREQ): ...this new macro.
10951
10952         * lib/strstr.h: Include string.h. Define strstr as a macro here.
10953
10954 2005-09-15  Derek Price  <derek@ximbiot.com>
10955             Paul Eggert  <eggert@cs.ucla.edu>
10956
10957         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
10958         changes, consolidating in...
10959         * lib/regex_internal.h: ...this file.
10960
10961 2005-09-13  Jim Meyering  <jim@meyering.net>
10962
10963         * lib/canon-host.c: Filter through gnu indent and reword comments
10964         slightly.
10965         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
10966
10967 2005-09-13  Derek Price  <derek@ximbiot.com>
10968
10969         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
10970         failure.
10971         Reported by Jim Meyering  <jim@meyering.net>.
10972
10973 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
10974
10975         * lib/base64.c: Typo.
10976         (base64_encode): Put b64str in initialized data section.
10977
10978 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
10979
10980         Merge glibc and coreutils changes into gnulib, plus a few
10981         extra fixes.
10982         * lib/md5.c: Use #error rather than a string.
10983         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
10984         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
10985         (__attribute__): Define to empty for non recent-GCC.
10986         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
10987         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
10988         Renamed from their non-__ counterparts, with new macros replacing
10989         them if not _LIBC.  Add __THROW attribute.
10990         (rol): Remove.
10991         (struct md5_ctx): Align buffer if using GCC.
10992         * lib/sha1.h (struct sha1_ctx): Likewise.
10993         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
10994         The old name was backwards.
10995         (NOTSWAP): Remove; not used.
10996         (rol): New macro, moved here from md5.h.
10997         (sha1_process_block): Remove a FIXME that doesn't make sense.
10998
10999 2005-09-12  Derek Price  <derek@ximbiot.com>
11000
11001         Return usable errors from canon-host.
11002         * lib/canon-host.h: New file.
11003         * lib/canon-host.c (canon_host): Wrap...
11004         (canon_host_r): ...this new function, which now relies exclusively on
11005         getaddrinfo.
11006         (ch_strerror): New function.
11007         (last_cherror): New global.
11008         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
11009         interface.
11010         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
11011         void *.
11012         (freeaddrinfo): Free ai->ai_canonname when set.
11013
11014 2005-09-12  Derek Price  <derek@ximbiot.com>
11015
11016         Make canon-host require getaddrinfo.
11017         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
11018         AC_LIBSOURCE canon-host.h.  Call...
11019         (gl_PREREQ_CANON_HOST): ...this new function, which requires
11020         gl_GETADDRINFO.
11021         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
11022
11023 2005-09-12  Derek Price  <derek@ximbiot.com>
11024
11025         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
11026         LGPL.
11027         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
11028
11029 2005-09-12  Derek Price  <derek@ximbiot.com>
11030
11031         * lib/gai_strerror.c: Include config.h when available.  Include
11032         getaddrinfo.h before other headers to test interface.
11033         Reported by Larry Jones <lawrence.jones@ugs.com>.
11034
11035 2005-09-12  Derek Price  <derek@ximbiot.com>
11036             Paul Eggert  <eggert@cs.ucla.edu>
11037
11038         * modules/glob (Files): Add glob-libc.h.
11039
11040 2005-09-12  Derek Price  <derek@ximbiot.com>
11041             Paul Eggert  <eggert@cs.ucla.edu>
11042
11043         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
11044         glob_.h, glob-libc.h.
11045         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
11046
11047 2005-09-12  Derek Price  <derek@ximbiot.com>
11048             Paul Eggert  <eggert@cs.ucla.edu>
11049
11050         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
11051         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
11052         protecting things that should be done only in gnulib contexts.
11053         * lib/glob_.h: New file, containing only the glob things needed for
11054         gnulib.
11055         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
11056         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
11057         (glob, globfree, glob_pattern_p): Now defined simply in terms of
11058         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
11059         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
11060         and to respect the namespace rules better.
11061
11062 2005-09-08  Simon Josefsson  <jas@extundo.com>
11063
11064         * modules/socklen: New file.
11065
11066 2005-09-08  Simon Josefsson  <jas@extundo.com>
11067
11068         * m4/socklen.m4: New file.
11069
11070 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
11071
11072         * modules/utimens (Files): Add m4/utimbuf.m4, since
11073         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
11074         Reported by Sergey Poznyakoff.
11075
11076 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
11077
11078         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
11079         definitions, since that's the preferred style in glibc.
11080         Fix a minor spacing issue, and update copyright notice to match
11081         glibc's.
11082
11083 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
11084
11085         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
11086
11087 2005-09-06  Simon Josefsson  <jas@extundo.com>
11088
11089         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
11090         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
11091
11092 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
11093
11094         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
11095         warning.
11096
11097 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
11098
11099         * config/srclist.txt: Add glibc bug 1302.
11100
11101 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
11102
11103         Change bitset word type from unsigned int to unsigned long int,
11104         as this has better performance on typical 64-bit hosts.
11105         Port bitset code to hosts with unusual word sizes.
11106         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
11107         (build_collating_symbol):
11108         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
11109         argument is a bitset.  This is merely a style issue, but it makes
11110         it clearer that an entire array is expected.
11111         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
11112         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
11113         Port to the case where bitset_word is not the same as unsigned int.
11114         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
11115         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
11116         Likewise.
11117         * lib/regexec.c (check_dst_limits_calc_pos_1,
11118         check_subexp_matching_top):
11119         (build_trtable, group_nodes_into_DFAstates):
11120         Likewise.
11121         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
11122         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
11123         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
11124         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
11125         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
11126         * lib/regcomp.c (optimize_subexps, lower_subexp):
11127         Work even if bitset_word has holes in its bitwise representation.
11128         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
11129         * lib/regexec.c (check_dst_limits_calc_pos_1,
11130         check_subexp_matching_top):
11131         Likewise.
11132         * lib/regex_internal.c (re_string_reconstruct):
11133         Don't assume UCHAR_MAX == 255.
11134         * lib/regex_internal.h (bitset_set_all): Likewise.
11135         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
11136         All uses changed.
11137         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
11138         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
11139         All uses changed.
11140         (BITSET_WORD_MAX): New macro.
11141         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
11142         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
11143         (bitset_empty, bitset_copy):
11144         Prefer sizeof (bitset) to multiplying it out ourselves.
11145         (bitset_not_merge): Remove; unused.
11146         (bitset_contain): Return bool, not unsigned int with one bit on.
11147         All callers changed.
11148         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
11149         alignment than re_node_set; do this by defining a new internal
11150         type struct dests_alloc and using it to allocate memory.
11151
11152 2005-09-05  Bruno Haible  <bruno@clisp.org>
11153
11154         * gnulib-tool (func_import): Fix comparison in handling of symbolic
11155         links.
11156
11157 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
11158
11159         * modules/size_max (Makefile.am): Add size_max.h
11160
11161 2005-09-04  Derek Price  <derek@ximbiot.com>
11162
11163         * gnulib-tool (func_import): Fix reversed $symbolic logic.
11164
11165 2005-09-03  Simon Josefsson  <jas@extundo.com>
11166
11167         * gnulib-tool: Fix typo.
11168
11169 2005-09-03  Simon Josefsson  <jas@extundo.com>
11170
11171         * config/srclist.txt: Add glibc bug 1293.
11172
11173 2005-09-03  Derek Price  <derek@ximbiot.com>
11174
11175         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
11176         From Larry Jones <lawrence.jones@ugs.com>.
11177
11178 2005-09-02  Simon Josefsson  <jas@extundo.com>
11179
11180         * modules/socklen: New file.
11181
11182 2005-09-02  Simon Josefsson  <jas@extundo.com>
11183
11184         * modules/havelib: New module.
11185
11186         * modules/gettext, modules/iconv, modules/lock, modules/readline:
11187         Use havelib.
11188
11189 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
11190
11191         Check for arithmetic overflow when calculating sizes, to prevent
11192         some buffer-overflow issues.  These patches are conservative, in the
11193         sense that when I couldn't determine whether an overflow was possible,
11194         I inserted a run-time check.
11195         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
11196         macros.
11197         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
11198         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
11199         (re_xnrealloc, re_x2nrealloc): New inline functions.
11200         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
11201         parse_bracket_exp):
11202         (build_equiv_class, build_charclass): Check for arithmetic overflow
11203         in size expression calculations.
11204         * lib/regex_internal.c (re_string_realloc_buffers):
11205         (build_wcs_upper_buffer, re_node_set_add_intersect):
11206         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
11207         (re_dfa_add_node, register_state): Likewise.
11208         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
11209         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
11210         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
11211         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
11212
11213 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
11214
11215         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
11216         m4/ulonglong.m4.  Problem reported by Martin Lambers.
11217
11218 2005-09-02  Bruno Haible  <bruno@clisp.org>
11219
11220         Support for lib vs. lib64 distinction on biarch platforms.
11221         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
11222         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
11223         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
11224
11225 2005-09-02  Bruno Haible  <bruno@clisp.org>
11226
11227         * gnulib-tool (import): In the other first-use case, provide defaults
11228         as well.
11229
11230 2005-09-02  Bruno Haible  <bruno@clisp.org>
11231
11232         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
11233         patches not yet found in the latest gettext release.
11234
11235 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
11236
11237         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
11238         to avoid a collision with bits/local_lim.h in glibc.
11239         All uses changed.  Problem reported by Dmitry V. Levin in
11240         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
11241
11242         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
11243         bugs in int versus size_t comparisons.
11244         (re_string_context_at): Fix bug where the code assumed that
11245         Idx is signed.
11246
11247         Use bool where appropriate.
11248         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
11249         All callers changed.
11250         (calc_eclosure_iter): Likewise, for ROOT arg.
11251         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
11252         (build_charclass_op): Likewise, for NON_MATCH arg.
11253         * lib/regex_internal.c (re_string_allocate, re_string_construct):
11254         (re_string_construct_common): Likewise, for ICASE arg.
11255         * lib/regexec.c (re_search_2_stub, re_search_stub):
11256         Likewise, for RET_LEN arg.
11257         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
11258         (set_regs): Likewise, for FL_BACKTRACK arg.
11259         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
11260         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
11261         (calc_eclosure_iter, parse_bracket_exp):
11262         Use bool for internal variables that are booleans.
11263         * lib/regexec.c (re_search_internal, check_matching,
11264         proceed_next_node):
11265         (set_regs, build_sifted_states, sift_states_bkref):
11266         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
11267         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
11268         (find_collation_sequence_value):
11269         Likewise.
11270         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
11271         (re_node_set_compare):
11272         Return bool, not int. All callers changed.
11273         * lib/regexec.c (check_halt_node_context, check_dst_limits):
11274         (build_trtable, check_node_accept): Likewise.
11275         * lib/regex_internal.h: Include stdbool.h.
11276
11277         Fix bugs uncovered when converting to bool.
11278         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
11279         failure instead of charging ahead blindly.
11280         * lib/regex_internal.c (register_state): Likewise.
11281         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
11282         for freeing internal storage.
11283         (group_nodes_into_DFA_states): Use unsigned int, not int, for
11284         bitset pieces used as boolean, to avoid undefined behavior
11285         on hosts that do int overflow checking.
11286
11287 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
11288
11289         * config/srclist.txt: Add glibc bugs 1285-1287.
11290
11291 2005-09-01  Jim Meyering  <jim@meyering.net>
11292
11293         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
11294         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
11295         Require gl_STAT_MACROS, too.
11296
11297 2005-09-01  Bruno Haible  <bruno@clisp.org>
11298
11299         * gnulib-tool (import): In the first-use case, provide defaults.
11300
11301 2005-09-01  Bruno Haible  <bruno@clisp.org>
11302
11303         * gnulib-tool (func_import): Remove the .tmp files.
11304
11305 2005-09-01  Bruno Haible  <bruno@clisp.org>
11306
11307         * gnulib-tool (func_import): Fix handling of symbolic links.
11308
11309 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
11310
11311         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
11312         old glibc regex code mishandles strings longer than 2**31 bytes.
11313         This patch fixes this when the regex code is used in gnulib
11314         (i.e., outside glibc).
11315
11316         This patch should not affect the use of the regex code inside
11317         glibc.  No doubt this problem also needs to be handled for glibc
11318         as well, but the result will be an incompatible change to the
11319         glibc ABI, and the old ABI will have to be supported too.  That
11320         can be the the subject for another patch.
11321
11322         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
11323         governing whether the rest of this patch is active.  By default,
11324         the macro is disabled and the patch has no effect.
11325         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
11326         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
11327         (struct re_pattern_buffer, re_search, re_search_2, re_match):
11328         (re_match_2, re_set_registers): Use the new types.
11329         * lib/regex_internal.h (Idx, re_hashval_t): New types.
11330         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
11331         New macros.
11332         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
11333         (re_string_context_at, bin_tree_t, re_dfastate_t):
11334         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
11335         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
11336         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
11337         (re_string_char_size_at, re_string_wchar_at):
11338         (re_string_elem_size_at):
11339         Use the new types and macros to port to 64-bit hosts.
11340         Use unsigned types for internal values, so that the code
11341         mostly works even for arrays larger than SSIZE_MAX.
11342         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
11343         (search_duplicated_node, calc_eclosure_iter, fetch_number):
11344         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
11345         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
11346         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
11347         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
11348         (calc_inveclosure, parse_dup_op, build_range_exp):
11349         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
11350         (fetch_number, create_token_tree, mark_opt_subexp):
11351         Likewise.
11352         * lib/regex_internal.c (re_string_construct_common,
11353         create_ci_newstate):
11354         (create_cd_newstate, re_string_allocate, re_string_construct):
11355         (re_string_realloc_buffers, build_wcs_upper_buffer):
11356         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
11357         (re_string_reconstruct, re_string_peek_byte_case):
11358         (re_string_fetch_byte_case, re_string_context_at):
11359         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
11360         (re_node_set_init_copy, re_node_set_add_intersect):
11361         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
11362         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
11363         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
11364         (re_acquire_state, re_acquire_state_context, register_state):
11365         Likewise.
11366         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
11367         search_cur_bkref_entry):
11368         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
11369         (re_search_internal, re_search_2_stub, re_search_stub)
11370         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
11371         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
11372         (update_cur_sifted_state, check_dst_limits):
11373         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
11374         (check_subexp_limits, sift_states_bkref, merge_state_array):
11375         (check_subexp_matching_top, get_subexp, get_subexp_sub):
11376         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
11377         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
11378         (expand_bkref_cache, check_node_accept_bytes):
11379         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
11380         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
11381         (acquire_init_state_context, check_halt_node_context):
11382         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
11383         (sift_states_backward, clean_state_log_if_needed):
11384         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
11385         (find_recover_state, transit_state_sb, transit_state_mb):
11386         (transit_state_bkref, build_trtable, match_ctx_clean):
11387         Likewise.
11388         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
11389         to work around an assumption that REG_MISSING is negative.
11390
11391         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
11392         (seek_collating_symbol_entry) [defined _LIBC]:
11393         (lookup_collation_sequence_value) [defined _LIBC]:
11394         (build_range_exp, build_collating_symbol) [defined _LIBC]:
11395         Use prototypes rather than old-style function definitions.
11396         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
11397         (transit_state_sb) [0]:
11398         (find_collation_sequence_value) [defined _LIBC]: Likewise.
11399
11400         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
11401         rm_eo.
11402
11403         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
11404         (optimize_subexps, lower_subexp):
11405         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
11406         since the signed shift might overflow.  Use 1u<<31 instead.
11407         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
11408         Likewise.
11409         * lib/regexec.c (check_dst_limits_calc_pos_1,
11410         check_subexp_matching_top): Likewise.
11411
11412         * lib/regcomp.c (optimize_subexps, lower_subexp):
11413         Use CHAR_BIT rather than 8, for clarity.
11414         * lib/regexec.c (check_dst_limits_calc_pos_1):
11415         (check_subexp_matching_top): Likewise.
11416         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
11417         have to worry about portability issues when shifting it left.
11418         Remove no-longer-needed test for table_size > 0.
11419         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
11420         in a word, as the resulting behavior is undefined.
11421         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
11422         in one case, a <= should have been an <, and in another case the
11423         whole test was missing.
11424         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
11425         the standard name CHAR_BIT.
11426         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
11427         this is not true on one's complement and signed-magnitude hosts.
11428
11429         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
11430         next_last_offset.
11431         (struct re_dfa_t): Remove unused member states_alloc.
11432         * lib/regcomp.c (init_dfa): Don't initialize unused members.
11433
11434 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
11435
11436         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
11437         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
11438         and large-file glibc and in 32-bit large-file Solaris.
11439
11440 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
11441
11442         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
11443         lengths fit in regoff_t; this isn't true if regoff_t is the same
11444         width as size_t.
11445         * lib/regex.c (re_search_internal): 5th arg is LAST_START
11446         (= START + RANGE) instead of RANGE.  This avoids overflow
11447         problems when regoff_t is the same width as size_t.
11448         All callers changed.
11449         (re_search_2_stub): Check for overflow when adding the
11450         sizes of the two strings.
11451         (re_search_stub): Check for overflow when adding START
11452         to RANGE; if it occurs, substitute the extreme value.
11453
11454 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
11455
11456         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
11457
11458 2005-08-31  Jim Meyering  <jim@meyering.net>
11459
11460         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
11461         a pointer-to-const.
11462         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
11463         (register_state): Likewise.
11464         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
11465         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
11466         (group_nodes_into_DFAstates): Likewise.
11467
11468 2005-08-31  Jim Meyering  <jim@meyering.net>
11469
11470         * check-module: Add a FIXME comment.
11471
11472 2005-08-31  Eric Blake  <ebb9@byu.net>
11473
11474         * modules/unistd-safer (Files): Add unistd--.h.
11475         * modules/stdio-safer (Files): Add stdio--.h.
11476
11477 2005-08-31  Derek Price  <derek@ximbiot.com>
11478
11479         * lib/getdelim.c (getdelim): Return EOF on EOF.
11480         Reported by Larry Jones <lawrence.jones@ugs.com>.
11481
11482 2005-08-31  Bruno Haible  <bruno@clisp.org>
11483
11484         Avoid unnecessary diffs in the generated lib/Makefile.am.
11485         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
11486         the generated files.
11487         (func_import): Don't set cmd.
11488
11489 2005-08-31  Bruno Haible  <bruno@clisp.org>
11490
11491         * lib/strstr.c: Include <stddef.h>, for NULL.
11492         * lib/strcasestr.c: Likewise.
11493         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
11494
11495 2005-08-31  Bruno Haible  <bruno@clisp.org>
11496
11497         * gnulib-tool: New option --macro-prefix.
11498         (func_import): Use macro_prefix.
11499         (import): Handle option --macro-prefix.
11500
11501 2005-08-31  Bruno Haible  <bruno@clisp.org>
11502
11503         * gnulib-tool (import): Rename most ac_* variables to cached_*.
11504         Also use new variables cached_lgpl, cached_libtool.
11505
11506 2005-08-31  Bruno Haible  <bruno@clisp.org>
11507
11508         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
11509         always instantiating them.
11510
11511 2005-08-31  Bruno Haible  <bruno@clisp.org>
11512
11513         * gnulib-tool (func_import): Read the previous cached settings
11514         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
11515         earlier added by gnulib but are now dropped. Warn when a gnulib file
11516         overwrites a non-gnulib file.
11517
11518 2005-08-31  Bruno Haible  <bruno@clisp.org>
11519
11520         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
11521         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
11522         projects that don't keep autogenerated files in CVS. Put into
11523         actioncmd only the specified modules, not the transitive closure.
11524
11525 2005-08-31  Bruno Haible  <bruno@clisp.org>
11526
11527         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
11528         Create directories that shall be filled.
11529         (import): Don't look for gl_* macros in configure.ac. Recurse across
11530         all directories containing a gnulib-cache.m4 files, if meaningful.
11531
11532 2005-08-31  Bruno Haible  <bruno@clisp.org>
11533
11534         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
11535         (import): Set seen_libtool when we see gl_LIBTOOL.
11536
11537 2005-08-31  Bruno Haible  <bruno@clisp.org>
11538
11539         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
11540         declaration macro definitions from generated gnulib.m4.
11541
11542 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
11543
11544         * lib/iconvme.h: Add prototype for iconv_alloc.
11545
11546 2005-08-29  Simon Josefsson  <jas@extundo.com>
11547
11548         * lib/iconvme.c: Fix errno.
11549
11550 2005-08-29  Bruno Haible  <bruno@clisp.org>
11551
11552         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
11553         that it works when the directory contains spaces.
11554
11555 2005-08-29  Bruno Haible  <bruno@clisp.org>
11556
11557         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
11558
11559 2005-08-29  Bruno Haible  <bruno@clisp.org>
11560
11561         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
11562         Emit more advice.
11563
11564 2005-08-29  Bruno Haible  <bruno@clisp.org>
11565         and Stepan Kasal  <kasal@ucw.cz>
11566
11567         * check-module: If more parameters are given, check each of them
11568         separately; add more exceptions, as noted by Jim Meyering.
11569         (check_module): New procedure.
11570         (%exempt_header): Now contains all exceptions.
11571
11572 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
11573
11574         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
11575
11576 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
11577
11578         * lib/iconvme.c: Split iconv_string into iconv_alloc.
11579
11580 2005-08-28  Bruno Haible  <bruno@clisp.org>
11581
11582         * m4/gnulib-tool.m4: New file.
11583
11584 2005-08-27  Jim Meyering  <jim@meyering.net>
11585
11586         * modules/unistd-safer (Files): Add pipe-safer.c.
11587         * modules/fcntl-safer (Files): Add creat-safer.c.
11588
11589 2005-08-27  Jim Meyering  <jim@meyering.net>
11590
11591         * m4/stdlib-safer.m4: New file.  From coreutils.
11592         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
11593         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
11594         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
11595         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
11596         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
11597
11598 2005-08-27  Jim Meyering  <jim@meyering.net>
11599
11600         * lib/fopen-safer.c: Merge minor changes from coreutils.
11601         * lib/dup-safer.c: Likewise.
11602         * lib/fd-safer.c: Likewise.
11603
11604         Merge from coreutils.
11605         * lib/stdio--.h: New file.
11606         * lib/stdlib--.h: New file.
11607         * lib/mkstemp-safer.c: New file.
11608
11609         GNU tar needs these.
11610         * lib/pipe-safer.c: New file.
11611         * lib/creat-safer.c: New file.
11612         * lib/fcntl--.h (creat): Define to creat_safer.
11613         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
11614         * lib/unistd--.h (pipe): Define to pipe_safer.
11615         * lib/unistd-safer.h: Declare pipe_safer.
11616
11617 2005-08-26  Simon Josefsson  <jas@extundo.com>
11618
11619         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
11620         Haible <bruno@clisp.org>.
11621
11622 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
11623
11624         * lib/regex_internal.h: Remove all references to
11625         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
11626         or better.
11627         (bitset_not, bitset_merge, bitset_not_merge):
11628         (bitset_mask, re_string_allocate, re_string_construct):
11629         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
11630         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
11631         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
11632         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
11633         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
11634         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
11635         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
11636         (re_acquire_state_context):
11637         Remove unnecessary forward decls.
11638         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
11639         Put __attribute at function definition,
11640         now that the function decl has been removed.
11641         * lib/regex_internal.c (re_string_peek_byte_case):
11642         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
11643         Likewise.
11644
11645 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
11646
11647         * m4/regex.m4: Add AC_PREREQ(2.50).
11648         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
11649
11650 2005-08-25  Simon Josefsson  <jas@extundo.com>
11651
11652         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
11653         __fsetlocking.
11654
11655 2005-08-25  Simon Josefsson  <jas@extundo.com>
11656
11657         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
11658         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
11659         GLIBC specific code.
11660
11661 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
11662
11663         Make regex safe for g++.  This fixes one real bug (an "err"
11664         that should have been "*err").  g++ problem reported by
11665         Sam Steingold.
11666         * lib/regex_internal.h (re_calloc): New macro, consistent with
11667         re_malloc etc.  All callers of calloc changed to use re_calloc.
11668         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
11669         not int.  All callers changed.
11670         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
11671         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
11672         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
11673         (find_recover_state): Change "err" to "*err"; this fixes what
11674         appears to be a real bug.
11675         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
11676         versus int.
11677
11678 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
11679
11680         * modules/regex (Depends-on): Add malloc, since the code
11681         assumes that !malloc(0) means failure.
11682
11683 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
11684
11685         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
11686
11687         alloca modernization/simplification for regex.
11688         * lib/regex.c: Remove portability cruft for alloca.  This no longer
11689         needs to be at the start of the file, and can be moved into
11690         regex_internal.h and simplified.
11691         * lib/regex_internal.h: Include <alloca.h>.
11692         (__libc_use_alloca) [!defined _LIBC]: New macro.
11693         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
11694         now works outside glibc.
11695
11696 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
11697
11698         * config/srclist.txt: Add glibc bugs 1241, 1245.
11699
11700 2005-08-25  Jim Meyering  <jim@meyering.net>
11701
11702         * lib/open-safer.c: Include <config.h>.
11703         Otherwise, we'd lose LARGEFILE support in any file using
11704         e.g. "fcntl--.h"
11705
11706 2005-08-25  Bruno Haible  <bruno@clisp.org>
11707
11708         * m4/minmax.m4: Require autoconf 2.52.
11709         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
11710         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
11711         alternatives of translit over the alphabet.
11712         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
11713
11714 2005-08-24  Simon Josefsson  <jas@extundo.com>
11715
11716         * tests/test-getpass.c: New file.
11717
11718 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
11719
11720         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
11721         for GNU regex features.
11722
11723 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
11724
11725         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
11726         * lib/regex.h (regerror): Likewise.
11727
11728         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
11729         requires this.  (The code never needed it.)
11730
11731         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
11732         All uses of recently-renamed identifiers changed to use the new,
11733         POSIX-compliant names.  The code will build and run just fine
11734         without these changes, but it's better to eat our own dog food
11735         and use the standard-conforming names.
11736
11737         * lib/regex.h: Fix a multitude of POSIX name space violations.
11738         These changes have an effect only for programs that define
11739         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
11740         do not change anything for programs compiled in the normal way.
11741         Also, there is no effect on the ABI.
11742
11743         (_REGEX_SOURCE): New macro.
11744         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
11745         defined and _GNU_SOURCE is not; this fixes a name space violation.
11746
11747         Rename the following macros to obey POSIX requirements.
11748         The old names are still visible as macros if _REGEX_SOURCE is defined.
11749         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
11750         RE_BACKSLASH_ESCAPE_IN_LISTS.
11751         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
11752         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
11753         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
11754         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
11755         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
11756         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
11757         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
11758         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
11759         (REG_INTERVALS): renamed from RE_INTERVALS.
11760         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
11761         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
11762         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
11763         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
11764         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
11765         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
11766         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
11767         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
11768         RE_UNMATCHED_RIGHT_PAREN_ORD.
11769         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
11770         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
11771         (REG_DEBUG): renamed from RE_DEBUG.
11772         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
11773         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
11774         unusual, since we can't clash with the POSIX REG_ICASE.
11775         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
11776         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
11777         (REG_NO_SUB): renamed from RE_NO_SUB.
11778         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
11779         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
11780         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
11781         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
11782         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
11783         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
11784         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
11785         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
11786         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
11787         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
11788         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
11789         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
11790         RE_SYNTAX_POSIX_MINIMAL_BASIC.
11791         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
11792         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
11793         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
11794         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
11795         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
11796         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
11797         (REG_FIXED): Renamed from REGS_FIXED.
11798         (REG_NREGS): Renamed from RE_NREGS.
11799
11800         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
11801         of other REG_* macros, since POSIX says the user is allowed to
11802         #undef these macros selectively.
11803
11804         (reg_errcode_t): Update comment stating what other tables need
11805         to be consistent.
11806
11807         Rename the following enum values to obey POSIX requirements.
11808         The old names are still visible as macros.
11809         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
11810         is not defined, since GNU is supposed to be a superset of POSIX as
11811         much as possible, and since we want reg_errcode_t to be a signed
11812         type for implementation consistency.
11813         (_REG_NOERROR): Renamed from REG_NOERROR.
11814         (_REG_NOMATCH): Renamed from REG_NOMATCH.
11815         (_REG_BADPAT): Renamed from REG_BADPAT.
11816         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
11817         (_REG_ECTYPE): Renamed from REG_ECTYPE.
11818         (_REG_EESCAPE): Renamed from REG_EESCAPE.
11819         (_REG_ESUBREG): Renamed from REG_ESUBREG.
11820         (_REG_EBRACK): Renamed from REG_EBRACK.
11821         (_REG_EPAREN): Renamed from REG_EPAREN.
11822         (_REG_EBRACE): Renamed from REG_EBRACE.
11823         (_REG_BADBR): Renamed from REG_BADBR.
11824         (_REG_ERANGE): Renamed from REG_ERANGE.
11825         (_REG_ESPACE): Renamed from REG_ESPACE.
11826         (_REG_BADRPT): Renamed from REG_BADRPT.
11827         (_REG_EEND): Renamed from REG_EEND.
11828         (_REG_ESIZE): Renamed from REG_ESIZE.
11829         (_REG_ERPAREN): Renamed from REG_ERPAREN.
11830         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
11831         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
11832         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
11833         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
11834
11835         (_REG_RE_NAME, _REG_RM_NAME): New macros.
11836         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
11837         changed.  But support the old name if the new one is not defined
11838         and if _REGEX_SOURCE.
11839
11840         Change the following member names in struct re_pattern_buffer.
11841         The old names are still supported if !_REGEX_SOURCE.
11842         The new names are always supported, regardless of _REGEX_SOURCE.
11843         (re_buffer): Renamed from buffer.
11844         (re_allocated): Renamed from allocated.
11845         (re_used): Renamed from used.
11846         (re_syntax): Renamed from syntax.
11847         (re_fastmap): Renamed from fastmap.
11848         (re_translate): Renamed from translate.
11849         (re_can_be_null): Renamed from can_be_null.
11850         (re_regs_allocated): Renamed from regs_allocated.
11851         (re_fastmap_accurate): Renamed from fastmap_accurate.
11852         (re_no_sub): Renamed from no_sub.
11853         (re_not_bol): Renamed from not_bol.
11854         (re_not_eol): Renamed from not_eol.
11855         (re_newline_anchor): Renamed from newline_anchor.
11856
11857         Change the following member names in struct re_registers.
11858         The old names are still supported if !_REGEX_SOURCE.
11859         The new names are always supported, regardless of _REGEX_SOURCE.
11860         (rm_num_regs): Renamed from num_regs.
11861         (rm_start): Renamed from start.
11862         (rm_end): Renamed from end.
11863
11864         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
11865         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
11866         Prepend __ to parameter names.
11867
11868         Undo yesterday's changes.
11869
11870 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
11871
11872         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
11873         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
11874         lib/regex.c.
11875
11876 2005-08-24  Jim Meyering  <jim@meyering.net>
11877
11878         Sync from coreutils.
11879         * m4/fcntl-safer.m4: New file.
11880
11881         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
11882         and object files for this module.
11883
11884 2005-08-24  Jim Meyering  <jim@meyering.net>
11885
11886         Sync from coreutils.
11887         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
11888
11889 2005-08-24  Jim Meyering  <jim@meyering.net>
11890
11891         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
11892         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
11893
11894 2005-08-24  Jim Meyering  <jim@meyering.net>
11895
11896         * modules/fcntl-safer: New module.
11897         * modules/fts (Depends-on): Add fcntl-safer.
11898         * MODULES.html.sh (File descriptor based Input/Output):
11899         Add fcntl-safer.
11900
11901 2005-08-24  Bruno Haible  <bruno@clisp.org>
11902
11903         Support for unit test modules.
11904         * modules/README: Mention tests modules.
11905         * modules/TEMPLATE-TESTS: New file.
11906         * gnulib-tool: New options --extract-tests-module, --with-tests and
11907         --tests-base (unused for the moment).
11908         (testsbase, inctests): New variables.
11909         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
11910         (func_verify_module): Exclude TEMPLATE-TESTS.
11911         (func_verify_nontests_module, func_verify_tests_module): New functions.
11912         (func_get_dependencies): Add implicit dependency for tests modules.
11913         (func_get_tests_module): New function.
11914         (func_modules_transitive_closure): When --with-tests was specified,
11915         include the unit tests as well, unless explicitly avoided.
11916         (func_emit_lib_Makefile_am): Ignore the tests modules here.
11917         (func_emit_tests_Makefile_am): New function.
11918         (func_create_testdir): When --with-tests was specified, emit a
11919         tests/ directory.
11920         * MODULES.html.sh (Future developments): Update.
11921
11922 2005-08-24  Bruno Haible  <bruno@clisp.org>
11923
11924         * modules/tls-tests: New file.
11925         * tests/test-tls.c: New file, from GNU gettext.
11926
11927 2005-08-24  Bruno Haible  <bruno@clisp.org>
11928
11929         * modules/lock-tests: New file.
11930         * tests/test-lock.c: New file, from GNU gettext.
11931
11932 2005-08-24  Bruno Haible  <bruno@clisp.org>
11933
11934         * lib/lock.h: Add multiple inclusion guard.
11935         * lib/tls.h: Add multiple inclusion guard.
11936
11937 2005-08-24  Bruno Haible  <bruno@clisp.org>
11938
11939         * gnulib-tool: Add support for the --aux-dir option to
11940         --create-testdir, --create-megatestdir, --test, --megatest.
11941         (func_create_testdir, func_create_megatestdir): Optionally emit a
11942         AC_CONFIG_AUX_DIR directive.
11943         (create-testdir, create-megatestdir, test, megatest): Provide a
11944         default value for $auxdir.
11945
11946 2005-08-24  Bruno Haible  <bruno@clisp.org>
11947
11948         * gnulib-tool (import): Use compound statement instead of subshell
11949         where possible.
11950
11951 2005-08-24  Bruno Haible  <bruno@clisp.org>
11952
11953         * gnulib-tool (import): Change --aux-dir default to "build-aux".
11954
11955 2005-08-24  Bruno Haible  <bruno@clisp.org>
11956
11957         * gnulib-tool (func_version): Update.
11958
11959 2005-08-24  Bruno Haible  <bruno@clisp.org>
11960
11961         * gnulib-tool (func_import, func_create_testdir,
11962         func_create_megatestdir): Quote all autoconf macro arguments.
11963
11964 2005-08-24  Bruno Haible  <bruno@clisp.org>
11965
11966         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
11967         option --force, because --force causes the aclocal.m4 of each
11968         subdirectory to be newer than the corresponding config.h.in.
11969
11970 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
11971
11972         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
11973         All contents moved to gl_REGEX.
11974         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
11975         assume that it does.
11976
11977 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
11978
11979         * lib/regex.h (REG_NOSYS)
11980         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
11981         Define, since POSIX requires it as of 2001.
11982         (_REG_ENOSYS)
11983         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
11984         New private symbol, used to keep the enum signed in all cases.
11985         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
11986         Youngman in
11987         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
11988
11989         * lib/regex_internal.c (re_string_skip_chars, register_state):
11990         (calc_state_hash):
11991         Remove forward decls; no longer needed now that we use prototypes.
11992         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
11993         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
11994         (clean_state_log_if_needed): Likewise.
11995
11996 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
11997
11998         * config/srclist.txt: Add glibc bugs 1231-1233.
11999
12000 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
12001
12002         Fix problems reported by Sam Steingold in
12003         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
12004         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
12005         assumed that reg_errcode_t is a signed type, which is not
12006         necessarily true if _XOPEN_SOURCE is not defined.
12007         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
12008         since some compilers warn about it otherwise.
12009
12010 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
12011
12012         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
12013         (init_word_char, create_initial_state, duplicate_node_closure):
12014         (fetch_token, peek_token_bracket, build_range_exp):
12015         (build_collating_symbol): Remove forward decls; no longer needed
12016         now that we use prototypes.
12017
12018         * lib/regcomp.c:
12019         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
12020         (re_compile_fastmap_iter, regcomp, regerror, regfree):
12021         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
12022         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
12023         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
12024         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
12025         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
12026         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
12027         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
12028         (build_range_exp, build_collating_symbol, parse_bracket_exp):
12029         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
12030         (build_charclass, build_charclass_op, fetch_number, create_tree):
12031         (create_token_tree, mark_opt_subexp, duplicate_tree):
12032         Use prototypes rather than old-style definitions.
12033
12034         * lib/regex_internal.c:
12035         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
12036         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
12037         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
12038         (re_string_reconstruct, re_string_peek_byte_case):
12039         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
12040         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
12041         (re_node_set_init_copy, re_node_set_add_intersect):
12042         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
12043         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
12044         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
12045         (re_acquire_state, re_acquire_state_context, register_state):
12046         (create_ci_newstate, create_cd_newstate, free_state):
12047         Likewise.
12048         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
12049         re_search_2):
12050         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
12051         (re_search_internal, prune_impossible_nodes):
12052         (acquire_init_state_context, check_matching, static):
12053         (check_halt_node_context, check_halt_state_context, proceed_next_node):
12054         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
12055         (update_regs, sift_states_backward, build_sifted_states):
12056         (clean_state_log_if_needed, merge_state_array):
12057         (update_cur_sifted_state, add_epsilon_src_nodes):
12058         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
12059         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
12060         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
12061         (find_recover_state, check_subexp_matching_top, transit_state_mb):
12062         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
12063         (check_arrival, check_arrival_add_next_nodes):
12064         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
12065         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
12066         (check_node_accept_bytes, check_node_accept, extend_buffers):
12067         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
12068         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
12069         (sift_ctx_init):
12070         Likewise.
12071
12072         * lib/regex_internal.h:
12073         (re_string_allocate, re_string_construct, re_string_reconstruct):
12074         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
12075         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
12076         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
12077         (re_string_context_at, re_string_peek_byte_case):
12078         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
12079         is defined, since we now use prototypes always.
12080
12081         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
12082         C89 or better.  All uses removed.
12083
12084 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
12085
12086         * config/srclist.txt: Add glibc bugs 1220-1227.
12087
12088 2005-08-20  Jim Meyering  <jim@meyering.net>
12089
12090         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
12091         of unused local, dfa.
12092
12093 2005-08-20  Bruno Haible  <bruno@clisp.org>
12094
12095         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
12096
12097 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
12098
12099         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
12100         (re_node_set_insert_last, re_dfa_add_node):
12101         Rename local variables to avoid GCC shadowing warnings.
12102
12103 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
12104
12105         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
12106         [defined lint]: Suppress bogus uninitialized-variable warnings.
12107
12108         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
12109         and let the caller return REG_ESPACE if out of space.  This
12110         removes an uninitialied-variable warning with GCC 4.0.1, and also
12111         avoids taking the address of a local variable.  All callers
12112         changed.
12113
12114 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
12115
12116         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
12117         $LIBCSRC/posix/regexec.c.
12118         Add glibc bug 1217 for regcomp.c.
12119
12120 2005-08-19  Jim Meyering  <jim@meyering.net>
12121
12122         * lib/regexec.c (proceed_next_node): Redo local variables to
12123         avoid GCC shadowing warnings.
12124
12125 2005-08-18  Bruno Haible  <bruno@clisp.org>
12126
12127         * lib/strstr.c (strstr): Fix return value in multibyte case.
12128         * lib/strcasestr.c (strcasestr): Likewise.
12129
12130 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
12131
12132         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
12133
12134 2005-08-17  Jim Meyering  <jim@meyering.net>
12135
12136         Make the %s format (seconds since the epoch) work for a negative
12137         number and when used with a zero-padded field width, e.g. %015s.
12138
12139         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
12140         label so that it precedes the code to set `digits'.  Otherwise,
12141         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
12142         print `00-22'.  Now, it prints `-0022', as it should.
12143
12144 2005-08-17  Bruno Haible  <bruno@clisp.org>
12145
12146         * modules/strstr (Files): Add m4/mbrtowc.m4.
12147         (Depends-on): Add mbuiter.
12148
12149 2005-08-17  Bruno Haible  <bruno@clisp.org>
12150
12151         * modules/strcasestr: New file.
12152         * MODULES.html.sh (String handling, based on ANSI C 89): Add
12153         strcasestr.
12154
12155 2005-08-17  Bruno Haible  <bruno@clisp.org>
12156
12157         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
12158
12159 2005-08-17  Bruno Haible  <bruno@clisp.org>
12160
12161         * modules/mbuiter: New file.
12162         * MODULES.html.sh (Extended multibyte and wide character utilities):
12163         Add mbuiter.
12164
12165 2005-08-17  Bruno Haible  <bruno@clisp.org>
12166
12167         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
12168         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
12169
12170 2005-08-17  Bruno Haible  <bruno@clisp.org>
12171
12172         * m4/strcasestr.m4: New file.
12173
12174 2005-08-17  Bruno Haible  <bruno@clisp.org>
12175
12176         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
12177         * lib/strstr.c: Completely rewritten, with multibyte locale support.
12178
12179 2005-08-17  Bruno Haible  <bruno@clisp.org>
12180
12181         * lib/strcasestr.h: New file.
12182         * lib/strcasestr.c: New file.
12183
12184 2005-08-17  Bruno Haible  <bruno@clisp.org>
12185
12186         * lib/strcasecmp.c: Use mbuiter.h.
12187
12188 2005-08-17  Bruno Haible  <bruno@clisp.org>
12189
12190         * lib/mbuiter.h: New file.
12191
12192 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
12193
12194         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
12195         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
12196         and gl_GETOPT are both invoked via different paths (as happens
12197         with GNU tar CVS because it uses both argp and getopt), the former
12198         wins.
12199
12200 2005-08-16  Bruno Haible  <bruno@clisp.org>
12201
12202         * modules/tls: New file.
12203         * MODULES.html.sh (Multithreading): Add tls.
12204
12205 2005-08-16  Bruno Haible  <bruno@clisp.org>
12206
12207         * modules/strnlen1: New file.
12208         * MODULES.html.sh (String handling): Add strnlen1.
12209
12210 2005-08-16  Bruno Haible  <bruno@clisp.org>
12211
12212         * modules/strcase (Files): Add m4/mbrtowc.m4.
12213         (Depends-on): Add strnlen1, mbchar.
12214
12215 2005-08-16  Bruno Haible  <bruno@clisp.org>
12216
12217         * modules/mbiter: New file.
12218         * MODULES.html.sh (Extended multibyte and wide character utilities):
12219         Add mbiter.
12220
12221 2005-08-16  Bruno Haible  <bruno@clisp.org>
12222
12223         * modules/mbfile: New file.
12224         * MODULES.html.sh (Extended multibyte and wide character utilities):
12225         Add mbfile.
12226
12227 2005-08-16  Bruno Haible  <bruno@clisp.org>
12228
12229         * modules/mbchar: New file.
12230         * MODULES.html.sh (Extended multibyte and wide character utilities):
12231         New section.
12232
12233 2005-08-16  Bruno Haible  <bruno@clisp.org>
12234
12235         * m4/tls.m4: New file, from GNU gettext.
12236
12237 2005-08-16  Bruno Haible  <bruno@clisp.org>
12238
12239         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
12240         always.
12241         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
12242
12243 2005-08-16  Bruno Haible  <bruno@clisp.org>
12244
12245         * m4/mbiter.m4: New file.
12246
12247 2005-08-16  Bruno Haible  <bruno@clisp.org>
12248
12249         * m4/mbfile.m4: New file.
12250
12251 2005-08-16  Bruno Haible  <bruno@clisp.org>
12252
12253         * m4/mbchar.m4: New file.
12254
12255 2005-08-16  Bruno Haible  <bruno@clisp.org>
12256
12257         * lib/tls.h: New file, from GNU gettext.
12258         * lib/tls.c: New file, from GNU gettext.
12259
12260 2005-08-16  Bruno Haible  <bruno@clisp.org>
12261
12262         * lib/strnlen1.h: New file.
12263         * lib/strnlen1.c: New file.
12264
12265 2005-08-16  Bruno Haible  <bruno@clisp.org>
12266
12267         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
12268         (mbi_init): Update.
12269         (mbi_avail, mbi_advance): Let the iteration end before the terminating
12270         NUL byte, not after it.
12271
12272 2005-08-16  Bruno Haible  <bruno@clisp.org>
12273
12274         * lib/strcase.h (strcasecmp): Add note in comments.
12275         * lib/strncasecmp.c: Use code from strcasecmp.c.
12276         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
12277         (strcasecmp): Work correctly in multibyte locales.
12278
12279 2005-08-16  Bruno Haible  <bruno@clisp.org>
12280
12281         * lib/mbiter.h: New file.
12282
12283 2005-08-16  Bruno Haible  <bruno@clisp.org>
12284
12285         * lib/mbfile.h: New file.
12286
12287 2005-08-16  Bruno Haible  <bruno@clisp.org>
12288
12289         * lib/mbchar.h: New file.
12290         * lib/mbchar.c: New file.
12291
12292 2005-08-16  Bruno Haible  <bruno@clisp.org>
12293
12294         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
12295         the valid ones. Makes the comparison operations transitive:
12296         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
12297         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
12298
12299 2005-08-15  Simon Josefsson  <jas@extundo.com>
12300
12301         * modules/ssize_t (License): Change to 'unlimited'.
12302
12303         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
12304
12305 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
12306
12307         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
12308         Add comments for each pending glibc patch.
12309
12310 2005-08-15  Bruno Haible  <bruno@clisp.org>
12311
12312         * lib/regex.h (__restrict_arr): Don't define to __restrict if
12313         __cplusplus is defined.
12314
12315 2005-08-14  Jim Meyering  <jim@meyering.net>
12316
12317         Sync from coreutils.
12318
12319         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
12320         Use the hash-table-based cycle-detection code not just when
12321         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
12322         Reported by James Youngman in
12323         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
12324         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
12325         FTS_TIGHT_CYCLE_CHECK.
12326         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
12327         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
12328         once again.
12329         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
12330         * lib/fts.c (fd_safer): Remove decl.
12331         Include fcntl--.h rather than unistd-safer.h
12332         (fts_safe_changedir): Don't call fd_safer; no longer needed
12333         now that we include fcntl--.h.
12334
12335 2005-08-12  Simon Josefsson  <jas@extundo.com>
12336
12337         * modules/getndelim2: Use ssize_t module.
12338         * modules/getnline: Likewise.
12339         * modules/safe-read: Likewise.
12340         * modules/xreadlink: Likewise.
12341
12342         * modules/ssize_t: New file.
12343
12344 2005-08-12  Simon Josefsson  <jas@extundo.com>
12345
12346         * m4/readline.m4: Look for termcap, curses or ncurses if required.
12347
12348 2005-08-12  Simon Josefsson  <jas@extundo.com>
12349
12350         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
12351         ssize_t.
12352
12353 2005-08-12  Simon Josefsson  <jas@extundo.com>
12354
12355         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
12356         readline, getdelim and check_version.
12357         (Support for systems lacking ISO C 99: Sizes of integer types):
12358         Add size_max.
12359
12360 2005-08-12  Bruno Haible  <bruno@clisp.org>
12361
12362         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
12363
12364 2005-08-11  Simon Josefsson  <jas@extundo.com>
12365
12366         * modules/readline: New file.
12367
12368         * modules/strnlen (Files): Add strnlen.h.
12369
12370 2005-08-11  Simon Josefsson  <jas@extundo.com>
12371
12372         * m4/readline.m4: New file.
12373
12374 2005-08-11  Simon Josefsson  <jas@extundo.com>
12375
12376         * lib/readline.h, readline.c: New file.
12377
12378 2005-08-11  Simon Josefsson  <jas@extundo.com>
12379
12380         * doc/gnulib.texi (Initial import, Finishing touches): Mention
12381         gl_AVOID.
12382
12383 2005-08-11  Bruno Haible  <bruno@clisp.org>
12384
12385         * lib/strnlen.h (strnlen): Change parameter name to match comment.
12386
12387 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
12388
12389         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
12390
12391 2005-08-10  Simon Josefsson  <jas@extundo.com>
12392
12393         * tests/test-iconvme.c: New file.
12394
12395 2005-08-10  Simon Josefsson  <jas@extundo.com>
12396
12397         * m4/strnlen.m4: New file.
12398
12399         * m4/strndup.m4: Don't check for strnlen declaration, done in
12400         strnlen.m4.
12401
12402 2005-08-10  Simon Josefsson  <jas@extundo.com>
12403
12404         * lib/strndup.c: Use strnlen.h.
12405
12406         * lib/strnlen.h: New file.
12407
12408 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
12409
12410         * README: Typos.
12411
12412 2005-08-02  Simon Josefsson  <jas@extundo.com>
12413
12414         * modules/readline: New file.
12415
12416 2005-08-02  Simon Josefsson  <jas@extundo.com>
12417
12418         * modules/getdelim: New file.
12419
12420         * modules/getline: Rewrite, don't use getndelim2.
12421
12422 2005-08-02  Simon Josefsson  <jas@extundo.com>
12423
12424         * m4/getline.m4: Separate out getdelim stuff into separate module.
12425
12426         * m4/getdelim.m4: New file.
12427
12428 2005-08-02  Simon Josefsson  <jas@extundo.com>
12429
12430         * lib/getline.h, getline.c: Rewrite.
12431
12432         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
12433
12434 2005-07-31  Bruno Haible  <bruno@clisp.org>
12435
12436         * lib/lock.h (gl_lock_initializer): New macro.
12437         (gl_lock_define_initialized): Use it.
12438         (gl_rwlock_initializer): New macro.
12439         (gl_rwlock_define_initialized): Use it.
12440         (gl_recursive_lock_initializer): New macro.
12441         (gl_recursive_lock_define_initialized): Use it.
12442
12443 2005-07-30  Karl Berry  <karl@gnu.org>
12444
12445         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
12446         Report from Ben Pfaff, regarding getopt.
12447
12448 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
12449
12450         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
12451         normal way.
12452         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
12453         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
12454         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
12455         (gl_GETOPT): Use the new macros.  Most of the implementation
12456         is moved to the new macros.  This is for programs like Emacs
12457         that don't want all the functionality of gl_GETOPT.
12458
12459 2005-07-26  Bruno Haible  <bruno@clisp.org>
12460
12461         * m4/lock.m4: Update from GNU gettext.
12462
12463 2005-07-26  Bruno Haible  <bruno@clisp.org>
12464
12465         * lib/lock.h: Update from GNU gettext.
12466         * lib/lock.c: Update from GNU gettext.
12467
12468 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
12469
12470         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
12471         obsolescent AC_TRY_RUN.  Include the default includes files, for
12472         'exit'.
12473
12474 2005-07-24  Bruno Haible  <bruno@clisp.org>
12475
12476         * modules/visibility: New file.
12477         * MODULES.html.sh (Misc): Add visibility.
12478
12479 2005-07-24  Bruno Haible  <bruno@clisp.org>
12480
12481         * m4/visibility.m4: New file.
12482
12483 2005-07-24  Bruno Haible  <bruno@clisp.org>
12484
12485         * doc/visibility.texi: New file.
12486
12487 2005-07-22  Bruno Haible  <bruno@clisp.org>
12488
12489         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
12490         $(ALLOCA_H), redundant through BUILT_SOURCES.
12491         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
12492         redundant through BUILT_SOURCES.
12493         * modules/byteswap (Makefile.am): Remove explicit dependency on
12494         $(BYTESWAP_H), redundant through BUILT_SOURCES.
12495         * modules/fnmatch (Makefile.am): Remove explicit dependency on
12496         $(FNMATCH_H), redundant through BUILT_SOURCES.
12497         * modules/getopt (Makefile.am): Remove explicit dependency on
12498         $(GETOPT_H), redundant through BUILT_SOURCES.
12499         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
12500         redundant through BUILT_SOURCES.
12501         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
12502         redundant through BUILT_SOURCES.
12503         * modules/stdbool (Makefile.am): Remove explicit dependency on
12504         $(STDBOOL_H), redundant through BUILT_SOURCES.
12505         * modules/stdint (Makefile.am): Remove explicit dependency on
12506         $(STDINT_H), redundant through BUILT_SOURCES.
12507         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
12508         Remove explicit dependency on $(SYSEXITS_H).
12509         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
12510
12511 2005-07-18  Simon Josefsson  <jas@extundo.com>
12512
12513         * lib/check-version.c (check_version): Accept identical versions too.
12514
12515 2005-07-18  Bruno Haible  <bruno@clisp.org>
12516
12517         * modules/lock: New file.
12518         * MODULES.html.sh (Multithreading): New section.
12519
12520 2005-07-18  Bruno Haible  <bruno@clisp.org>
12521
12522         * m4/lock.m4: New file, from GNU gettext.
12523
12524 2005-07-18  Bruno Haible  <bruno@clisp.org>
12525
12526         * lib/lock.h: New file, from GNU gettext.
12527         * lib/lock.c: New file, from GNU gettext.
12528
12529 2005-07-18  Bruno Haible  <bruno@clisp.org>
12530
12531         * lib/lock.h (gl_once_t): New type.
12532         (gl_once_define, gl_once): New macros.
12533         * lib/lock.c (fresh_once): New variable.
12534         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
12535         functions.
12536
12537 2005-07-16  Simon Josefsson  <jas@extundo.com>
12538
12539         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
12540         workaround, suggested by Bruno.
12541
12542 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
12543
12544         * modules/xalloc (Depends-on): Add xalloc-die.
12545         * modules/xvasprintf (Depends-on): Add xalloc-die.
12546
12547 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
12548
12549         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
12550         with a minor change.
12551
12552 2005-07-15  Bruno Haible  <bruno@clisp.org>
12553
12554         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
12555         When using lib/poll.c, define poll as rpl_poll.
12556
12557 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
12558
12559         * modules/argp (Depends-on): Remove unlocked-io.
12560
12561 2005-07-14  Derek Price  <derek@ximbiot.com>
12562
12563         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
12564         for glob symlink bug.
12565
12566 2005-07-14  Bruno Haible  <bruno@clisp.org>
12567
12568         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
12569         Instead, test for *_unlocked function declarations directly.
12570
12571 2005-07-11  Simon Josefsson  <jas@extundo.com>
12572
12573         * modules/size_max: New file.
12574
12575         * modules/xsize: Depend on size_max module for size_max.m4.
12576
12577 2005-07-11  Simon Josefsson  <jas@extundo.com>
12578
12579         * lib/size_max.h: New file.
12580
12581 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
12582
12583         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
12584         copyright symbol and the year.
12585         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
12586         (version_etc_va): Use parameterized copyright notice.
12587         Reword to conform to the current GNU coding standards.
12588
12589 2005-07-11  Karl Berry  <karl@gnu.org>
12590
12591         * doc/gnulib.texi (Quoting): new node.
12592         (Initial import): more info, from Patrice.
12593
12594 2005-07-11  Bruno Haible  <bruno@clisp.org>
12595
12596         * gnulib-tool (func_usage): Document option --avoid.
12597         (Command line options): Handle --avoid.
12598         (func_acceptable): New function.
12599         (func_modules_transitive_closure): Use it.
12600
12601 2005-07-11  Bruno Haible  <bruno@clisp.org>
12602
12603         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
12604         Reported by Jim Meyering.
12605
12606 2005-07-10  Bruno Haible  <bruno@clisp.org>
12607
12608         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
12609         Needed when size_t is smaller than 'unsigned int'.
12610         Reported by Paul Eggert.
12611
12612 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
12613
12614         * modules/argp (Depends-on): Add unlocked-io
12615
12616 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
12617
12618         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
12619         block of defines.
12620
12621 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
12622
12623         * config/srclist.txt: Comment out regcomp.c, since we have a porting
12624         fix now.
12625
12626 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
12627         and Paul Eggert  <eggert@cs.ucla.edu>
12628
12629         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
12630         in wint_t, not wchar_t.  Remove now-unnecessary cast.
12631
12632 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
12633
12634         * modules/regex (Files): Add lib/regex_internal.c,
12635         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
12636         (Depends-on): Add extensions.
12637         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
12638
12639 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
12640
12641         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
12642         pathconf.
12643         * m4/same.m4 (gl_SAME): Likewise.
12644         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
12645
12646         * m4/regex.m4: Adjust to new libc regex implementation.
12647         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
12648         all the .c and .h parts of (the new) regex.
12649         Quote the m4 stuff better.
12650         Check for RE_ICASE bug of old gnulib.
12651         Check for REG_STARTEND of recent libc.
12652         Rename local variables from jm_* to gl_*.
12653         Quote operand of "test -f".
12654         Say "recent enough" version of libc, not "version 2".
12655         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
12656         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
12657         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
12658         Remove check for btowc, isascii.
12659         Require AM_LANGINFO_CODESET.
12660
12661 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
12662
12663         * lib/regex.c, regex.h: Sync from libc.
12664         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
12665         * lib/regexec.c:
12666         New files, synced from libc, except that regex_internal.h
12667         currently has a small porting fix.
12668
12669 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
12670
12671         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
12672         regex_internal.c, regexec.c.
12673         Add regex_internal.h too, but as a comment, since the libc version
12674         is currently broken in gnulib mode.
12675
12676 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
12677
12678         Support programs like Emacs that use gnulib but not gettext.
12679         * MODULES.html.sh (Internationalization functions): Add gettext-h.
12680         * modules/gettext-h: New file.
12681         * modules/gettext (Files): Remove lib/gettext.h.
12682         (Depends-on): Add gettext-h.
12683         (Makefile.am): Remove lib_SOURCES.
12684         * modules/argmatch, modules/c-stack, modules/closeout:
12685         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
12686         * modules/execute, modules/file-type, modules/getaddrinfo:
12687         * modules/getopt, modules/human, modules/javacomp:
12688         * modules/javaexec, modules/mkdir-p, modules/obstack:
12689         * modules/openat, modules/pagealign_alloc, modules/pipe:
12690         * modules/quotearg, modules/regex, modules/rpmatch:
12691         * modules/unicodeio, modules/userspec, modules/version-etc:
12692         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
12693         * modules/xsetenv:
12694         Depend on gettext-h, not gettext.
12695
12696 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
12697
12698         * gnulib-tool (func_import): Add support for 'public domain' license.
12699         * modules/alloca, modules/atexit, modules/memmove:
12700         Now public domain, not GPL.
12701         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
12702         * modules/realloc, modules/strerror, modules/strtod:
12703         Now LGPL, not GPL.
12704
12705 2005-07-05  Bruno Haible  <bruno@clisp.org>
12706
12707         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
12708         autoconf CVS. Needed for mingw.
12709
12710 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
12711
12712         Remove the dependency of the strftime module on the tzset module.
12713         * modules/strftime (Depends-on): Remove dependency on tzset.
12714
12715 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
12716
12717         Remove the dependency of the strftime module on the tzset module.
12718         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
12719         gl_FUNC_TZSET_CLOBBER.
12720
12721 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
12722
12723         Remove the dependency of the strftime module on the tzset module.
12724         * lib/strftime.c (my_strftime)
12725         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
12726         Copy the input structure, to work around some of the bug with
12727         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
12728         Solaris releases, you should also use the tzset module, but we won't
12729         require it as a dependency any more since we don't want LGPLed code
12730         to depend on GPLed code.
12731
12732 2005-07-02  Jim Meyering  <jim@meyering.net>
12733
12734         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
12735         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
12736         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
12737         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
12738
12739 2005-07-02  Jim Meyering  <jim@meyering.net>
12740
12741         * lib/backupfile.c (backup_args): Change a `0' to NULL.
12742
12743 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
12744
12745         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
12746         declares only 'struct timespec;' (!).
12747
12748 2005-07-01  Jim Meyering  <jim@meyering.net>
12749
12750         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
12751         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
12752         * lib/save-cwd.c, tempname.c:
12753         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
12754         and don't include <sys/file.h>).
12755
12756 2005-06-29  Jim Meyering  <jim@meyering.net>
12757
12758         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
12759         type name.  Use the variable name instead.
12760         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
12761         Likewise.
12762
12763 2005-06-28  Simon Josefsson  <jas@extundo.com>
12764
12765         * modules/check-version (Files): Add check-version.m4.
12766
12767 2005-06-28  Simon Josefsson  <jas@extundo.com>
12768
12769         * m4/check-version.m4: New file, suggested by Jim Meyering
12770         <jim@meyering.net>.
12771
12772 2005-06-28  Simon Josefsson  <jas@extundo.com>
12773
12774         * lib/check-version.h, lib/check-version.c: New files.
12775
12776 2005-06-28  Simon Josefsson  <jas@extundo.com>
12777
12778         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
12779         collision with global variable.  Better indentation.  Don't
12780         increment buffer pointer beyond buffer end.  Based on comments
12781         from Paul Eggert <eggert@cs.ucla.edu>.
12782
12783         * lib/base64.h: Indent.
12784
12785 2005-06-28  Simon Josefsson  <jas@extundo.com>
12786
12787         * doc/gnulib.texi (Library version handling): New section.
12788
12789 2005-06-28  Jim Meyering  <jim@meyering.net>
12790
12791         * check-module (find_included_lib_files): Hard-code another
12792         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
12793         but modules/fts-lgpl (correctly) does not list those files.
12794
12795         * modules/canonicalize (Files): Add lib/pathmax.h.
12796
12797 2005-06-25  Simon Josefsson  <jas@extundo.com>
12798
12799         * modules/check-version: New file.
12800
12801 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
12802
12803         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
12804         initializer of struct addrinfo, as an indication that we don't
12805         care how many members the structure has.
12806
12807 2005-06-24  Derek Price  <derek@ximbiot.com>
12808         and Bruno Haible  <bruno@clisp.org>
12809
12810         Remove stat module & update lstat.
12811         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
12812         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
12813         * m4/stat.m4: Remove this file.
12814
12815 2005-06-24  Derek Price  <derek@ximbiot.com>
12816         and Bruno Haible  <bruno@clisp.org>
12817
12818         Remove stat module & update lstat.
12819         * lib/stat.c: Remove this file...
12820         (slash_aware_lstat): ...moving this content and its support...
12821         * lib/lstat.c (rpl_lstat): ...into here.
12822         * lib/lstat.h: New file.
12823
12824 2005-06-24  Derek Price  <derek@ximbiot.com>
12825         and Bruno Haible  <bruno@clisp.org>
12826
12827         Remove stat module & update lstat.
12828         * config/srclist.txt (libc sources): Remove stat.
12829
12830 2005-06-24  Derek Price  <derek@ximbiot.com>
12831         and Bruno Haible  <bruno@clisp.org>
12832
12833         Remove stat module & update lstat.
12834         * MODULES.html.sh (stat): Remove.
12835         * MODULES.html: Regenerated.
12836         * modules/lstat (Description): Correct function name.
12837         (Files): Add "lstat.h".
12838         (Depends-on): Remove stat, add xalloc, stat-macros.
12839         * modules/stat: Remove this file.
12840         (Include): Add "lstat.h", remove <sys/stat.h>.
12841
12842 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
12843
12844         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
12845         (ranged_convert): Don't save conversion in a temporary struct.
12846         This causes a warning with GCC 4.0.0, and anyway in the typical
12847         case it's not worth the extra 100 bytes or so of code.
12848         (ranged_convert, __mktime_internal): When calling a function via a
12849         pointer P, use P () rather than (*P) (), as we now assume C89 or
12850         better.
12851
12852 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
12853
12854         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
12855         "who -r" failed to give output.  Problem reported by Tim Waugh.
12856
12857         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
12858         (xcalloc): Use it to avoid needless tests.
12859         Problem reported by Jim Meyering.
12860
12861 2005-06-20  Derek Price  <derek@ximbiot.com>
12862
12863         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
12864         unnecessary for Autoconfs > 2.59c.
12865
12866 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
12867
12868         * lib/argp.h (__option_is_short): Check upper limit of
12869         __key. Isprint() requires its argument to have the value
12870         of an unsigned char or EOF.
12871
12872 2005-06-16  Jim Meyering  <jim@meyering.net>
12873
12874         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
12875         when either N or S is zero.
12876
12877 2005-06-16  Derek Price  <derek@ximbiot.com>
12878
12879         * m4/bison.m4: Declare YACC & YFLAGS precious.
12880
12881 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
12882
12883         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
12884         multibyte string or pattern, fall back on unibyte matching.
12885         Problem reported by James Youngman.
12886
12887 2005-06-08  Bruno Haible  <bruno@clisp.org>
12888
12889         * modules/csharpcomp: New file.
12890         * MODULES.html.sh (C#): Add csharpcomp.
12891
12892 2005-06-08  Bruno Haible  <bruno@clisp.org>
12893
12894         * m4/csharpcomp.m4: New file, from GNU gettext.
12895
12896 2005-06-08  Bruno Haible  <bruno@clisp.org>
12897
12898         * lib/csharpcomp.h: New file, from GNU gettext.
12899         * lib/csharpcomp.c: New file, from GNU gettext.
12900         * lib/csharpcomp.sh.in: New file, from GNU gettext.
12901
12902 2005-06-08  Bruno Haible  <bruno@clisp.org>
12903
12904         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
12905         warning on mingw.
12906
12907 2005-06-07  Derek Price  <derek@ximbiot.com>
12908
12909         Sync from CVS.
12910         * lib/glob_.h: Indent nested #ifdef.
12911
12912 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
12913
12914         Sync from coreutils.
12915         Use "file name" when talking about file names, instead of "filename"
12916         or "path", as per the GNU coding standards.
12917         * lib/mkdir-p.c: Renamed from makepath.c.
12918         (make_dir_parents): Renamed from make_path.  All callers changed.
12919         * lib/mkdir-p.h: Likewise.  All includers changed.
12920         * lib/filenamecat.c: Renamed from path-concat.c.
12921         (file_name_concat): Renamed from path_concat.  All callers changed.
12922         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
12923         * lib/filenamecat.h: Likewise.  All includers changed.
12924         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
12925         in comments or local variable names.
12926         * lib/basename.c: Likewise.
12927         * lib/canonicalize.c, canonicalize.h: Likewise.
12928         * lib/dirname.c, dirname.h: Likewise.
12929         * lib/euidaccess.c: Likewise.
12930         * lib/exclude.c: Likewise
12931         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
12932         * lib/fsusage.c, fsuage.h: Likewise.
12933         * lib/fts.c, fts_.h: Likewise.
12934         * lib/getcwd.c: Likewise.
12935         * lib/getloadavg.c: Likewise.
12936         * lib/mkstemp.c: Likewise.
12937         * lib/mountlist.c, mountlist.h: Likewise.
12938         * lib/openat.c, openat.h: Likewise.
12939         * lib/readlink-stub.c: Likewise.
12940         * lib/readutmp.c, readutmp.h: Likewise.
12941         * lib/rename.c: Likewise.
12942         * lib/rmdir.c: Likewise.
12943         * lib/same.c: Likewise.
12944         * lib/savedir.c: Likewise.
12945         * lib/stripslash.c: Likewise.
12946         * lib/tempname.c: Likewise.
12947         * lib/xreadlink.c: Likewise.
12948         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
12949         All uses changed.
12950         * lib/exclude.h: Likewise.
12951
12952         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
12953         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
12954         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
12955         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
12956         * lib/pathmax.h: Include <limits.h> unconditionally, since other
12957         files have been getting away with it for years (MORE/BSD 4.3
12958         is extinct now).
12959         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
12960         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
12961
12962         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
12963         Define to 256, not 255, as per modern POSIX.
12964
12965 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
12966
12967         Sync from coreutils.
12968         Use "file name" when talking about file names, instead of "filename"
12969         or "path", as per the GNU coding standards.
12970         * MODULES.html.sh: mkdir-p renamed from makepath.
12971         filenamecat renamed from path-concat.
12972         * modules/filenamecat: Renamed from modules/path-concat.
12973         (Files): filenamecat.h and filenamecat.c renamed from
12974         path-concat.h and path-concat.c.
12975         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
12976         (Include): filenamecat.h, not path-concat.h.
12977         * modules/mkdir-p: Renamed from modules/makepath.
12978         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
12979         makepath.c.
12980         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
12981         (Include): mkdir-p.h, not makepath.h.
12982
12983 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
12984
12985         Sync from coreutils.
12986         * m4/mkdir-p.m4: Renamed from makepath.m4.
12987         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
12988         Rename files from makepath.c to mkdir-p.c, and from
12989         makepath.h to mkdir-p.h.
12990         * m4/filenamecat.m4: Renamed from path-concat.m4.
12991         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
12992         Rename files from path-concat.c to filenamecat.c,
12993         and from path-concat.h to filenamecat.h.
12994         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
12995         "file name" in local variables or comments.
12996         * m4/rename.m4: Likewise.
12997
12998 2005-06-01  Bruno Haible  <bruno@clisp.org>
12999
13000         * modules/csharpexec: New file.
13001         * MODULES.html.sh (C#): New section.
13002
13003 2005-06-01  Bruno Haible  <bruno@clisp.org>
13004
13005         * m4/csharp.m4: New file, from GNU gettext.
13006         * m4/csharpexec.m4: New file, from GNU gettext.
13007
13008 2005-06-01  Bruno Haible  <bruno@clisp.org>
13009
13010         * lib/csharpexec.h: New file, from GNU gettext.
13011         * lib/csharpexec.c: New file, from GNU gettext.
13012         * lib/csharpexec.sh.in: New file, from GNU gettext.
13013
13014 2005-05-31  Derek Price  <derek@ximbiot.com>
13015             Paul Eggert  <eggert@cs.ucla.edu>
13016
13017         Sync from cvs.
13018         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
13019
13020 2005-05-31  Derek Price  <derek@ximbiot.com>
13021             Paul Eggert  <eggert@cs.ucla.edu>
13022
13023         Sync from cvs.
13024         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
13025
13026 2005-05-29  Derek Price  <derek@ximbiot.com>
13027
13028         * config/srclist.txt (glob_.h, glob.c): Add these files.
13029
13030 2005-05-29  Derek Price  <derek@ximbiot.com>
13031
13032         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
13033         * modules/glob: New file.
13034         * modules/getlogin_r: Add link to POSIX spec in description.
13035
13036 2005-05-29  Derek Price  <derek@ximbiot.com>
13037             Paul Eggert  <eggert@cs.ucla.edu>
13038
13039         * m4/glob.m4: New file.
13040
13041 2005-05-29  Derek Price  <derek@ximbiot.com>
13042             Paul Eggert  <eggert@cs.ucla.edu>
13043
13044         * lib/glob_.h, lib/glob.c: New files.
13045
13046 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
13047
13048         * modules/fts (Files): Remove m4/inttypes-pri.m4.
13049         * modules/fts-lgpl (Depends-on): Remove gettext.
13050
13051 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
13052
13053         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
13054         and don't require gt_INTTYPES_PRI.
13055
13056 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
13057
13058         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
13059
13060         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
13061         the configuration hassle isn't worth it.
13062         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
13063         (LONGEST_MODIFIER, PRIuMAX): Remove.
13064
13065 2005-05-27  Bruno Haible  <bruno@clisp.org>
13066
13067         * lib/getlogin_r.h: Remove second include of <stddef.h>.
13068
13069 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
13070
13071         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
13072         _POSIX_PTHREAD_SEMANTICS for Solaris.
13073
13074 2005-05-25  Derek Price  <derek@ximbiot.com>
13075
13076         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
13077
13078 2005-05-25  Derek Price  <derek@ximbiot.com>
13079             Paul Eggert  <eggert@cs.ucla.edu>
13080
13081         * modules/getlogin_r, m4/getlogin_r.m4: New files.
13082         * lib/getlogin_r.c, getlogin_r.h: New files.
13083
13084 2005-05-25  Bruno Haible  <bruno@clisp.org>
13085             Derek Price  <derek@ximbiot.com>
13086
13087         * lib/getlogin_r.h: Simplify API documentation.
13088
13089 2005-05-23  Derek Price  <derek@ximbiot.com>
13090
13091         * modules/minmax (Files): Add m4/minmax.m4.
13092         (configure.ac): Add gl_MINMAX.
13093
13094 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
13095
13096         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
13097         so that unistd-safer.h (GPL'ed code) need not be included.
13098
13099 2005-05-22  Bruno Haible  <bruno@clisp.org>
13100
13101         * m4/minmax.m4: New file.
13102         Based on a patch by Derek Price <derek@ximbiot.com>.
13103
13104 2005-05-22  Bruno Haible  <bruno@clisp.org>
13105
13106         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
13107         (INT64_MIN): Fix definition.
13108         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
13109
13110         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
13111         NEED_SIGNED_INT_TYPES.
13112
13113         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
13114         HAVE_SYSTEM_INTTYPES.
13115
13116 2005-05-22  Bruno Haible  <bruno@clisp.org>
13117
13118         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
13119         Also include <sys/param.h> if it defines MIN, MAX.
13120         Based on a patch by Derek Price <derek@ximbiot.com>.
13121
13122 2005-05-21  Jim Meyering  <jim@meyering.net>
13123
13124         * modules/fts (Files): Add m4/inttypes-pri.m4.
13125         (Depends-on): Add lstat and remove gettext.  Alphabetize.
13126
13127 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
13128
13129         New fts module.
13130         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
13131         (setup_dir, free_dir): New functions.
13132         (enter_dir, leave_dir): Define trivial
13133         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
13134         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
13135         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
13136         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
13137         Move to fts-cycle.c.
13138         (fts_open): Use setup_dir.
13139         (fts_close): Use free_dir.
13140         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
13141         This adds a label and some gotos, but the alternatives were messier.
13142         Check for memory allocation failure when entering a dir.
13143         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
13144         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
13145         (FTS): New member fts_cycle, that is a union that contains the
13146         old active_dir_ht and cycle_state.  All uses changed to mention
13147         fts_cycle.ht and fts_cycle.state.
13148         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
13149         fts.c, with the following changes:
13150         (setup_dir, free_dir): New functions.
13151         (enter_dir): Now returns bool.  Return true if successful, false
13152         if memory exhausted.  All callers changed.
13153         Do not bother partly cleaning up on
13154         memory allocation failure; that is free_dir's job.
13155         However, free ad if hash_insert fails, to avoid memory leak.
13156         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
13157         fts->fts_options to see which union member to use.
13158
13159 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
13160
13161         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
13162         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
13163
13164 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
13165
13166         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
13167
13168 2005-05-20  Jim Meyering  <jim@meyering.net>
13169
13170         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
13171         Now a macro, to pacify GCC.
13172
13173 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
13174
13175         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
13176         of -1.
13177
13178 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
13179
13180         * lib/chown.c (rpl_chown): Return -1 on failure.
13181
13182 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
13183
13184         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
13185         Don't check for stddef.h.
13186         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
13187         don't use its results.
13188         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
13189         since we include them unconditionally.  Don't require
13190         AM_STDBOOL_H, since stdbool is a prerequisite.
13191         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
13192         since we assume C89 or better.
13193         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
13194         as we don't use their results.
13195         Don't check for fchdir, memmove, memset, strrchr, as we use
13196         them unconditionally.
13197         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
13198         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
13199
13200 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
13201
13202         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
13203         Include <stddef.h> unconditionally, since we assume C89 now.
13204         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
13205         * lib/fts.c: Include fts_.h first, to check interface.
13206         Do not include intprops.h; no longer needed.
13207         Include cycle-check.h and hash.h, since fts_.h no longer does.
13208         Remove unnecessary casts of closedir to void.
13209         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
13210         decide whether to decrement nlinks.
13211         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
13212         (FTS): Use struct hash_table * instead of Hash_table, so that
13213         we no longer need to include hash.h here.
13214
13215 2005-05-18  Jim Meyering  <jim@meyering.net>
13216
13217         * modules/dirfd (License): Change to LGPL.  Most of the code
13218         is already in the public domain.
13219
13220 2005-05-18  Jim Meyering  <jim@meyering.net>
13221
13222         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
13223         Reported by Yoann Vandoorselaere.
13224
13225 2005-05-17  Jim Meyering  <jim@meyering.net>
13226
13227         * m4/fts.m4: New file, from coreutils.
13228
13229 2005-05-17  Jim Meyering  <jim@meyering.net>
13230
13231         * lib/fts.c, lib/fts_.h: New files, from coreutils.
13232
13233 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
13234
13235         Sync from coreutils.
13236         * m4/unlinkdir.m4: New file.
13237
13238 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
13239
13240         Sync from coreutils.
13241         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
13242         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
13243         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
13244         White space changes only.
13245         * lib/makepath.c (make_path): Port to hosts where leading "//" is
13246         special.
13247         * lib/yesno.c: Include getline.h, not ctype.h.
13248         (yesno): Don't remove leading white space; POSIX doesn't allow it.
13249         Use getline to remove arbitrary restriction on response length.
13250
13251 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
13252
13253         * config/srclist-update: Spell out "Street" in FSF postal
13254         mail address; this is the style the FSF seems to prefer.
13255
13256         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
13257         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
13258         this updates FSF postal mail address.
13259
13260         Sync from coreutils.
13261         * modules/unlinkdir: New file.
13262         * modules/yesno (Depends-on): Add getline.
13263         * MODULES.html.sh (File system functions): Add unlinkdir.
13264
13265 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
13266
13267         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
13268         lib/strsep.h:
13269         Change the initial comment to refer to GPL, not LGPL.
13270         gnulib-tool will change it to LGPL as needed.
13271
13272         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
13273         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
13274         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
13275         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
13276         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
13277         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
13278         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
13279         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
13280         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
13281         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
13282         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
13283         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
13284         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
13285         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
13286         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
13287         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
13288         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
13289         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
13290         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
13291         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
13292         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
13293         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
13294         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
13295         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
13296         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
13297         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
13298         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
13299         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
13300         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
13301         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
13302         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
13303         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
13304         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
13305         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
13306         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
13307         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
13308         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
13309         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
13310         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
13311         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
13312         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
13313         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
13314         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
13315         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
13316         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
13317         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
13318         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
13319         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
13320         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
13321         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
13322         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
13323         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
13324         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
13325         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
13326         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
13327         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
13328         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
13329         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
13330         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
13331         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
13332         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
13333         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
13334         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
13335         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
13336         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
13337         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
13338         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
13339         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
13340         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
13341         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
13342         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
13343         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
13344         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
13345         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
13346         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
13347         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
13348         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
13349         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
13350         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
13351         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
13352         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
13353         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
13354         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
13355         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
13356         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
13357         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
13358         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
13359         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
13360         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
13361         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
13362         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
13363         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
13364         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
13365         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
13366         lib/yesno.c, lib/yesno.h:
13367         Update FSF postal mail address.
13368
13369 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
13370
13371         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
13372         tests/test-memmem.c, tests/test-stpncpy.c:
13373         Update FSF postal mail address.
13374
13375 2005-05-13  Bruno Haible  <bruno@clisp.org>
13376
13377         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
13378         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
13379         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
13380         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
13381         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
13382         Add support for 64-bit integers in the MSVC compiler.
13383
13384 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
13385
13386         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
13387
13388 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
13389
13390         * gnulib-tool (func_import): Sort and uniquify recommended includes.
13391
13392 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
13393
13394         * doc/getdate.texi (General date syntax): Don't say that date
13395         date --iso-8601=ns generates acceptable dates; it doesn't yet.
13396         Problem reported by Nic Ferrier.
13397
13398 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
13399
13400         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
13401         specified in ai_socktype. Fix invalid ai_protocol
13402         check. ai_protocol is usually set to 0 or depending on
13403         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
13404         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
13405         ai_socktype / ai_protocol in the returned addrinfo structure.
13406
13407 2005-05-10  Simon Josefsson  <jas@extundo.com>
13408
13409         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
13410         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
13411
13412 2005-05-10  Karl Berry  <karl@gnu.org>
13413
13414         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
13415         (from http://www.gnu.org/licenses).
13416         * doc/COPYING.LIB: also rename to COPYING.LESSER.
13417         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
13418         fdl.texi suffices.
13419
13420 2005-05-10  Karl Berry  <karl@gnu.org>
13421
13422         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
13423         (COPYING.DOC): remove.
13424
13425         * config/srclist-update: new FSF address.
13426
13427 2005-05-10  Derek Price  <derek@ximbiot.com>
13428
13429         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
13430         possible.
13431
13432 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
13433             Bruno Haible  <bruno@clisp.org>
13434
13435         * modules/inet_ntop: New file.
13436         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
13437         inet_ntop.
13438
13439 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
13440             Bruno Haible  <bruno@clisp.org>
13441
13442         * m4/inet_ntop.m4: New file.
13443
13444 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
13445             Bruno Haible  <bruno@clisp.org>
13446
13447         * lib/inet_ntop.h: New file.
13448         * lib/inet_ntop.c: New file, from glibc with modifications.
13449
13450 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
13451
13452         * modules/time_r (License): Change to LGPL.
13453         * modules/extensions (License): Change to LGPL.  Actually,
13454         the license is more permissive than that, but currently gnulib-tool
13455         doesn't know how to handle more-permissive licenses.
13456
13457         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
13458         Problem reported by Dave Love.
13459
13460 2005-05-08  Jim Meyering  <jim@meyering.net>
13461
13462         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
13463         blank.
13464
13465 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
13466
13467         * modules/argmatch (Depends-on): Add stdbool.
13468         * modules/backupfile (Depends-on): Likewise.
13469         * modules/chdir-long (Depends-on): Likewise.
13470         * modules/closeout (Depends-on): Likewise.
13471         * modules/cycle-check (Depends-on): Likewise.
13472         * modules/dirname (Depends-on): Likewise.
13473         * modules/fnmatch (Depends-on): Likewise.
13474         * modules/fsusage (Depends-on): Likewise.
13475         * modules/fwriteerror (Depends-on): Likewise.
13476         * modules/getcwd (Depends-on): Likewise.
13477         * modules/getloadavg (Depends-on): Likewise.
13478         * modules/hard-locale (Depends-on): Likewise.
13479         * modules/makepath (Depends-on): Likewise.
13480         * modules/mountlist (Depends-on): Likewise.
13481         * modules/nanosleep (Depends-on): Likewise.
13482         * modules/posixtm (Depends-on): Likewise.
13483         * modules/quotearg (Depends-on): Likewise.
13484         * modules/readtokens (Depends-on): Likewise.
13485         * modules/readtokens0 (Depends-on): Likewise.
13486         * modules/readutmp (Depends-on): Likewise.
13487         * modules/save-cwd (Depends-on): Likewise.
13488         * modules/strftime (Depends-on): Likewise.
13489         * modules/userspec (Depends-on): Likewise.
13490         * modules/utimecmp (Depends-on): Likewise.
13491         * modules/xgetcwd (Depends-on): Likewise.
13492         * modules/xnanosleep (Depends-on): Likewise.
13493         * modules/xstrtod (Depends-on): Likewise.
13494         * modules/yesno (Depends-on): Likewise.
13495
13496 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
13497
13498         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
13499         needless checks.
13500
13501 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
13502
13503         Merge from coreutils.  Among other things,
13504         add bulletproofing for cases where stdin, stdout, or stderr are closed.
13505         * lib/fd-safer.c: New file.
13506         * lib/fcntl-safer.h, open-safer.c: Remove.
13507         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
13508         * lib/dup-safer.c: Include unistd-safer.h first.
13509         Don't include errno.h.
13510         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
13511         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
13512         * lib/file-type.c: Rely on file-type.h change.
13513         * lib/getloadavg.c: Include unistd-safer.h.
13514         (getloadavg): Use safer open.
13515         * lib/getusershell.c: Include "stdio-safer.h".
13516         (getusershell): Use safer fopen.
13517         * lib/long-options.c (long_options): Use NULL rather than 0.
13518         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
13519         'free'.
13520         * lib/modechange.c: Likewise.
13521         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
13522         (MODE_DONE): New constant.
13523         (struct mode_change): Remove 'next' member.
13524         (make_node_op_equals): New function; like the old one of the
13525         same name, except it allocates an array.
13526         (mode_compile, mode_create_from_ref): Use it.
13527         (mode_compile): Allocate result as an array, not a linked list.
13528         Parse octal string ourself, so that we catch mistakes like "+0".
13529         (mode_adjust): Arg is an array, not a linked list.
13530         * lib/modechange.c: Include stat-macros.h, xalloc.h.
13531         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
13532         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
13533         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
13534         Remove.  This is now stat-macros.h's job.
13535         (talloc): Remove.  All callers replaced by xalloc, so that
13536         our invokers don't have to worry about reporting memory failures.
13537         (make_node_op_equals): Remove.
13538         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
13539         New constants.
13540         (struct mode_change): Moved here from modechange.h.
13541         (mode_append_entry): Remove.
13542         (mode_compile): Remove MASKED_OPS arg, since it encouraged
13543         apps to have incorrect behavior.  Use simpler algorithm for head
13544         and tail.  Don't futz with umask; that's now the job of mode_adjust.
13545         Detect more invalid usages rather than having somewhat-random behavior.
13546         Don't insert an "a=" action, as that leads to incorrect behavior.
13547         (mode_compile, mode_create_from_ref): Return NULL on error instead
13548         of an enum, since now there's only one way to have an error.  All
13549         callers changed.
13550         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
13551         at the correct time.  Simplify calculation of "+u" and its ilk.
13552         Don't mishandle "+X".
13553         (mode_free): Remove "register" and localize decls.
13554         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
13555         (struct mode_change): Move to modechange.c; callers don't
13556         need to see this stuff.
13557         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
13558         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
13559         (mode_change, mode_adjust): Reflect the new signatures noted above.
13560         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
13561         that might redefine system include files.
13562         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
13563         (my_usleep): Use NULL rather than (void *) 0.
13564         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
13565         Use siginterrupt to specify that system calls should be interrupted.
13566         (rpl_nanosleep): Move initialization of suspended closer to call of
13567         my_usleep.
13568         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
13569         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
13570         (desirable_utmp_entry): New function.
13571         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
13572         using x2nrealloc, to simplify logic.
13573         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
13574         size calculation.  Do not assume utmp file is a regular file.
13575         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
13576         (READ_UTMP_CHECK_PIDS): New constant.
13577         * lib/save-cwd.c: Include unistd-safer.h.
13578         (save_cwd): Use fd_safer.
13579         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
13580         [!_LIBC] Include "stat-macros.h" instead.
13581         * lib/unistd-safer.h (fd_safer): New decl.
13582
13583 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
13584
13585         * modules/getloadavg (Depends-on): Add unistd-safer.
13586         * modules/getusershell (Depends-on): Add stdio-safer.
13587         * modules/lstat (Depends-on): Remove xalloc.
13588         * modules/mkstemp (Depends-on): Add stat-macros.
13589         * modules/modechange (Depends-on): Remove xstrtol.
13590         Add stat-macros, xalloc.
13591         * modules/save-cwd (Depends-on): Add unistd-safer.
13592         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
13593         * modules/unistd-safer (Files): Add lib/fd-safer.c
13594         (Makefile.am): Remove lib_SOURCES.
13595
13596         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
13597         Remove fcntl-safer; unistd-safer supersedes it.
13598
13599 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
13600
13601         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
13602         AC_HEADER_STAT.
13603         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
13604         (gl_PREREQ_CHOWN): Remove.
13605         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
13606         it.  Don't require AC_HEADER_STAT.
13607         (gl_PREREQ_LSTAT): Remove.
13608         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
13609         Don't require AC_HEADER_STAT.
13610         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
13611         (gl_PREREQ_RMDIR): Remove.
13612         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
13613         mention stat-macros.h or AC_HEADER_STAT, since we'll make
13614         the stat-macros module a prerequisite.
13615         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
13616         * m4/filemode.m4 (gl_FILEMODE): Likewise.
13617         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
13618         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
13619         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
13620         variable names.
13621         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
13622         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
13623         variable prefixes.
13624         * m4/fcntl-safer.m4: Remove.
13625         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
13626         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
13627         Invoke gl_PREREQ_FD_SAFER.
13628         (gl_PREREQ_FD_SAFER): New macro.
13629         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
13630         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
13631         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
13632         Remove duplicate call to AC_LIBOBJ(readutmp).
13633         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
13634
13635         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
13636         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
13637
13638 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
13639
13640         * MODULES.html.sh (Misc): Add byteswap.
13641
13642 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
13643
13644         * modules/getcwd (Depends-on): Add extensions.
13645         * modules/openat (Depends-on): Likewise.
13646
13647 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
13648
13649         * modules/byteswap: New file.
13650
13651 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
13652
13653         * m4/byteswap.m4: New file.
13654
13655 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
13656
13657         * lib/byteswap_.h: New file.
13658
13659 2005-04-25  Karl Berry  <karl@gnu.org>
13660
13661         * m4/gettext.m4: Update from GNU gettext 0.14.4.
13662
13663 2005-04-25  Albert Chin  <china@thewrittenword.com>
13664
13665         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
13666         Toolkit C bug.
13667
13668 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
13669
13670         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
13671         (func_ln_if_changed) Remove forcibly for no error message
13672         in case file does not exist.
13673
13674 2005-04-19  Simon Josefsson  <jas@extundo.com>
13675
13676         * gnulib-tool (Options): Make --symlink mean --symbolic.
13677
13678 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
13679
13680         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
13681
13682 2005-04-16  Simon Josefsson  <jas@extundo.com>
13683
13684         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
13685
13686 2005-04-15  Simon Josefsson  <jas@extundo.com>
13687
13688         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
13689
13690 2005-04-15  Simon Josefsson  <jas@extundo.com>
13691
13692         * gnulib-tool: Rename --symlink to --symbolic.
13693
13694 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
13695
13696         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
13697         symbolic links to files instead of copying/moving.  Add --aux-dir,
13698         specifying directory relative --dir where auxiliary build tools
13699         are placed.
13700
13701 2005-04-14  Bruno Haible  <bruno@clisp.org>
13702
13703         * modules/allocsa (License): Change to LGPL.
13704         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
13705
13706 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
13707
13708         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
13709         that "UTC +1 second" continues to work.  Problem reported
13710         by Dmitry V. Levin.
13711         (relunit_snumber): New rule.
13712         (relunit): Use it.
13713
13714 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
13715
13716         * lib/getdate.y (universal_time_zone_table): New constant.
13717         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
13718         universal_time_zone_table.
13719         (lookup_zone): Prefer universal_time_zone_table to
13720         local_time_zone_table, so that "GMT" time stamps are allowed in
13721         London during the summer.  Problem reported by Ian Abbott.
13722
13723 2005-04-12  Jim Meyering  <jim@meyering.net>
13724
13725         * lib/human.c (humblock): Set *options even when returning due to
13726         xstrtoumax conversion failure.  Thanks to a used-uninitialized
13727         warning from gcc-4.
13728
13729 2005-04-09  Jim Meyering  <jim@meyering.net>
13730
13731         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
13732         -Wuninitialized: initialize tm0.tm_year.
13733
13734 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
13735
13736         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
13737         count, since there's no maximum.  All uses changed.
13738         Add member dsts_seen.
13739         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
13740         not being INT_MAX.
13741         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
13742         Use pc_rels_seen to decide whther a date is absolute.
13743
13744         * lib/getdate.y (number): Don't overwrite year.
13745         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
13746         check.
13747
13748 2005-04-02  Simon Josefsson  <jas@extundo.com>
13749
13750         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
13751         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
13752
13753 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
13754
13755         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
13756         where no absolute path name can be longer than PATH_MAX.
13757
13758 2005-03-27  Jim Meyering  <jim@meyering.net>
13759
13760         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
13761
13762 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
13763
13764         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
13765         "one's complement" -> "ones' complement" in comment, as per Knuth.
13766         "value of type" -> "type or expression" in comment.
13767         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
13768
13769 2005-03-26  Jim Meyering  <jim@meyering.net>
13770
13771         Comment nits.
13772         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
13773         Correct typos: s/or/of/.
13774
13775 2005-03-26  Jim Meyering  <jim@meyering.net>
13776
13777         * modules/check-include-files: Move to ../ and rename to...
13778         * check-module: ...this.
13779
13780 2005-03-25  Jim Meyering  <jim@meyering.net>
13781
13782         * modules/xvasprintf (Files): Add xalloc.h.
13783
13784 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
13785
13786         * modules/gettext (Files): config/config.rpath ->
13787         build-aux/config.rpath
13788         * modules/iconv (Files): Likewise.
13789         Problem reported by Oskar Liljeblad.
13790
13791 2005-03-23  Jim Meyering  <jim@meyering.net>
13792
13793         * modules/check-include-files: New script to check for
13794         missing dependencies, multiple includes, etc.
13795
13796         * modules/c-strtold (Depends-on): Add xalloc.
13797         * modules/c-strtod (Depends-on): Add xalloc.
13798         * modules/hash (Depends-on): Add xalloc.
13799         (Files): Remove lib/xalloc.h.
13800
13801         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
13802         * modules/userspec (Files): Add lib/inttostr.h.
13803
13804 2005-03-23  Jim Meyering  <jim@meyering.net>
13805
13806         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
13807
13808 2005-03-22  Jim Meyering  <jim@meyering.net>
13809
13810         * modules/stat-macros: New module.
13811         * modules/canonicalize, modules/euidaccess, modules/file-type,
13812         * modules/filemode, modules/lchown, modules/makepath,
13813         * modules/rmdir, modules/stat: Depend on new stat-macros module
13814         rather than listing lib/stat-macros.h manually.
13815         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
13816
13817 2005-03-22  Jim Meyering  <jim@meyering.net>
13818
13819         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
13820
13821 2005-03-22  Bruno Haible  <bruno@clisp.org>
13822
13823         * config/srclist.txt: Replace target directory 'config' with
13824         'build-aux'.
13825         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
13826         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
13827         ../build-aux/.
13828
13829 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
13830
13831         * modules/chdir-long (Depends-on): Add mempcpy.
13832
13833         * modules/acl, modules/backupfile, modules/c-strtod,
13834         modules/c-strtold, modules/canon-host, modules/canonicalize,
13835         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
13836         modules/exclude, modules/exitfail, modules/file-type,
13837         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
13838         modules/getdate, modules/getline, modules/getpagesize,
13839         modules/getpass, modules/getugroups, modules/group-member,
13840         modules/hard-locale, modules/hash, modules/human, modules/idcache,
13841         modules/inttostr, modules/long-options, modules/makepath,
13842         modules/md5, modules/memcasecmp, modules/memcoll,
13843         modules/modechange, modules/mountlist, modules/path-concat,
13844         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
13845         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
13846         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
13847         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
13848         modules/strftime, modules/strndup, modules/strverscmp,
13849         modules/timespec, modules/unlocked-io, modules/userspec,
13850         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
13851         modules/yesno:
13852         Remove lib_SOURCES line from Makefile.am section, as this is now
13853         done automatically by the corresponding Autoconf macro.
13854
13855 2005-03-21  Jim Meyering  <jim@meyering.net>
13856
13857         Changes imported from coreutils.
13858
13859         * lib/cycle-check.c: Don't include xalloc.h.
13860
13861         * lib/path-concat.c: Don't include assert.h.
13862         (path_concat): Remove assertion that would have triggered
13863         for ABASE starting with more than one slash.
13864         Reported by Andreas Schwab.
13865
13866         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
13867         properly when ABASE is an absolute file name.
13868         Correct the description of this function.
13869         Include <assert.h>.
13870         Add an assertion and a test driver.
13871         This fixes a bug introduced on 2004-07-02.
13872         Andreas Schwab reported the resulting failure of cp --parents:
13873         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
13874
13875 2005-03-21  Jim Meyering  <jim@meyering.net>
13876
13877         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
13878         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
13879
13880 2005-03-21  Jim Meyering  <jim@meyering.net>
13881         and  Paul Eggert  <eggert@cs.ucla.edu>
13882
13883         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
13884         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
13885         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
13886         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
13887         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
13888         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
13889         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
13890         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
13891         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
13892         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
13893         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
13894         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
13895         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
13896         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
13897         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
13898         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
13899         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
13900         for these modules.
13901
13902 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
13903
13904         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
13905         (which shouldn't happen), generate nothing instead of returning 0
13906         immediately, so that nstrftime (NULL, ...) doesn't return 0.
13907
13908 2005-03-16  Bruno Haible  <bruno@clisp.org>
13909
13910         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
13911         HAVE_LONGLONG_64BIT.
13912
13913 2005-03-16  Bruno Haible  <bruno@clisp.org>
13914
13915         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
13916         HAVE_LONGLONG_64BIT.
13917
13918 2005-03-16  Bruno Haible  <bruno@clisp.org>
13919
13920         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
13921         HAVE_LONGLONG_64BIT.
13922
13923 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
13924
13925         * lib/strftime.c (my_strftime): Prepend space to format so that we can
13926         reliably distinguish strftime failure from empty output on POSIX
13927         hosts.
13928
13929 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
13930
13931         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
13932         (iconv_string): Don't guess a size-zero buffer, as that might cause
13933         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
13934         result would be 'too large', where 'too large' is (heuristically)
13935         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
13936         overflow concerns.  This will prevent some unwanted malloc failures
13937         when the inputs are very large.
13938
13939 2005-03-15  Karl Berry  <karl@gnu.org>
13940
13941         * config/srclist.txt (config.rpath): from gettext.
13942         * config/config.rpath: update.
13943
13944 2005-03-15  Bruno Haible  <bruno@clisp.org>
13945
13946         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
13947         to 'negate'.
13948
13949         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
13950         variable.
13951
13952         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
13953         results.
13954
13955 2005-03-14  Simon Josefsson  <jas@extundo.com>
13956
13957         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
13958         <fx@gnu.org>.
13959
13960 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
13961
13962         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
13963         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
13964         intprops.h.
13965         * lib/strtol.c: Likewise.
13966
13967 2005-03-14  Jim Meyering  <jim@meyering.net>
13968
13969         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
13970         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
13971         to be nonzero so that we (and caller) can detect the difference
13972         between a valid zero-length expansion and an error return, even
13973         when the underlying strftime fails before writing anything into
13974         that location.
13975
13976 2005-03-14  Bruno Haible  <bruno@clisp.org>
13977
13978         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
13979         Update from GNU gettext 0.14.3.
13980
13981 2005-03-10  Jim Meyering  <jim@meyering.net>
13982
13983         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
13984
13985 2005-03-10  Jim Meyering  <jim@meyering.net>
13986
13987         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
13988         so that this module works on systems without fchdir.
13989
13990 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
13991
13992         Factor int-properties macros into a single file, except for
13993         glibc-related files.
13994         * lib/intprops.h: New file.
13995         * lib/getloadavg.c: Include it instead of limits.h.
13996         (INT_STRLEN_BOUND): Remove.
13997         * lib/human.c: Include intprops.h.
13998         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
13999         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
14000         302/1000.
14001         * lib/inttostr.h: Include intprops.h instead of limits.h.
14002         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
14003         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
14004         for consistency with intprops.h.
14005         (time_t_is_integer, twos_complement_arithmetic): Use them.
14006         * lib/sig2str.h: Include <signal.h>, intprops.h.
14007         (INT_STRLEN_BOUND): Remove.
14008         * lib/strftime.c (TYPE_SIGNED): Remove.
14009         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
14010         * lib/strtol.c: Adjust comments to match intprops.h.
14011         * lib/userspec.c: Include intprops.h.
14012         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
14013         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
14014         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
14015         instead of rolling our own expressions.
14016         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
14017
14018         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
14019         instead of int.
14020         (my_strftime): Do not mishandle years close to INT_MAX, by doing
14021         the right thing even if adding 1900 would overflow.  Similarly
14022         for tm_mon + 1 and tm_yday + 1.
14023         Make %Y always equivalent to %C%y, and similarly for %G and %g.
14024         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
14025         (DO_SIGNED_NUMBER): New macro.
14026         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
14027
14028 2005-03-07  Bruno Haible  <bruno@clisp.org>
14029
14030         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
14031
14032 2005-03-07  Bruno Haible  <bruno@clisp.org>
14033
14034         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
14035
14036 2005-03-04  Derek R. Price  <derek@ximbiot.com>
14037
14038         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
14039         (func_import): Only replace files via --import when they have actually
14040         changed.
14041
14042 2005-03-03  Derek R. Price  <derek@ximbiot.com>
14043
14044         * m4/mmap-anon.m4: New file.
14045         * m4/pagealign_alloc.m4: New file.
14046
14047 2005-03-03  Derek R. Price  <derek@ximbiot.com>
14048             Bruno Haible  <bruno@clisp.org>
14049
14050         * modules/pagealign_alloc: New file.
14051         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
14052
14053 2005-03-03  Derek R. Price  <derek@ximbiot.com>
14054             Bruno Haible  <bruno@clisp.org>
14055
14056         * lib/pagealign_alloc.h: New file.
14057         * lib/pagealign_alloc.c: New file.
14058
14059 2005-03-03  Bruno Haible  <bruno@clisp.org>
14060
14061         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
14062         Use an all-permissive copyright notice, recommended by RMS.
14063
14064 2005-03-02  Bruno Haible  <bruno@clisp.org>
14065
14066         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
14067         of AIX, the replacement has to be done only after <string.h> is
14068         included, therefore not in config.h. stpncpy.h does the replacement,
14069         and stpncpy.c uses it.
14070
14071 2005-03-02  Bruno Haible  <bruno@clisp.org>
14072
14073         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
14074         stpncpy.c uses it.
14075
14076 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
14077
14078         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
14079         The workaround isn't strictly needed for POSIX conformance, and
14080         it's too much of a pain to configure and maintain.  We'll ask
14081         people to fix their kernels instead.
14082         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
14083         (NANOSLEEP_BUG_WORKAROUND): Remove.
14084         (xnanosleep): Remove the workaround.
14085
14086 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
14087
14088         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
14089         Reported by Derek Price.
14090         (Include): Add "timespec.h".
14091
14092         * modules/xnanosleep (Depends-on): Remove gethrxtime.
14093
14094 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
14095
14096         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
14097         to detect nanosleep bug.
14098
14099 2005-03-01  Bruno Haible  <bruno@clisp.org>
14100
14101         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
14102
14103 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
14104
14105         * modules/gethrxtime: New file.
14106         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
14107         (Depends-on): Add gethrxtime.
14108         (configure.ac): Add gl_XNANOSLEEP.
14109         (Makefile.am): Remove lib_SOURCES line.
14110
14111 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
14112
14113         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
14114         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
14115
14116 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
14117
14118         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
14119         * lib/timespec.h (gettime): Return void, since it always
14120         succeeds now.  All uses changed.
14121         * lib/gettime.c (gettime) Likewise.
14122         [HAVE_NANOTIME]: Prefer nanotime.
14123         Assume gettimeofday succeeds, as POSIX requires.
14124         Assime time () succeeds, since other code already does.
14125         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
14126         (timespec_subtract): Remove.
14127         (NANOSLEEP_BUG_WORKAROUND): New constant.
14128         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
14129         things considerably.  Use it only on GNU/Linux hosts, since the
14130         workaround shouldn't be needed elsewhere.
14131
14132 2005-02-24  Bruno Haible  <bruno@clisp.org>
14133
14134         * modules/gettext (Files): Add m4/glibc2.m4.
14135
14136 2005-02-24  Bruno Haible  <bruno@clisp.org>
14137
14138         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
14139         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
14140         * m4/progtest.m4:
14141         Update from GNU gettext 0.14.2.
14142         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
14143
14144 2005-02-24  Bruno Haible  <bruno@clisp.org>
14145
14146         * lib/localcharset.c: Update from GNU gettext 0.14.2.
14147         * lib/config.charset: Update from GNU gettext 0.14.2.
14148
14149 2005-02-24  Bruno Haible  <bruno@clisp.org>
14150
14151         * lib/gettext.h: Update from GNU gettext 0.14.2.
14152
14153 2005-02-23  Simon Josefsson  <jas@extundo.com>
14154
14155         * m4/iconvme.m4: New file.
14156
14157 2005-02-23  Jim Meyering  <jim@meyering.net>
14158
14159         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
14160         change.
14161         Thanks to Bruno Haible for catching it.
14162
14163 2005-02-22  Simon Josefsson  <jas@extundo.com>
14164
14165         * modules/iconvme: New file.
14166
14167         * MODULES.html.sh: Add iconvme.
14168
14169 2005-02-22  Simon Josefsson  <jas@extundo.com>
14170
14171         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
14172
14173 2005-02-22  Simon Josefsson  <jas@extundo.com>
14174
14175         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
14176
14177 2005-02-22  Jim Meyering  <jim@meyering.net>
14178
14179         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
14180         s/ifndef/ifdef/.
14181
14182 2005-02-20  Neil Conway  <neilc@samurai.com>
14183
14184         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
14185         returned by OSX/Darwin if the specified buffer is not large
14186         enough for the hostname.
14187
14188 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
14189
14190         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
14191         pass it to _help, otherwise the latter coredumps trying to
14192         dereference state.root_argp.
14193
14194 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
14195
14196         * modules/chdir-long (Depends-on): Add memrchr.
14197         * modules/memrchr (Files): Add lib/memrchr.h.
14198         (Include): "memrchr.h".
14199
14200 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
14201
14202         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
14203
14204 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
14205
14206         * lib/memrchr.h: New file.
14207         * lib/chdir-long.c: Include it.
14208         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
14209         Don't bother including stddef.h.
14210
14211 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
14212
14213         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
14214         inclusion.
14215         Include <sys/types.h>, for dev_t.
14216         (ME_DUMMY, ME_REMOTE): Move from here....
14217         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
14218         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
14219         Dmitry V. Levin.
14220         Include mountlist.h first, to test the interface.
14221
14222 2005-01-29  Bruno Haible  <bruno@clisp.org>
14223
14224         * lib/progname.c (program_name): Initialize.
14225         Needed when linking statically on MacOS X.
14226
14227 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
14228
14229         Sync from coreutils.
14230         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
14231         (Depends-on): Add c-strtod.
14232         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
14233
14234 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
14235
14236         Sync from coreutils.
14237         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
14238
14239         Remove files that are specific to coreutils.
14240         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
14241
14242 2005-01-28  Bruno Haible  <bruno@clisp.org>
14243
14244         * modules/javacomp: New file.
14245         * MODULES.html.sh (Java): Add javacomp.
14246
14247 2005-01-28  Bruno Haible  <bruno@clisp.org>
14248
14249         * m4/javacomp.m4: New file, from GNU gettext.
14250
14251 2005-01-28  Bruno Haible  <bruno@clisp.org>
14252
14253         * lib/javacomp.sh.in: New file, from GNU gettext.
14254         * lib/javacomp.h: New file, from GNU gettext.
14255         * lib/javacomp.c: New file, from GNU gettext.
14256
14257 2005-01-26  Simon Josefsson  <jas@extundo.com>
14258
14259         * lib/gai_strerror.c: Use GPL in header.
14260
14261 2005-01-26  Bruno Haible  <bruno@clisp.org>
14262
14263         * modules/javaexec: New file.
14264         * MODULES.html.sh (Java): Add javaexec.
14265
14266 2005-01-26  Bruno Haible  <bruno@clisp.org>
14267
14268         * m4/javaexec.m4: New file, from GNU gettext.
14269
14270 2005-01-26  Bruno Haible  <bruno@clisp.org>
14271
14272         * lib/javaexec.sh.in: New file, from GNU gettext.
14273         * lib/javaexec.h: New file, from GNU gettext.
14274         * lib/javaexec.c: New file, from GNU gettext.
14275
14276 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
14277
14278         * modules/lchown (Depends-on): Remove lchown.h
14279
14280 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
14281
14282         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
14283         must be defined if the header file was not found, in order
14284         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
14285
14286 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
14287
14288         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
14289         initializers for struct pentry_state.
14290         (__argp_error): Check return value of __asprintf
14291         (__argp_failure): Translate error message
14292
14293         * lib/argp-parse.c: Removed braces around the expansion of N_()
14294
14295 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
14296
14297         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
14298         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
14299         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
14300         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
14301         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
14302         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
14303         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
14304         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
14305         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
14306         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
14307         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
14308         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
14309         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
14310         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
14311         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
14312         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
14313         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
14314         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
14315         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
14316         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
14317         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
14318         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
14319         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
14320         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
14321         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
14322         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
14323         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
14324         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
14325         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
14326         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
14327         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
14328         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
14329         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
14330         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
14331         xstrtol.m4, xstrtoumax.m4, yesno.m4:
14332         Use an all-permissive copyright notice, recommended by RMS.
14333
14334 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
14335
14336         * modules/chdir-long (Depends-on): Remove mempcpy.
14337
14338 2005-01-21  Jim Meyering  <jim@meyering.net>
14339
14340         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
14341         same value as for Solaris 9.
14342
14343         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
14344         component length.  This included changing the parameter to be
14345         of type `char *' rather than `char const *'.
14346         * lib/chdir-long.h (chdir_long): Update prototype.
14347
14348         * lib/openat.c (fdopendir, fstatat): New functions.
14349         * lib/openat.h: Include headers required for use of DIR and struct
14350         stat.
14351         [AT_SYMLINK_NOFOLLOW]: Define.
14352         (fdopendir, fstatat): Add prototypes.
14353
14354 2005-01-21  Bruno Haible  <bruno@clisp.org>
14355
14356         * modules/classpath: New file.
14357         * MODULES.html.sh (Java): Add classpath.
14358
14359 2005-01-21  Bruno Haible  <bruno@clisp.org>
14360
14361         * lib/classpath.h: New file, from GNU gettext.
14362         * lib/classpath.c: New file, from GNU gettext.
14363
14364 2005-01-20  Simon Josefsson  <jas@extundo.com>
14365
14366         * modules/version-etc-fsf: New file.
14367
14368 2005-01-20  Simon Josefsson  <jas@extundo.com>
14369
14370         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
14371         * lib/version-etc.c: Remove version_etc_copyright.
14372         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
14373         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
14374
14375 2005-01-20  Simon Josefsson  <jas@extundo.com>
14376
14377         * lib/base64.h (isbase64): Add.
14378
14379         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
14380         using a unsigned prototype, don't inline.
14381         (base64_decode): Use it.
14382
14383 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
14384
14385         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
14386         it.
14387
14388 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
14389
14390         * lib/save-cwd.c (save_cwd): Remove code to support the case
14391         where fchdir is missing or flaky.
14392
14393 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
14394
14395         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
14396
14397 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
14398
14399         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
14400         AC_LIBSOURCES now does this.
14401         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
14402         with new ullong_max module.
14403
14404 2005-01-19  Bruno Haible  <bruno@clisp.org>
14405
14406         * modules/sh-quote: New file.
14407         * MODULES.html.sh (Executing programs): Add sh-quote.
14408
14409 2005-01-19  Bruno Haible  <bruno@clisp.org>
14410
14411         * lib/sh-quote.h: New file, from GNU gettext.
14412         * lib/sh-quote.c: New file, from GNU gettext.
14413
14414 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
14415
14416         Merge from coreutils.
14417         * m4/ullong_max.m4: New file.
14418         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
14419         (gl_MACROS): Assume localeconv exists.
14420
14421 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
14422
14423         Merge changes from coreutils, as described below in several
14424         changelogs dated today.
14425
14426         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
14427         (O_DIRECTORY): Remove; not needed here, since "." must be
14428         a directory.  All uses removed.
14429         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
14430         universal on Suns, and we also need to test for IRIX.
14431         Revamp code to use 'if' rather than '#if'.
14432         Avoid unnecessary comparison of cwd->desc to 0.
14433
14434         * lib/utimens.c (futimens): Robustify the previous patch, by checking
14435         for known valid error numbers rather than observed invalid ones.
14436
14437 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
14438
14439         * modules/ullong_max: New file.
14440
14441         * modules/chdir-long, modules/openat: New files.
14442         * modules/save-cwd (Depends-on): Depend on chdir-long.
14443         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
14444
14445 2005-01-18  Jim Meyering  <jim@meyering.net>
14446
14447         Merge from coreutils.
14448         * m4/chdir-long.m4, m4/openat.m4: New files.
14449         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
14450         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
14451         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
14452         is sane and DOES follow symlinks.  Besides, testing 20 different
14453         systems found no broken chown implementations.
14454         Prompted by a change in rsync's copy of this macro.
14455         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
14456
14457         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
14458
14459         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
14460         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
14461         NULL-means-set-to-current-time semantics.
14462         Remove temporary file immediately, rather than waiting
14463         for configure's at-exit trap code to do it.
14464
14465 2005-01-18  Jim Meyering  <jim@meyering.net>
14466
14467         * lib/version-etc.c (version_etc_copyright): Update copyright date.
14468
14469         * lib/utimens.c (futimens): Account for the fact that futimes
14470         can also fail with errno == ENOSYS or errno == ENOENT.
14471         Patch from Dmitry V. Levin.
14472
14473         Change the name of the robust chdir function from chdir to chdir_long.
14474         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
14475         (restore_cwd): Use chdir_long, not chdir.
14476         * lib/chdir-long.c: Renamed from chdir.c.
14477         * lib/chdir-long.h: Renamed from chdir.h.
14478         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
14479         Hurd.
14480
14481 2005-01-18  Bruno Haible  <bruno@clisp.org>
14482
14483         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
14484         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
14485         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
14486         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
14487         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
14488         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
14489         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
14490         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
14491         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
14492         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
14493         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
14494         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
14495         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
14496         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
14497         Use an all-permissive copyright notice, recommended by RMS.
14498
14499 2005-01-18  Bob Proulx  <bob@proulx.com>
14500
14501         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
14502         simplify offsetof() macro construct to avoid compile failure with
14503         native HP-UX 11.0 ANSI C compiler.
14504
14505 2005-01-17  Bruno Haible  <bruno@clisp.org>
14506
14507         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
14508         redundant because stpncpy.m4 takes care of it.
14509
14510 2005-01-17  Bruno Haible  <bruno@clisp.org>
14511
14512         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
14513
14514 2005-01-17  Bruno Haible  <bruno@clisp.org>
14515
14516         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
14517         used.
14518
14519 2005-01-17  Bruno Haible  <bruno@clisp.org>
14520
14521         * lib/fwriteerror.h (fwriteerror): Change specification to include
14522         fclose.
14523         * lib/fwriteerror.c: Include <stdbool.h>.
14524         (fwriteerror): At the end, close the file stream. Record whether
14525         stdout was already closed.
14526
14527 2005-01-17  Bruno Haible  <bruno@clisp.org>
14528
14529         * lib/execute.c (environ): Declare if needed.
14530         * lib/pipe.c (environ): Likewise.
14531         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
14532
14533 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
14534
14535         * modules/argp: Depend on vsnprintf
14536
14537 2005-01-10  Jim Meyering  <jim@meyering.net>
14538
14539         * modules/closeout (Depends-on): Add atexit.
14540
14541 2005-01-06  Bruno Haible  <bruno@clisp.org>
14542
14543         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
14544
14545 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
14546
14547         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
14548         definitions to be after all include files, to avoid collisions.
14549         Problem reported by Bob Proulx.
14550
14551 2005-01-04  Jim Meyering  <jim@meyering.net>
14552
14553         Changes imported from coreutils.
14554         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
14555         as the mkstemp template, use a temporary directory and an
14556         8.3-friendly template to avoid trouble on systems like DJGPP.
14557         Reported by Juan M. Guerrero via Stepan Kasal.
14558         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
14559         close. Remove the temporary directory right away, rather than waiting
14560         for configure's at-exit trap code to do it.
14561         Suggestion from Stepan Kasal.
14562
14563 2005-01-01  Simon Josefsson  <jas@extundo.com>
14564
14565         * gnulib-tool: Print #include directives when --import'ing.
14566
14567 2004-12-28  Simon Josefsson  <jas@extundo.com>
14568
14569         * tests/test-base64.c: Include required header files.  Remove
14570         unused variables.
14571
14572 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
14573
14574         * modules/error (Depends-on): Remove gettext.
14575
14576 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
14577
14578         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
14579         not needed.  This removes a dependency on the gettext module.
14580         [defined _LIBC]: Do not include <libintl.h>; not needed.
14581
14582 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
14583
14584         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
14585         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
14586
14587 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
14588
14589         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
14590         HAVE_DECL_STRTOLD.
14591
14592 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
14593
14594         * modules/getdate (Depends-on): Remove alloca-opt.
14595
14596 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
14597
14598         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
14599
14600 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
14601
14602         * lib/argp-parse.c: Include <stddef.h>.
14603         (alignof, alignto): New macros.
14604         (parser_init): Don't assume that void * is aligned sufficiently
14605         for struct option.
14606
14607         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
14608         need to extend the stack.
14609         (YYINITDEPTH): New macro, so that the initial stack isn't overly
14610         large.
14611
14612 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
14613
14614         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
14615
14616 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
14617
14618         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
14619         (2004-10-24) change.  Apparently this was a false alarm.
14620
14621         * modules/getdate: Depend on alloca-opt, not alloca.
14622
14623 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
14624
14625         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
14626         Remove now-obsolete comment about AIX.
14627         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
14628         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
14629         (YYMAXDEPTH): New macro.
14630
14631 2004-12-18  Simon Josefsson  <jas@extundo.com>
14632
14633         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
14634
14635 2004-12-18  Bruno Haible  <bruno@clisp.org>
14636
14637         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
14638
14639 2004-12-18  Bruno Haible  <bruno@clisp.org>
14640
14641         * lib/fatal-signal.c (fatal_signals): Make non-const.
14642         (init_fatal_signals): New function.
14643         (uninstall_handlers, install_handlers): Ignore signals that were set to
14644         SIG_IGN.
14645         (at_fatal_signal): Call init_fatal_signals.
14646         (init_fatal_signal_set): Likewise. Ignore signals that were set to
14647         SIG_IGN.
14648         Reported by Paul Eggert.
14649
14650 2004-12-18  Bruno Haible  <bruno@clisp.org>
14651
14652         * doc/alloca.texi: New file.
14653         * doc/alloca-opt.texi: New file.
14654
14655 2004-12-17  Jim Meyering  <jim@meyering.net>
14656
14657         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
14658         Otherwise, install-sh could exit with improper exit status when
14659         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
14660
14661 2004-12-16  Simon Josefsson  <jas@extundo.com>
14662
14663         * tests/test-base64.c: Add license.
14664
14665 2004-12-15  Stepan Kasal  <address@hidden>
14666
14667         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
14668
14669 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
14670
14671         * modules/getcwd (Files): Add m4/d-ino.m4.
14672         Suggested by Mark D. Baushke.
14673
14674 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
14675
14676         * lib/getdate.y (textint): New member "negative".
14677         (time_zone_hhmm): New function.
14678         Expect 14 shift-reduce conflicts, not 13.
14679         (o_colon_minutes): New rule.
14680         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
14681         (yylex): Set the "negative" member of signed numbers.
14682
14683 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
14684
14685         * doc/getdate.texi (Time of day items, Time zone items):
14686         Describe new formats +00:00, UTC+00:00.
14687
14688 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
14689
14690         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
14691         spurious "-l"s.  Problem reported by Stepan Kasal.
14692
14693 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
14694
14695         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
14696         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
14697
14698 2004-12-04  Simon Josefsson  <jas@extundo.com>
14699
14700         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
14701         Vandoorselaere <yoann@prelude-ids.org>.
14702
14703 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
14704
14705         Changes imported from coreutils.
14706         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
14707         exist.
14708         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
14709
14710 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
14711
14712         Changes imported from coreutils.
14713         * lib/hard-locale.c: Assume <locale.h> exists.
14714         Include "strdup.h".
14715         (GLIBC_VERSION): New macro.
14716         (hard_locale): Assume setlocale exists.
14717         Rewrite to avoid #ifdef.
14718         Use strdup rather than malloc + strcpy.
14719         * lib/human.c: Assume <locale.h> exists.
14720         (human_readable): Assume localeconv exists.
14721
14722 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
14723
14724         * modules/hard-locale (Depends-on): Add strdup.
14725
14726 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
14727
14728         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
14729         convert T2, not T.  (Imported from libc.)
14730
14731 2004-11-30  Simon Josefsson  <jas@extundo.com>
14732
14733         * modules/restrict (License): Change to LGPL.
14734
14735 2004-11-30  Simon Josefsson  <jas@extundo.com>
14736
14737         * m4/restrict.m4: Add copyright and copying conditions.
14738
14739 2004-11-30  Simon Josefsson  <jas@extundo.com>
14740
14741         * m4/base64.m4: New file.
14742
14743 2004-11-30  Simon Josefsson  <jas@extundo.com>
14744
14745         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
14746         base64.
14747
14748         * tests/test-base64.c: New file.
14749
14750         * modules/base64: New file.
14751
14752 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
14753
14754         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
14755         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
14756
14757         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
14758
14759 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
14760
14761         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
14762         (__getcwd.c): Don't restore errno; glibc doesn't.
14763         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
14764         first, falling back to our code only if its results look suspicious.
14765         Ensure that the resulting buffer is only as large as necessary.
14766
14767         * lib/readutmp.c: Include readutmp.h first.
14768         Include <errno.h>, since readutmp.h no longer does that.
14769         * lib/readutmp.h: Don't include <errno.h>,
14770         <sys/param.h>, <time.h>; not needed to establish interface.
14771         (errno): Remove decl.
14772         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
14773         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
14774         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
14775
14776 2004-11-28  Simon Josefsson  <jas@extundo.com>
14777
14778         * lib/base64.h, base64.c: New file.
14779
14780 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
14781
14782         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
14783
14784 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
14785
14786         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
14787         (Depends-on): Remove pathmax, same.  Add mempcpy.
14788         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
14789         (Makefile.am): Append getcwd.h to lib_SOURCES.
14790         (Include): Add getcwd.h.
14791         (Maintainer): Change from Jim Meyering to "all, glibc",
14792         since getdate now uses intended-for-glibc code.
14793         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
14794         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
14795
14796 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
14797
14798         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
14799         HP's ANSI C compiler.
14800         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
14801         Declaring int functions causes warnings on some modern systems and
14802         shouldn't be needed to compile on ancient ones.
14803         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
14804         defined.
14805
14806         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
14807         with the following changes.
14808         (__set_errno): Parenthesize properly.
14809         Include <stdbool.h>.
14810         (MIN, MAX, MATCHING_INO): New macros.
14811         (__getcwd): Define with prototype, not K&R form.
14812         Use heuristics to allocate default buffer on stack if possible.
14813         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
14814         behavior, and to avoid the PATH_MAX limit when computing
14815         ../../../../...
14816         Use MATCHING_INO to compare inode number to file.
14817         Check for arithmetic overflow in size calculations.
14818         Fix bug in reallocation of dot array that caused getcwd to fail
14819         on directories nested deeper than 75.
14820         Be more careful about saving errno on error.
14821         Do not use realloc; use only free+malloc, as this is a bit
14822         more flexible and avoids a needless copy operation.
14823         Do not inspect st_dev and st_ino for symbolic links; POSIX
14824         doesn't specify the latter.
14825         Check for closedir errors.
14826         Avoid needless casts.
14827         Use "#ifdef weak_alias" around weak_alias, to be like other
14828         glibc code.
14829         The following changes to getcwd.c have effect only when used in
14830         gnulib; they have no effect inside glibc proper.
14831         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
14832         as alloca isn't used.
14833         (alloca, __alloca): Likewise.
14834         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
14835         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
14836         unconditionally, as gnulib assumes C89 or better.
14837         Do not include <sys/param.h>.
14838         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
14839         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
14840         better.
14841         (NULL) [!defined NULL]: Remove; we assume C89 or better.
14842         Include <dirent.h> in a way that is compatible with modern Autoconf.
14843         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
14844         New macros, if not already defined.
14845         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
14846         Use "_LIBC", not "defined _LIBC", for consistency.
14847         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
14848         a mempcpy module.
14849         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
14850         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
14851         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
14852         credit only to Jim Meyering and adjust the copyright dates.
14853         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
14854         <stdlib.h>, <unistd.h>, "pathmax.h".
14855         Instead, include "xgetcwd.h" (first) and "getcwd.h".
14856         (INITIAL_BUFFER_SIZE): Remove.
14857         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
14858
14859 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
14860
14861         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
14862         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
14863         Use the _ONCE methods, for efficiency.
14864         Check for fcntl.h.  In test program, include <errno.h>
14865         and <fcntl.h> if available.  Remove old K&R cruft from
14866         test program.  Check for common errors in GNU/Linux,
14867         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
14868         don't do AC_LIBOBJ, as that's getcwd.m4's job.
14869         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
14870         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
14871         name accordingly.
14872         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
14873         accommodate new getcwd.c.
14874         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
14875         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
14876         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
14877         that's all we need now.
14878
14879 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
14880
14881         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
14882         argp-parse.c depends on getopt internals, that means we should
14883         always use our getopt, to be on the safe side.
14884         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
14885         order not to spoil the result of an eventual previous invocation
14886         of gl_GETOPT_SUBSTITUTE.
14887
14888 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
14889
14890         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
14891         redefinition warnings. To avoid them, include the defines
14892         in `#if !defined __need_getopt ... #endif'. The only place
14893         where __getopt_argv_const is used is in definitions
14894         of getopt_long and getopt_long_only below, which are as well
14895         protected by `#ifndef __need_getopt'.
14896         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
14897         __need_getopt after including <stdio.h> and <unistd.h> These
14898         headers might have defined it.
14899
14900 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
14901
14902         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
14903
14904 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
14905
14906         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
14907         (futimens): New function, which uses futimes if available.
14908         (futimens, utimens): Support timespec==NULL, with same semantics
14909         as utime and utimens.
14910         * lib/utimens.h (futimens): New decl.
14911
14912 2004-11-23  Jim Meyering  <jim@meyering.net>
14913
14914         * lib/getopt_.h: Remove trailing blanks.
14915
14916 2004-11-23  Jim Meyering  <jim@meyering.net>
14917
14918         * lib/__fpending.c: Add comment.
14919
14920 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
14921
14922         * modules/canonicalize (Depends-on): Add xreadlink.
14923         Problem reported by James Youngman.
14924
14925 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
14926
14927         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
14928         New macros.
14929         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
14930         optopt): Use them instead of invoking ## directly; otherwise, the
14931         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
14932
14933 2004-11-19  Bruno Haible  <bruno@clisp.org>
14934
14935         * lib/strtok_r.c: Move comments from here...
14936         * lib/strtok_r.h: ... to here.
14937
14938 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
14939
14940         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
14941         implementations that mishandle size_t overflow.
14942
14943 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
14944
14945         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
14946         might fail.  Problem reported by Yoann Vandoorselaere.
14947         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
14948         implementations that mishandle size_t overflow.
14949
14950 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
14951
14952         * modules/canon-host (Depends-on): Add strdup.
14953
14954 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
14955
14956         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
14957
14958 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
14959
14960         * lib/canon-host.c: Include "strdup.h".
14961         (canon_host): Use getaddrinfo if available, so that IPv6 works.
14962         Use strdup instead of malloc/strcpy to duplicate strings.
14963
14964         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
14965         (human_space_before_unit): New constant.
14966         * lib/human.c (human_readable): Support it.
14967
14968         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
14969         (xgetcwd): Set errno correctly when failing.
14970         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
14971         the failure is actually due to a PATH_MAX problem.
14972
14973         Further getopt changes to make it more likely that glibc will
14974         buy the changes back.
14975         * lib/getopt.c (POSIXLY_CORRECT): New constant.
14976         (getopt): Use it, so to preserve glibc semantic
14977         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
14978         when compiling for libc.
14979         * lib/getopt_.h (__getopt_argv_const): Bring it back.
14980         (getopt_long, getopt_long_only): Use it.
14981
14982         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
14983         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
14984         (getopt): Argv is now char * const *, as per standard.
14985         (_getopt_internal_r, _getopt_internal): Argv is now char **,
14986         not char *__getopt_argv_const *.
14987         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
14988         _getopt_long_only_r): Likewise.
14989         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
14990         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
14991         _getopt_long_r, _getopt_long_only_r): Likewise.
14992         * lib/getopt_.h (__getopt_argv_const): Remove.
14993         (getopt): Argv is now char * const *, as per standard.
14994
14995         * lib/getdate.y (tORDINAL): New token.
14996         (day, relunit): Allow it for relative times.
14997         (relative_time_table): Use tORDINAL for ordinals.
14998
14999 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
15000
15001         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
15002         Document that "second" isn't allowed as an ordinal number.
15003
15004 2004-11-16  Jim Meyering  <jim@meyering.net>
15005
15006         * modules/closeout (Depends-on): Add fpending.
15007
15008 2004-11-15  Jim Meyering  <jim@meyering.net>
15009
15010         * lib/closeout.c: Include "__fpending.h" once again.
15011         Include <stdbool.h>.
15012         (close_stdout): Don't fail just because stdout was closed initially,
15013         since some programs don't write to stdout in the normal course of
15014         operation (other than --version and --help), and we don't want this
15015         function to make e.g. `touch file >&-' fail.
15016         But do fail if it was closed and someone has tried to write to it.
15017         E.g., `printf foo >&-' must fail.
15018
15019 2004-11-13  Jim Meyering  <jim@meyering.net>
15020
15021         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
15022
15023 2004-11-12  Simon Josefsson  <jas@extundo.com>
15024
15025         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
15026         small doc fix is still pending.
15027
15028 2004-11-11  Simon Josefsson  <jas@extundo.com>
15029
15030         * modules/strtok_r: New file.
15031
15032         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
15033         strtok_r.
15034
15035 2004-11-11  Simon Josefsson  <jas@extundo.com>
15036
15037         * m4/strtok_r.m4: New file.
15038
15039         * m4/getopt.m4: Replace opterr.
15040
15041 2004-11-11  Simon Josefsson  <jas@extundo.com>
15042
15043         * lib/strtok_r.h, strtok_r.c: New file.
15044
15045 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
15046
15047         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
15048         of replacing opterr, getopt, etc.  This should handle the
15049         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
15050
15051 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
15052
15053         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
15054         we can stop lying to compilers about the constness of argv when we
15055         are compiled outside glibc.
15056         (getopt, getopt_long, getopt_long_only): Use it.
15057         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
15058         _getopt_internal, getopt): Likewise.
15059         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
15060         _getopt_long_only_r): Likewise.
15061         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
15062         _getopt_long_r, _getopt_long_only_r): Likewise.
15063
15064         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
15065         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
15066         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
15067         the other external symbols.
15068         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
15069         declaration, since the above renaming now works around collisions.
15070
15071 2004-11-11  Jim Meyering  <jim@meyering.net>
15072
15073         * lib/linebreak.c: Remove trailing blanks.
15074         * lib/alloca_.h: Likewise.
15075         * lib/acosl.c: Likewise.
15076         * lib/euidaccess.c: Likewise.
15077         * lib/allocsa.h: Likewise.
15078
15079 2004-11-10  Simon Josefsson  <jas@extundo.com>
15080
15081         * m4/getaddrinfo.m4: New file.
15082
15083 2004-11-10  Simon Josefsson  <jas@extundo.com>
15084
15085         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
15086
15087 2004-11-10  Simon Josefsson  <jas@extundo.com>
15088
15089         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
15090         getaddrinfo.
15091
15092         * modules/getaddrinfo: New file.
15093
15094 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
15095
15096         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
15097
15098 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
15099
15100         * lib/mktime.c (SHR): New macro, which is a portable
15101         substitute for >> that should work even on Crays.
15102         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
15103         Problem reported by Mark D. Baushke in
15104         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
15105         * lib/getdate.y (SHR): Likewise.
15106         (tm_diff): Use it.
15107         * lib/strftime.c (SHR): Likewise.
15108         (tm_diff): Use it.
15109         * lib/quotearg.c (struct quoting_options): Use unsigned int for
15110         quote_these_too, so that right shifts are well defined.  All uses
15111         changed.
15112
15113 2004-11-10  Jim Meyering  <jim@meyering.net>
15114
15115         Ensure that no close failure goes unreported.
15116         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
15117         return early when it seems there's nothing to flush.
15118         Don't include __fpending.h.
15119
15120 2004-11-10  Jim Meyering  <jim@meyering.net>
15121
15122         * modules/closeout (Depends-on): Remove fpending.
15123
15124 2004-11-10  Jim Meyering  <jim@meyering.net>
15125
15126         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
15127
15128 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
15129
15130         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
15131         gl_FUNC_STRFTIME.
15132         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
15133         and AC_REQUIRE when possible, to avoid duplicate checks.
15134         Check for <wchar.h>.
15135
15136 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
15137
15138         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
15139
15140 2004-11-09  Bruno Haible  <bruno@clisp.org>
15141
15142         * m4/sockpfaf.m4: New file.
15143
15144 2004-11-05  Bruno Haible  <bruno@clisp.org>
15145
15146         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
15147         Reported by Mark D. Baushke <mdb@cvshome.org>.
15148
15149 2004-11-04  Bruno Haible  <bruno@clisp.org>
15150
15151         2004-09-11  Bruno Haible  <bruno@clisp.org>
15152                 * allocsa.valgrind: New file.
15153         2004-02-06  Bruno Haible  <bruno@clisp.org>
15154                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
15155                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
15156                 Reported by Christopher Seip <chris.seip@hp.com>.
15157
15158 2004-11-04  Bruno Haible  <bruno@clisp.org>
15159
15160         * modules/allocsa (Files): Add lib/allocsa.valgrind.
15161         (Makefile.am): Distribute it.
15162
15163 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
15164
15165         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
15166         with errno == ERANGE if the buffer is too small.
15167         Problem reported by Mark D. Baushke.
15168
15169 2004-11-03  Albert Chin  <china@thewrittenword.com>
15170             Paul Eggert  <eggert@cs.ucla.edu>
15171
15172         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
15173         equivalent, substitute $ac_type for equivalent type rather than
15174         blindly using uint32_t *always* which won't work if uint32_t is not
15175         available.  Define _UINT32_T to work around typedef of uint32_t if
15176         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
15177         2.5.1.
15178
15179 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
15180
15181         * m4/jm-macros.m4: Sync from coreutils.
15182         (gl_MACROS): Check for mbrlen, for pathchk.
15183         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
15184
15185 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
15186
15187         * lib/xreadlink.c (MAXSIZE): New macro.
15188         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
15189         size does not exceed MAXSIZE.  Avoid cast.
15190         As suggested by Mark D. Baushke in
15191         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
15192         if readlink fails with buffer size just under MAXSIZE, try again
15193         with MAXSIZE.
15194
15195 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
15196
15197         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
15198
15199 2004-11-02  Derek R. Price  <derek@ximbiot.com>
15200         and  Paul Eggert  <eggert@cs.ucla.edu>
15201
15202         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
15203         (get_date): Overparenthesize to avoid GCC warning.
15204
15205 2004-11-02  Bruno Haible  <bruno@clisp.org>
15206
15207         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
15208         returns void.
15209
15210 2004-11-02  Bruno Haible  <bruno@clisp.org>
15211
15212         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
15213         function returns void.
15214
15215 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
15216
15217         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
15218         fflush_unlocked, flockfile, funlockfile, funlockfile,
15219         fputs_unlocked, putc_unlocked.
15220
15221 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
15222
15223         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
15224         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
15225         already declared.
15226
15227 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
15228
15229         * modules/getdate (Files): Add doc/getdate.texi.
15230         (Depends-on): Add setenv, xalloc.
15231
15232 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
15233
15234         * lib/getdate.y: Add support for TZ="foo" within a date string.
15235         Fix some bugs near time_t boundaries.  Reject dates with
15236         out-of-range components, e.g., "Sept 31".
15237         Include <stdlib.h>, "setenv.h", "xalloc.h".
15238         (ISDIGIT_LOCALE): Remove; unused.
15239         Note that the TZ and time functions used here are not reentrant.
15240         (mktime_ok, get_tz): New functions.
15241         (TZBUFSIZE): New constant.
15242         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
15243         This requires that we sometimes generate our own TZ="XXX..." setting.
15244
15245 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
15246
15247         * doc/getdate.texi: New file, from coreutils with modifications for
15248         the new TZ parsing.
15249
15250 2004-10-27  Derek R. Price  <derek@ximbiot.com>
15251
15252         * lib/mktime.c (not_equal_tm): Remove redundant check.
15253
15254 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
15255
15256         * modules/regex (lib_SOURCES): Add regex.c.
15257         Reported by James Youngman in
15258         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
15259
15260 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
15261
15262         * lib/getdate.y: Use Bison 1.875 features, and some minor
15263         code cleanups.  This change does not affect semantics.
15264         Don't include <stdlib.h>; no longer needed.
15265         Don't include unlocked-io.h; only the "#if TEST" code uses
15266         stdio, and performance isn't crucial there.
15267         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
15268         Bison 1.875 features as described below.
15269         All uses of "PC." replaced by "pc->".
15270         (YYSTYPE): Add a forward declaration.
15271         (yylex, yyerror): Use full prototypes in forward decls.
15272         Use "%pure-parser" rather than obsolescent "%pure_parser".
15273         Use %parse-param and %lex-param instead of obsolescent
15274         YYPARSE_PARAM and YYLEX_PARAM.
15275         (meridian_table, month_and_day_table, time_units_table,
15276         relative_time_table, time_zone_table, military_table,
15277         lookup_zone, lookup_word, get_date):
15278         Use NULL instead of 0 where appropriate.
15279         (to_hour): Avoid abort (), to avoid a dependency on
15280         stdlib.h.
15281         (yyerror, yylex): Now accepts parser_control * arg.
15282         (main) [TEST]: Use '\0' rather than 0 for char.
15283
15284 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
15285
15286         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
15287
15288 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
15289
15290         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
15291         It's now the caller's responsibility to handle the case where
15292         !HAVE_GETPAGESIZE && !defined getpagesize.
15293
15294         * lib/mktime.c (leapyear): Arg is long int, not int.
15295
15296 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
15297
15298         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
15299
15300 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
15301
15302         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
15303         missing.  Problem reported by James Youngman.
15304
15305 2004-10-16  Simon Josefsson  <jas@extundo.com>
15306
15307         * gnulib-tool: Fix comments.  Fix parse problem.
15308         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
15309
15310 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
15311
15312         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
15313         implementation of getopt_long.  Problem reported by Alexander Taler in:
15314         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
15315
15316 2004-10-15  Bruno Haible  <bruno@clisp.org>
15317
15318         * gnulib-tool: Untabify. Initialize supplied_libname.
15319         (func_usage): More homogenous output.
15320         (func_modules_transitive_closure, func_modules_to_filelist,
15321         func_emit_lib_Makefile_am): New functions.
15322         (func_import): New function, extracted from big case statement. Use
15323         func_get_license, func_modules_transitive_closure,
15324         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
15325         opt_lgpl. Don't use test -a, as it's not portable.
15326         (func_create_testdir): Use func_modules_transitive_closure,
15327         func_modules_to_filelist, func_emit_lib_Makefile_am.
15328
15329 2004-10-15  Bruno Haible  <bruno@clisp.org>
15330
15331         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
15332
15333 2004-10-15  Bruno Haible  <bruno@clisp.org>
15334
15335         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
15336         the portions belonging to each module.
15337         Suggested by Derek Robert Price <derek@ximbiot.com>.
15338
15339 2004-10-12  Simon Josefsson  <jas@extundo.com>
15340
15341         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
15342         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
15343         to real functions.
15344
15345 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
15346
15347         * modules/vsnprintf: New file.
15348
15349 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
15350
15351         * m4/vsnprintf.m4: New file.
15352
15353 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
15354
15355         * lib/vsnprintf.h: New file.
15356         * lib/vsnprintf.c: New file.
15357
15358 2004-10-11  Bruno Haible  <bruno@clisp.org>
15359
15360         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
15361         vsnprintf.
15362
15363 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
15364
15365         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
15366
15367 2004-10-07  Bruno Haible  <bruno@clisp.org>
15368
15369         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
15370         fits into the provided buffer.
15371
15372 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
15373
15374         * lib/diacrit.c, diacrit.h: Add GPL notice.
15375
15376         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
15377         notice.
15378         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
15379         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
15380         This avoids a potential constant-folding bug.
15381
15382 2004-10-05  Bruno Haible  <bruno@clisp.org>
15383
15384         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
15385         for the declaration of strsep.
15386
15387 2004-10-05  Bruno Haible  <bruno@clisp.org>
15388
15389         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
15390
15391 2004-10-04  Simon Josefsson  <jas@extundo.com>
15392
15393         * modules/memmem: New file.
15394         * tests/test-memmem.c: New file.
15395         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
15396
15397 2004-10-04  Simon Josefsson  <jas@extundo.com>
15398
15399         * m4/memmem.m4: New file.
15400
15401 2004-10-04  Simon Josefsson  <jas@extundo.com>
15402
15403         * lib/memmem.h: New file.
15404         * lib/memmem.c: New file, taken from glibc.
15405
15406 2004-10-04  Simon Josefsson  <jas@extundo.com>
15407
15408         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
15409         '#ifdef USE_UNLOCKED_IO'.
15410
15411 2004-10-04  Simon Josefsson  <jas@extundo.com>
15412
15413         * config/srclist.txt: Add memmem from glibc.
15414
15415 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
15416
15417         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
15418
15419         * modules/argmatch, modules/argp, modules/closeout, modules/error,
15420         modules/exclude, modules/getdate, modules/getline,
15421         modules/getndelim2, modules/getpass, modules/getpass-gnu,
15422         modules/getusershell, modules/linebuffer, modules/md5,
15423         modules/mountlist, modules/posixtm, modules/readtokens,
15424         modules/readutmp, modules/regex, modules/sha1,
15425         modules/version-etc, modules/yesno:
15426         Remove dependency on unlocked-io.
15427
15428 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
15429
15430         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
15431
15432         * m4/unlocked-io.m4: Add copyright notice.
15433         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
15434
15435 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
15436
15437         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
15438         * lib/xmalloc.c (xmemdup): Likewise.
15439         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
15440         XFREE): Remove these long-obsolescent macros.
15441         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
15442         * lib/xstrdup.c: Remove.
15443
15444         * lib/regex.c (re_comp): Cast gettext return value to char *,
15445         Problem reported by Martin Neitzel via Mark D. Baushke.
15446
15447 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
15448
15449         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
15450         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
15451         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
15452         regex.c, sha1.c, version-etc.c, yesno.c:
15453         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
15454         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
15455         the includer's responsibility.
15456
15457         Sync from coreutils.
15458
15459         * lib/modechange.c (mode_compile): Don't decrement a pointer that
15460         points to the start of a string, as the C Standard says the
15461         resulting behavior is undefined.
15462
15463         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
15464         simple -> simple_backups, numbered_existing ->
15465         numbered_existing_backups, numbered -> numbered_backups
15466         to avoid shadowing problems.  All uses changed.
15467         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
15468         * lib/backupfile.c (check_extension, numbered_backup):
15469         Rename locals to avoid shadowing 'basename'.
15470         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
15471         once.
15472
15473         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
15474         * lib/.cvsignore: Add getopt.h.
15475
15476 2004-10-04  Bruno Haible  <bruno@clisp.org>
15477
15478         * modules/README: New file.
15479         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
15480         not a module.
15481
15482 2004-10-02  Jim Meyering  <jim@meyering.net>
15483
15484         * lib/dirfd.h, getpagesize.h: Add copyright notice.
15485
15486 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
15487
15488         * modules/strsep: New file.
15489
15490 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
15491
15492         * m4/strsep.m4: New file.
15493
15494 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
15495
15496         * lib/strsep.h: New file.
15497         * lib/strsep.c: New file.
15498
15499 2004-10-01  Simon Josefsson  <jas@extundo.com>
15500
15501         * lib/snprintf.c (snprintf): Handle size==0.
15502
15503 2004-10-01  Simon Josefsson  <jas@extundo.com>
15504             Bruno Haible  <bruno@clisp.org>
15505
15506         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
15507         (snprintf): Declare 'args'.
15508
15509 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
15510
15511         * lib/snprintf.c: Remove comments as to why each header is needed.
15512
15513 2004-10-01  Bruno Haible  <bruno@clisp.org>
15514
15515         * MODULES.html.sh: Add strsep.
15516
15517 2004-09-30  Simon Josefsson  <jas@extundo.com>
15518
15519         * modules/snprintf: New file.
15520
15521 2004-09-30  Simon Josefsson  <jas@extundo.com>
15522
15523         * m4/snprintf.m4: New file.
15524
15525 2004-09-30  Simon Josefsson  <jas@extundo.com>
15526
15527         * lib/snprintf.h, lib/snprintf.c: New files.
15528
15529 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
15530
15531         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
15532         (hol_entry_help): Never translate an empty string.
15533         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
15534         * lib/argp.h (OPTION_NO_TRANS): New option.
15535
15536 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
15537
15538         * modules/argp (Maintainer): Replace Simon Josefsson
15539         by Sergey Poznyakoff.
15540
15541 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
15542
15543         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
15544         changes merged back into glibc.
15545
15546 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
15547
15548         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
15549
15550 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
15551
15552         * lib/xvasprintf.c: Include xalloc.h.
15553         (xvasprintf): Use xalloc_die, not xmalloc_die.
15554
15555 2004-09-29  Bruno Haible  <bruno@clisp.org>
15556
15557         * modules/alloca-opt: New file, derived from modules/alloca.
15558         * modules/allocsa: Depend on alloca-opt instead of alloca.
15559         * modules/setenv: Likewise.
15560         * modules/vasnprintf: Likewise.
15561         * MODULES.html.sh: Add alloca-opt.
15562
15563 2004-09-28  Simon Josefsson  <jas@extundo.com>
15564
15565         * gnulib-tool: New parameter --lgpl, to asseert that modules are
15566         LGPL, and to replace license template from GPL to LGPL.
15567
15568 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
15569
15570         * modules/dummy: Change license to LGPL.
15571
15572 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
15573
15574         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
15575
15576 2004-09-24  Simon Josefsson  <jas@extundo.com>
15577
15578         * modules/minmax (License): Change from GPL to LGPL.
15579
15580 2004-09-23  Simon Josefsson  <jas@extundo.com>
15581
15582         * gnulib-tool (--import): Typo.
15583
15584 2004-09-23  Simon Josefsson  <jas@extundo.com>
15585
15586         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
15587
15588 2004-09-22  Bruno Haible  <bruno@clisp.org>
15589
15590         * modules/*: Add 'License' field.
15591         * gnulib-tool: Accept --extract-license option.
15592         (func_get_license): New function.
15593
15594 2004-09-21  Bruno Haible  <bruno@clisp.org>
15595
15596         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
15597         Reported by Simon Josefsson.
15598
15599 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
15600
15601         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
15602         gl_AC_TYPE_LONG_LONG.
15603
15604 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
15605
15606         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
15607
15608 2004-09-18  Simon Josefsson  <jas@extundo.com>
15609         and  Paul Eggert  <eggert@cs.ucla.edu>
15610
15611         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
15612         calls with autoreconf.  Define GL_LIB.
15613
15614 2004-09-14  Karl Berry  <karl@gnu.org>
15615
15616         * config/srclist.txt: unsync setenv.c, sigh.
15617
15618 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
15619
15620         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
15621         Problem reported by Bruno Haible in:
15622         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
15623
15624 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
15625
15626         * config/srclist.txt: Comment out argp-pvh.c.
15627
15628 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
15629
15630         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
15631         in case some system header has #define'd it.  Problem reported by
15632         Soeren D. Schulze in
15633         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
15634
15635 2004-09-09  Karl Berry  <karl@gnu.org>
15636
15637         * regex.[ch]: delete from the root.  These were supposed to be
15638                 synced with emacs cvs, but this has not happened for about
15639                 a year, and anyway nothing else uses emacs regex.[ch].
15640                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
15641                 lib/regex[.ch] is untouched.
15642
15643 2004-09-09  Bruno Haible  <bruno@clisp.org>
15644
15645         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
15646
15647 2004-09-09  Bruno Haible  <bruno@clisp.org>
15648
15649         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
15650         modifications.
15651         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
15652
15653 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
15654
15655         * modules/xvasprintf: New file.
15656         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
15657
15658 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
15659
15660         * lib/xvasprintf.h: New file.
15661         * lib/xvasprintf.c: New file.
15662         * lib/xasprintf.c: New file.
15663
15664 2004-09-08  Bruno Haible  <bruno@clisp.org>
15665
15666         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
15667
15668 2004-09-08  Bruno Haible  <bruno@clisp.org>
15669
15670         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
15671         length is > INT_MAX.
15672         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
15673         more.
15674
15675 2004-09-08  Bruno Haible  <bruno@clisp.org>
15676
15677         * lib/stdint_.h: New file, taken from GNU clisp.
15678
15679 2004-09-08  Bruno Haible  <bruno@clisp.org>
15680             Oskar Liljeblad  <oskar@osk.mine.nu>
15681
15682         * modules/stdint: New file.
15683         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
15684
15685 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
15686
15687         Import from coreutils.
15688         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
15689         strings on unbounded length.  alloca's performance benefits aren't
15690         that important here.
15691         (V_STRDUP): Remove.
15692         (parse_with_separator): New function, with most of the internals
15693         of the old parse_user_spec.  Allow user to omit both user and group,
15694         for compatibility with FreeBSD.
15695         Clone only the user name, not the entire spec.
15696         Do not set *uid, *gid unless entirely successful.
15697         Avoid memory leak in some failing cases.
15698         Fix regression for USER.GROUP reported by Dmitry V. Levin in
15699         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
15700         (parse_user_spec): Rewrite to use parse_with_separator.
15701
15702 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
15703
15704         * modules/userspec: Don't depend on alloca.
15705
15706 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
15707
15708         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
15709
15710 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
15711
15712         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
15713         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
15714         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
15715
15716 2004-08-16  Simon Josefsson  <jas@extundo.com>
15717
15718         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
15719         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
15720         Add --dry-run for --import.
15721         Let user provided command line parameters override configure.ac
15722         settings.
15723
15724 2004-08-12  Simon Josefsson  <jas@extundo.com>
15725
15726         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
15727         as discussed with Paul Eggert in threads rooted at
15728         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
15729         and
15730         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
15731         Before, the test was empty, and relied on ELIDE_CODE in source
15732         code.)
15733         (gl_PREREQ_GETOPT): New macro.
15734         (gl_GETOPT): Use them.
15735
15736 2004-08-12  Simon Josefsson  <jas@extundo.com>
15737
15738         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
15739         * lib/getopt_.h: Renamed from getopt.h.
15740
15741 2004-08-12  Simon Josefsson  <jas@extundo.com>
15742
15743         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
15744         Change default library name from libfoo to libgnu.
15745         Now, if you have a configure.ac that says:
15746                 gl_SOURCE_BASE(gl)
15747                 gl_M4_BASE(gl/m4)
15748                 gl_MODULES(error getopt etcetera)
15749                 gl_INIT
15750         you can import all you need by running:
15751                 ../gnulib/gnulib-tool --import
15752
15753         * modules/getopt (Files): Rename getopt.h to getopt_.h.
15754         (Makefile.am): Rewrite, use logic from argz.
15755         (Include): Use <getopt.h> instead of "getopt.h".
15756
15757 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
15758
15759         * modules/argp (Files): Add m4/unlocked-io.m4.
15760         (Depends-on): Add extensions.
15761
15762 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
15763
15764         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
15765         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
15766         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
15767         Check for program_invocation_name, program_invocation_short_name,
15768         flockfile, funlockfile, features.h, _getopt_long_only_r.
15769
15770 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
15771
15772         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
15773         its complicated substitute.
15774         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
15775         and program_invocation_name.
15776         (__argp_basename) [!_LIBC]: Remove; the only use was
15777         replaced by its body.
15778         (__argp_short_program_name): Change condition from
15779         !defined __argp_short_program_name to
15780         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
15781         to match argp-namefrob.h.
15782         (__argp_failure): Don't assume strerror_r returns char *.
15783         * lib/argp-parse.c (N_): Define unconditionally.
15784         (argp_default_options): Fill out initializers with 0 to avoid
15785         gcc warnings.
15786
15787 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
15788
15789         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
15790         getopt1.c.
15791
15792 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
15793
15794         Merge from coreutils.
15795
15796         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
15797
15798         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
15799         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
15800
15801 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
15802
15803         Merge from coreutils.
15804
15805         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
15806         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
15807         for Reliant Unix 5.43.
15808
15809         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
15810         (union fooround): Use uintmax_t, not long int.
15811         The rest is a merge from libc:
15812         [defined _LIBC]: Include <shlib-compat.h>.
15813         (_obstack) [defined _LIBC]: Remove after 2.3.4.
15814
15815         * lib/settime.c (settime): Recode to avoid warning with
15816         Sun Forte C 6U2.
15817
15818         * lib/strverscmp.c: Convert to UTF-8.
15819
15820 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
15821
15822         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
15823         m4/uintmax_t.m4.
15824
15825 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
15826
15827         * modules/xalloc-die: New file.
15828         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
15829
15830         * modules/md5 (Files): Add m4/uint32_t.m4.
15831         * modules/sha1: Renamed from modules/sha.
15832         (Files):
15833         Rename lib/sha.h to lib/sha1.h.
15834         Rename lib/sha.c to lib/sha1.c.
15835         Rename m4/sha.m4 to m4/sha1.m4.
15836         (lib_SOURCES): Likewise.
15837         (configure.ac): Rename gl_SHA to gl_SHA1.
15838         (Include): sha.h -> sha1.h.
15839
15840 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
15841
15842         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
15843         * m4/sha1.m4: Renamed from sha.m4.
15844         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
15845
15846 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
15847
15848         * lib/obstack.h (obstack_empty_p):
15849         Don't assume that chunk->contents is suitably aligned.
15850         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
15851         Likewise. Problem reported by Benno in
15852         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
15853
15854         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
15855         readable.  This could be improved further but it'd take some work.
15856
15857 2004-08-08  Simon Josefsson  <jas@extundo.com>
15858
15859         * modules/xgethostname (Depends-on): Remove exit and error (not
15860         used).
15861
15862         * modules/getpass-gnu: Add getpass.h.
15863         (Depends-on): Add stdbool.
15864         * modules/getpass: Add getpass.h.
15865
15866 2004-08-08  Simon Josefsson  <jas@extundo.com>
15867
15868         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
15869         Check getpass declaration.
15870
15871 2004-08-08  Simon Josefsson  <jas@extundo.com>
15872
15873         * lib/xgethostname.c: Don't include error.h (not used).
15874
15875         * lib/getpass.h: Add.
15876         * lib/getpass.c: Include getpass.h first.
15877
15878 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
15879
15880         * lib/xalloc-die.c: New file.
15881         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
15882         All uses removed.
15883         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
15884         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
15885         xalloc-die.c.
15886         (_, N_, xalloc_die): Move to xalloc-die.c.
15887         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
15888         so that we needn't mess with xalloc_msg_memory_exhausted.
15889
15890         * lib/sha1.h: Renamed from sha.h.
15891         (SHA1_H): Renamed from _SHA_H.
15892         (sha1_ctx): Renamed from sha_ctx.
15893         (sha1_init_ctx): Renamed from sha_init_ctx.
15894         (sha1_process_block): Renamed from sha_process_block.
15895         (sha1_process_bytes): Renamed from sha_process_bytes.
15896         (sha1_finish_ctx): Renamed from sha_finish_ctx.
15897         (sha1_read_ctx): Renamed from sha_read_ctx.
15898         (sha1_stream): Renamed from sha_stream.
15899         (sha1_buffer): Renamed from sha_buffer.
15900         * lib/sha1.c: Likewise; renamed from sha.c.
15901         Do not include <sys/types.h>.
15902         Include <stddef.h> rather than <stdlib.h>.
15903
15904 2004-08-08  Bruno Haible  <bruno@clisp.org>
15905
15906         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
15907         FILESYSTEM_PREFIX_LEN.
15908         * lib/progreloc.c: Likewise.
15909         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
15910
15911 2004-08-06  Simon Josefsson  <jas@extundo.com>
15912
15913         * modules/progname (Depends-on): Don't depend on stdbool.
15914
15915 2004-08-06  Simon Josefsson  <jas@extundo.com>
15916
15917         * modules/getsubopt: New file.
15918         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
15919         getsubopt.
15920
15921 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
15922
15923         More merge from coreutils.
15924
15925         * m4/utimens.m4, m4/utimecmp.m4: New files.
15926         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
15927         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
15928         prereq.m4, sha.m4: Import changes from coreutils.
15929
15930 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
15931
15932         More merge from coreutils.
15933         * modules/raise, modules/readtokens0, modules/utimens:
15934         * modules/utimecmp, module/xnanosleep: New files.
15935         * modules/strftime: Add lib/strftime.h.
15936         Change include from <time.h> to "strftime.h".
15937         * modules/yesno: Add lib/yesno.h.
15938         * modules/backupfile: Remove lib/addext.c.
15939         * modules/euidaccess: Add stat-macros.h.
15940         * modules/canonicalize, modules/euidaccess,
15941         modules/filemode, modules/lchown, modules/makepath,
15942         modules/rmdir, modules/stat: Likewise.
15943
15944 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
15945
15946         Merge from tar.
15947         * lib/argp-help.c (make_hol, hol_append): Don't assume that
15948         SIZE_MAX is a valid preprocessor constant.
15949         (__argp_basename): Change from "#ifndef _LIBC"
15950         to "#ifndef __argp_short_program_name", so that
15951         we don't compile these functions for tar.
15952
15953         More merges from coreutils.
15954         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
15955         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
15956         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
15957         * lib/addext.c: Remove; no longer needed.
15958         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
15959         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
15960         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
15961         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
15962         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
15963         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
15964         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
15965         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
15966         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
15967         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
15968         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
15969         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
15970         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
15971         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
15972         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
15973         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
15974         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
15975         Import changes from coreutils.
15976
15977 2004-08-05  Simon Josefsson  <jas@extundo.com>
15978
15979         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
15980
15981 2004-08-05  Simon Josefsson  <jas@extundo.com>
15982
15983         * m4/getsubopt.m4: New file.
15984
15985 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
15986
15987         Merge from coreutils.
15988
15989         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
15990         * m4/getcwd-path-max.m4: New files.
15991
15992         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
15993         FILESYSTEM_PREFIX_LEN ->
15994         FILE_SYSTEM_PREFIX_LEN.
15995         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
15996         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
15997         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
15998         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
15999
16000         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
16001         prerequisite modules now handle the DOS stuff.
16002         Don't check for unistd.h.
16003
16004 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
16005
16006         Merge from coreutils.
16007
16008         * lib/.gdb-history: Remove; this doesn't belong here.
16009
16010         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
16011         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
16012         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
16013         * lib/getcwd.c: New files.
16014
16015         * lib/dirname.h: Include <stdbool.h>.
16016         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
16017         for consistency with POSIX terminology.  All uses changed.
16018         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
16019         (strip_trailing_slashes): Use bool for booleans.
16020         * lib/stripslash.c (strip_trailing_slashes): Likewise.
16021
16022         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
16023         sometimes returns a positive errno value even when it succeeds.
16024         (print_errno_message) [!LIBC]: Fall back on strerror if
16025         __strerror_r fails.
16026
16027         * lib/path-concat.c (mempcpy): Don't define if a system header defines
16028         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
16029         (longest_relative_suffix): New function.
16030         (path_concat): Use it.  Assume first argument is not NULL.
16031         Port to DOS.  Omit redundant separators.
16032         Report an error instead of returning NULL.
16033         Use mempcpy instead of memcpy.
16034         (xpath_concat): Remove: not declared or used.
16035
16036         * lib/same.h: Include <stdbool.h>
16037         (same_name): Return bool, not int.
16038         * lib/same.c (same_name): Likewise.
16039         (errno): Don't declare; we assume C89 or better now.
16040
16041         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
16042         if not already defined.
16043
16044         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
16045         * lib/dup-safer.c (errno): Likewise.
16046
16047 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
16048
16049         Merge from coreutils.
16050         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
16051         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
16052         * modules/path-concat: Don't depend on strdup.
16053
16054 2004-08-03  Simon Josefsson  <jas@extundo.com>
16055
16056         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
16057         * lib/progname.h: Don't include stdbool.h.
16058
16059 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
16060
16061         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
16062         * MODULES.html.sh (func_all_modules): Remove fatal.
16063
16064 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
16065
16066         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
16067
16068 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
16069
16070         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
16071         working.
16072
16073 2004-08-02  Simon Josefsson  <jas@extundo.com>
16074
16075         * lib/getsubopt.h: New file, with comments from Bruno Haible.
16076         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
16077         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
16078
16079 2004-08-01  Simon Josefsson  <jas@extundo.com>
16080
16081         * lib/xgetdomainname.c: Include stdlib.h, for free().
16082
16083 2004-07-19  Bruno Haible  <bruno@clisp.org>
16084
16085         * MODULES.html.sh (func_all_modules): Add dummy.
16086
16087 2004-07-16  Simon Josefsson  <jas@extundo.com>
16088
16089         * modules/dummy: New file.
16090
16091 2004-07-16  Simon Josefsson  <jas@extundo.com>
16092
16093         * lib/dummy.c: New file.
16094
16095 2004-07-16  Bruno Haible  <bruno@clisp.org>
16096
16097         * lib/backupfile.h: Add extern "C" for C++.
16098         * lib/closeout.h: Likewise.
16099         * lib/copy-file.h: Likewise.
16100         * lib/findprog.h: Likewise.
16101         * lib/full-write.h: Likewise.
16102         * lib/pathname.h: Likewise.
16103         * lib/progname.h: Likewise.
16104         * lib/stpcpy.h: Likewise.
16105         * lib/stpncpy.h: Likewise.
16106         * lib/strcase.h: Likewise.
16107         * lib/strstr.h: Likewise.
16108         * lib/xalloc.h: Likewise.
16109
16110         * lib/mbswidth.h: Add extern "C" for C++.
16111         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
16112
16113 2004-07-13  Robert Millan  <robertmh@gnu.org>
16114
16115         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
16116
16117 2004-07-09  Simon Josefsson  <jas@extundo.com>
16118
16119         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
16120         failed without this.)
16121
16122 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
16123
16124         * modules/chown (Files): Add lib/fchown-stub.c, since
16125         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
16126
16127 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
16128
16129         * lib/fchown-stub.c: New file.
16130
16131 2004-06-24  Jim Meyering  <jim@meyering.net>
16132
16133         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
16134
16135 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
16136
16137         * modules/argz: Omit "#include".
16138
16139         * MODULES.html.sh (func_all_modules): Add calloc, to match
16140         2004-06-01 addition of calloc module.
16141
16142 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
16143
16144         * m4/argz.m4: New file, which is autoupdated from libtool.
16145
16146 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
16147
16148         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
16149         libtool.
16150
16151 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
16152
16153         * config/srclist-update: Don't insist on "USA." before the
16154         close-comment, as libtool omits the period and puts the */ on a
16155         separate line.
16156         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
16157         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
16158
16159 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
16160
16161         * modules/argz: New file.
16162         * MODULES.html.sh (func_all_modules): Add argz.
16163
16164 2004-06-12  Jim Meyering  <jim@meyering.net>
16165         and  Paul Eggert  <eggert@cs.ucla.edu>
16166
16167         * modules/hash (Files): Add lib/xalloc.h.
16168         * modules/pipe (Depends-on): Add wait-process.
16169         * modules/stat (Depends-on): Add xalloc.
16170         * modules/userspec (Files): Add lib/userspec.h.
16171         * modules/xstrto
16172
16173         Upgrade from gettext-0.13.
16174         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
16175         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
16176         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
16177
16178 2004-06-10  Jim Meyering  <jim@meyering.net>
16179
16180         * lib/calloc.c: New file.
16181
16182 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
16183
16184         * lib/getdate.y (yylex): Allow space between sign and number.
16185         Problem reported by Dan Jacobson.
16186
16187 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
16188
16189         Merge from coreutils CVS.
16190
16191         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
16192         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
16193         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
16194         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
16195         xstrtol.m4: Fix copyright date and/or serial number.
16196
16197         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
16198         See if we need an fchown replacement.
16199         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
16200         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
16201         and use the replacement function if we detect either defect.
16202
16203         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
16204         gl_UTIMECMP.
16205
16206 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
16207         and  Jim Meyering  <jim@meyering.net>
16208
16209         Merge from coreutils CVS.
16210
16211         * lib/stat-macros.h: New file, with contents from file-type.h
16212         and coreutils' system.h.
16213         * lib/file-type.c: Include "stat-macros.h".
16214         * lib/file-type.h (file_type): Move all macro definitions to new file,
16215         stat-macros.h.
16216
16217         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
16218         Wrap old code with this conditional.
16219         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
16220         function that does not dereference symlinks.
16221         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
16222
16223         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
16224         dependency problems.
16225         (xreadlink): Accept new arg SIZE, for efficiency.
16226         All decls and uses changed.
16227         * lib/xreadlink.h: Include <stddef.h>, for size_t.
16228
16229         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
16230         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
16231
16232         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
16233         sysexits.h.
16234
16235 2004-06-01  Jim Meyering  <jim@meyering.net>
16236
16237         * m4/calloc.m4: New file.
16238
16239 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
16240
16241         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
16242         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
16243         Also, fix a typo in a diagnostic.
16244
16245 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
16246
16247         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
16248         or AC_FUNC_REALLOC.
16249
16250 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
16251
16252         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
16253         macros to be defined.
16254         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
16255         the allocator returns NULL because the requested size is zero.
16256
16257 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
16258
16259         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
16260         var.  Add comment explaining why libc still defines it.  This
16261         merges the following patch from glibc:
16262         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
16263
16264 2004-05-20  Andreas Schwab  <schwab@suse.de>
16265
16266         * m4/free.m4: Replace free if it not known to work, not the other
16267         way round.
16268
16269 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
16270
16271         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
16272         present in glibc since revision 1.1 of this file.
16273         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
16274         obstack_alignment_mask, obstack_alloc, obstack_base,
16275         obstack_blank, obstack_blank_fast, obstack_chunk_size,
16276         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
16277         obstack_grow0, obstack_init, obstack_int_grow,
16278         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
16279         obstack_next_free, obstack_object_size, obstack_ptr_grow,
16280         obstack_ptr_grow_fast, obstack_room): Remove declarations of
16281         nonexistent functions.
16282
16283 2004-05-18  Karl Berry  <karl@gnu.org>
16284
16285         * config/srclist.txt: break link for vasnprintf.c.
16286
16287 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
16288
16289         Port obstack to the AS/400, where pointers are 16 bytes wide and
16290         you cannot cast an integer to a valid pointer.  This patch is
16291         currently waiting to be integrated into glibc; see
16292         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
16293
16294         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
16295         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
16296         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
16297         (struct obstack): temp member is now a union of a pointer and
16298         an integer, instead of an integer.  All integer uses changed.
16299         This does not affect the physical layout of struct obstack,
16300         except on hosts (like the AS/400) where the size or alignment of
16301         void * is greater than that of ptrdiff_t.
16302         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
16303         __STDC__)]: Store temporary in pointer member of union, not
16304         integer member.
16305         * lib/obstack.c: Include <stddef.h>, for offsetof.
16306         (struct fooalign): Remove; it doesn't need a name.
16307         (union fooround): Change double to long double, and add void *.
16308         (DEFAULT_ALIGNMENT): Use offsetof to compute.
16309         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
16310         not a macro.  Hence the values are always int; so remove all
16311         casts-to-int in uses.
16312
16313 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
16314
16315         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
16316         we can get this patch merged into glibc.
16317
16318 2004-05-17  Derek R. Price  <derek@ximbiot.com>
16319             Paul Eggert  <eggert@cs.ucla.edu>
16320
16321         * m4/argp: Depend on alloca.
16322
16323 2004-05-17  Derek R. Price  <derek@ximbiot.com>
16324             Paul Eggert  <eggert@cs.ucla.edu>
16325
16326         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
16327         freecoding.
16328
16329 2004-05-17  Bruno Haible  <bruno@clisp.org>
16330
16331         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
16332         precision that consists of a '.' followed by an empty digit string.
16333         Patch by Tor Lillqvist <tml@iki.fi>.
16334
16335 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
16336
16337         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
16338         for backward compatibility with older code.  We need our own
16339         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
16340         it under some other name, and our alloca.h will define it.
16341
16342 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
16343             Derek Price  <derek@ximbiot.com>
16344
16345         * lib/alloca.c: Include <alloca.h>, to get our interface.
16346         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
16347         include <alloca.h> first.  Use C89 prototype for alloca; this
16348         requires including <stddef.h> for size_t.  Use extern "C" if C++.
16349         Use #elif for simplicity, since we can assume C89 now.
16350         Don't try to source the system alloca.h since it will not be found
16351         and to prevent recursively including its replacement.
16352         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
16353         * lib/regex.c: Likewise.
16354
16355 2004-05-16  Derek Price  <derek@ximbiot.com>
16356             Paul Eggert  <eggert@cs.ucla.edu>
16357
16358         getline cleanup.  This changes the getndelim2 API: both order of
16359         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
16360         no delimiter).
16361
16362         * lib/getline.c: Don't include stddef.h or stdio.h, since our
16363         interface does that.
16364         (getline): Always use getdelim, so that we don't have two
16365         copies of this code.
16366         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
16367         if available.
16368         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
16369         (GETNDELIM2_MAXIMUM): New macro.
16370         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
16371         instead of the old practice of delim2==0.  All callers changed.
16372         Return -1 on overflow, instead of returning junk.
16373         Do not set *linesize unless allocation succeeds.
16374         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
16375         that we include sys/types.h.
16376         * lib/getnline.h: Likewise.
16377         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
16378         (getndelim2): Reorder arguments.
16379         * lib/getnline.c (getnline, getndelim):
16380         Don't discard the NMAX argument.
16381         (getnline): Invoke getndelim, to avoid code duplication.
16382         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
16383         of (size_t) -1 by callers of the getnline family.
16384
16385 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
16386
16387         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
16388         Check for gettimeofday.
16389         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
16390         Check for settimeofday, stime.
16391
16392 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
16393
16394         * lib/nanosleep.c (suspended): Change its type from int to
16395         sig_atomic_t volatile.
16396         (first_call): Make it private to rpl_nanosleep, and have it
16397         be zero initially as that's a bit faster.
16398         (my_usleep): Round up fractional times instead of truncating them,
16399         as this is the usual meaning for 'sleep'.
16400
16401         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
16402         doesn't work.
16403         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
16404         (ENOSYS): Define if not defined.
16405         (settime): Fall back on stime if it exists and settimeofday fails.
16406         But don't bother with fallbacks if a method fails with errno == EPERM.
16407
16408 2004-05-11  Jim Meyering  <jim@meyering.net>
16409
16410         Prior to this change, the save_cwd caller required read access to the
16411         current directory on most systems (ones with the fchdir function).
16412
16413         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
16414         fails, try write-only, and finally, resort to using xgetcwd.
16415
16416 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
16417
16418         * lib/obstack.c, obstack.h: Import changes from libc.
16419
16420 2004-04-28  Bruno Haible  <bruno@clisp.org>
16421
16422         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
16423         also implicitly appends .exe to executables.
16424         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
16425         accepts Windows pathnames.
16426         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
16427         Treat Cygwin like Windows, since it now accepts Windows pathnames.
16428         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
16429         Treat Cygwin like Windows, since it now accepts Windows pathnames.
16430         Reported by Derek Robert Price <derek@ximbiot.com>.
16431
16432 2004-04-21  Karl Berry  <karl@gnu.org>
16433
16434         * config/srclist.txt (localcharset.c): break sync.
16435
16436 2004-04-20  Paul Eggert  <eggert@twinsun.com>
16437
16438         * m4/host-os.m4: Add a copyright notice.
16439
16440 2004-04-20  Jim Meyering  <jim@meyering.net>
16441
16442         Change UTILS_ to gl_ in AC_DEFINE'd names.
16443         Change utils_- and jm_-prefixed variables, too.
16444         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
16445         UTILS_FUNC_MKDIR_TRAILING_SLASH.
16446         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
16447
16448         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
16449         Don't emit trailing blanks.
16450         Also rename jm_-prefixed variables to have gl_ prefix.
16451
16452         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
16453         Also rename jm_-prefixed variables to have gl_ prefix.
16454
16455         * m4/jm-macros.m4: Reflect the renamings.
16456         * m4/prereq.m4: Likewise.
16457
16458 2004-04-20  Jim Meyering  <jim@meyering.net>
16459
16460         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
16461         memory.
16462
16463 2004-04-20  Jim Meyering  <jim@meyering.net>
16464             Bruno Haible  <bruno@clisp.org>
16465
16466         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
16467         memory when realloc fails.
16468
16469 2004-04-19  Jim Meyering  <jim@meyering.net>
16470
16471         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
16472         now that readutmp.c may call `free (0)'.
16473
16474 2004-04-19  Bruno Haible  <bruno@clisp.org>
16475
16476         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
16477         * m4/inttypes_h.m4: Likewise.
16478         * m4/stdint_h.m4: Likewise.
16479         * m4/intmax_t.m4: Likewise.
16480         * m4/uintmax_t.m4: Likewise.
16481
16482 2004-04-18  Jim Meyering  <jim@meyering.net>
16483
16484         * m4/prereq.m4: Don't forbid jm_ prefix.
16485
16486         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
16487         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
16488         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
16489         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
16490         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
16491         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
16492         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
16493         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
16494         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
16495         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
16496         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
16497         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
16498         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
16499         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
16500         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
16501         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
16502         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
16503         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
16504         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
16505
16506 2004-04-18  Jim Meyering  <jim@meyering.net>
16507
16508         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
16509         failure, don't leak memory and do call END_UTMP_ENT.
16510
16511 2004-04-16  Jim Meyering  <jim@meyering.net>
16512
16513         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
16514         coreutils' stat program.
16515         (gl_PREREQ): Don't require jm_PREREQ_STAT.
16516
16517 2004-04-11  Paul Eggert  <eggert@twinsun.com>
16518
16519         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
16520         C89.
16521         (CHAR_BIT): Remove, since we assume C89.
16522         Include <stdint.h> if available, as per current Autoconf CVS advice.
16523
16524 2004-03-31  Jim Meyering  <jim@meyering.net>
16525
16526         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
16527         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
16528         * m4/xalloc.m4: Likewise.
16529
16530 2004-03-30  Paul Eggert  <eggert@twinsun.com>
16531
16532         Merge from coreutils.
16533
16534         * m4/inttostr.m4: New file.
16535         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
16536         Require AM_STDBOOL_H and gl_TIMESPEC instead.
16537         Require gl_CLOCK_TIME.
16538         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
16539
16540 2004-03-30  Paul Eggert  <eggert@twinsun.com>
16541
16542         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
16543         not bool, to be more consistent with Unix conventions.
16544         Suggested by Bruno Haible.
16545
16546         Merge from coreutils.
16547
16548         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
16549         * lib/umaxtostr.c: New files.
16550
16551         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
16552         the usual <time.h> dance.
16553         (get_date): Change signature to support fractional time stamps.
16554         All callers changed.
16555         * lib/getdate.y: Include "getdate.h" first, as we can now
16556         assume C89 and don't need to worry about 'const'.
16557         Similarly, include "unlocked-io.h" near start, not in middle.
16558         Include <limits.h>.
16559         (textint.value): Use long int rather than int.
16560         (textint.digits): Use size_t rather than int.
16561         (BILLION, LOG10_BILLION): New constants.
16562         (parser_control): New member rel_ns.  Members day_ordinal,
16563         time_zone, month, day, hour, minutes, rel_year, rel_month,
16564         rel_day, rel_hour, rel_minutes, rel_seconds
16565         are now long int, not int.  Member seconds is now struct timespec,
16566         not int.  New member timespec_seen.  Members dates_seen, days_seen,
16567         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
16568         not int.
16569         (%union.intval): Now long int, not int.
16570         New member timespec.
16571         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
16572         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
16573         (spec): Now is a timespec or an item list.
16574         (timespec, items): New nonterminals.
16575         (time, rel, relunit, number, get_date):
16576         Add support for fractional seconds.
16577         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
16578         (gmtime, localtime, mktime): Remove decls; not needed with C89.
16579         (to_hour): First arg is now long int, not int.
16580         (to_year): Returns long int, not int.
16581         Don't treat year -70 like 70.
16582         (tm_diff): Returns long int, not int.
16583         (lookup_word): Use bool instead of int when appropriate.
16584         (yylex): Use size_t for count, not int.
16585         Detect overflow when parsing large integer constants.
16586         Add support for fractions.
16587         (get_date): Make pointers 'const' if possible.
16588         Use more-portable code to detect integer overflow.
16589         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
16590         Don't use ctime; it's not reliable if the year has >4 digits.
16591
16592         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
16593         This is for compatibility with BSD.
16594
16595         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
16596         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
16597         From coreutils' system.h.
16598
16599         * lib/userspec.c: Don't include "posixver.h".
16600         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
16601         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
16602         compatible extension.  Simplify code by removing a boolean int
16603         that was always nonzero if a string was nonnull.
16604
16605 2004-03-30  Jim Meyering  <jim@meyering.net>
16606
16607         Merge from coreutils.
16608
16609         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
16610         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
16611         on some systems one must include <grp.h> before it.
16612         Reported by Christian Krackowizer.
16613
16614 2004-03-30  Jim Meyering  <jim@meyering.net>
16615
16616         Merge from coreutils.
16617
16618         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
16619
16620         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
16621         an empty input stream.
16622
16623         * lib/readtokens.c: Include <stdbool.h>.
16624         (readtoken): Use `size_t' rather than int/long.
16625         All callers adjusted.
16626         Use `bool' rather than `int' where appropriate.
16627         Use memset rather than an explicit loop.
16628         Use x2nrealloc rather than xrealloc.
16629         Allow the use of `\0' as a delimiter.
16630         (readtokens): Likewise.
16631         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
16632
16633 2004-03-30  Jim Meyering  <jim@meyering.net>
16634
16635         * m4/realloc.m4: Remove file, since now it does no more than
16636         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
16637         the `configure.ac' section of module/realloc.
16638         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
16639
16640 2004-03-30  Bruno Haible  <bruno@clisp.org>
16641
16642         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
16643         nonnull.
16644
16645 2004-03-29  Paul Eggert  <eggert@twinsun.com>
16646
16647         Merge changes to getloadavg.c from coreutils and Emacs.
16648
16649         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
16650         Define to an expression, not to the empty string.
16651         Include cloexec.h and xalloc.h.
16652         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
16653         Use set_cloexec_flag rather than rolling our own.
16654         * lib/cloexec.c, lib/cloexec.h: New files.
16655
16656 2004-03-29  Paul Eggert  <eggert@twinsun.com>
16657
16658         * m4/cloexec.m4: New file.
16659
16660 2004-03-18  Paul Eggert  <eggert@twinsun.com>
16661
16662         * lib/getopt.h: Sync with libc CVS.
16663
16664 2004-03-18  Paul Eggert  <eggert@twinsun.com>
16665             Bruno Haible  <bruno@clisp.org>
16666
16667         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
16668         mbswidth.
16669
16670 2004-03-18  Paul Eggert  <eggert@twinsun.com>
16671             Bruno Haible  <bruno@clisp.org>
16672
16673         * lib/mbswidth.h: Include <wchar.h> only if
16674         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
16675         <wchar.h>.
16676         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
16677
16678 2004-03-09  Paul Eggert  <eggert@twinsun.com>
16679
16680         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
16681         Sync with libc CVS.
16682         * lib/getopt_int.h: New file, also synced from libc.
16683
16684 2004-03-09  Paul Eggert  <eggert@twinsun.com>
16685
16686         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
16687         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
16688         Bring back getopt.c, getopt.h, getopt1.c.
16689
16690 2004-03-07  Paul Eggert  <eggert@twinsun.com>
16691
16692         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
16693         All uses changed.  Check for sa_sigaction member; this fixes
16694         a bug first reported by Jason Andrade in
16695         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
16696
16697 2004-03-07  Paul Eggert  <eggert@twinsun.com>
16698
16699         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
16700         '#if' expressions.  Unlike the code it replaces, it does not
16701         depend on (defined _SC_PAGESIZE).  However, it does depend on
16702         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
16703         first reported by Jason Andrade in
16704         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
16705
16706 2004-02-25  Simon Josefsson  <jas@extundo.com>
16707
16708         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
16709
16710 2004-02-25  Simon Josefsson  <jas@extundo.com>
16711
16712         * lib/strdup.h: New file.
16713         * lib/strdup.c: Include it.
16714         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
16715         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
16716
16717 2004-02-23  Karl Berry  <karl@gnu.org>
16718
16719         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
16720         (from fencepost.gnu.org:/gd/gnuorg).
16721
16722 2004-02-23  Karl Berry  <karl@gnu.org>
16723
16724         * config/srclistvars.sh (GNUORG) [karl]: redefine.
16725         * config/srclist.txt: add maintain/standards documents.
16726
16727 2004-02-18  Bruno Haible  <bruno@clisp.org>
16728
16729         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
16730         Reported by Derek Robert Price <derek@ximbiot.com>.
16731
16732 2004-02-16  Karl Berry  <karl@gnu.org>
16733
16734         * config/mkinstalldirs, install-sh: update from automake.
16735
16736 2004-02-06  Karl Berry  <karl@gnu.org>
16737
16738         * m4/po.m4: update from gettext 0.14.1.
16739
16740 2004-02-06  Karl Berry  <karl@gnu.org>
16741
16742         * lib/config.charset: update from gettext 0.14.1.
16743
16744 2004-02-05  Paul Eggert  <eggert@twinsun.com>
16745
16746         Add comments and code, prompted by suggestions from Bruno Haible
16747         for sh-quote.
16748         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
16749         describing the enum quoting_style values.
16750         * lib/quotearg.c (quotearg_alloc): New function.
16751         (quotearg_buffer_restyled): Treat lone { and } as special.
16752         Treat = as special.  Work around bug with older shells
16753         that "see" a '\' that is really the 2nd byte of a multibyte char.
16754         Quote empty string with shell_quoting_style.
16755
16756 2004-02-03  Bruno Haible  <bruno@clisp.org>
16757
16758         * m4/pipe.m4: New file, from GNU gettext.
16759
16760 2004-02-03  Bruno Haible  <bruno@clisp.org>
16761
16762         * lib/pipe.h: New file, from GNU gettext.
16763         * lib/pipe.c: New file, from GNU gettext.
16764
16765 2004-01-27  Bruno Haible  <bruno@clisp.org>
16766
16767         * m4/execute.m4: New file, from GNU gettext.
16768
16769 2004-01-27  Bruno Haible  <bruno@clisp.org>
16770
16771         * lib/execute.h: New file, from GNU gettext.
16772         * lib/execute.c: New file, from GNU gettext.
16773         * lib/w32spawn.h: New file, from GNU gettext.
16774
16775 2004-01-24  Paul Eggert  <eggert@twinsun.com>
16776
16777         Merge from diffutils.
16778
16779         * lib/file-type.c (file_type): Add typed memory objects.
16780         * lib/file-type.h (S_TYPEISTMO): New macro.
16781
16782         * lib/c-stack.h (c_stack_action): Remove argv argument.
16783         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
16784         (die): Don't calculate message unless segv_action returns.
16785         (get_stack_location, min_address_from_argv, max_address_from_argv,
16786         volatile stack_base, volatile_stack_size): Remove.
16787         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
16788         that every segmentation violation is a stack overflow.  (Ouch!)
16789         See Debian bug 136249 (still outstanding) for more info about why
16790         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
16791
16792 2004-01-24  Paul Eggert  <eggert@twinsun.com>
16793
16794         Exit-status fix from coreutils.
16795
16796         Use exit_failure consistently in place of EXIT_FAILURE,
16797         so that program exit statuses are consistent on failure.
16798
16799         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
16800         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
16801         * lib/argmatch.h: Comment fix to match the above.
16802         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
16803         Now a macro referring to exit_failure, instead of a separate
16804         variable.  Include "exitfail.h" to get it.
16805         * lib/xstrtol.h: Include "exitfail.h".
16806         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
16807
16808         * lib/long-options.c (parse_long_options): Use prototype
16809         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
16810         for clarity.
16811
16812 2004-01-21  Jim Meyering  <jim@meyering.net>
16813
16814         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
16815         so as not to conflict with a different-sized __mktime_internal
16816         function in GNU libc.
16817         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
16818         Problem building statically-linked `ls' reported by Michael Brunnbauer.
16819
16820 2004-01-20  Karl Berry  <karl@gnu.org>
16821
16822         * config/config.guess: update from config.
16823
16824         * config/srclistvars.sh: GNUWWWLICENSES for karl.
16825
16826 2004-01-20  Bruno Haible  <bruno@clisp.org>
16827
16828         Safer stack allocation.
16829         * lib/setenv.c: Include allocsa.h.
16830         (alloca): Remove fallback definition.
16831         (freea): Remove macro.
16832         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
16833         instead of freea.
16834
16835 2004-01-20  Bruno Haible  <bruno@clisp.org>
16836
16837         * m4/eealloc.m4: New file, from GNU gettext.
16838
16839 2004-01-20  Bruno Haible  <bruno@clisp.org>
16840
16841         * m4/allocsa.m4: New file, from GNU gettext.
16842
16843 2004-01-20  Bruno Haible  <bruno@clisp.org>
16844
16845         * lib/xallocsa.h: New file, from GNU gettext.
16846         * lib/xallocsa.c: New file, from GNU gettext.
16847
16848 2004-01-20  Bruno Haible  <bruno@clisp.org>
16849
16850         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
16851
16852 2004-01-20  Bruno Haible  <bruno@clisp.org>
16853
16854         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
16855         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
16856         specially.
16857
16858 2004-01-20  Bruno Haible  <bruno@clisp.org>
16859
16860         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
16861         patch.
16862
16863 2004-01-20  Bruno Haible  <bruno@clisp.org>
16864
16865         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
16866
16867 2004-01-20  Bruno Haible  <bruno@clisp.org>
16868
16869         * lib/eealloc.h: New file.
16870
16871 2004-01-20  Bruno Haible  <bruno@clisp.org>
16872
16873         * lib/binary-io.h: Avoid warnings on Cygwin.
16874
16875 2004-01-20  Bruno Haible  <bruno@clisp.org>
16876
16877         * lib/allocsa.h: New file, from GNU gettext.
16878         * lib/allocsa.c: New file, from GNU gettext.
16879
16880 2004-01-18  Karl Berry  <karl@gnu.org>
16881
16882         * doc/gpl.texi, doc/lgpl.texi: new files.
16883
16884 2004-01-18  Karl Berry  <karl@gnu.org>
16885
16886         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
16887         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
16888
16889 2004-01-15  Paul Eggert  <eggert@twinsun.com>
16890
16891         Merge from coreutils.
16892
16893         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
16894         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
16895         (gl_DEFAULT_POSIX2_VERSION): Move
16896         the documentation from 'configure' into 'config.hin',
16897         so that 'configure --help' isn't burdened by it and
16898         we don't have to worry about its formatting there.
16899         Reword the documentation so that it's more succinct
16900         and can be run together into a single paragraph.
16901         * m4/same.m4 (gl_SAME): Check for pathconf.
16902
16903 2004-01-15  Paul Eggert  <eggert@twinsun.com>
16904
16905         Merge from coreutils.
16906
16907         * lib/posixver.c: Include posixver.h.
16908
16909         * lib/same.c: Include <stdbool.h>, <limits.h>.
16910         (_POSIX_NAME_MAX): Define if not defined.
16911         (MIN): New macro.
16912         (same_name): If file names are silently truncated, report
16913         that the file names are the same if they are the same after
16914         the silent truncation.
16915
16916         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
16917         conversion function.
16918         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
16919         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
16920         longer needed.
16921
16922 2004-01-15  Jim Meyering  <jim@meyering.net>
16923
16924         Merge from coreutils.
16925
16926         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
16927         if no library is required.
16928         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
16929         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
16930         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
16931         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
16932         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
16933         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
16934         value, $ac_cv_search_crypt, if it's "none required".
16935         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
16936         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
16937         not gl_FUNC_GETLOADAVG.
16938         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
16939         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
16940
16941 2004-01-15  Jim Meyering  <jim@meyering.net>
16942
16943         Merge from coreutils.
16944
16945         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
16946         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
16947         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
16948
16949         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
16950         optional configure-time default.
16951
16952         * lib/version-etc.c (version_etc_copyright): Update copyright date.
16953
16954         * lib/xreadlink.c (xreadlink): Correct outdated comment.
16955
16956 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
16957
16958         Merge from coreutils.
16959
16960         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
16961         value, $ac_cv_search_nanosleep, if it's "none required".
16962
16963 2004-01-14  Paul Eggert  <eggert@twinsun.com>
16964
16965         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
16966         with like-named macro in fnmatch.c.
16967         (EXT): Use an internal constant instead.
16968
16969         Merge fnmatch patches from glibc.
16970         * lib/fnmatch.c (mbsinit): Remove define.
16971         Add libc_hidden_ver (__fnmatch, fnmatch).
16972         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
16973         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
16974
16975 2004-01-14  Karl Berry  <karl@gnu.org>
16976
16977         * config/install-sh: update from automake.
16978
16979 2004-01-13  Karl Berry  <karl@gnu.org>
16980
16981         * config/install-sh: update from automake.
16982
16983 2004-01-09  Karl Berry  <karl@gnu.org>
16984
16985         * config/install-sh: update from automake.
16986
16987 2004-01-05  Karl Berry  <karl@gnu.org>
16988
16989         * config/config.{sub,guess}: update from config.
16990
16991 2003-12-31  Karl Berry  <karl@gnu.org>
16992
16993         * config/depcomp: update from automake.
16994
16995 2003-12-14  Karl Berry  <karl@gnu.org>
16996
16997         * lib/config.charset: update from gettext-runtime.
16998
16999 2003-12-03  Paul Eggert  <eggert@twinsun.com>
17000
17001         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
17002         Bug reported by Alfred M. Szmidt.
17003
17004 2003-12-03  Bruno Haible  <bruno@clisp.org>
17005
17006         * m4/gettext.m4: Upgrade from gettext-0.13.
17007         * m4/po.m4: Upgrade from gettext-0.13.
17008         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
17009         * m4/intmax.m4: New file, from gettext-0.13.
17010         * m4/printf-posix.m4: New file, from gettext-0.13.
17011
17012 2003-11-29  Karl Berry  <karl@gnu.org>
17013
17014         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
17015
17016 2003-11-25  Paul Eggert  <eggert@twinsun.com>
17017             Bruno Haible  <bruno@clisp.org>
17018
17019         * lib/printf-parse.h: Don't include sys/types.h.
17020         (ARG_NONE): New macro.
17021         (char_directive): Change type of *arg_index fields to size_t.
17022         * lib/printf-parse.c: Don't include sys/types.h.
17023         (SSIZE_MAX): Remove macro.
17024         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
17025         Remove unnecessary overflow check.
17026         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
17027         fields.
17028
17029 2003-11-25  Bruno Haible  <bruno@clisp.org>
17030
17031         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
17032
17033 2003-11-25  Bruno Haible  <bruno@clisp.org>
17034
17035         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
17036         gt_TYPE_SSIZE_T.
17037
17038 2003-11-24  Paul Eggert  <eggert@twinsun.com>
17039
17040         * modules/alloca: Remove dependency on xalloc.
17041
17042 2003-11-24  Paul Eggert  <eggert@twinsun.com>
17043
17044         * lib/alloca.c: Remove dependency on xalloc module.
17045         (xalloc_die): Remove.
17046         (memory_full) [!defined emacs]: New macro.
17047         [!defined emacs]: Don't include xalloc.h.
17048         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
17049         address arithmetic overflows.  Change datatypes a bit to avoid
17050         unnecessary casts.
17051
17052 2003-11-22  Jim Meyering  <jim@meyering.net>
17053
17054         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
17055         s/size/size_t/.
17056
17057 2003-11-21  Karl Berry  <karl@gnu.org>
17058
17059         * config/config.{sub,guess}: update from config.
17060
17061 2003-11-18  Karl Berry  <karl@gnu.org>
17062
17063         * config/config.{sub,guess}: update from config.
17064
17065         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
17066
17067 2003-11-17  Paul Eggert  <eggert@twinsun.com>
17068
17069         * README: Mention that S+T cannot overflow if S is the size of
17070         an existing object and T is sufficiently small.
17071
17072 2003-11-17  Jim Meyering  <jim@meyering.net>
17073
17074         On systems without utime and without a utimes function capable of
17075         dealing with a NULL struct utimbuf* argument, this utime replacement
17076         could -- in unusual circumstances -- leak a file descriptor.
17077         * lib/utime.c: Include <unistd.h> and <errno.h>.
17078         (utime_null): Be sure to close `fd' and to preserve errno.
17079         Reported by Geoff Collyer via Arnold Robbins.
17080
17081 2003-11-17  Bruno Haible  <bruno@clisp.org>
17082
17083         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
17084         (Depends-on): Add xsize.
17085
17086 2003-11-17  Bruno Haible  <bruno@clisp.org>
17087
17088         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
17089
17090 2003-11-17  Bruno Haible  <bruno@clisp.org>
17091
17092         * lib/vasnprintf.c (alloca): Remove fallback definition.
17093         (freea): Remove definition.
17094         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
17095         Reported by Paul Eggert.
17096
17097 2003-11-16  Paul Eggert  <eggert@twinsun.com>
17098             Bruno Haible  <bruno@clisp.org>
17099
17100         Protect against address arithmetic overflow.
17101         * lib/printf-args.h: Include stddef.h.
17102         (arguments): Change type of field 'count' to size_t.
17103         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
17104         'unsigned int' where appropriate.
17105         * lib/printf-parse.h: Include sys/types.h.
17106         (char_directive): Change type of *arg_index fields to ssize_t.
17107         (char_directives): Change type of fields 'count', max_*_length to
17108         size_t.
17109         * lib/printf-parse.c: Include sys/types.h and xsize.h.
17110         (SSIZE_MAX): Define fallback value.
17111         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
17112         instead of 'int' where appropriate. Check a_allocated, d_allocated
17113         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
17114         * lib/vasnprintf.c: Include xsize.h.
17115         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
17116         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
17117         overflow. Avoid wraparound when converting a width or precision from
17118         decimal to binary.
17119
17120 2003-11-16  Bruno Haible  <bruno@clisp.org>
17121
17122         Update from GNU gettext.
17123         * lib/printf-parse.c: Generalize to it can be compiled for wide
17124         strings.
17125         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
17126         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
17127         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
17128         SNPRINTF): New macros.
17129         Don't include <alloca.h> if the file is used inside libintl.
17130         (local_wcslen): New function, for Solaris 2.5.1.
17131         (VASNPRINTF): Use it instead of wcslen.
17132
17133 2003-11-16  Bruno Haible  <bruno@clisp.org>
17134
17135         * lib/xsize.h (xmax): New function.
17136         (xsum, xsum3, xsum4): Declare as "pure" functions.
17137
17138 2003-11-12  Paul Eggert  <eggert@twinsun.com>
17139
17140         * modules/xalloc (Files): Undo latest change, since xalloc.h
17141         no longer needs SIZE_MAX or PTRDIFF_MAX.
17142
17143 2003-11-12  Paul Eggert  <eggert@twinsun.com>
17144
17145         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
17146         gl_PTRDIFF_MAX.
17147
17148 2003-11-12  Paul Eggert  <eggert@twinsun.com>
17149
17150         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
17151         "return", to pacify some unknown compiler.  Problem reported
17152         by Joerg Schilling.
17153
17154 2003-11-12  Paul Eggert  <eggert@twinsun.com>
17155
17156         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
17157         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
17158         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
17159         heuristic is just as accurate as far as we know, and it removes a
17160         dependency on size_max.m4 and ptrdiff_max.m4.
17161
17162 2003-11-11  Bruno Haible  <bruno@clisp.org>
17163
17164         * modules/xsize (Files): Add m4/size_max.m4.
17165         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
17166
17167 2003-11-11  Bruno Haible  <bruno@clisp.org>
17168
17169         * m4/size_max.m4: New file.
17170         * m4/ptrdiff_max.m4: New file.
17171         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
17172         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
17173         (gl_XALLOC): Invoke it.
17174
17175 2003-11-11  Bruno Haible  <bruno@clisp.org>
17176
17177         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
17178         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
17179         defined.
17180
17181 2003-11-10  Paul Eggert  <eggert@twinsun.com>
17182
17183         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
17184         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
17185         rejected some allocations of exactly SIZE_MAX - 2 bytes.
17186         From Bruno Haible.
17187         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
17188         not (size_t) -1, since it's defined here.
17189
17190 2003-11-09  Karl Berry  <karl@gnu.org>
17191
17192         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
17193
17194 2003-11-06  Paul Eggert  <eggert@twinsun.com>
17195
17196         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
17197         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
17198         Reject sizes of exactly SIZE_MAX bytes.
17199         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
17200         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
17201
17202 2003-11-05  Bruno Haible  <bruno@clisp.org>
17203
17204         * lib/xsize.h: Include limits.h, to avoid a possible collision with
17205         SIZE_MAX defined in <limits.h> on Solaris.
17206
17207 2003-11-04  Jim Meyering  <jim@meyering.net>
17208
17209         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
17210         variable names, rather than @VAR@.
17211         * modules/poll: Likewise.
17212
17213 2003-11-04  Bruno Haible  <bruno@clisp.org>
17214
17215         * modules/xsize: New file.
17216         * modules/linebreak: Depend on xsize.
17217         * MODULES.html.sh (func_all_modules): Add xsize.
17218
17219 2003-11-04  Bruno Haible  <bruno@clisp.org>
17220
17221         * m4/xsize.m4: New file.
17222
17223 2003-11-04  Bruno Haible  <bruno@clisp.org>
17224
17225         * lib/xsize.h: New file.
17226         * lib/linebreak.c: Include xsize.h.
17227         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
17228         argument for overflow.
17229         Suggested by Paul Eggert.
17230
17231 2003-11-03  Karl Berry  <karl@gnu.org>
17232
17233         * config/config.{guess,sub}: update from config.
17234
17235 2003-11-03  Jim Meyering  <jim@meyering.net>
17236
17237         * modules/userspec (lib_SOURCES): Add userspec.h.
17238         (Include): Add "userspec.h".
17239         Improve description.
17240
17241 2003-11-03  Jim Meyering  <jim@meyering.net>
17242
17243         * lib/userspec.c: Include "userspec.h".
17244         * lib/userspec.h: New file.
17245
17246 2003-11-03  Bruno Haible  <bruno@clisp.org>
17247
17248         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
17249
17250 2003-11-03  Bruno Haible  <bruno@clisp.org>
17251
17252         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
17253         available, to avoid (extremely rare) race condition.
17254         Suggested by Paul Eggert.
17255
17256 2003-11-02  Karl Berry  <karl@gnu.org>
17257
17258         * config/srclist.txt (vasprintf.c): sync broken, sigh.
17259
17260 2003-10-31  Paul Eggert  <eggert@twinsun.com>
17261
17262         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
17263         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
17264         (read_filesystem_list): Set and use me_type_malloced.
17265         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
17266         whatever the type happens to be), for brevity and consistency.
17267         Check for size calculation overflow on Alphas running OSF/1.
17268
17269 2003-10-31  Jim Meyering  <jim@meyering.net>
17270
17271         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
17272
17273         * lib/linebuffer.c: Include <string.h> for declaration of memset.
17274
17275 2003-10-30  Paul Eggert  <eggert@twinsun.com>
17276             Bruno Haible  <bruno@clisp.org>
17277
17278         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
17279         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
17280
17281 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
17282
17283         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
17284         netbsd*-gnu*.  Suggested by Robert Millan.
17285
17286 2003-10-29  Paul Eggert  <eggert@twinsun.com>
17287
17288         * modules/group-member: Depend on stdbool.
17289
17290 2003-10-29  Paul Eggert  <eggert@twinsun.com>
17291
17292         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
17293
17294 2003-10-29  Paul Eggert  <eggert@twinsun.com>
17295
17296         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
17297         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
17298         after the 'gnu' in these cases.  This fixes some bugs in the
17299         previous change, and is based on suggestions by Robert Millan.
17300
17301 2003-10-29  Paul Eggert  <eggert@twinsun.com>
17302
17303         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
17304         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
17305         no longer needed.
17306         * lib/quotearg.c (quotearg_n_options): Use it.
17307         * lib/group-member.c: Include <stdbool.h>.
17308         (free_group_info): Arg is now const *; don't free arg.
17309         (get_group_info): Now returns bool and accepts struct group_info *,
17310         rather than returning a malloc'ed struct group_info *.
17311         All uses changed.  Check for overflow in internal size calculation.
17312
17313         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
17314         rather than xmalloc/xrealloc.
17315         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
17316         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
17317         conformance bug: the old code used a pointer after freeing the
17318         storage that it addressed.
17319         * lib/hash.c (hash_initialize): Simplify the code by using
17320         xalloc_oversized rather than doing it by hand.
17321         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
17322         the buffer preserved.  Use free and xmalloc instead.
17323         * lib/quotearg.c (quotearg_n_options): Likewise.
17324         Use a simpler test for size overflow.  Don't use xalloc_oversized
17325         because unsigned int might be wider than size_t (!); this suggests
17326         that we should switch from unsigned int to size_t for slot numbers.
17327
17328 2003-10-28  Paul Eggert  <eggert@twinsun.com>
17329
17330         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
17331         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
17332         NetBSD kernels.  Requested by Richard Stallman.
17333
17334 2003-10-27  Paul Eggert  <eggert@twinsun.com>
17335
17336         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
17337         to allocate the returned structure.  Do not allocate a subarray,
17338         as x2nrealloc will do that.
17339         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
17340         instead of xnrealloc.
17341         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
17342
17343 2003-10-27  Bruno Haible  <bruno@clisp.org>
17344
17345         * lib/stdbool_.h: Better support for BeOS.
17346
17347 2003-10-26  Paul Eggert  <eggert@twinsun.com>
17348
17349         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
17350         now uses inline.
17351
17352 2003-10-26  Paul Eggert  <eggert@twinsun.com>
17353
17354         * lib/xalloc.h (xalloc_oversized): New static inline function, for
17355         callers that want to do their own size-overflow checking.  Include
17356         <stdbool.h>, since xalloc_oversized returns bool.
17357         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
17358         to use xalloc_oversized.
17359
17360         Add two functions x2realloc, x2nrealloc, for programs that grow
17361         arrays dynamically by doubling their sizes.
17362         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
17363         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
17364         New functions.
17365
17366         Port to C99 semantics for 'inline' of external functions.
17367         Bug reported by Bruno Haible.
17368         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
17369         with the old contents of xnmalloc.
17370         (xnmalloc, xmalloc): Use it.
17371         (xnrealloc_inline): New static inline function,
17372         with the old contents of xnrealloc.
17373         (xnrealloc, xrealloc): Use it.
17374
17375         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
17376         that.
17377
17378 2003-10-26  Karl Berry  <karl@gnu.org>
17379
17380         * config/srclist.txt (COPYING.DOC): no longer available from
17381         /gd/gnuorg; don't know where the ultimate source is.
17382
17383 2003-10-25  Paul Eggert  <eggert@twinsun.com>
17384
17385         Fix several address-calculation bugs in the hash modules,
17386         plus some minor code cleanup.
17387
17388         * lib/hash.h: Include <stdbool.h>, for bool.
17389         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
17390         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
17391         hash_get_n_entries, hash_get_max_bucket_length,
17392         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
17393         hash_rehash): Use size_t rather than unsigned.
17394         * lib/hash.c (struct hash_table, hash_get_n_buckets,
17395         hash_get_n_buckets_used, hash_get_n_entries,
17396         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
17397         hash_get_entries, hash_do_for_each, hash_string, is_prime,
17398         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
17399         Likewise.
17400         (SIZE_MAX): Define if not defined.
17401         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
17402         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
17403         hash_print):
17404         Use const * when possible.
17405         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
17406         (check_tuning): Fix bug: if tuning parameters were very close to
17407         0 or 1, rounding errors could have caused subscript violations.
17408         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
17409         (hash_initialize): Add 'fail:' label
17410         to free table and return NULL, and use it to simplify code.
17411         Use calloc rather than clearing the storage ourself.
17412         (hash_initialize, hash_rehash): Check for arithmetic overflow in
17413         buffer size calculations.
17414         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
17415         Include <stddef.h>, for size_t.
17416         * lib/hash-pjw.c (hash_pjw): Likewise.
17417         Switch to method described by Bruno Haible.
17418         Include <limits.h>, for CHAR_BIT.
17419         (SIZE_BITS): New macro.
17420
17421 2003-10-23  Paul Eggert  <eggert@twinsun.com>
17422
17423         * m4/getline.m4 (AM_FUNC_GETLINE):
17424         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
17425         hosts.  Problem reported by Derek Robert Price in
17426         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
17427         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
17428         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
17429
17430 2003-10-21  Paul Eggert  <eggert@twinsun.com>
17431
17432         * lib/getndelim2.c (getndelim2): When size calculation overflows,
17433         ceiling the allocation at NMAX bytes rather than silently
17434         discarding input bytes before NMAX is reached.  This makes
17435         a difference only if NMAX exceeds SIZE_MAX / 2.
17436
17437         * lib/obstack.c: Merge from glibc.
17438         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
17439         Add libc_hidden_def (_obstack_newchunk).
17440         (_obstack_free) [! defined _LIBC]: Remove.
17441         [defined _LIBC]: Make a strong alias from obstack_free, rather than
17442         a clone of the function body.
17443         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
17444         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
17445
17446         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
17447         glibc.
17448         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
17449         arg to memcpy.
17450
17451         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
17452         (obstack_ptr_grow_fast, obstack_int_grow_fast):
17453         Don't use lvalue casts, as GCC plans to remove support for them
17454         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
17455         was also present in the non-GCC version, indicating that this
17456         code had always been buggy and had never been widely used.
17457         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
17458         Use the fast variant of each macro, rather than copying the
17459         definiens of the fast variant; that way, we'll be more likely to
17460         catch future bugs in the fast variants.
17461
17462 2003-10-20  Bruno Haible  <bruno@clisp.org>
17463
17464         * modules/wait-process: New file.
17465         * MODULES.html.sh (func_all_modules): Add wait-process.
17466
17467 2003-10-20  Bruno Haible  <bruno@clisp.org>
17468
17469         * m4/wait-process.m4: New file.
17470
17471 2003-10-20  Bruno Haible  <bruno@clisp.org>
17472
17473         * lib/wait-process.h: New file, from GNU gettext.
17474         * lib/wait-process.c: New file, from GNU gettext.
17475
17476 2003-10-19  Jim Meyering  <jim@meyering.net>
17477
17478         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
17479         HPUX 10.20.
17480
17481 2003-10-18  Karl Berry  <karl@gnu.org>
17482
17483         * config/config.guess: update from config.
17484
17485 2003-10-16  Paul Eggert  <eggert@twinsun.com>
17486
17487         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
17488         (getgroups): First arg is int, not size_t.
17489         Don't let 'free' mangle errno.
17490
17491 2003-10-16  Paul Eggert  <eggert@twinsun.com>
17492
17493         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
17494
17495 2003-10-16  Karl Berry  <karl@gnu.org>
17496
17497         * config/config.{guess,sub}: update from config.
17498
17499 2003-10-16  Jim Meyering  <jim@meyering.net>
17500
17501         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
17502         memcpy.
17503
17504 2003-10-15  Paul Eggert  <eggert@twinsun.com>
17505
17506         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
17507         (SIZE_MAX): Remove.
17508         (new_exclude, add_exclude_file): Initial size no longer needs to
17509         be a power of 2.
17510         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
17511         our own address arithmetic overflow checking.
17512
17513         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
17514         (fnmatch): Do not alloca more than 2000 wide characters;
17515         instead, use malloc for large buffers.
17516         Check for address arithmetic overflow, and return -1
17517         with errno set to ENOMEM in that case.
17518         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
17519         (NEW_PATTERN): Do not alloca more than 8000 bytes;
17520         instead, return -1.  Check for address arithmetic overflow.
17521
17522 2003-10-14  Paul Eggert  <eggert@twinsun.com>
17523
17524         Handle invalid suffixes and overflow independently, so that
17525         callers can treat them independently as needed.  Fix some bugs in
17526         suffix handling, e.g., "100k@" was not diagnosed as an invalid
17527         suffix for a human-readable blocksize.  The major caller-visible
17528         change is the addition of a new
17529         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
17530         that both overflow and suffix chars were found.
17531
17532         * lib/human.c (humblock): Don't check separately for invalid suffix
17533         char; that is xstrtoumax's job (now that its bug is fixed).
17534         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
17535         INTMAX_MAX]: New macros.
17536         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
17537         TYPE_MAXIMUM): New macros.
17538         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
17539         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
17540         if overflow occurs, as it's what __strtol does and it's more useful
17541         in practice.
17542         (__xstrtol): If __strtol reports some error other than ERANGE,
17543         reflect it to the caller as LONGINT_INVALID.  If it reports
17544         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
17545         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
17546         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
17547         value.
17548         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
17549         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
17550         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
17551         [defined UINTMAX_MAX]: New macros.
17552
17553 2003-10-14  Bruno Haible  <bruno@clisp.org>
17554
17555         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
17556
17557 2003-10-14  Bruno Haible  <bruno@clisp.org>
17558
17559         * m4/sig_atomic_t: New file, from GNU gettext.
17560         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
17561
17562 2003-10-14  Bruno Haible  <bruno@clisp.org>
17563
17564         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
17565         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
17566         Also use volatile where needed.
17567
17568 2003-10-12  Paul Eggert  <eggert@twinsun.com>
17569
17570         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
17571         Change maintainer from Bruno Haible to 'all'.
17572
17573 2003-10-12  Paul Eggert  <eggert@twinsun.com>
17574
17575         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
17576
17577 2003-10-12  Paul Eggert  <eggert@twinsun.com>
17578
17579         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
17580         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
17581         and define in terms of the other primitives.
17582         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
17583         (SIZE_MAX): Define if not already defined.
17584         (array_size_overflow): New function.
17585         (xalloc_die): Abort instead of exiting if 'error' returns.
17586         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
17587         (xmalloc, xrealloc): Use them.
17588         (xcalloc): Check for address arithmetic overflow.
17589         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
17590         a bit faster than strcpy.
17591
17592 2003-10-10  Simon Josefsson  <jas@extundo.com>
17593
17594         * modules/argp (Depends-on): Add restrict and strcase.
17595
17596 2003-10-10  Simon Josefsson  <jas@extundo.com>
17597
17598         * m4/argp.m4: Add AC_C_INLINE.
17599
17600 2003-10-08  Paul Eggert  <eggert@twinsun.com>
17601
17602         Merge getpass from libc, plus a few fixes.
17603
17604         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
17605         Include <stdbool.h>.
17606         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
17607         __fsetlocking to empty.
17608         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
17609         do include <bits/libc-lock.h>.
17610         Do not include <fcntl.h>; not needed.
17611         [_LIBC]: Include <wchar.h>.
17612         (NOTCANCEL_MODE): New macro.
17613         (flockfile, funlockfile) [_LIBC]: New macros.
17614         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
17615         [!_LIBC]: New macros.
17616         (call_fclose): New function.
17617         (getpass): Use it.  Save tty stream separately; this simplifies the
17618         code and makes it more reliable if stdin happens to equal stdout.
17619         Invoke __fsetlocking on tty.
17620         Handle thread cancellation if needed.
17621         Namespace cleanup (use __tcgetattr, __getline).
17622         Use bool for Booleans.
17623         [USE_IN_LIBIO]: Handle wide streams.
17624         [!_LIBC]: Unconditionally do the fseek, since we don't know what
17625         stream might go where.
17626
17627         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
17628         doesn't have to include <stdio.h> before us.
17629         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
17630         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
17631         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
17632         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
17633         if not declared, so that we can use getpass.c code from libc without
17634         rewriting it.
17635         (flockfile, ftrylockfile, funlockfile): New macros.
17636
17637 2003-10-08  Paul Eggert  <eggert@twinsun.com>
17638
17639         * modules/getpass: Depend on stdbool.
17640
17641 2003-10-08  Paul Eggert  <eggert@twinsun.com>
17642
17643         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
17644
17645 2003-10-07  Karl Berry  <karl@gnu.org>
17646
17647         * config/config.{guess,sub}: update from config.
17648
17649 2003-10-06  Jim Meyering  <jim@meyering.net>
17650             Bruno Haible  <bruno@clisp.org>
17651
17652         This lets translators provide better translations for the
17653         "Written by ..." part of --version output.
17654         * lib/version-etc.h: Include stdarg.h.
17655         (version_etc_copyright): Declare as readonly.
17656         (version_etc): Make this function variadic with a NULL-terminated list
17657         of author name strings.
17658         (version_etc_va): New declaration.
17659         * lib/version-etc.c: Include stdarg.h, stdlib.h.
17660         (version_etc_copyright): Declare as readonly.
17661         (version_etc_va): New function. Provide a different translatable string
17662         for each possible number of authors < 10. Abbreviate when there are 10
17663         authors or more.
17664         (version_etc): Make this function variadic. Call version_etc_va.
17665         Suggestion from Gary V. Vaughan.
17666
17667         * lib/long-options.h (parse_long_options): Change prototype: the
17668         authors string is moved to the end and becomes variadic.
17669         * lib/long-options.c: Include stdarg.h.
17670         (parse_long_options): Make this function variadic, too.
17671         Call version_etc_va, not version_etc.
17672
17673 2003-10-06  Bruno Haible  <bruno@clisp.org>
17674
17675         * modules/version-etc-2: Remove file.
17676         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
17677
17678 2003-10-06  Bruno Haible  <bruno@clisp.org>
17679
17680         * modules/fatal-signal: New file.
17681         * MODULES.html.sh (func_all_modules): Add fatal-signal.
17682
17683 2003-10-06  Bruno Haible  <bruno@clisp.org>
17684
17685         * m4/fatal-signal.m4: New file.
17686         * m4/signalblocking.m4: New file, from GNU gettext.
17687
17688 2003-10-06  Bruno Haible  <bruno@clisp.org>
17689
17690         * lib/version-etc-2.h: Remove file.
17691         * lib/version-etc-2.c: Remove file.
17692
17693 2003-10-06  Bruno Haible  <bruno@clisp.org>
17694
17695         * lib/fatal-signal.h: New file, from GNU gettext.
17696         * lib/fatal-signal.c: New file, from GNU gettext.
17697
17698 2003-10-05  Paul Eggert  <eggert@twinsun.com>
17699
17700         * README: Rework advice for preventing empty .o files.
17701         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
17702         not <sys/types.h>.
17703
17704 2003-10-04  Karl Berry  <karl@gnu.org>
17705
17706         * lib/argp*: update from libc.
17707
17708 2003-10-04  Karl Berry  <karl@gnu.org>
17709
17710         * config/config.{guess,sub}: update from config.
17711
17712 2003-10-02  Bruno Haible  <bruno@clisp.org>
17713
17714         * modules/lchown (Include): Add lchown.h.
17715         * modules/time_r (Include): Use "..." syntax.
17716         * modules/xgetdomainname (Include): Add xgetdomainname.h.
17717
17718 2003-10-01  Simon Josefsson  <jas@extundo.com>
17719
17720         * MODULES.html.sh (func_all_modules): Move gethostname from section
17721         'based on' to section 'lacking' POSIX:2001.
17722
17723 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
17724
17725         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
17726         to output mode on the same stream.
17727
17728 2003-09-29  Paul Eggert  <eggert@twinsun.com>
17729
17730         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
17731         Fix arg typo in previous patch.
17732
17733 2003-09-28  Jim Meyering  <jim@meyering.net>
17734
17735         * lib/error.c: Correct cpp indentation.
17736
17737 2003-09-27  Paul Eggert  <eggert@twinsun.com>
17738
17739         * modules/free: New file.
17740
17741 2003-09-27  Paul Eggert  <eggert@twinsun.com>
17742
17743         * m4/free.m4: New file.
17744
17745 2003-09-27  Paul Eggert  <eggert@twinsun.com>
17746
17747         * lib/minmax.h (MIN, MAX)
17748         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
17749         Omit the special code that used __typeof__, since we worry that
17750         it could be more trouble than it's worth.  See:
17751         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
17752         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
17753
17754         * lib/free.c: New file.
17755
17756 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
17757
17758         Trivial fixes to Makefile.am parts of module listings.
17759         * modules/strstr: Append strstr.h to lib_SOURCES.
17760         * modules/strcase: Likewise, for strcase.h.
17761
17762 2003-09-27  Karl Berry  <karl@gnu.org>
17763
17764         * config/mkinstalldirs: update from automake.
17765
17766 2003-09-26  Paul Eggert  <eggert@twinsun.com>
17767
17768         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
17769         (error_tail): Do not loop, reallocating temporary buffer, since
17770         the output cannot contain more wide characters than the input
17771         contains bytes, the size must be big enough already.  This avoids
17772         one potential size overflow calculation.  Check for size overflow
17773         when calculating temporary buffer size.  Free temporary buffer
17774         when done, if it was allocated with malloc; this plugs a memory
17775         leak.  Remove casts from void * to pointers, that are no longer
17776         needed now that we're assuming C89 or better.
17777
17778         Merge error changes from glibc.
17779
17780         * lib/error.c, error.h: Update copyright notice header to match glibc.
17781         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
17782         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
17783         Disable cancellation while printing error.
17784         * lib/error.h: Prepend __ to parameter names.
17785
17786 2003-09-26  Jim Meyering  <jim@meyering.net>
17787
17788         * lib/error.c (error_tail): Move some declarations
17789         into inner scope where the local variables are used.
17790
17791 2003-09-26  Bruno Haible  <bruno@clisp.org>
17792
17793         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
17794         stpncpy().
17795         Don't define stpncpy through config.h; it's now done through stpncpy.h.
17796
17797 2003-09-26  Bruno Haible  <bruno@clisp.org>
17798
17799         * lib/stpncpy.h (gnu_stpncpy): New declaration.
17800         (stpncpy): Define as alias for gnu_stpncpy.
17801         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
17802
17803 2003-09-25  Simon Josefsson  <jas@extundo.com>
17804
17805         * lib/xgetdomainname.h: New file.
17806         * lib/xgetdomainname.c: New file.
17807
17808 2003-09-25  Simon Josefsson  <jas@extundo.com>
17809             Bruno Haible  <bruno@clisp.org>
17810
17811         * modules/getdomainname: New file.
17812         * modules/xgetdomainname: New file.
17813         * MODULES.html.sh (func_all_modules): Add getdomainname,
17814         xgetdomainname.
17815
17816 2003-09-25  Simon Josefsson  <jas@extundo.com>
17817             Bruno Haible  <bruno@clisp.org>
17818
17819         * m4/getdomainname.m4: New file.
17820
17821 2003-09-25  Simon Josefsson  <jas@extundo.com>
17822             Bruno Haible  <bruno@clisp.org>
17823
17824         * lib/getdomainname.h: New file.
17825         * lib/getdomainname.c: New file.
17826
17827 2003-09-25  Karl Berry  <karl@gnu.org>
17828
17829         * lib/argp-fmtstream.c, argp-help.c: update from libc.
17830
17831 2003-09-25  Karl Berry  <karl@gnu.org>
17832
17833         * config/install-sh: update from automake.
17834
17835 2003-09-25  Bruno Haible  <bruno@clisp.org>
17836
17837         * modules/version-etc-2: New file, from modules/version-etc with
17838         modifications.
17839         * MODULES.html.sh (func_all_modules): Add version-etc-2.
17840
17841 2003-09-25  Bruno Haible  <bruno@clisp.org>
17842
17843         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
17844         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
17845
17846 2003-09-24  Simon Josefsson  <jas@extundo.com>
17847
17848         * modules/xgethostname: Add xgethostname.h.
17849
17850 2003-09-24  Paul Eggert  <eggert@twinsun.com>
17851
17852         * lib/linebuffer.c (freebuffer): Don't free the argument, just
17853         the buffer associated with the argument.  Bug reported by
17854         Simon Josefsson.
17855
17856 2003-09-24  Paul Eggert  <eggert@twinsun.com>
17857
17858         * README: Document assumptions that 'int' is at least 32 bits
17859         wide, that integer arithmetic is 2's complement without overflow,
17860         that there are no holes in integer values, that adding sizes of
17861         two nonoverlapping objects can't overflow, and that all-bits-zero
17862         yields scalar zero.  Fix spelling and capitalization typos.
17863
17864 2003-09-19  Karl Berry  <karl@gnu.org>
17865
17866         * lib/argp.h: update from libc.
17867
17868 2003-09-17  Paul Eggert  <eggert@twinsun.com>
17869
17870         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
17871         to avoid spurious warnings like "AC_RUN_IFELSE was called before
17872         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
17873
17874 2003-09-17  Paul Eggert  <eggert@twinsun.com>
17875
17876         * gnulib-tool: Use "test -h", not "test -L", for portability
17877         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
17878         (tags_regexp): Remove, since \| doesn't conform to POSIX.
17879         (sed_extract_prog): Issue s commands one-by-one, rather than
17880         using \| in one s command.
17881
17882 2003-09-16  Paul Eggert  <eggert@twinsun.com>
17883
17884         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
17885         input error, instead of returning NULL the next time we are called
17886         (and therefore losing track of errno).
17887
17888 2003-09-16  Bruno Haible  <bruno@clisp.org>
17889
17890         * gnulib-tool (func_create_testdir): Warn about duplicated
17891         dependencies.
17892
17893 2003-09-15  Paul Eggert  <eggert@twinsun.com>
17894
17895         * modules/argmatch, modules/fatal, modules/obstack,
17896         modules/xalloc, modules/xgethostname: Sort dependencies by
17897         importance, not alphabetically.
17898
17899 2003-09-15  Paul Eggert  <eggert@twinsun.com>
17900
17901         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
17902         fails, so that the caller gets the proper errno.
17903
17904         * lib/readutmp.c (read_utmp): Likewise.
17905         Check for fstat error.  Close stream and free storage
17906         when failing.
17907
17908 2003-09-14  Karl Berry  <karl@gnu.org>
17909
17910         * config/srclist.txt (strdup.c): disable for c89 changes.
17911
17912 2003-09-14  Jim Meyering  <jim@meyering.net>
17913
17914         * lib/getloadavg.c: Correct cpp indentation.
17915         * lib/strdup.c: Likewise.
17916         * lib/vasnprintf.c: Likewise.
17917
17918 2003-09-14  Bruno Haible  <bruno@clisp.org>
17919
17920         * modules/fwriteerror: New file.
17921         * MODULES.html.sh (func_all_modules): Add fwriteerror.
17922
17923 2003-09-14  Bruno Haible  <bruno@clisp.org>
17924
17925         * lib/fwriteerror.h: New file.
17926         * lib/fwriteerror.c: New file.
17927
17928 2003-09-12  Paul Eggert  <eggert@twinsun.com>
17929
17930         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
17931         modules/xgethostname, modules/xalloc: Depend on exit.
17932
17933 2003-09-12  Paul Eggert  <eggert@twinsun.com>
17934
17935         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
17936
17937         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
17938         and AC_MINIX, too, so that their extensions are available.
17939
17940         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
17941         This macro has been superseded by gl_BACKUPFILE.
17942
17943         More patches to assume C89 or better.
17944
17945         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
17946
17947         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
17948         unconditionally.
17949         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
17950         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
17951         Include <string.h>, <stdlib.h> unconditionally.
17952         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
17953         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
17954         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
17955         headers or for string.h.
17956         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
17957         or strtoul.
17958
17959         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
17960         headers.
17961         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
17962         * m4/userspec.m4 (gl_USERSPEC): Likewise.
17963         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
17964         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
17965         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
17966         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
17967         memcpy, memset.
17968         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
17969         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
17970         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
17971         strtol.
17972         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
17973         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
17974         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
17975         strtoul.
17976
17977 2003-09-12  Paul Eggert  <eggert@twinsun.com>
17978
17979         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
17980         * lib/obstack.c [!defined _LIBC]: Likewise.
17981         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
17982         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
17983         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
17984
17985         More changes to assume C89 or better.
17986
17987         * lib/error.c (error_tail): Assume vprintf.
17988
17989         * lib/argmatch.c (getenv): Remove decl.
17990         * lib/progreloc.c (get_full_program_name): Define via prototype.
17991         * lib/setenv.c (clearenv): Likewise.
17992         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
17993         needed.
17994         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
17995         (malloc, memcpy): Remove decls.
17996         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
17997         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
17998         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
17999         (memcpy): Remove macro.
18000         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
18001         (__P): Remove.  All uses removed.
18002         (PTR): Remove.  All uses changed to void *.
18003         (CHAR_BIT, NULL): Remove.
18004         (spaces, zeros, memset_space, memset_zero)
18005         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
18006         Remove.
18007         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
18008         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
18009         Define with prototype.
18010         Remove now-unnecessary prototype decl.
18011         (extra_args_spec): Assume ANSI C.  All uses changed.
18012         (extra_args_spec_iso): Remove.
18013         (my_strftime, emacs_strftimeu): Define via prototype.
18014         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
18015         unconditionally.
18016         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
18017         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
18018         (strtoul, strtol): Remove decls.
18019         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
18020         LONG_MAX): Remove.
18021         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
18022         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
18023         (LOCALE_PARAM_PROTO): New macro.
18024         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
18025         (INTERNAL (strtol), strtol): Define with a prototype.
18026         (PARAMS): Remove.  All uses removed.
18027         * lib/tempname.c: Include <string.h> unconditionally.
18028         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
18029         * lib/xgethostname.c (main): Define with a prototype.
18030         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
18031         Include <stdlib.h> unconditionally.
18032         (calloc, malloc, realloc, free): Remove decls.
18033         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
18034         Include <stdlib.h> unconditionally.  Sort include file names.
18035         (strtod): Remove.
18036         (xstrtod): Define with a prototype.
18037         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
18038         (strtol, strtoul): Remove decls.
18039
18040 2003-09-11  Paul Eggert  <eggert@twinsun.com>
18041
18042         More patches to assume C89 or better.
18043         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
18044         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
18045         string.h, memchr, STDC_HEADERS.
18046
18047 2003-09-11  Paul Eggert  <eggert@twinsun.com>
18048
18049         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
18050         Include <stdlib.h>, <string.h> unconditionally.
18051         Remove now-unnecessary cast to char *.
18052         * lib/strnlen.c: Include <string.h> unconditionally.
18053         * lib/yesno.c (yesno): Define with a prototype.
18054
18055 2003-09-11  Bruno Haible  <bruno@clisp.org>
18056
18057         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
18058
18059 2003-09-10  Jim Meyering  <jim@meyering.net>
18060
18061         * lib/error.c: Correct indentation of cpp directives.
18062
18063 2003-09-10  Bruno Haible  <bruno@clisp.org>
18064
18065         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
18066         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
18067         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
18068         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
18069         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
18070         <stdlib.h> and <string.h> checks.
18071         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
18072         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
18073
18074 2003-09-10  Bruno Haible  <bruno@clisp.org>
18075
18076         * lib/strcspn.c: Include <string.h> unconditionally.
18077         * lib/strpbrk.c: Include <string.h> unconditionally.
18078         * lib/strstr.c: Include <string.h> unconditionally.
18079         * lib/unicodeio.c: Include <string.h> unconditionally.
18080         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
18081         * lib/unsetenv.c: Likewise.
18082         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
18083         * lib/yesno.c: Include <stdlib.h> unconditionally.
18084         (rpmatch): Add prototype.
18085
18086 2003-09-09  Paul Eggert  <eggert@twinsun.com>
18087
18088         More patches to assume C89 or better.
18089         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
18090         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
18091         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
18092         or for string.h.
18093         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
18094         stdlib.h.
18095         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
18096         C headers.
18097         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
18098         string.h.
18099         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
18100         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
18101         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
18102         or for string.h.
18103         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
18104         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
18105         C headers.
18106         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
18107         memcpy.
18108         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
18109         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
18110         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
18111         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
18112         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
18113         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
18114         string.h, free.
18115         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
18116         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
18117         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
18118         C headers, or for string.h.
18119         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
18120         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
18121         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
18122         headers, memory.h, stdlib.h, string.h, strings.h.
18123         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
18124         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
18125         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
18126         strchr.
18127         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
18128         headers, memory.h, string.h.
18129         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
18130         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
18131         free.
18132         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
18133         headers.
18134         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
18135         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
18136         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
18137         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
18138         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
18139
18140 2003-09-09  Paul Eggert  <eggert@twinsun.com>
18141
18142         More K&R removal.
18143
18144         * lib/acosl.c (main): Use a prototype.
18145         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
18146         tanl.c: Likewise.
18147
18148         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
18149
18150         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
18151         (getopt, etopt_long, getopt_long_only, _getopt_internal)
18152         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
18153         with a prototype.
18154         * lib/getopt.c (const): Remove macro.
18155         Include <string.h> unconditionally.
18156         (my_index): Remove; all uses changed to strchr.
18157         (strlen): Remove decl.
18158         (exchange): Remove forward decl; no longer needed.
18159         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
18160         Define with prototype.
18161         * lib/getopt1.c (const): Remove macro.
18162         (getopt_long, getopt_long_only, main): Define with prototype.
18163
18164         * lib/getugroups.c: Include <string.h> unconditionally.
18165
18166         * lib/getusershell.c: Include <stdlib.h> unconditionally.
18167         (getusershell, setusershell, endusershell, readname, main):
18168         Define with prototypes.
18169
18170         * lib/group-member.c: Include group-member.h first.
18171         Include <stdlib.h> unconditionally.
18172
18173         * lib/hard-locale.c: Include hard-locale.h first.
18174         Include <stdlib.h>, <string.h> unconditionally.
18175
18176         * lib/hash.c (free, malloc): Remove decls.
18177         Include <stdlib.h> unconditionally.
18178
18179         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
18180         (getenv): Do not declare.
18181
18182         * lib/idcache.c: Include <string.h> unconditionally.
18183
18184         * lib/long-options.c: Include long-options.h first, to test interface.
18185         Include <stdlib.h> unconditionally.
18186
18187         * lib/makepath.c: Include makepath.h first, to test interface.
18188         Include <stdlib.h> and <string.h> unconditionally.
18189
18190         * lib/linebuffer.c: Include <stdlib.h>.
18191         (free): Remove decl.
18192
18193         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
18194         stddef.h. rpl_malloc returns void *, not char *.
18195         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
18196         prototype.
18197
18198         * lib/md5.h: Include <limits.h> unconditionally.
18199         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
18200         (__P): Remove; all uses removed.
18201         * lib/md5.c: Include "md5.h" first.
18202         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
18203         md5_buffer, md5_process_bytes, md5_process_block):
18204         Define with prototypes.
18205         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
18206         * lib/sha.c: Include "sha.h" first.
18207         Include <stdlib.h>, <string.h> unconditionally.
18208
18209         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
18210         * lib/memcmp.c (__ptr_t): Likewise.
18211         * lib/memrchr.c (__ptr_t): Likewise.
18212         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
18213         Include <string.h> unconditionally.
18214         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
18215         * lib/memchr.c: Include <stdlib.h> unconditionally.
18216         * lib/memchr.c (LONG_MAX): Remove.
18217         * lib/memrchr.c (LONG_MAX): Likewise.
18218         * lib/memchr.c (__memchr): Define via a prototype.
18219         * lib/memrchr.c (__memrchr): Likewise.
18220         * lib/memcmp.c (__P): Remove, and remove all uses.
18221         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
18222         Remove forward decls; no longer needed.
18223         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
18224         Use types required by C89 in prototype.
18225
18226         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
18227         * lib/savedir.c: Likewise.
18228         * lib/mkdir.c (free): Remove decl.
18229         * lib/rmdir.c (rmdir): Define with a prototype.
18230         * lib/savedir.c: Include savedir.h first, to test interface.
18231
18232         * lib/mktime.c (STDC_HEADERS): Remove.
18233         Include <stdlib.h>, <string.h> unconditionally.
18234
18235         * lib/modechange.c: Include <stdlib.h> unconditionally.
18236         (malloc): Remove decl.
18237
18238         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
18239         (free): Remove decl.
18240
18241         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
18242         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
18243         (This type really should be intptr_t, but that's a C99ism.)
18244         (_obstack_memcpy): Remove: all uses changed to memcpy.
18245         Include <string.h> unconditionally.
18246         (struct obstack): Assume __STDC__ for types of members
18247         chunkfun, freefun, extra_arg.
18248         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
18249         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
18250         obstack_begin, obstack_specify_allocation,
18251         obstack_specify_allocation_with_arg, obstack_chunkfun,
18252         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
18253         Remove unprototyped decls and the macros that use them.
18254         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
18255         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
18256         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
18257         (defined __STDC__ && __STDC__)]:
18258         Remove nonprototyped code.
18259         Include <stdlib.h> unconditionally.
18260         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
18261         _obstack_allocated_p, _obstack_free, obstack_free,
18262         _obstack_memory_used, print_and_abort):
18263         Define using prototypes.
18264         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
18265         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
18266         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
18267         obstack_next_free, obstack_object_size, obstack_room) [0]:
18268         Remove unused, unprototyped code.
18269
18270         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
18271
18272         * lib/physmem.c (physmem_total, physmem_available, main): Define
18273         with prototypes.
18274
18275         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
18276         (main): Define with a prototype.
18277
18278         * lib/posixver.c (getenv): Remove decl.
18279
18280         * lib/putenv.c (malloc): Returns void *, not char *.
18281         Include <string.h> unconditionally.
18282         (strchr, memcpy, NULL): Do not define.
18283
18284         * lib/readtokens.c: Include readtokens.h first, to test interface.
18285         Include <stdlib.h>, <string.h> unconditionally.
18286         (init_tokenbuffer): Define with a prototype.
18287
18288         * lib/regex.c (PARAMS): Remove.  All uses removed.
18289         All uses of _RE_ARGS removed, too.
18290         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
18291         unconditionally.
18292         (bzero): Assume memset exists.
18293         (memcmp, memcpy, NULL): Remove.
18294         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
18295         char, or assignments to local vars of type signed char.
18296         (init_syntax_once, PREFIX(extract_number_and_incr),
18297         PREFIX(print_partial_compiled_pattern),
18298         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
18299         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
18300         PREFIX(regex_grow_registers), PREFIX(regex_compile),
18301         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
18302         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
18303         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
18304         wcs_compile_range, byte_compile_range, truncate_wchar,
18305         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
18306         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
18307         count_mbs_length, wcs_re_match_2_internal,
18308         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
18309         PREFIX(alt_match_null_string_p),
18310         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
18311         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
18312         regfree, PREFIX(extract_number)): Define with prototype.  Remove
18313         now-unnecessary declaration, if any.
18314         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
18315         regcomp, regexec):
18316         Remove now-unnecessary casts among pointer types.
18317         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
18318
18319         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
18320         (free): Remove decl.
18321
18322         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
18323
18324         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
18325         (free): Remove decl.
18326
18327         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
18328         * lib/xgetcwd.c: Likewise.
18329
18330         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
18331         (free): Remove decl.
18332
18333         * lib/strchrnul.c (strchrnul): Define with a prototype.
18334         Fix bug: c_in was not converted to char before searching.
18335
18336         The following changes are not K&R related:
18337
18338         * lib/group-member.h: Include <sys/types.h>, so that this file is
18339         self-contained.
18340         * lib/makepath.h: Likewise.
18341
18342         * lib/getusershell.c (readname, default_index, line_size, readname):
18343         Use size_t, not int, for sizes.
18344         (readname): If the size overflows, report an error instead of
18345         looping forever.
18346
18347 2003-09-09  Paul Eggert  <eggert@twinsun.com>
18348
18349         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
18350         libc.
18351
18352 2003-09-09  Paul Eggert  <eggert@twinsun.com>
18353
18354         * README: New section: portability guidelines.
18355
18356 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
18357
18358         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
18359         C89 spec.
18360
18361 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
18362
18363         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
18364
18365 2003-09-08  Paul Eggert  <eggert@twinsun.com>
18366
18367         Assume C89 or better; remove K&R cruft.
18368         A few of these changes were first proposed by Derek Robert Price
18369         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
18370
18371         * lib/addext.c: Include <string.h> unconditionally.
18372         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
18373         Don't declare getenv or malloc.
18374
18375         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
18376         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
18377         (NULL): Remove.
18378         (find_stack_direction, alloca): Use prototypes.
18379
18380         * lib/atexit.c (atexit): Define using a prototype.
18381
18382         * lib/basename.c, dirname.c, stripslash.c:
18383         Include <string.h> unconditionally.
18384
18385         * lib/bcopy.c: Include <stddef.h>.
18386         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
18387
18388         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
18389
18390         * lib/error.h (error, error_at_line, error_print_progname)
18391         [! (defined (__STDC__) && __STDC__)]: Remove decls.
18392         * lib/error.c: Include error.h first, to check interface.
18393         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
18394         (VA_START): Remove; all uses changeed to va_start.
18395         (exit, strerror): Remove decls.
18396         (error_print_progname): Prototype uncondionally.
18397         Don't include <errno.h>; no longer needed.
18398         (private_strerror): Remove.
18399         (error_tail): Always define.
18400         (error, error_at_line): Assume C89 or better; always use prototypes.
18401         * lib/fatal.c: Include "fatal.h" first, to test interface.
18402         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
18403         (VA_START): Remove; all uses changed to va_start.
18404         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
18405         this case.
18406         (exit): Remove decl.
18407         (fatal): Prototype unconditionally.  Assume va_start works.
18408         Abort at end, to pacify gcc.
18409
18410         * lib/euidaccess.c (main): Define with a prototype.
18411
18412         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
18413
18414         * lib/exitfail.c: Include <stdlib.h> unconditionally.
18415
18416         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
18417         prototypes.
18418         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
18419         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
18420         (getenv): Remove decl.
18421         (fnmatch): Define using a prototype.
18422         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
18423         (FCT): Define using a prototype.
18424
18425         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
18426
18427         * lib/gethostname.c: Include <stddef.h>.
18428         (gethostname): Define with prototype.  Length is size_t, not int.
18429
18430 2003-09-08  Paul Eggert  <eggert@twinsun.com>
18431
18432         Assume C89 or better; remove K&R cruft.
18433         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
18434         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
18435         string.h, getenv, malloc.
18436         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
18437         headers.
18438         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
18439         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
18440         do not check for strerror.
18441         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
18442         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
18443         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
18444         do not check for doprnt or vprintf.
18445         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
18446         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
18447
18448 2003-09-08  Paul Eggert  <eggert@twinsun.com>
18449
18450         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
18451         getversion.c should have been removed then, but was accidentally
18452         preserved.
18453
18454         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
18455         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
18456
18457 2003-09-08  Karl Berry  <karl@gnu.org>
18458
18459         * config/config.sub, config.guess, srclistvars.sh: update from savannah
18460                 config, forget about prep.
18461
18462         * config/depcomp, missing: update from automake.
18463
18464 2003-09-07  Paul Eggert  <eggert@twinsun.com>
18465
18466         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
18467         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
18468
18469 2003-09-07  Paul Eggert  <eggert@twinsun.com>
18470
18471         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
18472         copy_tm_result.  Bug reported by Simon Josefsson in
18473         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
18474
18475 2003-09-06  Paul Eggert  <eggert@twinsun.com>
18476
18477         * m4/time_r.m4: New file.
18478         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
18479         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
18480         is. Check for timegm declaration.
18481         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
18482         Do not check for gmtime_r.
18483         Replace mktime if __mktime_internal does not exist and if mktime
18484         hasn't been replaced already.
18485
18486 2003-09-06  Paul Eggert  <eggert@twinsun.com>
18487
18488         * lib/time_r.c, lib/time_r.h: New files.
18489
18490         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
18491         __localtime_r.
18492         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
18493         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
18494
18495         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
18496         __gmtime_r.
18497         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
18498         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
18499         Include <time_r.h>.
18500
18501         * lib/timegm.c: Switch to glibc implementation, with the following
18502         changes:
18503         [defined HAVE_CONFIG_H]: Include <config.h>.
18504         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
18505         (__mktime_internal) [!defined _LIBC]: New decl.
18506         (__gmtime_r) [!defined _LIBC]: New macro and function.
18507         (timegm): Use a prototype, since gnulib assumes C89.
18508         Do not bother declaring tmp to be const, as it's not really usefu.
18509         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
18510         (timegm): Declare only if HAVE_DECL_TIMEGM.
18511
18512 2003-09-06  Paul Eggert  <eggert@twinsun.com>
18513
18514         * MODULES.html.sh (func_all_modules): Add time_r.
18515         * modules/time_r: New file.
18516         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
18517         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
18518
18519 2003-09-03  Paul Eggert  <eggert@twinsun.com>
18520
18521         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
18522         Bug reported by Lute Kamstra in
18523         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
18524
18525         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
18526         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
18527         course with correspondingly smaller numbers for tomorrow and
18528         yesterday.  From Tadayoshi Funaba.  Originally installed into
18529         sh-utils on 1999-08-07, but the patch got lost (I guess during the
18530         coreutils merge?).
18531
18532 2003-08-31  Simon Josefsson  <jas@extundo.com>
18533
18534         * modules/timegm: New file.
18535         * MODULES.html.sh (func_all_modules): Add timegm.
18536
18537 2003-08-31  Simon Josefsson  <jas@extundo.com>
18538
18539         * m4/timegm.m4: New file.
18540
18541 2003-08-31  Simon Josefsson  <jas@extundo.com>
18542
18543         * lib/timegm.h: New file.
18544         * lib/timegm.c: New file.  Based on
18545         wget-1.8.2/src/http.c:mktime_from_utc.
18546
18547 2003-08-31  Karl Berry  <karl@gnu.org>
18548
18549         * lib/argp.h: update from libc.
18550
18551 2003-08-28  Bruno Haible  <bruno@clisp.org>
18552
18553         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
18554         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
18555         followed by '#define fnmatch fnmatch_posix' gives an error.
18556
18557 2003-08-28  Bruno Haible  <bruno@clisp.org>
18558
18559         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
18560         warning on QNX, which defines O_BINARY to 000000.
18561
18562 2003-08-27  Jim Meyering  <jim@meyering.net>
18563
18564         * m4/mkstemp.m4: Require that the system mkstemp be able to create
18565         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
18566         would fail after 32.  Reported by Danny Levinson.  Details here:
18567         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
18568
18569 2003-08-24  Bruno Haible  <bruno@clisp.org>
18570
18571         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
18572         MSVC7 <stdio.h> is included later.
18573
18574 2003-08-22  Simon Josefsson  <jas@extundo.com>
18575
18576         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
18577
18578 2003-08-20  Karl Berry  <karl@gnu.org>
18579
18580         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
18581
18582 2003-08-20  Bruno Haible  <bruno@clisp.org>
18583
18584         * modules/progname: New file.
18585         * MODULES.html.sh (func_all_modules): Add progname.
18586
18587 2003-08-20  Bruno Haible  <bruno@clisp.org>
18588
18589         * lib/progname.h: New file, from GNU gettext.
18590         * lib/progname.c: New file, from GNU gettext.
18591         * lib/progreloc.c: New file, from GNU gettext.
18592
18593 2003-08-19  Jim Meyering  <jim@meyering.net>
18594
18595         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
18596         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
18597
18598 2003-08-19  Bruno Haible  <bruno@clisp.org>
18599
18600         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
18601         more.
18602
18603 2003-08-19  Bruno Haible  <bruno@clisp.org>
18604
18605         * lib/xstrdup.c: Assume <string.h> exists.
18606
18607 2003-08-18  Paul Eggert  <eggert@twinsun.com>
18608
18609         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
18610         in makefile rules.
18611
18612 2003-08-18  Jim Meyering  <jim@meyering.net>
18613
18614         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
18615         * m4/lib-ld.m4: Likewise.
18616
18617 2003-08-18  Jim Meyering  <jim@meyering.net>
18618
18619         * lib/setenv.h: Indent nested cpp directive.
18620         * lib/vasnprintf.c: Remove trailing blanks.
18621
18622 2003-08-17  Simon Josefsson  <jas@extundo.com>
18623
18624         * modules/xstrndup: New file.
18625         * MODULES.html.sh (func_all_modules): Add xstrndup.
18626
18627 2003-08-17  Simon Josefsson  <jas@extundo.com>
18628
18629         * modules/argp: Fix autoconf macro name. Add more dependencies.
18630
18631 2003-08-17  Simon Josefsson  <jas@extundo.com>
18632
18633         * m4/xstrndup.m4: New file.
18634
18635 2003-08-17  Simon Josefsson  <jas@extundo.com>
18636
18637         * m4/argp.m4: New file.
18638
18639 2003-08-17  Simon Josefsson  <jas@extundo.com>
18640             Bruno Haible  <bruno@clisp.org>
18641
18642         * lib/xstrndup.h: New file.
18643         * lib/xstrndup.c: New file.
18644
18645 2003-08-17  Bruno Haible  <bruno@clisp.org>
18646
18647         * modules/strndup (Files, Include): Add lib/strndup.h.
18648
18649 2003-08-17  Bruno Haible  <bruno@clisp.org>
18650
18651         * modules/euidaccess (Files): Add lib/euidaccess.h.
18652
18653 2003-08-17  Bruno Haible  <bruno@clisp.org>
18654
18655         * lib/strndup.h: New file.
18656
18657 2003-08-17  Bruno Haible  <bruno@clisp.org>
18658
18659         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
18660         like AC_GNU_SOURCE.
18661         * modules/extensions (configure.ac): Comment out the invocation of
18662         gl_USE_SYSTEM_EXTENSIONS.
18663
18664 2003-08-16  Paul Eggert  <eggert@twinsun.com>
18665
18666         Merges from coreutils, etc.
18667         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
18668         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
18669         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
18670         fixing a typo.
18671         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
18672         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
18673
18674 2003-08-16  Paul Eggert  <eggert@twinsun.com>
18675
18676         Document merge from coreutils.
18677         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
18678         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
18679         * modules/utime: Add m4/utimes-null.m4.
18680
18681 2003-08-16  Paul Eggert  <eggert@twinsun.com>
18682
18683         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
18684         space, undoing this 2003-08-12 change:
18685         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
18686
18687 2003-08-16  Paul Eggert  <eggert@twinsun.com>
18688
18689         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
18690         strtoul.c from libc, undoing this 2003-08-12 change:
18691         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
18692
18693 2003-08-16  Jim Meyering  <jim@meyering.net>
18694
18695         Merges from coreutils.
18696         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
18697         prefix.  Adjust cache variables similarly.  Create 500 rather than
18698         just 300 files, to exercise bug on Darwin6.5, too.
18699         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
18700         $missing_dir.
18701         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
18702         AM_SYS_POSIX_TERMIOS.
18703         Reported by mkc@mathdogs.com.
18704         Also change use of $am_cv_sys_posix_termios
18705         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
18706         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
18707         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
18708         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
18709         in /proc/mounts until it finds one with matching device number.  This
18710         is unnecessary when the FILE argument *is* a mount point.  No stat call
18711         is necessary in that case.  So, disable the statvfs-testing code on
18712         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
18713         as RedHat bug# 84846.
18714         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
18715         to 1MB, so as not to render systems with no stack size limit (e.g.,
18716         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
18717         Include <unistd.h>.  On some systems,
18718         it is required for the definition of _SC_PAGESIZE.
18719
18720 2003-08-16  Jim Meyering  <jim@meyering.net>
18721
18722         Merge from coreutils.
18723         * lib/xstrtoimax.c: #else #if -> #elif.
18724         * lib/xstrtoumax.c: Likewise.
18725
18726 2003-08-16  Jim Meyering  <jim@meyering.net>
18727
18728         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
18729         * m4/utimes.m4: Removed.
18730         * m4/utimes-null.m4: Renamed from utimes.m4.
18731
18732         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
18733         to 1MB, so as not to render systems with no stack size limit (e.g.,
18734         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
18735         Include <unistd.h>.  On some systems,
18736         it is required for the definition of _SC_PAGESIZE.
18737
18738 2003-08-16  Jim Meyering  <jim@meyering.net>
18739         and Paul Eggert  <eggert@cs.ucla.edu>
18740
18741         Merges from coreutils, etc.
18742
18743         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
18744         using the latest version from cvs.  This avoids problems with #line
18745         directives using a vendor (Sun) compiler.
18746         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
18747         Don't set GETGROUPS_LIB here; now it's
18748         done via getgroups.m4's wrapper function.
18749         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
18750         rather than just in sh-util/configure.in, so that the
18751         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
18752         same.
18753         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
18754         AC_FUNC_GETLOADAVG where to find getloadavg.c.
18755         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
18756         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
18757         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
18758         Remove code that is now done by the newly-required macros.
18759         Append $(EXEEXT) to DF_PROG.
18760         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
18761         Do not invoke or require the following here,
18762         since prereq.m4 or some gnulib .m4 now does this for us:
18763         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
18764         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
18765         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
18766         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
18767         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
18768         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
18769         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
18770         AC_FUNC_OBSTACK.
18771         Do not replace the following functions, as this is now the job
18772         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
18773         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
18774         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
18775         atexit getpass, strdup, getpagesize.
18776         Replace 'raise'.
18777         Do not check for the following functions, as this is now the job
18778         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
18779         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
18780         setregid.
18781         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
18782         Check for sys/sysctl.h.
18783         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
18784         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
18785         of checking for ssize_t ourselves.
18786
18787         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
18788         Require every macro that gnulib/modules/* suggests for us.
18789         (jm_PREREQ_ADDEXT): New macro.
18790         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
18791         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
18792
18793         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
18794         (gl_PHYSMEM): Use it.
18795         Also check for `table' function.
18796         Check for new headers and functions.
18797         Add check for sys/sysmp.h.
18798         With suggestions from Kaveh Ghazi.
18799         Ignore headers that are present but cannot be compiled.  This
18800         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
18801         C 5.4.
18802
18803 2003-08-15  Paul Eggert  <eggert@twinsun.com>
18804
18805         Document merge from coreutils.
18806         * modules/userspec: Depend on posixver.
18807         * modules/strftime: Depend on tzset.
18808
18809 2003-08-15  Paul Eggert  <eggert@twinsun.com>
18810
18811         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
18812         rather than tab, after '#' in shell-script copyright notices.
18813         Suggested by Bruno Haible.
18814
18815 2003-08-15  Paul Eggert  <eggert@twinsun.com>
18816
18817         * config/srclist-update: Use three spaces, rather than tab, after '#'
18818         in shell-script copyright notices.  Suggested by Bruno Haible.
18819         Remove unnecessary parenthesization in regular expression.
18820
18821 2003-08-15  Jim Meyering  <jim@meyering.net>
18822
18823         Merge from coreutils.
18824         * lib/xgethostname.c: Include <stdlib.h>.
18825         (xghostname): Don't exit for anything other than memory-related
18826         failure; just return NULL.
18827         * lib/userspec.c: Include "posixver.h".
18828         (parse_user_spec): Accept `.' as a separator only
18829         in pre-POSIX-200112 mode.
18830         * lib/strtoimax.c: Use #elif rather than #else #if.
18831         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
18832         Remove function, now that we can rely on a working tzset function.
18833         [!_LIBC]: Ensure that the required autoconf test has been run.
18834         [!defined _NL_CURRENT && HAVE_STRFTIME]:
18835         Use underlying_strftime for %r.
18836         * lib/sha.c: Merge in some clean-up and optimization changes from
18837         glibc.
18838         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
18839         Ensure that it is a multiple of 64.
18840         Rearrange loop exit tests so as to avoid performing an
18841         additional fread after encountering an error or EOF.
18842         * lib/realloc.c: Update copyright date.
18843
18844 2003-08-15  Jim Meyering  <jim@meyering.net>
18845         and Paul Eggert  <eggert@twinsun.com>
18846
18847         Merge from coreutils.
18848         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
18849         member but strut utmpx does not.  Needed for AIX 4.3.3.
18850         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
18851
18852 2003-08-15  Jim Meyering  <jim@meyering.net>
18853         and Paul Eggert  <eggert@cs.ucla.edu>
18854
18855         Merges from coreutils, etc.
18856         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
18857         Require gl_FUNC_TZSET_CLOBBER.
18858         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
18859         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
18860         members.
18861
18862 2003-08-14  Paul Eggert  <eggert@twinsun.com>
18863
18864         Help the merge from coreutils.
18865         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
18866         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
18867         * m4/tzset.m4: Use it too.
18868
18869 2003-08-14  Paul Eggert  <eggert@twinsun.com>
18870
18871         * modules/tzset: New file.
18872
18873 2003-08-14  Jim Meyering  <jim@meyering.net>
18874
18875         Merges from coreutils.
18876         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
18877         variable names, rather than @FNMATCH_H@.
18878         * modules/alloca: Likewise for $(ALLOCA_H).
18879
18880         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
18881         the three copies of the literal target, `fnmatch.h'.
18882         * modules/alloca (alloca.h): Likewise.
18883
18884 2003-08-14  Jim Meyering  <jim@meyering.net>
18885
18886         Merge from coreutils.
18887         * m4/tzset.m4: New file.
18888         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
18889         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
18890         otherwise, AIX 5.1 systems would end up using the latter.
18891         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
18892         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
18893         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
18894         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
18895
18896 2003-08-14  Jim Meyering  <jim@meyering.net>
18897
18898         Merge from coreutils.
18899         * lib/obstack.h: Whitespace changes.
18900         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
18901         and xcalloc return values.
18902         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
18903         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
18904         hang on OSF/1 5.1 for DIR on both local and remote file systems.
18905         Reported by (and fix confirmed by) Nelson H. F. Beebe.
18906         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
18907         error from mntctl.
18908         Use mntctl's return value to drive the entry-processing loop, since
18909         we can't rely on the value of the vmt_length member in the last
18910         entry.  On some systems doing so could result in exhausting
18911         virtual memory.  Based in part on a patch from Mike Jetzer.
18912
18913 2003-08-14  Jim Meyering  <jim@meyering.net>
18914         and Paul Eggert  <eggert@twinsun.com>
18915
18916         Merges from coreutils, plus other fixes.
18917         * lib/physmem.c: Merge in portability changes from gcc/libiberty
18918         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
18919         for credits and details.  Thanks to Kaveh Ghazi for helping
18920         to keep these files in sync.
18921         (ARRAY_SIZE): Define it.
18922         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
18923         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
18924         (memcasecmp): Don't assume size_t fits in unsigned int.
18925         Remove casts and duplicate code.
18926         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
18927         (memcpy): Remove definition.
18928         Merge in some clean-up and optimization changes from glibc.
18929         [BLOCKSIZE]: Move definition to top of file.
18930         Ensure that it is a multiple of 64.
18931         Rearrange loop exit tests so as to avoid performing an
18932         additional fread after encountering an error or EOF.
18933         * lib/md5.h (md5_uintptr): Define.
18934         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
18935         return to the initial working directory.  Preserve errno
18936         for caller.
18937         * lib/idcache.c: Include "xalloc.h".
18938         (xmalloc, xrealloc): Remove decls.
18939         (getuser): Remove casts no longer required in C89.
18940         * lib/human.c: Include stdio.h, for sprintf.
18941         * lib/group-member.c: Include "xalloc.h".
18942         (xmalloc, xrealloc): Remove decls.
18943         (get_group_info): Remove casts no longer required in C89.
18944         * lib/getusershell.c (readname): Remove casts no longer required in
18945         C89.
18946         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
18947         * lib/getline.c: Whitespace fix, from coreutils.
18948
18949 2003-08-13  Paul Eggert  <eggert@twinsun.com>
18950
18951         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
18952         Check for isascii.
18953
18954         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
18955         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
18956         Undo previous (whitespace-only) change.
18957
18958 2003-08-13  Paul Eggert  <eggert@twinsun.com>
18959
18960         * lib/exclude.c: Include <ctype.h>
18961         (IN_CTYPE_DOMAIN): New macro.
18962         (is_space): New fn.
18963         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
18964         and empty lines.
18965
18966         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
18967         Undo previous (whitespace-only) change.
18968
18969 2003-08-13  Paul Eggert  <eggert@twinsun.com>
18970
18971         * config/srclist-update: Change update back to the old behavior,
18972         leaving whitespace alone.  Use one 'sed' command rather than a
18973         pipeline.
18974         (fixlicense): Now a variable, not a function.
18975         (remove_trailing_blanks): Remove.
18976         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
18977         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
18978         Undo previous (whitespace-only) change.
18979
18980 2003-08-12  Paul Eggert  <eggert@twinsun.com>
18981
18982         Merge from coreutils.
18983         * modules/euidaccess: Add lib_SOURCES, include for new
18984         file euidaccess.h
18985
18986 2003-08-12  Paul Eggert  <eggert@twinsun.com>
18987
18988         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
18989         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
18990         Normalize leading white space and remove trailing white space.
18991
18992         Merge from coreutils
18993         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
18994
18995         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
18996         0.12.1.  These files are now being upgraded automatically by
18997         ../config/srclist-update.
18998
18999 2003-08-12  Paul Eggert  <eggert@twinsun.com>
19000
19001         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
19002         Normalize leading white space and remove trailing white space.
19003         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
19004         notice, as per ../config/srclist-update.
19005
19006         Merge from coreutils.
19007         * lib/euidaccess.h: New file.
19008         * lib/euidaccess.c: Include it.
19009         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
19010         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
19011         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
19012
19013 2003-08-12  Paul Eggert  <eggert@twinsun.com>
19014
19015         * config/srclist-update: Add copyright notice.
19016         (remove_id_lines, remove_trailing_blanks): New constants.
19017         (fixfile): Use them to normalize spacing a bit in copied files.
19018         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
19019         Normalize leading white space and remove trailing white space.
19020
19021         * config/texinfo.tex: Sync with texinfo.
19022
19023         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
19024         strtoul.c from libc, to merge coreutils whitespace changes.
19025
19026         * config/srclist.txt: Get the following m4 files from gettext:
19027         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
19028         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
19029         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
19030         wint_t.m4.
19031
19032 2003-08-12  Karl Berry  <karl@gnu.org>
19033
19034         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
19035         been made.
19036
19037 2003-08-11  Paul Eggert  <eggert@twinsun.com>
19038
19039         * modules/gnu-source, m4/gnu-source.m4:
19040         Remove; we're assuming Autoconf 2.54 or later now.
19041         Suggested by Bruno Haible.
19042         * MODULES.html.sh (func_all_modules): Remove gnu-source.
19043
19044 2003-08-11  Bruno Haible  <bruno@clisp.org>
19045
19046         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
19047
19048 2003-08-11  Bruno Haible  <bruno@clisp.org>
19049
19050         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
19051         (vasnprintf): Use it instead of wcslen.
19052
19053 2003-08-11  Bruno Haible  <bruno@clisp.org>
19054
19055         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
19056         value to ensure that _Bool promotes to int. Use #define for _Bool when
19057         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
19058
19059 2003-08-10  Karl Berry  <karl@gnu.org>
19060
19061         * lib/regex.h: update from libc (whitespace fix).
19062
19063 2003-08-09  Paul Eggert  <eggert@twinsun.com>
19064
19065         Merge some files from coreutils.  These changes were
19066         originally made by Jim Meyering.
19067         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
19068         many older Unixes require this.
19069         * lib/alloca.c (alloca): Remove cast to argument of free;
19070         no longer needed in C89.
19071         * lib/alloca_.h, regex.h: Fix white space to match
19072         what GNU indent does.
19073
19074 2003-08-09  Paul Eggert  <eggert@twinsun.com>
19075
19076         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
19077         apparently Emacs's Unicode mode got confused before my 2003-08-05
19078         checkin.
19079
19080 2003-08-08  Paul Eggert  <eggert@twinsun.com>
19081
19082         * m4/extensions.m4: New file.
19083         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
19084         Require gl_USE_SYSTEM_EXTENSIONS.
19085         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
19086         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
19087
19088 2003-08-08  Paul Eggert  <eggert@twinsun.com>
19089
19090         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
19091         * modules/extensions, modules/gnu-source: New files.
19092         * modules/timespec, modules/unlocked-io: Depend on extensions.
19093
19094 2003-08-07  Paul Eggert  <eggert@twinsun.com>
19095
19096         * modules/restrict: New file.
19097         * MODULES.html.sh (func_all_modules): Add restrict.
19098         * modules/regex: Depend on restrict.
19099
19100 2003-08-07  Paul Eggert  <eggert@twinsun.com>
19101
19102         * m4/restrict.m4: New file.
19103         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
19104
19105 2003-08-07  Bruno Haible  <bruno@clisp.org>
19106
19107         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
19108         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
19109
19110 2003-08-07  Bruno Haible  <bruno@clisp.org>
19111
19112         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
19113         makes the module 'getndelim2' compatible with the module 'getline'.
19114
19115 2003-08-05  Paul Eggert  <eggert@twinsun.com>
19116
19117         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
19118         byte with "\201" to avoid glitches when editing that source file
19119         with multi-gnome-terminal.
19120
19121 2003-08-05  Paul Eggert  <eggert@twinsun.com>
19122
19123         * lib/bumpalloc.h: Remove.
19124
19125 2003-08-05  Paul Eggert  <eggert@twinsun.com>
19126
19127         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
19128         * modules/bumpalloc: Remove.
19129
19130 2003-08-04  Paul Eggert  <eggert@twinsun.com>
19131
19132         * lib/getloadavg.c: Change copyright notice and spacing to conform to
19133         GNU coding style.
19134
19135         Merge from coreutils.
19136         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
19137         1. From glibc.
19138         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
19139         from Karl Berry, implemented by Jim Meyering.
19140         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
19141         from Dmitry V. Levin.
19142         Remove anachronistic cast of xrealloc.
19143         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
19144         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
19145         type. Otherwise, it wouldn't compile with at least /bin/cc on
19146         ymp-cray-unicos9.0.2.X.
19147         Combine two mostly-identical uses of alloca into one.
19148         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
19149
19150 2003-08-04  Dave Love  <d.love@dl.ac.uk>
19151
19152         [From Emacs.]
19153
19154         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
19155         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
19156         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
19157         obsolete NLIST_NAME_UNION.
19158         [__GNU__]: Undef BSD and FSCALE.
19159         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
19160
19161 2003-08-03  Paul Eggert  <eggert@twinsun.com>
19162
19163         * lib/stdbool_.h (_Bool): Make it signed char, instead of
19164         an enum type, so that it's guaranteed to promote to int.  See:
19165         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
19166
19167 2003-08-03  Karl Berry  <karl@gnu.org>
19168
19169         * config/depcomp: update from automake.
19170
19171 2003-07-31  Paul Eggert  <eggert@twinsun.com>
19172
19173         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
19174         (strerror): Don't assume that a printable int fits in 14 bytes.
19175
19176 2003-07-31  Bruno Haible  <bruno@clisp.org>
19177
19178         * modules/getpass-gnu: New file.
19179         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
19180
19181 2003-07-31  Bruno Haible  <bruno@clisp.org>
19182
19183         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
19184
19185 2003-07-24  Karl Berry  <karl@gnu.org>
19186
19187         * config/missing: update from automake.
19188
19189 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
19190             Bruno Haible  <bruno@clisp.org>
19191
19192         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
19193         * lib/getline.c (getline, getdelim): Likewise.
19194         Remove _GNU_SOURCE define; now it's defined in config.h through
19195         m4/getline.m4.
19196
19197 2003-07-23  Karl Berry  <karl@gnu.org>
19198
19199         * config/config.sub: update from prep.
19200
19201 2003-07-22  Paul Eggert  <eggert@twinsun.com>
19202
19203         * modules/xalloc (Depends-on): Add exitfail.
19204         * modules/xmemcoll: Likewise.
19205
19206 2003-07-22  Paul Eggert  <eggert@twinsun.com>
19207
19208         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
19209         over-parenthesization in macros.
19210
19211         Sync with coreutils.
19212
19213         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
19214         required by C99.
19215
19216         Use `exit_failure' for xalloc and xmemcoll instead of their own
19217         private exit-failure variables.
19218         * lib/xalloc.h (xalloc_exit_failure): Remove.
19219         * lib/xmalloc.c: Likewise.  Include exitfail.h.
19220         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
19221         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
19222         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
19223         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
19224
19225 2003-07-20  Jim Meyering  <jim@meyering.net>
19226
19227         * modules/closeout (Depends-on): Add exitfail.
19228         Suggestion from Bruno Haible.
19229
19230 2003-07-19  Karl Berry  <karl@gnu.org>
19231
19232         * config/config.sub: update from prep.
19233
19234 2003-07-18  Paul Eggert  <eggert@twinsun.com>
19235
19236         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
19237         Remove.
19238         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
19239         to test that it can stand by itself.  Include "exitfail.h".
19240         Clients should set exit_failure instead.
19241         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
19242
19243 2003-07-18  Bruno Haible  <bruno@clisp.org>
19244
19245         * modules/getndelim2: New file.
19246         * modules/getline: Share files with module getndelim2.
19247         * modules/getnline: Depend on getndelim2 instead of sharing files with
19248         it. Add getnline.c to lib_SOURCES.
19249         * MODULES.html.sh (func_all_modules): Add getndelim2.
19250
19251 2003-07-18  Bruno Haible  <bruno@clisp.org>
19252
19253         * m4/getndelim2.m4: New file.
19254         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
19255         invoke gl_PREREQ_GETNDELIM2.
19256         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
19257         gl_PREREQ_GETNDELIM2.
19258         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
19259         gl_GETNDELIM2.
19260
19261 2003-07-18  Bruno Haible  <bruno@clisp.org>
19262
19263         * lib/getndelim2.h: New file.
19264         * lib/getndelim2.c: Make into a module of its own. Include config.h,
19265         getndelim2.h.
19266         (getndelim2): Make non-static. Change return type to ssize_t.
19267         * lib/getline.h: Change argument names.
19268         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
19269         * lib/getnline.c: Include getndelim2.h.
19270
19271 2003-07-18  Andreas Schwab  <schwab@suse.de>
19272
19273         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
19274
19275 2003-07-17  Karl Berry  <karl@gnu.org>
19276
19277         * config/config.sub: update from prep.
19278
19279 2003-07-17  Bruno Haible  <bruno@clisp.org>
19280
19281         * modules/getnline: New file.
19282         * modules/getline: Add lib/getndelim2.c to source file list.
19283         * MODULES.html.sh (func_all_modules): Add getnline.
19284
19285 2003-07-17  Bruno Haible  <bruno@clisp.org>
19286
19287         * m4/getnline.m4: New file.
19288
19289 2003-07-17  Bruno Haible  <bruno@clisp.org>
19290
19291         * m4/Makefile.am.in: Remove file.
19292         * m4/Makefile.am: Remove file.
19293         * m4/Makefile.in: Remove file.
19294
19295 2003-07-17  Bruno Haible  <bruno@clisp.org>
19296
19297         * lib/getnline.h: New file.
19298         * lib/getnline.c: New file.
19299         * lib/getndelim2.c: New file, extracted from getline.c.
19300         (getndelim2): Renamed from getdelim2, with added nmax argument.
19301         * lib/getline.c: Include getndelim2.c.
19302         (getdelim2): Moved out to getndelim2.c.
19303         (getline, getdelim): Update.
19304
19305 2003-07-17  Bruno Haible  <bruno@clisp.org>
19306
19307         * lib/Makefile.am: Remove file.
19308         * lib/Makefile.in: Remove file.
19309
19310 2003-07-17  Bruno Haible  <bruno@clisp.org>
19311
19312         * configure.in: Remove file.
19313         * Makefile.in: Remove file.
19314
19315 2003-07-17  Bruno Haible  <bruno@clisp.org>
19316
19317         * MODULES.html.sh: Put the </BODY> right before </HTML>.
19318
19319 2003-07-16  Karl Berry  <karl@gnu.org>
19320
19321         * config/srclist-update: was running fixlicense twice, which caused
19322                 texinfo.tex to be nullified for some reason.  Simplify,
19323                 $gplsrc is no longer needed as far as I can see?
19324
19325 2003-07-16  Jim Meyering  <jim@meyering.net>
19326
19327         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
19328
19329 2003-07-15  Paul Eggert  <eggert@twinsun.com>
19330
19331         * config/srclist.txt: Get the following files from gettext-runtime/intl
19332         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
19333         ref-del.sin.  From Bruno Haible.
19334         * config/srclist-update (fixfile): Change grep pattern again, since the
19335         previous fix didn't work (there was another trailing $).  Use
19336         '[$]' to escape the $s.
19337
19338 2003-07-15  Karl Berry  <karl@gnu.org>
19339
19340         * lib/vasnprintf.c: update from gettext.
19341
19342 2003-07-15  Karl Berry  <karl@gnu.org>
19343
19344         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
19345         gets expanded when surrounded by '$'.
19346
19347 2003-07-15  Jim Meyering  <jim@meyering.net>
19348
19349         * modules/save-cwd: Don't depend on error.  From Derek Price.
19350
19351 2003-07-15  Jim Meyering  <jim@meyering.net>
19352
19353         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
19354
19355 2003-07-14  Simon Josefsson  <jas@extundo.com>
19356
19357         * modules/mempcpy: New file.
19358         * MODULES.html.sh (func_all_modules): Add mempcpy.
19359
19360 2003-07-14  Simon Josefsson  <jas@extundo.com>
19361
19362         * m4/mempcpy.m4: New file.
19363
19364 2003-07-14  Simon Josefsson  <jas@extundo.com>
19365
19366         * lib/mempcpy.h: New file.
19367         * lib/mempcpy.c: New file.
19368
19369 2003-07-14  Paul Eggert  <eggert@twinsun.com>
19370
19371         * modules/getdate, modules/posixtm: Depend on mktime.
19372
19373 2003-07-14  Paul Eggert  <eggert@twinsun.com>
19374
19375         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
19376         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
19377         unicodeio.c, unicodeio.h, unlocked-io.h:
19378         Switch from LGPL to GPL.
19379
19380 2003-07-14  Paul Eggert  <eggert@twinsun.com>
19381
19382         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
19383         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
19384         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
19385         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
19386         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
19387         updated automatically by ../config/srclist-update.  This changes
19388         their license from LPGL to GPL.
19389
19390 2003-07-14  Paul Eggert  <eggert@twinsun.com>
19391
19392         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
19393         assumed to refer to the root of the most recent stable gettext version.
19394         * config/srclistvars.sh: Add defaults for eggert.
19395         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
19396         Match "This program" as well as "The program".  This is needed
19397         for gettext.
19398
19399 2003-07-14  Jim Meyering  <jim@meyering.net>
19400
19401         Don't emit diagnostics.  Let callers do that.
19402         * lib/save-cwd.c: Don't include "error.h".
19403         (save_cwd): Don't call error.  Ensure that errno is valid
19404         when returning nonzero.
19405
19406         * lib/save-cwd.h (restore_cwd): Update prototype.
19407         * lib/save-cwd.c (restore_cwd): Remove two parameters.
19408         Simplify.  Don't call error upon failure.  Let callers do that.
19409         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
19410         when auditing is enabled.  But don't bother updating the #if.
19411
19412 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
19413
19414         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
19415         it breaks C++ compilation.
19416         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
19417
19418 2003-07-10  Simon Josefsson  <jas@extundo.com>
19419
19420         * modules/strchrnul (Makefile.am): Add strchrnul.h.
19421
19422 2003-07-10  Jim Meyering  <jim@meyering.net>
19423
19424         * m4/clock_time.m4: Remove trailing blank.
19425         * m4/intmax_t.m4: Likewise.
19426
19427 2003-07-10  Jim Meyering  <jim@meyering.net>
19428
19429         * lib/vasnprintf.c: Remove trailing blanks.
19430         Make cpp indentation consistent.
19431
19432 2003-07-09  Paul Eggert  <eggert@twinsun.com>
19433
19434         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
19435         posixver.c, strftime.c, strnlen.c, strverscmp.c:
19436         Switch from LGPL to GPL.
19437
19438 2003-07-09  Paul Eggert  <eggert@twinsun.com>
19439
19440         * config/srclist.txt: Sort sublists.  Add
19441         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
19442         that differ from gnulib for one reason or another; we'd like this list
19443         to be smaller but for now let's document what we have.
19444
19445 2003-07-08  Paul Eggert  <eggert@twinsun.com>
19446
19447         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
19448         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
19449         and sweeter "eval x=$x".
19450         * config/srclist.txt: Get lib/argp* from glibc.
19451
19452 2003-07-07  Paul Eggert  <eggert@twinsun.com>
19453
19454         * lib/mktime.c: Fix some boundary cases and remove need for floating
19455         point.
19456
19457         Issue a compile-time diagnostic if time_t is floating point, or if
19458         two's complement arithmetic is not in effect, or if arithmetic
19459         right shift does not propagate the sign.  These assumptions were
19460         all in the original code but they weren't checked.
19461
19462         (TIME_T_MIDPOINT, verify): New macros.
19463         (__isleap): Remove; it has integer overflow problems.
19464         (leapyear): New function, without those problems.
19465         (ydhms_tm_diff): Remove; splitting into two parts.
19466         (ydhms_diff): New function, containing the arithmetic part of
19467         the old ydhms_tm_diff function.  Issue a compile-time
19468         diagnostic if we are not using C99 integer division.
19469         Avoid casts when possible.
19470         (guess_time_tm): New function, containing the checking part of
19471         the old ydhms_tm_diff function.  Return the new value, rather than
19472         the difference between it and the old.  Accept a new argument T
19473         so that *T specifies the old value.  Check for overflow in the result.
19474
19475         (__mktime_internal): Use a time_t offset, not a long int offset.
19476         This undoes the 2003-06-04 change, which is no longer needed now
19477         that we have better overflow checking.
19478         (localtime_offset): Likewise.
19479
19480         (__mktime_internal): Avoid harmful overflow on hosts where time_t
19481         and long are 64-bit but int is only 32-bit.
19482         (ydhms_diff): Use long int to store year1 and yday1.
19483         Issue a compile-time diagnostic if long int is not wide enough.
19484
19485         (__mktime_internal): Use long int to store adjusted year and yday.
19486         Use plain C rather than preprocessor commands, if that doesn't
19487         affect efficiency.
19488         Check for overflow (and try to repair) after each probe
19489         rather than checking only at the very end.  This avoids some bugs
19490         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
19491         does not equal GMT offset at maximum time).
19492         Use integer to check for overflow rather than floating point; this
19493         is more portable to non-IEEE hosts, and is a tad faster.
19494         When we detect that we are oscillating between two values,
19495         don't check whether tm_isdst has the requested value, since
19496         we already know the answer.  When tm_isdst has the wrong value,
19497         use a different heuristic to find the right one, based on the
19498         extreme values actually observed in practice in tz2003a,
19499         rather than the (overly optimistic) "previous 3 calendar quarters".
19500
19501         (not_equal_tm, print_tm, check_result): Use "const T" rather than
19502         "T const" to accommodate glibc style.
19503         (check_result): Use less-confusing report format.  "long" -> "long int.
19504         (main): Likewise.
19505         Don't loop if the iteration overflows time_t.
19506         Allow a negative step in the iteration.
19507
19508 2003-07-06  Karl Berry  <karl@gnu.org>
19509
19510         * config/depcomp: update from automake.
19511         * config/config.sub: update from prep.
19512
19513 2003-07-03  Karl Berry  <karl@gnu.org>
19514
19515         * config/config.guess: update from prep.
19516
19517 2003-07-01  Paul Eggert  <eggert@twinsun.com>
19518
19519         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
19520         xreadlink.c now includes it unconditionally.
19521
19522 2003-07-01  Paul Eggert  <eggert@twinsun.com>
19523
19524         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
19525         having it depend on HAVE_SYS_TYPES_H.
19526
19527 2003-07-01  Bruno Haible  <bruno@clisp.org>
19528
19529         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
19530         <sys/types.h> should be sufficient.
19531         Reported by Paul Eggert.
19532
19533 2003-06-26  Karl Berry  <karl@gnu.org>
19534
19535         * config/depcomp: update from automake.
19536
19537 2003-06-26  Bruno Haible  <bruno@clisp.org>
19538
19539         * modules/human: Depend on module stdbool.
19540
19541 2003-06-25  Bruno Haible  <bruno@clisp.org>
19542
19543         * modules/readlink: New file.
19544         * modules/xreadlink: Depend on it.
19545         * MODULES.html.sh (func_all_modules): Add readlink.
19546
19547 2003-06-25  Bruno Haible  <bruno@clisp.org>
19548
19549         * m4/readlink.m4: New file.
19550
19551 2003-06-25  Bruno Haible  <bruno@clisp.org>
19552
19553         * lib/readlink.c: New file.
19554
19555 2003-06-22  Karl Berry  <karl@gnu.org>
19556
19557         * config/srclist.txt: update mkinstalldirs from automake.
19558         * config/mkinstalldirs: update.
19559
19560 2003-06-22  Bruno Haible  <bruno@clisp.org>
19561
19562         Portability to mingw32.
19563         * m4/ssize_t.m4: New file, from GNU gettext.
19564         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
19565         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
19566
19567 2003-06-22  Bruno Haible  <bruno@clisp.org>
19568
19569         * modules/safe-read: Add m4/ssize_t.m4.
19570         * modules/xreadlink: Add m4/ssize_t.m4.
19571
19572 2003-06-20  Bruno Haible  <bruno@clisp.org>
19573
19574         Assume C89, so PARAMS isn't needed.
19575         * lib/unicodeio.h (PARAMS): Remove.
19576         * lib/unicodeio.c: Don't use PARAMS.
19577
19578 2003-06-18  Karl Berry  <karl@gnu.org>
19579
19580         * config/config.{guess,sub}: update from prep.
19581
19582 2003-06-18  Jim Meyering  <jim@meyering.net>
19583
19584         Merge changes from coreutils.
19585         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
19586         Remove explicit declarations of xmalloc and realloc.
19587         Include xalloc.h.
19588         (read_utmp): Remove anachronistic cast of xmalloc.
19589
19590 2003-06-17  Paul Eggert  <eggert@twinsun.com>
19591
19592         Assume C89, so PARAMS isn't needed.
19593         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
19594         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
19595         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
19596         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
19597         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
19598         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
19599         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
19600         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
19601         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
19602         lib/xstrtod.h, lib/xstrtol.h: Likewise.
19603         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
19604         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
19605         no longer needed. Anyway, config.h should always be included before any
19606         other file.
19607
19608 2003-06-11  Simon Josefsson  <jas@extundo.com>
19609
19610         * modules/sysexits: New file.
19611         * MODULES.html.sh (func_all_modules): Add sysexits.
19612
19613 2003-06-11  Simon Josefsson  <jas@extundo.com>
19614
19615         * lib/sysexit_.h: New file.
19616
19617 2003-06-11  Derek Price  <derek@ximbiot.com>
19618
19619         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
19620         necessary.
19621
19622 2003-06-11  Bruno Haible  <bruno@clisp.org>
19623
19624         * m4/sysexits.m4: New file.
19625
19626 2003-06-10  Simon Josefsson  <jas@extundo.com>
19627
19628         * lib/argp.h: New file, from glibc.
19629         * lib/argp-ba.c: New file, from glibc.
19630         * lib/argp-eexst.c: New file, from glibc.
19631         * lib/argp-fmtstream.c: New file, from glibc.
19632         * lib/argp-fmtstream.h: New file, from glibc.
19633         * lib/argp-fs-xinl.c: New file, from glibc.
19634         * lib/argp-help.c: New file, from glibc.
19635         * lib/argp-namefrob.h: New file, from glibc.
19636         * lib/argp-parse.c: New file, from glibc.
19637         * lib/argp-pv.c: New file, from glibc.
19638         * lib/argp-pvh.c: New file, from glibc.
19639         * lib/argp-xinl.c: New file, from glibc.
19640
19641 2003-06-10  Simon Josefsson  <jas@extundo.com>
19642
19643         * modules/strchrnul: New file.
19644
19645 2003-06-10  Simon Josefsson  <jas@extundo.com>
19646
19647         * modules/argp: New file.
19648
19649 2003-06-10  Simon Josefsson  <jas@extundo.com>
19650
19651         * m4/strchrnul.m4: New file.
19652
19653 2003-06-10  Simon Josefsson  <jas@extundo.com>
19654
19655         * lib/strchrnul.h: New file.
19656         * lib/strchrnul.c: New file.
19657
19658 2003-06-10  Bruno Haible  <bruno@clisp.org>
19659
19660         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
19661
19662 2003-06-07  Karl Berry  <karl@gnu.org>
19663
19664         * config/config.{guess,sub}: update from prep.
19665
19666 2003-06-07  Jim Meyering  <jim@meyering.net>
19667
19668         * modules/strtod: Use $(...) notation, not @...@ for
19669         AC_REPLACE'd variables.
19670         * modules/localcharset: Likewise.
19671
19672 2003-06-07  Jim Meyering  <jim@meyering.net>
19673
19674         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
19675         in place of my name in the copyright comment.
19676         Remove definition and uses of __P.
19677
19678         From coreutils.
19679         * lib/stat.c: Don't declare xmalloc explicitly.
19680         Instead, include "xalloc.h".
19681         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
19682         xrealloc, and xcalloc return values.
19683         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
19684         Improve comment.
19685         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
19686
19687 2003-06-07  Bruno Haible  <bruno@clisp.org>
19688
19689         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
19690         avoid AC_CONFIG_LINKS.
19691         * modules/fnmatch (Makefile.am): Use explicit creation rule for
19692         fnmatch.h, to avoid AC_CONFIG_LINKS.
19693         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
19694
19695 2003-06-07  Bruno Haible  <bruno@clisp.org>
19696
19697         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
19698         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
19699         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
19700         directory.
19701         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
19702         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
19703         directory.
19704
19705 2003-06-06  Jim Meyering  <jim@meyering.net>
19706
19707         Merge from coreutils.
19708         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
19709         Consolidate declarations and initializations of *_base* locals.
19710
19711         Merge from coreutils.
19712         This avoids a core dump on systems without GNU putenv,
19713         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
19714         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
19715         (unsetenv): New static function, from GNU libc.
19716         (rpl_putenv): Use it.
19717
19718         * lib/modechange.c: Remove trailing blanks.
19719
19720         Merge from coreutils.
19721         * lib/fsusage.c: Remove declaration of statfs.
19722         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
19723
19724         * lib/posixtm.c: Include <stdbool.h> unconditionally.
19725
19726 2003-06-06  Jim Meyering  <jim@meyering.net>
19727
19728         * lib/stdbool_.h: Renamed from stdbool.h.in.
19729
19730 2003-06-06  Jim Meyering  <jim@meyering.net>
19731             Bruno Haible  <bruno@clisp.org>
19732
19733         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
19734         Adjust Makefile.am snippet not to redirect directly to target.
19735         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
19736
19737 2003-06-05  Paul Eggert  <eggert@twinsun.com>
19738
19739         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
19740         mismatch, look in future quarters as well as past.  This fixes a
19741         bug when processing fall-backwards gaps immediately after a long
19742         period of daylight-saving time.
19743
19744         * lib/mktime.c: Assume freestanding C89 or better.
19745         (HAVE_LIMITS_H): Remove.  Assume it's 1.
19746         (__P): Remove; not used.
19747         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
19748         (mktime, not_equal_tm, print_tm, check_result,
19749         main): Use prototypes.  Use const * where appropriate.
19750         (main): Fix typo in testing code that uncovered by above changes.
19751         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
19752
19753 2003-06-04  Paul Eggert  <eggert@twinsun.com>
19754
19755         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
19756         locale.h, localeconv.  This merges changes from coreutils.
19757
19758         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
19759         It can be removed after the next Autoconf is released.
19760         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
19761         needed.
19762
19763 2003-06-04  Paul Eggert  <eggert@twinsun.com>
19764
19765         * lib/mktime.c: Fix Debian bug 177940
19766         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
19767         (localtime_offset): Now long int, not time_t, because we want it
19768         to be guaranteed to be signed.  All uses changed.
19769         (__mktime_internal): If overflow would occur when adding offset,
19770         don't add it.
19771
19772         Merge 'human' changes from coreutils.  Rewrite to support
19773         locale-specific notations like thousands separators.
19774         * lib/human.c: Simplify authorship notice.
19775         Include human.h immediately after config.h.
19776         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
19777         <limits.h>: Do not include, since human.h does.
19778         (SIZE_MAX, UINTMAX_MAX): New macros.
19779         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
19780         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
19781         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
19782         (power_letter): Renamed from suffixes.
19783         (generate_suffix_backwards): Remove.
19784         (adjust_value): Now takes int style (because of human.h changes)
19785         and long double value (for greater precision on some platforms).
19786         (group_number): New function.
19787         (human_readable): Use it.  Use integer options, not enum.
19788         Put the options before the sizes in the arg list.
19789         Support all the new options.
19790         The old human_readable function has been removed;
19791         use inttostr.h instead.
19792         (human_readable, default_block_size, humblock):
19793         Use uintmax_t, not int, for block sizes.
19794         (human_readable_inexact, block_size_types): Remove.
19795         (block_size_opts): New constant.
19796         (human_options): Renamed from human_block_size, with new signature
19797         that allows block sizes up to UINTMAX_MAX.  All callers changed.
19798         * lib/human.h: Add copyright and authorship notice.
19799         Include <limits.h> and <stdbool.h> unconditionally.
19800         (PARAMS): Remove.  All uses removed.
19801         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
19802         (enum human_inexact_style): Remove tag; now a nameless enum.
19803         (human_floor, human_ceiling, human_round_to_even): Now have
19804         values 2, 0, 1 rather than -1, 1, 0.
19805         (human_group_digits, human_suppress_point_zero, human_autoscale,
19806         human_base_1024, human_SI, human_B): New constants.
19807         (human_readable_inexact, human_block_size): Remove.
19808         (human_readable): Size args are now uintmax_t, not int.
19809         (human_options): New decl.
19810
19811         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
19812         unnecessary now that we assume C89 or better.  This change
19813         imported from coreutils.
19814
19815         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
19816         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
19817         in the 2003-05-30 sync from glibc.
19818
19819         .h files should stand alone, but we shouldn't include <sys/types.h>
19820         if we can get away with just <stddef.h>.
19821
19822         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
19823         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
19824         rather than <sys/types.h>, as we merely need size_t.
19825         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
19826         to get size_t.
19827         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
19828         Include <stdio.h>, to get FILE.
19829         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
19830         memcasecmp.h has included <stddef.h> and all we need is size_t.
19831         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
19832         our interface, instead of including <sys/types.h>
19833
19834 2003-06-04  Paul Eggert  <eggert@twinsun.com>
19835
19836         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
19837         now, as glibc mktime is buggy on non-glibc systems.
19838
19839 2003-06-03  Karl Berry  <karl@gnu.org>
19840
19841         * config/config.sub: update from prep.
19842
19843 2003-06-02  Paul Eggert  <eggert@twinsun.com>
19844
19845         [from coreutils]
19846         Fix some minor time-related bugs with POSIX time arguments.
19847         Some valid time stamps were being rejected (notably -1, and
19848         time stamps before 1900 on 64-bit hosts).  And some invalid
19849         time stamps were being accepted, e.g. September 31.
19850
19851         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
19852         that we can return (time_t) -1 successfully.
19853         * lib/posixtm.c: Likewise.
19854         [HAVE_STDBOOL_H]: Include <stdbool.h>.
19855         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
19856         (t): Remove static var.
19857         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
19858         of static var.  All uses changed.
19859         (year): Do not reject years before 1900; they can occur with
19860         64-bit time_t.
19861         (posix_time_parse): Do not check for out-of-range components;
19862         that is now the caller's responsibility, since our checks were
19863         only approximations.
19864         (posixtime): Use mktime to check for out-of-range components,
19865         since it knows them exactly.
19866         If mktime returns (time_t) -1, check whether an error actually occurred
19867         by invoking localtime on -1.
19868         (main) [TEST_POSIXTIME]: Check for input data errors, and report
19869         posixtime failures better.
19870         Improve the test data (in comments only).
19871
19872 2003-06-02  Karl Berry  <karl@gnu.org>
19873
19874         * config/mkinstalldirs (version): new variable.
19875         (--version): new option.
19876         (usage): improve message.
19877
19878 2003-05-30  Karl Berry  <karl@gnu.org>
19879
19880         * lib/mktime.c: update from libc.
19881
19882 2003-05-30  Bruno Haible  <bruno@clisp.org>
19883
19884         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
19885         * config/config.rpath: Upgrade to gettext-0.12.1.
19886
19887 2003-05-30  Bruno Haible  <bruno@clisp.org>
19888
19889         * m4/gettext.m4: Upgrade to gettext-0.12.1.
19890         * m4/nls.m4: New file, from gettext-0.12.1.
19891         * m4/po.m4: New file, from gettext-0.12.1.
19892         * m4/progtest.m4: Upgrade to gettext-0.12.1.
19893
19894 2003-05-30  Bruno Haible  <bruno@clisp.org>
19895
19896         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
19897         * lib/localcharset.h: Likewise.
19898         * lib/localcharset.c: Likewise.
19899
19900 2003-05-29  Karl Berry  <karl@gnu.org>
19901
19902         * config/config.rpath: update from gettext.
19903
19904 2003-05-28  Paul Eggert  <eggert@twinsun.com>
19905
19906         Assume the headers required for C89 freestanding compilers.
19907         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
19908         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
19909         * m4/human.m4 (gl_HUMAN): Likewise.
19910         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
19911         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
19912         * m4/userspec.m4 (gl_USERSPEC): Likewise.
19913         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
19914         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
19915         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
19916
19917 2003-05-28  Paul Eggert  <eggert@twinsun.com>
19918
19919         Assume the headers required for C89 freestanding compilers.
19920         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
19921         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
19922         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
19923         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
19924         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
19925         define, since <limits.h> is guaranteed to do that.
19926         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
19927         * lib/exclude.c: Include <stdbool.h> unconditionally.
19928         * lib/tempname.c: Include <stddef.h> unconditionally.
19929         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
19930         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
19931         <stddef.h> does that.
19932         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
19933         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
19934         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
19935         needed.
19936         * lib/xstrtol.c: Likewise.
19937         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
19938         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
19939
19940         * lib/addext.c (addext): Use assignment rather than cast, to avoid
19941         warnings on some platforms.
19942
19943         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
19944         arbitrarily.
19945
19946 2003-05-26  Jim Meyering  <jim@meyering.net>
19947
19948         Merge in a change from coreutils:
19949         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
19950         that is guaranteed to be `no'.  Use `no_such_member' to indicate
19951         that condition, rather than `-1' which is slightly misleading.
19952         Change the name of the cache variable to have the gl_ prefix.
19953         Prompted by a patch from Richard Dawe for DJGPP.
19954
19955 2003-05-24  Karl Berry  <karl@gnu.org>
19956
19957         * config/config.guess: update from prep.
19958
19959 2003-05-22  Karl Berry  <karl@gnu.org>
19960
19961         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
19962
19963 2003-05-20  Karl Berry  <karl@gnu.org>
19964
19965         * config/config.guess: update from prep.
19966
19967 2003-05-18  Karl Berry  <karl@gnu.org>
19968
19969         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
19970         might actually be set by the user.
19971
19972         * config/depcomp, install-sh, mdate-sh: update from automake.
19973
19974 2003-05-17  Bruno Haible  <bruno@clisp.org>
19975
19976         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
19977         invalid expansion for AC_EGREP_CPP.
19978         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
19979         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
19980         Suggested by Akim Demaille <akim@epita.fr> in
19981         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
19982
19983 2003-05-12  Jim Meyering  <jim@meyering.net>
19984
19985         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
19986         the space-padded-by-default conversion specifiers, %e, %k, %l.
19987
19988 2003-05-12  Bruno Haible  <bruno@clisp.org>
19989
19990         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
19991         the string is longer than 4 KB.
19992
19993 2003-05-11  Karl Berry  <karl@gnu.org>
19994
19995         * config/config.{guess,sub}: update from prep.
19996
19997 2003-05-09  Bruno Haible  <bruno@clisp.org>
19998
19999         * modules/error: Add m4/strerror_r.m4 to file list.
20000
20001 2003-05-03  Bruno Haible  <bruno@clisp.org>
20002
20003         Upgrade to Unicode-4.0.
20004         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
20005         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
20006         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
20007         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
20008         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
20009         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
20010         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
20011         Change width of U+E0100..U+E01EF from 1 to 0.
20012
20013 2003-04-25  Jim Meyering  <jim@meyering.net>
20014
20015         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
20016         of type size_t, not int.
20017
20018 2003-04-25  Bruno Haible  <bruno@clisp.org>
20019
20020         * lib/copy-file.c: Include <stddef.h>, for size_t.
20021
20022 2003-04-21  Paul Eggert  <eggert@twinsun.com>
20023
20024         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
20025         code which expansion is under static control.  Patch imported from
20026         Akim Demaille's patch to Bison; see
20027         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
20028
20029 2003-04-14  Bruno Haible  <bruno@clisp.org>
20030
20031         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
20032
20033 2003-04-11  Jim Meyering  <jim@meyering.net>
20034
20035         Merge changes from Coreutils.
20036
20037         2003-03-22  Jim Meyering  <jim@meyering.net>
20038
20039         * lib/strftime.c (widen): Cast alloca return value to proper type.
20040
20041         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
20042
20043         From GNU libc.
20044         * lib/strftime.c (my_strftime): Handle very large width
20045         specifications for numeric values correctly.  Improve checks for
20046         overflow.
20047
20048         2003-01-19  Jim Meyering  <jim@meyering.net>
20049
20050         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
20051         definitions.
20052         (nl_get_alt_digit) [! defined my_strftime]: Define.
20053         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
20054         _nl_get_alt_digit and _nl_get_walt_digit.
20055
20056         * lib/strftime.c (my_strftime): Merge in locale-related changes from
20057         libc. These changes have no effect outside of _LIBC.
20058
20059 2003-04-10  Bruno Haible  <bruno@clisp.org>
20060
20061         * modules/findprog: New file.
20062         * MODULES.html.sh (func_all_modules): Add it.
20063
20064 2003-04-10  Bruno Haible  <bruno@clisp.org>
20065
20066         * m4/findprog.m4: New file.
20067         * m4/eaccess.m4: New file.
20068
20069 2003-04-10  Bruno Haible  <bruno@clisp.org>
20070
20071         * lib/findprog.h: New file, from GNU gettext.
20072         * lib/findprog.c: New file, from GNU gettext.
20073
20074 2003-04-05  Jim Meyering  <jim@meyering.net>
20075
20076         Merge changes from Coreutils.
20077
20078         * lib/exclude.h (PARAMS): Remove definition and uses.
20079         * lib/exclude.c: Remove uses of `PARAMS'.
20080
20081         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
20082         Add test-cases for DOS filenames. Declare program_name.
20083         (main): Set up program_name.  Patch by Rich Dawe.
20084
20085         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
20086         error from mntctl.
20087         Use mntctl's return value to drive the entry-processing loop, since
20088         we can't rely on the value of the vmt_length member in the last
20089         entry.  On some systems doing so could result in exhausting
20090         virtual memory.  Based in part on a patch from Mike Jetzer.
20091
20092 2003-04-04  Bruno Haible  <bruno@clisp.org>
20093
20094         * modules/linebreak: New file.
20095         * MODULES.html.sh (func_all_modules): Add it.
20096
20097 2003-04-04  Bruno Haible  <bruno@clisp.org>
20098
20099         * m4/linebreak.m4: New file.
20100
20101 2003-04-04  Bruno Haible  <bruno@clisp.org>
20102
20103         * lib/linebreak.h: New file, from GNU gettext.
20104         * lib/linebreak.c: New file, from GNU gettext with slight
20105         modifications.
20106         * lib/lbrkprop.h: New file, from GNU gettext.
20107
20108 2003-04-03  Bruno Haible  <bruno@clisp.org>
20109
20110         * modules/utf8-ucs4: New file.
20111         * modules/utf16-ucs4: New file.
20112         * modules/ucs4-utf8: New file.
20113         * modules/ucs4-utf16: New file.
20114         * MODULES.html.sh (func_all_modules): Add them.
20115
20116 2003-04-03  Bruno Haible  <bruno@clisp.org>
20117
20118         * m4/utf-ucs4.m4: New file.
20119         * m4/ucs4-utf.m4: New file.
20120
20121 2003-04-03  Bruno Haible  <bruno@clisp.org>
20122
20123         * lib/utf8-ucs4.h: New file, from GNU gettext.
20124         * lib/utf16-ucs4.h: New file, from GNU gettext.
20125         * lib/ucs4-utf8.h: New file, from GNU gettext.
20126         * lib/ucs4-utf16.h: New file, from GNU gettext.
20127
20128 2003-04-02  Bruno Haible  <bruno@clisp.org>
20129
20130         * modules/binary-io: New file.
20131         * MODULES.html.sh (func_all_modules): Add it.
20132
20133 2003-04-02  Bruno Haible  <bruno@clisp.org>
20134
20135         * lib/binary-io.h: New file, from GNU gettext.
20136
20137 2003-04-01  Bruno Haible  <bruno@clisp.org>
20138
20139         * modules/pathname: New file.
20140         * MODULES.html.sh (func_all_modules): Add it.
20141
20142 2003-04-01  Bruno Haible  <bruno@clisp.org>
20143
20144         * lib/pathname.h: New file, from GNU gettext.
20145         * lib/concatpath.c: New file, from GNU gettext.
20146
20147 2003-03-30  Bruno Haible  <bruno@clisp.org>
20148
20149         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
20150
20151 2003-03-30  Bruno Haible  <bruno@clisp.org>
20152
20153         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
20154         function chown() doesn't exist.
20155
20156 2003-03-28  Bruno Haible  <bruno@clisp.org>
20157
20158         * modules/copy-file: New file.
20159         * MODULES.html.sh (func_all_modules): Add it.
20160
20161 2003-03-28  Bruno Haible  <bruno@clisp.org>
20162
20163         * m4/copy-file.m4: New file.
20164
20165 2003-03-28  Bruno Haible  <bruno@clisp.org>
20166
20167         * lib/copy-file.h: New file, from GNU gettext.
20168         * lib/copy-file.c: New file, from GNU gettext.
20169
20170 2003-03-18  Jim Meyering  <jim@meyering.net>
20171
20172         * lib/quote.c (quote_n): Fix typo in comment.
20173
20174 2003-03-18  Bruno Haible  <bruno@clisp.org>
20175
20176         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
20177         checking.
20178         * m4/onceonly_2_57.m4: Likewise.
20179
20180 2003-03-17  Bruno Haible  <bruno@clisp.org>
20181
20182         * m4/onceonly.m4: Require autoconf 2.54 or newer.
20183         (m4_quote): Remove macro.
20184         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
20185
20186 2003-03-14  Jim Meyering  <jim@meyering.net>
20187
20188         Merge changes from Coreutils.
20189         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
20190         to be const, in order to avoid warnings.
20191         (obstack_room): Likewise.
20192         (obstack_empty_p): Likewise.
20193
20194 2003-03-14  Bruno Haible  <bruno@clisp.org>
20195
20196         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
20197         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
20198
20199 2003-03-13  Paul Eggert  <eggert@twinsun.com>
20200
20201         Merge changes from Bison.
20202         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
20203         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
20204         when compiling Bison 1.875's `bitset bset = obstack_alloc
20205         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
20206         * lib/hash.c: Include <stdbool.h> unconditionally.
20207
20208 2003-03-13  Paul Eggert  <eggert@twinsun.com>
20209
20210         * m4/onceonly.m4 (m4_quote): New macro.
20211         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
20212         Quote AC_FOREACH variable-expansions properly.
20213
20214 2003-03-13  Paul Eggert  <eggert@twinsun.com>
20215
20216         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
20217
20218 2003-03-09  Paul Eggert  <eggert@twinsun.com>
20219
20220         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
20221         Reported by Bruce Becker; see:
20222         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
20223
20224 2003-03-03  Paul Eggert  <eggert@twinsun.com>
20225             Bruno Haible  <bruno@clisp.org>
20226
20227         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
20228         Reported by John Hughes, see
20229         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
20230
20231 2003-02-20  Bruno Haible  <bruno@clisp.org>
20232
20233         * MODULES.html.sh (func_all_modules): Add poll.
20234
20235 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
20236
20237         * modules/poll: New file.
20238
20239 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
20240
20241         * lib/poll_.h: New file.
20242         * lib/poll.c: New file.
20243
20244 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
20245
20246         * m4/poll.m4: New file.
20247
20248 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
20249
20250         * modules/mathl: New file.
20251
20252 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
20253
20254         * lib/mathl.h: New file.
20255         * lib/acosl.c: New file.
20256         * lib/asinl.c: New file.
20257         * lib/atanl.c: New file.
20258         * lib/ceill.c: New file.
20259         * lib/cosl.c: New file.
20260         * lib/expl.c: New file.
20261         * lib/floorl.c: New file.
20262         * lib/frexpl.c: New file.
20263         * lib/ldexpl.c: New file.
20264         * lib/logl.c: New file.
20265         * lib/sincosl.c: New file.
20266         * lib/sinl.c: New file.
20267         * lib/sqrtl.c: New file.
20268         * lib/tanl.c: New file.
20269         * lib/trigl.c: New file.
20270         * lib/trigl.h: New file.
20271
20272 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
20273
20274         * m4/mathl.m4: New file.
20275
20276 2003-02-18  Bruno Haible  <bruno@clisp.org>
20277
20278         * MODULES.html.sh (func_all_modules): Add mathl.
20279
20280 2003-02-17  Bruno Haible  <bruno@clisp.org>
20281
20282         * modules/mkdtemp: New module.
20283         * MODULES.html.sh (func_all_modules): Add it.
20284
20285 2003-02-17  Bruno Haible  <bruno@clisp.org>
20286
20287         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
20288
20289 2003-02-17  Bruno Haible  <bruno@clisp.org>
20290
20291         * lib/mkdtemp.h: New file, from GNU gettext.
20292         * lib/mkdtemp.c: New file, from GNU gettext.
20293
20294 2003-02-02  Jim Meyering  <jim@meyering.net>
20295
20296         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
20297         e.g. glibc-2.2.93.
20298
20299 2003-01-31  Bruno Haible  <bruno@clisp.org>
20300
20301         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
20302         'rpl_rename'.
20303         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
20304         'rpl_strnlen'.
20305         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
20306         'rpl_strtod'.
20307         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
20308         'rpl_utime'.
20309
20310 2003-01-31  Bruno Haible  <bruno@clisp.org>
20311
20312         * lib/rename.c: #undef rename before defining rpl_rename.
20313         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
20314
20315 2003-01-30  Bruno Haible  <bruno@clisp.org>
20316
20317         * modules/vasnprintf, modules/vasprintf: New modules.
20318         * MODULES.html.sh (func_all_modules): Add them.
20319
20320 2003-01-30  Bruno Haible  <bruno@clisp.org>
20321
20322         * m4/signed.m4: New file, from GNU gettext.
20323         * m4/longdouble.m4: New file, from GNU gettext.
20324         * m4/wchar_t.m4: New file, from GNU gettext.
20325         * m4/wint_t.m4: New file, from GNU gettext.
20326         * m4/vasnprintf.m4: New file.
20327         * m4/vasprintf.m4: New file.
20328
20329 2003-01-30  Bruno Haible  <bruno@clisp.org>
20330
20331         * lib/printf-args.h: New file, from GNU gettext.
20332         * lib/printf-args.c: New file, from GNU gettext.
20333         * lib/printf-parse.h: New file, from GNU gettext.
20334         * lib/printf-parse.c: New file, from GNU gettext.
20335         * lib/vasnprintf.h: New file, from GNU gettext.
20336         * lib/vasnprintf.c: New file, from GNU gettext.
20337         * lib/asnprintf.c: New file, from GNU gettext.
20338         * lib/vasprintf.h: New file, from GNU gettext with modifications.
20339         * lib/vasprintf.c: New file, from GNU gettext.
20340         * lib/asprintf.c: New file, from GNU gettext.
20341
20342 2003-01-29  Bruno Haible  <bruno@clisp.org>
20343
20344         * modules/stpncpy: New module.
20345         * MODULES.html.sh (func_all_modules): Add it.
20346
20347 2003-01-29  Bruno Haible  <bruno@clisp.org>
20348
20349         * m4/stpncpy.m4: New file.
20350
20351 2003-01-29  Bruno Haible  <bruno@clisp.org>
20352
20353         * lib/stpncpy.h: New file, from GNU gettext with modifications.
20354         * lib/stpncpy.c: New file, from GNU gettext with modifications.
20355
20356 2003-01-28  Bruno Haible  <bruno@clisp.org>
20357
20358         * modules/c-ctype: New module.
20359         * MODULES.html.sh (func_all_modules): Add it.
20360
20361 2003-01-28  Bruno Haible  <bruno@clisp.org>
20362
20363         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
20364         Paul Eggert.
20365         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
20366         Paul Eggert.
20367
20368 2003-01-27  Bruno Haible  <bruno@clisp.org>
20369
20370         * modules/xsetenv: New module.
20371         * MODULES.html.sh (func_all_modules): Add it.
20372
20373 2003-01-27  Bruno Haible  <bruno@clisp.org>
20374
20375         * lib/xsetenv.h: New file, from GNU gettext.
20376         * lib/xsetenv.c: New file, from GNU gettext.
20377
20378 2003-01-23  Jim Meyering  <jim@meyering.net>
20379
20380         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
20381         from working on systems without dirfd (at least Irix and OSF1/Tru64).
20382
20383 2003-01-23  Bruno Haible  <bruno@clisp.org>
20384
20385         * modules/minmax: New module.
20386         * MODULES.html.sh (func_all_modules): Add it.
20387
20388 2003-01-23  Bruno Haible  <bruno@clisp.org>
20389
20390         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
20391         Eggert.
20392
20393 2003-01-22  Bruno Haible  <bruno@clisp.org>
20394
20395         * modules/exit: New module.
20396         * MODULES.html.sh (func_all_modules): Add it.
20397
20398 2003-01-22  Bruno Haible  <bruno@clisp.org>
20399
20400         * lib/exit.h: New file, from GNU gettext.
20401
20402 2003-01-19  Bruno Haible  <bruno@clisp.org>
20403
20404         * gnulib-tool: Recognize option --extract-maintainer.
20405         (func_get_maintainer): New function.
20406         * modules/*: Add Maintainer entry.
20407
20408 2003-01-16  Jim Meyering  <jim@meyering.net>
20409
20410         * m4/regex.m4: The `regex' struct is both input and output.
20411         Initialize it before each use.  Patch by Tim Waugh.
20412
20413 2003-01-16  Bruno Haible  <bruno@clisp.org>
20414
20415         * MODULES.html.sh: Add a table of contents. Add the module name as
20416         leftmost column. Add hyperlinks.
20417
20418 2003-01-15  Bruno Haible  <bruno@clisp.org>
20419
20420         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
20421
20422 2003-01-15  Bruno Haible  <bruno@clisp.org>
20423
20424         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
20425         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
20426         suffix.
20427
20428 2003-01-15  Bruno Haible  <bruno@clisp.org>
20429
20430         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
20431
20432 2003-01-15  Bruno Haible  <bruno@clisp.org>
20433
20434         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
20435         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
20436
20437 2003-01-14  Jim Meyering  <jim@meyering.net>
20438
20439         * lib/same.c (same_name): Tweak a comment.
20440
20441 2003-01-14  Bruno Haible  <bruno@clisp.org>
20442
20443         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
20444         when a string comparison is sufficient.
20445
20446 2003-01-14  Bruno Haible  <bruno@clisp.org>
20447
20448         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
20449         'unsigned int'.
20450
20451 2003-01-14  Bruno Haible  <bruno@clisp.org>
20452
20453         * lib/hash-pjw.c: Add comment about low quality of this function.
20454
20455 2003-01-13  Bruno Haible  <bruno@clisp.org>
20456
20457         * modules/stpcpy: Distribute lib/stpcpy.h.
20458         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
20459
20460 2003-01-13  Bruno Haible  <bruno@clisp.org>
20461
20462         * modules/*: Add a description.
20463         * modules/strpbrk: Fix Makefile.am snippet.
20464         * modules/strtoimax: Fix dependencies.
20465         * modules/strtoumax: Likewise.
20466
20467 2003-01-13  Bruno Haible  <bruno@clisp.org>
20468
20469         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
20470         * modules/alloca (Makefile.am): All object files depend on alloca.h.
20471         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
20472
20473 2003-01-13  Bruno Haible  <bruno@clisp.org>
20474
20475         * gnulib-tool (func_create_testdir): Store config/* files in the main
20476         directory.
20477         * config.rpath: Move to ...
20478         * config/config.rpath: ... here.
20479         * modules/gettext: Contains config/config.rpath, not config.rpath.
20480         * modules/iconv: Likewise.
20481
20482 2003-01-12  Paul Eggert  <eggert@twinsun.com>
20483
20484         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
20485         to avoid collisions with libcurses and libreadline.
20486
20487         * m4/getstr.m4: Remove.
20488         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
20489
20490 2003-01-12  Paul Eggert  <eggert@twinsun.com>
20491
20492         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
20493         to avoid collisions with libcurses and libreadline.
20494
20495         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
20496         * lib/getstr.h, getstr.c: Remove.
20497         * lib/getline.c: Include "getline.h", to check interface.
20498         Move body of old getstr.c here: this defines MIN_CHUNK and
20499         declares getdelim2, which is renamed from getstr.
20500         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
20501
20502         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
20503         All uses changed.
20504         * lib/linebuffer.h: Likewise.
20505         (readline): Remove backward-compatibility macro.
20506
20507 2003-01-12  Paul Eggert  <eggert@twinsun.com>
20508
20509         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
20510         to avoid collisions with libcurses and libreadline.
20511         * getstr: Remove.
20512         * MODULES.html.sh: Remove getstr.
20513         * modules/getline: Depend on unlocked-io, not getstr.
20514
20515 2003-01-12  Jim Meyering  <jim@meyering.net>
20516
20517         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
20518
20519 2003-01-10  Bruno Haible  <bruno@clisp.org>
20520
20521         * modules/alloca: Change Makefile.am requirements. Simplify Include
20522         requirements. Add lib/alloca_.h to file list.
20523
20524 2003-01-10  Bruno Haible  <bruno@clisp.org>
20525
20526         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
20527
20528 2003-01-10  Bruno Haible  <bruno@clisp.org>
20529
20530         * lib/alloca_.h: New file.
20531         * lib/getdate.y: Unconditionally include alloca.h.
20532         * lib/makepath.c: Likewise.
20533         * lib/setenv.c: Likewise.
20534         * lib/userspec.c: Likewise.
20535
20536 2003-01-09  Karl Berry  <karl@gnu.org>
20537
20538         * MODULES.html.sh: include `dirname $0` in PATH, to find
20539         gnulib-tool.
20540
20541 2003-01-09  Bruno Haible  <bruno@clisp.org>
20542
20543         * modules/stdbool: Change configure.ac, Makefile.am requirements.
20544         Simplify Include requirements. Add lib/stdbool.h.in to file list.
20545
20546 2003-01-09  Bruno Haible  <bruno@clisp.org>
20547
20548         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
20549
20550 2003-01-09  Bruno Haible  <bruno@clisp.org>
20551
20552         * lib/stdbool.h.in: New file.
20553
20554 2003-01-09  Bruno Haible  <bruno@clisp.org>
20555
20556         * gnulib-tool (func_all_modules): Ignore files ending in ~.
20557         * MODULES.html.sh: Likewise.
20558
20559 2003-01-08  Jim Meyering  <jim@meyering.net>
20560
20561         * lib/full-write.c: Undefine and define-away `const' after inclusion
20562         of errno.h, not before.  Suggestion from Bruno Haible.
20563
20564 2003-01-08  Bruno Haible  <bruno@clisp.org>
20565
20566         * modules/full-read: Depend on full-write.
20567
20568 2003-01-08  Bruno Haible  <bruno@clisp.org>
20569
20570         * lib/safe-read.c: Include specification header first, to ensure its
20571         selfcontainedness.
20572         * lib/full-write.c: Likewise.
20573
20574 2003-01-07  Jim Meyering  <jim@meyering.net>
20575
20576         * lib/full-write.c: Rework so that it may serve to define full_read,
20577         too.
20578         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
20579
20580 2003-01-07  Bruno Haible  <bruno@clisp.org>
20581
20582         * lib/strtoimax.c: Include <stdint.h> as an alternative to
20583         <inttypes.h>.
20584         * lib/xstrtol.h: Likewise.
20585         * lib/xstrtoimax.c: Likewise.
20586         * lib/xstrtoumax.c: Likewise.
20587         * lib/human.h: Likewise.
20588
20589         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
20590         on systems that have <inttypes.h> but not <stdint.h>.
20591
20592 2003-01-07  Bruno Haible  <bruno@clisp.org>
20593
20594         * MODULES.html.sh: Add copyright notice.
20595         (missed_files): Omit CVS directory entries.
20596         (func_module): Make it work with sed-3.02.
20597         * MODULES.txt: Remove file.
20598
20599 2003-01-06  Jim Meyering  <jim@meyering.net>
20600
20601         * lib/version-etc.c: Update year in translatable copyright string.
20602
20603 2003-01-03  Karl Berry  <karl@gnu.org>
20604
20605         * config/config.{guess,sub}: update from prep.
20606
20607 2003-01-02  Karl Berry  <karl@gnu.org>
20608
20609         * doc/COPYING.DOC: belatedly updated to 1.2.
20610
20611 2003-01-01  Karl Berry  <karl@gnu.org>
20612
20613         * gnulib-tool (func_verify_module): report module name $module in
20614         error message, not $1.
20615         * gnulib-tool (create-testdir): don't complain if destdir couldn't
20616         be created, only if it doesn't exist.
20617         * gnulib-tool (last_checkin_date): don't expand the $Date here.
20618
20619 2002-12-31  Paul Eggert  <eggert@twinsun.com>
20620
20621         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
20622
20623 2002-12-31  Paul Eggert  <eggert@twinsun.com>
20624
20625         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
20626         memcmp if strcoll doesn't work.
20627
20628 2002-12-31  Bruno Haible  <bruno@clisp.org>
20629
20630         * lib/utime.c (utime_null): No need to call ftruncate if the file was
20631         nonempty.
20632
20633 2002-12-31  Bruno Haible  <bruno@clisp.org>
20634
20635         * lib/memcoll.c (STRCOLL): New macro.
20636         (memcoll): Use it.
20637
20638 2002-12-31  Bruno Haible  <bruno@clisp.org>
20639
20640         * lib/localcharset.h: New file.
20641         * lib/localcharset.c: Include it.
20642         * lib/unicodeio.c: Likewise.
20643
20644 2002-12-31  Bruno Haible  <bruno@clisp.org>
20645
20646         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
20647         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
20648
20649 2002-12-31  Bruno Haible  <bruno@clisp.org>
20650
20651         * lib/getline.h: Include <stddef.h>, for size_t.
20652
20653         * lib/unicodeio.h: Include <stddef.h>, for size_t.
20654         * lib/unicodeio.c: Don't include <stddef.h>.
20655
20656 2002-12-31  Bruno Haible  <bruno@clisp.org>
20657
20658         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
20659         HAVE_TM_ZONE.
20660
20661 2002-12-24  Karl Berry  <karl@gnu.org>
20662
20663         * config/config.guess: update from prep.
20664
20665 2002-12-24  Bruno Haible  <bruno@clisp.org>
20666
20667         General infrasructure.
20668         * m4/README: Rewritten.
20669         * m4/onceonly.m4: New file.
20670         * m4/onceonly_2_57.m4: New file.
20671
20672         Module atexit.
20673         * m4/atexit.m4: New file.
20674
20675         Module strtod.
20676         * m4/strtod.m4: New file.
20677
20678         Module strtol.
20679         * m4/strtol.m4: New file.
20680
20681         Module strtoul.
20682         * m4/strtoul.m4: New file.
20683
20684         Module memchr.
20685         * m4/memchr.m4: New file.
20686
20687         Module memcmp.
20688         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
20689         (jm_FUNC_MEMCMP): Invoke it.
20690
20691         Module memcpy.
20692         * m4/memcpy.m4: New file.
20693
20694         Module memmove.
20695         * m4/memmove.m4: New file.
20696
20697         Module memset.
20698         * m4/memset.m4: New file.
20699
20700         Module strcspn.
20701         * m4/strcspn.m4: New file.
20702
20703         Module strpbrk.
20704         * m4/strpbrk.m4: New file.
20705
20706         Module strstr.
20707         * m4/strstr.m4: New file.
20708
20709         Module strerror.
20710         * m4/strerror.m4: New file.
20711
20712         Module mktime.
20713         * m4/mktime.m4: Renamed from jm-mktime.m4.
20714         (gl_PREREQ_MKTIME): New macro.
20715         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
20716
20717         Module malloc.
20718         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
20719         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
20720         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
20721
20722         Module realloc.
20723         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
20724         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
20725         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
20726
20727         Module strftime.
20728         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
20729         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
20730         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
20731         gl_TM_GMTOFF.
20732         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
20733
20734         Module xalloc.
20735         * m4/xalloc.m4: New file.
20736
20737         Module alloca.
20738         * m4/alloca.m4: New file.
20739
20740         Module putenv.
20741         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
20742         (jm_FUNC_PUTENV): Invoke it.
20743
20744         Module setenv.
20745         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
20746         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
20747         when invoked twice.
20748         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
20749         gt_FUNC_SETENV.
20750
20751         Module memrchr.
20752         * m4/memrchr.m4: New file.
20753
20754         Module stpcpy.
20755         * m4/stpcpy.m4: New file.
20756
20757         Module strcase.
20758         * m4/strcase.m4: New file.
20759
20760         Module strdup.
20761         * m4/strdup.m4: New file.
20762
20763         Module strnlen.
20764         * m4/strnlen.m4: New file.
20765
20766         Module strndup.
20767         * m4/strndup.m4: New file.
20768
20769         Module xstrtod.
20770         * m4/xstrtod.m4: New file.
20771
20772         Module xstrtol.
20773         * m4/xstrtol.m4: New file.
20774
20775         Module getdate.
20776         * m4/getdate.m4: New file.
20777
20778         Module unlocked-io.
20779         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
20780         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
20781         * m4/jm-glibc-io.m4n: Remove file.
20782
20783         Module long-options.
20784         * m4/long-options.m4: New file.
20785
20786         Module md5.
20787         * m4/md5.m4: New file.
20788
20789         Module sha.
20790         * m4/sha.m4: New file.
20791
20792         Module getstr.
20793         * m4/getstr.m4: New file.
20794
20795         Module getline.
20796         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
20797         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
20798         <sys/types.h>, for size_t. Use the function name gnu_getline, not
20799         simply getline. Infoke gl_PREREQ_GETLINE.
20800
20801         Module obstack.
20802         * m4/obstack.m4: New file.
20803
20804         Module hash.
20805         * m4/hash.m4: New file.
20806
20807         Module readtokens.
20808         * m4/readtokens.m4: New file.
20809
20810         Module strverscmp.
20811         * m4/strverscmp.m4: New file.
20812
20813         Module stdbool.
20814         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
20815         OSF/1.
20816
20817         Module strtoll.
20818         * m4/strtoll.m4: New file.
20819
20820         Module strtoull.
20821         * m4/strtoull.m4: New file.
20822
20823         Module strtoimax.
20824         * m4/strtoimax.m4: New file.
20825
20826         Module strtoumax.
20827         * m4/strtoumax.m4: New file.
20828
20829         Module xstrtoimax.
20830         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
20831         jm_AC_PREREQ_XSTRTOIMAX.
20832         Moved the strtol prerequisites to strtol.m4.
20833         Moved the strtoll prerequisites to strtoll.m4.
20834         Moved the strtoimax prerequisites to strtoimax.m4.
20835
20836         Module xstrtoumax.
20837         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
20838         jm_AC_PREREQ_XSTRTOUMAX.
20839         Moved the strtoul prerequisites to strtoul.m4.
20840         Moved the strtoull prerequisites to strtoull.m4.
20841         Moved the strtoumax prerequisites to strtoumax.m4.
20842
20843         Module chown.
20844         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
20845         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
20846
20847         Module dup2.
20848         * m4/dup2.m4: New file.
20849
20850         Module ftruncate.
20851         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
20852         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
20853
20854         Module getgroups.
20855         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
20856         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
20857
20858         Module gettimeofday.
20859         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
20860         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
20861         gl_PREREQ_GETTIMEOFDAY.
20862
20863         Module mkdir.
20864         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
20865         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
20866
20867         Module mkstemp.
20868         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
20869         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
20870         jm_AC_TYPE_UINTMAX_T.
20871         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
20872
20873         Module stat.
20874         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
20875         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
20876
20877         Module lstat.
20878         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
20879         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
20880
20881         Module timespec.
20882         * m4/timespec.m4 (gl_TIMESPEC): New macro.
20883         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
20884         * m4/st_mtim.m4: Indentation.
20885
20886         Module nanosleep.
20887         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
20888         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
20889         gl_PREREQ_NANOSLEEP.
20890
20891         Module regex.
20892         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
20893         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
20894         (gl_REGEX): New macro.
20895
20896         Module rename.
20897         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
20898         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
20899
20900         Module rmdir.
20901         * m4/rmdir.m4: New file.
20902
20903         Module utime.
20904         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
20905         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
20906         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
20907
20908         Module dirname.
20909         * m4/dirname.m4: New file.
20910
20911         Module getopt.
20912         * m4/getopt.m4: New file.
20913
20914         Module unistd-safer.
20915         * m4/unistd-safer.m4: New file.
20916
20917         Module fnmatch.
20918         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
20919         declaration.
20920         (gl_PREREQ_FNMATCH_EXTRA): New macro.
20921         (gl_FUNC_FNMATCH_POSIX): New macro.
20922         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
20923         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
20924         simply fnmatch.
20925
20926         Module exclude.
20927         * m4/exclude.m4: New file.
20928
20929         Module human.
20930         * m4/human.m4: New file.
20931
20932         Module acl.
20933         * m4/acl.m4: Nop.
20934
20935         Module backupfile.
20936         * m4/backupfile.m4: New file.
20937         * m4/d-ino.m4: Indentation.
20938
20939         Module fsusage.
20940         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
20941         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
20942         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
20943
20944         Module dirfd.
20945         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
20946         requirements.
20947
20948         Module euidaccess.
20949         * m4/euidaccess.m4: New file.
20950
20951         Module file-type.
20952         * m4/file-type.m4: New file.
20953
20954         Module fileblocks.
20955         * m4/fileblocks.m4: New file.
20956
20957         Module filemode.
20958         * m4/filemode.m4: New file.
20959
20960         Module isdir.
20961         * m4/isdir.m4: New file.
20962
20963         Module lchown.
20964         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
20965         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
20966
20967         Module makepath.
20968         * m4/makepath.m4: New file.
20969
20970         Module modechange.
20971         * m4/modechange.m4: New file.
20972
20973         Module mountlist.
20974         * m4/mountlist.m4: New file.
20975         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
20976         Indentation.
20977
20978         Module path-concat.
20979         * m4/path-concat.m4: New file.
20980
20981         Module pathmax.
20982         * m4/pathmax.m4: New file.
20983
20984         Module same.
20985         * m4/same.m4: New file.
20986
20987         Module save-cwd.
20988         * m4/save-cwd.m4: New file.
20989
20990         Module savedir.
20991         * m4/savedir.m4: New file.
20992
20993         Module xgetcwd.
20994         * m4/xgetcwd.m4: New file.
20995         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
20996
20997         Module xreadlink.
20998         * m4/xreadlink.m4: New file.
20999
21000         Module safe-read.
21001         * m4/safe-read.m4: New file.
21002
21003         Module safe-write.
21004         * m4/safe-write.m4: New file.
21005
21006         Module closeout.
21007         * m4/closeout.m4: New file.
21008
21009         Module stdio-safer.
21010         * m4/stdio-safer.m4: New file.
21011
21012         Module getpass.
21013         * m4/getpass.m4: New file.
21014
21015         Module getugroups.
21016         * m4/getugroups.m4: New file.
21017
21018         Module group-member.
21019         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
21020         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
21021
21022         Module idcache.
21023         * m4/idcache.m4: New file.
21024
21025         Module userspec.
21026         * m4/userspec.m4: New file.
21027
21028         Module gettime.
21029         * m4/clock_time.m4: New file.
21030         * m4/gettime.m4: New file.
21031
21032         Module settime.
21033         * m4/settime.m4: New file.
21034
21035         Module posixtm.
21036         * m4/posixtm.m4: New file.
21037
21038         Module gethostname.
21039         * m4/gethostname.m4: New file.
21040
21041         Module canon-host.
21042         * m4/canon-host.m4: New file.
21043
21044         Module gettext.
21045         * m4/codeset.m4: New file, from gettext-0.11.5.
21046         * m4/gettext.m4: New file, from gettext-0.11.5.
21047         * m4/glibc21.m4: New file, from gettext-0.11.5.
21048         * m4/iconv.m4: New file, from gettext-0.11.5.
21049         * m4/intdiv0.m4: New file, from gettext-0.11.5.
21050         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
21051         * m4/inttypes.m4: New file, from gettext-0.11.5.
21052         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
21053         * m4/isc-posix.m4: New file, from gettext-0.11.5.
21054         * m4/lcmessage.m4: New file, from gettext-0.11.5.
21055         * m4/lib-ld.m4: New file, from gettext-0.11.5.
21056         * m4/lib-link.m4: New file, from gettext-0.11.5.
21057         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
21058         * m4/progtest.m4: New file, from gettext-0.11.5.
21059         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
21060         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
21061         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
21062
21063         Module localcharset.
21064         * m4/localcharset.m4: New file.
21065
21066         Module hard-locale.
21067         * m4/hard-locale.m4: New file.
21068
21069         Module mbswidth.
21070         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
21071         onceonly macros.
21072         * m4/mbrtowc.m4: Add comment.
21073
21074         Module memcasecmp.
21075         * m4/memcasecmp.m4: New file.
21076
21077         Module memcoll.
21078         * m4/memcoll.m4: New file.
21079
21080         Module unicodeio.
21081         * m4/unicodeio.m4: New file.
21082
21083         Module rpmatch.
21084         * m4/rpmatch.m4: New file.
21085
21086         Module yesno.
21087         * m4/yesno.m4: New file.
21088
21089         Module exitfail.
21090         * m4/exitfail.m4: New file.
21091
21092         Module c-stack.
21093         * m4/c-stack.m4 (gl_C_STACK): New macro.
21094         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
21095
21096         Module error.
21097         * m4/error.m4 (gl_ERROR): New macro.
21098         (jm_PREREQ_ERROR): Use onceonly macros.
21099
21100         Module fatal.
21101         * m4/fatal.m4: New file.
21102
21103         Module getloadavg.
21104         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
21105         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
21106
21107         Module getpagesize.
21108         * m4/getpagesize.m4: New file.
21109
21110         Module getusershell.
21111         * m4/getusershell.m4: New file.
21112
21113         Module physmem.
21114         * m4/physmem.m4: New file.
21115
21116         Module posixver.
21117         * m4/posixver.m4: New file.
21118
21119         Module quotearg.
21120         * m4/quotearg.m4: New file.
21121
21122         Module quote.
21123         * m4/quote.m4: New file.
21124
21125         Module readutmp.
21126         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
21127
21128         Module sig2str.
21129         * m4/sig2str.m4: New file.
21130
21131         Other.
21132         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
21133         ulonglong.m4.
21134         * m4/intmax_t.m4: New file.
21135         * m4/d-type.m4: Indentation.
21136         * m4/jm-macros.m4: Update.
21137         * m4/prereq.m4 (jm_PREREQ): Update.
21138         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
21139         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
21140         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
21141         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
21142         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
21143         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
21144         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
21145         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
21146         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
21147         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
21148         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
21149         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
21150         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
21151         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
21152         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
21153         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
21154         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
21155         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
21156         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
21157
21158 2002-12-24  Bruno Haible  <bruno@clisp.org>
21159
21160         * MODULES.txt: Update according to m4/ changes.
21161
21162         Module gettext.
21163         * config.rpath: New file, from gettext-0.11.5.
21164
21165         * modules/*: New module descriptions.
21166         * gnulib-tool: New file.
21167         * MODULES.html.sh: New file.
21168
21169 2002-12-21  Karl Berry  <karl@gnu.org>
21170
21171         * doc/fdl.texi: update to version 1.2.
21172
21173 2002-12-19  Karl Berry  <karl@gnu.org>
21174
21175         * config/config.guess: update from prep.
21176
21177 2002-12-18  Bruno Haible  <bruno@clisp.org>
21178
21179         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
21180         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
21181
21182 2002-12-17  Bruno Haible  <bruno@clisp.org>
21183
21184         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
21185         stdlib.h, string.h.
21186
21187 2002-12-17  Bruno Haible  <bruno@clisp.org>
21188
21189         * lib/canon-host.c (strdup): Remove unused declaration.
21190
21191         * lib/fsusage.c: Include full_read.h.
21192         (get_fs_usage): Use full_read instead of safe_read.
21193
21194         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
21195
21196 2002-12-12  Karl Berry  <karl@gnu.org>
21197
21198         * config/config.guess: update from prep.
21199
21200 2002-12-11  Bruno Haible  <bruno@clisp.org>
21201
21202         * m4/setenv.m4: New file, from gettext-0.11.5.
21203
21204 2002-12-11  Bruno Haible  <bruno@clisp.org>
21205
21206         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
21207         not unsetenv().
21208         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
21209         modifications:
21210
21211         2002-12-11  Bruno Haible  <bruno@clisp.org>
21212
21213                 * setenv.c (alloca): Fall back to malloc.
21214                 (freea): New macro.
21215                 (setenv): Use freea() to free memory allocated with alloca().
21216
21217         2002-11-13  Bruno Haible  <bruno@clisp.org>
21218
21219                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
21220                 function declarations.
21221                 * unsetenv.c (unsetenv): Likewise.
21222
21223         2002-03-04  Bruno Haible  <bruno@clisp.org>
21224
21225                 Portability to AIX 4.3.3.
21226                 * unsetenv.c: New file, extracted from setenv.c.
21227                 * setenv.c: Move the unsetenv() function to unsetenv.c.
21228
21229         2001-12-20  Bruno Haible  <bruno@clisp.org>
21230
21231                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
21232                 use malloc instead. For SunOS 4.
21233
21234         2001-12-11  Bruno Haible  <bruno@clisp.org>
21235
21236                 * setenv.c: Declare alloca.
21237                 (compar_fn_t): New typedef.
21238                 (KNOWN_VALUE, STORE_VALUE): Use it.
21239
21240         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
21241         setenv.h.
21242
21243 2002-12-10  Paul Eggert  <eggert@twinsun.com>
21244
21245         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
21246         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
21247         Choose values that are less likely to collide with system fnmatch
21248         options.
21249         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
21250         defined (e.g., a pure POSIX system).
21251         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
21252         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
21253
21254 2002-12-06  Paul Eggert  <eggert@twinsun.com>
21255
21256         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
21257         a pain in practice to deal with generated m4 files.  This change
21258         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
21259
21260         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
21261         and jm-glibc-io.m4, as they are no longer a special case.
21262         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
21263         kludge and the auto-generation stuff.  Check only whether the
21264         functions are declared, not whether they exist, since older hosts
21265         that don't declare the functions can't use the optimization anyway.
21266
21267 2002-12-06  Jim Meyering  <jim@meyering.net>
21268
21269         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
21270
21271         Merge in changes from libc's misc/error.c, in preparation
21272         for the merge of gnulib's changes back into libc.
21273
21274         * lib/error.c (_): Define only if not already defined.
21275         Move definition to follow all #include directives.
21276         Include unlocked-io.h only if !_LIBC.
21277         [_LIBC]: Include <libio/libioP.h>.
21278         [USE_IN_LIBIO]: Include <libio/iolibio.h>
21279         (fflush): Tweak definition to use INTUSE.
21280         (putc): Define.
21281
21282 2002-12-05  Paul Eggert  <eggert@twinsun.com>
21283
21284         * lib/alloca.c [defined emacs]: Include "lisp.h".
21285         (xalloc_die) [defined emacs]: New macro.
21286         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
21287         [! defined emacs]: Include <xalloc.h>.
21288         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
21289         (pointer): Typedef to POINTER_TYPE *.
21290         (malloc): Remove decl; we now always use xmalloc.
21291         (alloca): Use old-style definition, since Emacs needs this.
21292         Check for arithmetic overflow when computing combined size.
21293
21294 2002-12-04  Paul Eggert  <eggert@twinsun.com>
21295
21296         Do not generate unlocked-io.h automatically, since it's easier to
21297         maintain it by hand.
21298
21299         * lib/unlocked-io.h: New file, from GNU diffutils,
21300         but with proper copyright notice and attribution.
21301         * lib/gen-uio: Remove.
21302         * lib/Makefile.am: Add copyright notice.
21303         (libfetish_a_SOURCES): Add unlocked-io.h.
21304         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
21305         (DISTCLEANFILES, io_functions): Remove macros.
21306         (EXTRA_DIST): Remove gen_uio.
21307         (unlocked-io.h): Remove rule.
21308
21309 2002-12-04  Jim Meyering  <jim@meyering.net>
21310
21311         Reflect the fact that stat.c and lstat.c are no longer generated.
21312         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
21313         (DISTCLEANFILES): Likewise.
21314         (EXTRA_DIST): Likewise.
21315         (all_local): Don't depend on stat.c or lstat.c.
21316         (stat.c, lstat.c): Remove rules.
21317         (EXTRA_DIST): Remove xstat.in.
21318
21319         * lib/xstat.in: Remove file.  Contents moved into stat.c.
21320         * lib/stat.c: New file.  Contents mostly from xstat.in.
21321         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
21322         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
21323
21324         * lib/safe-read.c: Rework so that it may serve to define safe_write,
21325         too.
21326         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
21327
21328 2002-12-03  Jim Meyering  <jim@meyering.net>
21329
21330         * lib/safe-read.c, safe-write.c: Change variable names and comments,
21331         but not semantics, to minimize the differences between these two files.
21332         (safe_read): Change comment to mention SAFE_READ_ERROR.
21333
21334         * lib/safe-read.c (IS_EINTR): Define.
21335         (safe_read): Use IS_EINTR in place of in-function cpp directives.
21336
21337 2002-12-02  Jim Meyering  <jim@meyering.net>
21338
21339         * lib/safe-read.c (EINTR): Define.
21340         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
21341         (INT_MAX): Provide fallback.
21342         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
21343
21344         * lib/safe-read.h (SAFE_READ_ERROR): Define.
21345
21346 2002-12-02  Bruno Haible  <bruno@clisp.org>
21347
21348         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
21349         Define, taken from safe-read.c.
21350         (INT_MAX): Provide fallback.
21351         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
21352         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
21353
21354         * lib/safe-read.c (EINTR): Remove definition.
21355         (safe_read): Don't use EINTR if it is absent.
21356
21357 2002-12-01  Jim Meyering  <jim@meyering.net>
21358
21359         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
21360         zero.
21361         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
21362
21363 2002-11-27  Paul Eggert  <eggert@twinsun.com>
21364
21365         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
21366         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
21367         with `if (! (value < limit)) abort ();', for readability.
21368
21369 2002-11-26  Karl Berry  <karl@gnu.org>
21370
21371         * lib/strdup.c: copy from libc again, with jim's ok.
21372         * lib/.cppi-disable: re-add strdup.c
21373
21374 2002-11-25  Karl Berry  <karl@gnu.org>
21375
21376         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
21377         instead of "strtol.c".
21378
21379 2002-11-25  Karl Berry  <karl@gnu.org>
21380
21381         * config/install-sh: update from automake for variable quoting, $0 in
21382         error msgs, etc.
21383
21384         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
21385         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
21386         entry.
21387
21388 2002-11-25  Jim Meyering  <jim@meyering.net>
21389
21390         * lib/mktime.c: Sync from libc, now that it has the latest fix.
21391
21392 2002-11-24  Karl Berry  <karl@gnu.org>
21393
21394         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
21395         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
21396
21397 2002-11-24  Jim Meyering  <jim@meyering.net>
21398
21399         Update from coreutils:
21400
21401         * lib/mktime.c: Merge in changes from libc.
21402
21403         Avoid a link-time failure on some Linux systems.
21404         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
21405         (otherwise).
21406         (__mon_yday): Declare with the STATIC attribute.
21407         (__mktime_internal): Likewise.
21408         Based on a report from Greg Schafer.
21409
21410 2002-11-23  Jim Meyering  <jim@meyering.net>
21411
21412         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
21413         Use `unsigned', not `int', as type of index.
21414
21415         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
21416
21417         * lib/fsusage.c: Remove unneeded parentheses around operands of
21418         `defined'.
21419
21420 2002-11-22  Paul Eggert  <eggert@twinsun.com>
21421
21422         * lib/quotearg.h: Allow multiple inclusion by surrounding with
21423         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
21424         so that we can be included first.
21425         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
21426         * lib/quotearg.c: Include quotearg.h immediately after config.h.
21427         No need to include stddef.h or sys/types.h any more.
21428         Surround local include files with "", not "<>".
21429         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
21430         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
21431         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
21432         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
21433         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
21434         (ISPRINT): Remove; no longer needed now that we assume C89.
21435
21436         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
21437         Preserve errno.
21438
21439         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
21440         quotearg_char): Use SIZE_MAX rather than
21441         (size_t) -1 when we are talking about "infinity".
21442
21443         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
21444
21445 2002-11-22  Paul Eggert  <eggert@twinsun.com>
21446
21447         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
21448         hint that one should use `if (! x) abort ();' rather than `assert
21449         (x);', and anyway it's one less thing to worry about configuring.
21450         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
21451         hash_rehash, hash_insert): Use abort rather than assert.
21452
21453 2002-11-22  Bruno Haible  <bruno@clisp.org>
21454
21455         * lib/safe-read.h: Assume C89. Add comments.
21456         (safe_read): Change return type to size_t.
21457         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
21458         byte counts > SSIZE_MAX correctly.
21459         * lib/safe-write.h: New file.
21460         * lib/safe-write.c: New file.
21461         * lib/full-read.h: New file.
21462         * lib/full-read.c: New file.
21463         * lib/full-write.h: Assume C89. Add comments.
21464         * lib/full-write.c: Include safe-write.h.
21465         (full_write): Rewritten to use safe_write.
21466         Suggested by Jim Meyering and Paul Eggert.
21467
21468 2002-11-21  Jim Meyering  <jim@meyering.net>
21469
21470         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
21471
21472         Merge in changes from the coreutils.
21473
21474         2002-09-25  Paul Eggert  <eggert@twinsun.com>
21475         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
21476         <stdint.h>.
21477         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
21478         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
21479         int.  Work more efficiently if X is the same width as uintmax_t.
21480         Do not compare X to -1, to avoid bogus compiler warning.
21481         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
21482         Don't assume that f_frsize and f_bsize are the same type.
21483
21484         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
21485         warning on FreeBSD.
21486
21487         * lib/makepath.c (make_path): Restore umask *before* creating the final
21488         component.
21489         (make_path): Minor reformatting.
21490
21491         * lib/xmalloc.c: Adjust to work with new autoconf macros,
21492         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
21493         HAVE_MALLOC/HAVE_REALLOC.
21494
21495         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
21496         dummy ones.  At least on GNU/Linux systems, `auto' means something
21497         else.
21498         From Michael Stone.
21499
21500 2002-11-21  Bruno Haible  <bruno@clisp.org>
21501
21502         Remove case insensitive option matching.
21503         * lib/argmatch.h (argcasematch): Remove declaration.
21504         (ARGCASEMATCH): Remove macro.
21505         (__xargmatch_internal): Remove case_sensitive argument.
21506         (XARGMATCH): Update.
21507         (XARGCASEMATCH): Remove macro.
21508         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
21509         case_sensitive argument.
21510         (argcasematch): Remove function.
21511         (__xargmatch_internal): Remove case_sensitive argument.
21512         (main): Use XARGMATCH instead of XARGCASEMATCH.
21513
21514         * lib/xmalloc.c: Change compile-time error message. Add comment about
21515         required autoconf version.
21516
21517 2002-11-20  Paul Eggert  <eggert@twinsun.com>
21518
21519         Merge argmatch cleanups from Bison.  Assume C89.
21520
21521         * lib/argmatch.c: Include config.h here, not in argmatch.h.
21522         Include stdlib.h, for EXIT_FAILURE.
21523         Always include <string.h>, since we assume C89.
21524         (EXIT_FAILURE): Remove pre-C89 bug workaround.
21525         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
21526         Include <stddef.h> instead, since it's all we need for size_t.
21527         (PARAMS): Remove.  All uses removed.
21528         (ARRAY_CARDINALITY): Do not bother to #undef.
21529         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
21530         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
21531         Remove unnecessary parentheses.
21532         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
21533         Insert necessary parentheses.
21534         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
21535         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
21536
21537 2002-11-19  Bruno Haible  <bruno@clisp.org>
21538
21539         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
21540         * lib/mbswidth.h: Include <stddef.h>, for size_t.
21541
21542         * lib/mbswidth.h (PARAMS): Remove macro.
21543         (mbswidth, mbsnwidth): Use ANSI C function declarations.
21544         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
21545
21546         * lib/gcd.h (PARAMS): Remove macro.
21547         (gcd): Use ANSI C function declarations.
21548         * lib/gcd.c (gcd): Likewise.
21549
21550 2002-11-15  Bruno Haible  <bruno@clisp.org>
21551
21552         * lib/strcspn.c: Include <stddef.h>.
21553         (strcspn): Use ANSI C function declaration. Change return type to
21554         size_t. Use NULL.
21555         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
21556         (strpbrk): Use NULL.
21557         * lib/strpbrk.h (PARAMS): Remove macro.
21558         (strpbrk): Use ANSI C function declaration.
21559         * lib/strstr.c: Don't include <sys/types.h>.
21560         * lib/strstr.h (PARAMS): Remove macro.
21561         (strstr): Use ANSI C function declarations.
21562
21563 2002-11-14  Karl Berry  <karl@gnu.org>
21564
21565         * config/mkinstalldirs: `do' on separate line, instead of
21566         `for var; do'.
21567
21568 2002-11-06  Bruno Haible  <bruno@clisp.org>
21569
21570         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
21571         * lib/gcd.c (gcd): Likewise.
21572
21573 2002-11-05  Bruno Haible  <bruno@clisp.org>
21574
21575         * lib/gcd.h: New file, from gettext-0.11.5.
21576         * lib/gcd.c: New file, from gettext-0.11.5.
21577
21578 2002-11-05  Bruno Haible  <bruno@clisp.org>
21579
21580         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
21581         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
21582         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
21583         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
21584
21585         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
21586         <libintl.h>.
21587         * lib/makepath.c: Include gettext.h instead of <locale.h> and
21588         <libintl.h>.
21589
21590         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
21591         * lib/human.c: Include gettext.h instead of <libintl.h>.
21592         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
21593         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
21594         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
21595         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
21596         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
21597         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
21598         (textdomain): Remove definition.
21599         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
21600
21601         * lib/long-options.c: Remove include of <libintl.h> and definition of
21602         _.
21603         * lib/same.c: Remove include of <libintl.h> and definition of _.
21604
21605 2002-11-04  Owen Taylor  <otaylor@redhat.com>
21606
21607         * lib/config.charset: A few additions for Solaris.
21608
21609 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
21610
21611         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
21612         * lib/localcharset.c (locale_charset): Declare as extern "C".
21613
21614 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
21615
21616         * lib/config.charset: msdos in uk_UA uses CP1125.
21617
21618 2002-11-04  Bruno Haible  <bruno@clisp.org>
21619
21620         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
21621         * lib/strcase.h: New file, from GNU gettext-0.11.5.
21622         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
21623         * lib/strstr.h: New file, from GNU gettext-0.11.5.
21624         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
21625
21626 2002-11-04  Bruno Haible  <bruno@clisp.org>
21627
21628         * lib/localcharset.c (locale_charset): Don't return an empty string.
21629
21630 2002-11-04  Bruno Haible  <bruno@clisp.org>
21631
21632         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
21633         aliases.
21634
21635 2002-11-04  Bruno Haible  <bruno@clisp.org>
21636
21637         * lib/config.charset: Update for newest glibc. Add canonical names
21638         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
21639
21640 2002-11-04  Bruno Haible  <bruno@clisp.org>
21641
21642         * lib/config.charset: Add support for NetBSD.
21643
21644 2002-11-04  Bruno Haible  <bruno@clisp.org>
21645
21646         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
21647
21648 2002-11-01  Bruno Haible  <bruno@clisp.org>
21649
21650         * configure.in: Add AC_CONFIG_AUX_DIR call.
21651         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
21652         test/Makefile.
21653         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
21654
21655 2002-09-28  Karl Berry  <karl@gnu.org>
21656
21657         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
21658         installed automake until the next release, since changes have been
21659         made.
21660
21661 2002-09-25  Karl Berry  <karl@gnu.org>
21662
21663         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
21664         * lib/getopt*: copy from libc/posix.
21665         * lib/gettext.h: copy from gettext.
21666         * lib/.cppi-disable: add strdup.c, gettext.h.
21667
21668 2002-09-25  Karl Berry  <karl@gnu.org>
21669
21670         * config/srclist.txt: enable gettext.h check.
21671         * config/config.{guess,sub}: update from prep.
21672         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
21673                 from automake 1.6.3.
21674         See srclist*.
21675
21676 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
21677
21678         * regex.c (PATFETCH): Remove the translating fetch.
21679         (PATFETCH_RAW): Rename to PATFETCH.
21680         (set_image_of_range): New fun.
21681         (SET_RANGE_TABLE_WORK_AREA): Use it.
21682         (regex_compile): Don't translate the pattern chars so eagerly.
21683         Only do it when inserting an `exactn' bytecode or when handling
21684         a char-range.
21685         (mutually_exclusive_p): Avoid empty statement.
21686
21687 2002-07-06  Jim Meyering  <meyering@lucent.com>
21688
21689         * m4/README: Don't mention Makefile.am.in.
21690         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
21691
21692 2002-07-01  Jim Meyering  <meyering@lucent.com>
21693
21694         * lib/c-stack.c: Include sys/time.h.
21695         From Volker Borchert.
21696
21697 2002-06-26  Paul Eggert  <eggert@twinsun.com>
21698
21699         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
21700
21701 2002-06-26  Paul Eggert  <eggert@twinsun.com>
21702
21703         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
21704         New macro.  Use it uniformly instead of
21705         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
21706         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
21707         reported by Vin Shelton.
21708
21709 2002-06-22  Paul Eggert  <eggert@twinsun.com>
21710
21711         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
21712         Do not assume SA_SIGINFO behavior.
21713         Bug reported by Jim Meyering on NetBSD 1.5.2.
21714
21715 2002-06-22  Jim Meyering  <meyering@lucent.com>
21716
21717         * m4/c-stack.m4: New file, from diffutils-2.8.2.
21718         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
21719
21720         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
21721         now that configure.ac uses AC_GNU_SOURCE.
21722         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
21723         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
21724
21725         Update to latest tools.  Suggestions from Paul Eggert.
21726         * m4/stdbool.m4: New file, from diffutils-2.8.2.
21727         * m4/gnu-source.m4: Update from diffutils-2.8.2.
21728         * m4/fnmatch.m4: Likewise.
21729         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
21730         to AC_HEADER_STDBOOL
21731
21732 2002-06-22  Jim Meyering  <meyering@lucent.com>
21733
21734         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
21735         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
21736
21737 2002-06-22  Jim Meyering  <meyering@lucent.com>
21738
21739         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
21740
21741         * lib/exitfail.c, exitfail.h: Likewise.
21742         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
21743
21744         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
21745         of fnmatch.h.
21746         (EXTRA_DIST): Add fnmatch_loop.c.
21747         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
21748
21749         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
21750         * lib/fnmatch.c: Update from diffutils-2.8.2.
21751         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
21752         * lib/fnmatch.h: Remove file.
21753
21754 2002-06-21  Jim Meyering  <meyering@lucent.com>
21755
21756         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
21757         * m4/mbrtowc.m4: Likewise.
21758
21759         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
21760         * m4/mbswidth.m4: Reflect name change:
21761         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
21762         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
21763
21764         * m4/lib-link.m4: Update from gettext-0.11.2.
21765         * m4/gettext.m4: Likewise.
21766
21767         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
21768         From Alfred M. Szmidt.
21769
21770 2002-06-18  Paul Eggert  <eggert@twinsun.com>
21771
21772         * lib/file-type.h: Report an error if neither S_ISREG nor
21773         S_IFREG is defined, instead of using a test specific to glibc
21774         2.2.  This should be safe, since POSIX requires S_ISREG and
21775         Unix Version 7 had S_IFREG.  We don't need to check for
21776         <sys/types.h> since we don't use any symbols that it defines.
21777
21778 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
21779
21780         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
21781         $@-t, so that each temporary file name is unique and valid in the first
21782         8 characters, for operation under DOS.
21783
21784 2002-06-15  Paul Eggert  <eggert@twinsun.com>
21785
21786         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
21787
21788 2002-06-15  Jim Meyering  <meyering@lucent.com>
21789
21790         Work even with DJGPP 2.03, which lacks support for symlinks.
21791         From Richard Dawe.
21792         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
21793         is defined.
21794         * lib/lchown.c (S_ISLNK): Likewise.
21795
21796 2002-06-15  Jim Meyering  <meyering@lucent.com>
21797
21798         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
21799         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
21800         have been included before this file.
21801
21802 2002-06-14  Jim Meyering  <meyering@lucent.com>
21803
21804         * lib/file-type.h: Use the version from diffutils-2.8.2.
21805         * lib/file-type.c: Likewise.
21806
21807 2002-06-07  Jim Meyering  <meyering@lucent.com>
21808
21809         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
21810         They're needed at least for NetBSD 1.5.2.
21811         ($statxfs_includes): Include those same headers.
21812         ($statxfs_includes): Include sys/vfs.h if available.
21813         ($statxfs_includes): Likewise for sys/statvfs.h.
21814         Check for the following members in both structs statfs and statvfs:
21815         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
21816
21817 2002-06-01  Jim Meyering  <meyering@lucent.com>
21818
21819         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
21820         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
21821
21822 2002-05-28  Jim Meyering  <meyering@lucent.com>
21823
21824         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
21825         Reported by Volker Borchert.
21826
21827 2002-05-27  Jim Meyering  <meyering@lucent.com>
21828
21829         Fix a problem seen only on nonconforming systems whereby ls.c's
21830         use of localtime, and then of gettimeofday would cause trouble:
21831         the localtime call used to initialize rpl_gettimeofday's save
21832         mechanism would clobber ls's current local time information so
21833         that in any long listing the first file would always be listed
21834         with date 1970-01-01.  Analysis by Volker Borchert.
21835
21836         * lib/gettimeofday.c (localtime): Undefine.
21837         (rpl_localtime): New function.
21838
21839 2002-05-27  Jim Meyering  <meyering@lucent.com>
21840
21841         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
21842         localtime.
21843
21844         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
21845         use the replacement function; it wouldn't resolve at link time.
21846         Reported by Volker Borchert.
21847
21848 2002-05-22  Jim Meyering  <meyering@lucent.com>
21849
21850         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
21851         file-type.h.
21852         * lib/file-type.h: New file.
21853         * lib/file-type.c (file_type): New file/function.  Extracted from
21854         diffutils.
21855
21856 2002-04-30  Jim Meyering  <meyering@lucent.com>
21857
21858         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
21859
21860 2002-04-29  Paul Eggert  <eggert@twinsun.com>
21861
21862         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
21863
21864 2002-04-29  Paul Eggert  <eggert@twinsun.com>
21865
21866         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
21867         Do not check for alloca.h (no longer used) or stdbool.h (was never
21868         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
21869
21870 2002-04-29  Paul Eggert  <eggert@twinsun.com>
21871
21872         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
21873
21874 2002-04-29  Jim Meyering  <meyering@lucent.com>
21875
21876         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
21877         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
21878         Use AC_FUNC_STRNLEN here instead.
21879
21880         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
21881         With autoconf-2.53a, it's part of AC_PROG_CC.
21882
21883 2002-04-28  Paul Eggert  <eggert@twinsun.com>
21884
21885         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
21886         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
21887
21888 2002-04-28  Paul Eggert  <eggert@twinsun.com>
21889
21890         * lib/sig2str.h, lib/sig2str.c: New files.
21891         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
21892
21893 2002-04-28  Paul Eggert  <eggert@twinsun.com>
21894
21895         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
21896         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
21897         of 127, since 64 is the largest conceivable number for ancient
21898         nonstandard hosts.
21899         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
21900
21901 2002-04-28  Jim Meyering  <meyering@lucent.com>
21902
21903         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
21904
21905 2002-04-24  Jim Meyering  <meyering@lucent.com>
21906
21907         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
21908         (jm_PREREQ): Use it.
21909
21910         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
21911         mach/mach.h fcntl.h.
21912         Check for this function: setlocale.
21913
21914 2002-04-24  Jim Meyering  <meyering@lucent.com>
21915
21916         * lib/gettext.h: New file, from Gettext.
21917         * lib/Makefile.am (INCLUDES): Remove -I../intl.
21918         (libfetish_a_SOURCES): Add gettext.h.
21919
21920 2002-04-16  Jim Meyering  <meyering@lucent.com>
21921
21922         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
21923         ut_pid, ut_id, ut_exit.
21924
21925 2002-04-16  Jim Meyering  <meyering@lucent.com>
21926
21927         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
21928         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
21929         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
21930
21931 2002-04-12  Jim Meyering  <meyering@lucent.com>
21932
21933         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
21934         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
21935         existence of the getmntinfo function.  Needed for Darwin 5.3.
21936
21937         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
21938         This is necessary at least on Darwin 5.3.
21939
21940         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
21941         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
21942         strnlen.o in the library, and that makes some versions of ranlib
21943         object.
21944
21945 2002-04-12  Jim Meyering  <meyering@lucent.com>
21946
21947         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
21948
21949 2002-04-09  Jim Meyering  <meyering@lucent.com>
21950
21951         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
21952         to be more precise.  Rather than saying we're checking whether the
21953         function `works', say what we're testing.
21954         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
21955         Reported by Bruno Haible.
21956
21957 2002-03-10  Jim Meyering  <meyering@lucent.com>
21958
21959         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
21960         Suggestion from Santiago Vila.
21961
21962 2002-03-08  Jim Meyering  <meyering@lucent.com>
21963
21964         * lib/rename.c: Mention that this wrapper is needed also on
21965         mips-dec-ultrix4.4 systems.
21966
21967 2002-03-02  Jim Meyering  <meyering@lucent.com>
21968
21969         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
21970         not HAVE_CLOCK_SETTIME.
21971
21972 2002-02-27  Paul Eggert  <eggert@twinsun.com>
21973
21974         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
21975         Check for clock_settime.
21976
21977 2002-02-27  Paul Eggert  <eggert@twinsun.com>
21978
21979         * lib/nanosleep.h: Rename to....
21980         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
21981
21982         * lib/gettime.c: New file.
21983         * lib/settime.c: New file.
21984         * lib/stime.c: Remove.
21985
21986         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
21987         timespec.h.  Remove nanosleep.h.
21988
21989 2002-02-25  Paul Eggert  <eggert@twinsun.com>
21990
21991         * m4/acl.m4: New file.
21992         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
21993         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
21994
21995 2002-02-25  Paul Eggert  <eggert@twinsun.com>
21996
21997         * lib/acl.c, lib/acl.h: New files.
21998         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
21999
22000 2002-02-24  Jim Meyering  <meyering@lucent.com>
22001
22002         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
22003         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
22004         cause trouble.  Reported by Nelson Beebe.
22005
22006 2002-02-23  Paul Eggert  <eggert@twinsun.com>
22007
22008         * lib/path-concat.c (xpath_concat): Reorder code to pacify
22009         compilers that don't know that xalloc_die never returns.
22010
22011 2002-02-20  Jim Meyering  <meyering@lucent.com>
22012
22013         * lib/getdate.c: Regenerate using bison-1.33.
22014
22015 2002-02-17  Jim Meyering  <meyering@lucent.com>
22016
22017         * config/config.guess (main): Don't use `head -1'; it's no longer
22018         portable. Use `sed 1q' instead.
22019
22020 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
22021
22022         * m4/codeset.m4: Upgrade to gettext-0.11.
22023         * m4/gettext.m4: Upgrade to gettext-0.11.
22024         * m4/glibc21.m4: Upgrade to gettext-0.11.
22025         * m4/iconv.m4: Upgrade to gettext-0.11.
22026         * m4/isc-posix.m4: Upgrade to gettext-0.11.
22027         * m4/lcmessage.m4: Upgrade to gettext-0.11.
22028         * m4/lib-ld.m4: New file, from gettext-0.11.
22029         * m4/lib-link.m4: New file, from gettext-0.11.
22030         * m4/lib-prefix.m4: New file, from gettext-0.11.
22031         * m4/progtest.m4: Upgrade to gettext-0.11.
22032
22033 2002-02-15  Paul Eggert  <eggert@twinsun.com>
22034
22035         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
22036         (jm_PREREQ): Use it.
22037
22038 2002-02-15  Paul Eggert  <eggert@twinsun.com>
22039
22040         * lib/posixver.c, lib/posixver.h: New files.
22041         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
22042
22043 2002-02-02  Paul Eggert  <eggert@twinsun.com>
22044             Bruno Haible  <bruno@clisp.org>
22045
22046         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
22047         (fwrite_success_callback): New declaration.
22048         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
22049         print_unicode_char. Call failure callback instead of error.
22050         (fwrite_success_callback): New function.
22051         (exit_failure_callback): New function.
22052         (fallback_failure_callback): New function.
22053         (print_unicode_char): Call unicode_to_mb.
22054
22055 2002-01-26  Jim Meyering  <meyering@lucent.com>
22056
22057         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
22058         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
22059
22060 2002-01-26  Jim Meyering  <meyering@lucent.com>
22061
22062         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
22063
22064 2002-01-22  Paul Eggert  <eggert@twinsun.com>
22065
22066         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
22067
22068 2002-01-22  Jim Meyering  <meyering@lucent.com>
22069
22070         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
22071         Otherwise, some versions of automake would omit the rule that makes
22072         Makefile from Makefile.in.
22073
22074 2002-01-21  Paul Eggert  <eggert@twinsun.com>
22075
22076         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
22077         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
22078         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
22079         (memcoll): Set errno to zero if there is no error.
22080
22081         * lib/quotearg.c (quotearg_buffer_restyled):
22082         Fix bug with quoting buffers containing NUL when backslashing escapes.
22083         This bug was exposed by the other changes in this patch.
22084         (quotearg_n_options): New arg ARGSIZE.
22085         All callers changed.
22086         (quoting_options_from_style): New function.
22087         (quotearg_n_style): Use it.
22088         (quotearg_n_style_mem): New function.
22089
22090         * lib/quotearg.h (quotearg_n_style_mem): New function.
22091
22092 2002-01-19  Jim Meyering  <meyering@lucent.com>
22093
22094         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
22095         Remove useless quotes: DF_PROG="df".
22096         * m4/strnlen.m4: New file.
22097
22098 2002-01-16  Paul Eggert  <eggert@twinsun.com>
22099
22100         * lib/backupfile.c (ISDIGIT): Comment fix.
22101         * lib/getdate.y (ISDIGIT): Likewise.
22102         * lib/posixtm.c (ISDIGIT, year): Likewise.
22103         * lib/strverscmp.c (ISDIGIT): Likewise.
22104         * lib/userspec.c (ISDIGIT): Likewise.
22105
22106 2002-01-16  Jim Meyering  <meyering@lucent.com>
22107
22108         * lib/getdate.y: Add three semicolons, each just before a closing
22109         brace. Bison (as of version 1.31) no longer papers over that mistake.
22110
22111 2002-01-05  Jim Meyering  <meyering@lucent.com>
22112
22113         * lib/version-etc.c (version_etc_copyright): Update copyright year.
22114
22115 2001-12-19  Paul Eggert  <eggert@twinsun.com>
22116
22117         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
22118         not silently exit merely because the output buffer happens to
22119         have nothing pending.
22120
22121 2001-12-18  Paul Eggert  <eggert@twinsun.com>
22122
22123         See the big note in ../ChangeLog.
22124         * lib/human.c (suffixes): Prefer K to k for 1024.
22125         (generate_suffix_backwards): New function.
22126         (human_readable_inexact): Use it.
22127         * lib/xstrtol.c (__xstrtol): If there is no number but there
22128         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
22129         Accept 'K' as well as 'k'.
22130
22131 2001-12-15  Jim Meyering  <meyering@lucent.com>
22132
22133         * lib/regex.h (__restrict_arr): Update from libc.
22134
22135         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
22136         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
22137         (STREQ): Define.
22138
22139 2001-12-14  Jim Meyering  <meyering@lucent.com>
22140
22141         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
22142         Suggestion from Bruno Haible.
22143
22144 2001-12-10  Jim Meyering  <meyering@lucent.com>
22145
22146         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
22147         xrealloc, Instead, include "xalloc.h".
22148         (initbuffer): Don't cast xmalloc return value to char*.
22149         (readline): Reword comment.
22150         Don't cast xrealloc return value to char*
22151         Return NULL, not 0.
22152
22153 2001-12-09  Jim Meyering  <meyering@lucent.com>
22154
22155         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
22156         about `signed and unsigned type in conditional expression'.
22157         * lib/posixtm.c (posix_time_parse): Likewise.
22158
22159         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
22160
22161         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
22162         to avoid a pedantic warning.
22163
22164         * lib/getstr.c: Don't include assert.h.
22165         (getstr): Remove warning-evoking assertions.
22166         Return -1 if offset parameter is out of bounds.
22167         Change the type of a local from int to size_t.
22168
22169         * lib/strftime.c (my_strftime_localtime_r): Include this function
22170         definition in the `#if ! HAVE_TM_GMTOFF' block.
22171
22172         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
22173         Include xalloc.h instead.
22174
22175 2001-12-02  Jim Meyering  <meyering@lucent.com>
22176
22177         * lib/tempname.c: Don't declare getenv, thus reverting the change of
22178         2001-11-18.  It's no longer necessary, now that stdlib.h is always
22179         included.
22180
22181         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
22182         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
22183
22184 2001-11-30  Akim Demaille  <akim@epita.fr>
22185
22186         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
22187         before being defined.
22188
22189 2001-11-27  Paul Eggert  <eggert@twinsun.com>
22190
22191         * lib/quotearg.h (quotearg_n, quotearg_n_style):
22192         First arg is int, not unsigned.
22193         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
22194         (SIZE_MAX, UINT_MAX): New macros.
22195         (quotearg_n_options): Abort if N is negative.
22196         Avoid overflow check on hosts where size_t is 64 bits and int
22197         is 32 bits, as overflow is impossible there.
22198         Fix off-by-one typo that caused unnecessary reallocation.
22199
22200 2001-11-27  Jim Meyering  <meyering@lucent.com>
22201
22202         * lib/tempname.c: Merge with version from libc.
22203         * lib/regex.c: Likewise.
22204
22205         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
22206         systems for which STDC_HEADERS is 0, it was not included, resulting in
22207         a warning about an integer-to-pointer conversion problem with getenv.
22208         Reported by Volker Borchert.
22209
22210 2001-11-26  Jim Meyering  <meyering@lucent.com>
22211
22212         * lib/gtod.h: Remove file.
22213         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
22214         * lib/gettimeofday.c: Don't include gtod.h.
22215         (GTOD_init): Remove function.
22216         (rpl_gettimeofday): Do its job here instead, rather than aborting.
22217         Suggestion from Volker Borchert.
22218
22219 2001-11-23  Jim Meyering  <meyering@lucent.com>
22220
22221         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
22222         it.
22223         * lib/hash.c (struct hash_table): Define it here instead.
22224
22225 2001-11-22  Jim Meyering  <meyering@lucent.com>
22226
22227         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
22228
22229 2001-11-20  Jim Meyering  <meyering@lucent.com>
22230
22231         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
22232         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
22233
22234 2001-11-19  Jim Meyering  <meyering@lucent.com>
22235
22236         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
22237         directory.  Use "conftestXXXXXX" as the template.
22238         Suggestion from Paul Eggert.
22239
22240         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
22241         immediately, so the test doesn't mistakenly hit the max-open-files
22242         limit.
22243
22244 2001-11-18  Paul Eggert  <eggert@twinsun.com>
22245
22246         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
22247         (TEMPORARIES): New macro.
22248         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
22249         removes an artificial limitation (e.g. HP-UX 10.20, where
22250         TMP_MAX is 17576).
22251
22252 2001-11-18  Jim Meyering  <meyering@lucent.com>
22253
22254         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
22255
22256 2001-11-18  Jim Meyering  <meyering@lucent.com>
22257
22258         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
22259         on SunOS 4.
22260
22261         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
22262         files will be created before anything else.
22263
22264 2001-11-17  Paul Eggert  <eggert@twinsun.com>
22265
22266         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
22267         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
22268
22269 2001-11-17  Jim Meyering  <meyering@lucent.com>
22270
22271         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
22272         Prompted by a report from Bob Proulx.
22273
22274         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
22275         Instead, require UTILS_FUNC_MKSTEMP.
22276
22277 2001-11-17  Jim Meyering  <meyering@lucent.com>
22278
22279         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
22280         Now, that's done as part of AC_FUNC_STRTOD.
22281
22282 2001-11-17  Jim Meyering  <meyering@lucent.com>
22283
22284         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
22285         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
22286         rather than group writable.  Patch by Juan F. Codagnone.
22287
22288         * lib/readtokens.c: Remove explicit declarations of xmalloc and
22289         xrealloc, Instead, include "xalloc.h".
22290
22291         * lib/mountlist.c: Include unlocked-io.h after all system headers.
22292         Remove explicit declarations of xmalloc, xrealloc,
22293         and xstrdup.  Instead, include "xalloc.h".
22294
22295         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
22296         unlocked-io.h.
22297         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
22298         Likewise.
22299         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
22300
22301         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
22302         Reported by Padraig Brady.
22303
22304         * lib/mkstemp.c: #undef mkstemp.
22305         Include config.h.
22306         (rpl_mkstemp): Rename from mkstemp.
22307         Protoize.
22308
22309 2001-11-16  Jim Meyering  <meyering@lucent.com>
22310
22311         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
22312         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
22313         determine the amount of total physical memory, use pstat_getstatic.
22314         HPUX-11 doesn't define _SC_PHYS_PAGES.
22315         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
22316         If sysconf couldn't be used to determine the amount of available
22317         physical memory, use both pstat_getstatic and pstat_getdynamic.
22318         Based on a patch from Bob Proulx.
22319
22320 2001-11-10  Jim Meyering  <meyering@lucent.com>
22321
22322         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
22323         (jm_PREREQ): Use it.
22324
22325 2001-11-09  Jim Meyering  <meyering@lucent.com>
22326
22327         * m4/jm-macros.m4: Require autoconf-2.52f.
22328         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
22329         Use these AC_-prefixed names, not the AM_-prefixed ones.
22330
22331         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
22332
22333 2001-11-05  Jim Meyering  <meyering@lucent.com>
22334
22335         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
22336
22337 2001-11-04  Jim Meyering  <meyering@lucent.com>
22338
22339         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
22340         $DEFS.
22341
22342 2001-11-03  Jim Meyering  <meyering@lucent.com>
22343
22344         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
22345         of AC_DEFUN.
22346
22347         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
22348         know the name of the variable in the macro definition.
22349
22350 2001-11-03  Jim Meyering  <meyering@lucent.com>
22351
22352         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
22353         in argmatch_to_argument call.
22354
22355         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
22356         argument.
22357
22358         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
22359         e.g., a fault due to an attempt to free a NULL pointer.
22360
22361 2001-11-01  Jim Meyering  <meyering@lucent.com>
22362
22363         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
22364         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
22365
22366 2001-11-01  Jim Meyering  <meyering@lucent.com>
22367
22368         * lib/dirfd.c, lib/dirfd.h: New files.
22369         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
22370
22371         * lib/hash.c (hash_print) [TESTING]: Clean up.
22372
22373 2001-10-22  Paul Eggert  <eggert@twinsun.com>
22374
22375         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
22376         to avoid a warning if -Wall.
22377
22378 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
22379
22380         * README: New file
22381         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
22382         (per RMS's instructions, this is now the canonical source)
22383         * lgpl/, gpl/: New directories.
22384
22385 2001-10-21  Paul Eggert  <eggert@twinsun.com>
22386
22387         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
22388
22389 2001-10-21  Jim Meyering  <meyering@lucent.com>
22390
22391         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
22392         this code would end up calling gettext even in packages built
22393         with --disable-nls.
22394         * lib/getopt.c (_): Likewise.
22395         * lib/regex.c (_): Likewise.
22396
22397 2001-10-20  Paul Eggert  <eggert@twinsun.com>
22398
22399         * m4/error.m4 (jm_PREREQ_ERROR):
22400         Do not invoke AC_CHECK_FUNCS with strerror_r, as
22401         AC_FUNC_STRERROR_R does that.
22402         Check for strerror declaration.
22403
22404         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
22405         are supposed to have them these days.
22406         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
22407         Merge changes from latest Autoconf CVS.
22408         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
22409         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
22410         POSIX decided to standardize on the int flavor of strerror_r.
22411
22412 2001-10-20  Paul Eggert  <eggert@twinsun.com>
22413
22414         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
22415         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
22416         Use strerror_r that is only a macro, even if it is not a function.
22417         (strerror): Check for HAVE_DECL_STRERROR before declaring.
22418         (private_strerror): Use prototypes, not old-style function definition.
22419         (print_errno_message): New function.
22420         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
22421         char*-flavored one.
22422         (error_tail, error, error_at_line): Use it.
22423
22424 2001-10-11  Jim Meyering  <meyering@lucent.com>
22425
22426         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
22427         and quote_n (1, ... to avoid clobbering a buffer.
22428
22429 2001-10-05  Jim Meyering  <meyering@lucent.com>
22430
22431         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
22432         hash-pjw.h.
22433         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
22434         * lib/hash-pjw.h: New file.
22435
22436 2001-09-30  Jim Meyering  <meyering@lucent.com>
22437
22438         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
22439         `struct fsstat' has the `f_fstypename' member.
22440         Use that to define FS_TYPE, which is now used to make
22441         the getfsstat link test tighter.
22442
22443 2001-09-30  Jim Meyering  <meyering@lucent.com>
22444
22445         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
22446         Include <sys/ucred.h>, for Apple Darwin.
22447         Include sys/mount.h and sys/fs_types.h only if available.
22448         (FS_TYPE): Define.
22449         (read_filesystem_list): Use FS_TYPE.
22450
22451 2001-09-29  Paul Eggert  <eggert@twinsun.com>
22452
22453         * lib/exclude.c (excluded_filename): 0 -> false, since it's
22454         a boolean context.
22455
22456 2001-09-29  Jim Meyering  <meyering@lucent.com>
22457
22458         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
22459         [one-argument getmntent function]): Include stdio.h before mntent.h.
22460         SunOS 4.1.x needs it for the declaration of `FILE'.
22461         Patch by Volker Borchert.
22462
22463         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
22464         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
22465         sys/fs_types.h, and make the link-test for getfsstat guard #include
22466         directives with appropriate #if HAVE_*_H tests so that we can
22467         detect getfsstat on Apple Darwin1.3.7 systems.
22468         Reported by Nelson Beebe.
22469         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
22470
22471 2001-09-28  Paul Eggert  <eggert@twinsun.com>
22472
22473         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
22474         #defines strtoimax.  Also treat the other strto* functions
22475         like strtoimax.
22476
22477         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
22478         Check for strtoul and strtoumax,
22479         as those declarations are made even in the signed case.
22480         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
22481         Likewise, for strtol and strtoimax.
22482
22483 2001-09-28  Paul Eggert  <eggert@twinsun.com>
22484
22485         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
22486         #defines strtoimax.  Also treat the other strto* functions
22487         like strtoimax.
22488
22489         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
22490         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
22491         (strtoimax, strtoumax): Do not declare if already defined as a macro.
22492
22493 2001-09-26  Jim Meyering  <meyering@lucent.com>
22494
22495         Most macros in unlocked-io.h had the wrong number of arguments.
22496         * lib/gen-uio: New script.
22497         (USE_UNLOCKED_IO): Define to 1 if not already defined.
22498         * lib/unlocked-io.hin: Remove file.
22499         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
22500         rather than trying to embed it here.
22501         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
22502         Reported by Padraig Brady.
22503
22504 2001-09-25  Volker Borchert  <bt@teknon.de>
22505
22506         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
22507         `result'.
22508
22509 2001-09-24  Jim Meyering  <meyering@lucent.com>
22510
22511         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
22512
22513 2001-09-23  Jim Meyering  <meyering@lucent.com>
22514
22515         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
22516         instead of the mere test for existence of mntent.h.  The latter
22517         would get a false-positive on AIX 3.4 systems.
22518         In the outer getmntent if-block, don't die if neither of the getmntent
22519         tests succeeds.  Instead, just fall through and continue with the
22520         remaining tests.
22521
22522 2001-09-23  Jim Meyering  <meyering@lucent.com>
22523
22524         * lib/mountlist.c: Remove useless parentheses in #if directives.
22525         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
22526         the deprecated MOUNTED symbol is no longer defined in mntent.h.
22527
22528 2001-09-22  Jim Meyering  <meyering@lucent.com>
22529
22530         * m4/gettext.m4: New file.  From gettext.
22531         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
22532         * m4/progtest.m4: Likewise
22533         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
22534         * m4/glibc21.m4: Likewise.
22535
22536         * m4/libintl.m4: Remove.  No longer used.
22537
22538 2001-09-22  Jim Meyering  <meyering@lucent.com>
22539
22540         * lib/localcharset.c: Update from latest gettext.
22541         * lib/config.charset: Likewise.
22542
22543 2001-09-20  Jim Meyering  <meyering@lucent.com>
22544
22545         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
22546         strtoimax.
22547         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
22548         strtoumax.
22549
22550 2001-09-20  Jim Meyering  <meyering@lucent.com>
22551
22552         * lib/xstrtol.c (strtoimax): Guard declaration with
22553         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
22554         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
22555         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
22556         (strtoumax): Likewise, for completeness (it wasn't necessary).
22557
22558 2001-09-17  Paul Eggert  <eggert@twinsun.com>
22559
22560         * lib/strtoimax.c (HAVE_LONG_LONG):
22561         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
22562         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
22563         to work around bug in IBM C compiler.
22564
22565 2001-09-17  Jim Meyering  <meyering@lucent.com>
22566
22567         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
22568         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
22569         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
22570         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
22571         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
22572         whenever the right hand side need not be expanded by the shell.
22573
22574 2001-09-16  Paul Eggert  <eggert@twinsun.com>
22575
22576         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
22577         library.  It's not correct, as some older glibcs are buggy.
22578         fnmatch wasn't fixed until glibc 2.2.
22579
22580         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
22581         special shell magic here.
22582
22583 2001-09-16  Jim Meyering  <meyering@lucent.com>
22584
22585         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
22586         * m4/jm-macros.m4: Require it.
22587
22588 2001-09-16  Jim Meyering  <meyering@lucent.com>
22589
22590         * lib/mkdir.c: New file.
22591
22592 2001-09-15  Jim Meyering  <meyering@lucent.com>
22593
22594         * m4/jm-macros.m4: Check for help2man.
22595
22596 2001-09-11  Jim Meyering  <meyering@lucent.com>
22597
22598         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
22599         The body, by Paul Eggert, was moved here from configure.in.
22600         * m4/jm-macros.m4: Require UTILS_HOST_OS.
22601
22602 2001-09-04  Paul Eggert  <eggert@twinsun.com>
22603
22604         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
22605         (jm_PREREQ): Use it.
22606
22607 2001-09-04  Paul Eggert  <eggert@twinsun.com>
22608
22609         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
22610         Use ssize_t, not int, to store result of readlink.
22611         Check for ssize_t overflow as well as size_t overflow,
22612         as POSIX says the result of readlink is implementation-defined
22613         when ssize_t overflows.
22614         Remove unnecessary cast to char*.
22615         Use free+malloc instead of realloc, as the storage doesn't need
22616         to be preserved and it's clearer and can be more efficient that way.
22617         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
22618         * lib/xreadlink.h (xreadlink): Update prototype.
22619
22620 2001-09-04  Paul Eggert  <eggert@twinsun.com>
22621
22622         * lib/xgetcwd.c: Revert some of the previous change; intead,
22623         fix the HAVE_GETCWD_NULL code to behave more like the
22624         !HAVE_GETCWD_NULL code used to.
22625
22626         Include "xalloc.h".
22627         (xgetcwd): Do not return NULL when memory is exhausted; instead,
22628         invoke xalloc_die.
22629
22630 2001-09-03  Paul Eggert  <eggert@twinsun.com>
22631
22632         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
22633         sys/param.h, as pathmax.h includes them.
22634
22635 2001-09-03  Paul Eggert  <eggert@twinsun.com>
22636
22637         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
22638         (jm_PREREQ_XGETCWD): New macro.
22639
22640         * m4/getcwd.m4: New file.
22641
22642 2001-09-03  Paul Eggert  <eggert@twinsun.com>
22643
22644         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
22645         like the HAVE_GETCWD_NULL code.
22646         Include pathmax.h if not HAVE_GETCWD.
22647         Do not include xalloc.h.
22648         (INITIAL_BUFFER_SIZE): New symbol.
22649         Do not use xmalloc / xrealloc, since the caller is responsible for
22650         handling errors.  Preserve errno around `free' during failure.
22651         Do not overrun buffer when using getwd.
22652
22653 2001-09-03  Paul Eggert  <eggert@twinsun.com>
22654
22655         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
22656         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
22657         getcwd (NULL, 0).
22658
22659 2001-09-03  Paul Eggert  <eggert@twinsun.com>
22660
22661         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
22662         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
22663         spotted by Jim Meyering.
22664
22665 2001-09-03  Jim Meyering  <meyering@lucent.com>
22666
22667         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
22668         failure.
22669
22670 2001-09-02  Jim Meyering  <meyering@lucent.com>
22671
22672         * lib/error.c: Update from GNU libc.
22673
22674 2001-09-01  Jim Meyering  <meyering@lucent.com>
22675
22676         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
22677         Used by df.
22678
22679 2001-09-01  Jim Meyering  <meyering@lucent.com>
22680
22681         * lib/xreadlink.c: New file.
22682         * lib/xreadlink.h: New file.
22683         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
22684         xreadlink.h.
22685
22686         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
22687         doesn't conflict with sparc Solaris 7's definition in
22688         /usr/include/sys/int_types.h.
22689
22690         * lib/exclude.c: Use `""', not `<>' to #include non-system header
22691         files.
22692         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
22693         and strncasecmp as r-values.  Unixware didn't have declarations.
22694
22695 2001-08-31  Paul Eggert  <eggert@twinsun.com>
22696
22697         * lib/xstrtol.h: Add copyright notice.
22698         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
22699         LONGINT_INVALID_SUFFIX_CHAR.
22700
22701 2001-08-31  Paul Eggert  <eggert@twinsun.com>
22702
22703         * lib/xstrtol.c (strtoimax): New decl.
22704
22705 2001-08-31  Paul Eggert  <eggert@twinsun.com>
22706
22707         * lib/xgetcwd.c: Don't include pathmax.h.
22708         Include stdlib.h and unistd.h if available.
22709         Include xalloc.h.
22710         (xmalloc, xstrdup, free): Remove decls.
22711         (xgetcwd): Don't assume sizes fit in unsigned.
22712         Check for overflow when computing sizes.
22713         Simplify reallocation code.
22714
22715 2001-08-31  Paul Eggert  <eggert@twinsun.com>
22716
22717         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
22718         a directory's st_size can have an arbitrary value, so the old
22719         usage could waste an arbitrary amount of memory.  All uses
22720         changed.
22721         * lib/savedir.h: Update prototype.
22722
22723 2001-08-31  Paul Eggert  <eggert@twinsun.com>
22724
22725         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
22726
22727         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
22728         old strtoimax.c.
22729
22730         Also, make the following further changes to make this file's
22731         configuration more similar to that of strtol.c:
22732         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
22733         (strtoumax, uintmax_t, strtoull, strtol): Remove.
22734         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
22735         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
22736         changed to signed values.
22737
22738         And make the following changes as well:
22739         Fix copyright notice, as 1999 was missing.
22740         (verify): New macro.
22741         (strtoimax): Check sizes at compile-time, not run-time.
22742         Prefer strtol to strtoll if both work.
22743         (main): Remove; it was not that useful and was a pain to maintain.
22744
22745         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
22746
22747 2001-08-31  Jim Meyering  <meyering@lucent.com>
22748
22749         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
22750         Use an initial, malloc'd, buffer of length 128 rather than
22751         a statically allocated one of length 1024.
22752
22753 2001-08-30  Paul Eggert  <eggert@twinsun.com>
22754
22755         Simplify code, partly by assuming autoconf 2.52 semantics.
22756
22757         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
22758
22759         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
22760         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
22761         All uses removed.
22762         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
22763         Move AC_REQUIRE to next-to-top level, to avoid confusion.
22764         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
22765         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
22766         jm_AC_HEADER_INTTYPES_H.
22767         * m4/jm-macros.m4 (jm_MACROS): Likewise.
22768
22769         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
22770
22771         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
22772         Quote first arg of AC_DEFUN.
22773         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
22774         since they are needed to parse the include file even if we need
22775         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
22776         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
22777         but with opposite signedness.
22778
22779 2001-08-30  Paul Eggert  <eggert@twinsun.com>
22780
22781         Merge 'exclude' changes from tar 1.13.22.
22782         This fixes one or two unlikely storage allocation overflow bugs,
22783         but doesn't change user-visible behavior otherwise.
22784
22785 2001-08-30  Paul Eggert  <eggert@twinsun.com>
22786
22787         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
22788         (jm_PREREQ_EXCLUDE): New macro.
22789
22790 2001-08-30  Paul Eggert  <eggert@twinsun.com>
22791
22792         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
22793         tm to be declared.
22794
22795 2001-08-30  Paul Eggert  <eggert@twinsun.com>
22796
22797         * lib/hash.c: Remove '2001' from copyright notice.
22798
22799 2001-08-30  Paul Eggert  <eggert@twinsun.com>
22800
22801         * lib/full-write.h: New file.
22802         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
22803         * lib/full-write.c: Correct credits, as cccp.c no longer
22804         exists and anyway it was so heavily changed from the old cccp
22805         code as to be unrecognizable.  Include full-write.h.
22806         (full_write) Return size_t, with short writes meaning failure.
22807         All callers changed.  This fixes a bug with large buffers
22808         on 64-bit hosts.
22809         * lib/utime.c: Include full-write.h.
22810
22811 2001-08-30  Paul Eggert  <eggert@twinsun.com>
22812
22813         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
22814         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
22815         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
22816         Include if available.
22817         (<xalloc.h>): Include
22818         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
22819         (verify): New macro.  Use it to verify that EXCLUDE macros do not
22820         collide with FNM macros.
22821         (struct patopts): New struct.
22822         (struct exclude): Use it, as exclude patterns now come with options.
22823         (new_exclude): Support above changes.
22824         (new_exclude, add_exclude_file):
22825         Initial size must now be a power of two to simplify overflow checking.
22826         (free_exclude, fnmatch_no_wildcards): New function.
22827         (excluded_filename): No longer requires options arg, as the options
22828         are determined by add_exclude.  Now returns bool, not int.
22829         (excluded_filename, add_exclude):
22830         Add support for the fancy new exclusion options.
22831         (add_exclude, add_exclude_file): Now takes int options arg.
22832         Check for arithmetic overflow when computing sizes.
22833         (add_exclude_file): xrealloc might modify errno, so don't
22834         realloc until after errno might be used.
22835
22836         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
22837         New macros.
22838         (free_exclude): New decl.
22839         (add_exclude, add_exclude_file): Now takes int options arg.
22840         (excluded_filename): No longer requires options arg, as the options
22841         are determined by add_exclude.  Now returns bool, not int.
22842
22843 2001-08-30  Paul Eggert  <eggert@twinsun.com>
22844
22845         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
22846
22847 2001-08-27  Jim Meyering  <meyering@lucent.com>
22848
22849         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
22850
22851         * lib/version-etc.c (N_): Remove definition.
22852         Revert most of last change.
22853         Instead, simply don't mark the `Copyright...' string for translation.
22854         Based on advice from Paul Eggert.
22855
22856         * lib/strtoxmax.c: Tweak comment.
22857
22858 2001-08-26  Jim Meyering  <meyering@lucent.com>
22859
22860         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
22861
22862         * m4/xstrtoimax.m4: New file.
22863         * m4/xstrtoumax.m4: Add comments explaining why we
22864         AC_REPLACE_FUNCS(strtol).
22865
22866 2001-08-26  Jim Meyering  <meyering@lucent.com>
22867
22868         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
22869         of copyright with `%s' so translators don't get an untranslated
22870         message in 2002.
22871         (COPYRIGHT_YEAR): Define.
22872         (version_etc): Use fprintf rather than fputs.
22873         Suggestion from Ulrich Drepper.
22874
22875         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
22876
22877         * lib/strtoll.c: New file, from GNU libc.
22878         * lib/xstrtoimax.c: New file.
22879
22880         * lib/xstrtol.h: Add xstrtoimax.
22881         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
22882         * lib/strtoimax.c: New file.  Likewise, but first define
22883         STRTOUXMAX_SIGNED.
22884
22885         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
22886         ...
22887         * lib/strtoxmax.c: ... then renamed to this.
22888
22889 2001-08-18  Paul Eggert  <eggert@twinsun.com>
22890
22891         * m4/inttypes.m4: Add AC_PREREQ(2.13).
22892         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
22893         (jm_AC_TYPE_INTMAX_T): New macro.
22894         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
22895
22896         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
22897
22898         * m4/longlong.m4: Renamed from ulonglong.m4.
22899         * m4/inttypes.m4: Renamed from inttypes_h.m4.
22900         * m4/uintmax_t.m4: Removed.
22901
22902 2001-08-13  Paul Eggert  <eggert@twinsun.com>
22903
22904         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
22905         Port to Solaris 8, where 'sed' requires a space after the 'r'
22906         command, and where sh dislikes "$/".  Clean up the spacing a bit.
22907         Redirect output to $tmp just once.
22908
22909 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
22910
22911         * lib/addext.c (<errno.h>): Include.
22912         (errno): Declare if not defined.
22913         (addext): Work correctly when pathconf returns -1 and leaves
22914         errno alone because there is no limit.  Also, work even if
22915         pathconf returns a value greater than SIZE_MAX.
22916
22917 2001-08-12  Jim Meyering  <meyering@lucent.com>
22918
22919         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
22920         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
22921         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
22922         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
22923         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
22924         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
22925         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
22926         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
22927         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
22928         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
22929         utime.m4, utimes.m4, xstrtoumax.m4:
22930         Quote the first argument in each use of AC_DEFUN.
22931
22932 2001-08-12  Jim Meyering  <meyering@lucent.com>
22933
22934         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
22935         Simply `return getcwd (NULL, 0);'.
22936         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
22937         Use 1300 as initial value for length, not PATH_MAX.
22938
22939         * lib/pathmax.h: Clean up cpp syntax.
22940
22941 2001-08-12  Jim Meyering  <meyering@lucent.com>
22942
22943         * lib/gettimeofday.c: New file.
22944         * lib/gtod.h: New file.
22945         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
22946
22947 2001-08-05  Jim Meyering  <meyering@lucent.com>
22948
22949         * m4/jm-macros.m4: Require autoconf-2.52.
22950
22951 2001-08-04  Jim Meyering  <meyering@lucent.com>
22952
22953         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
22954         stmt, to get in sync with glibc.
22955
22956 2001-08-03  Paul Eggert  <eggert@twinsun.com>
22957
22958         The following changes are from gettext 0.10.39 as maintained by
22959         Bruno Haible.
22960
22961         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
22962         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
22963         with inverted sense.  All uses changed.
22964
22965         * lib/mbswidth.c: Don't include <limits.h>.
22966         Include <stdlib.h> and <string.h> unconditionally.
22967         (iswcntrl, mbsinit, ISCNTRL): New macros.
22968         (mbsnwidth): Use K&R style function declarations.
22969         Don't bother checking for MB_LEN_MAX == 1, since the compiler
22970         can optimize it when MB_CUR_MAX == 1.
22971         The width of control characters is zero, not 1.
22972
22973 2001-08-03  Paul Eggert  <eggert@twinsun.com>
22974
22975         The following changes are from gettext 0.10.39 as maintained by
22976         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
22977
22978         * m4/codeset.m4: Upgrade to serial AM1.
22979         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
22980         all uses changed.  Quote first arg of AC_DEFUN.
22981         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
22982
22983         * m4/iconv.m4: Upgrade to serial AM2.
22984         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
22985         Add --with-libconv-prefix.
22986         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
22987         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
22988         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
22989         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
22990         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
22991
22992         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
22993         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
22994         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
22995         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
22996         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
22997         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
22998         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
22999         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
23000         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
23001
23002         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
23003         string.h any more.
23004
23005         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
23006         not the default value.
23007
23008         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
23009         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
23010         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
23011         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
23012         Also check for iswcntrl, used for wcwidth fallback.
23013         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
23014         to Autoconf 2.13.
23015
23016 2001-08-03  Jim Meyering  <meyering@lucent.com>
23017
23018         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
23019         as it was in the original.  Reported by Paul Eggert.
23020
23021 2001-07-16  Jim Meyering  <meyering@lucent.com>
23022
23023         * m4/gettimeofday.m4: New file.
23024         Prompted by a report from Bernhard Baehr.
23025
23026 2001-07-15  Jim Meyering  <meyering@lucent.com>
23027
23028         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
23029         stuff. Now it's in ../Makefile.cfg.
23030
23031 2001-07-15  Jim Meyering  <meyering@lucent.com>
23032
23033         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
23034         (BUILT_SOURCES): Add unlocked-io.h.
23035         (io_functions): Define.
23036         (unlocked-io.h): New rule.
23037         (DISTCLEANFILES): Add unlocked-io.h.
23038         (all-local): Depend on unlocked-io.h, to ensure it is created.
23039
23040         * lib/unlocked-io.hin: New file
23041
23042         * lib/regex.c: Update from glibc.
23043
23044 2001-07-05  Jim Meyering  <meyering@lucent.com>
23045
23046         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
23047         recommendation.
23048         (libfetish_a_SOURCES): Put all .h files here instead.
23049         Remove a thus-exposed (better checks in automake) duplicate and
23050         two unnecessary .h files.
23051
23052 2001-07-04  Jim Meyering  <meyering@lucent.com>
23053
23054         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
23055         that generates jm-glibc-io.m4 so that it doesn't trigger any make
23056         distcheck failure.
23057
23058 2001-07-02  Jim Meyering  <meyering@lucent.com>
23059
23060         The following changes were prompted by suggestions from Bruno Haible.
23061
23062         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
23063         is now generated.
23064         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
23065         definition of EXTRA_DIST.
23066         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
23067         ensure that the generated file is created/updated whenever the list
23068         of $(unlocked_functions) is changed.
23069         (jm-glibc-io.m4): New rule.
23070         (unlocked-io.h): New rule -- currently unused.
23071
23072 2001-06-24  Jim Meyering  <meyering@lucent.com>
23073
23074         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
23075         unmatched right bracket, rather than kludging it with an extra,
23076         falsely-matching quote in a comment.  Patch by Akim Demaille.
23077
23078 2001-06-11  Jim Meyering  <meyering@lucent.com>
23079
23080         * lib/regex.c: Update from GNU libc.
23081
23082 2001-05-27  Jim Meyering  <meyering@lucent.com>
23083
23084         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
23085         Check for ut_type in struct utmp.
23086
23087 2001-05-27  Jim Meyering  <meyering@lucent.com>
23088
23089         * lib/readutmp.h (UT_TYPE): Define.
23090
23091 2001-05-24  Jim Meyering  <meyering@lucent.com>
23092
23093         * lib/argmatch.c: Include "quote.h".
23094         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
23095         quote function.  Reported by Göran Uddeborg.
23096
23097 2001-05-22  Jim Meyering  <meyering@lucent.com>
23098
23099         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
23100         now that we use the package-supplied version unconditionally.
23101         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
23102
23103 2001-05-21  Jim Meyering  <meyering@lucent.com>
23104
23105         * m4/regex.m4: Change a couple backticks to single quotes to avoid
23106         shell syntax errors.
23107
23108 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
23109
23110         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
23111
23112 2001-05-20  Paul Eggert  <eggert@twinsun.com>
23113
23114         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
23115         Don't bother to check library strftime, since
23116         we'll be using our own my_strftime function anyway.
23117         Define my_strftime instead of strftime.
23118
23119 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
23120
23121         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
23122         which is not yet declared.
23123
23124 2001-05-15  Jim Meyering  <meyering@lucent.com>
23125
23126         * m4/regex.m4: Use proper quoting so brackets appear in the test
23127         program.
23128         Reported by, and with help from, Bruno Haible.
23129
23130 2001-05-13  Jim Meyering  <meyering@lucent.com>
23131
23132         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
23133         undefined.
23134
23135 2001-05-11  Paul Eggert  <eggert@twinsun.com>
23136
23137         dirname code cleanup.  base_name now behaves more compatibly
23138         with POSIX basename when given file names that have trailing
23139         slashes, and similarly for dir_name.  Add new primitives
23140         base_len and dir_len.  Put the directory-name-related decls
23141         into dirname.h.
23142
23143         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
23144         * lib/backupfile.c (base_name): Likewise.
23145         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
23146         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
23147         * lib/makepath.c (strip_trailing_slashes): Likewise.
23148         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
23149         ISSLASH): Likewise.
23150         * lib/rename.c (strip_trailing_slashes): Likewise.
23151         * lib/same.c (base_name): Likewise.
23152         * lib/stripslash.c (ISSLASH): Likewise.
23153
23154         * lib/addext.c: Include <dirname.h> after size_t is defined.
23155         * lib/backupfile.c: Likewise.
23156
23157         * lib/addext.c (addext): Use base_len to trim redundant
23158         trailing slashes instead of doing it ourselves.
23159         But do not trim the last slash if it is not redundant.
23160
23161         * lib/backupfile.c (find_backup_file_name,
23162         max_backup_version): Use base_len instead of rolling it ourselves.
23163         Handle the case of "" and (on DOS) "C:" correctly.
23164
23165         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
23166         needed. Include <string.h>, <dirname.h>.
23167         (base_name): Allow file names ending in slashes, other than names
23168         that are all slashes.  In this case, return the basename followed
23169         by the slashes.  This is more general, and can be used in places
23170         where the original base_name purposely had an assertion failure.
23171         (base_len): New function.
23172
23173         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
23174         Do not include <assert.h>; no longer needed.
23175         Include xalloc.h.
23176         (memrchr): Remove decl.
23177         (dir_name_r): Remove.
23178         (dir_len): Renamed from dirlen.  All callers changed.
23179         Rewrite in terms of base_name, for simplicity and consistency.
23180         (dir_name): Never return NULL.  All callers changed.
23181         Do not include <stdlib.h> in test program; no longer needed.
23182         return 0; is fine for test program.
23183
23184         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
23185         New macros.
23186         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
23187
23188         * lib/path-concat.c (path_concat): Use base_len to compute
23189         base length, not strlen; this means we cannot rely on memcpy
23190         to null-terminate.
23191
23192         * lib/same.c (STREQ): Remove.
23193         (same_name): Handle the case where the basename ends in trailing '/'.
23194
23195         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
23196         a slash was stripped.  Do not strip the last slash after a
23197         file system prefix.
23198
23199 2001-05-11  Paul Eggert  <eggert@twinsun.com>
23200
23201         * lib/Makefile.am (libfetish_a_SOURCES):
23202         Add strftime.c, since we now compile it on all hosts.
23203
23204         * lib/strftime.c (my_strftime):
23205         Define to nstrftime if emacs, but only if my_strftime is not defined.
23206         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
23207         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
23208         Add one more extra argument: a nanoseconds value.
23209         All uses changed.
23210         (ns): New macro.
23211         (my_strftime function): Add %N format.
23212         (emacs_strftimeu): Renamed from emacs_strftime,
23213         with extra ut argument.
23214
23215 2001-05-09  Paul Eggert  <eggert@twinsun.com>
23216
23217         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
23218
23219 2001-04-21  Jim Meyering  <meyering@lucent.com>
23220
23221         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
23222         doesn't interfere.
23223
23224 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
23225
23226         * m4/ftruncate.m4: Check for chsize.
23227         Link with ftruncate.o unconditionally if ftruncate is missing.
23228         This was required when cross-compiling to i586-mingw32msvc.
23229
23230 2001-04-08  Jim Meyering  <meyering@lucent.com>
23231
23232         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
23233         recomputed; that's necessary when the offset spans a DST transition.
23234         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
23235
23236 2001-04-02  Jim Meyering  <meyering@lucent.com>
23237
23238         * lib/regex.h, regex.c: Update from GNU libc.
23239
23240 2001-03-24  Jim Meyering  <meyering@lucent.com>
23241
23242         * m4/jm-macros.m4: Require autoconf-2.49d.
23243
23244 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
23245
23246         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
23247
23248 2001-03-19  Paul Eggert  <eggert@twinsun.com>
23249
23250         * lib/version-etc.c (version_etc_copyright): Update to 2001.
23251
23252 2001-03-17  Jim Meyering  <meyering@lucent.com>
23253
23254         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
23255         now that the version in autoconf is equivalent.
23256         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
23257
23258         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
23259         Suggestion from Akim Demaille.
23260
23261         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
23262         (jm_PREREQ_TEMPNAME): New function.
23263
23264 2001-03-16  Paul Eggert  <eggert@twinsun.com>
23265
23266         * lib/tempname.c (uint64_t): Define to uintmax_t if
23267         not defined, and if UINT64_MAX is not defined.
23268         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
23269         Reported by John David Anglin.
23270
23271 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
23272
23273         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
23274         resolve alias if codeset is empty.
23275         * lib/config.charset (BeOS): Use wildcard syntax.
23276
23277 2001-03-13  Jim Meyering  <meyering@lucent.com>
23278
23279         * lib/path-concat.c (path_concat)
23280         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
23281         concatenating e.g., `C:' and `foo'.
23282         From Bruno Haible.
23283
23284 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
23285
23286         * lib/localcharset.c (locale_charset): Don't use
23287         setlocale(LC_CTYPE,NULL). Don't return NULL.
23288         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
23289
23290 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
23291
23292         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
23293         support for DOS/DJGPP.
23294
23295 2001-03-01  Paul Eggert  <eggert@twinsun.com>
23296
23297         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
23298         lacks mkstemp.  Compile our own tempname.c if we compile our own
23299         mkstemp.c, as mkstemp relies on tempname.
23300
23301 2001-03-01  Jim Meyering  <meyering@lucent.com>
23302
23303         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
23304         AH_VERBATIM really does output its argument verbatim.
23305
23306 2001-02-28  Paul Eggert  <eggert@twinsun.com>
23307
23308         * lib/Makefile.am (libfetish_a_SOURCES):
23309         Add dup-safer.c, fopen-safer.c.
23310         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
23311
23312         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
23313         * lib/unistd-safer.h: New files.
23314
23315 2001-02-25  Paul Eggert  <eggert@twinsun.com>
23316
23317         The mkstemp replacement is taken from glibc 2.2.2, with some
23318         portability fixes for use outside glibc, as follows:
23319
23320         * lib/tempname.c (struct_stat64): New macro.
23321         (direxists, __gen_tempname): Use it.
23322         This avoids a portability problem with Solaris 8.
23323
23324         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
23325         (<stddef.h>, <stdint.h>, <string.h>):
23326         Include only if STDC_HEADERS || _LIBC.
23327         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
23328         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
23329         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
23330         (__set_errno): Define this macro if <errno.h> doesn't.
23331         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
23332         Define these macros if <stdio.h> doesn't.
23333         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
23334         Define these macros if <sys/stat.h>
23335         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
23336         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
23337         __xstat64): Define if not _LIBC.
23338         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
23339         (__gen_tempname): Invoke gettimeofday only if
23340         HAVE_GETTIMEOFDAY || _LIBC;
23341         otherwise, fall back on plain "time".
23342         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
23343
23344         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
23345
23346         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
23347
23348 2001-02-18  Paul Eggert  <eggert@twinsun.com>
23349
23350         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
23351
23352 2001-02-17  Paul Eggert  <eggert@twinsun.com>
23353
23354         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
23355         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
23356         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
23357         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
23358
23359 2001-02-17  Paul Eggert  <eggert@twinsun.com>
23360
23361         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
23362         Remove workaround macros for hosts that have mbrtowc but not
23363         mbstate_t, as we now insist on proper declarations for both
23364         before using mbrtowc.
23365
23366 2001-02-17  Jim Meyering  <meyering@lucent.com>
23367
23368         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
23369         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
23370         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
23371         UnixWare 7.1.1.
23372
23373         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
23374         rather than AC_CACHE_VAL.
23375
23376 2001-02-17  Jim Meyering  <meyering@lucent.com>
23377
23378         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
23379         around included file name.
23380
23381         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
23382
23383         * lib/strftime.c: Update from GNU libc (the only changes were to
23384         comments).
23385
23386 2001-02-17  Jim Meyering  <meyering@lucent.com>
23387
23388         * lib/regex.c: Update from libc.
23389
23390 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
23391
23392         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
23393         clash.
23394
23395 2001-02-16  Paul Eggert  <eggert@twinsun.com>
23396
23397         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
23398         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
23399         Reported by Mark Hounschell via Paul Eggert.
23400
23401 2001-02-07  Jim Meyering  <meyering@lucent.com>
23402
23403         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
23404
23405 2001-02-05  Jim Meyering  <meyering@lucent.com>
23406
23407         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
23408         it includes the patch required for `large file' support with at least
23409         HP-UX's 10.20 /bin/cc.
23410
23411 2001-02-03  Jim Meyering  <meyering@lucent.com>
23412
23413         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
23414         AS_IF, now that it works once again (mysteriously).
23415         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
23416
23417 2001-01-30  Jim Meyering  <meyering@lucent.com>
23418
23419         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
23420         * m4/chown.m4: Rename conftestchown to conftest.chown.
23421         * m4/rename.m4: s/conftestdir/conftest.d1/ and
23422         s/conftestdir2/conftest.d2/.
23423         * m4/utimes.m4: s/conftestdata/conftest.data/
23424         Inspired by Pavel Roskin's change in autoconf.
23425
23426 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
23427
23428         * lib/config.charset: Update for FreeBSD 4.2.
23429
23430 2001-01-27  Jim Meyering  <meyering@lucent.com>
23431
23432         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
23433         a use of AS_IF.
23434         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
23435
23436 2001-01-26  Jim Meyering  <meyering@lucent.com>
23437
23438         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
23439         quotearg.c includes it.
23440
23441 2001-01-26  Jim Meyering  <meyering@lucent.com>
23442
23443         * lib/quotearg.c: Include stddef.h.
23444         * lib/quote.c: Include stddef.h.
23445         Reported by Axel Kittenberger.
23446
23447         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
23448         line in double quotes so that it evokes a better diagnostic.
23449         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
23450         Reported by Axel Kittenberger.
23451
23452 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
23453
23454         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
23455         as if it was a `charset'.
23456
23457 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
23458
23459         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
23460         has const.
23461
23462 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
23463
23464         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
23465         to avoid a warning.  Add back 'const' to inptr.
23466
23467 2001-01-20  Jim Meyering  <meyering@lucent.com>
23468
23469         Be sure that headers are checked before used in code compiled
23470         for the type checks.
23471         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
23472         In place of that, invoke jm_CHECK_ALL_TYPES.
23473         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
23474         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
23475         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
23476         The check for ssize_t was mistakenly run before the test for unistd.h.
23477
23478         The configure-time check for stdbool.h was missing.
23479         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
23480         (jm_PREREQ_HASH): New function.
23481
23482 2001-01-17  Jim Meyering  <meyering@lucent.com>
23483
23484         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
23485         for autoconf-2.49c.
23486         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
23487
23488 2001-01-16  Jim Meyering  <meyering@lucent.com>
23489
23490         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
23491         From Bruno Haible.
23492
23493 2001-01-14  Jim Meyering  <meyering@lucent.com>
23494
23495         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
23496         foo and bar.  Create conftestdir/ in the script, not in the C code.
23497         Remove directories in the script, not in the C code.
23498         Remove conftestdir{,2} before trying to create the directory.
23499         Make the entire configure script fail if the mkdir fails.
23500
23501 2001-01-14  Jim Meyering  <meyering@lucent.com>
23502
23503         * lib/rename.c: New file.  From Volker Borchert.
23504         Include stdlib.h, string.h or strings.h, and xalloc.h.
23505         Use strip_trailing_slashes rather than open-coding it.
23506
23507 2001-01-03  Paul Eggert  <eggert@twinsun.com>
23508
23509         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
23510
23511 2001-01-03  Jim Meyering  <meyering@lucent.com>
23512
23513         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
23514         of local `inptr' to avoid warning with some system declarations of
23515         iconv.
23516
23517 2001-01-02  Volker Borchert  <bt@teknon.de>
23518
23519         * m4/rename.m4: New file.
23520         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
23521
23522 2001-01-01  Jim Meyering  <meyering@lucent.com>
23523
23524         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
23525         even on systems with utmpx.h.  It's necessary for the declaration of
23526         utmp's ut_user member.  Reported by Andreas Jaeger.
23527
23528         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
23529         available. They are required for the declarations of getgrgid and
23530         getpwuid resp.
23531         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
23532         Reported by Andreas Jaeger.
23533
23534 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
23535
23536         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
23537         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
23538         so `make install' also works in VPATH builds.
23539
23540 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
23541
23542         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
23543         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
23544         can be used in subdirectories.
23545
23546 2000-12-29  Paul Eggert  <eggert@twinsun.com>
23547
23548         * lib/modechange.c: Do not assume that mode_t uses the
23549         traditional octal encoding.  E.g. "chmod 1 FOO" should set
23550         the other-execute bit of FOO even if S_IXOTH != 1.
23551
23552         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
23553         WOTH, XOTH, ALLM): New macros.
23554         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
23555          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
23556         Use them.
23557         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
23558         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
23559         (mode_compile):
23560         No need to use uintmax_t; unsigned long is long enough.
23561         Don't bother to get suffix since we don't use it.
23562
23563 2000-12-26  Jim Meyering  <meyering@lucent.com>
23564
23565         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
23566         better with autoheader.
23567
23568 2000-12-24  Jim Meyering  <meyering@lucent.com>
23569
23570         * lib/hash.c (is_prime): Return explicit boolean values.
23571         (hash_get_first): Return NULL to appease Irix5.6's 89.
23572         Reported by Nelson Beebe.
23573
23574 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
23575
23576         * lib/localcharset.c (locale_charset): Add support for Win32.
23577
23578 2000-12-18  Paul Eggert  <eggert@twinsun.com>
23579
23580         * lib/physmem.h, lib/physmem.c: New files.
23581
23582         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
23583         (noinst_HEADERS): Add physmem.h.
23584
23585         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
23586         't' for compatibility with Solaris 8 sort.
23587
23588 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
23589
23590         * lib/config.charset: Add support for BeOS.
23591
23592 2000-12-17  Jim Meyering  <meyering@lucent.com>
23593
23594         * m4/dos.m4 (jm_AC_DOS): New file and macro.
23595         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
23596
23597 2000-12-16  Jim Meyering  <meyering@lucent.com>
23598
23599         This bug had a serious impact on chown: `chown N:M FILE' (for integer
23600         N and M) would have treated it like `chown N:N FILE'.
23601
23602         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
23603
23604 2000-12-16  Jim Meyering  <meyering@lucent.com>
23605
23606         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
23607         SHELLS_FILE to a file name that's useful on djgpp systems.
23608         Include stdlib.h.
23609         (ADDITIONAL_DEFAULT_SHELLS): Define.
23610         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
23611         Based mostly on a patch from Prashant TR.
23612
23613 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
23614
23615         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
23616         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
23617         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
23618
23619 2000-12-08  Andreas Schwab  <schwab@suse.de>
23620
23621         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
23622         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
23623
23624 2000-12-07  Jim Meyering  <meyering@lucent.com>
23625
23626         * lib/stripslash.c (ISSLASH): Define.
23627         (strip_trailing_slashes): Use ISSLASH rather than comparing against
23628         `/'.
23629         From Prashant TR.
23630
23631         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
23632         (dir_name_r): Declare this function as static.
23633         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
23634         manifest itself on a name containing a mix of slashes and
23635         backslashes.
23636         Make this function work with names starting with a DOS-style
23637         drive letter and colon prefix.
23638         (dir_name): Append `.' if necessary.
23639         Based mostly on patches from Prashant TR and Eli Zaretskii.
23640
23641         * lib/dirname.h (dir_name_r): Remove prototype.
23642
23643 2000-12-06  Paul Eggert  <eggert@twinsun.com>
23644
23645         * m4/off_t-format.m4: Remove this file.
23646         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
23647
23648 2000-12-06  Jim Meyering  <meyering@lucent.com>
23649
23650         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
23651         replacement strtoull, we may well need the replacement strtoul, too.
23652         Check for declarations of strtoul and strtoull.
23653         Check for strtol.  Mainly as a cue to cause automake to include
23654         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
23655         Check for limits.h -- strtol.c needs it.
23656
23657 2000-12-05  Jim Meyering  <meyering@lucent.com>
23658
23659         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
23660
23661 2000-12-04  Jim Meyering  <meyering@lucent.com>
23662
23663         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
23664         Also include memory.h, stdlib.h, unistd.h if appropriate.
23665         Reported by Andreas Jaeger (conflicting declaration of malloc).
23666
23667 2000-12-02  Jim Meyering  <meyering@lucent.com>
23668
23669         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
23670         * m4/jm-macros.m4 (jm_MACROS): require it.
23671
23672 2000-12-02  Jim Meyering  <meyering@lucent.com>
23673
23674         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
23675
23676 2000-12-01  Paul Eggert  <eggert@twinsun.com>
23677
23678         * lib/memrchr.c: Include <config.h> before any system include file.
23679
23680 2000-11-30  Jim Meyering  <meyering@lucent.com>
23681
23682         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
23683
23684 2000-11-30  Jim Meyering  <meyering@lucent.com>
23685
23686         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
23687
23688 2000-11-29  Paul Eggert  <eggert@twinsun.com>
23689
23690         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
23691
23692 2000-11-26  Jim Meyering  <meyering@lucent.com>
23693
23694         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
23695
23696 2000-11-22  Paul Eggert  <eggert@twinsun.com>
23697
23698         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
23699         size of (size_t) -1; it's not portable.
23700
23701 2000-11-17  Jim Meyering  <meyering@lucent.com>
23702
23703         * lib/strstr.c: Update from GNU libc.
23704
23705 2000-11-17  Akim Demaille  <akim@epita.fr>
23706
23707         * lib/obstack.h: Formatting changes.
23708         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
23709         prevent type checking.
23710         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
23711         cast the value to (void *): assigning a `foo *' to a `void *'
23712         variable is valid.
23713         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
23714
23715 2000-11-16  Jim Meyering  <meyering@lucent.com>
23716
23717         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
23718
23719 2000-11-11  Jim Meyering  <meyering@lucent.com>
23720
23721         * lib/error.c: Add a couple #includes, merging from GNU libc version.
23722
23723 2000-11-10  Jim Meyering  <meyering@lucent.com>
23724
23725         * lib/obstack.h: Update from GNU libc.
23726         * lib/obstack.c: Likewise.
23727
23728 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
23729
23730         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
23731
23732 2000-11-06  Paul Eggert  <eggert@twinsun.com>
23733
23734         * lib/getusershell.c (setusershell): Use rewind rather than
23735         fseek/fseeko, to avoid configuration hassles with fseeko.
23736         Don't bother opening SHELLS_FILE if shellstream is NULL;
23737         it's not necessary.
23738
23739 2000-11-05  Jim Meyering  <meyering@lucent.com>
23740
23741         * lib/makepath.h (make_dir): Declare.
23742         * lib/makepath.c (make_dir): Remove `static' attribute.
23743         Tweak a comment.
23744
23745 2000-11-04  Jim Meyering  <meyering@lucent.com>
23746
23747         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
23748
23749 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
23750
23751         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
23752         last one in a bucket, advance to the next bucket.
23753
23754 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
23755
23756         * lib/fnmatch.c: Do not comment out all the code if we are using
23757         the GNU C library, because in some cases we are replacing buggy
23758         code in the GNU C library itself.
23759
23760 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
23761
23762         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
23763         (regex_compile): Catch bogus \(\1\).
23764
23765 2000-10-30  Paul Eggert  <eggert@twinsun.com>
23766
23767         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
23768         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
23769         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
23770
23771 2000-10-30  Paul Eggert  <eggert@twinsun.com>
23772
23773         * lib/error.h, getline.h, modechange.h:
23774         Remove "2000" from Copyright line, as the file hasn't been
23775         changed this year other than in the copyright notice.
23776
23777         * lib/xalloc.h: Add "2000" to Copyright line, as this file
23778         was changed this year.
23779
23780 2000-10-29  Jim Meyering  <meyering@lucent.com>
23781
23782         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
23783         renaming.
23784         * m4/ls-mntd-fs.m4: Likewise
23785
23786 2000-10-29  Jim Meyering  <meyering@lucent.com>
23787
23788         * lib/xstat.in: Fix grammar in comment.
23789
23790 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
23791
23792         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
23793         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
23794         doesn't define __restrict_arr.
23795
23796 2000-10-28  Jim Meyering  <meyering@lucent.com>
23797
23798         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
23799         (jm_PREREQ_MEMCHR): New function.
23800
23801 2000-10-28  Jim Meyering  <meyering@lucent.com>
23802
23803         * lib/memchr.c: Update from libc.
23804         Adjust for portability:
23805         [HAVE_STDLIB_H]: Include stdlib.h.
23806         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
23807         Undef __memchr, too.
23808         [!weak_alias]: Define __memchr to memchr.
23809
23810         * lib/regex.c: Update from libc.
23811         * lib/regex.h: Likewise.
23812         * lib/getopt1.c: Likewise.
23813         * lib/memcmp.c: Likewise.
23814
23815         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
23816         Avoid using fseek, when possible -- it's broken by design.
23817         Patch by Ulrich Drepper.
23818
23819 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
23820
23821         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
23822         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
23823         Giving in to popular pressure to shut up the compiler with casts.
23824
23825 2000-10-26  Jim Meyering  <meyering@lucent.com>
23826
23827         * lib/strftime.c: Update from libc.
23828
23829 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
23830
23831         * regex.c: More `unsigned char' -> `re_char' changes.
23832         Also change several `int' into `re_wchar_t'.
23833         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
23834         (PUSH_FAILURE_POINTER): Don't cast any more.
23835         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
23836         We want GCC to complain, since this piece of code makes
23837         re_match non-reentrant, which *should* be fixed.
23838         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
23839         (EXTEND_BUFFER): Use RETALLOC.
23840         (SET_LIST_BIT): Don't cast.
23841         (re_wchar_t): New type.
23842         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
23843         that those two functions will always properly return.
23844         (IMMEDIATE_QUIT_CHECK): Cast to void.
23845         (analyse_first): Use recursion rather than an explicit stack.
23846         (re_compile_fastmap): Can't fail anymore.
23847         (re_search_2): Don't check re_compile_fastmap for failure.
23848         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
23849         Now also sets the new value (passed in a new argument).
23850         (re_match_2_internal): Use it.
23851         Also, use a new var `reg' of type size_t when looping through regs
23852         rather than reuse the inappropriate `mcnt'.
23853
23854 2000-10-25  Jim Meyering  <meyering@lucent.com>
23855
23856         * lib/obstack.c: Update from libc.
23857
23858 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
23859
23860         * regex.c (regex_compile): Change the way of handling a range from
23861         a char less than 256 to a char not less than 256.
23862
23863 2000-10-24  Andrew Innes  <andrewi@gnu.org>
23864
23865         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
23866         NT-Emacs only.
23867         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
23868         so that re_search functions only quit when callers expect them to.
23869
23870 2000-10-23  Jim Meyering  <meyering@lucent.com>
23871
23872         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
23873         wrong.  That set_locale call must not have any side effects.
23874         From Paul Eggert.
23875
23876 2000-10-22  Jim Meyering  <meyering@lucent.com>
23877
23878         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
23879         [CYCLIC]: Remove now-unused definition.
23880
23881         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
23882         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
23883         Suggestion from Ulrich Drepper.
23884
23885 2000-10-21  Jim Meyering  <meyering@lucent.com>
23886
23887         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
23888         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
23889         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
23890
23891 2000-10-21  Jim Meyering  <meyering@lucent.com>
23892
23893         * lib/dirname.c (memrchr): Declare if necessary.
23894         (dir_name): Remove the restriction that there be no
23895         trailing slashes.  Now, this code skips past them, effectively
23896         ignoring them.
23897         [TEST_DIRNAME] (main): New unit tests.
23898
23899         * lib/memrchr.c: New file from GNU libc.
23900         Undef __memrchr, too.
23901         [!weak_alias]: Define __memrchr to memrchr.
23902         Guard weak_alias use with `#ifdef weak_alias'.
23903
23904 2000-10-21  Jim Meyering  <meyering@lucent.com>
23905
23906         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
23907         (dir_name): Use dir_name_r.
23908         * lib/dirname.h (dir_name_r): Declare it.
23909
23910 2000-10-17  Jim Meyering  <meyering@lucent.com>
23911
23912         * lib/quote.h (PARAMS): Define and use.
23913         Reported by Akim Demaille.
23914
23915         * lib/getopt.c: Update from libc.
23916
23917 2000-10-16  Jim Meyering  <meyering@lucent.com>
23918
23919         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
23920         setlocale.
23921         From Jan Fedak.
23922
23923 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
23924
23925         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
23926
23927 2000-09-25  Jim Meyering  <meyering@lucent.com>
23928
23929         * lib/md5.h (rol): Define (from GnuPG).
23930
23931         * lib/sha.c: Give credit (GnuPG) where due.
23932         (M): Use rol rather than open-coding it.
23933         Add a FIXME comment.
23934
23935 2000-09-21  Jim Meyering  <meyering@lucent.com>
23936
23937         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
23938         Reported by Michael Stone.
23939
23940 2000-09-20  Jim Meyering  <meyering@lucent.com>
23941
23942         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
23943         (noinst_HEADERS): Add sha.h.
23944         Based on code from Scott G. Miller and from GnuPG.
23945
23946 2000-09-18  Jim Meyering  <meyering@lucent.com>
23947
23948         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
23949         LIBS. Otherwise, everyone ends up linking with -lelf for some
23950         configurations.
23951         Reported by Mike Stone.
23952
23953 2000-09-15  Jim Meyering  <meyering@lucent.com>
23954
23955         * lib/regex.c: Update from libc.
23956
23957 2000-09-10  Jim Meyering  <meyering@lucent.com>
23958
23959         * lib/getopt.c (_getopt_internal): Update from glibc.
23960
23961 2000-09-09  Jim Meyering  <meyering@lucent.com>
23962
23963         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
23964         think it should be used as a general replacement for isascii.
23965         * lib/fnmatch.c: Likewise.
23966         * lib/mbswidth.c: Likewise
23967         * lib/regex.c: Likewise.
23968
23969         Don't use atoi.
23970         * lib/userspec.c: Include sys/param.h and limits.h.
23971         Include xstrtol.h.
23972         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
23973         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
23974         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
23975         UID, GID.  Check range.
23976
23977 2000-09-06  Jim Meyering  <meyering@lucent.com>
23978
23979         * lib/getopt.c (_getopt_internal): Update from glibc.
23980
23981 2000-08-30  Jim Meyering  <meyering@lucent.com>
23982
23983         * lib/strftime.c: Merge in changes from GNU libc.
23984
23985 2000-08-26  Jim Meyering  <meyering@lucent.com>
23986
23987         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
23988         * m4/fpending.m4: New file.
23989
23990 2000-08-26  Jim Meyering  <meyering@lucent.com>
23991
23992         * lib/closeout.c: Include "__fpending.h".
23993         (close_stdout_status): Return right away if there's nothing to flush.
23994
23995         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
23996         * lib/__fpending.c: New file.
23997         * lib/__fpending.h: New file.
23998
23999 2000-08-20  Jim Meyering  <meyering@lucent.com>
24000
24001         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
24002         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
24003         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
24004
24005 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
24006
24007         Improve fileutils installation on systems where running
24008         programs (like install) can't be unlinked.
24009         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
24010         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
24011
24012 2000-08-07  Paul Eggert  <eggert@twinsun.com>
24013
24014         Standardize on "memory exhausted" instead of "Memory exhausted"
24015         or "virtual memory exhausted".
24016         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
24017         "virtual memory exhausted".
24018         * lib/same.c (same_name): Invoke xalloc_die instead of printing
24019         our own message.
24020         * lib/userspec.c (parse_user_spec): Likewise.
24021         * lib/bumpalloc.h: comment fix
24022         * lib/same.c, userspec.c: Include xalloc.h.
24023
24024         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
24025         not char *const and pointing to a constant array.
24026         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
24027         (xrealloc): Comment fix.
24028
24029         * lib/userspec.c (parse_user_spec):
24030         Don't translate a message until just before returning,
24031         to avoid unnecessary translation.
24032
24033 2000-08-07  Jim Meyering  <meyering@lucent.com>
24034
24035         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
24036         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
24037         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
24038         getgroups.c, gethostname.c, getopt.h, group-member.c,
24039         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
24040         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
24041         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
24042         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
24043         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
24044         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
24045         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
24046         yesno.c: Back out Copyright date changes for each file with no change
24047         this year.  This eases coordination with other programs using the same
24048         source code modules.  From Paul Eggert.
24049
24050 2000-08-06  Paul Eggert  <eggert@twinsun.com>
24051
24052         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
24053         not char, for compatibility with glibc 2.1.3 strftime.c.
24054
24055 2000-08-03  Greg McGary  <greg@mcgary.org>
24056
24057         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
24058         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
24059         (EXTEND_BUFFER): Use them.
24060
24061 2000-08-01  Jim Meyering  <meyering@lucent.com>
24062
24063         * lib/dirname.c (ISSLASH): Define.
24064         (BACKSLASH_IS_PATH_SEPARATOR): Define.
24065         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
24066         both `\' and `/' may be use as path separators.
24067         Based on a patch from Prashant TR.
24068
24069 2000-07-31  Paul Eggert  <eggert@twinsun.com>
24070
24071         * lib/quotearg.c (quotearg_n_options): Don't make the initial
24072         slot vector a constant, since it might get modified.
24073
24074 2000-07-31  Jim Meyering  <meyering@lucent.com>
24075
24076         * lib/xmalloc.c: Use `virtual memory exhausted', not
24077         `Memory exhausted'.
24078         * lib/obstack.c (print_and_abort): Likewise.
24079
24080 2000-07-30  Paul Eggert  <eggert@twinsun.com>
24081
24082         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
24083         buffer, so that the caller can always quote one small
24084         component of a "memory exhausted" message in slot 0.
24085         From a suggestion by Jim Meyering.
24086
24087 2000-07-30  Jim Meyering  <meyering@lucent.com>
24088
24089         * lib/makepath.c (make_path): Quote the other instance, too.
24090
24091         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
24092         (STATIC_BUF_SIZE): Define.
24093         (quotearg_n_options): Use only statically allocated storage when
24094         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
24095         than STATIC_BUF_SIZE.
24096
24097 2000-07-29  Jim Meyering  <meyering@lucent.com>
24098
24099         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
24100         * lib/dirname.c (dir_name): Likewise.
24101
24102         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
24103         `/'.
24104
24105         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
24106         (dir_name): Assert that there are no trailing slashes.
24107
24108 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
24109
24110         * lib/mbswidth.h (mbswidth): Add a flags argument.
24111         (mbswidth): New declaration.
24112         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
24113         * lib/mbswidth.c (mbswidth): Add a flags argument.
24114         (mbsnwidth): New function.
24115
24116 2000-07-24  Jim Meyering  <meyering@lucent.com>
24117
24118         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
24119
24120 2000-07-23  Paul Eggert  <eggert@twinsun.com>
24121
24122         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
24123
24124 2000-07-23  Paul Eggert  <eggert@twinsun.com>
24125
24126         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
24127         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
24128         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
24129         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
24130         invoke multibyte primitives.
24131
24132 2000-07-23  Paul Eggert  <eggert@twinsun.com>
24133
24134         * lib/quotearg.c:
24135         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
24136         so that mbstate_t is always defined.
24137
24138         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
24139         be 1 in at least one GCC installation, and this configuration
24140         error is likely to be common.  Ignoring MB_LEN_MAX hurts
24141         performance on hosts that have mbrtowc but have only unibyte
24142         locales, but I assume these hosts are rare.
24143
24144 2000-07-23  Paul Eggert  <eggert@twinsun.com>
24145
24146         * lib/mbswidth.c (_XOPEN_SOURCE):
24147         Don't define; this causes problems on Solaris 7.
24148         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
24149
24150 2000-07-23  Jim Meyering  <meyering@lucent.com>
24151
24152         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
24153         too: getgrgid, getpwuid, getuid.
24154
24155 2000-07-23  Jim Meyering  <meyering@lucent.com>
24156
24157         * lib/basename.c (base_name): Add an assertion.
24158
24159 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
24160
24161         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
24162         shadow its mbsinit function.
24163
24164 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
24165
24166         * lib/mbswidth.h: New file.
24167         * lib/mbswidth.c: New file.
24168         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
24169         (noinst_HEADERS): Add mbswidth.h.
24170
24171 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
24172
24173         * lib/config.charset: Add support for FreeBSD. Improve support for
24174         HP-UX and IRIX 6.
24175
24176 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
24177
24178         * m4/mbswidth.m4: New file.
24179         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
24180
24181 2000-07-15  Jim Meyering  <meyering@lucent.com>
24182
24183         * lib/makepath.c: Include quote.h.
24184         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
24185         corresponding argument in a `quote (...)' call.
24186         Give better diagnostics.
24187
24188         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
24189         (noinst_HEADERS): Add quote.h.
24190
24191         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
24192         from tar's src/misc.c.
24193         * lib/quote.h: New file.  Prototypes for same.
24194
24195 2000-07-14  Paul Eggert  <eggert@twinsun.com>
24196
24197         From a suggestion by Bruno Haible.
24198         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
24199         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
24200         to decide whether to define the BeOS workaround macro;
24201         this adjusts to the change to AC_MBSTATE_T.
24202
24203 2000-07-14  Jim Meyering  <meyering@lucent.com>
24204
24205         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
24206         jm_AC_TYPE_UINTMAX_T.
24207
24208 2000-07-13  Paul Eggert  <eggert@twinsun.com>
24209
24210         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
24211
24212         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
24213         quotearg_buffer_restyled): Add support for
24214         clocale_quoting_style.  Undo previous change to
24215         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
24216         and "{RIGHT QUOTATION MARK}" msgids.
24217
24218 2000-07-10  Paul Eggert  <eggert@twinsun.com>
24219
24220         From a suggestion by Bruno Haible.
24221         * m4/mbstate_t.m4 (AC_MBSTATE_T):
24222         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
24223         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
24224         and mbstate_t, to a single-part test that simply defines mbstate_t.
24225         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
24226         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
24227
24228 2000-07-10  Jim Meyering  <meyering@lucent.com>
24229
24230         * m4/strerror_r.m4: Mirror the correction made in autoconf.
24231
24232         * m4/gnu-source.m4: Output to confdefs.h directly.
24233         Suggestion from Akim Demaille.
24234
24235 2000-07-09  Paul Eggert  <eggert@twinsun.com>
24236
24237         The old behavior of quoting `like this' doesn't look good with
24238         newer, ISO-style fonts.  See:
24239         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
24240
24241         Instead, quote "like this" by default.  Let the translator
24242         tailor the locale-specific quoting behavior by providing
24243         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
24244
24245         * lib/quotearg.c (N_): New macro.
24246         (gettext_default): New function.
24247         (quotearg_buffer_restyled): Use
24248         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
24249         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
24250
24251 2000-07-09  Jim Meyering  <meyering@lucent.com>
24252
24253         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
24254         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
24255
24256         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
24257         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
24258
24259 2000-07-09  Jim Meyering  <meyering@lucent.com>
24260
24261         * lib/Most files: Update copyright dates to include 2000.
24262
24263 2000-07-08  Jim Meyering  <meyering@lucent.com>
24264
24265         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
24266         if not defined.
24267         (xgethostname): Remove now-unnecessary #ifdef.
24268         Move declaration of `err' into loop where it's used.
24269
24270 2000-07-05  Paul Eggert  <eggert@twinsun.com>
24271         and Bruno Haible  <haible@clisp.cons.org>
24272
24273         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
24274         only if the test for an object-type mbstate_t fails.  This
24275         prevents us from mistakenly reporting that mbstate_t is a
24276         system object type after we "#define mbstate_t int" to work
24277         around its lack.
24278
24279 2000-07-05  Paul Eggert  <eggert@twinsun.com>
24280         and Bruno Haible  <haible@clisp.cons.org>
24281
24282         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
24283
24284 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
24285
24286         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
24287         to strerror_r.
24288         Include <ctype.h> for use of isalpha.
24289
24290 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
24291
24292         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
24293         by allocating a larger buffer. Test the gethostname return value for
24294         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
24295         returns an error and ENAMETOOLONG isn't defined.
24296
24297 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
24298
24299         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
24300         dimension.
24301
24302 2000-07-04  Jim Meyering  <meyering@lucent.com>
24303
24304         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
24305         of the deprecated AC_CHECKING.
24306
24307 2000-07-04  Jim Meyering  <meyering@lucent.com>
24308
24309         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
24310         Reported by Bruno Haible.
24311
24312 2000-07-04  Jim Meyering  <meyering@lucent.com>
24313
24314         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
24315         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
24316         lacks mbrtowc.
24317
24318 2000-07-03  Paul Eggert  <eggert@twinsun.com>
24319
24320         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
24321         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
24322
24323 2000-07-03  Paul Eggert  <eggert@twinsun.com>
24324         and Bruno Haible  <haible@clisp.cons.org>
24325
24326         * lib/quotearg.c (mbrtowc):
24327         Assign to *pwc, and return 1 only if result is nonzero.
24328         (iswprint): Use ISPRINT when substituting our own mbrtowc.
24329
24330 2000-07-03  Jim Meyering  <meyering@lucent.com>
24331
24332         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
24333
24334 2000-07-03  Jim Meyering  <meyering@lucent.com>
24335
24336         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
24337         This is necessary to get a definition of e.g., UTMP_FILE on
24338         HP-UX 10.20.
24339         From Bob Proulx.
24340
24341 2000-07-02  Jim Meyering  <meyering@lucent.com>
24342
24343         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
24344
24345         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
24346         AC_LIBOBJ(function_name).
24347         * m4/chown.m4: Likewise.
24348         * m4/fnmatch.m4: Likewise.
24349         * m4/ftruncate.m4: Likewise.
24350         * m4/getgroups.m4: Likewise.
24351         * m4/getline.m4: Likewise.
24352         * m4/group-member.m4: Likewise.
24353         * m4/jm-macros.m4: Likewise.
24354         * m4/lstat.m4: Likewise.
24355         * m4/malloc.m4: Likewise.
24356         * m4/memcmp.m4: Likewise.
24357         * m4/nanosleep.m4: Likewise.
24358         * m4/putenv.m4: Likewise.
24359         * m4/realloc.m4: Likewise.
24360         * m4/regex.m4: Likewise.
24361         * m4/stat.m4: Likewise.
24362         * m4/strftime.m4: Likewise.
24363
24364 2000-07-02  Jim Meyering  <meyering@lucent.com>
24365
24366         * lib/quotearg.c (mbstate_t): Don't define here.
24367
24368 2000-07-02  Jim Meyering  <meyering@lucent.com>
24369
24370         * lib/nanosleep.c (SIGCONT): Define if not already defined.
24371
24372 2000-07-01  Jim Meyering  <meyering@lucent.com>
24373
24374         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
24375
24376 2000-07-01  Jim Meyering  <meyering@lucent.com>
24377
24378         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
24379         problem.
24380
24381 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
24382
24383         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
24384         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
24385
24386 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
24387
24388         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
24389         per change in ../m4/ls-mntd-fs.m4.
24390         (read_filesystem_list): Ignore symbolic links.
24391
24392 2000-06-29  Jim Meyering  <meyering@lucent.com>
24393
24394         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
24395         for declaration of strcmp.
24396
24397         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
24398
24399         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
24400         Avoid warning by casting result to `char *' to remove `const'.
24401
24402 2000-06-28  Jim Meyering  <meyering@lucent.com>
24403
24404         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
24405         included by quotearg.c, for which we perform this test.  From
24406         Bruno Haible.
24407
24408 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
24409
24410         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
24411         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
24412         <utmpx.h> exists, put readutmp.o into LIBOBJS.
24413
24414 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
24415
24416         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
24417
24418 2000-06-26  Paul Eggert  <eggert@twinsun.com>
24419
24420         savedir now sets errno on failure and invokes xmalloc to get memory.
24421         Fix a couple of other minor bugs while we're at it.
24422
24423         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
24424         (NAMLEN): Remove macro.
24425         (malloc, realloc): Remove decls.
24426         (stpcpy): Likewise.
24427         ("xalloc.h"): Include.
24428         (NAME_SIZE_DEFAULT): New macro.
24429         (savedir): Use xmalloc / xrealloc to allocate memory.
24430         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
24431         Skip "" directory entries.
24432         Use strlen to calculate directory entry length, since the old method
24433         is rarely used these days and isn't worth supporting.
24434         Don't use a pointer after freeing it.
24435         Check for integer overflow when calculating allocation size.
24436         Use memcpy to copy entries, instead of stpcpy.
24437         Set errno properly when returning NULL.
24438         Check for readdir error.
24439
24440 2000-06-26  Jim Meyering  <meyering@lucent.com>
24441
24442         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
24443
24444 2000-06-25  Jim Meyering  <meyering@lucent.com>
24445
24446         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
24447         Linux header bug when _XOPEN_SOURCE is defined to 500.
24448
24449 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
24450
24451         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
24452         deficiency.
24453
24454 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
24455
24456         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
24457         Include xalloc.h.
24458         Don't include <stdlib.h>.  Don't declare malloc, realloc.
24459
24460 2000-06-24  Jim Meyering  <meyering@lucent.com>
24461
24462         * m4/strerror_r.m4: Revive this file -- to try out an experimental
24463         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
24464         for which strerror does return char*, but which lacks a conveniently
24465         accessible declaration of the function.  If the compile-test says
24466         strerror_r doesn't work, then resort to a `run'-test that works on
24467         BeOS and segfaults on DEC Unix.
24468
24469 2000-06-24  Jim Meyering  <meyering@lucent.com>
24470
24471         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
24472
24473 2000-06-23  Paul Eggert  <eggert@twinsun.com>
24474
24475         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
24476         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
24477
24478 2000-06-23  Paul Eggert  <eggert@twinsun.com>
24479
24480         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
24481         (mbrtowc, mbstate_t): Define substitutes if
24482         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
24483         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
24484         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
24485
24486 2000-06-23  Jim Meyering  <meyering@lucent.com>
24487
24488         * m4/afs.m4: Add missing AC_MSG_RESULT.
24489         Reported by Bruno Haible.
24490
24491         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
24492         Suggestion from Bruno Haible.
24493
24494 2000-06-23  Jim Meyering  <meyering@lucent.com>
24495
24496         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
24497
24498 2000-06-21  Jim Meyering  <meyering@lucent.com>
24499
24500         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
24501
24502 2000-06-21  Jim Meyering  <meyering@lucent.com>
24503
24504         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
24505         (noinst_HEADERS): Add getstr.h.
24506
24507         * lib/getline.c (getstr): Move into a separate file.
24508         * lib/getstr.c (getstr): New file, extracted from getline.c, with
24509         the following changes: new parameter, delim2; both delim[12]
24510         parameters have type `int', not `char'.  The latter would lose
24511         with 8-bit delimiters.
24512         * lib/getstr.h: New file.
24513
24514 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
24515
24516         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
24517         than 1024, return a memory chunk of least possible size, instead
24518         of size PATH_MAX + 2. In the loop, increment the size proportionally.
24519         Use free/xmalloc instead of xrealloc to avoid copying for very long
24520         paths.
24521
24522 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
24523
24524         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
24525         the empty string.
24526
24527 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
24528
24529         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
24530         address, not strdup.  Include <stdlib.h> and don't declare free().
24531
24532 2000-06-19  Jim Meyering  <meyering@lucent.com>
24533
24534         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
24535
24536 2000-06-18  Jim Meyering  <meyering@lucent.com>
24537
24538         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
24539
24540         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
24541         `checking whether...' message to be consistent with that of the
24542         lstat test.
24543
24544 2000-06-18  Jim Meyering  <meyering@lucent.com>
24545
24546         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
24547         Besides, these days every porting target provides a mkdir function.
24548
24549         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
24550         needed. (this snippet comes from src/system.h).
24551
24552 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
24553
24554         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
24555
24556 2000-06-15  Paul Eggert  <eggert@twinsun.com>
24557
24558         * lib/human.c (adjust_value): New function.
24559         (human_readable_inexact): Apply rounding style even when
24560         printing approximate values.
24561
24562 2000-06-14  Paul Eggert  <eggert@twinsun.com>
24563
24564         * lib/human.c (human_readable_inexact): Allow an input block
24565         size that is not a multiple of the output block size, and vice versa.
24566         Reported by Piergiorgio Sartor.
24567
24568 2000-06-14  Paul Eggert  <eggert@twinsun.com>
24569
24570         * lib/getdate.y (get_date): Apply relative times after time
24571         zone indicator, not before.  Reported by Todd A. Jacobs.
24572
24573 2000-06-13  Jim Meyering  <meyering@lucent.com>
24574
24575         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
24576
24577         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
24578
24579 2000-06-12  Paul Eggert  <eggert@twinsun.com>
24580
24581         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
24582
24583 2000-06-12  Jim Meyering  <meyering@lucent.com>
24584
24585         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
24586         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
24587         optional argument.
24588         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
24589         the optional argument, `lib'.
24590
24591 2000-06-08  Jim Meyering  <meyering@lucent.com>
24592
24593         * m4/largefile.m4: Remove file (now that it's part of autoconf).
24594
24595 2000-06-04  Paul Eggert  <eggert@twinsun.com>
24596
24597         Rewrite largefile configuration so that we don't need to run
24598         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
24599         AC_CANONICAL_HOST in configure.in -- jmm]
24600
24601         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
24602         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
24603         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
24604         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
24605         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
24606         All uses changed.
24607         Instead of inspecting the output of getconf, try to compile the
24608         test program without and with the macro definition.
24609         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
24610         for getconf.  Instead, check for the needed flags by compiling
24611         test programs.
24612
24613 2000-06-04  Paul Eggert  <eggert@twinsun.com>
24614
24615         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
24616
24617 2000-06-04  Jim Meyering  <meyering@lucent.com>
24618
24619         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
24620         SunOS 4.1.4 for which gid_t is an unsigned type.
24621
24622 2000-06-03  Jim Meyering  <meyering@lucent.com>
24623
24624         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
24625         now that autoconf requires that.
24626
24627         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
24628         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
24629         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
24630
24631 2000-06-03  Jim Meyering  <meyering@lucent.com>
24632
24633         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
24634
24635 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
24636
24637         * m4/glibc21.m4: New file.
24638         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
24639
24640 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
24641
24642         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
24643         newer, don't install charset.alias.
24644         * lib/config.charset: Change the Linux/glibc rules so they become empty
24645         on glibc-2.1 or newer.
24646
24647 2000-06-02  Jim Meyering  <meyering@lucent.com>
24648
24649         * lib/mountlist.c: Back out last change.  Instead, do this...
24650         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
24651         me_dummy member using the same `ignore'-testing code.
24652         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
24653         fs_type strings.
24654         From Mark D. Roth.
24655
24656 2000-05-29  Jim Meyering  <meyering@lucent.com>
24657
24658         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
24659         mounts with the `ignore' attribute.  Based on a patch from
24660         Mark D. Roth.
24661
24662 2000-05-28  Jim Meyering  <meyering@lucent.com>
24663
24664         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
24665         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
24666         * m4/stat.m4: Likewise.
24667         * m4/lstat.m4: Likewise.
24668         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
24669
24670         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
24671         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
24672
24673 2000-05-26  Jim Meyering  <meyering@lucent.com>
24674
24675         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
24676
24677 2000-05-24  Jim Meyering  <meyering@lucent.com>
24678
24679         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
24680         autoconf requires that.
24681         * m4/lib-check.m4: Likewise.
24682         * m4/jm-macros.m4: Likewise.
24683         * m4/strftime.m4: Likewise.
24684
24685         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
24686         AC_CHECK_DECLS, now that autoconf requires that.
24687
24688 2000-05-22  Jim Meyering  <meyering@lucent.com>
24689
24690         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
24691         * m4/lstat.m4: Likewise.
24692
24693 2000-05-22  Jim Meyering  <meyering@lucent.com>
24694
24695         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
24696
24697 2000-05-20  Jim Meyering  <meyering@lucent.com>
24698
24699         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
24700         (jm_PREREQ): Use it.
24701
24702 2000-05-18  Jim Meyering  <meyering@lucent.com>
24703
24704         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
24705         back, too, since it may have been modified by allocate_entry.
24706         (hash_delete): Rewrite to use neither the assignment operator
24707         nor the comma operator in an if-expression.
24708
24709 2000-05-15  Paul Eggert  <eggert@twinsun.com>
24710
24711         * lib/closeout.c:
24712         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
24713         Remove; no longer needed.
24714         "quotearg.h": Add include.
24715         (file_name): Do not bother to explicitly initialize to NULL; it's less
24716         efficient on some hosts.
24717         (close_stdout_status): Remove test as to whether stdout was already
24718         closed; it breaks for the case "echo x | sort >&-".
24719         Quote file name colons.
24720         Do not assume that _("write error") lacks format strings.
24721
24722 2000-05-15  Jim Meyering  <meyering@lucent.com>
24723
24724         * lib/version-etc.c (version_etc_copyright): Update the copyright
24725         string used in all --version output.
24726
24727 2000-05-14  Jim Meyering  <meyering@lucent.com>
24728
24729         * lib/closeout.c (close_stdout_set_file_name): New function.
24730         (close_stdout_status): Use new file-scoped global.
24731         Return right away if fstat says the stdout file descriptor is invalid.
24732         * lib/closeout.h (close_stdout_set_file_name): Declare.
24733
24734 2000-05-10  Jim Meyering  <meyering@lucent.com>
24735
24736         * lib/closeout.c [default_exit_status]: New file-scoped variable.
24737         (close_stdout_set_status): New function.
24738         * lib/closeout.h (close_stdout_set_status): Declare.
24739
24740 2000-05-09  Jim Meyering  <meyering@lucent.com>
24741
24742         * m4/gettext.m4: Rename this...
24743         * m4/libintl.m4: ...to this.
24744
24745 2000-05-08  Jim Meyering  <meyering@lucent.com>
24746
24747         * lib/long-options.c: Don't include closeout.h.
24748         (parse_long_options): Don't call close_stdout for --version.
24749
24750 2000-05-06  Paul Eggert  <eggert@twinsun.com>
24751
24752         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
24753         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
24754         2.1.3 bug.  This avoids a clash when files like regex.c define
24755         _GNU_SOURCE.
24756
24757 2000-05-06  Jim Meyering  <meyering@lucent.com>
24758
24759         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
24760         (AC_REPLACE_FUNCS): Add strnlen.
24761
24762         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
24763         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
24764
24765         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
24766         AC_SEARCH_LIBS call for nanosleep.
24767         (LIB_NANOSLEEP): Set and AC_SUBST.
24768
24769 2000-05-06  Jim Meyering  <meyering@lucent.com>
24770
24771         * lib/strnlen.c: Undefine __strnlen and strnlen.
24772         [!weak_alias]: Define __strnlen to strnlen.
24773
24774         * lib/atexit.c: New file, from libiberty.
24775
24776 2000-05-06  Jim Meyering  <meyering@lucent.com>
24777
24778         * lib/closeout.c (close_stdout_status): Also check for errors on the
24779         stderr stream.
24780
24781 2000-05-05  Jim Meyering  <meyering@lucent.com>
24782
24783         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
24784         AC_SEARCH_LIBS call for clock_gettime.
24785         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
24786
24787         * m4/search-libs.m4: Update from autoconf.
24788
24789         su doesn't work on Solaris 2.6.
24790         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
24791         <shadow.h>.  Reported by Dragos Harabor.
24792
24793 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
24794
24795         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
24796         memcpy instead of xmalloc, xrealloc, path_concat.
24797         (locale_charset): Treat empty environment variables as absent.
24798         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
24799
24800 2000-05-04  Jim Meyering  <meyering@lucent.com>
24801
24802         * lib/getopt.c: Update from glibc.
24803         * lib/obstack.c: Likewise.
24804         * lib/obstack.h: Likewise.
24805         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
24806         file
24807
24808         * lib/regex.h: Likewise.
24809         * lib/strndup.c: Likewise.
24810         * lib/strnlen.c: New file, from glibc.
24811
24812 2000-05-03  Jim Meyering  <meyering@lucent.com>
24813
24814         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
24815
24816 2000-05-02  Paul Eggert  <eggert@twinsun.com>
24817
24818         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
24819         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
24820         compile-time test, rather than inspecting host and OS, to
24821         decide whether to define _LARGEFILE_SOURCE.
24822
24823 2000-05-01  Jim Meyering  <meyering@lucent.com>
24824
24825         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
24826
24827         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
24828         Based on a patch from Bruno Haible.
24829
24830 2000-05-01  Jim Meyering  <meyering@lucent.com>
24831
24832         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
24833
24834 2000-04-29  Jim Meyering  <meyering@lucent.com>
24835
24836         * lib/path-concat.c: Declare strdup only if it's not defined.
24837         * lib/canon-host.c: Likewise.
24838
24839 2000-04-28  Jim Meyering  <meyering@lucent.com>
24840
24841         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
24842         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
24843         is included first, then limits.h is included by locale.h by libintl.h.
24844         From John David Anglin.
24845
24846 2000-04-25  Jim Meyering  <meyering@lucent.com>
24847
24848         * lib/makepath.c (S_IRWXUGO): Define.
24849         (make_path): Always perform explicit chmod if MODE specifies any
24850         of the `special' permission bits.  Prompted by a bug report against
24851         install from Mate Wierdl and Joost van Baal.
24852
24853 2000-04-18  Jim Meyering  <meyering@lucent.com>
24854
24855         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
24856         (jm_PREREQ): Use it.
24857
24858 2000-04-18  Jim Meyering  <meyering@lucent.com>
24859
24860         * lib/README: New file.
24861
24862         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
24863         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
24864
24865 2000-04-17  Jim Meyering  <meyering@lucent.com>
24866
24867         Get it right :-)
24868         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
24869         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
24870         Suggestion from Akim Demaille.
24871
24872 2000-04-17  Jim Meyering  <meyering@lucent.com>
24873
24874         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
24875         the definition of it to rpl_strftime also defined-away the system's
24876         declaration.
24877
24878 2000-04-15  Jim Meyering  <meyering@lucent.com>
24879
24880         Use `C' to denote so-called `contiguous' files, the same way
24881         that tar does.
24882         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
24883         (ftypelet): Use S_ISCTG.
24884         From Michael Deutschmann.
24885
24886 2000-04-14  Jim Meyering  <meyering@lucent.com>
24887
24888         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
24889         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
24890         clobbered.
24891
24892 2000-04-14  Jim Meyering  <meyering@lucent.com>
24893
24894         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
24895
24896 2000-04-13  Jim Meyering  <meyering@lucent.com>
24897
24898         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
24899         AH_VERBATIM to insert required #ifndef into config.h.in.
24900         Suggestion from Akim Demaille.
24901
24902 2000-04-12  Jim Meyering  <meyering@lucent.com>
24903
24904         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
24905         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
24906         Christian Krackowizer.
24907
24908         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
24909         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
24910         (AC_SYS_LARGEFILE): Require.
24911         (AM_C_PROTOTYPES): Require.
24912
24913 2000-04-08  Jim Meyering  <meyering@lucent.com>
24914
24915         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
24916         names don't conflict.  Reported by Eli Zaretskii.
24917
24918 2000-04-07  Jim Meyering  <meyering@lucent.com>
24919
24920         * lib/putenv.c: Move inclusion of errno.h so it follows that of
24921         sys/types.h, to work around system header problems on AIX 3.2.5.
24922         From Bruno Haible.
24923
24924 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
24925
24926         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
24927         bug.  Deal with the different error behavior of Irix iconv.
24928
24929 2000-04-05  Paul Eggert  <eggert@twinsun.com>
24930
24931         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
24932         IRIX if the installer said otherwise.
24933
24934 2000-04-05  Jim Meyering  <meyering@lucent.com>
24935
24936         Portability tweaks required for ultrix4.3.
24937         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
24938         (jm_CHECK_DECLS): Add getutent to the list of functions.
24939         (_jm_DECL_HEADERS): Add utmpx.h.
24940         From John David Anglin.
24941
24942         * m4/strftime.m4: Back out the 2000-04-02 change.
24943         Instead of that change, simply undefine putenv in the test program.
24944
24945 2000-04-05  Jim Meyering  <meyering@lucent.com>
24946
24947         Portability tweaks required for ultrix4.3.
24948         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
24949         getutent.
24950         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
24951         * lib/canon-host.c: Declare strdup.
24952         * lib/path-concat.c: Likewise.
24953         From John David Anglin.
24954
24955 2000-04-04  Jim Meyering  <meyering@lucent.com>
24956
24957         Be more DOS 8.3-friendly.
24958         * lib/ref-add.sin: Renamed from ref-add.sed.in.
24959         * lib/ref-del.sin: Renamed from ref-del.sed.in.
24960         * lib/Makefile.am: Reflect renaming.
24961         Reported by Eli Zaretskii.
24962
24963         Use a temporary file name that won't clash with `charset.alias'
24964         in the DOS 8.3 name space.
24965         * lib/Makefile.am (charset_tmp): Define.
24966         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
24967         (uninstall-local): Likewise.
24968         Reported by Eli Zaretskii.
24969
24970 2000-04-03  Jim Meyering  <meyering@lucent.com>
24971
24972         * m4/gettext.m4: Fix typo in comment.
24973
24974         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
24975         textutils/configure.in).  Suggestion from Paul Eggert.
24976         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
24977
24978 2000-04-02  Paul Eggert  <eggert@twinsun.com>
24979
24980         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
24981         variable in the shell rather than using putenv, which isn't
24982         portable.  This avoids the configure-time inter-test dependency
24983         on the potentially-renamed putenv function.
24984
24985 2000-03-30  Paul Eggert  <eggert@twinsun.com>
24986
24987         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
24988         before checking struct stat.st_blksize, so that
24989         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
24990
24991 2000-03-29  Paul Eggert  <eggert@twinsun.com>
24992
24993         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
24994         since strftime.c uses HAVE_STRFTIME to decide whether to use
24995         the underlying strftime.
24996
24997 2000-03-29  Paul Eggert  <eggert@twinsun.com>
24998
24999         * lib/time/strftime.c (my_strftime): Make sure we call the system
25000         strftime, not ourselves, when invoking the underlying strftime.
25001
25002 2000-03-24  Jim Meyering  <meyering@lucent.com>
25003
25004         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
25005         (charset_alias): Define.
25006         (install-exec-local): Factor out common code.
25007         (uninstall-local): Split lines longer than 80.
25008         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
25009         (SUFFIXES): Define.
25010         (.sed.in.sed): New rule.  Don't redirect directly to $@.
25011         (CLEANFILES): Add ref-add.sed and ref-del.sed.
25012
25013 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
25014
25015         * lib/config.charset: Output a line containing "Packages using this
25016         file".
25017         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
25018         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
25019         ref-del.sed): New rules.
25020
25021 2000-03-17  Jim Meyering  <meyering@lucent.com>
25022
25023         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
25024         Otherwise, include <strings.h>
25025
25026 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
25027
25028         * lib/unicodeio.c (utf8_wctomb): New function.
25029         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
25030         format instead of in UCS-4 with platform dependent endianness.
25031
25032 2000-03-10  Jim Meyering  <meyering@lucent.com>
25033
25034         * m4/lib-check.m4: Look for getspnam in -lgen, too.
25035         From Marco Franzen.
25036
25037 2000-03-07  Paul Eggert  <eggert@twinsun.com>
25038
25039         * lib/savedir.c (savedir): Work even if directory size is
25040         negative; this can happen with some screwy NFS configurations.
25041
25042 2000-03-06  Jim Meyering  <meyering@lucent.com>
25043
25044         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
25045         if it's NULL (because we ran out of memory).  From Bruno Haible.
25046
25047 2000-03-05  Jim Meyering  <meyering@lucent.com>
25048
25049         * lib/localcharset.c ("path-concat.h"): Include.
25050         (get_charset_aliases): Use path_concat instead of ANSI string
25051         concatenation.
25052
25053         * lib/unicodeio.h (PARAMS): Define.
25054         Use it to guard prototype.
25055
25056 2000-03-04  Jim Meyering  <meyering@lucent.com>
25057
25058         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
25059         for lib/localcharset.c.
25060
25061 2000-03-04  Jim Meyering  <meyering@lucent.com>
25062
25063         * lib/Makefile.am (install-exec-local): Create $(libdir) before
25064         installing into it.
25065         (uninstall-local): Uncomment this rule so `make distcheck' works
25066         once again.
25067
25068         * lib/unicodeio.c (<errno.h>): Include it.
25069         (errno): Declare if not defined.
25070
25071         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
25072
25073         * lib/config.charset: New version, incorporating remarks from a linux
25074         i18n mailing list.  From Bruno Haible.
25075
25076 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
25077
25078         * m4/codeset.m4: New file.
25079         * m4/iconv.m4: New file.
25080         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
25081
25082 2000-03-03  Jim Meyering  <meyering@lucent.com>
25083
25084         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
25085
25086 2000-03-02  Jim Meyering  <meyering@lucent.com>
25087
25088         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
25089         the messages come out on separate lines.
25090
25091         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
25092         rather than jm_CHECK_DECLARATIONS.
25093         * m4/decl.m4: Remove now-unused file.
25094
25095         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
25096         geteuid.
25097
25098 2000-03-02  Jim Meyering  <meyering@lucent.com>
25099
25100         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
25101
25102 2000-03-01  Jim Meyering  <meyering@lucent.com>
25103
25104         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
25105         * lib/unicodeio.c: Likewise.
25106
25107 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
25108
25109         * lib/config.charset: New file.
25110         * lib/localcharset.c: New file.
25111         * lib/unicodeio.h, lib/unicodeio.c: New files.
25112         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
25113         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
25114         (noinst_HEADERS): Add unicodeio.h.
25115         (all-local, install-exec-local, charset.alias): New targets.
25116
25117 2000-02-28  Paul Eggert  <eggert@twinsun.com>
25118
25119         * lib/quotearg.c (ALERT_CHAR): New macro.
25120         (quotearg_buffer_restyled): Use it.
25121
25122 2000-02-27  Jim Meyering  <meyering@lucent.com>
25123
25124         * m4/check-decl.m4: Add getenv to the list.
25125
25126 2000-02-27  Jim Meyering  <meyering@lucent.com>
25127
25128         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
25129         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
25130
25131         * lib/backupfile.c: Guard inclusion of stdlib.h with
25132         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
25133         Declare malloc if needed.
25134
25135         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
25136         `#ifndef HAVE_DECL..'
25137         now that autoconf always defines the HAVE_DECL_ symbols.
25138         * lib/human.c: Likewise.
25139         * lib/same.c: Likewise.
25140         * lib/strtoumax.c: Likewise.
25141
25142         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
25143         declaration check was not run.
25144         * lib/hash.c: Likewise.
25145         * lib/human.c: Likewise.
25146         * lib/same.c: Likewise.
25147         * lib/strtoumax.c: Likewise.
25148
25149         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
25150         `.', then first look up the entire `.'-containing string as a login
25151         name.
25152
25153 2000-02-23  Jim Meyering  <meyering@lucent.com>
25154
25155         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
25156         in place of my hack.
25157
25158 2000-02-18  Paul Eggert  <eggert@twinsun.com>
25159
25160         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
25161         (textint): New typedef.
25162         (parser_control): Member year changed from int to textint.
25163         All uses changed.
25164         (YYSTYPE): Removed; replaced by %union with int and textint members.
25165         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
25166         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
25167         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
25168         (tSNUMBER, tUNUMBER): Now of type <textintval>.
25169         (date, number, to_year): Use width of number in digits, not its value,
25170         to determine whether it's a 2-digit year, or a 2-digit time.
25171         (yylex): Store number of digits of numeric tokens.
25172         Reported by John Kendall.
25173
25174         (parser_control): Changed from struct parser_control to typedef (for
25175         consistency).  All uses changed.
25176
25177         (tID): Removed; not used.
25178         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
25179
25180 2000-02-14  Paul Eggert  <eggert@twinsun.com>
25181
25182         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
25183         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
25184
25185 2000-02-12  Jim Meyering  <meyering@lucent.com>
25186
25187         * lib/userspec.c (ISDIGIT): Define it.
25188         (isdigit): Remove definition.
25189         (is_number): Use ISDIGIT, not isdigit.
25190         <libintl.h>: Include.
25191         (_ and N_): Define.
25192         (parse_user_spec): Mark translatable strings.
25193
25194 2000-02-10  Jim Meyering  <meyering@lucent.com>
25195
25196         With these changes, nanosleep.[ch] are finally enough like the other
25197         lib/* replacement files to compile on a few more losing systems.
25198
25199         * lib/nanosleep.h: Don't include config.h.
25200         Remove prototype from declaration of nanosleep.
25201         (PARAMS): Remove now-unneeded definition.
25202         * lib/nanosleep.c: #undef nanosleep.
25203         (rpl_nanosleep): Rename from nanosleep.
25204
25205 2000-02-10  Jim Meyering  <meyering@lucent.com>
25206
25207         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
25208         gnu_nanosleep to rpl_nanosleep.
25209
25210 2000-02-09  Jim Meyering  <meyering@lucent.com>
25211
25212         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
25213         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
25214
25215 2000-02-08  Akim Demaille  <akim@epita.fr>
25216
25217         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
25218         `[' and `]' and remove uses of `changequote'.
25219         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
25220         (AC_SYS_LARGEFILE): Likewise.
25221         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
25222         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
25223         of changequote.
25224         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
25225         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
25226         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
25227         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
25228
25229 2000-02-05  Jim Meyering  <meyering@lucent.com>
25230
25231         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
25232         Remove explicit use of AC_HEADER_TIME.  It is required by
25233         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
25234         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
25235         in autoconf whereby the expansion of the latter ended up preceding
25236         the expansion of its prerequisite, AC_HEADER_TIME.
25237         Reported by Volker Borchert.
25238
25239 2000-02-03  Jim Meyering  <meyering@lucent.com>
25240
25241         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
25242
25243 2000-02-03  Jim Meyering  <meyering@lucent.com>
25244
25245         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
25246         rather than with `#if HAVE_UTMPNAME'.
25247
25248 2000-02-02  Jim Meyering  <meyering@lucent.com>
25249
25250         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
25251         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
25252         Reported by Eli Zaretskii.
25253
25254 2000-02-01  Jim Meyering  <meyering@lucent.com>
25255
25256         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
25257
25258 2000-01-31  Jim Meyering  <meyering@lucent.com>
25259
25260         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
25261         functions.  Add the time.h and sys/time.h headers along with the
25262         AC_REQUIRE'ment of AC_HEADER_TIME.
25263
25264 2000-01-31  Jim Meyering  <meyering@lucent.com>
25265
25266         * lib/nanosleep.h (nanosleep): Guard declaration with
25267         `#if ! HAVE_DECL_NANOSLEEP'.
25268         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
25269         the declaration in that vendor's sys/timers.h.
25270         Reported by Christian Krackowizer.
25271
25272         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
25273         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
25274         (ISPRINT): Likewise.
25275         Reported by Tom Tromey.
25276
25277 2000-01-30  Jim Meyering  <meyering@lucent.com>
25278
25279         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
25280
25281         * m4/prereq.m4 (utmp_includes): Define.
25282         Check for ut_user and ut_name members in both struct utmpx
25283         and struct utmp.
25284
25285 2000-01-30  Jim Meyering  <meyering@lucent.com>
25286
25287         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
25288         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
25289         header files where only utmpx.ut_user is declared.
25290
25291         * lib/readutmp.h (UT_USER): Define.
25292
25293 2000-01-29  Jim Meyering  <meyering@lucent.com>
25294
25295         * m4/lib-check.m4: New file containing library-related checks from
25296         fileutils and sh-utils (textutils had none).
25297
25298 2000-01-28  Jim Meyering  <meyering@lucent.com>
25299
25300         * m4/perl.m4: Change format of warning message to look more like that
25301         from the missing script.  Suggestion from François Pinard.
25302
25303 2000-01-25  Jim Meyering  <meyering@lucent.com>
25304
25305         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
25306         well as time.h in the compile check.
25307         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
25308         Fix typo in cross-compiling case: s/yes/no/.
25309
25310 2000-01-23  Jim Meyering  <meyering@lucent.com>
25311
25312         * m4/jm-macros.m4: Move df-related tests here from
25313         fileutils/configure.in
25314
25315         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
25316         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
25317
25318         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
25319         s/space/ac_fsusage_space/.
25320         (jm_FILE_SYSTEM_USAGE): Take two parameters.
25321
25322         * m4/ftruncate.m4: New file (derived from part of
25323         fileutils/configure.in).
25324         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
25325         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
25326
25327         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
25328         AC_SUBST these here, rather than just in sh-util/configure.in, so
25329         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
25330         all the same.
25331         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
25332         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
25333         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
25334         (AC_SUBST(POW_LIBM)): Likewise.
25335         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
25336
25337 2000-01-23  Jim Meyering  <meyering@lucent.com>
25338
25339         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
25340         obstack.c.
25341
25342 2000-01-22  Jim Meyering  <meyering@lucent.com>
25343
25344         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
25345
25346         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
25347
25348         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
25349         configure.in
25350         (AC_CHECK_HEADERS): Likewise for sh-utils.
25351         (AC_CHECK_HEADERS): Likewise for textutils.
25352         Merge the three lists of headers.
25353
25354         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
25355         from fileutils' configure.in.
25356
25357         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
25358         code. Moved tests into their own function (_jm_DECL_HEADERS) in
25359         check-decl.m4.
25360
25361         * m4/check-decl.m4: Use #if rather than #ifdef.
25362         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
25363         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
25364         (_jm_DECL_HEADERS): Define new function.
25365         (jm_CHECK_DECLARATIONS): Require it.
25366
25367 2000-01-22  Jim Meyering  <meyering@lucent.com>
25368
25369         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
25370         [! HAVE_DECL_STRTOULL]: Declare strtoull.
25371         Required for some AIX systems.  Reported by Christian Krackowizer.
25372         [TESTING] (main): New function.
25373
25374         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
25375         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
25376         letters.
25377
25378         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
25379         iswprint.
25380
25381         * lib/strverscmp.c (ISDIGIT): Define.
25382         (strverscmp): Use ISDIGIT, not isdigit.
25383
25384 2000-01-19  Jim Meyering  <meyering@lucent.com>
25385
25386         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
25387         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
25388         defines `struct timespec' in <sys/time.h>
25389
25390         * m4/c-bs-a.m4: Remove uses of changequote altogether.
25391         Thanks to Akim for explaining.
25392
25393 2000-01-17  Paul Eggert  <eggert@twinsun.com>
25394
25395         * lib/nanosleep.c (nanosleep):
25396         Don't use SA_INTERRUPT to decide whether to call sigaction, as
25397         POSIX.1 doesn't require SA_INTERRUPT and some systems
25398         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
25399         it's been part of POSIX.1 since day 1 (in 1988).
25400
25401 2000-01-17  Jim Meyering  <meyering@lucent.com>
25402
25403         * lib/interlock: Remove unused file.  Reported by François Pinard.
25404
25405 2000-01-16  Paul Eggert  <eggert@twinsun.com>
25406
25407         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
25408         alert, backslash, formfeed, and vertical tab unnecessarily in
25409         shell quoting style.
25410
25411 2000-01-16  Jim Meyering  <meyering@lucent.com>
25412
25413         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
25414         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
25415         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
25416         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
25417
25418 2000-01-16  Jim Meyering  <meyering@lucent.com>
25419
25420         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
25421         because the latter didn't work.
25422
25423 2000-01-15  Jim Meyering  <meyering@lucent.com>
25424
25425         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
25426         (AC_REPLACE_FUNCS): Add memcpy and memset.
25427         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
25428         Add strpbrk.
25429         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
25430
25431 2000-01-12  Jim Meyering  <meyering@lucent.com>
25432
25433         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
25434         (jm_PREREQ): Use it.
25435         (jm_PREREQ_READUTMP): New macro.
25436         (jm_PREREQ): Use it.
25437
25438 2000-01-11  Paul Eggert  <eggert@twinsun.com>
25439
25440         Quote multibyte characters correctly.
25441         * m4/c-bs-a.m4: New file.
25442         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
25443         (jm_PREREQ): Use it.
25444
25445 2000-01-11  Paul Eggert  <eggert@twinsun.com>
25446
25447         * m4/uintmax_t.m4: Port to autoconf 2.13.
25448
25449 2000-01-08  Jim Meyering  <meyering@ascend.com>
25450
25451         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
25452         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
25453
25454 2000-01-04  Jim Meyering  <meyering@ascend.com>
25455
25456         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
25457         jm_STRUCT_DIRENT_D_TYPE.
25458         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
25459         jm_STRUCT_DIRENT_D_INO.
25460         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
25461         jm_STRUCT_UTIMBUF.
25462         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
25463         renamings.
25464         * m4/utime.m4: Likewise.
25465
25466         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
25467         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
25468
25469 2000-01-03  Paul Eggert  <eggert@twinsun.com>
25470
25471         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
25472         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
25473
25474 2000-01-02  Jim Meyering  <meyering@ascend.com>
25475
25476         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
25477         remember if this is necessary.
25478
25479 1999-12-26  Jim Meyering  <meyering@ascend.com>
25480
25481         * m4/jm-macros.m4: Use it here.
25482         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
25483
25484 1999-12-23  Jim Meyering  <meyering@ascend.com>
25485
25486         * m4/jm-macros.m4: Check for clock_gettime (moved from
25487         fileutils/configure.in)
25488         Check for gettimeofday.
25489
25490 1999-12-20  Jim Meyering  <meyering@ascend.com>
25491
25492         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
25493         autoconf-2.14a-1999-12-20.
25494
25495 1999-12-19  Jim Meyering  <meyering@ascend.com>
25496
25497         * m4/lstat-slash.m4: New file.
25498         * m4/jm-macros.m4: Use the new macro:
25499         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
25500
25501 1999-12-07  Jim Meyering  <meyering@ascend.com>
25502
25503         * m4/perl.m4: Require that File::Compare be available, too.
25504         Too many systems seem to lack it.
25505
25506         * m4/strftime.m4: Add checks for most of the cpp macros tested in
25507         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
25508
25509 1999-11-18  Paul Eggert  <eggert@twinsun.com>
25510
25511         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
25512         problem with the QNX 4.25 shell, which doesn't propagate exit
25513         status of failed commands inside shell assignments.
25514
25515 1999-11-17  Jim Meyering  <meyering@ascend.com>
25516
25517         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
25518
25519 1999-11-07  Jim Meyering  <meyering@ascend.com>
25520
25521         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
25522
25523 1999-11-06  Jim Meyering  <meyering@ascend.com>
25524
25525         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
25526         * m4/jm-macros.m4 (jm_MACROS): Use it here.
25527
25528 1999-11-05  Jim Meyering  <meyering@ascend.com>
25529
25530         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
25531         configure.in of textutils, fileutils, and sh-utils into this one
25532         (shared between those packages) file.
25533         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
25534         AC_STRUCT_ST_BLKSIZE.
25535
25536 1999-11-03  Jim Meyering  <meyering@ascend.com>
25537
25538         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
25539         of AC_CHECK_TYPE checks includes unistd.h.
25540         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
25541         Suggestion from Akim Demaille.
25542
25543 1999-10-30  Jim Meyering  <meyering@ascend.com>
25544
25545         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
25546         m4-quoted string.
25547         * m4/ls-mntd-fs.m4: Likewise.
25548         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
25549         * m4/jm-winsz1.m4: Likewise.
25550
25551         * m4/const.m4: Remove file, since the fix made it into the experimental
25552         version of autoconf.
25553         * m4/mktime.m4: Likewise.
25554
25555         * m4/check-type.m4: Remove file, now that the latest version of
25556         AC_CHECK_TYPE takes a third arg to specify additional #includes.
25557
25558         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
25559         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
25560         AC_CHECK_TYPE.
25561
25562 1999-10-04  Jim Meyering  <meyering@ascend.com>
25563
25564         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
25565
25566 1999-09-22  Paul Eggert  <eggert@twinsun.com>
25567
25568         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
25569         2.95.1 bug with HP-UX 10.20.
25570
25571 1999-09-17  Jim Meyering  <meyering@ascend.com>
25572
25573         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
25574         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
25575         due to missing strdup (against sh-utils-2.0).
25576
25577 1999-08-29  Jim Meyering  <meyering@ascend.com>
25578
25579         * m4/jm-macros.m4: Require jm_BISON.
25580         * m4/bison.m4: New file.
25581
25582 1999-08-17  Paul Eggert  <eggert@twinsun.com>
25583
25584         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
25585         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
25586
25587 1999-08-05  Jim Meyering  <meyering@ascend.com>
25588
25589         * m4/getline.m4: Rename test file from conftestdata to conftest.data
25590         to avoid conflicts with `conftest' on 8+3 filesystems.
25591         Suggestion from Eli Zaretskii.
25592
25593 1999-08-04  Jim Meyering  <meyering@ascend.com>
25594
25595         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
25596         fileutils and sh-utils (textutils's getline test was inadequate).
25597         (AM_FUNC_GETLINE): Run this test.
25598         (AC_CHECK_FUNCS): Check for getdelim.
25599         Reported by Bob Proulx.
25600
25601 1999-08-02  Jim Meyering  <meyering@ascend.com>
25602
25603         * m4/jm-macros.m4: Add a comment.
25604
25605 1999-08-01  Paul Eggert  <eggert@twinsun.com>
25606
25607         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
25608         <inttypes.h> defines strtoumax as a macro (and not as a
25609         function).
25610
25611 1999-08-01  Paul Eggert  <eggert@twinsun.com>
25612
25613         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
25614         that we can shift, multiply and divide unsigned long long
25615         values; Ultrix cc can't do it.
25616
25617 1999-08-01  Paul Eggert  <eggert@twinsun.com>
25618
25619         * m4/mktime.m4: New file, which is a preview of what should appear
25620         in the next public autoconf release.
25621
25622 1999-08-01  Paul Eggert  <eggert@twinsun.com>
25623
25624         * m4/lfs.m4: Remove this file.
25625         * m4/largefile.m4: New file.  It contains the old contents of
25626         lfs.m4, except that all names with prefix AC_LFS have been
25627         changed to use the prefix AC_SYS_LARGEFILE instead, to be
25628         compatible with future autoconf versions.  Also, some minor m4
25629         quoting problems have been fixed.
25630
25631 1999-08-01  Paul Eggert  <eggert@twinsun.com>
25632
25633         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
25634         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
25635         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
25636         and simplify the shell code.
25637
25638 1999-08-01  Jim Meyering  <meyering@ascend.com>
25639
25640         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
25641         m4.
25642
25643 1999-07-20  Jim Meyering  <meyering@ascend.com>
25644
25645         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
25646
25647 1999-07-15  Jim Meyering  <meyering@ascend.com>
25648
25649         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
25650
25651 1999-05-22  Jim Meyering  <meyering@ascend.com>
25652
25653         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
25654
25655 1999-05-20  Jim Meyering  <meyering@ascend.com>
25656
25657         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
25658         Add a colon after each `then' in case $4 is empty.
25659
25660 1999-05-16  Jim Meyering  <meyering@ascend.com>
25661
25662         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
25663
25664 1999-05-10  Jim Meyering  <meyering@ascend.com>
25665
25666         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
25667
25668         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
25669         AC_FUNC_MKTIME.
25670
25671 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
25672
25673         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
25674
25675 1999-05-04  Paul Eggert  <eggert@twinsun.com>
25676
25677         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
25678         not CPPFLAGS, so that linking works correctly in IRIX.
25679
25680 1999-04-30  Paul Eggert  <eggert@twinsun.com>
25681
25682         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
25683
25684 1999-04-20  Paul Eggert  <eggert@twinsun.com>
25685
25686         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
25687         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
25688         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
25689         jm_AC_TYPE_UNSIGNED_LONG_LONG.
25690         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
25691
25692         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
25693
25694 1999-04-20  Jim Meyering  <meyering@ascend.com>
25695
25696         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
25697         AC_REPLACE xstroull if necessary.  From Paul Eggert.
25698         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
25699
25700 1999-04-18  Jim Meyering  <meyering@ascend.com>
25701
25702         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
25703         * m4/jm-macros.m4: Use it.
25704
25705 1999-04-06  Jim Meyering  <meyering@ascend.com>
25706
25707         * m4/strftime.m4: Remove test for %f.
25708
25709 1999-03-29  Jim Meyering  <meyering@ascend.com>
25710
25711         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
25712         superset of the AC_TYPE_* checks in the textutils, fileutils,
25713         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
25714         AC_TYPE_PID_T.
25715
25716 1999-03-28  Jim Meyering  <meyering@ascend.com>
25717
25718         * m4/jm-macros.m4: Define GNU_PACKAGE here.
25719         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
25720         replaced e.g., in the *.sh files of the sh-utils.
25721
25722 1999-03-20  Jim Meyering  <meyering@ascend.com>
25723
25724         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
25725         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
25726         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
25727
25728 1999-03-19  Jim Meyering  <meyering@ascend.com>
25729
25730         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
25731
25732 1999-03-12  Jim Meyering  <meyering@ascend.com>
25733
25734         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
25735
25736 1999-03-07  Jim Meyering  <meyering@ascend.com>
25737
25738         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
25739         declared.
25740
25741 1999-02-17  Jim Meyering  <meyering@ascend.com>
25742
25743         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
25744         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
25745
25746 1999-02-07  Jim Meyering  <meyering@ascend.com>
25747
25748         * m4/group-member.m4: New file -- extracted from sh-utils'
25749         configure.in.
25750
25751         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
25752         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
25753
25754 1999-02-06  Jim Meyering  <meyering@ascend.com>
25755
25756         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
25757         * m4/fnmatch.m4: Likewise.
25758         * m4/getgroups.m4: Likewise.
25759         * m4/lstat.m4: Likewise.
25760         * m4/malloc.m4: Likewise.
25761         * m4/putenv.m4: Likewise.
25762         * m4/realloc.m4: Likewise.
25763         * m4/regex.m4: Likewise.
25764         * m4/stat.m4: Likewise.
25765         * m4/strftime.m4: Likewise.
25766         Suggestion from Alain Magloire.
25767
25768         * m4/chown.m4: Use `.$ac_objext', not `.o'.
25769         * m4/fnmatch.m4: Likewise.
25770         * m4/getgroups.m4: Likewise.
25771         * m4/getline.m4: Likewise.
25772         * m4/lstat.m4: Likewise.
25773         * m4/malloc.m4: Likewise.
25774         * m4/memcmp.m4: Likewise.
25775         * m4/putenv.m4: Likewise.
25776         * m4/realloc.m4: Likewise.
25777         * m4/regex.m4: Likewise.
25778         * m4/stat.m4: Likewise.
25779         * m4/strftime.m4: Likewise.
25780         Suggestion from Alain Magloire.
25781
25782         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
25783         an argument.
25784
25785         * m4/regex.m4: Add a run-time Test for proper operation of
25786         re_compile_pattern.
25787
25788 1999-01-31  Jim Meyering  <meyering@ascend.com>
25789
25790         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
25791
25792 1999-01-30  Jim Meyering  <meyering@ascend.com>
25793
25794         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
25795
25796         * m4/jm-mktime.m4: Make this a wrapper around the official
25797         AM_FUNC_MKTIME rather than my private copy, now that the official one
25798         is up to date.
25799         * m4/mktime.m4: Remove file.
25800
25801         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
25802         * m4/uptime.m4: Likewise.
25803         * m4/uintmax_t.m4: Likewise.
25804
25805 1999-01-28  Jim Meyering  <meyering@ascend.com>
25806
25807         * m4/jm-macros.m4: Use jm_AFS.
25808         * m4/afs.m4: New file (from fileutils' configure.in).
25809
25810         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
25811         * m4/chown.m4: Likewise.
25812         * m4/d-ino.m4: Likewise.
25813         * m4/d-type.m4: Likewise.
25814         * m4/fnmatch.m4: Likewise.
25815         * m4/getgroups.m4: Likewise.
25816         * m4/gettext.m4: Likewise.
25817         * m4/jm-mktime.m4: Likewise.
25818         * m4/jm-winsz2.m4: Likewise.
25819         * m4/lcmessage.m4: Likewise.
25820         * m4/ls-mntd-fs.m4: Likewise.
25821         * m4/malloc.m4: Likewise.
25822         * m4/memcmp.m4: Likewise.
25823         * m4/putenv.m4: Likewise.
25824         * m4/realloc.m4: Likewise.
25825         * m4/st_mtim.m4: Likewise.
25826         * m4/strftime.m4: Likewise.
25827
25828 1999-01-16  Jim Meyering  <meyering@ascend.com>
25829
25830         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
25831         (ARGMATCH_DIE_DECL): Define.
25832
25833 1999-01-12  Jim Meyering  <meyering@ascend.com>
25834
25835         * m4/Makefile.am.in: Rewrite to avoid using fmt.
25836         Reported by Lars Hecking.
25837
25838 1999-01-10  Jim Meyering  <meyering@ascend.com>
25839
25840         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
25841         gross kludge.
25842         * m4/inttypes_h.m4: Likewise.
25843         * m4/lstat.m4: Likewise.
25844         * m4/malloc.m4: Likewise.
25845         * m4/readdir.m4: Likewise.
25846         * m4/realloc.m4: Likewise.
25847         * m4/st_dm_mode.m4: Likewise.
25848         * m4/stat.m4: Likewise.
25849         * m4/utimbuf.m4: Likewise.
25850         * m4/utimes.m4: Likewise.
25851
25852         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
25853         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
25854         comments in config.h.in are meaningful.
25855
25856         * m4/jm-macros.m4: Require autoconf-2.13 here.
25857
25858         * m4/regex.m4: By default, don't use the included regex.c on systems
25859         with glibc 2.  Suggestion from Uli Drepper.
25860
25861 1999-01-02  Jim Meyering  <meyering@ascend.com>
25862
25863         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
25864
25865 1998-12-18  Jim Meyering  <meyering@ascend.com>
25866
25867         * m4/Makefile.am.in (Makefile.am): Simplify rule.
25868         Based on a suggestion from Lars Hecking.
25869
25870 1998-11-16  Paul Eggert  <eggert@twinsun.com>
25871
25872         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
25873
25874 1998-11-16  Jim Meyering  <meyering@ascend.com>
25875
25876         * m4/lfs.m4: Double-quote the `uname...` expression.
25877
25878 1998-11-14  Jim Meyering  <meyering@ascend.com>
25879
25880         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
25881         * m4/stat.m4: Likewise.
25882
25883 1998-11-03  Jim Meyering  <meyering@ascend.com>
25884
25885         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
25886         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
25887
25888 1998-10-18  Jim Meyering  <meyering@ascend.com>
25889
25890         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
25891
25892 1998-10-17  Jim Meyering  <meyering@ascend.com>
25893
25894         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
25895         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
25896         calls for those previously hard-coded headers.  Instead, take a new
25897         parameter.
25898         (jm_CHECK_DECLARATIONS): Reflect interface change.
25899         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
25900         (jm_CHECK_DECL_LOCALTIME_R): New macro.
25901
25902         * m4/mktime.m4: Test for spring-forward gap before long-running test.
25903
25904 1998-10-14  Jim Meyering  <meyering@ascend.com>
25905
25906         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
25907         instead of "TZ=America/Vancouver".  From Paul Eggert.
25908
25909 1998-10-11  Jim Meyering  <meyering@ascend.com>
25910
25911         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
25912         This adds a test for a recently added compatibility fix for mktime.c.
25913         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
25914
25915 1998-09-27  Jim Meyering  <meyering@ascend.com>
25916
25917         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
25918
25919         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
25920         ../configure.in, including a change from Gordon Matzigkeit to allow
25921         cross-compiling for the Hurd.
25922
25923         * m4/glibc.m4: New file/macro to test for the GNU C Library
25924         versions 1 and 2.  From Gordon Matzigkeit.
25925         Indent.
25926
25927 1998-09-21  Jim Meyering  <meyering@ascend.com>
25928
25929         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
25930
25931 1998-08-18  Paul Eggert  <eggert@twinsun.com>
25932
25933         Port nanosecond-resolution times to UnixWare 2.1.2 and
25934         pedantic Solaris 2.6.
25935
25936         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
25937         AC_STRUCT_ST_MTIM.
25938         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
25939         Generate name of ns member, instead of just 1 or undef.
25940         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
25941
25942 1998-08-15  Jim Meyering  <meyering@ascend.com>
25943
25944         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
25945         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
25946         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
25947         instead of jm_TYPE_SSIZE_T.
25948
25949 1998-08-12  Jim Meyering  <meyering@ascend.com>
25950
25951         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
25952
25953 1998-08-02  Jim Meyering  <meyering@ascend.com>
25954
25955         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
25956         in acconfig.h manually.
25957
25958 1998-07-31  Paul Eggert  <eggert@twinsun.com>
25959
25960         * m4/st_mtim.m4: New file.
25961
25962 1998-07-28  Jim Meyering  <meyering@ascend.com>
25963
25964         * m4/utimes.m4: Undef stat.
25965
25966 1998-07-25  Jim Meyering  <meyering@ascend.com>
25967
25968         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
25969         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
25970
25971 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
25972
25973         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
25974         uid and gid actually remain unchanged.
25975
25976 1998-07-07  Jim Meyering  <meyering@ascend.com>
25977
25978         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
25979
25980 1998-07-04  Jim Meyering  <meyering@ascend.com>
25981
25982         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
25983         to prove that this macro can be used in packages without regex.c.
25984
25985 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
25986
25987         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
25988         is to be used.
25989
25990 1998-07-03  Jim Meyering  <meyering@ascend.com>
25991
25992         * m4/gettext.m4: Add -lintl if it's found to be necessary.
25993
25994         * m4/gettext.m4: New file -- from gettext-0.10.35.
25995         * m4/lcmessage.m4: Likewise.
25996         * m4/progtest.m4: Likewise.
25997
25998         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
25999         * m4/jm-macros.m4: Require the new macro.
26000
26001 1998-06-29  Jim Meyering  <meyering@ascend.com>
26002
26003         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
26004         for the definition of NGROUPS (used in a system header included
26005         by sys/mount.h).
26006
26007 1998-06-28  Jim Meyering  <meyering@ascend.com>
26008
26009         * m4/ls-mntd-fs.m4: New file.
26010         * m4/fstypename.m4: New file.
26011
26012         * m4/jm-macros.m4: Require the new macro.
26013         * m4/jm-glibc-io.m4: New file.
26014
26015 1998-05-19  Jim Meyering  <meyering@ascend.com>
26016
26017         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
26018         * m4/lchown.m4: New file.
26019
26020         * m4/Makefile.am.in: New file.
26021         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
26022
26023 1998-05-14  Jim Meyering  <meyering@ascend.com>
26024
26025         * m4/Makefile.am (EXTRA_DIST): Add them.
26026         * m4/jm-macros.m4: New file.
26027         * m4/utimbuf.m4: New file.
26028
26029 1998-05-12  Jim Meyering  <meyering@ascend.com>
26030
26031         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
26032
26033 1998-05-11  Jim Meyering  <meyering@ascend.com>
26034
26035         * m4/isc-posix.m4: New file.
26036
26037 1998-05-10  Jim Meyering  <meyering@ascend.com>
26038
26039         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
26040
26041 1998-05-09  Jim Meyering  <meyering@ascend.com>
26042
26043         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
26044         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
26045         with automake.
26046
26047         * m4/ssize_t.m4: New file.
26048         * m4/mktime.m4: Remove file -- the new automake has this now.
26049
26050 1998-04-26  Jim Meyering  <meyering@ascend.com>
26051
26052         * m4/assert.m4: New file.
26053         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
26054
26055 1998-04-05  Jim Meyering  <meyering@ascend.com>
26056
26057         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
26058         (jm_PREREQ): Use it here.
26059
26060 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
26061
26062         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
26063         in acconfig.h.
26064
26065 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
26066
26067         * m4/prereq.m4: New file.
26068         * m4/error.m4: New file.
26069         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
26070
26071 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
26072
26073         * m4/getline.m4: Don't set am_cv_func_working_getline before the
26074         cache-check for the same variable -- that defeated the purpose of
26075         the test; the test program was never run.  This was a problem only
26076         on systems with losing getline functions -- HP-UX 10.20 is one.
26077         Reported by Bjorn Helgaas.
26078
26079 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
26080
26081         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
26082
26083 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
26084
26085         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
26086
26087         * m4/const.m4: New file.  Use an initializer in this declaration
26088         typedef int charset[2]; const charset x;
26089         Reported by Bob Glickstein.
26090
26091 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
26092
26093         * m4/chown.m4: Fix reversed types on -1 args to chown.
26094         From Kaveh Ghazi.
26095
26096 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
26097
26098         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
26099         Add lseek and memchr.
26100
26101         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
26102         T.E.Dickey <dickey@clark.net> said that some older preprocessors
26103         have a 20-character limit on names.
26104
26105 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
26106
26107         * m4/inttypes_h.m4: New file.
26108         * m4/uintmax_t.m4: New file.
26109         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
26110
26111 Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
26112   Free Software Foundation, Inc.
26113 Copying and distribution of this file, with or without modification,
26114 are permitted provided the copyright notice and this notice are preserved.