c6077b7af778570b7d4907ac778774770f9e9996
[gnulib.git] / ChangeLog
1 2007-01-28  Jim Meyering  <jim@meyering.net>
2
3         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
4         sys/time.h here, reverting that part of the previous patch:
5         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
6
7 2007-01-28  Bruno Haible  <bruno@clisp.org>
8
9         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
10         value of $(SYS_TIME_H).
11         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
12         remove it conditionally, too. [added by Jim Meyering]
13         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
14         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
15         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
16         GETTIMEOFDAY_REPLACEMENT to 1.
17
18 2007-01-28  Bruno Haible  <bruno@clisp.org>
19
20         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
21         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
22         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
23         Set UNISTD_H instead of UNISTD_H2.
24         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
25
26 2007-01-28  Bruno Haible  <bruno@clisp.org>
27
28         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
29         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
30
31 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32
33         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
34         (func_create_testdir): Ensure C locale for `grep' and `tr'
35         character ranges.
36         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
37         ACLOCAL_AMFLAGS parsing state machine.
38
39 2007-01-27  Bruno Haible  <bruno@clisp.org>
40
41         * modules/unistr/base: Update.
42
43 2007-01-27  Bruno Haible  <bruno@clisp.org>
44
45         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
46         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
47         * modules/unistr/u32-mbtouc-unsafe: Renamed from
48         modules/unistr/u32-mbtouc.
49         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
50         * lib/unistr.h: Update.
51         * lib/linebreak.c: Update.
52         * modules/unistr/u32-mbtouc: Renamed from
53         modules/unistr/u32-mbtouc-safe.
54         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
55         * lib/unistr.h: Update.
56         * lib/unistr/u32-to-u8.c: Update.
57         * lib/unistr/u32-to-u16.c: Update.
58
59 2007-01-27  Bruno Haible  <bruno@clisp.org>
60
61         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
62         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
63         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
64         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
65         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
66         * modules/unistr/u16-mbtouc-unsafe: Renamed from
67         modules/unistr/u16-mbtouc.
68         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
69         * lib/unistr.h: Update.
70         * lib/linebreak.c: Update.
71         * modules/linebreak: Update.
72         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
73         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
74         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
75         * modules/unistr/u16-mbtouc: Renamed from
76         modules/unistr/u16-mbtouc-safe.
77         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
78         * lib/unistr.h: Update.
79         * lib/unistr/u16-to-u8.c: Update.
80         * modules/unistr/u16-to-u8: Update.
81         * lib/unistr/u16-to-u32.c: Update.
82         * modules/unistr/u16-to-u32: Update.
83
84 2007-01-27  Bruno Haible  <bruno@clisp.org>
85
86         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
87         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
88         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
89         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
90         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
91         * modules/unistr/u8-mbtouc-unsafe: Renamed from
92         modules/unistr/u8-mbtouc.
93         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
94         * lib/unistr.h: Update.
95         * lib/striconveh.c: Update.
96         * modules/striconveh: Update.
97         * lib/linebreak.c: Update.
98         * modules/linebreak: Update.
99         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
100         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
101         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
102         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
103         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
104         * lib/unistr.h: Update.
105         * lib/striconveh.c: Update.
106         * modules/striconveh: Update.
107         * lib/unistr/u8-to-u16.c: Update.
108         * modules/unistr/u8-to-u16: Update.
109         * lib/unistr/u8-to-u32.c: Update.
110         * modules/unistr/u8-to-u32: Update.
111
112 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113
114         Sync from Libtool.
115         * lib/argz.c: Do not include strings.h nor memory.h, include
116         string.h unconditionally.  Patch by Simon Josefsson.
117
118 2007-01-27  Bruno Haible  <bruno@clisp.org>
119
120         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
121         from gl_HEADER_STRING_H_BODY.
122         (gl_HEADER_STRING_H_BODY): Require it.
123         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
124         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
125         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
126         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
127         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
128         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
129         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
130         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
131         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
132         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
133         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
134         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
135         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
136         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
137         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
138
139 2007-01-27  Bruno Haible  <bruno@clisp.org>
140
141         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
142         check_PROGRAMS into noinst_PROGRAMS.
143         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
144         check_PROGRAMS in this case.
145         (func_import): Set for_test to false.
146         (func_create_testdir): Set for_test to true.
147
148 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
149             Bruno Haible  <bruno@clisp.org>
150
151         * modules/strcasestr (Files): Remove lib/strcasestr.h.
152         (Depends-on): Add string.
153         (Includes): Use <string.h> instead of strcasestr.h.
154         * modules/string (Makefile.am): Also substitute the value of
155         REPLACE_STRCASESTR.
156         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
157         assume strcasestr is declared in <string.h> not <strings.h>. Also
158         set REPLACE_STRCASESTR.
159         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
160         REPLACE_STRCASESTR.
161         * lib/strcasestr.h: Remove file.
162         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
163         * lib/string_.h (strcasestr): New declaration.
164
165 2007-01-27  Bruno Haible  <bruno@clisp.org>
166
167         * lib/string_.h: Use 'extern'.
168
169 2007-01-27  Jim Meyering  <jim@meyering.net>
170
171         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
172         of set-but-not-used local, "q".
173
174         * lib/mempcpy.c: Include <config.h> before <string.h>.
175         This fixes a compilation error on HP-UX, due to the system's
176         "restrict"-using mempcpy prototype.
177
178 2007-01-26  Bruno Haible  <bruno@clisp.org>
179
180         Small optimization.
181         * lib/javacomp.c: Include c-strstr.h.
182          (is_envjavac_gcj): Use c_strstr instead of strstr.
183         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
184
185 2007-01-26  Bruno Haible  <bruno@clisp.org>
186
187         * MODULES.html.sh (Unicode string functions): Add the new modules.
188
189         * modules/uniconv/u32-strconv-to-locale: New file.
190         * lib/uniconv/u32-strconv-to-locale.c: New file.
191
192         * modules/uniconv/u16-strconv-to-locale: New file.
193         * lib/uniconv/u16-strconv-to-locale.c: New file.
194
195         * modules/uniconv/u8-strconv-to-locale: New file.
196         * lib/uniconv/u8-strconv-to-locale.c: New file.
197
198         * modules/uniconv/u32-strconv-from-locale: New file.
199         * lib/uniconv/u32-strconv-from-locale.c: New file.
200
201         * modules/uniconv/u16-strconv-from-locale: New file.
202         * lib/uniconv/u16-strconv-from-locale.c: New file.
203
204         * modules/uniconv/u8-strconv-from-locale: New file.
205         * lib/uniconv/u8-strconv-from-locale.c: New file.
206
207         * modules/uniconv/u32-strconv-to-enc: New file.
208         * lib/uniconv/u32-strconv-to-enc.c: New file.
209         * modules/uniconv/u32-strconv-to-enc-tests: New file.
210         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
211
212         * modules/uniconv/u16-strconv-to-enc: New file.
213         * lib/uniconv/u16-strconv-to-enc.c: New file.
214         * lib/uniconv/u-strconv-to-enc.h: New file.
215         * modules/uniconv/u16-strconv-to-enc-tests: New file.
216         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
217
218         * modules/uniconv/u8-strconv-to-enc: New file.
219         * lib/uniconv/u8-strconv-to-enc.c: New file.
220         * modules/uniconv/u8-strconv-to-enc-tests: New file.
221         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
222
223         * modules/uniconv/u32-strconv-from-enc: New file.
224         * lib/uniconv/u32-strconv-from-enc.c: New file.
225         * modules/uniconv/u32-strconv-from-enc-tests: New file.
226         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
227
228         * modules/uniconv/u16-strconv-from-enc: New file.
229         * lib/uniconv/u16-strconv-from-enc.c: New file.
230         * modules/uniconv/u16-strconv-from-enc-tests: New file.
231         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
232
233         * modules/uniconv/u8-strconv-from-enc: New file.
234         * lib/uniconv/u8-strconv-from-enc.c: New file.
235         * lib/uniconv/u-strconv-from-enc.h: New file.
236         * modules/uniconv/u8-strconv-from-enc-tests: New file.
237         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
238
239         * modules/uniconv/u32-conv-from-enc: New file.
240         * lib/uniconv/u32-conv-from-enc.c: New file.
241         * modules/uniconv/u32-conv-from-enc-tests: New file.
242         * tests/uniconv/test-u32-conv-from-enc.c: New file.
243
244         * modules/uniconv/u16-conv-from-enc: New file.
245         * lib/uniconv/u16-conv-from-enc.c: New file.
246         * lib/uniconv/u-conv-from-enc.h: New file.
247         * modules/uniconv/u16-conv-from-enc-tests: New file.
248         * tests/uniconv/test-u16-conv-from-enc.c: New file.
249
250         * modules/uniconv/u8-conv-from-enc: New file.
251         * lib/uniconv/u8-conv-from-enc.c: New file.
252         * modules/uniconv/u8-conv-from-enc-tests: New file.
253         * tests/uniconv/test-u8-conv-from-enc.c: New file.
254
255         * modules/uniconv/base: New file.
256         * lib/uniconv.h: New file.
257
258 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
259
260         * doc/gnulib-tool.texi (Initial import): Update to match current
261         behavior with strdup module.
262         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
263         * lib/memmem.h: Remove; all uses removed.  This is now done
264         by <string.h>.
265         * lib/mempcpy.h: Likewise.
266         * lib/memrchr.h: Likewise.
267         * lib/stpcpy.h: Likewise.
268         * lib/stpncpy.h: Likewise.
269         * lib/strcase.h: Likewise.
270         * lib/strchrnul.h: Likewise.
271         * lib/strdup.h: Likewise.
272         * lib/strndup.h: Likewise.
273         * lib/strnlen.h: Likewise.
274         * lib/strpbrk.h: Likewise.
275         * lib/strsep.h: Likewise.
276         * lib/strstr.h: Likewise.
277         * lib/strtok_r.h: Likewise.
278         * lib/string_.h: New file.
279         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
280         Rely on <string.h> instead.
281         * lib/canon-host.c: Likewise.
282         * lib/chdir-long.c: Likewise.
283         * lib/concatpath.c: Likewise.
284         * lib/exclude.c: Likewise.
285         * lib/fchdir.c: Likewise.
286         * lib/getaddrinfo.c: Likewise.
287         * lib/getcwd.c: Likewise.
288         * lib/getsubopt.c: Likewise.
289         * lib/glob.c: Likewise.
290         * lib/hard-locale.c: Likewise.
291         * lib/iconvme.c: Likewise.
292         * lib/javacomp.c: Likewise.
293         * lib/mempcpy.c: Likewise.
294         * lib/memrchr.c: Likewise.
295         * lib/regex_internal.h: Likewise.
296         * lib/stpncpy.c: Likewise.
297         * lib/strcasecmp.c: Likewise.
298         * lib/strchrnul.c: Likewise.
299         * lib/strdup.c: Likewise.
300         * lib/striconv.c: Likewise.
301         * lib/striconveh.c: Likewise.
302         * lib/striconveha.c: Likewise.
303         * lib/strncasecmp.c: Likewise.
304         * lib/strndup.c: Likewise.
305         * lib/strnlen.c: Likewise.
306         * lib/strsep.c: Likewise.
307         * lib/strstr.c: Likewise.
308         * lib/strtok_r.c: Likewise.
309         * lib/userspec.c: Likewise.
310         * lib/w32spawn.h: Likewise.
311         * lib/xstrndup.c: Likewise.
312         * lib/mountlist.c (strstr): Remove decl.
313         * m4/string_h.m4: New file.
314         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
315         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
316         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
317         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
318         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
319         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
320         Set REPLACE_STRCASECMP if necessary.
321         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
322         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
323         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
324         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
325         HAVE_DECL_STRDUP if necessary.
326         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
327         since gl_FUNC_STRNDUP does that now.
328         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
329         Check for decl here...
330         (gl_PREREQ_STRNLEN): ... not here.
331         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
332         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
333         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
334         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
335         necessary.
336         * modules/string: New file.
337         * modules/memmem (Files): Remove special-purpose include file.
338         (Depends-on): Add string.
339         (Include): Include <string.h>, not the removed file.
340         * modules/mempcpy: Likewise.
341         * modules/memrchr: Likewise.
342         * modules/stpcpy: Likewise.
343         * modules/stpncpy: Likewise.
344         * modules/strcase: Likewise.
345         * modules/strchrnul: Likewise.
346         * modules/strdup: Likewise.
347         * modules/strndup: Likewise.
348         * modules/strnlen: Likewise.
349         * modules/strpbrk: Likewise.
350         * modules/strsep: Likewise.
351         * modules/strstr: Likewise.
352         * modules/strtok_r: Likewise.
353         * tests/test-dirname.c: Don't include "strdup.h", since
354         <string.h> now suffices.
355         * tests/test-memmem.c: Don't include "memmem.h", since
356         <string.h> now suffices.
357
358 2007-01-25  Bruno Haible  <bruno@clisp.org>
359
360         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
361         *resultp is 0.
362
363         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
364         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
365         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
366         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
367
368         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
369         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
370         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
371         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
372         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
373         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
374
375 2007-01-24  Bruno Haible  <bruno@clisp.org>
376
377         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
378         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
379         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
380         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
381         gl_FUNC_FTS_CORE.
382         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
383         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
384         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
385         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
386         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
387         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
388         gl_FUNC_FCHOWNAT.
389         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
390         gl_FUNC_STRFTIME.
391         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
392         Reported by Ralf Wildenhues.
393
394 2007-01-24  Bruno Haible  <bruno@clisp.org>
395
396         Drop AC_REQUIRE calls that are redundant with the module dependencies.
397         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
398         gl_GETADDRINFO.
399         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
400         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
401         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
402
403 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
404
405         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
406         Don't use 'exit'; just return from 'main'.
407         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
408
409         * lib/fnmatch_.h: Readjust white space and comments to match
410         glibc, to avoid spurious diffs.
411
412 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
413
414         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
415         2004-12-01 change by Jakub Jelinek, since this code won't compile
416         if !LIBC.  Problem reported by Bob Proulx.
417
418 2007-01-23  Bruno Haible  <bruno@clisp.org>
419
420         * lib/striconveh.c: Include c-strcaseeq.h.
421         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
422         * modules/striconveh (Depends-on): Add c-strcaseeq.
423
424 2007-01-23  Bruno Haible  <bruno@clisp.org>
425
426         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
427
428         * modules/c-strcaseeq: New file.
429         * lib/c-strcaseeq.h: New file.
430
431         * modules/streq: New file.
432         * lib/streq.h: New file.
433
434 2007-01-23  Bruno Haible  <bruno@clisp.org>
435
436         * modules/striconveha-tests: New file.
437         * tests/test-striconveha.c: New file.
438
439         * lib/striconveha.h: Include <stdbool.h>.
440         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
441         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
442         (mem_iconveha_notranslit): Renamed from mem_iconveha.
443         (mem_iconveha): New function.
444         (str_iconveha_notranslit): Renamed from str_iconveha.
445         (str_iconveha): New function.
446         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
447         c-strcase.
448
449 2007-01-23  Bruno Haible  <bruno@clisp.org>
450
451         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
452         encodings without forgiving before trying any encoding with handler.
453         (str_iconveha): Try all encodings without forgiving before trying any
454         encoding with handler.
455
456 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
457
458         Import the following changes from libc.
459
460         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
461
462         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
463
464         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
465
466         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
467         normal_bracket label.
468
469         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
470
471         [BZ #361]
472         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
473         to normal_bracket after fetching the next character.
474
475 2007-01-22  Bruno Haible  <bruno@clisp.org>
476
477         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
478         argument.
479         * lib/striconveh.c (iconv_carefully_1): New function.
480         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
481         argument.
482         (str_cd_iconveh): Update.
483         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
484         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
485         * tests/test-striconveh.c (MAGIC): New macro.
486         (new_offsets): New function.
487         (main): Test call with and without offsets.
488
489 2007-01-22  Bruno Haible  <bruno@clisp.org>
490
491         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
492         * modules/sys_select (Makefile.am): Likewise.
493         * modules/sys_socket (Makefile.am): Likewise.
494         * modules/sys_time (Makefile.am): Likewise.
495
496 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
497
498         * modules/gettimeofday (License): Change from GPL to LGPL, since
499         gettimeofday is a library function.
500
501 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
502
503         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
504
505 2007-01-21  Bruno Haible  <bruno@clisp.org>
506
507         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
508
509 2007-01-21  Bruno Haible  <bruno@clisp.org>
510
511         * modules/striconveha: New file.
512         * lib/striconveha.h: New file.
513         * lib/striconveha.c: New file.
514         * MODULES.html.sh (Internationalization functions): Add striconveha.
515         * lib/striconv.c (str_iconv): Optimize the case of an empty input
516         string.
517         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
518
519 2007-01-21  Bruno Haible  <bruno@clisp.org>
520
521         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
522         * lib/striconveh.c (str_iconveh): Likewise.
523
524 2007-01-21  Bruno Haible  <bruno@clisp.org>
525
526         * lib/striconveh.h (mem_iconveh): New declaration.
527         * lib/striconveh.c (mem_iconveh): New function.
528         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
529
530 2007-01-21  Bruno Haible  <bruno@clisp.org>
531
532         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
533
534         * lib/striconveh.h (mem_cd_iconveh): Change specification.
535         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
536         original result buffer.
537         (str_cd_iconveh): Update.
538         * tests/test-striconveh.c (main): Update.
539
540         * lib/striconv.h (mem_cd_iconv): Change specification.
541         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
542         result buffer.
543         (str_cd_iconv): Update.
544         * tests/test-striconv.c (main): Update.
545
546 2007-01-21  Bruno Haible  <bruno@clisp.org>
547
548         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
549
550 2007-01-20  Jim Meyering  <jim@meyering.net>
551
552         * lib/userspec.c (parse_with_separator): If a user or group string
553         starts with "+", skip the corresponding name-to-ID look-up, since
554         such a look-up must fail: user and group names may not include "+".
555
556 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
557
558         * lib/poll.c: Include sys/time.h and time.h unconditionally,
559         since we now assume the sys_time module.
560         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
561         check for sys/time.h; no longer needed.
562         * modules/poll (Depends-on): Depend on sys_time.
563
564 2007-01-18  Bruno Haible  <bruno@clisp.org>
565
566         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
567         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
568
569         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
570         gettimeofday.
571
572         * tests/test-gettimeofday.c: Include <time.h>.
573         (dummy): Remove variable.
574
575         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
576         gl_HEADER_SYS_TIME_H.
577         (gl_HEADER_SYS_TIME_H): New macro.
578
579         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
580         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
581         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
582         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
583         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
584         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
585         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
586         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
587         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
588         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
589         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
590
591         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
592         last change; it caused a compilation error when cross-compiling to
593         Cygwin.
594
595 2007-01-18  Jim Meyering  <jim@meyering.net>
596
597         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
598         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
599         than the race-prone "test -d sys || mkdir sys".
600         (configure.ac): Use AC_PROG_MKDIR_P.
601         * modules/sys_select: Likewise.
602         * modules/sys_socket: Likewise.
603         * modules/sys_time: Likewise.
604
605 2007-01-18  Eric Blake  <ebb9@byu.net>
606
607         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
608         replace gettimeofday.
609         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
610         name, to avoid infinite recursion.
611
612 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
613
614         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
615         module sys_time.
616         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
617         assume timespec.h defines struct timeval.
618         * lib/settime.c: Likewise.
619         * lib/utimens.c: Likewise.
620         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
621         since we now assume the gettimeofday module.
622         * lib/tempname.c (__gen_tempname): Likewise.
623         * lib/gettimeofday.h: Remove.
624         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
625         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
626         Include <time.h>, for 'time()'.
627         (localtime_buffer_addr): Also use this workaround if
628         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
629         to simplify the uses.  All uses changed.
630         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
631         that #undef is inside {}, and 'const' follows type name consistently.
632         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
633         (gettimeofday): Do not use the maximum possible value for
634         tv->tv_usec, since that might break usages other than ls.c.
635         Instead, we'll leave ls.c alone.  This undoes today's patch
636         by Bruno.  Add a compile-time warning for 1s-clock resolution;
637         we've never observed the problem but might as well keep the
638         canary.
639         * lib/nanosleep.c: Include timespec.h first, for interface check.
640         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
641         now assume the sys_time module.
642         * lib/tempname.c: Likewise.
643         * lib/timespec.h: Likewise.
644         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
645         needed.
646         * lib/strftime.c: Likewise.
647         * lib/timespec.h: Likewise.
648         * lib/posixtm.c: Include posixtm.h first, for interface check.
649         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
650         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
651         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
652         * lib/sys_time_.h: New file.
653         * lib/timespec.h (struct timespec): Use long int, not long.
654         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
655         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
656         Remove obsolescent call to AC_HEADER_TIME.
657         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
658         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
659         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
660         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
661         Likewise.
662         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
663         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
664         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
665         into the sys_time module.  Check for gettimeofday just once.
666         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
667         for gettimeofday signature to just check the signature.  Merely
668         compile it, since linking doesn't test signature.  Improve test for
669         whether gettimeofday.o is actually needed.
670         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
671         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
672         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
673         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
674         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
675         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
676         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
677         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
678         than worrying about sys/time.h.
679         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
680         Don't bother worrying about TIME_WITH_SYS_TIME.
681         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
682         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
683         * m4/sys_time_h.m4: New file.
684         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
685         Don't include sys/time.h.  Return from main rather than exiting.
686         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
687         all uses changed.
688         * modules/gethrxtime (Depends-on): Add sys_time.
689         * modules/gettime (Depends-on): Likewise.
690         * modules/gettimeofday (Depends-on): Likewise.
691         * modules/nanosleep (Depends-on): Likewise.
692         * modules/settime (Depends-on): Likewise.
693         * modules/tempname (Depends-on): Likewise.
694         * modules/utimens (Depends-on): Likewise.
695         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
696         (Include:) Change back to <sys/time.h>.
697         (Maintainer:) Add self.
698         * modules/sys_time: New file.
699         * modules/tempname (Depends-on): Add gettimeofday.
700         * tests/test-gettimeofday.c: Include <sys/time.h>
701         rather than gettimeofday.h.
702
703 2007-01-17  Bruno Haible  <bruno@clisp.org>
704
705         * gnulib-tool (func_get_license): Revert last patch. Instead, let
706         the license default to GPL.
707         (func_create_testdir): Don't complain if a module is LGPL and its
708         tests module depends on GPLed modules.
709
710 2007-01-17  Bruno Haible  <bruno@clisp.org>
711
712         * lib/gettimeofday.c (gettimeofday): Add code for the case
713         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
714         maximum possible value for tv->tv_usec, rather than the minimum one.
715
716 2005-10-08  Martin Lambers  <marlam@marlam.de>
717 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
718 2007-01-16  Bruno Haible  <bruno@clisp.org>
719
720         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
721         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
722         gl_FUNC_GETTIMEOFDAY.
723         (Include): Add gettimeofday.h.
724         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
725         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
726         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
727         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
728         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
729         * lib/gettimeofday.h: New file.
730         * lib/gettimeofday.c: Include <sys/timeb.h>.
731         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
732         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
733         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
734         fall back on time().
735
736         * tests/test-gettimeofday.c: New file.
737         * modules/gettimeofday-tests: New file.
738
739 2007-01-16  Eric Blake  <ebb9@byu.net>
740
741         * modules/fnmatch (Depends-on): Depend on wchar.
742         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
743         * m4/fnmatch.m4: Likewise.
744         * modules/mbchar (Makefile.am): Assume <wchar.h>.
745         * m4/mbchar.m4: Likewise.
746         * modules/mbswidth (Depends-on): Depend on wchar.
747         * lib/mbswidth.c: Assume <wchar.h>.
748         * m4/mbswidth.m4: Likewise.
749         * modules/quotearg (Depends-on): Depend on wchar.
750         * lib/quotearg.c: Assume <wchar.h>.
751         * m4/quotearg.m4: Likewise.
752         * modules/regex (Depends-on): Depend on wchar.
753         * lib/regex_internal.h: Assume <wchar.h>.
754         * m4/regex.m4: Likewise.
755         * modules/stdint (Depends-on): Depend on wchar.
756         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
757         * m4/stdint.m4: Likewise.
758         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
759         * modules/strftime (Depends-on): Depend on wchar.
760         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
761         * modules/strtol (Depends-on): Depend on wchar.
762         * lib/strtol.c: Assume <wchar.h>.
763         * modules/wcwidth (Depends-on): Depend on wchar.
764         * lib/wcwidth.h: Assume <wchar.h>.
765         * m4/wcwidth.m4: Likewise.
766
767 2007-01-16  Bruno Haible  <bruno@clisp.org>
768
769         * modules/csharpexec-script: New, created from...
770         * modules/csharpexec: ... this.
771
772 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
773
774         * modules/javaexec-script: New, created from...
775         * modules/javaexec: ... this.
776
777 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
778
779         * modules/poll (Dependencies): Add sys_select.
780
781 2007-01-15  Jim Meyering  <jim@meyering.net>
782
783         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
784         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
785         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
786         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
787
788 2007-01-15  Bruno Haible  <bruno@clisp.org>
789
790         * modules/striconveh: New file.
791         * lib/striconveh.h: New file.
792         * lib/striconveh.c: New file.
793         * MODULES.html.sh (Internationalization functions): Add striconveh.
794
795         * modules/striconveh-tests: New file.
796         * tests/test-striconveh.c: New file.
797
798 2007-01-15  Bruno Haible  <bruno@clisp.org>
799
800         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
801         not from GNU libiconv or GNU libc.
802
803 2007-01-15  Bruno Haible  <bruno@clisp.org>
804
805         * doc/gnulib-intro.texi (Copyright): Explain the different license
806         terms for module descriptions, autoconf macros, tests, documentation.
807
808 2007-01-14  Bruno Haible  <bruno@clisp.org>
809
810         * modules/striconv-tests: New file.
811         * tests/test-striconv.c: New file.
812
813 2007-01-14  Bruno Haible  <bruno@clisp.org>
814
815         * modules/iconv-tests: New file.
816         * tests/test-iconv.c: New file.
817
818 2007-01-14  Bruno Haible  <bruno@clisp.org>
819
820         * gnulib-tool (func_get_license): For test modules, use the license of
821         the main module.
822
823 2007-01-14  Bruno Haible  <bruno@clisp.org>
824
825         * modules/iconv (Include): Clarify that <iconv.h> can only be included
826         if iconv is found to exist.
827
828 2007-01-14  Bruno Haible  <bruno@clisp.org>
829
830         * modules/c-ctype-tests: New file.
831         * tests/test-c-ctype.c: New file.
832
833 2007-01-14  Bruno Haible  <bruno@clisp.org>
834
835         * modules/binary-io-tests: New file.
836         * tests/test-binary-io.sh: New file.
837         * tests/test-binary-io.c: New file.
838
839 2007-01-14  Bruno Haible  <bruno@clisp.org>
840
841         * modules/array-oset-tests: New file.
842         * tests/test-array_oset.c: New file.
843
844 2007-01-14  Bruno Haible  <bruno@clisp.org>
845
846         * modules/array-list-tests: New file.
847         * tests/test-array_list.c: New file.
848
849 2007-01-14  Bruno Haible  <bruno@clisp.org>
850
851         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
852         and make.
853         Reported by Simon Josefsson in
854         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
855
856 2007-01-14  Bruno Haible  <bruno@clisp.org>
857
858         * modules/allocsa-tests: New file.
859         * tests/test-allocsa.c: New file.
860
861 2007-01-14  Bruno Haible  <bruno@clisp.org>
862
863         * modules/fchdir (Depends-on): Add absolute-header.
864         * modules/unistd (Depends-on): Likewise.
865
866 2006-12-30  Bruno Haible  <bruno@clisp.org>
867
868         * modules/fchdir: New file.
869         * modules/unistd (Files): Add lib/unistd_.h.
870         (Makefile.am): Generate unistd.h from unistd_.h.
871         * lib/fchdir.c: New file.
872         * lib/dirent_.h: New file.
873         * lib/unistd_.h: New file.
874         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
875         * m4/fchdir.m4: New file.
876         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
877         (gl_HEADER_UNISTD): Invoke it.
878         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
879         function.
880         * lib/backupfile.c (opendir, closedir): Undefine.
881         * lib/chown.c (open, close): Undefine.
882         * lib/clean-temp.c (open, close): Undefine.
883         * lib/copy-file.c (open, close): Undefine.
884         * lib/execute.c (open, close): Undefine.
885         * lib/fsusage.c (open, close): Undefine.
886         * lib/gc-gnulib.c (open, close): Undefine.
887         * lib/getcwd.c (opendir, closedir): Undefine.
888         * lib/glob.c (opendir, closedir): Undefine.
889         * lib/javacomp.c (open, close): Undefine.
890         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
891         * lib/openat-proc.c (open, close): Undefine.
892         * lib/pagealign_alloc.c (open, close): Undefine.
893         * lib/pipe.c (open, close): Undefine.
894         * lib/progreloc.c (open, close): Undefine.
895         * lib/savedir.c (opendir, closedir): Undefine.
896         * lib/utime.c (open, close): Undefine.
897         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
898
899 2007-01-10  Bruno Haible  <bruno@clisp.org>
900
901         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
902
903 2007-01-12  Eric Blake  <ebb9@byu.net>
904
905         Provide a robust <wchar.h>.  Further simplifications are now
906         possible in other modules, but not included here.
907         * modules/wchar: New module.
908         * m4/wchar.m4: New file.
909         * lib/wchar_.h: Likewise.
910         * modules/mbchar (Depends-on): Depend on wchar, as the first use
911         of the new module.
912         * MODULES.html.sh (Extended multibyte and wide character utilities):
913         New section.
914
915 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
916
917         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
918         to a reasonable default for memory allocation.
919         (xreadlink): Don't allocate a huge buffer, to work around a buggy
920         file system that reports garbage st_size values for symlinks.
921         Problem reported by Liyang Hu.
922
923 2007-01-11  Simon Josefsson  <simon@josefsson.org>
924
925         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
926         Emacs .#* auto-save files).
927
928 2007-01-11  Bruno Haible  <bruno@clisp.org>
929
930         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
931         directory.
932
933 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
934
935         Use @...@ consistently in lib/wctype_.h.
936         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
937         on it being set to 1 or 0.
938         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
939         go back to AC_SUBSTing it.
940         * modules/wctype (Makefile.am): Undo previous change.
941
942 2007-01-10  Eric Blake  <ebb9@byu.net>
943
944         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
945         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
946         * modules/wctype (Makefile.am): Likewise.
947         Reported by Chris McGuire.
948
949 2007-01-10  Jim Meyering  <jim@meyering.net>
950
951         fts.c: a small readability/maintainability improvement
952         * lib/fts.c (fts_read): Make this code slightly more readable and
953         maintainable by hoisting the "sp->fts_cur = p" assignments to
954         immediately follow the statements that set P.  Derived from
955         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
956
957 2007-01-10  Eric Blake  <ebb9@byu.net>
958
959         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
960         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
961         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
962         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
963         Reported by Chris McGuire.
964
965 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
966
967         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
968         in sed script.
969
970 2007-01-09  Bruno Haible  <bruno@clisp.org>
971
972         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
973         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
974         variables.
975         (func_module): Use them.
976
977 2007-01-09  Bruno Haible  <bruno@clisp.org>
978
979         * modules/unistr/base: New file.
980         * lib/unistr.h: New file.
981
982         * modules/unistr/u8-to-u16: New file.
983         * lib/unistr/u8-to-u16.c: New file.
984
985         * modules/unistr/u8-to-u32: New file.
986         * lib/unistr/u8-to-u32.c: New file.
987
988         * modules/unistr/u16-to-u8: New file.
989         * lib/unistr/u16-to-u8.c: New file.
990
991         * modules/unistr/u16-to-u32: New file.
992         * lib/unistr/u16-to-u32.c: New file.
993
994         * modules/unistr/u32-to-u8: New file.
995         * lib/unistr/u32-to-u8.c: New file.
996
997         * modules/unistr/u32-to-u16: New file.
998         * lib/unistr/u32-to-u16.c: New file.
999
1000         * modules/unistr/u8-check: New file.
1001         * modules/unistr/u16-check: New file.
1002         * modules/unistr/u32-check: New file.
1003         * lib/unistr/u8-check.c: New file.
1004         * lib/unistr/u16-check.c: New file.
1005         * lib/unistr/u32-check.c: New file.
1006
1007         * modules/unistr/u8-chr: New file.
1008         * modules/unistr/u16-chr: New file.
1009         * modules/unistr/u32-chr: New file.
1010         * lib/unistr/u8-chr.c: New file.
1011         * lib/unistr/u16-chr.c: New file.
1012         * lib/unistr/u32-chr.c: New file.
1013
1014         * modules/unistr/u8-cmp: New file.
1015         * modules/unistr/u16-cmp: New file.
1016         * modules/unistr/u32-cmp: New file.
1017         * lib/unistr/u8-cmp.c: New file.
1018         * lib/unistr/u16-cmp.c: New file.
1019         * lib/unistr/u32-cmp.c: New file.
1020
1021         * modules/unistr/u8-cpy: New file.
1022         * modules/unistr/u16-cpy: New file.
1023         * modules/unistr/u32-cpy: New file.
1024         * lib/unistr/u8-cpy.c: New file.
1025         * lib/unistr/u16-cpy.c: New file.
1026         * lib/unistr/u32-cpy.c: New file.
1027         * lib/unistr/u-cpy.h: New file.
1028
1029         * modules/unistr/u8-cpy-alloc: New file.
1030         * modules/unistr/u16-cpy-alloc: New file.
1031         * modules/unistr/u32-cpy-alloc: New file.
1032         * lib/unistr/u8-cpy-alloc.c: New file.
1033         * lib/unistr/u16-cpy-alloc.c: New file.
1034         * lib/unistr/u32-cpy-alloc.c: New file.
1035         * lib/unistr/u-cpy-alloc.h: New file.
1036
1037         * modules/unistr/u8-endswith: New file.
1038         * modules/unistr/u16-endswith: New file.
1039         * modules/unistr/u32-endswith: New file.
1040         * lib/unistr/u8-endswith.c: New file.
1041         * lib/unistr/u16-endswith.c: New file.
1042         * lib/unistr/u32-endswith.c: New file.
1043         * lib/unistr/u-endswith.h: New file.
1044
1045         * modules/unistr/u8-mblen: New file.
1046         * modules/unistr/u16-mblen: New file.
1047         * modules/unistr/u32-mblen: New file.
1048         * lib/unistr/u8-mblen.c: New file.
1049         * lib/unistr/u16-mblen.c: New file.
1050         * lib/unistr/u32-mblen.c: New file.
1051
1052         * modules/unistr/u8-mbtouc: New file.
1053         * modules/unistr/u16-mbtouc: New file.
1054         * modules/unistr/u32-mbtouc: New file.
1055         * lib/unistr/u8-mbtouc.c: New file.
1056         * lib/unistr/u16-mbtouc.c: New file.
1057         * lib/unistr/u32-mbtouc.c: New file.
1058
1059         * modules/unistr/u8-mbtouc-safe: New file.
1060         * modules/unistr/u16-mbtouc-safe: New file.
1061         * modules/unistr/u32-mbtouc-safe: New file.
1062         * lib/unistr/u8-mbtouc-safe.c: New file.
1063         * lib/unistr/u16-mbtouc-safe.c: New file.
1064         * lib/unistr/u32-mbtouc-safe.c: New file.
1065
1066         * modules/unistr/u8-move: New file.
1067         * modules/unistr/u16-move: New file.
1068         * modules/unistr/u32-move: New file.
1069         * lib/unistr/u8-move.c: New file.
1070         * lib/unistr/u16-move.c: New file.
1071         * lib/unistr/u32-move.c: New file.
1072         * lib/unistr/u-move.h: New file.
1073
1074         * modules/unistr/u8-next: New file.
1075         * modules/unistr/u16-next: New file.
1076         * modules/unistr/u32-next: New file.
1077         * lib/unistr/u8-next.c: New file.
1078         * lib/unistr/u16-next.c: New file.
1079         * lib/unistr/u32-next.c: New file.
1080
1081         * modules/unistr/u8-prev: New file.
1082         * modules/unistr/u16-prev: New file.
1083         * modules/unistr/u32-prev: New file.
1084         * lib/unistr/u8-prev.c: New file.
1085         * lib/unistr/u16-prev.c: New file.
1086         * lib/unistr/u32-prev.c: New file.
1087
1088         * modules/unistr/u8-set: New file.
1089         * modules/unistr/u16-set: New file.
1090         * modules/unistr/u32-set: New file.
1091         * lib/unistr/u8-set.c: New file.
1092         * lib/unistr/u16-set.c: New file.
1093         * lib/unistr/u32-set.c: New file.
1094         * lib/unistr/u-set.h: New file.
1095
1096         * modules/unistr/u8-startswith: New file.
1097         * modules/unistr/u16-startswith: New file.
1098         * modules/unistr/u32-startswith: New file.
1099         * lib/unistr/u8-startswith.c: New file.
1100         * lib/unistr/u16-startswith.c: New file.
1101         * lib/unistr/u32-startswith.c: New file.
1102         * lib/unistr/u-startswith.h: New file.
1103
1104         * modules/unistr/u8-stpcpy: New file.
1105         * modules/unistr/u16-stpcpy: New file.
1106         * modules/unistr/u32-stpcpy: New file.
1107         * lib/unistr/u8-stpcpy.c: New file.
1108         * lib/unistr/u16-stpcpy.c: New file.
1109         * lib/unistr/u32-stpcpy.c: New file.
1110         * lib/unistr/u-stpcpy.h: New file.
1111
1112         * modules/unistr/u8-stpncpy: New file.
1113         * modules/unistr/u16-stpncpy: New file.
1114         * modules/unistr/u32-stpncpy: New file.
1115         * lib/unistr/u8-stpncpy.c: New file.
1116         * lib/unistr/u16-stpncpy.c: New file.
1117         * lib/unistr/u32-stpncpy.c: New file.
1118         * lib/unistr/u-stpncpy.h: New file.
1119
1120         * modules/unistr/u8-strcat: New file.
1121         * modules/unistr/u16-strcat: New file.
1122         * modules/unistr/u32-strcat: New file.
1123         * lib/unistr/u8-strcat.c: New file.
1124         * lib/unistr/u16-strcat.c: New file.
1125         * lib/unistr/u32-strcat.c: New file.
1126         * lib/unistr/u-strcat.h: New file.
1127
1128         * modules/unistr/u8-strchr: New file.
1129         * modules/unistr/u16-strchr: New file.
1130         * modules/unistr/u32-strchr: New file.
1131         * lib/unistr/u8-strchr.c: New file.
1132         * lib/unistr/u16-strchr.c: New file.
1133         * lib/unistr/u32-strchr.c: New file.
1134
1135         * modules/unistr/u8-strcmp: New file.
1136         * modules/unistr/u16-strcmp: New file.
1137         * modules/unistr/u32-strcmp: New file.
1138         * lib/unistr/u8-strcmp.c: New file.
1139         * lib/unistr/u16-strcmp.c: New file.
1140         * lib/unistr/u32-strcmp.c: New file.
1141
1142         * modules/unistr/u8-strcpy: New file.
1143         * modules/unistr/u16-strcpy: New file.
1144         * modules/unistr/u32-strcpy: New file.
1145         * lib/unistr/u8-strcpy.c: New file.
1146         * lib/unistr/u16-strcpy.c: New file.
1147         * lib/unistr/u32-strcpy.c: New file.
1148         * lib/unistr/u-strcpy.h: New file.
1149
1150         * modules/unistr/u8-strcspn: New file.
1151         * modules/unistr/u16-strcspn: New file.
1152         * modules/unistr/u32-strcspn: New file.
1153         * lib/unistr/u8-strcspn.c: New file.
1154         * lib/unistr/u16-strcspn.c: New file.
1155         * lib/unistr/u32-strcspn.c: New file.
1156         * lib/unistr/u-strcspn.h: New file.
1157
1158         * modules/unistr/u8-strdup: New file.
1159         * modules/unistr/u16-strdup: New file.
1160         * modules/unistr/u32-strdup: New file.
1161         * lib/unistr/u8-strdup.c: New file.
1162         * lib/unistr/u16-strdup.c: New file.
1163         * lib/unistr/u32-strdup.c: New file.
1164         * lib/unistr/u-strdup.h: New file.
1165
1166         * modules/unistr/u8-strlen: New file.
1167         * modules/unistr/u16-strlen: New file.
1168         * modules/unistr/u32-strlen: New file.
1169         * lib/unistr/u8-strlen.c: New file.
1170         * lib/unistr/u16-strlen.c: New file.
1171         * lib/unistr/u32-strlen.c: New file.
1172         * lib/unistr/u-strlen.h: New file.
1173
1174         * modules/unistr/u8-strmblen: New file.
1175         * modules/unistr/u16-strmblen: New file.
1176         * modules/unistr/u32-strmblen: New file.
1177         * lib/unistr/u8-strmblen.c: New file.
1178         * lib/unistr/u16-strmblen.c: New file.
1179         * lib/unistr/u32-strmblen.c: New file.
1180
1181         * modules/unistr/u8-strmbtouc: New file.
1182         * modules/unistr/u16-strmbtouc: New file.
1183         * modules/unistr/u32-strmbtouc: New file.
1184         * lib/unistr/u8-strmbtouc.c: New file.
1185         * lib/unistr/u16-strmbtouc.c: New file.
1186         * lib/unistr/u32-strmbtouc.c: New file.
1187
1188         * modules/unistr/u8-strncat: New file.
1189         * modules/unistr/u16-strncat: New file.
1190         * modules/unistr/u32-strncat: New file.
1191         * lib/unistr/u8-strncat.c: New file.
1192         * lib/unistr/u16-strncat.c: New file.
1193         * lib/unistr/u32-strncat.c: New file.
1194         * lib/unistr/u-strncat.h: New file.
1195
1196         * modules/unistr/u8-strncmp: New file.
1197         * modules/unistr/u16-strncmp: New file.
1198         * modules/unistr/u32-strncmp: New file.
1199         * lib/unistr/u8-strncmp.c: New file.
1200         * lib/unistr/u16-strncmp.c: New file.
1201         * lib/unistr/u32-strncmp.c: New file.
1202
1203         * modules/unistr/u8-strncpy: New file.
1204         * modules/unistr/u16-strncpy: New file.
1205         * modules/unistr/u32-strncpy: New file.
1206         * lib/unistr/u8-strncpy.c: New file.
1207         * lib/unistr/u16-strncpy.c: New file.
1208         * lib/unistr/u32-strncpy.c: New file.
1209         * lib/unistr/u-strncpy.h: New file.
1210
1211         * modules/unistr/u8-strnlen: New file.
1212         * modules/unistr/u16-strnlen: New file.
1213         * modules/unistr/u32-strnlen: New file.
1214         * lib/unistr/u8-strnlen.c: New file.
1215         * lib/unistr/u16-strnlen.c: New file.
1216         * lib/unistr/u32-strnlen.c: New file.
1217         * lib/unistr/u-strnlen.h: New file.
1218
1219         * modules/unistr/u8-strpbrk: New file.
1220         * modules/unistr/u16-strpbrk: New file.
1221         * modules/unistr/u32-strpbrk: New file.
1222         * lib/unistr/u8-strpbrk.c: New file.
1223         * lib/unistr/u16-strpbrk.c: New file.
1224         * lib/unistr/u32-strpbrk.c: New file.
1225         * lib/unistr/u-strpbrk.h: New file.
1226
1227         * modules/unistr/u8-strrchr: New file.
1228         * modules/unistr/u16-strrchr: New file.
1229         * modules/unistr/u32-strrchr: New file.
1230         * lib/unistr/u8-strrchr.c: New file.
1231         * lib/unistr/u16-strrchr.c: New file.
1232         * lib/unistr/u32-strrchr.c: New file.
1233
1234         * modules/unistr/u8-strspn: New file.
1235         * modules/unistr/u16-strspn: New file.
1236         * modules/unistr/u32-strspn: New file.
1237         * lib/unistr/u8-strspn.c: New file.
1238         * lib/unistr/u16-strspn.c: New file.
1239         * lib/unistr/u32-strspn.c: New file.
1240         * lib/unistr/u-strspn.h: New file.
1241
1242         * modules/unistr/u8-strstr: New file.
1243         * modules/unistr/u16-strstr: New file.
1244         * modules/unistr/u32-strstr: New file.
1245         * lib/unistr/u8-strstr.c: New file.
1246         * lib/unistr/u16-strstr.c: New file.
1247         * lib/unistr/u32-strstr.c: New file.
1248         * lib/unistr/u-strstr.h: New file.
1249
1250         * modules/unistr/u8-strtok: New file.
1251         * modules/unistr/u16-strtok: New file.
1252         * modules/unistr/u32-strtok: New file.
1253         * lib/unistr/u8-strtok.c: New file.
1254         * lib/unistr/u16-strtok.c: New file.
1255         * lib/unistr/u32-strtok.c: New file.
1256         * lib/unistr/u-strtok.h: New file.
1257
1258         * modules/unistr/u8-uctomb: New file.
1259         * modules/unistr/u16-uctomb: New file.
1260         * modules/unistr/u32-uctomb: New file.
1261         * lib/unistr/u8-uctomb.c: New file.
1262         * lib/unistr/u16-uctomb.c: New file.
1263         * lib/unistr/u32-uctomb.c: New file.
1264
1265         * MODULES.html.sh (Unicode string functions): Add the new modules.
1266
1267 2007-01-08  Bruno Haible  <bruno@clisp.org>
1268
1269         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
1270         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
1271         subdirectories.
1272
1273 2007-01-08  Karl Berry  <karl@gnu.org>
1274
1275         * doc/error.texi: mention that main() fns must set program_name
1276         when progname is used.
1277
1278 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
1279
1280         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
1281         WCTYPE_H is empty, for the benefit of builds from non-distclean
1282         directories.  Problem reported by Eric Blake in
1283         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
1284
1285 2007-01-08  Bruno Haible  <bruno@clisp.org>
1286
1287         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
1288         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
1289         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
1290         PROVIDE_CANONICALIZE_FILENAME_MODE.
1291         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
1292
1293 2007-01-08  Bruno Haible  <bruno@clisp.org>
1294
1295         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
1296         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
1297         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
1298         * lib/fts.c: Likewise.
1299         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
1300
1301 2006-12-25  Bruno Haible  <bruno@clisp.org>
1302
1303         * modules/utf8-ucs4-safe: New file.
1304         * lib/utf8-ucs4-safe.h: New file.
1305         * lib/unistr/utf8-ucs4-safe.c: New file.
1306
1307         * modules/utf16-ucs4-safe: New file.
1308         * lib/utf16-ucs4-safe.h: New file.
1309         * lib/unistr/utf16-ucs4-safe.c: New file.
1310
1311         * MODULES.html.sh (Unicode string functions): Add the new modules.
1312
1313 2007-01-08  Bruno Haible  <bruno@clisp.org>
1314
1315         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
1316         (Depends-on): Add unitypes.
1317         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
1318         (u8_mbtouc_aux): Move out to separate file.
1319         (u8_mbtouc): Use ucs4_t, uint8_t types.
1320         * lib/unistr/utf8-ucs4.c: New file.
1321
1322         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
1323         (Depends-on): Add unitypes.
1324         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
1325         (u16_mbtouc_aux): Move out to separate file.
1326         (u16_mbtouc): Use ucs4_t, uint16_t types.
1327         * lib/unistr/utf16-ucs4.c: New file.
1328
1329         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
1330         (Depends-on): Add unitypes.
1331         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
1332         (u8_uctomb_aux): Move out to separate file.
1333         (u8_uctomb): Use ucs4_t, uint8_t types.
1334         * lib/unistr/ucs4-utf8.c: New file.
1335
1336         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
1337         (Depends-on): Add unitypes.
1338         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
1339         (u16_uctomb_aux): Move out to separate file.
1340         (u16_uctomb): Use ucs4_t, uint16_t types.
1341         * lib/unistr/ucs4-utf16.c: New file.
1342
1343 2006-12-25  Bruno Haible  <bruno@clisp.org>
1344
1345         * modules/unitypes: New file.
1346         * lib/unitypes.h: New file.
1347         * MODULES.html.sh (func_all_modules): New section "Unicode string
1348         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
1349         this section. Add unitypes.
1350
1351 2007-01-08  Bruno Haible  <bruno@clisp.org>
1352
1353         Avoid variable names that conflict with those from libtool.
1354         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
1355         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
1356         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
1357         library_names_spec to acl_library_names_spec, hardcode_* to
1358         acl_hardcode_*.
1359         Reported by Ralf Wildenhues.
1360
1361 2007-01-08  Bruno Haible  <bruno@clisp.org>
1362
1363         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
1364         definition.
1365         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
1366         definition.
1367         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
1368         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
1369         definition.
1370         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
1371         definition.
1372         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
1373         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
1374         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
1375         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
1376         definition.
1377         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
1378         definition.
1379         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
1380         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
1381         GC_USE_<algorithm>.
1382         * lib/gc-libgcrypt.c: Likewise.
1383         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
1384         * modules/gc-arctwo (configure.ac): Likewise.
1385         * modules/gc-des (configure.ac): Likewise.
1386         * modules/gc-hmac-md5 (configure.ac): Likewise.
1387         * modules/gc-hmac-sha1 (configure.ac): Likewise.
1388         * modules/gc-md2 (configure.ac): Likewise.
1389         * modules/gc-md4 (configure.ac): Likewise.
1390         * modules/gc-md5 (configure.ac): Likewise.
1391         * modules/gc-random (configure.ac): Likewise.
1392         * modules/gc-rijndael (configure.ac): Likewise.
1393         * modules/gc-sha1 (configure.ac): Likewise.
1394
1395 2007-01-08  Bruno Haible  <bruno@clisp.org>
1396
1397         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
1398         macro definition.
1399         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
1400         definition.
1401         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
1402         definition.
1403         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
1404         * modules/fcntl-safer (configure.ac): Likewise.
1405         * modules/fopen-safer (configure.ac): Likewise.
1406         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
1407         GNULIB_FWRITEERROR macro definition.
1408
1409 2007-01-08  Bruno Haible  <bruno@clisp.org>
1410
1411         * m4/gnulib-common.m4: New file.
1412         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
1413         (func_get_filelist): Add m4/gnulib-common.m4.
1414
1415 2007-01-08  Bruno Haible  <bruno@clisp.org>
1416
1417         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
1418         command.
1419
1420 2007-01-08  Jim Meyering  <jim@meyering.net>
1421
1422         Use a more robust test for a "can't happen" condition.
1423         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
1424         narrowed the st_size value.  Presuming the "can't happen" condition
1425         is true, that narrowing could conceivably convert an invalid st_size
1426         value into a valid one.  Instead, use a change based on Matthew
1427         Woehlke's original patch.
1428
1429         Slight readability improvement: use an assert-like macro
1430         in place of literal "abort ()" uses.
1431         * lib/fts.c (fts_assert): Define.
1432         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
1433         Use this macro instead of a bare 'abort'.
1434
1435 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
1436
1437         Don't worry about using IRIX 5.3's wctype.h broken definitions;
1438         simply work around them.
1439         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
1440         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
1441         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before declaring.
1442         Don't bother to define as macros, since the standard doesn't require it.
1443         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
1444         longer worry about IRIX 5.3.
1445         (HAVE_WCTYPE_CTMP_BUG): Remove.
1446
1447 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
1448
1449         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
1450         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
1451         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
1452         Problems reported by Georg Schwarz for IRIX 5.3.
1453
1454         * gnulib-tool (autoconf_minversion): Take the maximum version number
1455         found, not the minimum.  Problem reported by James Youngman.
1456
1457 2007-01-03  Karl Berry  <karl@gnu.org>
1458
1459         * doc/error.texi: new file, explaining interaction with progname.
1460         * doc/gnulib.texi: include it.  Update copyright.
1461
1462 2007-01-03  Simon Josefsson  <simon@josefsson.org>
1463
1464         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
1465         AC_CANONICAL_HOST, to improve autobuild outputs.
1466
1467 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
1468             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
1469
1470         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
1471         sockets, server sockets, and other file descriptors.  Count errors
1472         to compute the return value.  Reorder the code a bit to be easier
1473         to follow.  Don't set event bits that were not requested (except
1474         POLLERR and POLLHUP).
1475
1476 2007-01-01  Bruno Haible  <bruno@clisp.org>
1477
1478         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
1479
1480 2007-01-03  Jim Meyering  <jim@meyering.net>
1481
1482         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
1483
1484 2007-01-02  Bruno Haible  <bruno@clisp.org>
1485
1486         * modules/settime (Include): Require timespec.h.
1487         * modules/nanosleep (Include): Likewise.
1488
1489 2007-01-01  Bruno Haible  <bruno@clisp.org>
1490
1491         * gnulib-tool (func_emit_copyright_notice): Bump year.
1492         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
1493
1494 2007-01-01  Bruno Haible  <bruno@clisp.org>
1495
1496         Improve support for OpenBSD.
1497         * build-aux/config.rpath (libname_spec): Export.
1498         (library_names_spec): New variable. Export.
1499         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
1500         library_names_spec from the config.rpath output. Locate shared library
1501         through the name pattern in library_names_spec.
1502
1503 2007-01-01  Eric Blake  <ebb9@byu.net>
1504
1505         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
1506
1507 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
1508
1509         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
1510         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
1511         assume the C locale, and avoid an "eval" that could cause trouble.
1512         Problem with SORT reported by Bob Proulx.
1513
1514         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
1515         Define.  Trivial patch from Henning Nielsen Lund, originally
1516         sent to bug-grep@gnu.org today.
1517
1518 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
1519
1520         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
1521         struct stat.  Problem reported by Henning Nielsen Lund.
1522         * lib/acl.c: Include acl.h first, to check interface.  Don't
1523         bother to include sys/types.h and sys/stat.h again.
1524
1525 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
1526
1527         Import the following change from libc; problem reported by
1528         Sven Verdoolaege.
1529
1530         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
1531
1532         [BZ #1373]
1533         * lib/argp.h: Remove __NTH for __argp_usage inline function.
1534
1535 2006-12-28  Jim Meyering  <jim@meyering.net>
1536
1537         * build-aux/announce-gen: Do not assume that the package
1538         builds any of tar.gz, tar.bz2, and .xdelta files.
1539         Suggestion from Simon Josefsson.
1540
1541 2006-12-28  Simon Josefsson  <simon@josefsson.org>
1542
1543         * modules/announce-gen: New file.
1544
1545 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
1546
1547         * lib/mbchar.h: Just include <wctype.h>; the wctype module
1548         handles its gotchas now.
1549         * lib/mbswidth.c: Likewise.
1550         * lib/wcwidth.h: Likewise.
1551         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
1552         and iswcntrl; the wctype module does this stuff now.
1553         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
1554         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
1555         * modules/mbchar (Depends-on): Add wctype.
1556         * modules/mbswidth (Depends-on): Likewise.
1557         * modules/wcwidth (Depends-on): Likewise.
1558
1559 2006-12-27  Eric Blake  <ebb9@byu.net>
1560
1561         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
1562         module uses more than what <wctype.h> is required to provide.
1563
1564 2006-12-26  Eric Blake  <ebb9@byu.net>
1565
1566         * gnulib-tool (sed_extract_prog): Avoid space-tab.
1567
1568 2006-12-26  Eric Blake  <ebb9@byu.net>
1569
1570         * modules/absolute-header: New module.
1571         * modules/fcntl (Depends-on): Depend on it.
1572         * modules/inttypes (Depends-on): Likewise.
1573         * modules/stdint (Depends-on): Likewise.
1574         * modules/sys_stat (Depends-on): Likewise.
1575         * modules/wctype (Depends-on): Likewise.
1576         * MODULES.html.sh (Support for building libraries and
1577         executables): Document it.
1578
1579 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
1580
1581         * gnulib-tool (SED): Remove, undoing previous change.
1582         The problem was that it broke coreutils on Solaris, because
1583         "sed --posix" leaked into a makefile.
1584         (sed): New alias, if 'alias' and GNU sed.
1585
1586 2006-12-24  Jim Meyering  <jim@meyering.net>
1587
1588         Work around an fchownat bug in glibc-2.4:
1589         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
1590         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
1591         in spite of the -P option.
1592         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
1593         New macros.
1594         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
1595         * modules/openat (Files): Add lib/fchownat.c.
1596         * lib/openat.c (fchownat): Don't define here.  Move to...
1597         * lib/fchownat.c: ...this new file.
1598
1599 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
1600
1601         Fix bug reported by Bruno Haible in
1602         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
1603         where quotearg.c didn't compile on Mac OS X 10.2 because it
1604         lacks <wchar.h> and wint_t.
1605         * lib/wctype_.h (__wctype_wint_t): New type.
1606         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
1607         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
1608         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
1609         Arg is now of type __wctype_wint_t, not wint_t.
1610         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
1611         substitute HAVE_WINT_T.
1612         * modules/wctype (Files): Add m4/wint_t.m4.
1613         (wctype.h): Substitute HAVE_WINT_T.
1614
1615 2006-12-23  Bruno Haible  <bruno@clisp.org>
1616
1617         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
1618
1619 2006-12-23  Bruno Haible  <bruno@clisp.org>
1620
1621         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
1622         S_ISLNK.
1623         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
1624         mingw.
1625
1626 2006-12-22  Bruno Haible  <bruno@clisp.org>
1627
1628         * lib/copy-file.c: Include acl.h.
1629         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
1630         Close the file descriptors only after being done with copy_acl.
1631         * modules/copy-file (Depends-on): Add acl.
1632
1633 2006-12-22  Bruno Haible  <bruno@clisp.org>
1634
1635         * gnulib-tool (SED): New variable.
1636         Use $SED instead of sed everywhere.
1637
1638 2006-12-22  Bruno Haible  <bruno@clisp.org>
1639
1640         * modules/no-c++: New file.
1641         * m4/no-c++.m4: New file.
1642         * MODULES.html.sh (Support for building libraries and executables):
1643         Add no-c++.
1644
1645 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
1646
1647         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
1648         Include <limits.h>, and use its INT_MAX to rewrite the
1649         j loop so that it does not overflow 'int'.  Problem reported by
1650         Ralf Wildenhues in
1651         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
1652         Play it safe by shifting left by 1 rather than multiplying by 2,
1653         as GCC is less likely to optimize this away when the value
1654         is signed (when it assumes overflow leads to undefined behavior).
1655         Also, don't assume time_t uses two's complement.
1656
1657 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
1658
1659         * MODULES.html.sh: New module wctype.
1660         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
1661         * lib/fnmatch.c: Don't bother to include <wchar.h> before
1662         <wctype.h>, since the new wctype module should fix this.
1663         * lib/quotearg.c: Include <wctype.h> unconditionally, since
1664         the wctype module should arrange for it.
1665         * lib/regex_internal.h: Likewise.
1666         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
1667         since the wctype module should handle this now.
1668         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
1669         * modules/fnmatch (Depends-on): Add wctype.
1670         * modules/quotearg (Depends-on): Likewise.
1671         * modules/regex (Depends-on): Likewise.
1672
1673 2006-12-19  Bruno Haible  <bruno@clisp.org>
1674
1675         * lib/strdup.h [C++]: Wrap definitions in extern "C".
1676         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
1677
1678 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1679
1680         * modules/savewd (Depends-on): Fix dependency on fcntl.
1681
1682 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
1683
1684         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
1685         conforms to C99, rather than relying on the user's environment
1686         setting of STDINT_H.
1687
1688 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
1689         and Eric Blake  <ebb9@byu.net>
1690
1691         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
1692         This is more consistent with the other defines here.
1693         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
1694         Port to z/OS.  Problem reported by Paul Gilmartin.
1695         Change local vars to use gl_ prefix rather than ac_.
1696         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
1697         with other defines.
1698         * modules/double-slash-root: New module.
1699         * modules/dirname (Files): Remove m4/double-slash-root.m4.
1700         (Depends-on): Add double-slash-root.
1701         * MODULES.html.sh (File system functions): Mention new module.
1702
1703 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
1704
1705         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
1706         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
1707         This is for the benefit of gzip, which doesn't do i18n.
1708
1709 2006-12-12  Jim Meyering  <jim@meyering.net>
1710
1711         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
1712         Reported by Andreas Schwab <schwab@suse.de>.
1713
1714 2006-12-12  Bruno Haible  <bruno@clisp.org>
1715
1716         Merge these changes.
1717         2006-09-05  Bruno Haible  <bruno@clisp.org>
1718         * lib/iconvme.c (iconv_string): No need to save and restore errno when
1719         iconv_alloc succeeded.
1720         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
1721         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
1722         test for " && dest " at the end - dest is always != NULL there. Call
1723         iconv with 4xNULL arguments initially, to reset the state. Call iconv
1724         with 2xNULL arguments, also to flush the state storage. Handle the
1725         IRIX iconv behaviour. Realloc the final result, to throw away unused
1726         memory.
1727
1728 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
1729
1730         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
1731         and fchmodat unconditionally, since glibc 2.4 has them.
1732         Problem reported by Arkadiusz Miskiewicz.
1733
1734 2006-12-10  Bruno Haible  <bruno@clisp.org>
1735
1736         * gnulib-tool (func_import): Show the include files only for those
1737         modules that are copied and specified.
1738         Reported by Karl Berry.
1739
1740 2006-12-08  Jim Meyering  <jim@meyering.net>
1741
1742         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
1743         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
1744
1745         * build-aux/announce-gen: Add two new options, both optional:
1746         --bootstrap-tools=TOOL_LIST
1747               a comma-separated list of tools, e.g.,
1748               autoconf,automake,bison,gnulib
1749         --gnulib-snapshot-date=DATE
1750               if gnulib is in the bootstrap tool list,
1751               then report this as the snapshot date.
1752               If not specified, use the current date/time.
1753               If you specify a date here, be sure it's UTC.
1754
1755 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1756
1757         * tests/test-argp-2.sh: Fix test to match actual output.
1758         (func_compare): Fix sed script to be portable.
1759
1760 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
1761
1762         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
1763         workaround for this case.  It is not autoconfigured now; offhand
1764         it's hard to see how to autoconfigure it.
1765
1766 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
1767
1768         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
1769         a directory that is about to be chowned.  Such a directory's
1770         initial file permissions should permit the owner only and this
1771         should not be changed until after the chown, since the group and
1772         other bits would be incorrect if they granted permission before
1773         the chown.
1774
1775         Fix porting problem for iswctype reported by Georg Schwarz in:
1776         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
1777         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
1778         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
1779         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
1780         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
1781
1782 2006-12-03  Jim Meyering  <jim@meyering.net>
1783
1784         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
1785         p->fts_statp may not yet be defined.
1786         (fts_read): Instead, set it in the caller, once p->fts_statp is
1787         sure to be defined, and corresponds to a top-level directory.
1788         This bug made du -x fail.  Here's the coreutils test case:
1789         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
1790         Reported by Mike Frysinger.
1791
1792 2006-12-01  Jim Meyering  <jim@meyering.net>
1793
1794         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
1795         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
1796         Reported by Simon Josefsson.
1797
1798 2006-11-30  Jim Meyering  <jim@meyering.net>
1799
1800         * m4/warning.m4: Use the all-permissive copyright notice
1801         recommended by RMS (rather than LGPL).
1802         * m4/vararrays.m4: Likewise.
1803         * m4/flexmember.m4: Likewise.
1804
1805 2006-11-29  Bruno Haible  <bruno@clisp.org>
1806
1807         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
1808         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
1809         using +=.
1810         Reported by Simon Josefsson <simon@josefsson.org>.
1811
1812 2006-11-28  James Youngman <jay@gnu.org>
1813
1814         * README: Advise users that they might find the bug-gnulib@gnu.org
1815         and autotools-announce@gnu.org mailing lists useful.
1816
1817 2006-11-28  Bruno Haible  <bruno@clisp.org>
1818
1819         * m4/ptrdiff_max.m4: Remove file.
1820
1821 2006-11-21  Bruno Haible  <bruno@clisp.org>
1822
1823         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
1824         _AC_COMPUTE_INT.
1825         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
1826         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
1827         _AC_COMPUTE_INT.
1828         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
1829         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
1830         _AC_COMPUTE_INT.
1831         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
1832
1833 2006-11-28  Jim Meyering  <jim@meyering.net>
1834
1835         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
1836         warning from "gcc -Wshadow" about shadowing the builtin.
1837
1838 2006-11-27  Bruno Haible  <bruno@clisp.org>
1839
1840         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
1841         _AC_COMPUTE_INT.
1842         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
1843
1844 2006-11-27  Bruno Haible  <bruno@clisp.org>
1845             Paul Eggert  <eggert@cs.ucla.edu>
1846
1847         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
1848
1849 2006-11-26  Bruno Haible  <bruno@clisp.org>
1850
1851         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
1852         noinst_LTLIBRARIES.
1853
1854 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
1855             Bruno Haible  <bruno@clisp.org>
1856
1857         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
1858         if compiling with "gcc -ansi".
1859
1860 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
1861
1862         Fix some incompatibilities with gcc -ansi -pedantic.
1863         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
1864         if compiling pedantically with GCC, unless it's C99 or later.
1865         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
1866         it mishandles gcc -ansi -pedantic as well.
1867         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
1868         if gcc -pedantic.
1869         * lib/regexec.c (check_node_accept_bytes): Don't use auto
1870         initializers for struct if -pedantic, unless it's C99 or later.
1871
1872 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
1873
1874         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
1875         Don't close an fd more than once. Identical atimes indicate
1876         success, not failure.
1877
1878 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
1879
1880         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
1881
1882 2006-11-23  Jim Meyering  <jim@meyering.net>
1883
1884         * build-aux/announce-gen: New file.  From coreutils.
1885
1886 2006-11-22  Jim Meyering  <jim@meyering.net>
1887
1888         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
1889         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
1890         (fts_read): Use a temporary to narrow the overused st_size member
1891         before using it in a switch statement.  Reported by Matthew Woehlke.
1892
1893         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
1894         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
1895
1896 2006-11-20  Bruno Haible  <bruno@clisp.org>
1897
1898         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
1899         changequote instead of pairs of brackets.
1900         Reported by Andreas Schwab <schwab@suse.de>.
1901
1902 2006-11-21  Jim Meyering  <jim@meyering.net>
1903
1904         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
1905         so as to remain compatible with older compilers.
1906         Patch from Michael Deutschmann.
1907
1908 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
1909
1910         * MODULES.html.sh (File system functions): Add openat.
1911
1912         * lib/openat.h (rpl_fstatat): New macro, if
1913         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
1914         (fstatat): Define to rpl_fstatat under the same conditions,
1915         unless COMPILING_FSTATAT.
1916         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
1917         seems to have the bug.
1918         * lib/fstatat.c: New file.
1919         * modules/openat (Files): Add it.
1920
1921 2006-11-20  Bruno Haible  <bruno@clisp.org>
1922
1923         * Makefile: New file.
1924
1925 2006-11-20  Jim Meyering  <jim@meyering.net>
1926
1927         The beginnings of syntax-related checks for gnulib.
1928         * lib/Makefile: New file.
1929         * lib/t-idcache: New script.  Ensure that the two halves of
1930         idcache.c stay in sync.
1931
1932         * lib/idcache.c: Adjust comments in user- and group- portions to
1933         be more accurate, and to be consistent with one another.
1934
1935 2006-11-20  Jim Meyering  <jim@meyering.net>
1936
1937         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
1938         continue using the flexible array member (thus, this module performs
1939         half as many malloc calls), with the addition that...
1940         (getgroup, getuser): Consistently record a non-match via an empty
1941         "name" string, and map an empty string match to a NULL return value.
1942         * modules/idcache (Depends-on): Re-add flexmember.
1943
1944         * lib/idcache.c (getuser): Remove all uses of the register keyword.
1945         (getuidbyname, getgroup, getgidbyname): Likewise.
1946
1947         Use cleaner syntax: NULL rather than 0.
1948         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
1949
1950 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
1951
1952         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
1953         It mishandled the case where the group was missing.
1954         Problem reported by Greg Schafer.
1955         * modules/idcache: Likewise.
1956
1957 2006-11-18  Jim Meyering  <jim@meyering.net>
1958
1959         * check-module (%exempt_header): Add exception for some
1960         conditionally-included headers.
1961
1962         * modules/i-ring (Depends-on): Add verify.
1963         (License): Change to LGPL.
1964
1965 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
1966
1967         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
1968         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
1969         and inttostr.h.  Use snprintf rather than uinttostr, so that
1970         LGPLed code doesn't depend on GPLed.
1971
1972 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
1973
1974         * modules/inline (License): Change from GPL to LGPL.
1975
1976 2006-11-17  Jim Meyering  <jim@meyering.net>
1977
1978         * modules/d-type (License): Switch to LGPL.
1979
1980 2006-11-15  Bruno Haible  <bruno@clisp.org>
1981
1982         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
1983
1984 2006-11-15  Eric Blake  <ebb9@byu.net>
1985
1986         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
1987         the module dependency.
1988
1989 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
1990             Bruno Haible  <bruno@clisp.org>
1991
1992         * gnulib-tool (func_create_testdir): Add license consistency check.
1993
1994 2006-11-15  Eric Blake  <ebb9@byu.net>
1995
1996         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
1997         random "(cached)" in configure output.
1998
1999 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2000
2001         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
2002         test for conforming inttypes.h is both announced and cached.
2003
2004         * MODULES.html.sh (seen_modules, seen_files): New variables.
2005         (func_module): Rewrite to use a few less gnulib-tool and sed
2006         invocations.  Avoid a couple of quadratic algorithms for ...
2007         (missed_modules, missed_files): ... these, with ...
2008         (func_append, func_tmpdir): ... these new functions, from
2009         gnulib-tool.  Analogously, install traps for cleanup.
2010
2011         * tests/test-gc.c (main): Remove unused variables.
2012         * tests/test-read-file.c: Include stdlib.h, for 'free'.
2013
2014 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
2015
2016         * modules/inttostr (License): Change to LGPL.
2017
2018 2006-11-14  Eric Blake  <ebb9@byu.net>
2019
2020         * modules/tempname (License): Change to LGPL.
2021
2022 2006-11-14  Eric Blake  <ebb9@byu.net>
2023
2024         * doc/functions.texi (Function Portability): *printf functions on
2025         Cygwin now understand all POSIX size specifiers.
2026
2027 2006-11-14  Bruno Haible  <bruno@clisp.org>
2028
2029         * modules/c-ctype (License): Change to LGPL.
2030
2031 2006-11-12  Bruno Haible  <bruno@clisp.org>
2032
2033         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
2034         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
2035         for GNOME libraries, for which the include files are installed in
2036         subdirectories of $prefix/include.
2037
2038 2006-11-12  Bruno Haible  <bruno@clisp.org>
2039
2040         * m4/lib-link.m4: Require at least autoconf-2.54.
2041         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
2042         name to underscores for the --with option.
2043
2044 2006-11-13  Bruno Haible  <bruno@clisp.org>
2045
2046         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
2047         the tests directory.
2048         Reported by Ralf Wildenhues.
2049
2050 2006-11-13  Bruno Haible  <bruno@clisp.org>
2051
2052         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
2053         (func_emit_initmacro_end): Undo the override here.
2054         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
2055         Works around the famous automake error in coreutils.
2056
2057 2006-11-13  Eric Blake  <ebb9@byu.net>
2058
2059         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
2060         element, not its node.
2061
2062 2006-11-12  Bruno Haible  <bruno@clisp.org>
2063
2064         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
2065         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
2066
2067 2006-11-12  Bruno Haible  <bruno@clisp.org>
2068
2069         * gnulib-tool: New option --local-symlink.
2070         (func_usage): Document it.
2071         (lsymbolic): New variable.
2072         (func_import, func_create_testdir): If --symlink was not specified,
2073         test whether --local-symlink was specified and the file comes from
2074         the local_gnulib_dir.
2075
2076 2006-11-12  Bruno Haible  <bruno@clisp.org>
2077
2078         * gnulib-tool (func_ln): New function.
2079         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
2080
2081 2006-11-12  Bruno Haible  <bruno@clisp.org>
2082
2083         Finish support for source files in subdirectories.
2084         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
2085         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
2086         AUTOMAKE_OPTIONS.
2087         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
2088
2089 2006-11-12  Bruno Haible  <bruno@clisp.org>
2090
2091         * gnulib-tool (func_get_automake_snippet): Synthesize also an
2092         EXTRA_lib_SOURCES augmentation.
2093         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
2094
2095 2006-11-12  Jim Meyering  <jim@meyering.net>
2096
2097         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
2098         file descriptors.  This also averts a failure on systems with
2099         native openat support when a traversed directory lacks "x" access.
2100         * lib/fts_.h: Include "i-ring.h"
2101         (struct FTS) [fts_fd_ring]: New member.
2102         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
2103         (FCHDIR): Add parentheses.
2104         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
2105         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
2106         When descending, rather than simply closing the previous
2107         fts_cwd_fd value, push that file descriptor onto the ring.
2108         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
2109         (fts_open): Initialize the new fd_ring member.
2110         (fts_close): Clear the ring.
2111         (fts_safe_changedir): When possible, use our new fd_ring to skip
2112         the diropen and fstat and dev/ino comparison that would normally
2113         accompany a virtual `chdir ("..")'.
2114
2115         * modules/fts (Depends-on): Add i-ring.
2116         * modules/i-ring: New module.
2117         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
2118         * m4/i-ring.m4: New file.
2119
2120 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2121
2122         * gnulib-tool (func_create_testdir): Fix replacement of
2123         `build-aux' in configure.ac.  Run autotools in gltests
2124         subdirectory.
2125         (func_create_testdir, func_create_megatestdir, test): There is
2126         no need for '--force' in most autotool invocations in a new
2127         tree.  Actually fail the whole test if any of the tools, or the
2128         configure or make stages fail.
2129
2130         Sync from Automake.
2131         * build-aux/gnupload: Revert last change.  Add pointer to upload
2132         instructions of the GNU Maintenance Instructions.
2133         Suggestion by Karl Berry.
2134
2135 2006-11-10  Jim Meyering  <jim@meyering.net>
2136
2137         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
2138
2139 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
2140
2141         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
2142         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
2143         (bind_textdomain_codeset) [! ENABLE_NLS]:
2144         Evaluate all the arguments.  That way, callers get compatible behavior
2145         if the arguments have side effects.  Also, it avoids some GCC
2146         diagnostics in some cases; Joel E. Denny reported problems when Bison
2147         was configured with --enable-gcc-warnigs.
2148
2149 2006-11-10  Jim Meyering  <jim@meyering.net>
2150
2151         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
2152         relevant options in CFLAGS (like -O, -fno-inline) are taken into
2153         account.
2154
2155 2006-11-10  Jim Meyering  <jim@meyering.net>
2156
2157         * modules/inline: New file/module.
2158         * modules/xalloc (Files): Remove m4/inline.m4.
2159         (Depends-on): Add inline, instead.
2160         * modules/oset: Likewise.
2161         * modules/list: Likewise.
2162
2163 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
2164
2165         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
2166         Problem reported by Matthew Woehlke.
2167
2168 2006-11-09  Bruno Haible  <bruno@clisp.org>
2169
2170         * lib/tempname.c (gen_tempname): Remove variant that invokes
2171         __gen_tempname.
2172         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
2173         __gen_tempname.
2174
2175 2006-11-08  Bruno Haible  <bruno@clisp.org>
2176
2177         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
2178         to 'yes' instead of 'cross-compiling'.
2179
2180 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
2181
2182         * lib/quotearg.h (quotearg_free): New decl.
2183         * lib/quotearg.c (quotearg_free): New function.
2184         (slot0, nslots, slotvec0, slotvec):
2185         Now file-scope so that quotearg_free can get at them.
2186
2187 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2188
2189         Sync from Automake.
2190         * build-aux/gnupload: Add missing 'gnu' to example URL.
2191         Report by Karl Berry.
2192
2193 2006-11-08  Bruno Haible  <bruno@clisp.org>
2194
2195         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
2196         Suggested by Paul Eggert.
2197
2198 2006-11-08  Jim Meyering  <jim@meyering.net>
2199
2200         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
2201         It's already included if !_LIBC.
2202         (fts_safe_changedir): Add a comment.
2203
2204 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
2205
2206         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
2207         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
2208         Matthew Woehlke.
2209
2210         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
2211         definitions up, to avoid colliding with change below.
2212         (static_inline) [HAVE_INLINE]: New macro.
2213         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
2214         Provide extern decls when !HAVE_INLINE.  Do not define unless
2215         static_inline is defined, either by us or by xmalloc.c.  Use
2216         static_inline rather than static inline.
2217         (XCALLOC): Optimize sizeof(T) = 1 case.
2218         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
2219
2220 2006-11-07  Bruno Haible  <bruno@clisp.org>
2221
2222         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
2223         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
2224         AC_C_INLINE.
2225         * modules/xalloc (Files): Add m4/inline.m4.
2226
2227 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2228
2229         * README: Fix typo.
2230         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
2231         (Miscellanous Notes): ...from this.
2232
2233 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
2234
2235         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
2236         Mention that offsetof should be used instead of sizeof.
2237         From Bruno Haible.
2238
2239 2006-11-07  Bruno Haible  <bruno@clisp.org>
2240
2241         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
2242
2243 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
2244
2245         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
2246         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
2247         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
2248         (gl_tree_add_before, gl_tree_add_after):
2249         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
2250         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
2251         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
2252         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
2253         (gl_linked_add_after, gl_linked_add_at): Likewise.
2254         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
2255         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
2256         (gl_tree_add_before, gl_tree_add_after): Likewise.
2257         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
2258         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
2259         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
2260
2261 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2262
2263         * lib/gl_oset.h: Use C comment style, not C++ comment style.
2264
2265 2006-11-06  Bruno Haible  <bruno@clisp.org>
2266
2267         * m4/inline.m4: New file.
2268         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
2269         * modules/list (Files): Add m4/inline.m4.
2270         * modules/oset (Files): Likewise.
2271
2272 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
2273
2274         * lib/idcache.c: Include <stddef.h>, for offsetof.
2275         (struct userid.name): Change from char * to a flexible array member.
2276         All uses changed.
2277         * modules/idcache (Depends-on): Add flexmember.
2278
2279         * MODULES.html.sh (Core language properties): New module flexmember.
2280         * modules/flexmember, m4/flexmember.m4: New files.
2281
2282         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
2283         inline functions that are identical with the old xnmalloc_inline,
2284         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
2285         that we can avoid some unnecessary integer multiplications and
2286         divisions in the common case where the element size is known at
2287         compile time.
2288         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
2289         needed.
2290         (xnboundedmalloc): Remove.
2291         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
2292         arguments, for consistency with rest of this header.
2293         (xcharalloc): Rewrite using XNMALLOC.
2294         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
2295         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
2296         versions have been moved to lib/xalloc.h and renamed to be the
2297         non-*_inline versions.
2298         (xmalloc, xrealloc): Implement without reference to the xnmalloc
2299         and xnrealloc functions, since those functions are now inline and
2300         now call us.
2301         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
2302         renaming described above.
2303         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
2304         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
2305         captures the dependency in AC_C_INLINE.
2306
2307         New module canonicalize-lgpl, proposed by Charles Wilson in
2308         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
2309         with a few small changes afterwards.
2310         * MODULES.html.sh (File system functions): New module
2311         canonicalize-lgpl.
2312         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
2313         and canonicalize_file_name.
2314         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
2315         * modules/canonicalize-lgpl: New files.
2316
2317 2006-11-05  Bruno Haible  <bruno@clisp.org>
2318
2319         * gnulib-tool (func_import, func_create_testdir): Create directories
2320         also for files in subdirectories of lib/.
2321
2322 2006-11-05  Bruno Haible  <bruno@clisp.org>
2323
2324         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
2325         ANSI C compliant.
2326
2327 2006-11-03  Bruno Haible  <bruno@clisp.org>
2328
2329         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
2330         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
2331         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
2332         (xnboundedmalloc): New inline function.
2333         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
2334         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
2335         xmalloc.
2336         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
2337         xmalloc.
2338         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
2339         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
2340         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
2341         xmalloc.
2342         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
2343         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
2344         xmalloc.
2345         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
2346         gl_tree_add_after): Use XMALLOC instead of xmalloc.
2347         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
2348         xmalloc.
2349         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
2350         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
2351         gl_tree_add_after): Use XMALLOC instead of xmalloc.
2352         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
2353         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
2354         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
2355         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
2356
2357 2006-11-03  Bruno Haible  <bruno@clisp.org>
2358
2359         * lib/c-ctype.h [C++]: Define functions without name mangling.
2360         * lib/fwriteerror.h [C++]: Likewise.
2361         * lib/gcd.h [C++]: Likewise.
2362         * lib/linebreak.h [C++]: Likewise.
2363
2364 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
2365
2366         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
2367         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
2368         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
2369         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
2370         Check for functions and headers just once.
2371         Check for declaration of canonicalize_file_name.
2372         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
2373
2374 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
2375
2376         * gnulib-tool (func_import): Fix typo in actioncmd.
2377
2378 2006-11-02  Bruno Haible  <bruno@clisp.org>
2379
2380         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
2381         newline sequence in the Makefile.am snippet as a space, like "make"
2382         does.
2383         Reported by Roger Persson <perrog@gmail.com>.
2384
2385 2006-11-01  Bruno Haible  <bruno@clisp.org>
2386
2387         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
2388         already declared in <string.h>.
2389         * lib/strcase.h (strncasecmp): Don't declare it if yes.
2390
2391 2006-11-01  Bruno Haible  <bruno@clisp.org>
2392
2393         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
2394         * lib/strcase.h: Include <string.h>.
2395         (strcasecmp): Define to rpl_strcasecmp here.
2396
2397 2006-11-01  Bruno Haible  <bruno@clisp.org>
2398
2399         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
2400
2401 2006-11-01  Eric Blake  <ebb9@byu.net>
2402
2403         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
2404
2405         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
2406
2407 2006-10-29  Bruno Haible  <bruno@clisp.org>
2408
2409         Make it compile in C++ mode.
2410         * lib/full-write.c (full_rw): Add a cast.
2411
2412 2006-11-01  Bruno Haible  <bruno@clisp.org>
2413
2414         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
2415         be POSIX compliant.
2416         Reported by Roger Persson <perrog@gmail.com>.
2417
2418 2006-11-01  Eric Blake  <ebb9@byu.net>
2419
2420         * lib/getopt_.h: Fix comments.
2421
2422 2006-10-31  Eric Blake  <ebb9@byu.net>
2423
2424         * modules/tmpdir (Depends-on): Add sys_stat.
2425         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
2426         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
2427         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
2428         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
2429         tempname.
2430
2431 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
2432
2433         Avoid some C++ diagnostics reported by Bruno Haible.
2434         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
2435         xmalloc.
2436         (quotearg_alloc): Use xcharalloc rather than xmalloc.
2437         (struct slotvec): Move to top level.
2438         (quotearg_n_options): Rewrite to avoid xmalloc.
2439         * lib/xalloc.h (xcharalloc): New function.
2440         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
2441         [defined __cplusplus]: Add function template that provides result
2442         type propagation.  This part of the change is from Bruno Haible.
2443
2444 2006-10-29  Bruno Haible  <bruno@clisp.org>
2445
2446         Make it compile in C++ mode.
2447         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
2448         * lib/strnlen1.c (strnlen1): Cast memchr result.
2449         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
2450         * lib/clean-temp.c (string_equals, string_hash): Add casts.
2451         (create_temp_dir): Rename local variable 'template'.
2452         (compile_csharp_using_sscli): Add cast.
2453         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
2454         * lib/findprog.c (find_in_path): Likewise.
2455         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
2456         * lib/wait-process.c (register_slave_subprocess): Likewise.
2457
2458 2006-10-22  Bruno Haible  <bruno@clisp.org>
2459
2460         * modules/tsearch: New file.
2461         * lib/tsearch.h: New file.
2462         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
2463         * m4/tsearch.m4: New file.
2464         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
2465
2466 2006-10-29  Eric Blake  <ebb9@byu.net>
2467
2468         * lib/arcfour.c: Assume config.h.
2469         * lib/arctwo.c: Likewise.
2470         * lib/base64.c: Likewise.
2471         * lib/check-version.c: Likewise.
2472         * lib/crc.c: Likewise.
2473         * lib/des.c: Likewise.
2474         * lib/gc-gnulib.c: Likewise.
2475         * lib/gc-libgcrypt.c: Likewise.
2476         * lib/gc-pbkdf2-sha1.c: Likewise.
2477         * lib/getaddrinfo.c: Likewise.
2478         * lib/getdelim.c: Likewise.
2479         * lib/getline.c: Likewise.
2480         * lib/hmac-md5.c: Likewise.
2481         * lib/hmac-sha1.c: Likewise.
2482         * lib/iconvme.c: Likewise.
2483         * lib/md2.c: Likewise.
2484         * lib/md4.c: Likewise.
2485         * lib/memxor.c: Likewise.
2486         * lib/read-file.c: Likewise.
2487         * lib/readline.c: Likewise.
2488         * lib/rijndael-alg-fst.c: Likewise.
2489         * lib/rijndael-api-fst.c: Likewise.
2490         * lib/xgetdomainname.c: Likewise.
2491
2492 2006-10-28  Eric Blake  <ebb9@byu.net>
2493
2494         * lib/xstrndup.c: Assume config.h.
2495
2496 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
2497
2498         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
2499         stat-macros.h is now for our own macros, whereas stat_h is for
2500         macros in the <sys/stat.h> name space.
2501         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
2502         (STAT_MACROS_H): Remove.
2503         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
2504         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
2505         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
2506         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
2507         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
2508         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
2509         Move these macros to ...
2510         * lib/stat_.h: here.  Don't include stat-macros.h.
2511         * lib/canonicalize.c: Don't include stat-macros.h.
2512         * lib/chown.c: Likewise.
2513         * lib/euidaccess.c: Likewise.
2514         * lib/file-type.c: Likewise.
2515         * lib/filemode.c: Likewise.
2516         * lib/glob.c: Likewise.
2517         * lib/isapipe.c: Likewise.
2518         * lib/lchown.c: Likewise.
2519         * lib/lstat.c: Likewise.
2520         * lib/mkdir-p.c: Likewise.
2521         * lib/rmdir.c: Likewise.
2522         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
2523         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
2524         unless mkdir isn't declared, to speed up 'configure'.
2525         Always create sys/stat.h, since it's unlikely any real sys/stat.h
2526         would define all the S_* symbols.
2527         * modules/canonicalize (Depends-on):
2528         Depend on sys_stat, not stat-macros.
2529         * modules/chown: Likewise.
2530         * modules/euidaccess: Likewise.
2531         * modules/filemode: Likewise.
2532         * modules/file-type: Likewise.
2533         * modules/glob: Likewise.
2534         * modules/isapipe: Likewise.
2535         * modules/lchown: Likewise.
2536         * modules/lstat: Likewise.
2537         * modules/mkancesdirs: Likewise.
2538         * modules/rmdir: Likewise.
2539         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
2540         * modules/modechange: Likewise.
2541         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
2542         (configure.ac): Remove gl_STAT_MACROS.
2543         * modules/sys_stat (Depends-on): Remove stat-macros.
2544
2545 2006-10-27  Bruno Haible  <bruno@clisp.org>
2546
2547         * m4/signed.m4: Remove file.
2548         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
2549         invocation.
2550         * modules/vasnprintf (Files): Remove m4/signed.m4.
2551
2552 2006-10-27  Bruno Haible  <bruno@clisp.org>
2553
2554         Update to GNU gettext 0.16.
2555         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
2556         m4/inttypes-h.m4, m4/signed.m4.
2557         * m4/gettext.m4: Update to GNU gettext 0.16.
2558         * m4/intl.m4: New file, from GNU gettext.
2559         * m4/intldir.m4: New file, from GNU gettext.
2560         * config/srclist.txt: Update
2561
2562 2006-10-27  Eric Blake  <ebb9@byu.net>
2563
2564         * MODULES.html.sh: Document tempname.
2565         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
2566         dependencies.
2567         (Files): Move lib/tempname.c...
2568         * modules/tempname: ...to this new module.
2569         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
2570         (gl_PREREQ_TEMPNAME): Move...
2571         * m4/tempname.m4: ...to this new file.
2572         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
2573         * modules/sys_stat (Depends-on): Add stat-macros.
2574         * lib/stat_.h (includes): Pick up stat macros.
2575         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
2576         if stat macros are broken.
2577         * lib/tempname.c (includes): No need to include "stat-macros.h".
2578         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
2579         (direxists, __path_search) [!_LIBC]: Don't compile these in
2580         gnulib; the tmpdir module covers that.
2581         * lib/tempname.h: New file.
2582
2583 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
2584
2585         * COPYING: Explain how gnulib-tool converts licence headers.
2586         Almost all wording by Eric Blake.
2587
2588 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
2589
2590         * lib/mbchar.h (is_basic_table): Make read-only.
2591         * lib/mbchar.c (is_basic_table): Likewise.
2592         Reported by John Darrington.
2593
2594 2006-10-25  Bruno Haible  <bruno@clisp.org>
2595
2596         * lib/progname.h (set_program_name): Undefine before defining.
2597
2598 2006-10-25  Bruno Haible  <bruno@clisp.org>
2599
2600         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
2601         false for non-gcc C++ compilers.
2602         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
2603
2604 2006-10-24  Bruno Haible  <bruno@clisp.org>
2605
2606         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
2607         iconv implementations like Irix iconv.
2608
2609 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
2610
2611         * modules/vararrays: New file.
2612         * m4/vararrays.m4: New file, taken from diffutils.
2613         * MODULES.html.sh: New module vararrays.
2614
2615 2006-10-24  Karl Berry  <karl@gnu.org>
2616
2617         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
2618         Don't call GNU Unix.
2619
2620 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2621
2622         * users.txt: Add Libtool.
2623
2624         Sync from Libtool:
2625
2626         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
2627
2628         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
2629         to gnulib's policy of including config.h unconditionally.
2630
2631 2006-10-24  Bruno Haible  <bruno@clisp.org>
2632
2633         * modules/wcwidth (Files): Add m4/wint_t.m4.
2634         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
2635         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
2636
2637 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
2638
2639         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
2640         to pacify GCC with some -W flags enabled.  Problem reported by
2641         Bruno Haible.
2642
2643 2006-10-24  Jim Meyering  <jim@meyering.net>
2644
2645         * MODULES.html.sh: Remove uinttostr.  It's not a module.
2646         Reported by Karl Berry.
2647
2648 2006-10-23  Bruno Haible  <bruno@clisp.org>
2649
2650         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
2651
2652 2006-10-24  Bruno Haible  <bruno@clisp.org>
2653
2654         * lib/gl_list.h: Use C comment style, not C++ comment style.
2655
2656 2006-10-23  Eric Blake  <ebb9@byu.net>
2657
2658         * lib/getaddrinfo.c (includes): Add missing include.
2659
2660 2006-10-23  Bruno Haible  <bruno@clisp.org>
2661             Paul Eggert  <eggert@cs.ucla.edu>
2662
2663         Ability to rename obstack_free.
2664         * lib/obstack.h (__obstack_free): New macro. Declare instead of
2665         obstack_free.
2666         (obstack_free): Invoke the __obstack_free macro.
2667         * lib/obstack.c (obstack_free): Use __obstack_free macro.
2668
2669 2006-10-23  Bruno Haible  <bruno@clisp.org>
2670             Paul Eggert  <eggert@cs.ucla.edu>
2671
2672         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
2673         __argc, __argv from the declaration. (They are defined as macros on
2674         mingw.)
2675
2676 2006-10-22  Bruno Haible  <bruno@clisp.org>
2677
2678         * doc/gnulib-intro.texi: New file.
2679         * doc/gnulib.texi: Include it.
2680
2681 2006-10-21  Bruno Haible  <bruno@clisp.org>
2682
2683         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
2684         "Introduction", "Miscellanous Notes", "Particular Modules".
2685
2686 2006-10-21  Bruno Haible  <bruno@clisp.org>
2687
2688         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
2689         Change mostlyclean-local rule to avoid sh syntax error from bash
2690         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
2691
2692 2006-10-23  Jim Meyering  <jim@meyering.net>
2693
2694         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
2695         in place of snprintf.
2696
2697         * modules/inttostr (Files): Add lib/uinttostr.c.
2698         * lib/uinttostr.c (inttostr): New file/function.
2699         * lib/inttostr.h (uinttostr): Declare.
2700         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
2701         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
2702         Add uinttostr.
2703         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
2704
2705 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
2706
2707         * lib/canonicalize.c (ELOOP): Define if not already defined.
2708         Problem reported by Bruno Haible in
2709         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
2710
2711 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
2712
2713         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
2714         Problem reported by Perry Smith and Ville Laurikari.
2715
2716         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
2717         uses.
2718
2719 2006-10-19  Bruno Haible  <bruno@clisp.org>
2720
2721         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
2722         for mingw.
2723
2724 2006-10-19  Bruno Haible  <bruno@clisp.org>
2725
2726         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
2727         Needed for mingw.
2728
2729 2006-10-19  Bruno Haible  <bruno@clisp.org>
2730
2731         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
2732
2733 2006-10-19  Bruno Haible  <bruno@clisp.org>
2734
2735         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
2736         it.
2737
2738 2006-10-19  Bruno Haible  <bruno@clisp.org>
2739
2740         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
2741         invocation.
2742
2743 2006-10-19  Bruno Haible  <bruno@clisp.org>
2744
2745         * gnulib-tool (func_create_testdir): Don't include ftruncate and
2746         mountlist by default.
2747
2748 2006-10-16  Bruno Haible  <bruno@clisp.org>
2749
2750         * lib/c-strstr.c: Include c-strstr.h.
2751
2752 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
2753
2754         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
2755         in a slash.
2756
2757 2006-10-18  Bruno Haible  <bruno@clisp.org>
2758
2759         * lib/lock.h [C++]: Wrap definitions in extern "C".
2760
2761 2006-10-18  Bruno Haible  <bruno@clisp.org>
2762
2763         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
2764         gl_LIBOBJS list.
2765
2766 2006-10-18  Bruno Haible  <bruno@clisp.org>
2767
2768         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
2769
2770 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
2771
2772         * lib/xstrtol.h: Include gettext.h.
2773         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
2774         Problem reported by Eric Blake.
2775         * modules/xstrtol (Depends-on): Add gettext-h.
2776
2777 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
2778
2779         * lib/strftime.c (advance): New macro.
2780         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
2781         incomplete type, so you can't add 0 to it.  Problem and patch
2782         reported by Eelco Dolstra for dietlibc.
2783
2784 2006-10-18  Jim Meyering  <jim@meyering.net>
2785
2786         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
2787         type for a local, and rename it: s/up/user_proc/.
2788
2789 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
2790
2791         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
2792         READ_UTMP_USER_PROCESS.
2793         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
2794
2795 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
2796
2797         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
2798         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
2799
2800 2006-10-17  Eric Blake  <ebb9@byu.net>
2801
2802         * lib/sigprocmask.c (sigprocmask): Fix typo.
2803
2804         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
2805
2806         * modules/clean-temp (Makefile.am): Don't add to make output...
2807         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
2808         config.h.
2809
2810 2006-10-17  Bruno Haible  <bruno@clisp.org>
2811
2812         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
2813         differently if DEFAULT_TEXT_DOMAIN is set.
2814
2815 2006-10-16  Bruno Haible  <bruno@clisp.org>
2816
2817         * lib/clean-temp.c: Include fwriteerror.h.
2818
2819 2006-10-16  Bruno Haible  <bruno@clisp.org>
2820
2821         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
2822
2823 2006-10-16  Bruno Haible  <bruno@clisp.org>
2824
2825         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
2826         * lib/sigprocmask.h: Include <sys/types.h>.
2827         (sigset_t): Use the system's definition if present.
2828
2829 2006-10-17  Eric Blake  <ebb9@byu.net>
2830
2831         * lib/xvasprintf.c (includes): Assume config.h.
2832         * lib/xasprintf.c (includes): Likewise.
2833
2834 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
2835
2836         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
2837         at least as wide as intmax_t.
2838
2839 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
2840
2841         (Imported from Automake.)
2842         * build-aux/gnupload: Update to version 1.1 of directive file.
2843
2844 2006-10-16  Eric Blake  <ebb9@byu.net>
2845
2846         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
2847         match Automake 1.10a.
2848
2849 2006-10-14  Bruno Haible  <bruno@clisp.org>
2850
2851         * modules/sigprocmask: New file.
2852         * lib/sigprocmask.h: New file.
2853         * lib/sigprocmask.c: New file.
2854         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
2855         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
2856         request sigprocmask.o.
2857         (gl_PREREQ_SIGPROCMASK): New macro.
2858         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
2859         (Depends-on): Add sigprocmask.
2860         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
2861         gt_SIGNALBLOCKING. Test for 'raise' only once.
2862         * lib/fatal-signal.c: Include sigprocmask.h.
2863         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
2864         unblock_fatal_signals): Define always.
2865         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
2866         sigprocmask.
2867
2868 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
2869
2870         Sync from Automake.
2871         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
2872         which incorrectly sets the mode of an existing destination
2873         directory.  In some cases the unpatched install-sh could do the
2874         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
2875         system.  We hope this is rare in practice, but it's clearly worth
2876         fixing.  Problem reported by Alex Unleashed in
2877         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
2878         Also, don't bother to check for -m bugs unless we're using -m;
2879         suggested by Stepan Kasal.
2880
2881 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2882
2883         Sync from Automake.
2884         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
2885         `-c' flag, so they appear at the same position as in %FASTDEP%
2886         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
2887         which ignores unknown options only after the first non-option.
2888         Bug report against M4 by Nelson H. F. Beebe.
2889
2890 2006-10-13  Jim Meyering  <jim@meyering.net>
2891
2892         Fix a bug in yesterday's change.
2893         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
2894         p->fts_statp->st_dev would be used uninitialized.
2895         Ensures that we always call fts_stat on the very first entry.
2896         Miklos Szeredi reported that find -xdev stopped working.
2897
2898 2006-10-12  Bruno Haible  <bruno@clisp.org>
2899
2900         * gnulib-tool (func_get_automake_snippet): Append an automatically
2901         computed EXTRA_DIST augmentation.
2902         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
2903         * modules/alloca-opt (Makefile.am): Likewise.
2904         * modules/allocsa (Makefile.am): Likewise.
2905         * modules/arcfour (Makefile.am): Likewise.
2906         * modules/arctwo (Makefile.am): Likewise.
2907         * modules/argmatch (Makefile.am): Likewise.
2908         * modules/argz (Makefile.am): Likewise.
2909         * modules/atexit (Makefile.am): Likewise.
2910         * modules/backupfile (Makefile.am): Likewise.
2911         * modules/byteswap (Makefile.am): Likewise.
2912         * modules/c-strtod (Makefile.am): Likewise.
2913         * modules/c-strtold (Makefile.am): Likewise.
2914         * modules/calloc (Makefile.am): Likewise.
2915         * modules/canon-host (Makefile.am): Likewise.
2916         * modules/canonicalize (Makefile.am): Likewise.
2917         * modules/chdir-long (Makefile.am): Likewise.
2918         * modules/chdir-safer (Makefile.am): Likewise.
2919         * modules/check-version (Makefile.am): Likewise.
2920         * modules/chown (Makefile.am): Likewise.
2921         * modules/cloexec (Makefile.am): Likewise.
2922         * modules/close-stream (Makefile.am): Likewise.
2923         * modules/closeout (Makefile.am): Likewise.
2924         * modules/crc (Makefile.am): Likewise.
2925         * modules/csharpexec (Makefile.am): Likewise.
2926         * modules/cycle-check (Makefile.am): Likewise.
2927         * modules/des (Makefile.am): Likewise.
2928         * modules/dev-ino (Makefile.am): Likewise.
2929         * modules/dirfd (Makefile.am): Likewise.
2930         * modules/dirname (Makefile.am): Likewise.
2931         * modules/dup2 (Makefile.am): Likewise.
2932         * modules/eealloc (Makefile.am): Likewise.
2933         * modules/error (Makefile.am): Likewise.
2934         * modules/euidaccess (Makefile.am): Likewise.
2935         * modules/exclude (Makefile.am): Likewise.
2936         * modules/exitfail (Makefile.am): Likewise.
2937         * modules/fcntl-safer (Makefile.am): Likewise.
2938         * modules/fcntl (Makefile.am): Likewise.
2939         * modules/file-type (Makefile.am): Likewise.
2940         * modules/fileblocks (Makefile.am): Likewise.
2941         * modules/filemode (Makefile.am): Likewise.
2942         * modules/filenamecat (Makefile.am): Likewise.
2943         * modules/fnmatch (Makefile.am): Likewise.
2944         * modules/fopen-safer (Makefile.am): Likewise.
2945         * modules/fpending (Makefile.am): Likewise.
2946         * modules/fprintftime (Makefile.am): Likewise.
2947         * modules/free (Makefile.am): Likewise.
2948         * modules/fsusage (Makefile.am): Likewise.
2949         * modules/ftruncate (Makefile.am): Likewise.
2950         * modules/fts (Makefile.am): Likewise.
2951         * modules/gc-arcfour (Makefile.am): Likewise.
2952         * modules/gc-des (Makefile.am): Likewise.
2953         * modules/gc-hmac-md5 (Makefile.am): Likewise.
2954         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
2955         * modules/gc-md4 (Makefile.am): Likewise.
2956         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
2957         * modules/gc-sha1 (Makefile.am): Likewise.
2958         * modules/gc (Makefile.am): Likewise.
2959         * modules/getaddrinfo (Makefile.am): Likewise.
2960         * modules/getcwd (Makefile.am): Likewise.
2961         * modules/getdelim (Makefile.am): Likewise.
2962         * modules/getdomainname (Makefile.am): Likewise.
2963         * modules/getgroups (Makefile.am): Likewise.
2964         * modules/gethostname (Makefile.am): Likewise.
2965         * modules/gethrxtime (Makefile.am): Likewise.
2966         * modules/getline (Makefile.am): Likewise.
2967         * modules/getloadavg (Makefile.am): Likewise.
2968         * modules/getlogin_r (Makefile.am): Likewise.
2969         * modules/getndelim2 (Makefile.am): Likewise.
2970         * modules/getopt (Makefile.am): Likewise.
2971         * modules/getpagesize (Makefile.am): Likewise.
2972         * modules/getpass-gnu (Makefile.am): Likewise.
2973         * modules/getpass (Makefile.am): Likewise.
2974         * modules/getsubopt (Makefile.am): Likewise.
2975         * modules/gettime (Makefile.am): Likewise.
2976         * modules/gettimeofday (Makefile.am): Likewise.
2977         * modules/getugroups (Makefile.am): Likewise.
2978         * modules/getusershell (Makefile.am): Likewise.
2979         * modules/glob (Makefile.am): Likewise.
2980         * modules/group-member (Makefile.am): Likewise.
2981         * modules/hard-locale (Makefile.am): Likewise.
2982         * modules/hash (Makefile.am): Likewise.
2983         * modules/hmac-md5 (Makefile.am): Likewise.
2984         * modules/hmac-sha1 (Makefile.am): Likewise.
2985         * modules/human (Makefile.am): Likewise.
2986         * modules/idcache (Makefile.am): Likewise.
2987         * modules/imaxabs (Makefile.am): Likewise.
2988         * modules/imaxdiv (Makefile.am): Likewise.
2989         * modules/inet_ntop (Makefile.am): Likewise.
2990         * modules/inet_pton (Makefile.am): Likewise.
2991         * modules/intprops (Makefile.am): Likewise.
2992         * modules/inttostr (Makefile.am): Likewise.
2993         * modules/inttypes (Makefile.am): Likewise.
2994         * modules/isapipe (Makefile.am): Likewise.
2995         * modules/javaversion (Makefile.am): Likewise.
2996         * modules/lchmod (Makefile.am): Likewise.
2997         * modules/lchown (Makefile.am): Likewise.
2998         * modules/localcharset (Makefile.am): Likewise.
2999         * modules/long-options (Makefile.am): Likewise.
3000         * modules/lstat (Makefile.am): Likewise.
3001         * modules/malloc (Makefile.am): Likewise.
3002         * modules/mathl (Makefile.am): Likewise.
3003         * modules/mbchar (Makefile.am): Likewise.
3004         * modules/md2 (Makefile.am): Likewise.
3005         * modules/md4 (Makefile.am): Likewise.
3006         * modules/md5 (Makefile.am): Likewise.
3007         * modules/memcasecmp (Makefile.am): Likewise.
3008         * modules/memchr (Makefile.am): Likewise.
3009         * modules/memcmp (Makefile.am): Likewise.
3010         * modules/memcoll (Makefile.am): Likewise.
3011         * modules/memcpy (Makefile.am): Likewise.
3012         * modules/memmem (Makefile.am): Likewise.
3013         * modules/memmove (Makefile.am): Likewise.
3014         * modules/mempcpy (Makefile.am): Likewise.
3015         * modules/memrchr (Makefile.am): Likewise.
3016         * modules/memset (Makefile.am): Likewise.
3017         * modules/memxor (Makefile.am): Likewise.
3018         * modules/mkancesdirs (Makefile.am): Likewise.
3019         * modules/mkdir-p (Makefile.am): Likewise.
3020         * modules/mkdir (Makefile.am): Likewise.
3021         * modules/mkdtemp (Makefile.am): Likewise.
3022         * modules/mkstemp (Makefile.am): Likewise.
3023         * modules/mktime (Makefile.am): Likewise.
3024         * modules/modechange (Makefile.am): Likewise.
3025         * modules/mountlist (Makefile.am): Likewise.
3026         * modules/nanosleep (Makefile.am): Likewise.
3027         * modules/obstack (Makefile.am): Likewise.
3028         * modules/openat (Makefile.am): Likewise.
3029         * modules/pagealign_alloc (Makefile.am): Likewise.
3030         * modules/pathmax (Makefile.am): Likewise.
3031         * modules/physmem (Makefile.am): Likewise.
3032         * modules/poll (Makefile.am): Likewise.
3033         * modules/posixtm (Makefile.am): Likewise.
3034         * modules/posixver (Makefile.am): Likewise.
3035         * modules/putenv (Makefile.am): Likewise.
3036         * modules/quote (Makefile.am): Likewise.
3037         * modules/quotearg (Makefile.am): Likewise.
3038         * modules/raise (Makefile.am): Likewise.
3039         * modules/read-file (Makefile.am): Likewise.
3040         * modules/readline (Makefile.am): Likewise.
3041         * modules/readlink (Makefile.am): Likewise.
3042         * modules/readtokens (Makefile.am): Likewise.
3043         * modules/readutmp (Makefile.am): Likewise.
3044         * modules/realloc (Makefile.am): Likewise.
3045         * modules/regex (Makefile.am): Likewise.
3046         * modules/rename-dest-slash (Makefile.am): Likewise.
3047         * modules/rename (Makefile.am): Likewise.
3048         * modules/rijndael (Makefile.am): Likewise.
3049         * modules/rmdir (Makefile.am): Likewise.
3050         * modules/rpmatch (Makefile.am): Likewise.
3051         * modules/safe-read (Makefile.am): Likewise.
3052         * modules/safe-write (Makefile.am): Likewise.
3053         * modules/same-inode (Makefile.am): Likewise.
3054         * modules/same (Makefile.am): Likewise.
3055         * modules/save-cwd (Makefile.am): Likewise.
3056         * modules/savedir (Makefile.am): Likewise.
3057         * modules/setenv (Makefile.am): Likewise.
3058         * modules/settime (Makefile.am): Likewise.
3059         * modules/sha1 (Makefile.am): Likewise.
3060         * modules/sig2str (Makefile.am): Likewise.
3061         * modules/snprintf (Makefile.am): Likewise.
3062         * modules/stat-macros (Makefile.am): Likewise.
3063         * modules/stat-time (Makefile.am): Likewise.
3064         * modules/stdbool (Makefile.am): Likewise.
3065         * modules/stdint (Makefile.am): Likewise.
3066         * modules/stdlib-safer (Makefile.am): Likewise.
3067         * modules/stpcpy (Makefile.am): Likewise.
3068         * modules/stpncpy (Makefile.am): Likewise.
3069         * modules/strcase (Makefile.am): Likewise.
3070         * modules/strcasestr (Makefile.am): Likewise.
3071         * modules/strchrnul (Makefile.am): Likewise.
3072         * modules/strcspn (Makefile.am): Likewise.
3073         * modules/strdup (Makefile.am): Likewise.
3074         * modules/strerror (Makefile.am): Likewise.
3075         * modules/strftime (Makefile.am): Likewise.
3076         * modules/strndup (Makefile.am): Likewise.
3077         * modules/strnlen (Makefile.am): Likewise.
3078         * modules/strpbrk (Makefile.am): Likewise.
3079         * modules/strsep (Makefile.am): Likewise.
3080         * modules/strstr (Makefile.am): Likewise.
3081         * modules/strtod (Makefile.am): Likewise.
3082         * modules/strtoimax (Makefile.am): Likewise.
3083         * modules/strtok_r (Makefile.am): Likewise.
3084         * modules/strtol (Makefile.am): Likewise.
3085         * modules/strtoll (Makefile.am): Likewise.
3086         * modules/strtoul (Makefile.am): Likewise.
3087         * modules/strtoull (Makefile.am): Likewise.
3088         * modules/strtoumax (Makefile.am): Likewise.
3089         * modules/strverscmp (Makefile.am): Likewise.
3090         * modules/sys_socket (Makefile.am): Likewise.
3091         * modules/sys_stat (Makefile.am): Likewise.
3092         * modules/sysexits (Makefile.am): Likewise.
3093         * modules/time_r (Makefile.am): Likewise.
3094         * modules/timegm (Makefile.am): Likewise.
3095         * modules/timespec (Makefile.am): Likewise.
3096         * modules/tmpfile-safer (Makefile.am): Likewise.
3097         * modules/trim (Makefile.am): Likewise.
3098         * modules/unistd-safer (Makefile.am): Likewise.
3099         * modules/unlinkdir (Makefile.am): Likewise.
3100         * modules/unlocked-io (Makefile.am): Likewise.
3101         * modules/userspec (Makefile.am): Likewise.
3102         * modules/utime (Makefile.am): Likewise.
3103         * modules/utimecmp (Makefile.am): Likewise.
3104         * modules/utimens (Makefile.am): Likewise.
3105         * modules/vasnprintf (Makefile.am): Likewise.
3106         * modules/vasprintf (Makefile.am): Likewise.
3107         * modules/vsnprintf (Makefile.am): Likewise.
3108         * modules/xalloc (Makefile.am): Likewise.
3109         * modules/xgetcwd (Makefile.am): Likewise.
3110         * modules/xnanosleep (Makefile.am): Likewise.
3111         * modules/xreadlink (Makefile.am): Likewise.
3112         * modules/xstrtod (Makefile.am): Likewise.
3113         * modules/xstrtol (Makefile.am): Likewise.
3114         * modules/xstrtold (Makefile.am): Likewise.
3115         * modules/yesno (Makefile.am): Likewise.
3116         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
3117
3118 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
3119
3120         * modules/error (Makefile.am): Distribute files through
3121         EXTRA_DIST, not lib_SOURCES.
3122
3123 2006-10-12  Eric Blake  <ebb9@byu.net>
3124
3125         * modules/error (Makefile.am): Distribute files in /lib.
3126         * modules/obstack (Makefile.am): Likewise.
3127
3128 2006-10-12  Bruno Haible  <bruno@clisp.org>
3129
3130         * modules/acl (Makefile.am): Distribute all files in lib/ through
3131         EXTRA_DIST.
3132         * modules/arcfour (Makefile.am): Likewise.
3133         * modules/arctwo (Makefile.am): Likewise.
3134         * modules/argmatch (Makefile.am): Likewise.
3135         * modules/argz (Makefile.am): Likewise.
3136         * modules/atexit (Makefile.am): Likewise.
3137         * modules/backupfile (Makefile.am): Likewise.
3138         * modules/c-strtod (Makefile.am): Likewise.
3139         * modules/c-strtold (Makefile.am): Likewise.
3140         * modules/calloc (Makefile.am): Likewise.
3141         * modules/canon-host (Makefile.am): Likewise.
3142         * modules/canonicalize (Makefile.am): Likewise.
3143         * modules/chdir-long (Makefile.am): Likewise.
3144         * modules/chdir-safer (Makefile.am): Likewise.
3145         * modules/check-version (Makefile.am): Likewise.
3146         * modules/chown (Makefile.am): Likewise.
3147         * modules/cloexec (Makefile.am): Likewise.
3148         * modules/close-stream (Makefile.am): Likewise.
3149         * modules/closeout (Makefile.am): Likewise.
3150         * modules/crc (Makefile.am): Likewise.
3151         * modules/cycle-check (Makefile.am): Likewise.
3152         * modules/des (Makefile.am): Likewise.
3153         * modules/dirfd (Makefile.am): Likewise.
3154         * modules/dirname (Makefile.am): Likewise.
3155         * modules/dup2 (Makefile.am): Likewise.
3156         * modules/euidaccess (Makefile.am): Likewise.
3157         * modules/exclude (Makefile.am): Likewise.
3158         * modules/exitfail (Makefile.am): Likewise.
3159         * modules/fcntl-safer (Makefile.am): Likewise.
3160         * modules/file-type (Makefile.am): Likewise.
3161         * modules/fileblocks (Makefile.am): Likewise.
3162         * modules/filemode (Makefile.am): Likewise.
3163         * modules/filenamecat (Makefile.am): Likewise.
3164         * modules/fnmatch (Makefile.am): Likewise.
3165         * modules/fopen-safer (Makefile.am): Likewise.
3166         * modules/fpending (Makefile.am): Likewise.
3167         * modules/fprintftime (Makefile.am): Likewise.
3168         * modules/free (Makefile.am): Likewise.
3169         * modules/fsusage (Makefile.am): Likewise.
3170         * modules/ftruncate (Makefile.am): Likewise.
3171         * modules/fts (Makefile.am): Likewise.
3172         * modules/gc (Makefile.am): Likewise.
3173         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
3174         * modules/getaddrinfo (Makefile.am): Likewise.
3175         * modules/getcwd (Makefile.am): Likewise.
3176         * modules/getdelim (Makefile.am): Likewise.
3177         * modules/getdomainname (Makefile.am): Likewise.
3178         * modules/getgroups (Makefile.am): Likewise.
3179         * modules/gethostname (Makefile.am): Likewise.
3180         * modules/gethrxtime (Makefile.am): Likewise.
3181         * modules/getline (Makefile.am): Likewise.
3182         * modules/getloadavg (Makefile.am): Likewise.
3183         * modules/getlogin_r (Makefile.am): Likewise.
3184         * modules/getopt (Makefile.am): Likewise.
3185         * modules/getpass (Makefile.am): Likewise.
3186         * modules/getpass-gnu (Makefile.am): Likewise.
3187         * modules/getsubopt (Makefile.am): Likewise.
3188         * modules/gettime (Makefile.am): Likewise.
3189         * modules/gettimeofday (Makefile.am): Likewise.
3190         * modules/getugroups (Makefile.am): Likewise.
3191         * modules/getusershell (Makefile.am): Likewise.
3192         * modules/glob (Makefile.am): Likewise.
3193         * modules/group-member (Makefile.am): Likewise.
3194         * modules/hard-locale (Makefile.am): Likewise.
3195         * modules/hash (Makefile.am): Likewise.
3196         * modules/hmac-md5 (Makefile.am): Likewise.
3197         * modules/hmac-sha1 (Makefile.am): Likewise.
3198         * modules/human (Makefile.am): Likewise.
3199         * modules/idcache (Makefile.am): Likewise.
3200         * modules/imaxabs (Makefile.am): Likewise.
3201         * modules/imaxdiv (Makefile.am): Likewise.
3202         * modules/inet_ntop (Makefile.am): Likewise.
3203         * modules/inet_pton (Makefile.am): Likewise.
3204         * modules/inttostr (Makefile.am): Likewise.
3205         * modules/isapipe (Makefile.am): Likewise.
3206         * modules/lchown (Makefile.am): Likewise.
3207         * modules/long-options (Makefile.am): Likewise.
3208         * modules/lstat (Makefile.am): Likewise.
3209         * modules/malloc (Makefile.am): Likewise.
3210         * modules/mathl (Makefile.am): Likewise.
3211         * modules/mbchar (Makefile.am): Likewise.
3212         * modules/md2 (Makefile.am): Likewise.
3213         * modules/md4 (Makefile.am): Likewise.
3214         * modules/md5 (Makefile.am): Likewise.
3215         * modules/memcasecmp (Makefile.am): Likewise.
3216         * modules/memchr (Makefile.am): Likewise.
3217         * modules/memcmp (Makefile.am): Likewise.
3218         * modules/memcoll (Makefile.am): Likewise.
3219         * modules/memcpy (Makefile.am): Likewise.
3220         * modules/memmem (Makefile.am): Likewise.
3221         * modules/memmove (Makefile.am): Likewise.
3222         * modules/mempcpy (Makefile.am): Likewise.
3223         * modules/memrchr (Makefile.am): Likewise.
3224         * modules/memset (Makefile.am): Likewise.
3225         * modules/memxor (Makefile.am): Likewise.
3226         * modules/mkancesdirs (Makefile.am): Likewise.
3227         * modules/mkdir (Makefile.am): Likewise.
3228         * modules/mkdir-p (Makefile.am): Likewise.
3229         * modules/mkdtemp (Makefile.am): Likewise.
3230         * modules/mkstemp (Makefile.am): Likewise.
3231         * modules/mktime (Makefile.am): Likewise.
3232         * modules/modechange (Makefile.am): Likewise.
3233         * modules/mountlist (Makefile.am): Likewise.
3234         * modules/nanosleep (Makefile.am): Likewise.
3235         * modules/openat (Makefile.am): Likewise.
3236         * modules/pagealign_alloc (Makefile.am): Likewise.
3237         * modules/physmem (Makefile.am): Likewise.
3238         * modules/poll (Makefile.am): Likewise.
3239         * modules/posixtm (Makefile.am): Likewise.
3240         * modules/posixver (Makefile.am): Likewise.
3241         * modules/putenv (Makefile.am): Likewise.
3242         * modules/quote (Makefile.am): Likewise.
3243         * modules/quotearg (Makefile.am): Likewise.
3244         * modules/raise (Makefile.am): Likewise.
3245         * modules/read-file (Makefile.am): Likewise.
3246         * modules/readline (Makefile.am): Likewise.
3247         * modules/readlink (Makefile.am): Likewise.
3248         * modules/readtokens (Makefile.am): Likewise.
3249         * modules/readutmp (Makefile.am): Likewise.
3250         * modules/realloc (Makefile.am): Likewise.
3251         * modules/regex (Makefile.am): Likewise.
3252         * modules/rename (Makefile.am): Likewise.
3253         * modules/rename-dest-slash (Makefile.am): Likewise.
3254         * modules/rijndael (Makefile.am): Likewise.
3255         * modules/rmdir (Makefile.am): Likewise.
3256         * modules/rpmatch (Makefile.am): Likewise.
3257         * modules/safe-read (Makefile.am): Likewise.
3258         * modules/safe-write (Makefile.am): Likewise.
3259         * modules/same (Makefile.am): Likewise.
3260         * modules/save-cwd (Makefile.am): Likewise.
3261         * modules/savedir (Makefile.am): Likewise.
3262         * modules/setenv (Makefile.am): Likewise.
3263         * modules/settime (Makefile.am): Likewise.
3264         * modules/sha1 (Makefile.am): Likewise.
3265         * modules/sig2str (Makefile.am): Likewise.
3266         * modules/snprintf (Makefile.am): Likewise.
3267         * modules/stdlib-safer (Makefile.am): Likewise.
3268         * modules/stpcpy (Makefile.am): Likewise.
3269         * modules/stpncpy (Makefile.am): Likewise.
3270         * modules/strcase (Makefile.am): Likewise.
3271         * modules/strcasestr (Makefile.am): Likewise.
3272         * modules/strchrnul (Makefile.am): Likewise.
3273         * modules/strcspn (Makefile.am): Likewise.
3274         * modules/strdup (Makefile.am): Likewise.
3275         * modules/strerror (Makefile.am): Likewise.
3276         * modules/strftime (Makefile.am): Likewise.
3277         * modules/strndup (Makefile.am): Likewise.
3278         * modules/strnlen (Makefile.am): Likewise.
3279         * modules/strpbrk (Makefile.am): Likewise.
3280         * modules/strsep (Makefile.am): Likewise.
3281         * modules/strstr (Makefile.am): Likewise.
3282         * modules/strtod (Makefile.am): Likewise.
3283         * modules/strtoimax (Makefile.am): Likewise.
3284         * modules/strtok_r (Makefile.am): Likewise.
3285         * modules/strtol (Makefile.am): Likewise.
3286         * modules/strtoll (Makefile.am): Likewise.
3287         * modules/strtoul (Makefile.am): Likewise.
3288         * modules/strtoull (Makefile.am): Likewise.
3289         * modules/strtoumax (Makefile.am): Likewise.
3290         * modules/strverscmp (Makefile.am): Likewise.
3291         * modules/time_r (Makefile.am): Likewise.
3292         * modules/timegm (Makefile.am): Likewise.
3293         * modules/tmpfile-safer (Makefile.am): Likewise.
3294         * modules/unistd-safer (Makefile.am): Likewise.
3295         * modules/unlinkdir (Makefile.am): Likewise.
3296         * modules/userspec (Makefile.am): Likewise.
3297         * modules/utime (Makefile.am): Likewise.
3298         * modules/utimecmp (Makefile.am): Likewise.
3299         * modules/utimens (Makefile.am): Likewise.
3300         * modules/vasnprintf (Makefile.am): Likewise.
3301         * modules/vasprintf (Makefile.am): Likewise.
3302         * modules/vsnprintf (Makefile.am): Likewise.
3303         * modules/xalloc (Makefile.am): Likewise.
3304         * modules/xgetcwd (Makefile.am): Likewise.
3305         * modules/xnanosleep (Makefile.am): Likewise.
3306         * modules/xreadlink (Makefile.am): Likewise.
3307         * modules/xstrtod (Makefile.am): Likewise.
3308         * modules/xstrtol (Makefile.am): Likewise.
3309         * modules/xstrtold (Makefile.am): Likewise.
3310         * modules/yesno (Makefile.am): Likewise.
3311
3312 2006-10-12  Jim Meyering  <jim@meyering.net>
3313
3314         * m4/getloadavg.m4: Revert the change below.
3315
3316         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
3317         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
3318         fail with a symlink, which is what coreutils' ./bootstrap now
3319         creates by default.
3320
3321 2006-10-12  Bruno Haible  <bruno@clisp.org>
3322
3323         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
3324         mingw.
3325         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
3326         MSVC and mingw explicitly.
3327
3328 2006-10-11  Simon Josefsson  <jas@extundo.com>
3329             Bruno Haible  <bruno@clisp.org>
3330
3331         Add support for multiple gnulib-tool invocations in the scope of a
3332         single configure.ac file.
3333         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
3334         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
3335         with the same contents as the _LIBADD variable.
3336         (func_emit_initmacro_start, func_emit_initmacro_end,
3337         func_emit_initmacro_done): New functions.
3338         (func_import, func_create_testdir): Invoke them. Allow the identifiers
3339         gl_LIBOBJS and gl_LTLIBOBJS.
3340
3341 2006-10-11  Bruno Haible  <bruno@clisp.org>
3342
3343         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
3344         (func_create_testdir): Don't create po/Makefile.am, don't invoke
3345         autoreconf. Instead, invoke autopoint explicitly but move back the
3346         *.m4 files from gnulib.
3347
3348 2006-10-11  Bruno Haible  <bruno@clisp.org>
3349
3350         * gnulib-tool (func_usage): Make module names after --create-testdir
3351         optional.
3352         (func_create_testdir): If no module was specified, use nearly all
3353         modules.
3354
3355 2006-10-12  Jim Meyering  <jim@meyering.net>
3356
3357         Big performance improvement for fts-based tools that use FTS_NOSTAT.
3358         Avoid spurious inode-mismatch problems on non-POSIX file systems.
3359         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
3360         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
3361         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
3362         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
3363         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
3364         (fts_set_stat_required): New function.
3365         (fts_open): Defer the calls to fts_stat, if possible or requested.
3366         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
3367         into fts_stat itself.
3368         (fts_read): Perform any required (deferred) fts_stat call.
3369         (fts_build): Likewise, for the directory we're about to open and read.
3370         In the readdir loop, carefully decide whether each entry will require
3371         an eventual call to fts_stat, using dirent.d_type info if available.
3372         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
3373         a command line argument into this function.  Update all callers.
3374         Map a return value of FTS_DOT to FTS_D for a command line argument.
3375         * modules/fts (Depends-on): Add d-type.  Alphabetize.
3376         Thanks to Miklos Szeredi for his tenacity and for the initial
3377         bug report about "find" failing on a FUSE-based file system.
3378
3379         * lib/fts.c (fts_open): Use consistent indentation.
3380
3381 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
3382
3383         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
3384         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
3385         reported by Jim Meyering.  All uses of cache variables renamed
3386         to match Autoconf's.
3387         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
3388         the other one.
3389
3390         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
3391         Fix misspelling in diagnostic.
3392
3393 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
3394
3395         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
3396         defined.  Problem reported by Matthew Woehlke.
3397
3398         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
3399         Add support for Tandem NonStop R series.
3400         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
3401         Use new macro.
3402
3403         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
3404         (has_trailing_slash): Omit size arg; all callers changed.
3405         Omit 'inline', since it doesn't help performance and we'd
3406         need to configure it.
3407         Don't count //, ///, etc. as having a trailing slash.
3408         As a side effect, this removes a C99ism reported by Matthew Woehlke.
3409         (rpl_rename_dest_slash): On failure, use rename's errno rather
3410         than (in some cases) an incorrect or junk errno.
3411         Simplify code by removing need to compute length; this does
3412         cause it to make two passes instead of one over the file name,
3413         but it's worth it.
3414
3415         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
3416         change, since Autoconf's version may no longer be appropriate now
3417         that we are using CVS Autoconf's version.  Add support for Tandem.
3418
3419 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
3420             Bruno Haible  <bruno@clisp.org>
3421
3422         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
3423         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
3424         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
3425         gl_AC_TYPE_LONG_LONG.
3426
3427         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
3428         instead of HAVE_LONG_LONG.
3429         * lib/printf-args.c (printf_fetchargs): Likewise.
3430         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
3431         * lib/vasnprintf.c (VASNPRINTF): Likewise.
3432         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
3433         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
3434         gl_AC_TYPE_LONG_LONG.
3435
3436 2006-10-11  Bruno Haible  <bruno@clisp.org>
3437
3438         * m4/longlong.m4: Add comments.
3439         * m4/ulonglong.m4: Likewise.
3440
3441 2006-10-10  Bruno Haible  <bruno@clisp.org>
3442
3443         Make it possible to #define stpcpy, strdup to aliases.
3444         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
3445         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
3446
3447 2006-10-10  Bruno Haible  <bruno@clisp.org>
3448
3449         Make it possible to #define gcd to an alias.
3450         * lib/gcd.c: Include config.h.
3451
3452 2006-10-10  Bruno Haible  <bruno@clisp.org>
3453
3454         Make it possible to #define c_isascii to an alias.
3455         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
3456         defined. Undefine the macros before defining them, to avoid gcc
3457         warnings.
3458         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
3459         define NO_C_CTYPE_MACROS early.
3460
3461 2006-10-10  Bruno Haible  <bruno@clisp.org>
3462
3463         Make it possible to #define set_program_name to an alias.
3464         * lib/progname.c: Don't undefine set_program_name; instead, undefine
3465         ENABLE_RELOCATABLE early.
3466
3467 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
3468
3469         Port to Tandem NSK OSS, which has 64-bit signed int but at most
3470         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
3471         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
3472         More generally, don't assume that 64-bit signed int is available
3473         if unsigned int is, and vice versa.
3474         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
3475         unsigned symbols, not on their signed counterparts.
3476         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
3477         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
3478         (UINT64_C, UINTMAX_C):
3479         Likewise.
3480         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
3481         unsigned counterparts.
3482         (Have_long_long, Unsigned): New macros.
3483         (Int): Renamed from INT.
3484         (strtoimax): Use the new macros.
3485         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
3486         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
3487         * modules/inttypes (inttypes.h): Substitute
3488         HAVE_UNSIGNED_LONG_LONG_INT.
3489         * modules/stdint (stdint.h): Likewise.
3490         (Files): Add m4/ulonglong.m4.
3491
3492 2006-10-10  Bruno Haible  <bruno@clisp.org>
3493
3494         Fix a gcc -Wshadow warning.
3495         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
3496         to 'bucket'.
3497         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
3498         gl_linked_indexof_from_to): Likewise.
3499         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
3500         Likewise.
3501         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
3502         Likewise.
3503         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
3504         Reported by Eric Blake.
3505
3506 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
3507
3508         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
3509         for NetBSD.  Problem reported by Bruno Haible.
3510
3511 2006-10-09  Jim Meyering  <jim@meyering.net>
3512
3513         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
3514         Patch from Bruno Haible.
3515
3516 2006-10-09  Jim Meyering  <jim@meyering.net>
3517
3518         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
3519         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
3520         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
3521
3522 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
3523
3524         Don't include <config.h> twice; this doesn't work in some cases,
3525         e.g., when config.h has "#define intmax_t long long int" and
3526         we include <config.h>, <inttypes.h>, <config.h> in that order.
3527         Problem reported by Matthew Woehlke in:
3528         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
3529         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
3530         * lib/fts-cycle.c: Don't include config.h.
3531         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
3532         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
3533         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
3534         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
3535         inttypes.h.
3536         * lib/xstrtoumax.c: Likewise.
3537         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
3538         __strtol and the like, so that this module is more like its siblings.
3539         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
3540         Remove; no longer needed now that we assume gnulib inttypes.h.
3541
3542 2006-10-08  Bruno Haible  <bruno@clisp.org>
3543
3544         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
3545         option.
3546
3547 2006-10-07  Jim Meyering  <jim@meyering.net>
3548
3549         * modules/inttypes (inttypes.h): Revert what seems to have been
3550         an inadvertent part of today's change: use "|", not "/" in the
3551         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
3552
3553 2006-10-07  Bruno Haible  <bruno@clisp.org>
3554
3555         * modules/sublist: New file.
3556
3557 2006-10-07  Bruno Haible  <bruno@clisp.org>
3558
3559         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
3560         * modules/argz (argz.h): Likewise.
3561         * modules/arpa_inet (arpa/inet.h): Likewise.
3562         * modules/byteswap (byteswap.h): Likewise.
3563         * modules/configmake (configmake.h): Likewise.
3564         * modules/fcntl (fcntl.h): Likewise.
3565         * modules/fnmatch (fnmatch.h): Likewise.
3566         * modules/getopt (getopt.h): Likewise.
3567         * modules/glob (glob.h): Likewise.
3568         * modules/inttypes (inttypes.h): Likewise.
3569         * modules/netinet_in (netinet/in.h): Likewise.
3570         * modules/poll (poll.h): Likewise.
3571         * modules/stdbool (stdbool.h): Likewise.
3572         * modules/stdint (stdint.h): Likewise.
3573         * modules/sys_select (sys/select.h): Likewise.
3574         * modules/sys_socket (sys/socket.h): Likewise.
3575         * modules/sys_stat (sys/stat.h): Likewise.
3576         * modules/sysexits (sysexits.h): Likewise.
3577         * modules/unistd (unistd.h): Likewise.
3578         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
3579         Add a "DO NOT EDIT" comment to the generated file.
3580         (func_import): Likewise for gnulib-comp.m4.
3581
3582 2006-10-07  Bruno Haible  <bruno@clisp.org>
3583
3584         * lib/gl_sublist.h: New file.
3585         * lib/gl_sublist.c: New file.
3586
3587 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
3588
3589         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
3590         name (relative to the original working directory) and the file
3591         name component (relative to the temporary working directory).  All
3592         callers changed.
3593         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
3594         * lib/mkdir-p.c (make_dir_parents): Likewise.
3595         * lib/mkdir-p.h (make_dir_parents): Likewise.
3596
3597 2006-10-06  Eric Blake  <ebb9@byu.net>
3598
3599         Define several macros for use by the clean-temp module.
3600         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
3601         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
3602         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
3603
3604         * lib/clean-temp.h (close_stream_temp): New declaration.
3605         * lib/clean-temp.c (includes): Pull in headers according to what
3606         other modules are in use.
3607         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
3608
3609 2006-10-06  Bruno Haible  <bruno@clisp.org>
3610
3611         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
3612         instead of fopen, fwriteerror.
3613
3614 2006-10-06  Bruno Haible  <bruno@clisp.org>
3615
3616         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
3617         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
3618         int.
3619         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
3620         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
3621         Return an error indicator.
3622         Suggested by Eric Blake.
3623
3624 2006-10-06  Bruno Haible  <bruno@clisp.org>
3625
3626         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
3627         Reported by Eric Blake.
3628
3629 2006-10-06  Bruno Haible  <bruno@clisp.org>
3630
3631         * modules/closeout (Description): Mention stderr too.
3632
3633 2006-10-06  Bruno Haible  <bruno@clisp.org>
3634         and Paul Eggert  <eggert@cs.ucla.edu>
3635
3636         * lib/closeout.c (close_stdout): Also close stderr.
3637         * lib/closeout.h: Update comment.
3638
3639 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
3640
3641         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
3642         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
3643         * lib/dirchownmod.c: Include lchown.h.
3644         * lib/lchown.c: Don't include files that lchown.h now includes.
3645         Don't declare chown, since lchown.h now does that.
3646         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
3647         (lchown): Define to rpl_chown if lchown is declared but
3648         does not exist.  Declare using a prototype if lchown is not
3649         declared.  Add a copyright notice.
3650         * lib/mkstemp.h: Include <unistd.h>.
3651         * lib/openat.c: Include lchown.h.
3652
3653         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
3654         we now test for that separately.
3655         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
3656         rather than O_NOFOLLOW, when testing whether it's possible to
3657         avoid a race condition reliably.
3658         * lib/savewd.c (savewd_chdir): Likewise.
3659
3660         Remove macros that are no longer needed now that stdint.h is
3661         reliable.
3662         * lib/fsusage.c (UINTMAX_MAX): Remove.
3663         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
3664         * lib/utimecmp.c (SIZE_MAX): Remove.
3665
3666         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
3667
3668         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
3669         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
3670         O_NOATIME works.
3671
3672 2006-10-05  Bruno Haible  <bruno@clisp.org>
3673
3674         * lib/gl_list.h (gl_sortedlist_search_from_to,
3675         gl_sortedlist_indexof_from_to): New declarations.
3676         (gl_list_implementation): New fields sortedlist_search_from_to,
3677         sortedlist_indexof_from_to.
3678         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
3679         inline functions.
3680         * lib/gl_list.c (gl_sortedlist_search_from_to,
3681         gl_sortedlist_indexof_from_to): New functions.
3682         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
3683         function.
3684         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
3685         (gl_array_sortedlist_search_from_to): New function.
3686         (gl_array_list_implementation): Update.
3687         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
3688         function.
3689         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
3690         (gl_carray_sortedlist_search_from_to): New function.
3691         (gl_carray_list_implementation): Update.
3692         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
3693         gl_linked_sortedlist_indexof_from_to): New functions.
3694         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
3695         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
3696         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
3697         gl_tree_sortedlist_indexof_from_to): New functions.
3698         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
3699         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
3700         Update.
3701         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
3702         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
3703         Update.
3704
3705 2006-10-05  Bruno Haible  <bruno@clisp.org>
3706
3707         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
3708         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
3709         (struct gl_list_implementation): Add fields search_from_to,
3710         indexof_from_to. Remove fields search, indexof.
3711         (gl_list_search): Use the search_from_to method.
3712         (gl_list_search_from, gl_list_search_from_to): New functions.
3713         (gl_list_indexof): Use the indexof_from_to method.
3714         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
3715         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
3716         (gl_list_search_from, gl_list_search_from_to): New functions.
3717         (gl_list_indexof): Use the indexof_from_to method.
3718         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
3719         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
3720         gl_array_indexof. Add start_index, end_index arguments.
3721         (gl_array_search_from_to): Renamed from gl_array_search. Add
3722         start_index, end_index arguments.
3723         (gl_array_remove, gl_array_list_implementation): Update.
3724         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
3725         gl_carray_indexof. Add start_index, end_index arguments.
3726         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
3727         start_index, end_index arguments.
3728         (gl_carray_remove, gl_carray_list_implementation): Update.
3729         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
3730         gl_linked_search. Add start_index, end_index arguments.
3731         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
3732         start_index, end_index arguments.
3733         (gl_linked_remove): Update.
3734         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
3735         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
3736         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
3737         field to 'size_t'.
3738         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
3739         gl_tree_search. Add start_index, end_index arguments.
3740         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
3741         start_index, end_index arguments.
3742         (gl_tree_remove): Update.
3743         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
3744         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
3745         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
3746         function.
3747         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
3748         gl_tree_search. Add start_index, end_index arguments.
3749         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
3750         start_index, end_index arguments.
3751         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
3752         Update.
3753         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
3754
3755 2006-10-05  Bruno Haible  <bruno@clisp.org>
3756
3757         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
3758
3759         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
3760         fwriteerror_temp): New declarations.
3761         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
3762         (descriptors): New variable.
3763         (cleanup): First, close the descriptors.
3764         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
3765         fclose_temp, fwriteerror_temp): New functions.
3766
3767 2006-10-04  Jim Meyering  <jim@meyering.net>
3768
3769         * lib/fts.c (fts_open): Tiny comment change.
3770
3771 2006-10-04  Bruno Haible  <bruno@clisp.org>
3772
3773         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
3774         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
3775         gl_LOCK_BODY.
3776         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
3777         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
3778         gl_LOCK_EARLY_BODY.
3779         (gl_LOCK): Require gl_LOCK_BODY.
3780
3781 2006-10-04  Bruno Haible  <bruno@clisp.org>
3782
3783         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
3784         (gl_oset_search_atleast): New declaration.
3785         (struct gl_oset_implementation): Add field 'search_atleast'.
3786         (gl_oset_search_atleast): New inline function.
3787         * lib/gl_oset.c (gl_oset_search_atleast): New function.
3788         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
3789         (gl_array_oset_implementation): Update.
3790         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
3791         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
3792         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
3793
3794 2006-10-04  Bruno Haible  <bruno@clisp.org>
3795
3796         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
3797
3798 2006-10-03  Bruno Haible  <bruno@clisp.org>
3799
3800         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
3801         from gl_avltreehash_list_implementation.
3802
3803 2006-10-03  Bruno Haible  <bruno@clisp.org>
3804
3805         * lib/gl_oset.c (gl_oset_add): Fix return type.
3806
3807 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
3808
3809         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
3810
3811 2006-10-02  Eric Blake  <ebb9@byu.net>
3812
3813         * modules/strnlen (Depends-on): Add extensions.
3814
3815 2006-10-02  Eric Blake  <ebb9@byu.net>
3816
3817         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
3818         definition in 2.60+.
3819
3820 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
3821
3822         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
3823         checks.
3824
3825 2006-10-02  Bruno Haible  <bruno@clisp.org>
3826
3827         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
3828         to the AUTOMAKE_OPTIONS.
3829         Reported by Jim Meyering.
3830
3831 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
3832
3833         Work around bug in Solaris 10 /proc file system:
3834         /proc/self/fd/NNN/.. isn't the parent directory of
3835         the directory whose file descriptor is NNN.  This needs to
3836         be worked around at run time, not compile time, since a
3837         program might be built on Solaris 8, where things work, and
3838         run on Solaris 10.
3839         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
3840         to use the following interface instead:
3841         (OPENAT_BUFFER_SIZE): New macro.
3842         (openat_proc_name): New function.
3843         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
3844         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
3845         Likewise.
3846         * lib/openat-proc.c: New file.
3847         * modules/openat (Files): Add lib/openat-proc.c.
3848         (Depends-on): Add same-inode, stdbool.
3849         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
3850
3851 2006-09-29  Bruno Haible  <bruno@clisp.org>
3852
3853         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
3854         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
3855         argument. Set stdout_closed before testing for ferror, not after.
3856         (fwriteerror, fwriteerror_no_ebadf): New functions.
3857
3858 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3859
3860         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
3861
3862 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
3863
3864         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
3865         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
3866
3867 2006-09-28  Jim Meyering  <jim@meyering.net>
3868
3869         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
3870         Include <unistd.h>.
3871
3872 2006-09-28  Bruno Haible  <bruno@clisp.org>
3873
3874         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
3875         * modules/linkedhash-list (Depends-on): Likewise.
3876         * modules/rbtreehash-list (Depends-on): Likewise.
3877
3878 2006-09-28  Bruno Haible  <bruno@clisp.org>
3879
3880         * lib/strndup.h: Simplify the redefinition of strndup.
3881         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
3882         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
3883
3884 2006-09-28  Bruno Haible  <bruno@clisp.org>
3885
3886         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
3887         * lib/gl_linkedhash_list.c: Likewise.
3888         * lib/gl_rbtreehash_list.c: Likewise.
3889
3890 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
3891
3892         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
3893         getaddrinfo.
3894
3895         * lib/__fpending.h: Don't include <stdio_ext.h> unless
3896         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
3897         it causes <stdio_ext.h> to cause a compile-time error.
3898         Problem reported by Nelson H. F. Beebe.
3899         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
3900         of HAVE_DECL___PENDING.
3901
3902         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
3903         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
3904         declaration.
3905
3906 2006-09-27  Jim Meyering  <jim@meyering.net>
3907
3908         This file could end up with a definition for a function
3909         named __strndup, rather than rpl_strndup on a system with
3910         incomplete weak_alias support.
3911         * lib/strndup.c (strndup): Rename from __strndup.
3912         Remove #defines that used to map __strndup to strndup.
3913         Don't use K&R prototypes.
3914         Remove LIBC-related code, since this file is not sync'd with glibc.
3915         * lib/strndup.h: Revamp, accordingly.
3916         * m4/strndup.m4: Modernize.
3917
3918 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
3919
3920         * modules/savewd (Depends-on): Add 'raise'.
3921         * lib/savewd.c: Include <signal.h>, for 'raise'.
3922
3923 2006-09-26  Jim Meyering  <jim@meyering.net>
3924
3925         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
3926         when we detect Darwin 8.7.0's acl_get_file bug.
3927         Rearrange to perform the new (below) run-test while $LIBS
3928         contains any acl-related library.  Set USE_ACL at the end.
3929         (gl_ACL_GET_FILE): New function.
3930
3931 2006-09-26  Eric Blake  <ebb9@byu.net>
3932
3933         * lib/verror.c: Include <config.h> unconditionally.
3934
3935 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
3936
3937         * modules/clock-time (Maintainer): Add self.
3938         * modules/getlogin_r (Depends-on): Add extensions.
3939
3940 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3941
3942         * modules/clock-time: New module.
3943         * modules/nanosleep (Depends-on): Add clock-time.
3944         * modules/gethrxtime (Depends-on): Likewise.
3945         * modules/gettime (Depends-on): Likewise.
3946         * modules/settime (Depends-on): Likewise.
3947
3948         * modules/fts-lgpl: Depend on openat.
3949         * modules/mkancesdirs: Depend on savewd.
3950         * modules/mkdir-p: Likewise.
3951
3952 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3953
3954         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
3955
3956         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
3957         `gl_have_arbitrary_file_name_length_limit' to
3958         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
3959         actually works between configure runs.
3960
3961 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3962             Bruno Haible  <bruno@clisp.org>
3963
3964         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
3965
3966 2006-09-25  Jim Meyering  <jim@meyering.net>
3967
3968         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
3969         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
3970
3971 2006-09-25  Eric Blake  <ebb9@byu.net>
3972
3973         * gnulib-tool (func_import, func_create_testdir): Fix typos in
3974         exec's in 2006-09-18 patch when shuffling fds.
3975
3976 2006-09-25  Bruno Haible  <bruno@clisp.org>
3977
3978         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
3979         Reported by Jim Meyering.
3980
3981 2006-09-24  Jim Meyering  <jim@meyering.net>
3982
3983         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
3984         compare a pointer against a literal "0".  That caused failures with
3985         at least HP-UX's hpcc.
3986
3987 2006-09-22  Simon Josefsson  <jas@extundo.com>
3988
3989         * modules/gc-sha1:
3990         * modules/gc-md4:
3991         * modules/gc-hmac-sha1:
3992         * modules/gc-hmac-md5:
3993         * modules/gc-des:
3994         * modules/gc-arcfour: Distribute more files.
3995
3996 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3997
3998         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
3999         (gl_linked_iterator_from_to): Initialize struct completely.
4000         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
4001         (gl_tree_iterator_from_to): Likewise
4002         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
4003         * lib/gl_array_list.c [lint] (gl_array_iterator)
4004         (gl_array_iterator_from_to): Likewise.
4005         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
4006         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
4007         (gl_carray_iterator_from_to): Likewise.
4008
4009         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
4010         * lib/md4.c (md4_process_block): Remove unused variable.
4011         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
4012         parentheses for clarity.
4013
4014 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4015
4016         * modules/bison-i18n (Depends-on): Add gettext.
4017
4018 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4019
4020         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
4021         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
4022         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
4023         also add missing comma that caused broken test.
4024         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
4025         stdlib.h, for `abort'.
4026         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
4027         variables.
4028         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
4029         include unistd.h if present, for `rmdir'.
4030         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
4031         variables.
4032         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
4033         in the process include standard headers for prototypes.
4034         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
4035         gets declared on GNU/Linux.
4036         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
4037         unistd.h, for `rmdir'.
4038         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
4039
4040         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
4041         always true.
4042         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
4043
4044         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
4045
4046 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4047
4048         * gnulib-tool (func_version): Create output all at once.  This
4049         may help avoid triggering unnecessary SIGPIPEs, and at any
4050         rate it doesn't hurt.
4051
4052 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4053             Bruno Haible  <bruno@clisp.org>
4054
4055         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
4056         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
4057         * m4/signed.m4 (bh_C_SIGNED): Likewise.
4058
4059         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
4060         (gl_FUNC_VASPRINTF): Invoke it.
4061
4062 2006-09-22  Bruno Haible  <bruno@clisp.org>
4063
4064         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
4065         getloadavg.c as first argument.
4066
4067 2006-09-22  Bruno Haible  <bruno@clisp.org>
4068
4069         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
4070         at the beginning of the gl_INIT macro.
4071         * modules/getloadavg (configure.ac): Pass $gl_source_base to
4072         gl_GETLOADAVG.
4073
4074 2006-09-22  Bruno Haible  <bruno@clisp.org>
4075
4076         * gnulib-tool (func_create_megatestdir): Don't include the config-h
4077         module.
4078         Suggested by Ralf Wildenhues.
4079
4080 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
4081
4082         Import this patch from libc:
4083
4084         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
4085
4086         * lib/regex_internal.c (re_string_reconstruct): Handle
4087         offset < pstr->valid_raw_len && pstr->offsets_needed case.
4088         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
4089         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
4090         re_string_context_at.
4091
4092         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
4093         now requires it.
4094         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
4095         gl_REGEX now does it for us.
4096         (gl_REGEX): Add test taken from
4097         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
4098
4099         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
4100         Check that large offsets work.  Modernize Autoconf usages.
4101         Prefer "yes" to mean a good thing rather than a bad.
4102         Don't put "#define mkstemp" in config.h, as this might interfere
4103         with standard system headers that "#define mkstemp mkstemp64".
4104
4105         * modules/mkstemp (Depends-on): Add extensions, so that
4106         mkstemp is visible on some platforms.
4107         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
4108         (Include): Change to "mkstemp.h" from <stdlib.h>.
4109         (Files): Add mkstemp.h.
4110
4111         * lib/mkstemp.h: New file, since some standard headers
4112         #define mkstemp.
4113         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
4114         Include "mkstemp.h".
4115         Make the _LIBC code resemble glibc original more,
4116         e.g., use K&R style.
4117         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
4118         (mkstemp): Remove, since mkstemp.h does this for us.
4119         * lib/stdlib--.h: Include mkstemp.h.
4120
4121         Import this patch from libc:
4122
4123         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
4124
4125         * lib/tempname.c (__gen_tempname): Change attempts_min
4126         into a macro.  Use preprocessor to decide how to initialize
4127         attempts [Coverity CID 67].
4128
4129 2006-09-20  Bruno Haible  <bruno@clisp.org>
4130
4131         * lib/mkdtemp.c: Import from libc.
4132         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
4133                 * sysdeps/posix/tempname.c (__gen_tempname): Change
4134                 attempts_min into a macro.  Use preprocessor to decide how to
4135                 initialize attempts [Coverity CID 67].
4136         2001-11-27  Paul Eggert  <eggert@twinsun.com>
4137                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
4138                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
4139
4140 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4141
4142         * gnulib-tool (func_exit): New function, to allow to pass the
4143         exit status portably through the trap.  Use everywhere.
4144         (--help, --version): Signal a write error.
4145         (trap): catch SIGPIPE, for write errors.
4146         Exit at the end of the trap, with the correct exit status.
4147
4148 2006-09-19  Karl Berry  <karl@gnu.org>
4149
4150         * doc/gnulib.texi: note about the license texinfo files.
4151
4152 2006-09-19  Eric Blake  <ebb9@byu.net>
4153
4154         * gnulib-tool: Avoid space-tab.
4155
4156 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
4157
4158         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
4159         that prevented coreutils 6.1 from building.  Problem reported
4160         by Petter Reinholdtsen.
4161
4162 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
4163
4164         * gnulib-tool (avoidlist): Fix typo that broke options like
4165         --avoid=lock that are used by coreutils bootstrap.
4166
4167 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
4168
4169         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
4170         more systematically.
4171
4172 2006-09-18  Jim Meyering  <jim@meyering.net>
4173
4174         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
4175
4176 2006-09-18  Bruno Haible  <bruno@clisp.org>
4177
4178         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
4179
4180 2006-09-18  Bruno Haible  <bruno@clisp.org>
4181
4182         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
4183         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
4184         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
4185         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
4186         * m4/gettext.m4: Require autoconf >= 2.52.
4187         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
4188         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
4189         of gl_cv_header_inttypes_h.
4190
4191 2006-09-18  Bruno Haible  <bruno@clisp.org>
4192
4193         * lib/javaversion.c: Include configmake.h.
4194
4195 2006-09-18  Bruno Haible  <bruno@clisp.org>
4196
4197         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
4198         avoid that the while loops be executed in a subshell.
4199
4200 2006-09-18  Bruno Haible  <bruno@clisp.org>
4201
4202         * MODULES.html.sh (func_module): Break long lines.
4203         Suggested by Bruce Korb <bkorb@gnu.org>.
4204
4205 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4206
4207         Speed up by a factor of 1.12.
4208         * gnulib-tool (nl): New variable.
4209         (func_import): Rewrite include directive extraction to only read each
4210         directive once.
4211
4212 2006-09-17  Bruno Haible  <bruno@clisp.org>
4213
4214         * modules/javaversion (Makefile.am): Remove DEFS setting.
4215         (Depends-on): Add configmake, for PKGDATADIR definition.
4216
4217 2006-09-17  Bruno Haible  <bruno@clisp.org>
4218
4219         * gnulib-tool (func_create_testdir): Rewrite all files at once.
4220
4221 2006-09-17  Bruno Haible  <bruno@clisp.org>
4222
4223         * gnulib-tool (func_append): New function, stolen from libtool.m4.
4224         (func_modules_transitive_closure, func_modules_add_dummy,
4225         func_modules_to_filelist, func_import, func_create_testdir,
4226         func_create_megatestdir, ...): Use it wherever possible.
4227         Suggested by Ralf Wildenhues.
4228
4229 2006-09-16  Karl Berry  <karl@gnu.org>
4230
4231         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
4232         to avoid sectioning errors.
4233         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
4234         [ifinfo]: blank line after @center-ed titles.
4235         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
4236         Spell FSF address consistently with others.
4237         (These changes approved by rms.)
4238
4239 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4240
4241         Speed up by a factor of 1.61.
4242         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
4243         already checked module names again.
4244
4245 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4246
4247         Speed up by a factor of 1.13.
4248         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
4249         for new_files, and the input to func_add_or_update.
4250
4251 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4252
4253         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
4254         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
4255
4256 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
4257
4258         * modules/mkancesdirs (Depends-on): Add fcntl.
4259         * modules/savewd: New file.
4260         * MODULES.html.sh (File system functions): Add savewd.
4261
4262         * modules/configmake (Makefile.am): Add support for the
4263         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
4264
4265 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
4266
4267         * m4/savewd.m4: New file.
4268
4269 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
4270
4271         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
4272         (dirchownmod): New arg FD.  All callers changed.
4273         Use FD rather than opening the directory ourself, as opening is
4274         now the caller's responsibility.
4275         * lib/dirchownmod.h: Likewise.
4276         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
4277         hosts that require <sys/types.h> before <sys/stat.h>.  Include
4278         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
4279         (test_dir): Remove.
4280         (mkancesdirs): Return length of prefix of FILE that has already
4281         been made, or -2 if there is a child doing the work.  Redo
4282         algorithm so that it is O(N) rather than O(N**2).  Optimize away
4283         ".", and treat ".." specially since it might stray back into
4284         already-created areas.  Use a subprocess if necessary.  New arg
4285         WD; all users changed.  MAKE_DIR function should now return 1
4286         if it creates a directory that is not readable.  Return -2 if
4287         a child process is spun off.
4288         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
4289         Adjust signature to match code.
4290         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
4291         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
4292         all users changed.
4293         * lib/savewd.c, lib/savewd.h: New files.
4294
4295 2006-09-15  Jim Meyering  <jim@meyering.net>
4296
4297         * modules/rename-dest-slash: New module.
4298         * MODULES.html.sh (posix_compat): Add it here.
4299
4300         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
4301
4302 2006-09-15  Jim Meyering  <jim@meyering.net>
4303
4304         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
4305         file.
4306
4307         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
4308
4309 2006-09-15  Jim Meyering  <jim@meyering.net>
4310
4311         * lib/rename-dest-slash.c (has_trailing_slash): Use
4312         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
4313         (rpl_rename_dest_slash): Perform the cheaper trailing slash
4314         test before testing whether SRC is a directory.
4315         Suggestions from Bruno Haible.
4316
4317         Avoid a warning about an unused variable.
4318         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
4319         into the #ifdef block where it's used.
4320
4321         * lib/rename-dest-slash.c: New file.
4322
4323 2006-09-14  Bruno Haible  <bruno@clisp.org>
4324
4325         * lib/allocsa.c: Include <config.h> unconditionally.
4326         * lib/asnprintf.c: Likewise.
4327         * lib/asprintf.c: Likewise.
4328         * lib/c-strcasecmp.c: Likewise.
4329         * lib/c-strcasestr.c: Likewise.
4330         * lib/c-strncasecmp.c: Likewise.
4331         * lib/c-strstr.c: Likewise.
4332         * lib/classpath.c: Likewise.
4333         * lib/clean-temp.c: Likewise.
4334         * lib/concatpath.c: Likewise.
4335         * lib/copy-file.c: Likewise.
4336         * lib/csharpcomp.c: Likewise.
4337         * lib/csharpexec.c: Likewise.
4338         * lib/execute.c: Likewise.
4339         * lib/fatal-signal.c: Likewise.
4340         * lib/findprog.c: Likewise.
4341         * lib/fwriteerror.c: Likewise.
4342         * lib/gl_array_list.c: Likewise.
4343         * lib/gl_array_oset.c: Likewise.
4344         * lib/gl_avltree_list.c: Likewise.
4345         * lib/gl_avltree_oset.c: Likewise.
4346         * lib/gl_avltreehash_list.c: Likewise.
4347         * lib/gl_carray_list.c: Likewise.
4348         * lib/gl_linked_list.c: Likewise.
4349         * lib/gl_linkedhash_list.c: Likewise.
4350         * lib/gl_list.c: Likewise.
4351         * lib/gl_oset.c: Likewise.
4352         * lib/gl_rbtree_list.c: Likewise.
4353         * lib/gl_rbtree_oset.c: Likewise.
4354         * lib/gl_rbtreehash_list.c: Likewise.
4355         * lib/imaxabs.c: Likewise.
4356         * lib/imaxdiv.c: Likewise.
4357         * lib/javacomp.c: Likewise.
4358         * lib/javaexec.c: Likewise.
4359         * lib/javaversion.c: Likewise.
4360         * lib/linebreak.c: Likewise.
4361         * lib/localcharset.c: Likewise.
4362         * lib/lock.c: Likewise.
4363         * lib/mbchar.c: Likewise.
4364         * lib/mbswidth.c: Likewise.
4365         * lib/mkdtemp.c: Likewise.
4366         * lib/pipe.c: Likewise.
4367         * lib/printf-args.c: Likewise.
4368         * lib/printf-parse.c: Likewise.
4369         * lib/progname.c: Likewise.
4370         * lib/progreloc.c: Likewise.
4371         * lib/readlink.c: Likewise.
4372         * lib/sh-quote.c: Likewise.
4373         * lib/stpcpy.c: Likewise.
4374         * lib/stpncpy.c: Likewise.
4375         * lib/strcasecmp.c: Likewise.
4376         * lib/strcasestr.c: Likewise.
4377         * lib/strcspn.c: Likewise.
4378         * lib/striconv.c: Likewise.
4379         * lib/strncasecmp.c: Likewise.
4380         * lib/strnlen1.c: Likewise.
4381         * lib/strstr.c: Likewise.
4382         * lib/strtok_r.c: Likewise.
4383         * lib/tls.c: Likewise.
4384         * lib/tmpdir.c: Likewise.
4385         * lib/unicodeio.c: Likewise.
4386         * lib/unsetenv.c: Likewise.
4387         * lib/vasnprintf.c: Likewise.
4388         * lib/vasprintf.c: Likewise.
4389         * lib/wait-process.c: Likewise.
4390         * lib/xallocsa.c: Likewise.
4391         * lib/xsetenv.c: Likewise.
4392         * lib/xstriconv.c: Likewise.
4393
4394 2006-09-13  Simon Josefsson  <jas@extundo.com>
4395
4396         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
4397         that internally, suggested by Ralf Wildenhues
4398         <Ralf.Wildenhues@gmx.de>.
4399
4400 2006-09-13  Simon Josefsson  <jas@extundo.com>
4401
4402         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
4403         @LIBOBJS@.
4404         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4405
4406 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
4407
4408         * lib/_fpending.c: Include <config.h> unconditionally, since we no
4409         longer worry about uses that don't define HAVE_CONFIG_H.
4410         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
4411         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
4412         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
4413         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
4414         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
4415         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
4416         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
4417         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
4418         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
4419         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
4420         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
4421         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
4422         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
4423         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
4424         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
4425         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
4426         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
4427         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
4428         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
4429         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
4430         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
4431         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
4432         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
4433         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
4434         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
4435         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
4436         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
4437         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
4438         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
4439         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
4440         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
4441         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
4442         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
4443         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
4444         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
4445         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
4446         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
4447         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
4448         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
4449         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
4450         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
4451         Likewise.
4452
4453 2006-09-13  Eric Blake  <ebb9@byu.net>
4454
4455         * lib/getopt.c: Fix typo in last commit.
4456
4457 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
4458
4459         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
4460         dgettext.
4461
4462 2006-09-12  Jim Meyering  <jim@meyering.net>
4463
4464         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
4465         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
4466         Reported by Nelson H. F. Beebe.
4467
4468 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
4469
4470         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
4471         program_invocation_name and program_invocation_short_name are
4472         initialized.
4473         * lib/argp-namefrob.h: Move declarations of program_invocation_name
4474         and program_invocation_short_name to argp.h, so they are visible
4475         to user programs.
4476         * lib/argp.h: Likewise
4477
4478 2006-09-10  Bruno Haible  <bruno@clisp.org>
4479
4480         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
4481         m4/inttypes_h.m4, m4/uintmax_t.m4.
4482
4483 2006-09-10  Bruno Haible  <bruno@clisp.org>
4484
4485         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
4486         gl_AC_TYPE_UINTMAX_T.
4487
4488 2006-09-10  Bruno Haible  <bruno@clisp.org>
4489
4490         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
4491
4492 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
4493
4494         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
4495         convention.  Text proposed by Bruno Haible.
4496         (struct argp_option): Document the use of N_() wrappers.
4497
4498         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
4499         '\v', and translate the two parts separately, instead of feeding
4500         the whole string to gettext.  This allows to exclude
4501         '\v' from the strings visible to the translator by writing doc
4502         strings as N_("..") "\v" N_("..").
4503
4504 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
4505
4506         * config/srclist.txt: Undo latest change; the bug was fixed.
4507
4508 2006-09-09  Bruno Haible  <bruno@clisp.org>
4509
4510         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
4511         assignments if building a library without libtool.
4512         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
4513         in func_emit_lib_Makefile_am.
4514         (func_import): When building a static library libfoo.a, arrange to
4515         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
4516         (func_create_testdir): Likewise.
4517         * modules/gc (configure.ac, Makefile.am): If building statically,
4518         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
4519         * modules/iconvme (configure.ac, Makefile.am): Likewise.
4520         * modules/striconv (configure.ac, Makefile.am): Likewise.
4521         Based on a suggestion by Ralf Wildenhues.
4522
4523 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
4524
4525         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
4526         Check for unistd.h too, since Autoconf doesn't assume POSIX.
4527         Also:
4528
4529         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
4530         Add year_2050_test to catch glibc bug 2821
4531         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
4532
4533         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
4534         Prefer #ifdef to #if.
4535
4536         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
4537         Return from 'main' instead of calling 'exit'.
4538
4539 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
4540
4541         * lib/mktime.c (guess_time_tm): Fix bug where mktime
4542         returned the maximum time_t value rather than (time_t) -1.
4543         Problem originally reported by William Bardwell
4544         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
4545
4546         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
4547         Moved to here ...
4548         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
4549         ... from here.
4550
4551 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
4552
4553         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
4554         2821 is fixed.
4555
4556 2006-09-08  Jim Meyering  <jim@meyering.net>
4557
4558         Don't make generated files read-only.  That would bother too many
4559         people.  However, do retain the ability to work when targets are
4560         read-only: remove the destination and temporary files before writing
4561         them (when generated via sed or echo), or by using the -f option for
4562         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
4563         * modules/alloca-opt, modules/argz, modules/arpa_inet:
4564         * modules/byteswap, modules/configmake, modules/fcntl:
4565         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
4566         * modules/localcharset, modules/netinet_in, modules/poll:
4567         * modules/stdbool, modules/stdint, modules/sys_select:
4568         * modules/sys_socket, modules/sys_stat, modules/sysexits:
4569
4570 2006-09-08  Jim Meyering  <jim@meyering.net>
4571
4572         Avoid new build failure on FreeBSD 6.0.
4573         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
4574         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
4575         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
4576
4577 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4578
4579         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
4580
4581 2006-09-07  Jim Meyering  <jim@meyering.net>
4582
4583         Fix global typo in last change: use chmod u-w, not chmod u-x.
4584         Spotted by Paul Eggert and Bruce Korb.
4585         * modules/alloca-opt, modules/argz, modules/arpa_inet:
4586         * modules/byteswap, modules/configmake, modules/fcntl:
4587         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
4588         * modules/localcharset, modules/netinet_in, modules/poll:
4589         * modules/stdbool, modules/stdint, modules/sys_select:
4590         * modules/sys_socket, modules/sys_stat, modules/sysexits:
4591
4592 2006-09-06  Jim Meyering  <jim@meyering.net>
4593
4594         Make generated files be read-only.
4595         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
4596         Ensure that each generated file is now read-only.
4597         * modules/argz: Likewise.
4598         * modules/arpa_inet: Likewise.
4599         * modules/byteswap: Likewise.
4600         * modules/configmake: Likewise.
4601         * modules/fcntl: Likewise.
4602         * modules/fnmatch: Likewise.
4603         * modules/getopt: Likewise.
4604         * modules/glob: Likewise.
4605         * modules/inttypes: Likewise.
4606         * modules/netinet_in: Likewise.
4607         * modules/poll: Likewise.
4608         * modules/stdbool: Likewise.
4609         * modules/stdint: Likewise.
4610         * modules/sys_select: Likewise.
4611         * modules/sys_socket: Likewise.
4612         * modules/sys_stat: Likewise.
4613         * modules/sysexits: Likewise.
4614         * modules/localcharset: Same as above, but continue using temporary
4615         file named "t-$@" (why different?) rather than the "$@-t" used
4616         everywhere else.
4617
4618         * modules/sysexits (Makefile.am): Replace literal occurrences
4619         of "sysexit.h" more readable, and more consistent, "$@".
4620
4621 2006-09-06  Bruno Haible  <bruno@clisp.org>
4622
4623         * modules/striconv: New file.
4624         * modules/xstriconv: New file.
4625         * MODULES.html.sh (Internationalization functions): Add striconv,
4626         xstriconv.
4627
4628 2006-09-06  Bruno Haible  <bruno@clisp.org>
4629
4630         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
4631         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
4632         not using libtool correctly.
4633
4634 2006-09-06  Bruno Haible  <bruno@clisp.org>
4635
4636         * lib/striconv.h: New file.
4637         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
4638         iconvstring.c.
4639         * lib/xstriconv.h: New file.
4640         * lib/xstriconv.c: New file.
4641
4642 2006-09-06  Bruno Haible  <bruno@clisp.org>
4643
4644         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
4645         lib_..._LDFLAGS.
4646
4647 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4648
4649         * lib/argz_.h: Sync from Libtool.
4650
4651         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
4652                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4653
4654         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
4655
4656 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
4657
4658         * modules/trim: New file.
4659
4660 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
4661
4662         * lib/trim.h: New file.
4663         * lib/trim.c: New file.
4664
4665 2006-09-05  Bruno Haible  <bruno@clisp.org>
4666
4667         * MODULES.html.sh (String handling): Add trim.
4668
4669 2006-09-04  Karl Berry  <karl@gnu.org>
4670
4671         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
4672         until next release.
4673
4674 2006-09-03  Bruno Haible  <bruno@clisp.org>
4675
4676         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
4677         correctly.
4678
4679 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
4680
4681         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
4682         not gl_GETLOADAVG.  Omit unneeded semicolons.
4683         Problems reported by Ralf Wildenhues in
4684         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
4685         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
4686         at the end, which is the usual gnulib style.
4687
4688         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
4689         of doing all the work ourselves.
4690         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
4691         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
4692
4693 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
4694
4695         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
4696         Problem reported by Ralf Wildenhues in
4697         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
4698
4699         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
4700         HAVE_STRUCT_STATFS_F_FSTYPENAME.
4701
4702 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
4703
4704         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
4705         yesterday's patch by changing test -n to test -z.
4706
4707 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
4708
4709         * modules/getloadavg (Files): Add m4/getloadavg.m4.
4710         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
4711         the former is now obsolescent.
4712
4713         * modules/chdir-long (Depends-on): Add fcntl.
4714
4715 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
4716
4717         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
4718         obsolescent, and programs should use gnulib instead.
4719         * m4/getloadavg.m4: New file, with contents taken from Autoconf
4720         but with prefixes changed.
4721
4722 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
4723
4724         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
4725         or stdbool.h, because they might not exist while configuring.
4726
4727         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
4728         Don't include unistd.h or limits.h; not needed, since chdir-long.h
4729         does that for us.
4730         (O_DIRECTORY): Remove.
4731
4732 2006-08-31  Eric Blake  <ebb9@byu.net>
4733
4734         * gnulib-tool: Don't let emacs change spaces to TAB.
4735
4736 2006-08-31  Bruno Haible  <bruno@clisp.org>
4737
4738         * gnulib-tool: When calling func_import more than once, do it in a
4739         subshell.
4740         Reported by Eric Blake <ebb9@byu.net>.
4741
4742 2006-08-31  Bruno Haible  <bruno@clisp.org>
4743
4744         * gnulib-tool (nl): Remove variable.
4745         (sed_transform_lib_file): Use more robust test for config-h module.
4746         (func_import): Fix typo in 2006-08-25 patch.
4747
4748 2006-08-31  Bruno Haible  <bruno@clisp.org>
4749
4750         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
4751         specified, augment Makefile.am variables instead of assigning them.
4752
4753 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
4754
4755         Work around a bug in both the Linux and SunOS 64-bit kernels:
4756         nanosleep mishandles sleeps for longer than 2**31 seconds.
4757         Problem reported by Frank v Waveren in
4758         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
4759         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
4760         Check for nanosleep bug.
4761         (LIB_NANOSLEEP): Append clock_gettime library if needed.
4762
4763 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
4764
4765         Work around a bug in both the Linux and SunOS 64-bit kernels:
4766         nanosleep mishandles sleeps for longer than 2**31 seconds.
4767         Problem reported by Frank v Waveren in
4768         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
4769         * lib/nanosleep.c (BILLION): New constant.
4770         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
4771         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
4772         implementation.
4773
4774 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
4775
4776         * modules/nanosleep (Depends-on): Add gettime.
4777
4778 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
4779         and Simon Josefsson  <jas@extundo.com>
4780         and Oskar Liljeblad  <oskar@osk.mine.nu>
4781
4782         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
4783         * gnulib-tool (func_import): New license type 'unmodifiable license
4784         text'.
4785         * modules/fdl: Use it.  Longer description.
4786         * module/gpl, module/lgpl: New files.
4787
4788 2006-08-30  Jim Meyering  <jim@meyering.net>
4789
4790         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
4791         shadowing the parameter.
4792
4793 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4794
4795         Sync from Libtool:
4796
4797         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4798
4799         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
4800         sharing with gnulib.  Report by Eric Blake.
4801
4802 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
4803
4804         * modules/isapipe: New file.
4805         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
4806
4807 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
4808
4809         * modules/configmake (Makefile.am): Add a comment, and omit
4810         the CONFIGMAKE_ prefix from generated macro names.  Suggested
4811         by Bruno Haible.
4812
4813 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
4814
4815         * m4/isapipe.m4: New file.
4816
4817 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
4818
4819         * lib/isapipe.c, lib/isapipe.h: New files.
4820
4821 2006-08-29  Jim Meyering  <jim@meyering.net>
4822
4823         * modules/configmake (Makefile.am): Make configmake.h depend on
4824         Makefile.  Otherwise, a stale configmake.h could hang around.
4825
4826 2006-08-29  Eric Blake  <ebb9@byu.net>
4827
4828         * lib/error.c (error_at_line, print_errno_message): Match libc, after
4829         resolution of upstream bug 3044.
4830
4831 2006-08-29  Bruno Haible  <bruno@clisp.org>
4832
4833         * modules/localcharset (Depends-on): Add configmake.
4834         (Makefile.am): Remove setting of LIBDIR through DEFS.
4835
4836 2006-08-29  Bruno Haible  <bruno@clisp.org>
4837
4838         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
4839         defined.
4840
4841 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
4842
4843         * modules/fcntl: New file.
4844         * modules/chdir-safer (Depends-on): Add fcntl.
4845         * modules/fts: Likewise.
4846         * modules/mkdir-p: Likewise.
4847
4848         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
4849         This undoes the most recent change, since we're now addressing the
4850         problem in a different way.
4851
4852         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
4853         into output, since the output might be called Makefile.am even
4854         if $makefile_name is something different.
4855         (func_import): Use $makefile_am rather than
4856         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
4857         empty.
4858
4859         * modules/inttypes (Files): Add m4/inttypes-h.m4.
4860
4861 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
4862
4863         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
4864         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
4865         recent change to stdint.m4, since we're now addressing the problem in a
4866         different way.
4867
4868 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
4869
4870         * m4/fcntl_h.m4: New file.
4871
4872 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
4873
4874         * lib/fcntl_.h: New file.
4875         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
4876         the fcntl module.
4877         * lib/dirchownmod.c: Likewise.
4878         * lib/fts.c: Likewise.
4879
4880         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
4881         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
4882         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
4883         just before including <inttypes.h>, to avoid circular inclusion.
4884
4885 2006-08-28  Jim Meyering  <jim@meyering.net>
4886
4887         * doc/visibility.texi: Actually read and correct the grammar of the
4888         sentence affected by yesterday's change.
4889
4890 2006-08-28  Eric Blake  <ebb9@byu.net>
4891
4892         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
4893         needs wrapper.
4894
4895 2006-08-28  Eric Blake  <ebb9@byu.net>
4896
4897         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
4898
4899 2006-08-28  Eric Blake  <ebb9@byu.net>
4900
4901         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
4902
4903 2006-08-28  Bruno Haible  <bruno@clisp.org>
4904
4905         * modules/c-strstr: New file, from GNU gettext.
4906         * MODULES.html.sh (String handling): Add c-strstr.
4907
4908 2006-08-28  Bruno Haible  <bruno@clisp.org>
4909
4910         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
4911         macros.
4912         Reported by Eric Blake.
4913
4914 2006-08-28  Bruno Haible  <bruno@clisp.org>
4915
4916         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
4917         (VASNPRINTF): Return a string of length > INT_MAX without failing.
4918         * lib/vasprintf.c: Include errno.h, limits.h.
4919         (EOVERFLOW): New fallback definition.
4920         (vasprintf): Test here whether the string length is > INT_MAX.
4921         * lib/vsnprintf.c: Include errno.h, limits.h.
4922         (EOVERFLOW): New fallback definition.
4923         (vsnprintf): Fix bug when generated string was too long for the buffer.
4924         Test here whether the string length is > INT_MAX.
4925
4926 2006-08-28  Bruno Haible  <bruno@clisp.org>
4927
4928         * lib/inttypes_.h (SCNX*): Remove definitions.
4929         Reported by Eric Blake.
4930
4931 2006-08-28  Bruno Haible  <bruno@clisp.org>
4932
4933         * lib/c-strstr.h: New file, from GNU gettext.
4934         * lib/c-strstr.c: New file, from GNU gettext.
4935
4936 2006-08-28  Bruno Haible  <bruno@clisp.org>
4937
4938         * gnulib-tool: Reorder some statements.
4939
4940 2006-08-28  Bruno Haible  <bruno@clisp.org>
4941
4942         * gnulib-tool: New option --makefile-name.
4943         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
4944         $makefile_name.
4945         (func_import): Write $makefile_name to the cache file, and read it from
4946         there unless explicitly specified. Use $makefile_name as file name
4947         instead of Makefile.am. Adjust the recommendations accordingly.
4948
4949 2006-08-28  Bruno Haible  <bruno@clisp.org>
4950
4951         * gnulib-tool (func_verify_module): Check against misapplying patch.
4952
4953 2006-08-28  Bruno Haible  <bruno@clisp.org>
4954
4955         * gnulib-tool (func_relativize, func_relconcat): New functions.
4956         Give an error if --local-dir is given with --update.
4957         Remove trailing slashes from $local_gnulib_dir.
4958         (func_import): Store the relativized $local_gnulib_dir in
4959         gnulib-cache.m4, and read it from there if not specified explicitly.
4960
4961 2006-08-28  Bruno Haible  <bruno@clisp.org>
4962
4963         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
4964         is the current directory. Respect also $local_gnulib_dir.
4965
4966 2006-08-28  Bruno Haible  <bruno@clisp.org>
4967             Simon Josefsson  <jas@extundo.com>
4968
4969         BeOS portability.
4970         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
4971
4972 2006-08-27  Jim Meyering  <jim@meyering.net>
4973
4974         * doc/visibility.texi: Remove duplicate word: "pointer".
4975
4976 2006-08-26  Bruno Haible  <bruno@clisp.org>
4977
4978         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
4979         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
4980         (Makefile.am): Create inttypes.h from inttypes_.h.
4981         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
4982
4983         * modules/imaxabs: New file.
4984
4985         * modules/imaxdiv: New file.
4986
4987 2006-08-26  Bruno Haible  <bruno@clisp.org>
4988
4989         * m4/inttypes.m4: New file.
4990         * m4/_inttypes_h.m4: Remove file.
4991         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
4992         PRI_MACROS_BROKEN.
4993         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
4994
4995         * m4/imaxabs.m4: New file.
4996
4997         * m4/imaxdiv.m4: New file.
4998
4999 2006-08-26  Bruno Haible  <bruno@clisp.org>
5000
5001         * lib/inttypes_.h: New file.
5002         * lib/inttypes.h: Remove file.
5003         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
5004
5005         * lib/imaxabs.c: New file.
5006
5007         * lib/imaxdiv.c: New file.
5008
5009 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
5010
5011         New config-h module, so that "make" output needn't be cluttered
5012         by -DHAVE_CONFIG_H.
5013         * MODULES.html.sh (Support for building libraries and executables):
5014         Add config-h.
5015         * modules/config-h: New file.
5016         * gnulib-tool (nl, sed_transform_lib_file): New vars.
5017         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
5018         the config-h module is used.
5019
5020         New configmake module, so that "make" output needn't be cluttered
5021         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
5022         * MODULES.html.sh (Support for building libraries and executables):
5023         Add configmake.
5024         * modules/configmake: New file.
5025
5026 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
5027
5028         * m4/config-h.m4: New file.
5029
5030 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
5031
5032         * config/srclist.txt: Add elisp-comp.
5033
5034 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
5035
5036         * MODULES.html.sh (Support for building libraries and executables):
5037         Add elisp-comp.
5038         * build-aux/elisp-comp: New file.
5039         * modules/elisp-comp: New file.
5040
5041 2006-08-24  Bruno Haible  <bruno@clisp.org>
5042
5043         * gnulib-tool (func_create_testdir): Use non-default values of
5044         sourcebase and m4base.
5045
5046 2006-08-24  Bruno Haible  <bruno@clisp.org>
5047
5048         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
5049         HTML structure.
5050
5051 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
5052
5053         * modules/openat (Depends-on): Add lchown.
5054
5055 2006-08-23  Bruno Haible  <bruno@clisp.org>
5056
5057         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
5058         of gl_LOCK_EARLY instead of gl_LOCK.
5059
5060 2006-08-23  Bruno Haible  <bruno@clisp.org>
5061
5062         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
5063         on OSF/1 to no.
5064         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
5065
5066 2006-08-23  Bruno Haible  <bruno@clisp.org>
5067
5068         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
5069         as unusable.
5070
5071         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
5072         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
5073         (gl_LOCK): New macro.
5074
5075 2006-08-22  Simon Josefsson  <jas@extundo.com>
5076
5077         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
5078         to md5 module.
5079
5080 2006-08-22  Simon Josefsson  <jas@extundo.com>
5081
5082         * MODULES.html.sh: Add "Support for maintaining and release
5083         projects".
5084
5085         * build-aux/gnupload: New file, from coreutils.
5086
5087 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
5088
5089         Avoid the need for AC_LIBSOURCES in m4 macros.
5090         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
5091         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
5092         * modules/check-version (EXTRA_DIST): Add check-version.h.
5093         * modules/crc (EXTRA_DIST): Add crc.h.
5094         * modules/des (EXTRA_DIST): Add des.h.
5095         * modules/gc (EXTRA_DIST): Add gc.h.
5096         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
5097         * modules/getline (EXTRA_DIST): Add getline.h.
5098         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
5099         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
5100         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
5101         * modules/md2 (EXTRA_DIST): Add md2.h.
5102         * modules/md4 (EXTRA_DIST): Add md4.h.
5103         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
5104         * modules/read-file (EXTRA_DIST): Add read-file.h.
5105         * modules/readline (EXTRA_DIST): Add readline.h.
5106         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
5107         rijndael-api-fst.h.
5108
5109 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
5110
5111         * m4/rijndael.m4 (gl_ARCFOUR):
5112         * m4/arctwo.m4 (gl_ARCTWO):
5113         * m4/check-version.m4 (gl_CHECK_VERSION):
5114         * m4/crc.m4 (gl_CRC):
5115         * m4/des.m4 (gl_DES):
5116         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
5117         * m4/gc.m4 (gl_GC):
5118         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
5119         * m4/getline.m4 (gl_FUNC_GETLINE):
5120         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
5121         * m4/hmac-md5.m4 (gl_HMAC_MD5):
5122         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
5123         * m4/md2.m4 (gl_MD2):
5124         * m4/md4.m4 (gl_MD4):
5125         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
5126         * m4/read-file.m4 (gl_FUNC_READ_FILE):
5127         * m4/readline.m4 (gl_FUNC_READLINE):
5128         * m4/rijndael.m4 (gl_RIJNDAEL):
5129         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
5130         to get the necessary .h files and whatnot.
5131
5132 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
5133
5134         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
5135         gnulib rather than the other way around.
5136         * config/srclistvars.sh (COREUTILS): Remove.
5137
5138 2006-08-22  Jim Meyering  <jim@meyering.net>
5139
5140         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
5141
5142         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
5143
5144 2006-08-22  Eric Blake  <ebb9@byu.net>
5145
5146         * modules/regexprops-generic: New file.
5147         * MODULES.html.sh (Support for building documentation): List it.
5148
5149 2006-08-22  Eric Blake  <ebb9@byu.net>
5150
5151         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
5152         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
5153         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
5154         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
5155
5156 2006-08-22  Bruno Haible  <bruno@clisp.org>
5157
5158         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
5159         and lib_LTLIBRARIES like the other lib_* variables.
5160
5161 2006-08-22  Bruno Haible  <bruno@clisp.org>
5162
5163         * build-aux/x-to-1.in: New file, from GNU gettext.
5164
5165 2006-08-22  Bruno Haible  <bruno@clisp.org>
5166
5167         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
5168         <utmpx.h> exists.
5169
5170 2006-08-22  Bruno Haible  <bruno@clisp.org>
5171
5172         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
5173         <utmpx.h> exists.
5174
5175 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
5176
5177         BeOS portability.
5178         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
5179         exist.
5180         Problem reported by Bruno Haible.
5181
5182 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
5183
5184         Avoid the need for AC_LIBSOURCES in m4 macros.
5185         * modules/acl (EXTRA_DIST): Add acl.h.
5186         * modules/argmatch (Files): Add m4/argmatch.m4.
5187         (configure.ac): Add gl_ARGMATCH.
5188         (EXTRA_DIST): Renamed from lib_SOURCES, for
5189         consistency with the other modules.  Remove argmatch.c.
5190         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
5191         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
5192         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
5193         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
5194         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
5195         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
5196         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
5197         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
5198         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
5199         * modules/closeout (EXTRA_DIST): Add closeout.h.
5200         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
5201         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
5202         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
5203         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
5204         dirname.h; remove basename.c and stripslash.c.
5205         * modules/exclude (EXTRA_DIST): Add exclude.h.
5206         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
5207         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
5208         * modules/file-type (EXTRA_DIST): Add file-type.h.
5209         * modules/filemode (EXTRA_DIST): Add filemode.h.
5210         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
5211         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
5212         * modules/fpending (EXTRA_DIST): Add __fpending.h.
5213         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
5214         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
5215         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
5216         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
5217         * modules/getdate (EXTRA_DIST): Add getdate.c.
5218         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
5219         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
5220         * modules/getpass (EXTRA_DIST): Add getpass.h.
5221         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
5222         * modules/group-member (EXTRA_DIST): Add group-member.h.
5223         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
5224         * modules/hash (EXTRA_DIST): Add hash.h.
5225         * modules/human (EXTRA_DIST): Add human.h.
5226         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
5227         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
5228         * modules/lchown (EXTRA_DIST): Add lchown.h.
5229         * modules/long-options (EXTRA_DIST): Add long-options.h.
5230         * modules/lstat (EXTRA_DIST): Add lstat.h.
5231         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
5232         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
5233         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
5234         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
5235         * modules/memxor (EXTRA_DIST): Add memxor.h.
5236         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
5237         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
5238         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
5239         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
5240         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
5241         * modules/physmem (EXTRA_DIST): Add physmem.h.
5242         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
5243         * modules/posixver (EXTRA_DIST): Add posixver.h.
5244         * modules/quote (EXTRA_DIST): Add quote.h.
5245         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
5246         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
5247         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
5248         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
5249         regex_internal.h regexec.c.
5250         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
5251         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
5252         * modules/same (EXTRA_DIST): Add same.h.
5253         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
5254         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
5255         * modules/savedir (EXTRA_DIST): Add savedir.h.
5256         * modules/sha1 (EXTRA_DIST): Add sha1.h.
5257         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
5258         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
5259         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
5260         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
5261         * modules/strdup (EXTRA_DIST): Add strdup.h.
5262         * modules/strftime (EXTRA_DIST): Add strftime.h.
5263         * modules/strndup (EXTRA_DIST): Add strndup.h.
5264         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
5265         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
5266         * modules/time_r (EXTRA_DIST): Add time_r.h.
5267         * modules/timespec (EXTRA_DIST): Add timespec.h.
5268         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
5269         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
5270         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
5271         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
5272         * modules/userspec (EXTRA_DIST): Add userspec.h.
5273         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
5274         * modules/utimens (EXTRA_DIST): Add utimens.h.
5275         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
5276         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
5277         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
5278         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
5279         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
5280         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
5281         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
5282         * modules/yesno (EXTRA_DIST): Add yesno.h.
5283
5284 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
5285
5286         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
5287
5288         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
5289         * m4/dev-ino.m4, same-inode.m4: Remove.
5290
5291         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
5292         * m4/acl.m4 (AC_FUNC_ACL):
5293         * m4/backupfile.m4 (gl_BACKUPFILE):
5294         * m4/c-strtod.m4 (gl_C99_STRTOLD):
5295         * m4/canon-host.m4 (gl_CANON_HOST):
5296         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
5297         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
5298         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
5299         * m4/cloexec.m4 (gl_CLOEXEC):
5300         * m4/close-stream.m4 (gl_CLOSE_STREAM):
5301         * m4/closeout.m4 (gl_CLOSEOUT):
5302         * m4/dirfd.m4 (gl_FUNC_DIRFD):
5303         * m4/dirname.m4 (gl_DIRNAME):
5304         * m4/exclude.m4 (gl_EXCLUDE):
5305         * m4/exitfail.m4 (gl_EXITFAIL):
5306         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
5307         * m4/file-type.m4 (gl_FILE_TYPE):
5308         * m4/filemode.m4 (gl_FILEMODE):
5309         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
5310         * m4/fpending.m4 (gl_FUNC_FPENDING):
5311         * m4/fprintftime.m4 (gl_FPRINTFTIME):
5312         * m4/fts.m4 (gl_FUNC_FTS):
5313         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
5314         * m4/getdate.m4 (gl_GETDATE):
5315         * m4/gethrxtime.m4 (gl_GETHRXTIME):
5316         * m4/getpagesize.m4 (gl_GETPAGESIZE):
5317         * m4/getpass.m4 (gl_FUNC_GETPASS):
5318         * m4/gettime.m4 (gl_GETTIME):
5319         * m4/getugroups.m4 (gl_GETUGROUPS):
5320         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
5321         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
5322         * m4/hard-locale.m4 (gl_HARD_LOCALE):
5323         * m4/hash.m4 (gl_HASH):
5324         * m4/idcache.m4 (gl_IDCACHE):
5325         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
5326         * m4/lchown.m4 (gl_FUNC_LCHOWN):
5327         * m4/long-options.m4 (gl_LONG_OPTIONS):
5328         * m4/lstat.m4 (gl_FUNC_LSTAT):
5329         * m4/md5.m4 (gl_MD5):
5330         * m4/memcasecmp.m4 (gl_MEMCASECMP):
5331         * m4/memcoll.m4 (gl_MEMCOLL):
5332         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
5333         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
5334         * m4/memxor.m4 (gl_MEMXOR):
5335         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
5336         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
5337         * m4/modechange.m4 (gl_MODECHANGE):
5338         * m4/mountlist.m4 (gl_MOUNTLIST):
5339         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
5340         * m4/openat.m4 (gl_FUNC_OPENAT):
5341         * m4/pathmax.m4 (gl_PATHMAX):
5342         * m4/physmem.m4 (gl_PHYSMEM):
5343         * m4/posixtm.m4 (gl_POSIXTM):
5344         * m4/posixver.m4 (gl_POSIXVER):
5345         * m4/quote.m4 (gl_QUOTE):
5346         * m4/quotearg.m4 (gl_QUOTEARG):
5347         * m4/readtokens.m4 (gl_READTOKENS):
5348         * m4/readutmp.m4 (gl_READUTMP):
5349         * m4/regex.m4 (gl_REGEX):
5350         * m4/safe-read.m4 (gl_SAFE_READ):
5351         * m4/safe-write.m4 (gl_SAFE_WRITE):
5352         * m4/same.m4 (gl_SAME):
5353         * m4/save-cwd.m4 (gl_SAVE_CWD):
5354         * m4/savedir.m4 (gl_SAVEDIR):
5355         * m4/settime.m4 (gl_SETTIME):
5356         * m4/sha1.m4 (gl_SHA1):
5357         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
5358         * m4/stat-macros.m4 (gl_STAT_MACROS):
5359         * m4/stat-time.m4 (gl_STAT_TIME):
5360         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
5361         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
5362         * m4/strdup.m4 (gl_FUNC_STRDUP):
5363         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
5364         * m4/strndup.m4 (gl_FUNC_STRNDUP):
5365         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
5366         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
5367         * m4/time_r.m4 (gl_TIME_R):
5368         * m4/timespec.m4 (gl_TIMESPEC):
5369         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
5370         * m4/unlinkdir.m4 (gl_UNLINKDIR):
5371         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
5372         * m4/userspec.m4 (gl_USERSPEC):
5373         * m4/utimecmp.m4 (gl_UTIMECMP):
5374         * m4/utimens.m4 (gl_UTIMENS):
5375         * m4/xalloc.m4 (gl_XALLOC):
5376         * m4/xgetcwd.m4 (gl_XGETCWD):
5377         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
5378         * m4/xreadlink.m4 (gl_XREADLINK):
5379         * m4/xstrtod.m4 (gl_XSTRTOD):
5380         * m4/yesno.m4 (gl_YESNO):
5381         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
5382         to get the necessary .h files and whatnot.
5383
5384 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
5385             Bruno Haible  <bruno@clisp.org>
5386
5387         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
5388         /bin/sh understanding of '!' conditional negation.
5389
5390 2006-08-21  Jim Meyering  <jim@meyering.net>
5391
5392         * modules/openat (Depends-on): Really alphabetize.
5393
5394         * modules/acl (Depends-on): Add error and quote.
5395
5396         * check-module (find_included_lib_files): Add at-func.c to the
5397         ok-to-include-more-than-once white list.
5398
5399         * modules/openat (Depends-on): Add lstat.  Alphabetize.
5400
5401 2006-08-21  Bruno Haible  <bruno@clisp.org>
5402
5403         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
5404         Emit a pkgdata_DATA variable only if some snippets add contents to it.
5405         Reported by Martin Lambers <marlam@marlam.de>.
5406
5407 2006-08-21  Bruno Haible  <bruno@clisp.org>
5408
5409         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
5410         specify an installation location, don't emit a noinst_LIBRARIES or
5411         noinst_LTLIBRARIES assignment.
5412
5413 2006-08-21  Bruno Haible  <bruno@clisp.org>
5414
5415         BeOS portability.
5416         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
5417         BeOS has mbrtowc() but no <wctype.h>.
5418
5419 2006-08-21  Bruno Haible  <bruno@clisp.org>
5420
5421         BeOS portability.
5422         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
5423         exist.
5424
5425 2006-08-21  Bruno Haible  <bruno@clisp.org>
5426
5427         BeOS portability.
5428         * lib/mbchar.h: Include <wctype.h> only if it exists.
5429
5430 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
5431
5432         Remove files that are no longer needed by their respective modules.
5433         * m4/obstack.m4: Remove.
5434         * m4/strerror_r.m4: Remove.
5435         * m4/uint32_t.m4: Remove.
5436         * m4/uintptr_t.m4: Remove.
5437         * m4/ullong_max.m4: Remove.
5438         * m4/xstrtoimax.m4: Remove.
5439         * m4/xstrtoumax.m4: Remove.
5440
5441         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
5442         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
5443         dependencies now capture this.
5444
5445         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
5446         Do not use AC_LIBSOURCES, since gnulib modules now do this.
5447         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
5448         * m4/human.m4 (gl_HUMAN): Likewise.
5449         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
5450         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
5451
5452         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
5453
5454         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
5455         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
5456         stdint.
5457         * m4/human.m4 (gl_HUMAN): Likewise.
5458         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
5459         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
5460         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
5461         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
5462         * m4/xstrtol (gl_XSTRTOL): Likewise.
5463
5464         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
5465         AC_TYPE_LONG_LONG_INT.
5466         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
5467         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
5468         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
5469         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
5470
5471         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
5472         on stdbool.
5473
5474         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
5475         (gl_PREREQ_XSTRTOUL): Remove.
5476
5477         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
5478
5479         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
5480         mode.
5481
5482 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
5483
5484         Add and change modules to make it easier for coreutils to use
5485         gnulib-tool.
5486         * modules/backupfile (Files): Remove m4/d-ino.m4.
5487         (Depends-on): Add d-ino.
5488         * modules/cycle-check (Depends-on): Add stdint.
5489         (lib_SOURCES): Add cycle-check.h.
5490         * modules/d-ino: New module.
5491         * modules/d-type: New module.
5492         * modules/error (Files): Remove m4/strerror_r.m4.
5493         * modules/filemode (Files): Add m4/st_dm_mode.m4.
5494         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
5495         m4/inttypes_h.m4, m4/uintmax_t.m4.
5496         (Depends-on): Add stdint.
5497         (lib_SOURCES): Add fsusage.h.
5498         * modules/getcwd (Files): Remove d-ino.m4.
5499         (Depends-on): Add d-ino.
5500         * modules/getndelim2 (Depends-on): Add stdint.
5501         * modules/glob (Files): Remove m4/d-type.m4.
5502         (Depends-on): Add d-type.
5503         * modules/host-os: New module.
5504         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
5505         m4/inttypes_h.m4, m4/uintmax_t.m4.
5506         * Depends-on: Add stdint.
5507         (lib_SOURCES): Add human.h.
5508         * modules/inttostr (Files): Remove m4/intmax_t.m4,
5509         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
5510         m4/uintmax_t.m4, m4/ulonglong.m4.
5511         (Depends-on): Add stdint.
5512         (EXTRA_DIST): Add inttostr.h.
5513         * modules/lchmod: New module.
5514         * modules/link-follow: New module.
5515         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
5516         (Depends-on): Add lchmod.
5517         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
5518         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
5519         (Depends-on): Add stdint.
5520         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
5521         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
5522         (Depends-on): Add stdint.
5523         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
5524         * modules/perl: New module.
5525         * modules/regex (Depends-on): Add stdint.
5526         * modules/rmdir-errno: New module.
5527         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
5528         m4/intmax_t.m4.
5529         (Depends-on): Add stdint.
5530         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
5531         m4/uintmax_t.m4.
5532         (Depends-on): Add stdint.
5533         * modules/unlink-busy: New module.
5534         * modules/utimecmp (Depends-on): Add stdint.
5535         * modules/uptime: New module.
5536         * modules/winsz-ioctl: New module.
5537         * modules/winsz-termios: New module.
5538         * modules/xnanosleep (Depends-on): Add nanosleep.
5539         * modules/ullong_max: Remove.
5540         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
5541         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
5542         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
5543         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
5544         (Depends-on): Add inttypes.
5545         (lib_SOURCES): Add xstrtol.h.
5546         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
5547         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
5548         * MODULES.html.sh: Move 'assert' into the assert section.
5549         Move 'dummy' into the linking section.
5550         Remove ullong_max.
5551         Add section for compatibility checks for POSIX:2001 functions,
5552         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
5553         winsz-ioctl, and winsz-termios into it.
5554         Add lchmod.
5555         Add top-level Misc section and put host-os, perl, and uptime
5556         into it.
5557
5558 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
5559
5560         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
5561         now assume the stdint module.  Do not include inttypes.h.
5562         * lib/fsusage.h: Likewise.
5563         * lib/getndelim2.c: Likewise.
5564         * lib/human.h: Likewise.
5565         * lib/inttostr.h: Likewise.
5566         * lib/obstack.c: Likewise.
5567         * lib/regex_internal.h: Likewise.
5568         * lib/tempname.c: Likewise.
5569         * lib/utimecmp.c: Likewise.
5570         * lib/xstrtol.h: Likewise.
5571
5572         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
5573
5574         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
5575         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
5576         * lib/xtime.h: Likewise.
5577
5578 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
5579
5580         * modules/openat (Files): Add lib/fchmodat.c.
5581         Fixes problem reported by Jay Youngman.
5582
5583 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
5584
5585         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
5586         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
5587
5588 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
5589             Bruno Haible  <bruno@clisp.org>
5590
5591         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
5592         and is a script that invokes bison. Tighten the code. Add comments.
5593
5594 2006-08-18  Jim Meyering  <jim@meyering.net>
5595
5596         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
5597         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
5598         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
5599         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
5600
5601 2006-08-18  Bruno Haible  <bruno@clisp.org>
5602
5603         * modules/bison-i18n: New file.
5604         * MODULES.html.sh (Internationalization functions): Add it.
5605
5606 2006-08-18  Bruno Haible  <bruno@clisp.org>
5607
5608         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
5609         sys/statvfs.h. When getmntinfo was found, check its declaration and
5610         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
5611
5612 2006-08-18  Bruno Haible  <bruno@clisp.org>
5613
5614         * m4/bison-i18n.m4: New file, from bison.
5615
5616 2006-08-18  Bruno Haible  <bruno@clisp.org>
5617
5618         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
5619         (ME_DUMMY): Treat "kernfs" as a dummy.
5620         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
5621
5622 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
5623
5624         Update from coreutils.
5625
5626         2006-08-15  Jim Meyering  <jim@meyering.net>
5627
5628         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
5629
5630         2006-01-17  Jim Meyering  <jim@meyering.net>
5631
5632         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
5633
5634         2006-01-11  Jim Meyering  <jim@meyering.net>
5635
5636         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
5637         Check for the lchmod function.
5638
5639 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
5640
5641         Update from coreutils.
5642
5643         * lib/__fpending.h: Add copyright notice.
5644         * lib/fprintftime.h: Likewise.
5645         * lib/savedir.c: Use (C) in copyright notice.
5646         * lib/savedir.h: Likewise.
5647
5648         2006-08-15  Jim Meyering  <jim@meyering.net>
5649
5650         * lib/at-func.c: New file, with the logic of all emulated at-functions.
5651         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
5652         in support of the EXPECTED_ERRNO macro.
5653         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
5654         definitions.  Instead, define the appropriate symbols and include
5655         "at-func.c".
5656         * lib/mkdirat.c (mkdirat): Likewise.
5657         * lib/fchmodat.c (fchmodat): Likewise.
5658         (ENOSYS): Remove definition.
5659         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
5660         it.  Don't include "unistd--.h" -- it wasn't ever used.
5661
5662         2006-01-17  Jim Meyering  <jim@meyering.net>
5663
5664         Rewrite fts.c not to change the current working directory,
5665         by using openat, fstatat, fdopendir, etc..
5666
5667         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
5668         (HAVE_OPENAT_SUPPORT): Define.
5669         [_LIBC] (fchdir): Don't undef or define; no longer used.
5670         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
5671         Now, this `function' always succeeds, and consumes its file descriptor
5672         parameter -- so callers must not close such FDs.  Update callers.
5673         (diropen_fd, opendirat, cwd_advance_fd): New functions.
5674         (diropen): Add parameter, SP.  Adjust all callers.
5675         Implement using diropen_fd, rather than open.
5676         (fts_open): Initialize new member, fts_cwd_fd.
5677         Remove fts_rft-setting code.
5678         (fts_close): Close fts_cwd_fd, if necessary.
5679         (__opendir2): Define in terms of opendir or opendirat,
5680         depending on whether the FST_NOCHDIR flag is set.
5681         (fts_build): Since fts_safe_changedir consumes its FD, and since
5682         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
5683         and close the dup'd file descriptor upon failure.
5684         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
5685         (fts_safe_changedir): Tweak semantics to reflect that this function
5686         now calls cwd_advance_fd and hence consumes its FD argument.
5687         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
5688         [struct FTS] (fts_rft): Remove now-unused member.
5689         [struct FTS] (fts_cycle.state): Improve comment.
5690
5691         * lib/openat.c (openat_needs_fchdir): New function.
5692         * lib/openat.h (openat_needs_fchdir): Declare it.
5693
5694 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
5695
5696         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
5697         Problem and fix reported by Pádraig Brady in
5698         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
5699
5700 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
5701
5702         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
5703
5704 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
5705
5706         * lib/memcoll.c (memcoll): Optimize for the common case where the
5707         arguments are bytewise equal.
5708
5709 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
5710
5711         * doc/regexprops-generic.texi: Add a copyright notice.
5712
5713 2006-08-15  Bruno Haible  <bruno@clisp.org>
5714
5715         * modules/tmpdir (License): Change to LGPL.
5716
5717 2006-08-15  Bruno Haible  <bruno@clisp.org>
5718
5719         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
5720         module.
5721
5722 2006-08-14  Simon Josefsson  <jas@extundo.com>
5723
5724         * config/srclist.txt: Add gnupload.
5725
5726 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
5727
5728         Change copyright notice from LGPL 2 to GPL 2, since that's the
5729         standard form used in the gnulib repository.
5730         * tests/test-lock.c: Likewise.
5731         * tests/test-stdint.c: Likewise.
5732         * tests/test-tls.c: Likewise.
5733
5734         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
5735         prelude-manager.  User shorter URLs for GNU projects, without '?'.
5736         Add copyright notice.
5737
5738         * check-module: Add copyright notice.  Output a copyright
5739         notice if "--version" is specified.
5740         * modules/COPYING: New file.
5741         * tests/test-getaddrinfo.c: Add copyright notice.
5742         * tests/test-verify.c: Likewise.
5743
5744 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
5745
5746         Change copyright notice from LGPL 2 to GPL 2, since that's the
5747         standard form used in the gnulib repository.
5748         * lib/lock.c: LGPL -> GPL.
5749         * lib/lock.h: Likewise.
5750         * lib/strnlen1.c: Likewise.
5751         * lib/strnlen1.h: Likewise.
5752         * lib/tls.c: Likewise.
5753         * lib/tls.h: Likewise.
5754         * lib/tmpdir.c: Likewise.
5755
5756         * lib/TODO: Remove; this belongs only in coreutils.
5757
5758 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
5759
5760         Add copyright notices to long-enough files that lack them, since
5761         otherwise the files aren't clearly free.  Use the same notice that
5762         getdate.texi already uses.
5763         * doc/alloca-opt.texi: Add copyright notice.
5764         * doc/alloca.texi: Likewise.
5765         * doc/ctime.texi: Likewise.
5766         * doc/functions.texi: Likewise.
5767         * doc/gcd.texi: Likewise.
5768         * doc/gnulib-tool.texi: Likewise.
5769         * doc/inet_ntoa.texi: Likewise.
5770         * doc/visibility.texi: Likewise.
5771
5772         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
5773         * doc/quote.texi: Add copyright notice.
5774
5775         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
5776         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
5777         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
5778         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
5779         is now obsolete, and give a pointer to the Sun list.
5780         Add copyright notice.
5781
5782 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
5783
5784         * config/srclistvars.sh: Add copyright notice.
5785
5786 2006-08-14  Eric Blake  <ebb9@byu.net>
5787
5788         Import the following change from libc:
5789
5790         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
5791
5792         Upstream bug 2997.
5793         * lib/misc/error.c: Add space between program name and message if file
5794         name is missing.
5795
5796 2006-08-12  Karl Berry  <karl@gnu.org>
5797
5798         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
5799         remove, these originate in gnulib now.
5800
5801 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5802
5803         * doc/Makefile (standards.info standards.html standards.dvi):
5804         Also depend on make-stds.texi.
5805
5806 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
5807
5808         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
5809         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
5810
5811         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
5812         in wchar_t.  Problem reported by Eric Blake.
5813
5814         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
5815         LEN is smaller than SIZE.  Suggested by Bruno Haible.
5816         Also, help the compiler to keep LEN in a register.
5817
5818 2006-08-11  Eric Blake  <ebb9@byu.net>
5819
5820         * users.txt: Sort.  Add tar.
5821
5822 2006-08-11  Bruno Haible  <bruno@clisp.org>
5823
5824         * users.txt: New file.
5825
5826 2006-08-11  Bruno Haible  <bruno@clisp.org>
5827
5828         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
5829         before <wchar.h>. Needed for OSF/1 and BSD/OS.
5830
5831 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
5832
5833         * modules/snprintf (Depends-on): Remove minmax.
5834         (Maintainer): Add self and Bruno.
5835
5836 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
5837
5838         * lib/.cppi-disable: Add snprintf.h, socket_.h.
5839         * lib/snprintf.c: Include <errno.h> and <limits.h>.
5840         (EOVERFLOW): Define if the system does not.
5841         Do not include "minmax.h"; it wasn't used.
5842         (snprintf): Don't assume size_t promotes to an unsigned type.
5843         Fix bug when generated string was too long for the buffer: the
5844         buffer's contents are supposed to be the initial prefix of the
5845         output.  Don't assume vasnprintf returns EOVERFLOW if the size
5846         exceeds INT_MAX; do the check ourselves.
5847
5848         Import the following changes from libc:
5849
5850         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
5851
5852         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
5853         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
5854         set wc to the byte which couldn't be converted.
5855         (re_string_reconstruct): Don't clear valid_raw_len before calling
5856         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
5857         tip_context using re_string_context_at.
5858
5859         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
5860
5861         * lib/posix/regex.h: g++ still cannot handled [restrict].
5862
5863         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
5864
5865         * lib/posix/regex.h: Remove special handling for VMS.
5866
5867 2006-08-10  Jim Meyering  <jim@meyering.net>
5868
5869         * modules/same-inode: New module.
5870         * modules/dev-ino: New module.
5871         * modules/cycle-check: Depend on these modules, rather than simply
5872         including their .h files.
5873         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
5874         required via m4/cycle-check.m4.
5875         * modules/same: Depend on new same-inode module, rather than
5876         including same-inode.h.
5877         * modules/chdir-safer: New file.
5878
5879         * modules/chown (Depends-on): Add stat-macros.
5880
5881 2006-08-10  Jim Meyering  <jim@meyering.net>
5882
5883         * m4/cycle-check.m4: New file.
5884         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
5885         * m4/dev-ino.m4, m4/same-inode.m4: New files.
5886
5887 2006-08-10  Eric Blake  <ebb9@byu.net>
5888
5889         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
5890         in from original proposal.
5891
5892 2006-08-10  Eric Blake  <ebb9@byu.net>
5893         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5894
5895         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
5896         namespace.
5897
5898 2006-08-10  Bruno Haible  <bruno@clisp.org>
5899
5900         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
5901         as well.
5902
5903 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
5904
5905         Sync from coreutils.
5906
5907         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
5908
5909         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
5910         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
5911
5912 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
5913
5914         * modules/restrict: Remove; no longer needed now that we assume
5915         Autoconf 2.59 or later.
5916         * MODULES.html.sh: Remove 'restrict'.
5917         * modules/argp (Depends-on): Remove 'restrict'.
5918         * modules/base64 (Depends-on): Likewise.
5919         * modules/gc (Depends-on): Likewise.
5920         * modules/getaddrinfo (Depends-on): Likewise.
5921         * modules/glob (Depends-on): Likewise.
5922         * modules/inet_ntop (Depends-on): Likewise.
5923         * modules/inet_pton (Depends-on): Likewise.
5924         * modules/memxor (Depends-on): Likewise.
5925         * modules/regex (Depends-on): Likewise.
5926         * modules/strtok_r (Depends-on): Likewise.
5927         * modules/time_r (Depends-on): Likewise.
5928
5929 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
5930
5931         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
5932         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
5933         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
5934         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
5935         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
5936         * m4/memxor.m4 (gl_MEMXOR): Likewise.
5937         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
5938         gl_C_RESTRICT replaced by AC_C_RESTRICT.
5939
5940         Merge from coreutils.
5941         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
5942         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
5943         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
5944         * m4/time_r.m4 (gl_TIME_R): Likewise.
5945
5946 2006-08-09  Karl Berry  <karl@gnu.org>
5947
5948         * config/srclist.txt: no more gettext-tools, per Bruno.
5949
5950 2006-08-08  Eric Blake  <ebb9@byu.net>
5951
5952         * modules/verror: New module.
5953         * MODULES.html.sh: Document it.
5954
5955 2006-08-08  Eric Blake  <ebb9@byu.net>
5956
5957         * lib/verror.h, lib/verror.c: New files.
5958
5959 2006-08-08  Eric Blake  <ebb9@byu.net>
5960
5961         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
5962         verror_at_line output complies with GNU Coding Standards even when
5963         file is NULL.
5964
5965 2006-08-07  Bruno Haible  <bruno@clisp.org>
5966
5967         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
5968         versions of AIX.
5969         Reported by Ralf Wildenhues.
5970
5971 2006-08-07  Bruno Haible  <bruno@clisp.org>
5972
5973         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
5974         in an AC_DEFUN. Needed so that the autoconf snippets can use
5975         AC_REQUIRE.
5976
5977 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5978
5979         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
5980         Initialize pkgdata_DATA.
5981         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
5982         overriding it.
5983
5984 2006-08-06  Eric Blake  <ebb9@byu.net>
5985
5986         * lib/error.h: Fold in some upstream changes from glibc.
5987         * lib/error.c: Likewise.
5988
5989 2006-08-04  Bruno Haible  <bruno@clisp.org>
5990
5991         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
5992         Make the mostlyclean-local rule depend on mostlyclean-generic.
5993         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
5994
5995 2006-07-31  Bruno Haible  <bruno@clisp.org>
5996
5997         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
5998         <stdlib.h>, <string.h>.
5999
6000 2006-07-30  Bruno Haible  <bruno@clisp.org>
6001
6002         * modules/readlink (License): Change to LGPL.
6003
6004 2006-07-30  Bruno Haible  <bruno@clisp.org>
6005
6006         * modules/javaversion (Makefile.am): Distribute javaversion.java and
6007         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
6008         set PKGDATADIR to point to it.
6009
6010 2006-07-30  Bruno Haible  <bruno@clisp.org>
6011
6012         * modules/csharpexec (configure.ac): Comment out macro invocation.
6013         * modules/javaexec (configure.ac): Likewise.
6014         * modules/javacomp-script (configure.ac): Likewise.
6015
6016         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
6017
6018 2006-07-30  Bruno Haible  <bruno@clisp.org>
6019
6020         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
6021         linked-list.
6022
6023 2006-07-30  Bruno Haible  <bruno@clisp.org>
6024
6025         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
6026
6027 2006-07-30  Bruno Haible  <bruno@clisp.org>
6028
6029         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
6030         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
6031         get removed.
6032
6033 2006-07-29  Bruno Haible  <bruno@clisp.org>
6034
6035         Make it possible for gnulib-tool to work with locally modified or
6036         augmented gnulib repositories.
6037         * gnulib-tool (func_usage): Document --local-dir option.
6038         (local_gnulib_dir): New variable.
6039         Handle --local-dir option.
6040         (func_lookup_file): New function.
6041         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
6042         (func_get_description, func_get_filelist, func_get_description,
6043         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
6044         func_get_automake_snippet, func_get_include_directive,
6045         func_get_license, func_get_maintainer): Use func_lookup_file.
6046         (func_import, func_create_testdir): Use func_lookup_file.
6047
6048 2006-07-29  Bruno Haible  <bruno@clisp.org>
6049
6050         * modules/setenv (Depends-on): Add unistd.
6051
6052 2006-07-29  Bruno Haible  <bruno@clisp.org>
6053
6054         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
6055
6056 2006-07-29  Bruno Haible  <bruno@clisp.org>
6057
6058         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
6059
6060 2006-07-29  Bruno Haible  <bruno@clisp.org>
6061
6062         * gnulib-tool (import, update): If there is no Makefile.am, look at
6063         aclocal.m4, instead of bailing out.
6064
6065 2006-07-29  Bruno Haible  <bruno@clisp.org>
6066
6067         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
6068         Categorize the options by when they are useful.
6069
6070 2006-07-29  Bruno Haible  <bruno@clisp.org>
6071
6072         * gnulib-tool (func_usage): Document option --no-libtool.
6073         Handle option --no-libtool.
6074         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
6075         for changed semantics of $libtool variable.
6076         (func_import): Likewise. If libtool is not used, show this through
6077         an option --no-libtool.
6078         (func_create_testdir): Update.
6079
6080 2006-07-29  Bruno Haible  <bruno@clisp.org>
6081
6082         * gnulib-tool (func_import): Extend error message about missing
6083         --doc-base.
6084
6085 2006-07-29  Bruno Haible  <bruno@clisp.org>
6086
6087         * gnulib-tool (func_import): Don't create the $docbase directory if
6088         there is no file to store there.
6089
6090 2006-07-29  Bruno Haible  <bruno@clisp.org>
6091
6092         * gnulib-tool (autoconf_minversion): If a --dir option is given and
6093         relevant, look for configure.ac there, not in the current directory.
6094         Also use a simple search for AC_PREREQ, not "autoconf --trace".
6095
6096 2006-07-29  Bruno Haible  <bruno@clisp.org>
6097
6098         * gnulib-tool (SORT): New variable.
6099         (func_usage): Undocument --assume-autoconf option.
6100         Remove --assume-autoconf option handling.
6101         (autoconf_minversion): Determine from the contents of configure.ac.
6102         (func_import): Remove autoconf_minversion handling.
6103         Suggested by Eric Blake.
6104
6105 2006-07-29  Bruno Haible  <bruno@clisp.org>
6106
6107         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
6108
6109 2006-07-29  Bruno Haible  <bruno@clisp.org>
6110
6111         * config/srclist.txt (*setenv.[ch]): Remove rules.
6112
6113 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
6114
6115         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
6116
6117 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
6118
6119         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
6120         arpa/inet.h.
6121
6122 2006-07-28  Simon Josefsson  <jas@extundo.com>
6123
6124         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
6125         * modules/inet_pton (Depends-on): Likewise.
6126
6127 2006-07-28  Simon Josefsson  <jas@extundo.com>
6128
6129         * m4/netinet_in_h.m4: New file.
6130
6131 2006-07-28  Simon Josefsson  <jas@extundo.com>
6132
6133         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
6134         #include's.
6135
6136 2006-07-28  Simon Josefsson  <jas@extundo.com>
6137
6138         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
6139         #include's.
6140
6141 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
6142
6143         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
6144         setgid on directories only if they set these bits.
6145         * lib/modechange.h: Remove obsolete comment about masks.
6146
6147 2006-07-28  Eric Blake  <ebb9@byu.net>
6148
6149         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
6150         macro expansion.
6151
6152 2006-07-28  Bruno Haible  <bruno@clisp.org>
6153
6154         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
6155
6156 2006-07-28  Bruno Haible  <bruno@clisp.org>
6157
6158         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
6159
6160 2006-07-28  Bruno Haible  <bruno@clisp.org>
6161
6162         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
6163         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
6164         Define fallbacks.
6165         Avoids link error on FreeBSD 4.x.
6166         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
6167
6168         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
6169         encoding.
6170         * lib/mbswidth.c (iswcntrl): Likewise.
6171
6172 2006-07-27  Bruno Haible  <bruno@clisp.org>
6173
6174         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
6175         test.
6176
6177 2006-07-27  Bruno Haible  <bruno@clisp.org>
6178
6179         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
6180         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
6181         defined.
6182
6183 2006-07-26  Eric Blake  <ebb9@byu.net>
6184
6185         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
6186
6187 2006-07-26  Eric Blake  <ebb9@byu.net>
6188
6189         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
6190         like mingw that lack mkstemp.
6191         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
6192         avoid compilation warning on mingw.
6193
6194 2006-07-26  Bruno Haible  <bruno@clisp.org>
6195
6196         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
6197         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
6198         INT_FAST*_MIN, INTPTR_MIN.
6199
6200 2006-07-25  Bruno Haible  <bruno@clisp.org>
6201
6202         * modules/version-etc (Depends-on): Add stdarg.
6203
6204 2006-07-25  Bruno Haible  <bruno@clisp.org>
6205
6206         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
6207         complex commands.
6208
6209 2006-07-25  Bruno Haible  <bruno@clisp.org>
6210
6211         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
6212         defined in <stdarg.h> or config.h.
6213
6214 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
6215
6216         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
6217         (gl_STDIO_SAFER): Remove.
6218
6219 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
6220
6221         * MODULES.html.sh (File stream based Input/Output):
6222         Add fopen-safer, tmpfile-safer; remove stdio-safer.
6223         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
6224         * modules/fopen-safer, modules/tmpfile-safer: New files.
6225         * modules/stdio-safer: Remove.
6226
6227 2006-07-24  Bruno Haible  <bruno@clisp.org>
6228
6229         * modules/tmpdir: New file.
6230         * MODULES.html.sh (File system functions): Add it.
6231
6232 2006-07-24  Bruno Haible  <bruno@clisp.org>
6233
6234         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
6235         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
6236
6237 2006-07-24  Bruno Haible  <bruno@clisp.org>
6238
6239         * modules/clean-temp: New file.
6240
6241 2006-07-24  Bruno Haible  <bruno@clisp.org>
6242
6243         * m4/tmpdir.m4: New file, from GNU gettext.
6244
6245 2006-07-24  Bruno Haible  <bruno@clisp.org>
6246
6247         * lib/tmpdir.h: New file, from GNU gettext.
6248         * lib/tmpdir.c: New file, from GNU gettext.
6249
6250 2006-07-24  Bruno Haible  <bruno@clisp.org>
6251
6252         * lib/clean-temp.h: New file, from GNU gettext.
6253         * lib/clean-temp.c: New file, from GNU gettext.
6254
6255 2006-07-23  Eric Blake  <ebb9@byu.net>
6256
6257         * modules/stdio-safer (Files): Add tmpfile-safer.c.
6258         (Depends-on): Add binary-io.
6259
6260 2006-07-23  Eric Blake  <ebb9@byu.net>
6261
6262         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
6263
6264 2006-07-23  Eric Blake  <ebb9@byu.net>
6265
6266         * lib/tmpfile-safer.c: New file.
6267         * lib/stdio-safer.h (fopen_safer): Add prototype.
6268         * lib/stdio--.h (tmpfile): Make safer.
6269
6270 2006-07-23  Bruno Haible  <bruno@clisp.org>
6271
6272         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
6273         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
6274         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
6275         gl_linked_remove_at): Use it.
6276
6277 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
6278         and Simon Josefsson <jas@extundo.com>
6279
6280         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
6281
6282         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
6283
6284 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
6285
6286         * modules/close-stream: New file.
6287         * modules/closeout (Description): Make it clear that it exits
6288         with a diagnostic on error.
6289         (Depends-on): Add close-stream.  Remove fpending, stdbool.
6290         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
6291
6292 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
6293
6294         * m4/close-stream.m4: New file.
6295
6296 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
6297
6298         * lib/close-stream.c, lib/close-stream.h: New files.
6299
6300 2006-07-22  Bruno Haible  <bruno@clisp.org>
6301
6302         Merge from GNU gettext 0.15.
6303
6304         2006-05-01  Bruno Haible  <bruno@clisp.org>
6305
6306                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
6307
6308         2006-07-22  Bruno Haible  <bruno@clisp.org>
6309
6310                 * modules/javaversion: New file.
6311                 * MODULES.html.sh (Java): Add javaversion.
6312
6313         2006-03-12  Bruno Haible  <bruno@clisp.org>
6314
6315                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
6316
6317         2005-12-04  Bruno Haible  <bruno@clisp.org>
6318
6319                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
6320                 (untested).
6321
6322         2006-06-21  Bruno Haible  <bruno@clisp.org>
6323
6324                 Avoid warnings from recent versions of mcs.
6325                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
6326                 -o, -L, -r any more. Use options documented since mcs-1.0
6327                 instead. Similarly for -g.
6328
6329         2005-12-04  Bruno Haible  <bruno@clisp.org>
6330
6331                 * build-aux/csharpcomp.sh.in: Suffix for resources is
6332                 .resources, not .resource.
6333
6334         2005-07-09  Bruno Haible  <bruno@clisp.org>
6335
6336                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
6337                 add a .dll suffix.
6338                 Reported by Mark Junker <mjscod@gmx.de>.
6339
6340         2006-07-22  Bruno Haible  <bruno@clisp.org>
6341
6342                 * modules/gettext: Upgrade to gettext-0.15.
6343                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
6344                 m4/visibility.m4.
6345                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
6346
6347 2006-07-22  Bruno Haible  <bruno@clisp.org>
6348
6349         Merge from GNU gettext 0.15.
6350
6351         2006-03-25  Bruno Haible  <bruno@clisp.org>
6352
6353                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
6354
6355         2006-07-21  Bruno Haible  <bruno@clisp.org>
6356
6357                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
6358                 "1.1".
6359
6360         2006-05-09  Bruno Haible  <bruno@clisp.org>
6361
6362                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
6363                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
6364                 for the conftestver execution.
6365
6366         2006-05-01  Bruno Haible  <bruno@clisp.org>
6367
6368                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
6369                 optional target-version argument. Verify that the compiler
6370                 groks source of the specified source-version, or add -source
6371                 option as necessary. Verify that the compiler produces
6372                 bytecode in the specified target-version, or add -target and
6373                 -source options as necessary. Make the result of the test
6374                 available as variable CONF_JAVAC. Also log error output in
6375                 config.log.
6376
6377         2006-03-11  Bruno Haible  <bruno@clisp.org>
6378
6379                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
6380
6381         2006-05-09  Bruno Haible  <bruno@clisp.org>
6382
6383                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
6384                 CLASSPATH_SEPARATOR to a semicolon.
6385
6386         2006-03-12  Bruno Haible  <bruno@clisp.org>
6387
6388                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
6389                 available as variable CONF_JAVA, for subsequent autoconf
6390                 tests. Also log error output in config.log.
6391
6392         2006-07-19  Bruno Haible  <bruno@clisp.org>
6393
6394                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
6395                 that getline works on glibc2 systems. Needed to avoid trouble
6396                 in relocatable.c.
6397                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
6398
6399         2005-12-04  Bruno Haible  <bruno@clisp.org>
6400
6401                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
6402                 launcher (untested).
6403
6404         2005-12-04  Bruno Haible  <bruno@clisp.org>
6405
6406                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
6407
6408         2006-07-22  Bruno Haible  <bruno@clisp.org>
6409
6410                 * gettext.m4: Update from GNU gettext-0.15.
6411                 * nls.m4: Likewise.
6412                 * po.m4: Likewise.
6413                 * inttypes-pri.m4: Likewise.
6414                 * inttypes-h.m4: Renamed from inttypes.m4.
6415                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
6416
6417 2006-07-22  Bruno Haible  <bruno@clisp.org>
6418
6419         Merge from GNU gettext 0.15.
6420
6421         2005-07-05  Bruno Haible  <bruno@clisp.org>
6422
6423                 * printf-args.c (printf_fetchargs): Work around broken
6424                 definition of wint_t on mingw.
6425
6426         2005-02-12  Bruno Haible  <bruno@clisp.org>
6427
6428                 * xallocsa.h: Add extern "C" for C++.
6429
6430         2006-05-17  Bruno Haible  <bruno@clisp.org>
6431
6432                 Cygwin portability.
6433                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
6434
6435         2006-04-30  Bruno Haible  <bruno@clisp.org>
6436
6437                 * progreloc.c: Include <mach-o/dyld.h> if available.
6438                 (find_executable): Use _NSGetExecutablePath when possible.
6439
6440         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
6441
6442                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
6443                 function.
6444
6445         2005-12-29  Bruno Haible  <bruno@clisp.org>
6446
6447                 * progreloc.c (set_program_name_and_installdir): Fix
6448                 compilation error.
6449
6450         2005-12-04  Bruno Haible  <bruno@clisp.org>
6451
6452                 Cygwin portability.
6453                 * progreloc.c: Include <windows.h> also on Cygwin.
6454                 (find_executable): Add support for Cygwin.
6455                 (set_program_name_and_installdir): Handle also platforms with
6456                 nonempty EXEEXT.
6457
6458         2006-07-11  Bruno Haible  <bruno@clisp.org>
6459
6460                 * javacomp.c: Fix a comment.
6461                 Reported by Jim Meyering.
6462
6463         2006-04-30  Bruno Haible  <bruno@clisp.org>
6464
6465                 * javacomp.h (compile_java_class): Add source_version,
6466                 target_version arguments.
6467                 * javacomp.c: Rewritten to choose only a compiler that
6468                 respects the specified source_version and target_version.
6469
6470         2006-06-27  Bruno Haible  <bruno@clisp.org>
6471
6472                 Assume correct S_ISDIR macro.
6473                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
6474
6475         2006-07-22  Bruno Haible  <bruno@clisp.org>
6476
6477                 * javaversion.h: New file, from GNU gettext.
6478                 * javaversion.c: New file, from GNU gettext.
6479                 * javaversion.java: New file, from GNU gettext.
6480                 * javaversion.class: New file, from GNU gettext.
6481
6482         2006-05-17  Bruno Haible  <bruno@clisp.org>
6483
6484                 Cygwin portability.
6485                 * javaexec.c (execute_java_class): Test for jview program
6486                 also on Cygwin.
6487
6488         2006-04-09  Bruno Haible  <bruno@clisp.org>
6489
6490                 * fatal-signal.c: Don't include string.h.
6491                 (at_fatal_signal): Use a copying loop instead of memcpy.
6492
6493         2005-12-04  Bruno Haible  <bruno@clisp.org>
6494
6495                 * csharpexec.c: Add support for 'clix' launcher (untested).
6496                 (execute_csharp_using_sscli): New function.
6497                 (execute_csharp_program): Call it.
6498
6499         2006-06-21  Bruno Haible  <bruno@clisp.org>
6500
6501                 Avoid warnings from recent versions of mcs.
6502                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
6503                 -o, -L, -r any more. Use options documented since mcs-1.0
6504                 instead. Similarly for -g.
6505
6506         2005-07-09  Bruno Haible  <bruno@clisp.org>
6507
6508                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
6509                 add a .dll suffix.
6510                 Reported by Mark Junker <mjscod@gmx.de>.
6511
6512         2006-06-17  Bruno Haible  <bruno@clisp.org>
6513
6514                 * config.charset: Update for NetBSD 3.0.
6515
6516         2006-05-17  Bruno Haible  <bruno@clisp.org>
6517
6518                 Cygwin portability.
6519                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
6520
6521         2006-05-16  Bruno Haible  <bruno@clisp.org>
6522
6523                 * localcharset.c [CYGWIN]: Include <windows.h>.
6524                 (get_charset_aliases): For Cygwin, return the same CPxxx
6525                 aliases list as under WIN32.
6526                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
6527                 the environment variables. Fall back to GetACP().
6528
6529         2006-04-05  Bruno Haible  <bruno@clisp.org>
6530
6531                 * config.charset: Update Juan Manuel Guerrero's address.
6532
6533         2005-02-12  Bruno Haible  <bruno@clisp.org>
6534
6535                 * allocsa.h: Add extern "C" for C++.
6536
6537         2005-02-10  Bruno Haible  <bruno@clisp.org>
6538
6539                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
6540                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
6541
6542         2006-07-22  Bruno Haible  <bruno@clisp.org>
6543
6544                 * gettext.h: Update to GNU gettext-0.15.
6545
6546 2006-07-22  Bruno Haible  <bruno@clisp.org>
6547
6548         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
6549         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
6550         lib-prefix.m4, longdouble.m4, ssize_t.m4.
6551
6552 2006-07-21  Eric Blake  <ebb9@byu.net>
6553
6554         * modules/stdlib-safer: New file.
6555         * MODULES.html.sh (File stream based Input/Output): Add
6556         stdlib-safer.
6557
6558 2006-07-21  Eric Blake  <ebb9@byu.net>
6559
6560         * lib/stdlib-safer.h: New file from coreutils, required by
6561         stdlib--.h.
6562
6563 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
6564
6565         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
6566
6567 2006-07-20  Bruno Haible  <bruno@clisp.org>
6568
6569         * gnulib-tool: Recognize new option --assume-autoconf.
6570         (autoconf_minversion): New variable.
6571         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
6572
6573 2006-07-20  Bruno Haible  <bruno@clisp.org>
6574
6575         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
6576
6577 2006-07-19  Derek R. Price  <derek@ximbiot.com>
6578
6579         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
6580         Reindent and repaginate.
6581
6582 2006-07-19  Derek Price  <derek@ximbiot.com>
6583
6584         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
6585         Correct grammar.
6586
6587 2006-07-17  Bruno Haible  <bruno@clisp.org>
6588
6589         * modules/list: New file.
6590         * modules/array-list: New file.
6591         * modules/carray-list, modules/carray-list-tests: New files.
6592         * modules/linked-list, modules/linked-list-tests: New files.
6593         * modules/avltree-list, modules/avltree-list-tests: New files.
6594         * modules/rbtree-list, modules/rbtree-list-tests: New files.
6595         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
6596         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
6597         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
6598         * modules/oset: New file.
6599         * modules/array-oset: New file.
6600         * modules/avltree-oset, modules/avltree-oset-tests: New files.
6601         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
6602         * tests/test-carray_list.c: New file.
6603         * tests/test-linked_list.c: New file.
6604         * tests/test-avltree_list.c: New file.
6605         * tests/test-rbtree_list.c: New file.
6606         * tests/test-linkedhash_list.c: New file.
6607         * tests/test-avltreehash_list.c: New file.
6608         * tests/test-rbtreehash_list.c: New file.
6609         * tests/test-avltree_oset.c: New file.
6610         * tests/test-rbtree_oset.c: New file.
6611         * MODULES.html.sh (Container data structures): New section.
6612
6613 2006-07-17  Bruno Haible  <bruno@clisp.org>
6614
6615         * m4/gl_list.m4: New file.
6616
6617 2006-07-17  Bruno Haible  <bruno@clisp.org>
6618
6619         * lib/gl_list.h: New file.
6620         * lib/gl_list.c: New file.
6621         * lib/gl_array_list.h: New file.
6622         * lib/gl_array_list.c: New file.
6623         * lib/gl_carray_list.h: New file.
6624         * lib/gl_carray_list.c: New file.
6625         * lib/gl_linked_list.h: New file.
6626         * lib/gl_linked_list.c: New file.
6627         * lib/gl_anylinked_list1.h: New file.
6628         * lib/gl_anylinked_list2.h: New file.
6629         * lib/gl_avltree_list.h: New file.
6630         * lib/gl_avltree_list.c: New file.
6631         * lib/gl_anyavltree_list1.h: New file.
6632         * lib/gl_anyavltree_list2.h: New file.
6633         * lib/gl_rbtree_list.h: New file.
6634         * lib/gl_rbtree_list.c: New file.
6635         * lib/gl_anyrbtree_list1.h: New file.
6636         * lib/gl_anyrbtree_list2.h: New file.
6637         * lib/gl_anytree_list1.h: New file.
6638         * lib/gl_anytree_list2.h: New file.
6639         * lib/gl_linkedhash_list.h: New file.
6640         * lib/gl_linkedhash_list.c: New file.
6641         * lib/gl_anyhash_list1.h: New file.
6642         * lib/gl_anyhash_list2.h: New file.
6643         * lib/gl_avltreehash_list.h: New file.
6644         * lib/gl_avltreehash_list.c: New file.
6645         * lib/gl_rbtreehash_list.h: New file.
6646         * lib/gl_rbtreehash_list.c: New file.
6647         * lib/gl_anytreehash_list1.h: New file.
6648         * lib/gl_anytreehash_list2.h: New file.
6649
6650         * lib/gl_oset.h: New file.
6651         * lib/gl_oset.c: New file.
6652         * lib/gl_array_oset.h: New file.
6653         * lib/gl_array_oset.c: New file.
6654         * lib/gl_avltree_oset.h: New file.
6655         * lib/gl_avltree_oset.c: New file.
6656         * lib/gl_rbtree_oset.h: New file.
6657         * lib/gl_rbtree_oset.c: New file.
6658         * lib/gl_anytree_oset.h: New file.
6659
6660 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
6661
6662         * m4/mkancesdirs.m4: New file.
6663         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
6664         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
6665         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
6666         it.
6667
6668 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
6669
6670         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
6671         * lib/mkancesdirs.h: New files.
6672         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
6673         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
6674         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
6675         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
6676         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
6677         callers changed.  Revamp internals significantly, by not
6678         attempting to create directories that are temporarily more
6679         permissive than the final results.  Do not attempt to use
6680         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
6681         This removes some race conditions, fixes some bugs, and simplifies
6682         things.  Use new dirchownmod function to do owner and mode changes.
6683         * lib/mkdir-p.h: Likewise.
6684         * lib/modechange.c (octal_to_mode): New function.
6685         (struct mode_change): New member mentioned.
6686         (make_node_op_equals): New arg mentioned.  All callers changed.
6687         (mode_compile): Keep track of which mode bits the user has explicitly
6688         mentioned.
6689         (mode_adjust): New arg DIR, so that we implement the X op correctly.
6690         New arg PMODE_BITS, to keep track of which mode bits the user
6691         mentioned; it treats S_ISUID and S_ISGID speciall.
6692         All callers changed.
6693         * lib/modechange.h: Likewise.
6694
6695 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
6696
6697         * MODULES.html.sh: Add mkancestors.
6698         * modules/mkancesdirs: New module.
6699         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
6700         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
6701         The chdir-safer and afs files are now orphans; I'll remove them
6702         unless someone speaks up.
6703         Add lib/dirchownmod.c, lib/dirchownmod.h.
6704         (Depends-on): Remove alloca, chown, save-cwd, dirname.
6705         Add lchown, mkancesdirs.
6706         (Maintainer): Add self.
6707
6708 2006-07-15  Karl Berry  <karl@gnu.org>
6709
6710         * gnulib-tool: help message wording/arrangement.
6711
6712 2006-07-14  Simon Josefsson  <jas@extundo.com>
6713
6714         * doc/gnulib.texi (Libtool and Windows): New section.
6715
6716 2006-07-12  Simon Josefsson  <jas@extundo.com>
6717
6718         * modules/gendocs (License): Fix license, approved by Karl.
6719
6720 2006-07-12  Eric Blake  <ebb9@byu.net>
6721
6722         * MODULES.html.sh: Add gendocs.
6723
6724 2006-07-11  Eric Blake  <ebb9@byu.net>
6725
6726         * modules/fdl: New module, to install doc/fdl.texi.
6727         * MODULES.html.sh: Add new section for documentation modules.
6728         * gnulib-tool: Avoid space-tab.
6729         (--doc-base): New option, to manage files from doc.
6730
6731 2006-07-11  Eric Blake  <ebb9@byu.net>
6732
6733         * m4/absolute-header.m4: Fix comments to match recent change.
6734
6735 2006-07-11  Eric Blake  <ebb9@byu.net>
6736
6737         * gnulib-tool: List --doc-base before --tests-base.
6738
6739 2006-07-11  Derek R. Price  <derek@ximbiot.com>
6740
6741         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
6742
6743 2006-07-11  Bruno Haible  <bruno@clisp.org>
6744
6745         * README: Mention where to put documentation.
6746
6747 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6748
6749         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
6750
6751 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
6752
6753         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
6754         to stdint.m4.
6755
6756 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
6757
6758         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
6759         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
6760         "no/such/file/stdint.h" when there is no such file, so that
6761         the resulting C code can be parsed by dodgy compilers.
6762         Problems reported by Bob Proulx.
6763
6764 2006-07-10  Derek R. Price  <derek@ximbiot.com>
6765
6766         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
6767         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
6768         macros into the GNU _D_EXACT_NAMLEN.
6769         * lib/savedir.c:  Likewise.
6770         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
6771
6772 2006-07-10  Derek R. Price  <derek@ximbiot.com>
6773         and Paul Eggert  <eggert@cs.ucla.edu>
6774
6775         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
6776         * m4/savedir.m4:
6777         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
6778         macros into the GNU _D_EXACT_NAMLEN.
6779
6780 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
6781
6782         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
6783         around the absolute name, to work around a problem with the HP-UX
6784         11.23 native C compiler, reported by Bob Proulx.
6785
6786 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
6787
6788         * doc/maintain.texi, make-stds.texi: Sync from
6789         <http://savannah.gnu.org/projects/gnustandards>.
6790
6791 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
6792
6793         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
6794
6795 2006-07-09  Jim Meyering  <jim@meyering.net>
6796
6797         * m4/glob.m4: Remove a doubled word in a comment.
6798
6799 2006-07-09  Jim Meyering  <jim@meyering.net>
6800
6801         * lib/argp-pv.c: Remove a doubled word in a comment.
6802         * lib/check-version.c (check_version): Likewise.
6803         * lib/javacomp.c (compile_java_class): Likewise.
6804
6805 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
6806
6807         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
6808         for the benefit of people using Autoconf 2.60.  If you want to
6809         support older Autoconf versions you can copy m4/onceonly_2_57.m4
6810         (or m4/onceonly.m4, if pre-2.57) manually.
6811
6812 2006-07-08  Jim Meyering  <jim@meyering.net>
6813
6814         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
6815         comment.
6816         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
6817         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
6818         comment.
6819
6820 2006-07-08  Jim Meyering  <jim@meyering.net>
6821
6822         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
6823
6824 2006-07-07  Simon Josefsson  <jas@extundo.com>
6825
6826         * tests/test-crc.c: Change expected crc value, the test vector
6827         were probably computed using the old broken crc.c?
6828
6829 2006-07-06  Simon Josefsson  <jas@extundo.com>
6830
6831         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
6832         now the canonical place for the M4 file).
6833
6834         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
6835         from the sys_socket dependency now.
6836
6837         * modules/inet_pton (Files): Ditto.
6838
6839         * modules/inet_ntop (Files): Ditto.
6840
6841 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
6842
6843         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
6844         not gl_PREREQ_GETUSERSHELL.
6845
6846 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6847
6848         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
6849         with only one argument, for Autoconf 2.60.
6850         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
6851         expand to nothing, so add a shell command to avoid syntax error.
6852         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
6853
6854 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6855
6856         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
6857
6858 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
6859
6860         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
6861         no longer needed.  Check for isblank decl.
6862         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
6863         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
6864         of existence.
6865
6866 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
6867
6868         * lib/getloadavg.c: Use __VMS, not VMS.
6869         * lib/getopt.c: Likewise.
6870         * lib/getpagesize.h: Likewise.
6871         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
6872         and probably does not work.
6873
6874 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
6875
6876         * lib/.cppi-disable: Add wcwidth.
6877         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
6878         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
6879         (ISGRAPH): Remove.  All uses changed to isgraph.
6880         (FOLD) [!defined _LIBC]: Remove special case.
6881         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
6882         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
6883         HAVE_ISBLANK.
6884         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
6885         case.
6886
6887 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
6888
6889         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
6890         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
6891         brackets.  Other minor changes to suppress some compiler
6892         warnings.
6893
6894 2006-07-06  Derek R. Price  <derek@ximbiot.com>
6895         and Paul Eggert  <eggert@cs.ucla.edu>
6896
6897         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
6898         of invoking obsolescent AC_HEADER_DIRENT macro.
6899         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
6900         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
6901         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
6902         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
6903         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
6904         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
6905         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
6906         * m4/readdir.m4: Remove; no longer needed.
6907
6908 2006-07-06  Derek R. Price  <derek@ximbiot.com>
6909         and Paul Eggert  <eggert@cs.ucla.edu>
6910
6911         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
6912         Don't worry about this obsolete case any more.
6913         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
6914         directories.
6915         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
6916         worry about this obsolete case any more.
6917         * lib/fts.c: Likewise.
6918         * lib/getcwd.c: Likewise.
6919         * lib/glob.h: Likewise.
6920         * lib/savedir.c: Likewise.
6921
6922 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
6923
6924         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
6925         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
6926         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
6927         needed.
6928         All uses removed.
6929         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
6930         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
6931         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
6932         needed.
6933         * m4/getdate.m4 (gl_GETDATE): Likewise.
6934         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
6935         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
6936         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
6937         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
6938         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
6939         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
6940         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
6941         needed.
6942
6943 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
6944
6945         * lib/memcasecmp.c: Include <limits.h>.
6946         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
6947         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
6948         Don't assume isdigit succeeds only on '0' through '9'.
6949
6950 2006-07-05  Eric Blake  <ebb9@byu.net>
6951
6952         * modules/getaddrinfo (Depends-on): Add snprintf.
6953
6954 2006-07-05  Eric Blake  <ebb9@byu.net>
6955
6956         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
6957         to avoid 'header present but could not be compiled' on cygwin.
6958
6959 2006-07-05  Eric Blake  <ebb9@byu.net>
6960
6961         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
6962         missing from netdb.h.
6963         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
6964
6965 2006-07-05  Derek R. Price  <derek@ximbiot.com>
6966
6967         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
6968         no longer needed.
6969         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
6970         * m4/getdate.m4 (gl_GETDATE): Likewise.
6971         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
6972         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
6973         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
6974         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
6975         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
6976
6977 2006-07-05  Derek R. Price  <derek@ximbiot.com>
6978
6979         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
6980         All uses of is_space replaced by isspace.
6981         * lib/exit.h: Don't talk about STDC_HEADERS.
6982         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
6983         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
6984         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
6985         replaced by isprint etc.
6986         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
6987         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
6988         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
6989         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
6990         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
6991         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
6992
6993 2006-07-05  Bruno Haible  <bruno@clisp.org>
6994
6995         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
6996         the function exists, before testing against AIX.
6997         Reported by Martin Lambers <marlam@marlam.de>.
6998
6999 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
7000
7001         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
7002         From Mark D. Baushke.
7003
7004 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
7005
7006         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
7007         to the absolute name, not just one, to bypass Sun C 5.8's
7008         "warning: #include of /usr/include/... may be non-portable".
7009
7010 2006-07-04  Eric Blake  <ebb9@byu.net>
7011
7012         * modules/dirname-tests: New test module.
7013         * tests/test-dirname.c: New file, replacing dirname.c
7014         TEST_DIRNAME section that was recently deleted.
7015
7016 2006-07-04  Bruno Haible  <bruno@clisp.org>
7017
7018         Assume ANSI C header files and <ctype.h> functions.
7019         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
7020         (mbsnwidth): Use isprint, iscntrl instead.
7021
7022 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
7023
7024         Merge from coreutils.
7025         * MODULES.html.sh: Add xstrtold.
7026         * modules/xstrtold: New file.
7027         * modules/cycle-check (Files): Add lib/same-inode.h.
7028         * modules/dirname (Files): Add m4/double-slash-root.m4.
7029         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
7030         * modules/mkdir-p (Files): Add lib/same-inode.h.
7031         * modules/same (Files): Add lib/same-inode.h.
7032
7033 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
7034
7035         * m4/absolute-header.m4: Renamed from full-header-path.m4.
7036         This is to keep the terminology clean; POSIX talks about
7037         "absolute pathnames", not "full pathnames", but the GNU
7038         Coding Standards say to use "path" for something else;
7039         so use "absolute" to keep both sides happy.
7040         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
7041         Set gl_absolute_header, not gl_full_header_path.
7042         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
7043         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
7044         All uses changed.
7045
7046         Merge from coreutils.
7047
7048         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
7049
7050         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
7051         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
7052         want to require the building of c-strtod.o.
7053         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
7054         needs -lm directly.
7055         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
7056
7057         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
7058
7059         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
7060         --as-needed option if available.  Problem reported by Albert Chin in
7061         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
7062         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
7063         cc merely issues a bunch of annoying warnings for --as-needed
7064         (this problem was reported by Bob Proulx).  Also, try linking with
7065         -lm to detect a bug in binutils 2.16 (this problem was reported
7066         by Ralf Wildenhues).
7067
7068         2006-06-18  Jim Meyering  <jim@meyering.net>
7069
7070         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
7071         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
7072         macro.
7073         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
7074         also check for glibc-2.4's abort-inducing bug.
7075
7076         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
7077         Low-probability clean-up should be to use rmdir to get rid of
7078         the just-created directory, not unlink.
7079
7080         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
7081         configure fail, and request a bug report to inform us about it.
7082         Add a comment that, barring reports to the contrary, in 2007 we'll
7083         assume ftruncate is universally available.
7084
7085         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
7086
7087         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
7088
7089         2006-03-12  Jim Meyering  <jim@meyering.net>
7090
7091         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
7092         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
7093         * m4/same.m4 (gl_SAME): Likewise.
7094         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
7095
7096         2006-03-11  Eric Blake  <ebb9@byu.net>
7097
7098         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
7099         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
7100         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
7101         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
7102
7103 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
7104
7105         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
7106         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
7107         reported by Mark D. Baushke, one in
7108         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
7109
7110         Merge from coreutils.
7111
7112         * lib/.cppi-disable: Add stdint_.h.
7113         * lib/.cvsignore: Add stdint.h.
7114
7115         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
7116
7117         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
7118         both double and long double versions.
7119         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
7120         * lib/xstrtold.c: New file.
7121         * lib/xstrtod.h (xstrtold): New decl.
7122
7123         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
7124
7125         * lib/filemode.c (setst): Remove.
7126         (strmode): Rewrite to avoid setst.  This makes the code shorter,
7127         (arguably) clearer, and the generated code is a bit smaller on my
7128         Debian GNU/Linux stable x86 host.
7129
7130         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
7131
7132         * lib/filemode.c: Include "filemode.h" first, to test the interface.
7133         Assume that filemode.h includes sys/types.h and sys/stat.h.
7134         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
7135         (ftypelet): Reorder to put common cases first, for efficiency.
7136         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
7137         to do 'M'.
7138         (strmode): Renamed from mode_string, and now stores 12 bytes instead
7139         of 10, for compatibility with FreeBSD.  All callers changed.
7140         (filemodestring): Now stores 12 bytes instead of 10, and sets file
7141         types that can't be deduced solely from st_mode.  First arg is now a
7142         const pointer.
7143         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
7144         (strmode): Renamed from mode_string.
7145         (filemodestring): New decl.
7146         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
7147         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
7148         needed.
7149         (S_ISPORT, S_ISWHT): New macros, if not already defined.
7150
7151         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
7152
7153         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
7154         fsusage.h now does that.  Include fsusage.h first, to test interface.
7155         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
7156         at most one method (the old code could have generated decls that
7157         didn't conform to C89, not that this was ever exercised).
7158         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
7159
7160         2006-03-19  Jim Meyering  <jim@meyering.net>
7161
7162         Work even in a chroot where d_ino values for entries in "/"
7163         don't match the stat.st_ino values for the same names.
7164         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
7165         number, iterate through all entries again, using lstat instead.
7166         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
7167         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
7168
7169         * lib/getcwd.c (__getcwd): Clarify a comment.
7170         Use memcpy in place of a call to strcpy.
7171
7172         2006-03-12  Jim Meyering  <jim@meyering.net>
7173
7174         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
7175         matches that of the current directory (which we're about to chdir ".."
7176         out of), then save the dev-ino of the parent, instead.
7177
7178         * lib/same-inode.h (SAME_INODE): New file/macro.
7179         * lib/chdir-safer.c (SAME_INODE): Remove definition.
7180         Include "same-inode.h", instead.
7181         * lib/same.c: Likewise.
7182         * lib/cycle-check.h: Include "same-inode.h".
7183         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
7184         * lib/cycle-check.c (SAME_INODE): Remove definition.
7185         * lib/root-dev-ino.h: Include "same-inode.h".
7186
7187         2006-03-11  Eric Blake  <ebb9@byu.net>
7188
7189         * lib/same.c (same_name): s/base_name/last_component/
7190         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
7191         * lib/filenamecat.c (file_name_concat): Likewise.
7192
7193         2006-03-11  Eric Blake  <ebb9@byu.net>,
7194                     Paul Eggert  <eggert@cs.ucla.edu>
7195
7196         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
7197         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
7198         drive prefix.
7199         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
7200         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
7201         (last_component): New method.
7202         * lib/dirname.c (dir_len): Determine when drive letters need a
7203         subsequent slash.  Preserve // when it is special.
7204         (dir_name): Don't append dot when drive letter is absolute.
7205         [TEST_DIRNAME]: Move into a full-blown gnulib test.
7206         * lib/basename.c (base_name): New semantics - malloc the result.
7207         Preserve // when it is special.  Preserve relative files that look
7208         like drive letters.
7209         (base_len): Preserve // when it is special.
7210         (last_component): New method, similar to old base_name semantics.
7211         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
7212         base_name.  Strip redundant slashes from ///.
7213
7214 2006-07-03  Jim Meyering  <jim@meyering.net>
7215
7216         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
7217         macro is used before the first cycle_check call.
7218
7219 2006-07-03  Eric Blake  <ebb9@byu.net>
7220
7221         * modules/dirname (Depends-on): Add xstrndup.
7222
7223 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
7224
7225         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
7226         test cases, so that config.log is a bit easier to follow.
7227
7228 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
7229
7230         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
7231         both are 64 bits, since this seems to be the tradition, and this
7232         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
7233         we ever run into a host that prefers long long to long in this
7234         case, we'll need another configure-time test.  Problem reported by
7235         Jim Meyering.
7236
7237 2006-07-02  Eric Blake  <ebb9@byu.net>
7238
7239         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
7240
7241 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
7242
7243         * modules/inttypes (Depends-on): No longer depends on stdint.
7244         * modules/stdint (Description): Say more about assumptions.
7245         Say that the fast types might differ.  Say macros are used.
7246         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
7247         (Makefile.am): Revise list of substituted symbols to match
7248         new stdint.m4.
7249         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
7250         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
7251         * tests/test-stdint.c (verify_same_types)
7252         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
7253         the code conforms to C99/C89.
7254         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
7255         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
7256
7257 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
7258
7259         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
7260         but fix a bug, by requiring at least 64 bits.
7261         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
7262         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
7263         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
7264         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
7265
7266         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
7267         changes.  Make 2.59 a prerequisite.  Check and substitute for
7268         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
7269         inttypes.h.  Do not use special include files; just use the
7270         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
7271         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
7272         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
7273         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
7274         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
7275         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
7276         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
7277         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
7278         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
7279         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
7280         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
7281         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
7282         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
7283         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
7284         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
7285         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
7286         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
7287         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
7288         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
7289         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
7290         WINT_MAX.  Check for C99 conformance more strictly, by detecting
7291         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
7292         not check for things that C99 does not require, e.g., int8_t.  If
7293         a test isn't needed unless <stdint.h> isn't working, and is
7294         unlikely to be needed for any other reason, then don't do it
7295         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
7296         size_t, since we assume C89 freestanding at least.  Do not check
7297         for sig_atomic_t, wchar_t, or wint_t, since the code now does
7298         the right thing even if the types are not defined.  Instead use:
7299         (gl_STDINT_TYPE_PROPERTIES): New macro.
7300         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
7301         testing whether <sys/types.h> clashes, as Autoconf does this for
7302         us now.  All uses removed.
7303         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
7304         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
7305         (gl_CHECK_TYPE_SAME):
7306         Remove; no longer needed.
7307         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
7308         exists, since we'll return 0 anyway in that case.
7309         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
7310
7311 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
7312
7313         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
7314         possible collision with system files.
7315         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
7316         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
7317         WCHAR_MIN and WCHAR_MAX in this case.
7318         (<stddef.h>): Do not include; no longer needed.
7319         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
7320         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
7321         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
7322         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
7323         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
7324         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
7325         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
7326         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
7327         !defined(__c99))]: Include in this case too, since it's harmless
7328         now.
7329         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
7330         dangerous to do so.
7331         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
7332         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
7333         (_STDINT_MIN, _STDINT_MAX): New macros.
7334         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
7335         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
7336         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
7337         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
7338         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
7339         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
7340         macros, not typedefs; this simplifies things quite a bit.
7341         Use long int for all types narrower than int64_t.
7342         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
7343         Define in terms of long long int or int64_t or long int,
7344         not int64_t or int32_t.  This saves some compile-time testing.
7345         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
7346         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
7347         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
7348         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
7349         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
7350         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
7351         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
7352         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
7353         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
7354         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
7355         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
7356         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
7357         undef any previous version and define our own version, for
7358         simplicity and consistency with the new macros for types.
7359         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
7360         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
7361         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
7362         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
7363         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
7364         @WINT_T_SUFFIX@ to keep things simple here.
7365         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
7366         Simplify by assuming typical 8/16/32/64 host, since we're
7367         already doing that elsewhere anyway.
7368         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
7369         and assume long long int is 64 bits if available.  This
7370         speeds up 'configure'.
7371
7372 2006-07-01  Eric Blake  <ebb9@byu.net>
7373
7374         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
7375         Reported by Andreas Buening.
7376
7377 2006-07-01  Eric Blake  <ebb9@byu.net>
7378
7379         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
7380
7381 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
7382
7383         * lib/getaddrinfo.c: fixed typo
7384
7385 2006-06-29  Jim Meyering  <jim@meyering.net>
7386
7387         * modules/strftime (Maintainer): Add my name, since with the
7388         FPRINTFTIME changes strftime.c has forked from glibc.
7389
7390 2006-06-29  Eric Blake  <ebb9@byu.net>
7391
7392         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
7393
7394 2006-06-29  Eric Blake  <ebb9@byu.net>
7395
7396         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
7397
7398 2006-06-29  Eric Blake  <ebb9@byu.net>
7399
7400         * lib/stat_.h: New file.
7401
7402 2006-06-29  Eric Blake  <ebb9@byu.net>
7403
7404         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
7405         unused static function.
7406
7407 2006-06-29  Eric Blake  <ebb9@byu.net>
7408
7409         * doc/functions.texi (Function Portability): Document missing lstat
7410         on mingw.
7411
7412 2006-06-29  Eric Blake  <ebb9@byu.net>
7413
7414         * MODULES.html.sh: Add sys_stat.
7415         * modules/sys_stat: New module.
7416         * modules/mkstemp (Depends-on): Add sys_stat.
7417
7418 2006-06-29  Derek R. Price  <derek@ximbiot.com>
7419
7420         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
7421
7422 2006-06-29  Derek R. Price  <derek@ximbiot.com>
7423
7424         * m4/c-bs-a.m4: Removed.
7425
7426 2006-06-29  Derek R. Price  <derek@ximbiot.com>
7427
7428         * lib/strftime.c: Assume strftime() exists.
7429
7430 2006-06-29  Derek Price  <derek@ximbiot.com>
7431
7432         * modules/c-bs-a: Removed - \a is C89.
7433         * MODULES.html.sh: Remove c-bs-a.
7434
7435 2006-06-29  Bruno Haible  <bruno@clisp.org>
7436
7437         * modules/wcwidth (License): Change to LGPL.
7438
7439 2006-06-28  Simon Josefsson  <jas@extundo.com>
7440
7441         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
7442         on _WIN32.
7443
7444         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
7445         getnameinfo.
7446
7447 2006-06-28  Simon Josefsson  <jas@extundo.com>
7448
7449         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
7450
7451 2006-06-28  Simon Josefsson  <jas@extundo.com>
7452
7453         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
7454         functions there.  It will succeed on Windows XP, but on Windows
7455         2000 and (presumably) earlier, it will fail, and use the internal
7456         re-implementation.
7457         (use_win32_p): New function.
7458         (getaddrinfo): Use strtoul on servname, to support numeric ports.
7459         Support AI_NUMERICSERV to disable getservbyname.
7460         (getnameinfo): New function, only supports
7461         NI_NUMERICHOST|NI_NUMERICSERV for now.
7462
7463         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
7464         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
7465         getnameinfo.
7466
7467 2006-06-28  Eric Blake  <ebb9@byu.net>
7468
7469         * modules/wcwidth: New file.
7470         * modules/mbchar (Depends-on): Add wcwidth.
7471         * modules/mbswidth (Depends-on): Add wcwidth.
7472         * MODULES.html.sh: Add wcwidth.
7473
7474 2006-06-28  Eric Blake  <ebb9@byu.net>
7475
7476         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
7477         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
7478
7479 2006-06-28  Eric Blake  <ebb9@byu.net>
7480
7481         * lib/xvasprintf.h: Fix comments.
7482
7483 2006-06-28  Eric Blake  <ebb9@byu.net>
7484
7485         * lib/mbchar.h (wcwidth): Include wcwidth.h.
7486         * lib/mbswidth.c (wcwidth): Move from here...
7487         * lib/wcwidth.h: ...to this new file.
7488
7489 2006-06-28  Derek R. Price  <derek@ximbiot.com>
7490
7491         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
7492
7493         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
7494         it's obsolete.
7495         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
7496
7497 2006-06-28  Derek R. Price  <derek@ximbiot.com>
7498
7499         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
7500         Autoconf 2.60 says this stuff was obsolete.
7501
7502 2006-06-28  Bruno Haible  <bruno@clisp.org>
7503
7504         * modules/wcwidth (Files): Add m4/wchar_t.m4.
7505
7506 2006-06-28  Bruno Haible  <bruno@clisp.org>
7507
7508         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
7509         gt_TYPE_WCHAR_T.
7510
7511 2006-06-28  Bruno Haible  <bruno@clisp.org>
7512
7513         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
7514         declaration for wcwidth.
7515         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
7516
7517 2006-06-28  Bruno Haible  <bruno@clisp.org>
7518
7519         * lib/mkdtemp.c [MINGW]: Include <io.h>.
7520         (mkdir): Define using _mkdir.
7521
7522 2006-06-28  Bruno Haible  <bruno@clisp.org>
7523
7524         * lib/getaddrinfo.h: Fix POSIX URL.
7525         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
7526         _WIN32.
7527         (use_win32_p): Make static.
7528         (getaddrinfo): Reject service name if it is empty or does not consist
7529         solely of decimal digits, or if its value is > 65535.
7530         (getnameinfo): Remove useless casts.
7531
7532 2006-06-27  Simon Josefsson  <jas@extundo.com>
7533
7534         * modules/sys_select: New file, suggested by Bruno Haible, Paul
7535         Eggert and Martin Lambers.
7536
7537 2006-06-27  Simon Josefsson  <jas@extundo.com>
7538
7539         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
7540         Eggert and Martin Lambers.
7541
7542 2006-06-27  Bruno Haible  <bruno@clisp.org>
7543
7544         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
7545         result to 0, not to empty.
7546         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
7547
7548 2006-06-27  Bruno Haible  <bruno@clisp.org>
7549
7550         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
7551
7552 2006-06-26  Simon Josefsson  <jas@extundo.com>
7553
7554         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
7555         present.
7556
7557 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
7558
7559         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
7560         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
7561         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
7562
7563 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
7564
7565         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
7566
7567 2006-06-26  Bruno Haible  <bruno@clisp.org>
7568
7569         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
7570
7571 2006-06-26  Bruno Haible  <bruno@clisp.org>
7572
7573         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
7574
7575 2006-06-26  Bruno Haible  <bruno@clisp.org>
7576
7577         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
7578         SGI C compiler in pre-C99 mode.
7579         Suggested by Mark D. Baushke and Larry Jones.
7580
7581 2006-06-26  Bruno Haible  <bruno@clisp.org>
7582
7583         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
7584         WCHAR_MAX.
7585         Reported by Mark D. Baushke and Larry Jones.
7586
7587 2006-06-26  Bruno Haible  <bruno@clisp.org>
7588
7589         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
7590         in pre-C99 mode.
7591         Suggested by Mark D. Baushke and Larry Jones.
7592
7593 2006-06-23  Simon Josefsson  <jas@extundo.com>
7594             Bruno Haible  <bruno@clisp.org>
7595
7596         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
7597         Emit mostlyclean-local rule.
7598         (func_emit_tests_Makefile_am): Likewise.
7599         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
7600
7601 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
7602
7603         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
7604
7605 2006-06-23  Bruno Haible  <bruno@clisp.org>
7606
7607         * tests/test-stdint.c: Update to match ISO C 99 Technical
7608         Corrigendum 1.
7609
7610 2006-06-23  Bruno Haible  <bruno@clisp.org>
7611
7612         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
7613
7614 2006-06-23  Bruno Haible  <bruno@clisp.org>
7615
7616         * lib/stdint_.h: Treat IRIX like OpenBSD.
7617
7618 2006-06-23  Bruno Haible  <bruno@clisp.org>
7619
7620         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
7621         ISO C 99 Technical Corrigendum 1.
7622
7623 2006-06-22  Simon Josefsson  <jas@extundo.com>
7624
7625         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
7626         MinGW.
7627
7628 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
7629
7630         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
7631         needed.  Some compiler complained about some of them.  Problem reported
7632         by Larry Jones in
7633         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
7634
7635 2006-06-21  Simon Josefsson  <jas@extundo.com>
7636
7637         * tests/test-getaddrinfo.c: New file.
7638
7639         * modules/getaddrinfo-tests: New file.
7640
7641         * MODULES.html.sh: Add inet_pton.
7642
7643         * modules/inet_pton: New file.
7644
7645 2006-06-21  Simon Josefsson  <jas@extundo.com>
7646
7647         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
7648         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
7649         of using the (limited) gnulib implementation on Windows XP.
7650
7651         * m4/inet_pton.m4: New file.
7652
7653 2006-06-21  Simon Josefsson  <jas@extundo.com>
7654
7655         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
7656         variable.
7657
7658         * lib/socket_.h: Don't define WINVER.
7659
7660         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
7661         slightly modified to work in gnulib.
7662
7663 2006-06-21  Simon Josefsson  <jas@extundo.com>
7664
7665         * doc/gnulib.texi (Windows sockets): Add.
7666
7667 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
7668
7669         * lib/read-file.c (fread_file): Start with buffer allocation of
7670         0 bytes rather than 1 byte; this simplifies the code.
7671         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
7672         code to free buffer and save/restore errno.
7673         (internal_read_file): Remove unused local.
7674
7675 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
7676
7677         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
7678         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
7679         Problem reported by Denis Excoffier in
7680         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
7681
7682 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
7683
7684         * modules/sys_socket, modules/socklen: Include sys/types since
7685         FreeBSD 4.x's sys/socket.h needs it.
7686
7687 2006-06-19  Simon Josefsson  <jas@extundo.com>
7688
7689         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
7690
7691 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
7692
7693         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
7694
7695 2006-06-19  Bruno Haible  <bruno@clisp.org>
7696
7697         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
7698         and FULL_PATH_INTTYPES_H in angle brackets.
7699         Reported by Mark D. Baushke <mdb@gnu.org>.
7700
7701 2006-06-17  Eric Blake  <ebb9@byu.net>
7702
7703         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
7704         errno.
7705
7706 2006-06-17  Bruno Haible  <bruno@clisp.org>
7707
7708         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
7709         <sys/inttypes.h>.
7710
7711 2006-06-17  Bruno Haible  <bruno@clisp.org>
7712
7713         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
7714         whether errno is declared. Assume <errno.h> declares errno.
7715
7716 2006-06-17  Bruno Haible  <bruno@clisp.org>
7717
7718         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
7719
7720 2006-06-17  Bruno Haible  <bruno@clisp.org>
7721
7722         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
7723         problem on Solaris 2.5.1.
7724
7725 2006-06-16  Eric Blake  <ebb9@byu.net>
7726
7727         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
7728         * lib/unicodeio.c [!defined errno]: Likewise.
7729         * lib/strtol.c [!defined errno]: Likewise.
7730         * lib/strtod.c [!defined errno]: Likewise.
7731
7732 2006-06-15  Eric Blake  <ebb9@byu.net>
7733
7734         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
7735
7736 2006-06-15  Eric Blake  <ebb9@byu.net>
7737
7738         * config/srclist.txt (ssize_t.m4): Lose sync.
7739
7740 2006-06-15  Bruno Haible  <bruno@clisp.org>
7741
7742         * modules/stdint (Files): Include m4/full-header-path.m4,
7743         m4/size_max.m4, m4/wchar_t.m4.
7744         (Makefile.am): Many more substitutions.
7745         * modules/stdint-tests: New file.
7746         * tests/test-stdint.c: New file.
7747
7748 2006-06-15  Bruno Haible  <bruno@clisp.org>
7749
7750         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
7751         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
7752         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
7753         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
7754         gl_CHECK_TYPE_SAME): New macros.
7755
7756 2006-06-15  Bruno Haible  <bruno@clisp.org>
7757
7758         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
7759
7760 2006-06-15  Bruno Haible  <bruno@clisp.org>
7761
7762         * lib/stdint_.h: Rewritten to be fully auto-configured.
7763         Fixes bug on HP-UX/IA64.
7764
7765 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
7766
7767         * lib/getdate.y (__attribute__): Don't define if already defined.
7768         Problem reported by Larry Jones.
7769         * lib/utimens.c (__attribute__): Likewise.
7770
7771 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
7772
7773         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
7774         reported by Andreas Schwab.
7775
7776 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7777             Bruno Haible  <bruno@clisp.org>
7778
7779         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
7780         check for the declaration of strnlen and a run test that exposes the
7781         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
7782         rpl_strndup.
7783
7784 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7785             Bruno Haible  <bruno@clisp.org>
7786
7787         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
7788
7789 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7790
7791         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
7792         compile test, for Tru64 4.0D.
7793
7794 2006-05-28  Karl Berry  <karl@gnu.org>
7795
7796         * config/srclist.txt (printf-args.c): lose sync.
7797
7798 2006-05-26  Martin Lambers  <marlam@marlam.de>
7799
7800         * lib/getpass.c: Updates the test for the native W32 API, and adds
7801         missing includes, thus fixing compilation warnings.
7802
7803 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
7804
7805         * lib/exclude.c (exclude_fnmatch): New function.
7806         (excluded_file_name): Call exclude_fnmatch.
7807         * lib/exclude.h (excluded_file_name): New prototype
7808
7809 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
7810
7811         * lib/tempname.c (small_open, large_open): New macros.
7812         (__open, __open64) [!_LIBC]: Remove.
7813         (__gen_tempname): Use small_open and large_open instead of __open
7814         and __open64.  This fixes a portability bug on HP-UX 11.11i
7815         reported by Simon Wing-Tang in
7816         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
7817
7818 2006-05-24  Bruno Haible  <bruno@clisp.org>
7819
7820         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
7821         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
7822         Reported by Thorsten Maerz <torte@netztorte.de> via
7823         Aaron Stone <aaron@serendipity.cx>.
7824
7825 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
7826
7827         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
7828         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
7829         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
7830         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
7831         not really conditional on the cache.
7832         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
7833
7834 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
7835
7836         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
7837         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
7838         (my_usleep): Don't mishandle maximum value.
7839
7840 2006-05-19  Jim Meyering  <jim@meyering.net>
7841
7842         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
7843
7844 2006-05-17  Bruno Haible  <bruno@clisp.org>
7845
7846         Cygwin portability.
7847         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
7848
7849 2006-05-17  Bruno Haible  <bruno@clisp.org>
7850
7851         * lib/stdint_.h: Fix recognition of Cygwin.
7852
7853 2006-05-15  Bruno Haible  <bruno@clisp.org>
7854
7855         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
7856         on libtool patch by Ralf Wildenhues.
7857
7858 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
7859
7860         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
7861         test for C99 conformance; (bool) 0.5 is an integer constant
7862         expression, but (bool) -0.5 is not.  Problem reported by Fedor
7863         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
7864
7865 2006-05-11  Simon Josefsson  <jas@extundo.com>
7866
7867         * m4/xvasprintf.m4: Fix obvious typo.
7868
7869 2006-05-11  Jim Meyering  <jim@meyering.net>
7870
7871         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
7872         James Lemley.
7873
7874 2006-05-10  Simon Josefsson  <jas@extundo.com>
7875
7876         * lib/md4.c: Typo fix, update copyright years.
7877         (K1, K2): Don't use L because it turn computations into 64-bit on
7878         64-bit platforms.
7879
7880 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
7881
7882         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
7883         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
7884         unwanted sign propagation, e.g., on hosts with 64-bit int.
7885         There still are some problems with reeelly weird theoretical hosts
7886         (e.g., 33-bit int) but it's not worth worrying about now.
7887         * lib/sha1.c (rol): Likewise.
7888         (K1, K2, K3, K4): Remove unnecessary L suffix.
7889
7890 2006-05-10  Bruno Haible  <bruno@clisp.org>
7891
7892         * lib/des.c: Cast to avoid warnings.
7893
7894 2006-05-09  Bruno Haible  <bruno@clisp.org>
7895
7896         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
7897         (Depends-on): Depend also on xsize, stdarg.
7898         (configure.ac): Add gl_XVASPRINTF.
7899
7900 2006-05-09  Bruno Haible  <bruno@clisp.org>
7901
7902         * m4/xvasprintf.m4: New file.
7903
7904 2006-05-09  Bruno Haible  <bruno@clisp.org>
7905
7906         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
7907         (EOVERFLOW): Define fallback value.
7908         (xstrcat): New function.
7909         (xvasprintf): Recognize the special case of a string concatenation.
7910
7911 2006-05-08  Eric Blake  <ebb9@byu.net>
7912
7913         * gnulib-tool (func_version): Base copyright year on CVS date.
7914         (func_emit_copyright_notice): New function.
7915         (func_emit_lib_Makefile_am): Use it.
7916         (func_emit_tests_Makefile_am): Likewise.
7917         (func_import): Likewise.
7918
7919 2006-05-08  Bruno Haible  <bruno@clisp.org>
7920
7921         * modules/stdarg: New file.
7922         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
7923
7924 2006-05-08  Bruno Haible  <bruno@clisp.org>
7925
7926         * m4/stdarg.m4: New file, from GNU gettext.
7927
7928 2006-05-08  Bruno Haible  <bruno@clisp.org>
7929
7930         * config/srclist.txt (build-aux/config.rpath): different from latest
7931         release.
7932
7933 2006-05-08  Bruno Haible  <bruno@clisp.org>
7934
7935         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
7936
7937 2006-05-05  Jim Meyering  <jim@meyering.net>
7938
7939         * m4/warning.m4: New file, derived from bison's file by the same name.
7940
7941 2006-05-03  Bruno Haible  <bruno@clisp.org>
7942
7943         * lib/stdint_.h: Shorter URL.
7944         * lib/inttypes.h: Likewise.
7945
7946 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
7947
7948         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
7949
7950 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
7951
7952         * lib/verify.h: Document the internals better.  Most of this change
7953         was written by Bruno Haible.
7954
7955 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
7956
7957         * doc/verify.texi: New file, partly based on a proposal by
7958         Bruno Haible.
7959
7960 2006-05-02  Bruno Haible  <bruno@clisp.org>
7961
7962         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
7963         test from here...
7964         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
7965
7966 2006-04-29  Bruno Haible  <bruno@clisp.org>
7967
7968         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
7969         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
7970
7971 2006-04-29  Bruno Haible  <bruno@clisp.org>
7972
7973         * gnulib-tool: Make --update option actually work.
7974
7975 2006-04-29  Bruno Haible  <bruno@clisp.org>
7976
7977         * doc/gcd.texi: New file.
7978         * doc/gnulib.texi: Include it.
7979
7980 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
7981
7982         * lib/getdate.y (get_date): When adding relative date, start with the
7983         initial time, not with the result of the first mktime call.
7984
7985 2006-04-25  Bruno Haible  <bruno@clisp.org>
7986
7987         * gnulib-tool (func_import): Output the include directives in three
7988         blocks, sorted separately.
7989         Reported by Ben Pfaff <blp@cs.stanford.edu>.
7990
7991 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
7992
7993         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
7994         to define main with arguments, for C++.  Reported by Eric Blake.
7995         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
7996         Prefer 'int main ()' to 'int main (void)', for C++.
7997         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
7998         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
7999         for 'main', for C99 and C++.
8000
8001 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
8002
8003         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
8004         Don't assume that exit status -1 is valid.
8005         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
8006         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
8007         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
8008         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
8009         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
8010         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
8011         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
8012         functions can be used without declaring them, or that you can
8013         exit with status -1.
8014         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
8015
8016 2006-04-24  Karl Berry  <karl@gnu.org>
8017
8018         * config/srclist.txt (longdouble.m4): sync lost.
8019
8020 2006-04-24  Eric Blake  <ebb9@byu.net>
8021
8022         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
8023
8024 2006-04-24  Bruno Haible  <bruno@clisp.org>
8025
8026         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
8027         poll() implementation in AIX.
8028         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8029
8030 2006-04-24  Bruno Haible  <bruno@clisp.org>
8031
8032         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
8033         assigned exactly once.
8034
8035 2006-04-23  Claudio Fontana  <claudio@gnu.org>
8036             Bruno Haible  <bruno@clisp.org>
8037
8038         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
8039         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
8040         for AM_CPPFLAGS.
8041
8042 2006-04-23  Bruno Haible  <bruno@clisp.org>
8043
8044         * modules/copy-file: Depend on unistd.
8045         * modules/execute: Likewise.
8046         * modules/fatal-signal: Likewise.
8047         * modules/findprog: Likewise.
8048         * modules/mkdtemp : Likewise.
8049         * modules/pipe: Likewise.
8050         * modules/wait-process: Likewise.
8051
8052 2006-04-23  Bruno Haible  <bruno@clisp.org>
8053
8054         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
8055         condition was already detected.
8056         Reported by Ben Pfaff <blp@cs.stanford.edu>.
8057
8058 2006-04-23  Bruno Haible  <bruno@clisp.org>
8059
8060         * lib/copy-file.c: Include <unistd.h> unconditionally.
8061         * lib/execute.c: Likewise.
8062         * lib/fatal-signal.c: Likewise.
8063         * lib/findprog.c: Likewise.
8064         * lib/mkdtemp.c: Likewise.
8065         * lib/pipe.h: Likewise.
8066         * lib/pipe.c: Likewise.
8067         * lib/wait-process.h: Likewise.
8068
8069 2006-04-23  Bruno Haible  <bruno@clisp.org>
8070
8071         * gnulib-tool (func_usage): Fix --import description. Document
8072         --update.
8073         (func_import): Create temporary file in a temporary directory, if
8074         --dry-run is specified. Silence errors from 'grep' when there are no
8075         m4 files in $m4dir.
8076         (func_create_testdir): Silence errors from 'grep' when there are no
8077         m4 files in $m4dir.
8078         Reported by Karl Berry <karl@freefriends.org>.
8079
8080 2006-04-20  Bruno Haible  <bruno@clisp.org>
8081
8082         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
8083         one argument, so that the code will be portable to Autoconf 2.60.
8084         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
8085         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
8086         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
8087
8088 2006-04-19  Derek Price  <derek@ximbiot.com>
8089             Eric Blake  <ebb9@byu.net>
8090
8091         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
8092         rather than "/full/path.h".  Update comment to match.  Shorten &
8093         generalize m4_translit call via AS_TR_CPP.
8094
8095 2006-04-19  Derek Price  <derek@ximbiot.com>
8096             Eric Blake  <ebb9@byu.net>
8097
8098         * lib/inttypes.h: Correct grammar in comment.
8099
8100 2006-04-18  Derek Price  <derek@ximbiot.com>
8101             Paul Eggert  <eggert@cs.ucla.edu>
8102
8103         * modules/inttypes: New file.
8104         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
8105
8106 2006-04-18  Derek Price  <derek@ximbiot.com>
8107             Paul Eggert  <eggert@cs.ucla.edu>
8108
8109         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
8110         New files.
8111
8112 2006-04-18  Derek Price  <derek@ximbiot.com>
8113             Paul Eggert  <eggert@cs.ucla.edu>
8114
8115         * lib/inttypes.h: New file.
8116         * lib/strtoimax.c: Assume <inttypes.h>.
8117
8118 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
8119
8120         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
8121         isn't mounted.  Problem reported by Kir Kolyshkin.
8122
8123 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
8124
8125         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
8126         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
8127         Derek R. Price.
8128         * lib/regex.h (RE_DUP_MAX): Update comment to match current
8129         implementation.
8130
8131 2006-04-12  Eric Blake  <ebb9@byu.net>
8132
8133         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
8134         is now done automatically by the corresponding Autoconf macro.
8135
8136 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
8137
8138         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
8139         time_r.h.
8140
8141 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
8142
8143         Merge regex changes from libc, removing some of our
8144         POSIX-conformance changes that were rejected and redoing them in a
8145         less-intrusive way.
8146
8147         * lib/regcomp.c (re_compile_internal, init_dfa):
8148         Length arg is now size_t, not Idx.  All uses changed.
8149         (peek_token): Forward decl now says internal_function.
8150         (__re_error_msgid, __re_error_msgid_idx):
8151         Now static rather than extern with attribute_hidden.
8152         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
8153         For some reason libc prefers K&R style defns for external functions.
8154         (regerror) [!defined _LIBC]: Likewise.
8155         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
8156         (seek_collating_symbol_entry, lookup_collation_sequence_value):
8157         (build_range_exp, build_collating_symbol):
8158         Use K&R-style defn.
8159         (re_compile_fastmap): Use '\0' to memset, not 0.
8160         (utf8_sb_map): Make the calculations more obvious.
8161         (init_dfa, parse_bracket_exp, build_charclass_op):
8162         Call calloc and cast result, as glibc does.
8163         (init_word_char, fetch_token, peek_token, peek_token_bracket):
8164         (build_range_exp, build_collating_symbol):
8165         Now internal functions.
8166
8167         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
8168
8169         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
8170         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
8171         Don't depend on VMS; depend on __VMS instead, for POSIX
8172         namespace cleanness.
8173         (regoff_t): Define to ssize_t, not long int.
8174
8175         Remove the REG_ macros named below.  Instead, make the old names
8176         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
8177         __USE_GNU_REGEX.
8178         (REG_BACKSLASH_ESCAPE_IN_LISTS):
8179         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
8180         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
8181         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
8182         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
8183         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
8184         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
8185         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
8186         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
8187         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
8188         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
8189         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
8190         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
8191         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
8192         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
8193         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
8194         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
8195         (REG_NREGS):
8196         Remove.  All uses replaced by the old RE_* names.
8197         (RE_BACKSLASH_ESCAPE_IN_LISTS):
8198         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
8199         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
8200         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
8201         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
8202         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
8203         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
8204         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
8205         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
8206         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
8207         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
8208         Don't bother having these macros be independent of each others'
8209         values, since they no longer exist in the POSIX name space.
8210
8211         Rename the following member names back to their old names,
8212         unless !__USE_GNU_REGEX.  All uses changed back.
8213         (buffer): Renamed from re_buffer.
8214         (allocated): Renamed from re_allocated.
8215         (used): Renamed from re_used.
8216         (syntax): Renamed from re_syntax.
8217         (fastmap): Renamed from re_fastmap.
8218         (translate): Renamed from re_translate.
8219         (can_be_null): Renamed from re_can_be_null.
8220         (regs_allocated): Renamed from re_regs_allocated.
8221         (fastmap_accurate): Renamed from re_fastmap_accurate.
8222         (no_sub): Renamed from re_no_sub.
8223         (not_bol): Renamed from re_not_bol.
8224         (not_eol): Renamed from re_not_eol.
8225         (newline_anchor): Renamed from re_newline_anchor.
8226         (num_regs): Renamed from rm_num_regs.
8227         (start): Renamed from rm_start.
8228         (end): Renamed from rm_end.
8229
8230         (free_state): Move up a bit.
8231
8232         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
8233         #define to be empty.
8234         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
8235         when that is what is intended.
8236         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
8237         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
8238         (MAX): New macro.
8239         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
8240         All uses changed back to re_malloc, etc.  It's now the caller's
8241         responsibility to check for overflow; all callers changed.
8242         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
8243         (re_x2nrealloc): Remove.
8244         (free_state): Remove decl.
8245
8246         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
8247         (re_set_registers, re_exec):
8248         Use K&R-style defn.
8249
8250         2006-01-31  Roland McGrath  <roland@redhat.com>
8251
8252         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
8253         Reported by Mike Frysinger <vapier@gentoo.org>.
8254
8255         2006-01-15  Andreas Jaeger  <aj@suse.de>
8256
8257         [BZ #1950]
8258         * lib/regex_internal.c (re_string_reconstruct): Adjust for
8259         build_wcs_upper_buffer change.
8260         (build_wcs_upper_buffer): Change return type.
8261
8262         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
8263
8264         * lib/regex_internal.h: Include <stdint.h> if available.
8265
8266         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
8267
8268         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
8269
8270         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
8271
8272         * lib/regcomp.c: Adjust for changed secondary hash function.
8273
8274         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
8275
8276         * lib/regex.h: Pretty printing.
8277         Clean up namespace a bit.
8278
8279         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
8280
8281         * lib/regexec.c (update_cur_sifted_state, check_arrival,
8282         check_arrival_add_next_nodes): Avoid using uninitialized variable.
8283
8284         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
8285                     Ulrich Drepper  <drepper@redhat.com>
8286
8287         [BZ #1302]
8288         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
8289         changed.
8290         (bitset_word_t): Renamed from bitset_word.  All uses changed.
8291
8292         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
8293
8294         [BZ #281]
8295         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
8296         * lib/regcomp.c: Remove unnecessary uses of
8297         unsigned RE_TRANSLATE_TYPE.
8298         * lib/regex_internal.h: Likewise.
8299         * lib/regex_internal.c: Likewise.
8300         * lib/regexec.c: Likewise.
8301         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
8302
8303         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
8304
8305         * lib/regexec.c (find_recover_state): Remove unnecessary
8306         initialization.
8307         (transit_state_bkref): Make DFA a const pointer.
8308         (get_subexp): Likewise.
8309         (check_arrival): Likewise.
8310         (update_cur_sifted_state): Likewise.
8311         (re_search_internal): Likewise.
8312         (prune_impossible_nodes): Likewise.
8313         (acquire_init_state_context): Likewise.
8314         (proceed_next_node): Likewise.
8315         (set_regs): Likewise.
8316         (free_fail_stack_return): Likewise.
8317         (check_arrival_expand_ecl): Mark DFA parameter as const.
8318         (check_arrival_expand_ecl_sub): Likewise.
8319         (check_subexp_limits): Likewise.
8320         (sub_epsilon_src_nodes):  Likewise.
8321         (add_epsilon_src_nodes):  Likewise.
8322         (merge_state_array): Likewise.
8323         (update_regs): Likewise.
8324         (build_trtable): Likewise.
8325         (sift_states_backward): Mark MCTX parameter as const.
8326         (build_sifted_states): Likewise.
8327         (update_cur_sifted_state): Likewise.
8328         (sift_states_mkref): Likewise.
8329         (check_arrival_expand_ecl): Mark eclosure as const.
8330         (check_dst_limits_calc_pos_1): Likewise.
8331         * lib/regex_internal.h (re_match_context_t): Make dfa a const
8332         pointer.
8333
8334         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
8335
8336         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
8337         (transit_state_sb): Likewise.
8338         (transit_state_mb): Likewise.
8339         (sift_states_iter_mb): Likewise.
8340         (check_arrival_add_next_nodes): Likewise.
8341         (check_node_accept_bytes): Change first parameter to pointer-to-const.
8342         [_LIBC] (re_search_2_stub): Use mempcpy.
8343
8344         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
8345         mbrtowc for very simple UTF-8 case.
8346
8347         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
8348         a pointer-to-const.
8349         (re_acquire_state_context): Likewise.
8350         * lib/regex_internal.h: Adjust prototypes.
8351
8352         * lib/regex.c: Prevent using C++ compilers.
8353
8354         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
8355         (re_acquire_state_context): Likewise.
8356
8357 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
8358
8359         * modules/regex (Depends-on): Add ssize_t.
8360
8361 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
8362
8363         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
8364         translation table.
8365
8366 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
8367
8368         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
8369
8370 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
8371             Bruno Haible  <bruno@clisp.org>
8372
8373         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
8374         <sys/types.h> and <inttypes.h>.
8375
8376 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8377
8378         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
8379         `__error_t_defined', so argp.h will not typedef the former.
8380
8381 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
8382
8383         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
8384         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
8385         glibc names.  Even if glibc is changed to conform to POSIX, the
8386         traditional names will be available anyway, since regex depends on
8387         the extensions module.  Also, fix a longstanding typo in the
8388         implementation of Spencer ERE test #75 from grep 2.3.  Problems
8389         reported by Emanuele Giaquinta.  Also, change sense of cached
8390         variable, so that the message makes sense.
8391
8392 2006-03-24  Simon Josefsson  <jas@extundo.com>
8393
8394         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
8395         including some doc fixes.
8396         (base64_encode_alloc): Fix +1 bug on allocation failures.
8397
8398 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8399
8400         * lib/base64.c (base64_encode): Do not read past end of array with
8401         unsanitized input on systems with CHAR_BIT > 8.
8402
8403 2006-03-24  Eric Blake  <ebb9@byu.net>
8404
8405         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
8406
8407 2006-03-22  Karl Berry  <karl@gnu.org>
8408
8409         * config/srclist.txt (*setenv.[ch]): get from coreutils.
8410         * config/srclistvars.sh (COREUTILS): new var.
8411
8412 2006-03-17  Jim Meyering  <jim@meyering.net>
8413
8414         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
8415         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
8416
8417 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
8418
8419         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
8420         no longer needs it.  Instead, check that regoff_t is as least
8421         as wide as ptrdiff_t.
8422
8423         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
8424         so that our regex.h stays compatible with the installed regex.
8425         This is helpful for installers who configure --without-included-regex.
8426         Problem reported by Emanuele Giaquinta.
8427
8428 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
8429
8430         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
8431         Typedef to long int, not to off_, as POSIX will likely change
8432         in that direction.
8433
8434 2006-03-15  Eric Blake  <ebb9@byu.net>
8435
8436         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
8437
8438 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
8439
8440         * lib/argp-help.c (validate_uparams): Fix typo
8441         * lib/argp-parse.c (argp_default_options): Consistently begin help
8442         messages with a lowercase letter.
8443
8444 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
8445
8446         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
8447         overrun buffers and shouldn't be used (much as gets shouldn't be
8448         used).
8449         * lib/time_r.c (asctime_r, ctime_r): Likewise.
8450
8451 2006-03-08  Simon Josefsson  <jas@extundo.com>
8452
8453         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
8454         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8455
8456 2006-03-08  Simon Josefsson  <jas@extundo.com>
8457
8458         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
8459         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8460
8461 2006-03-08  Simon Josefsson  <jas@extundo.com>
8462
8463         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
8464         signal that configure disabled the device.
8465
8466 2006-03-08  Simon Josefsson  <jas@extundo.com>
8467
8468         * build-aux/maint.mk: Fix refresh-po, to handle no translated
8469         languages.
8470
8471 2006-03-07  Simon Josefsson  <jas@extundo.com>
8472
8473         * modules/getopt (Depends-on): Add unistd.
8474
8475         * modules/unistd: New file.
8476
8477 2006-03-07  Simon Josefsson  <jas@extundo.com>
8478
8479         * modules/gc-random: New file.
8480
8481 2006-03-07  Simon Josefsson  <jas@extundo.com>
8482
8483         * m4/unistd_h.m4: New file.
8484
8485 2006-03-07  Simon Josefsson  <jas@extundo.com>
8486
8487         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
8488         test to be side-effect free by storing the result in the cache
8489         variable gl_cv_lib_readline, and moving the assignment of
8490         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
8491         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8492
8493 2006-03-07  Simon Josefsson  <jas@extundo.com>
8494
8495         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
8496         error on missing devices (the functions will return an error).
8497
8498         * m4/gc.m4: Move random stuff to gc-random.m4
8499
8500 2006-03-07  Simon Josefsson  <jas@extundo.com>
8501
8502         * lib/unistd_.h: New file.
8503
8504 2006-03-07  Simon Josefsson  <jas@extundo.com>
8505
8506         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
8507
8508 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
8509
8510         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
8511         Problem reported by Juan Manuel Guerrero.
8512
8513 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
8514
8515         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
8516         the unistd module.
8517         * lib/getlogin_r.c: Likewise.
8518         * lib/getlogin_r.h: Likewise.
8519         * lib/glob.c: Likewise.
8520         * lib/pagealign_alloc.c: Likewise.
8521         * lib/unistd_.h: Remove; no longer needed.
8522
8523 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
8524
8525         * MODULES.html.sh (Support for systems lacking POSIX:2001):
8526         Add unistd.
8527         * modules/c-stack (Depends-on): Add unistd.
8528         * modules/getlogin_r: Likewise.
8529         * modules/glob: Likewise.
8530         * modules/pagealign_alloc: Likewise.
8531         * modules/unistd (Files): Remove lib/unistd_.h.
8532         (EXTRA_DIST): Remove.
8533         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
8534         need unistd_.h.
8535         (MOSTLYCLEANFILES): Remove unistd.h-t.
8536
8537 2006-03-03  Simon Josefsson  <jas@extundo.com>
8538
8539         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
8540
8541 2006-03-03  Simon Josefsson  <jas@extundo.com>
8542
8543         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
8544         libidn and bison.
8545
8546 2006-03-03  Simon Josefsson  <jas@extundo.com>
8547
8548         * build-aux/maint.mk: Add indent target.
8549
8550 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
8551
8552         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
8553         our replacement poll.h in any case, to avoid a differing
8554         declaration from a system header.  Seen on AIX.
8555
8556 2006-03-01  Simon Josefsson  <jas@extundo.com>
8557
8558         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
8559         <kasal@ucw.cz>.
8560
8561 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
8562
8563         * modules/gettime (Depends-on): Add extensions module.
8564         * modules/nanosleep (Depends-on): Likewise.
8565         * modules/settime (Depends-on): Likewise.
8566
8567 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
8568
8569         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
8570         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
8571         pedantically.
8572         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
8573         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
8574
8575         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
8576         not "==".  Reported by Ralf Wildenhues.
8577
8578 2006-03-01  Karl Berry  <karl@gnu.org>
8579
8580         * doc/Copyright/request-*: new files, synced from gnuorg.
8581
8582 2006-03-01  Karl Berry  <karl@gnu.org>
8583
8584         * config/srclist.txt (Copyright/*): new entries.
8585
8586 2006-02-28  Simon Josefsson  <jas@extundo.com>
8587
8588         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
8589
8590 2006-02-27  Simon Josefsson  <jas@extundo.com>
8591
8592         * lib/base64.h: Indent #define's.  From Jim Meyering
8593         <jim@meyering.net>.
8594
8595 2006-02-27  Jim Meyering  <jim@meyering.net>
8596
8597         Revert the change of 2006-02-24, so these files can continue
8598         to be sync'd from gettext.
8599         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
8600         of `config.h'.
8601
8602 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
8603
8604         * modules/intprops: New file.
8605         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
8606         Add intprops.
8607         * modules/getloadavg (Files): Remove lib/intprops.h.
8608         (Depends-on): Add intprops.
8609         * modules/human: Likewise.
8610         * modules/inttostr: Likewise.
8611         * modules/openat: Likewise.
8612         * modules/sig2str: Likewise.
8613         * modules/userspec: Likewise.
8614         * modules/utimecmp: Likewise.
8615         * modules/xnanosleep: Likewise.
8616         * modules/xstrtol: Likewise.
8617
8618 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
8619
8620         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
8621         * modules/lock-tests (TESTS): Use $(EXEEXT).
8622         * modules/tls-tests: Likewise.
8623         * modules/argp-tests: Likewise.
8624         (check_PROGRAMS): New var, replacing...
8625         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
8626
8627 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8628
8629         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
8630         `config.h'.
8631
8632 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
8633
8634         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
8635
8636 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8637
8638         Sync from coreutils.
8639         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
8640         gl_CHDIR_SAFER.
8641
8642 2006-02-22  Jim Meyering  <jim@meyering.net>
8643
8644         Sync from coreutils.
8645         * m4/chdir-safer.m4: New file.
8646
8647 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
8648
8649         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
8650         AT_FDCWD exceeds INT_MAX.
8651         * lib/openat.h (AT_FDCWD): Likewise.
8652
8653 2006-02-17  Eric Blake  <address@hidden>
8654
8655         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
8656
8657 2006-02-16  Simon Josefsson  <jas@extundo.com>
8658
8659         * modules/getaddrinfo (Depends-on): Add sys_socket.
8660
8661 2006-02-15  Simon Josefsson  <jas@extundo.com>
8662
8663         * build-aux/maint.mk: Add dsyntax-check rule.
8664
8665 2006-02-15  Eric Blake  <ebb9@byu.net>
8666
8667         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
8668         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
8669         'present but cannot compile' warnings on cygwin.
8670         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
8671         use ws2tcpip.h if sys/socket.h works.
8672         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
8673         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
8674
8675 2006-02-14  Simon Josefsson  <jas@extundo.com>
8676
8677         * modules/maintainer-makefile (Files): Rename.
8678
8679         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
8680         and (the local) Makefile.cfg to maint-cfg.mk.
8681
8682         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
8683         to the latter.
8684
8685         * modules/maintainer-makefile: New module.
8686
8687         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
8688         severaly stripped to make it possible to build it up from scratch
8689         with reliable tests.
8690
8691         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
8692         fixes to permit overriding the default actions when configure and
8693         makefile are not available.
8694
8695 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
8696
8697         Sync from coreutils.
8698         * modules/lstat (Depends-on): Don't depend on xalloc.
8699         (License): Change from GPL to LGPL, since this is now simply a
8700         replacement for a libc function.
8701
8702 2006-02-14  Jim Meyering  <jim@meyering.net>
8703
8704         Sync from coreutils.
8705
8706         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
8707         failure on deficient systems, and simplify gnulib lgpl dependencies.
8708         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
8709         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
8710
8711         * lib/xalloc-die.c: Remove unused definition of N_.
8712
8713 2006-02-14  Jim Meyering  <jim@meyering.net>
8714
8715         Sync from coreutils.
8716         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
8717         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
8718         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
8719         double-quote uses of that variable, to accommodate the rare case in
8720         which getmntent is available in none of the libraries checked.  This
8721         happens at least on FreeBSD 5.0.
8722
8723 2006-02-13  Simon Josefsson  <jas@extundo.com>
8724
8725         * gnulib-tool (Usage): Fix --import, from
8726         karl@freefriends.org (Karl Berry).
8727
8728 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
8729
8730         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
8731
8732 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
8733
8734         * lib/argp-namefrob.h: Restore changes accidentally lost during the
8735         "autoupdate" on 2005-12-12.
8736
8737 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
8738
8739         * modules/closeout (Depends-on): Remove atexit.
8740
8741 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
8742
8743         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
8744         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
8745
8746 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
8747
8748         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
8749         __EXTENSIONS__ if this causes compilation to fail.  Problem
8750         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
8751         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
8752
8753 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
8754
8755         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
8756         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
8757         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
8758         All uses changed.
8759
8760 2006-01-26  Simon Josefsson  <jas@extundo.com>
8761
8762         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
8763         prototype is visible on mingw32.
8764
8765         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
8766         for mingw32.
8767
8768         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
8769         mingw32).
8770
8771 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
8772
8773         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
8774         attempt to open for write; this always fails, at least on POSIX
8775         hosts.  This reinstates the 2006-01-09 change, which was
8776         inadvertently removed.
8777
8778 2006-01-26  Bruno Haible  <bruno@clisp.org>
8779
8780         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
8781         Reported by Paul Eggert.
8782
8783 2006-01-26  Bruno Haible  <bruno@clisp.org>
8784             Paul Eggert  <eggert@cs.ucla.edu>
8785
8786         * lib/stdbool_.h (_Bool)
8787         [(! (defined __cplusplus || defined __BEOS__)
8788           && !defined __GNUC__
8789           && !(defined __HP_cc || defined __xlc__
8790                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
8791                || defined __sgi))]:
8792         #define to signed char in these cases too; this simplifies
8793         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
8794         etc., separately) and makes it more conservative.
8795
8796 2006-01-25  Simon Josefsson  <jas@extundo.com>
8797
8798         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
8799         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
8800         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
8801
8802 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
8803
8804         * lib/argp-namefrob.h: Bugfix. Remove stray #
8805
8806 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
8807
8808         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
8809         so that we test the test.
8810         Check for yet another HP-UX cc bug involving *bool |= bool.
8811
8812 2006-01-25  Karl Berry  <karl@gnu.org>
8813
8814         * config/srclist.txt (vasnprintf.c): sync lost.
8815
8816 2006-01-25  Jim Meyering  <jim@meyering.net>
8817
8818         Sync from the stable (b5) branch of coreutils:
8819
8820         * lib/fts.c (fts_children): Don't let close() clobber errno from
8821         failed fchdir().
8822
8823         * lib/fts.c (fts_stat): When following a symlink-to-directory,
8824         don't necessarily interpret stat-fails+lstat-succeeds as indicating
8825         a dangling symlink.  That can also happen at least for ELOOP.
8826         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
8827         FYI, this bug predates the inclusion of fts.c in coreutils.
8828
8829         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
8830         in their own block, so pre-c99 compilers don't object.
8831
8832         Avoid the double-free (first in fts_read, second in fts_close) that
8833         would occur when an `active' directory is made inaccessible (e.g.,
8834         via chmod a-x) during a traversal.
8835         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
8836         before returning.  Reproduce this failure by
8837         mkdir -p a/b; cd a; chmod a-x . b
8838         Reported by Stavros Passas.
8839
8840 2006-01-25  Jim Meyering  <jim@meyering.net>
8841
8842         * lib/fileblocks.c: Remove more useless parentheses.
8843         * lib/readutmp.h: Likewise.
8844
8845 2006-01-25  Bruno Haible  <bruno@clisp.org>
8846
8847         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
8848         warnings.
8849         Reported by Paul Eggert.
8850
8851 2006-01-25  Bruno Haible  <bruno@clisp.org>
8852
8853         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
8854         rid of a trap command. For Solaris sh.
8855         Reported by Mark D. Baushke <mdb@gnu.org>.
8856
8857 2006-01-24  Simon Josefsson  <jas@extundo.com>
8858
8859         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
8860         Bruno.
8861
8862 2006-01-24  Karl Berry  <karl@gnu.org>
8863
8864         * config/srclist.txt (argp-namefrob.h): sync lost.
8865
8866 2006-01-24  Jim Meyering  <jim@meyering.net>
8867
8868         * modules/openat (Files): Add lib/intprops.h.
8869         From Mark D. Baushke.
8870
8871 2006-01-24  Jim Meyering  <jim@meyering.net>
8872
8873         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
8874         Reported by Mark D. Baushke.
8875
8876 2006-01-24  Jim Meyering  <jim@meyering.net>
8877
8878         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
8879
8880 2006-01-24  Bruno Haible  <bruno@clisp.org>
8881
8882         * modules/strnlen (Maintainer): Change from glibc to all.
8883
8884 2006-01-24  Bruno Haible  <bruno@clisp.org>
8885
8886         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
8887         Patch by Paul Eggert.
8888
8889 2006-01-24  Bruno Haible  <bruno@clisp.org>
8890
8891         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
8892         already has it.
8893         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
8894         2005-11-26.
8895
8896         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
8897         'signed char' to avoid problems with the built-in _Bool type.
8898         Reported by Paul Eggert on 2005-11-26.
8899
8900 2006-01-24  Bruno Haible  <bruno@clisp.org>
8901
8902         * gnulib-tool (func_import): Avoid constructing complicated sed
8903         expressions inside backquote.
8904         Report and solution by Mark D. Baushke <mdb@gnu.org>.
8905
8906 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
8907
8908         These changes imported from libc.
8909         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
8910         test and two separate function calls.
8911         * lib/strndup.c (__strndup): Add libc_hidden_def.
8912
8913 2006-01-23  Simon Josefsson  <jas@extundo.com>
8914
8915         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
8916         Remove the test_*_SOURCES variable: automake infers it by default.
8917         * modules/tls-tests: Likewise.
8918
8919 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
8920
8921         Work around porting bugs reported by Dieter in
8922         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
8923         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
8924         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
8925         Include "getopt.h" first, to check interface.
8926         (getenv): Declare only if defined HAVE_DECL_GETENV &&
8927         !HAVE_DECL_GETENV.
8928         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
8929         (__strndup): Revert to K&R-style function dfns, the glibc style.
8930         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
8931         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
8932         Include strnlen.h first, to get prototype properly.
8933         (strnlen): Renamed from __strnlen.
8934         Remove weak alias.
8935
8936 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
8937
8938         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
8939
8940 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
8941
8942         * config/srclist.txt: Adjust to reflect glibc reorganization.
8943         This affects only comments.
8944
8945 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
8946
8947          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
8948          Reported by Bruce Korb <bkorb@gnu.org>.
8949
8950 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
8951
8952         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
8953         to pacify gcc -Wswitch-default.
8954
8955 2006-01-22  Bruno Haible  <bruno@clisp.org>
8956
8957         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
8958         temporary buffer for sprintf, take into account the precision also
8959         for 'd', 'i', 'u', 'o', 'x', 'X'.
8960
8961 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
8962
8963         * modules/argp-tests: New module
8964         * tests/test-argp.c: New file
8965         * tests/test-argp-2.sh: New file
8966
8967 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
8968
8969         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
8970         (__argp_base_name): Removed
8971         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
8972         typo.
8973         (__argp_base_name): Provide macro definition or extern declaration
8974         depending on the configuration
8975
8976 2006-01-20  Simon Josefsson  <jas@extundo.com>
8977
8978         * modules/inet_ntop (Depends-on): Depend on sys_socket.
8979
8980 2006-01-20  Simon Josefsson  <jas@extundo.com>
8981
8982         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
8983
8984 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
8985
8986         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
8987         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
8988         Suggested by Bruno Haible.
8989
8990 2006-01-20  Karl Berry  <karl@gnu.org>
8991
8992         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
8993         until changes propagate, I guess.
8994
8995 2006-01-19  Simon Josefsson  <jas@extundo.com>
8996
8997         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
8998
8999 2006-01-19  Simon Josefsson  <jas@extundo.com>
9000
9001         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
9002
9003 2006-01-19  Simon Josefsson  <jas@extundo.com>
9004
9005         * gnulib-tool: Set check_PROGRAMS.
9006
9007         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
9008         modules/des-tests, modules/gc-arcfour-tests,
9009         modules/gc-arctwo-tests, modules/gc-des-tests,
9010         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
9011         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
9012         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
9013         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
9014         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
9015         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
9016         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
9017         test_*_SOURCES.
9018
9019 2006-01-18  Simon Josefsson  <jas@extundo.com>
9020
9021         * modules/socklen (Depends-on): Depend on sys_socket.
9022
9023 2006-01-18  Simon Josefsson  <jas@extundo.com>
9024
9025         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
9026         modules/des-tests, modules/gc-arcfour-tests,
9027         modules/gc-arctwo-tests, modules/gc-des-tests,
9028         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
9029         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
9030         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
9031         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
9032         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
9033         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
9034         $(EXEEXT) to automake TESTS variable, for mingw32.
9035
9036 2006-01-17  Simon Josefsson  <jas@extundo.com>
9037
9038         * modules/socklen (Include): Need sys/socket.h.
9039
9040 2006-01-17  Bruno Haible  <bruno@clisp.org>
9041
9042         * modules/ssize_t (Include): Add <sys/types.h>.
9043
9044 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
9045
9046         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
9047         it's not portable and it doesn't work with cross-compiles.
9048         Problem reported by Bruno Haible.  Fix missing-$ typo in
9049         'test "gl_cv_ignore_unused_libraries" ...' that prevented
9050         -zignore from being used with Sun's C compiler.
9051
9052 2006-01-12  Simon Josefsson  <jas@extundo.com>
9053
9054         * lib/base64.c: Fix warning, reported by Bruno Haible
9055         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
9056
9057 2006-01-12  Bruno Haible  <bruno@clisp.org>
9058
9059         * modules/ldd: New file.
9060         * build-aux/ldd.sh.in: New file.
9061         * MODULES.html.sh (Support for building libraries and executables): Add
9062         ldd.
9063
9064 2006-01-12  Bruno Haible  <bruno@clisp.org>
9065
9066         * m4/ldd.m4: New file.
9067
9068 2006-01-12  Bruno Haible  <bruno@clisp.org>
9069
9070         * gnulib-tool (func_import, func_create_testdir): Don't go into an
9071         endless loop while replacing $auxdir with build-aux.
9072
9073 2006-01-11  Simon Josefsson  <jas@extundo.com>
9074
9075         * lib/stdint_.h (SIZE_MAX): Add missing (.
9076
9077 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
9078
9079         Sync from coreutils.
9080         * lib/md5.c: Fix commentary typos.
9081         (alignof, UNALIGNED_P): No need for a GCC-specific version.
9082         * lib/md5.h (__attribute__): Remove; unused.
9083         * lib/sha1.c: Fix commentary to match md5 better.
9084         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
9085         so that we don't need to worry about alignment.  All uses changed.
9086         This merges the 2005-10-28 md5 change into sha1.
9087
9088 2006-01-11  Jim Meyering  <jim@meyering.net>
9089
9090         Sync from coreutils.
9091         * lib/md5.c (OP): Fix spacing.
9092
9093 2006-01-11  Bruno Haible  <bruno@clisp.org>
9094
9095         Ensure automatic ordering between gl_LOCK and gl_ARGP.
9096         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
9097         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
9098
9099 2006-01-11  Bruno Haible  <bruno@clisp.org>
9100
9101         Ensure automatic ordering between gl_LOCK and gl_ARGP.
9102         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
9103         the "early" section as well.
9104
9105 2006-01-11  Bruno Haible  <bruno@clisp.org>
9106
9107         Avoid "ar: no archive members specified" error on MacOS X.
9108         * gnulib-tool (func_modules_add_dummy): New function.
9109         (func_import, func_create_testdir): Invoke it.
9110
9111 2006-01-11  Bruno Haible  <bruno@clisp.org>
9112
9113         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
9114         with $auxdir in AC_CONFIG_FILES statements.
9115
9116 2006-01-11  Bruno Haible  <bruno@clisp.org>
9117
9118         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
9119         Initialize also noinst_HEADERS to empty.
9120
9121 2006-01-11  Bruno Haible  <bruno@clisp.org>
9122
9123         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
9124         variables.
9125         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
9126         autoreconf.
9127
9128 2006-01-11  Bruno Haible  <bruno@clisp.org>
9129
9130         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
9131         overridable by the user.
9132         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9133
9134 2006-01-10  Simon Josefsson  <jas@extundo.com>
9135
9136         * modules/sys_socket: New file.
9137
9138 2006-01-10  Simon Josefsson  <jas@extundo.com>
9139
9140         * m4/sys_socket_h.m4: New file.
9141
9142 2006-01-10  Simon Josefsson  <jas@extundo.com>
9143
9144         * lib/socket_.h: New file.
9145
9146 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
9147
9148         * modules/readutmp (Maintainer): Add myself.
9149
9150 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
9151
9152         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
9153         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
9154         People who are still concerned with buggy memcmp implementations
9155         can invoke gl_FUNC_MEMCMP themselves.
9156
9157 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
9158
9159         * lib/regex_internal.h (BITSET_WORD_BITS):
9160         Work around a bug in 64-bit PGC (before version 6.1-2), where the
9161         preprocessor mishandles large unsigned values as if they were signed.
9162         Problem reported by Claudio Fontana in
9163         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
9164
9165 2006-01-10  Jim Meyering  <jim@meyering.net>
9166
9167         Avoid the double-free (first in fts_read, second in fts_close) that
9168         would occur when an `active' directory is made inaccessible (e.g.,
9169         via chmod a-x) during a traversal.
9170         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
9171         before returning.  Reproduce this failure by
9172         mkdir -p a/b; cd a; chmod a-x . b
9173         Reported by Stavros Passas.
9174
9175         Sync from coreutils.
9176         * lib/sha1.c: Tweak grammar in a comment.
9177
9178 2006-01-10  Jim Meyering  <jim@meyering.net>
9179
9180         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
9181         Patch by Joerg Sonnenberger.
9182
9183 2006-01-10  Bruno Haible  <bruno@clisp.org>
9184
9185         * modules/readutmp: Depend on module free.
9186         * modules/strtok_r: Depend on module restrict.
9187
9188 2006-01-10  Bruno Haible  <bruno@clisp.org>
9189
9190         * modules/gettext (configure.ac): Add an invocation of
9191         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
9192
9193 2006-01-10  Bruno Haible  <bruno@clisp.org>
9194
9195         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
9196         Reported by Werner Lemberg <wl@gnu.org>.
9197
9198 2006-01-10  Bruno Haible  <bruno@clisp.org>
9199
9200         * lib/localcharset.c: Update from GNU gettext.
9201
9202 2006-01-10  Bruno Haible  <bruno@clisp.org>
9203
9204         * lib/argp.h (__const): Remove macro. Use const instead.
9205         * lib/argp-fmtstream.h (__const): Likewise.
9206         * lib/glob_.h (__const): Remove macro.
9207         * lib/glob-libc.h: Use const instead of __const.
9208
9209 2006-01-10  Bruno Haible  <bruno@clisp.org>
9210
9211         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
9212         variable.
9213         Needed to avoid an automake error regarding the 'gettext' module.
9214
9215 2006-01-09  Simon Josefsson  <jas@extundo.com>
9216
9217         * modules/inet_ntop (Depends-on): Add restrict.
9218
9219 2006-01-09  Simon Josefsson  <jas@extundo.com>
9220
9221         * modules/gc-rijndael-tests (License): Put under LGPL.
9222
9223         * modules/gc-des-tests (License): Likewise.
9224
9225         * modules/gc-arcfour-tests (License): Likewise.
9226
9227         * modules/gc-arctwo-tests (License): Likewise.
9228
9229         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
9230
9231         * modules/gc-hmac-sha1-tests (Files): Likewise.
9232
9233         * modules/gc-hmac-md5-tests (License): Likewise.
9234
9235         * modules/gc-sha1-tests (License): Likewise.
9236
9237         * modules/gc-md5-tests (License): Likewise.
9238
9239         * modules/gc-md4-tests (License): Likewise.
9240
9241         * modules/gc-md2-tests (License): Likewise.
9242
9243         * modules/gc-tests (License): Likewise.
9244
9245         * modules/des-tests (License): Likewise.
9246
9247         * modules/md4-tests (License): Likewise.
9248
9249         * modules/md2-tests (License): Likewise.
9250
9251 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
9252
9253         Sync from coreutils:
9254
9255         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
9256         * modules/lib-ignore: New file.
9257         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
9258         chdir-safer.m4, lchmod.m4.
9259         * modules/openat: Add mkdirat.c, openat-priv.h.
9260
9261 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
9262
9263         Sync from coreutils.
9264         * m4/lib-ignore.m4: New file.
9265         * m4/lchmod.m4: New file.
9266
9267 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
9268
9269         Sync from coreutils.
9270         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
9271         for write access: POSIX says that must fail.
9272         * lib/fts.c (diropen): Likewise.
9273         * lib/save-cwd.c (save_cwd): Likewise.
9274         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
9275         well, for minor improvements on hosts that lack O_DIRECTORY.
9276         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
9277         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
9278         Fall back on chown if open failed with EACCES.
9279
9280         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
9281         Report an error at compile-time if only a 1-second nominal clock
9282         resolution is found.
9283
9284         * lib/lchmod.h: New file.
9285         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
9286         (make_dir_parents): Use lchown rather than chown, and
9287         lchmod rather than chmod.
9288
9289         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
9290         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
9291         "proc" reported by n0dalus.
9292
9293         * lib/mountlist.c: Include <limits.h>.
9294         (dev_from_mount_options)
9295         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
9296         New function.  It no longer assumes "dev=" has the System V meaning
9297         on Linux (since it doesn't).  It also parses "dev=" more carefully.
9298         (read_file_system_list)
9299         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
9300         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
9301         dev= in that case.
9302
9303         * lib/posixtm.h (PDS_PRE_2000): New macro.
9304         * lib/posixtm.c (year): Arg is now syntax_bits rather than
9305         allow_century.  All usages changed.  Reject dates outside the range
9306         1969-1999 if PDS_PRE_2000 is used.
9307
9308 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
9309
9310         Sync from coreutils.
9311         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
9312         (Time of day items): Mention the possibility of leap seconds.
9313         Problem reported by Dr. David Alan Gilbert.
9314
9315 2006-01-09  Jim Meyering  <jim@meyering.net>
9316
9317         Sync from coreutils.
9318
9319         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
9320
9321         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
9322
9323         * lib/modechange.c (mode_compile): Reject an invalid mode string
9324         that starts with an octal digit.  From Andreas Gruenbacher.
9325
9326         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
9327         and dup to open_safer and dup_safer, respectively.
9328         (openat_permissive): Fix typo in comment.
9329
9330         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
9331         "gettext.h"; either no longer needed or are guaranteed by openat.h.
9332         (_): Remove; no longer needed.
9333         (openat): Renamed from rpl_openat; no need for rpl_openat
9334         since openat.h renames openat for us.
9335         Replace most of the body with a call to openat_permissive,
9336         to avoid duplicate code.
9337         Port to (probably hypothetical) environments were mode_t is
9338         wider than int.
9339         (openat_permissive): Require mode arg, so that we can check
9340         types better.  Put it just after flags.  Change cwd failure
9341         indicator from pointer-to-bool to pointer-to-errno-value.
9342         All callers changed.
9343         Invoke openat_save_fail and/or openat_restore_fail if
9344         cwd_errno is null, so that openat can call us.
9345         (openat_permissive, fdopendir, fstatat, unlinkat):
9346         Simplify errno handling to avoid some duplicate code,
9347         as it's OK to set errno on success.
9348         * lib/openat.h: Revamp code so that function macros depend on
9349         __OPENAT_PREFIX only, not also on AT_FDCWD.
9350         (openat_ro): Remove.  Caller changed to use openat_permissive.
9351         (openat_permissive): Now a macro, if not a function.
9352         (openat_restore_fail, openat_save_fail): Now always functions,
9353         since mkdirat needs them even if __OPENAT_PREFIX is defined.
9354
9355         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
9356         and openat.c.
9357         * lib/mkdirat.c: Include openat-priv.h.
9358         Remove definitions of macros defined therein.
9359         * lib/openat.c: Likewise.
9360
9361         * lib/mkdirat.c (mkdirat): New file and function.
9362         * lib/openat.h (mkdirat): Declare.
9363
9364         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
9365
9366         * lib/openat.h (openat_permissive): Declare.
9367         (openat_ro): Define.
9368
9369         * lib/openat.c (EXPECTED_ERRNO): New macro.
9370         (openat_permissive): New function -- used in remove.c rewrite.
9371         (all functions): Set errno just before returning, only if there
9372         was an actual failure.
9373         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
9374
9375         Emulate openat-family functions using Linux's procfs, if possible.
9376         Idea and some code based on Ulrich Drepper's glibc changes.
9377
9378         * lib/openat.c: (BUILD_PROC_NAME): New macro.
9379         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
9380         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
9381         before falling back on save_cwd and restore_cwd.
9382         (fdopendir, fstatat, unlinkat): Likewise.
9383
9384         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
9385         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
9386
9387         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
9388         as second argument to va_arg.  Otherwise, some versions of gcc
9389         warn that `if this code is reached, the program will abort'.
9390
9391 2006-01-09  Jim Meyering  <jim@meyering.net>
9392
9393         Sync from coreutils.
9394         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
9395         Require openat-priv.h.
9396
9397 2006-01-09  Bruno Haible  <bruno@clisp.org>
9398
9399         * modules/strnlen (Include): Use strnlen.h.
9400
9401 2006-01-09  Bruno Haible  <bruno@clisp.org>
9402
9403         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
9404
9405 2006-01-09  Bruno Haible  <bruno@clisp.org>
9406
9407         * lib/sysexit_.h (EX_OK): New macro.
9408         Suggested by Martin Lambers <marlam@marlam.de>.
9409
9410 2006-01-09  Bruno Haible  <bruno@clisp.org>
9411
9412         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
9413         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
9414
9415 2006-01-09  Bruno Haible  <bruno@clisp.org>
9416
9417         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
9418         numbers.
9419
9420 2006-01-09  Bruno Haible  <bruno@clisp.org>
9421
9422         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
9423         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
9424         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
9425         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
9426
9427 2006-01-09  Bruno Haible  <bruno@clisp.org>
9428
9429         * build-aux/javacomp.sh.in: New file, moved from lib/.
9430         * modules/javacomp-script (Files): Update.
9431         (configure.ac): Add AC_CONFIG_FILES invocation.
9432         (EXTRA_DIST): Remove variable.
9433
9434         * build-aux/javaexec.sh.in: New file, moved from lib/.
9435         * modules/javaexec (Files): Update.
9436         (configure.ac): Add AC_CONFIG_FILES invocation.
9437         (EXTRA_DIST): Remove javaexec.sh.in.
9438
9439         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
9440         * modules/csharpcomp-script (Files): Update.
9441         (configure.ac): Add AC_CONFIG_FILES invocation.
9442         (EXTRA_DIST): Remove variable.
9443
9444         * build-aux/csharpexec.sh.in: New file, moved from lib/.
9445         * modules/csharpexec (Files): Update.
9446         (configure.ac): Add AC_CONFIG_FILES invocation.
9447         (EXTRA_DIST): Remove csharpexec.sh.in.
9448
9449 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
9450
9451         Sync from coreutils.
9452
9453         Add POSIX ACL support
9454         * lib/acl.h (copy_acl, set_acl): Add declarations.
9455         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
9456         systems other than Linux.
9457         (chmod_or_fchmod): New function: use fchmod when possible,
9458         and chmod otherwise.
9459         (file_has_acl): Add a POSIX ACL implementation, with a
9460         Linux-specific subcase.
9461         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
9462         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
9463         acls are unsupported.
9464         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
9465         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
9466         are unsupported.
9467
9468 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
9469
9470         Sync from coreutils.
9471         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
9472
9473 2006-01-07  Bruno Haible  <bruno@clisp.org>
9474
9475         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
9476         gl_EARLY.
9477
9478 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
9479
9480         * lib/strftime.c (tzname): Don't declare if it is already #defined.
9481         Problem reported for Mingw by Mark Junker.
9482
9483 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
9484
9485         * README: Gnulib normally doesn't generate a tarball.
9486
9487 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
9488
9489         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
9490         long int, not int, for nanosecond counts, so that people who are
9491         used to POSIX struct timespec won't be surprised.  Reported by Jim
9492         Meyering.
9493
9494 2005-12-28  Bruno Haible  <bruno@clisp.org>
9495
9496         * build-aux/config.rpath: Update from GNU gettext.
9497
9498 2005-12-16  Jim Meyering  <jim@meyering.net>
9499
9500         * modules/fprintftime: New module.
9501         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
9502
9503 2005-12-16  Jim Meyering  <jim@meyering.net>
9504
9505         * m4/fprintftime.m4: New file.
9506
9507 2005-12-16  Jim Meyering  <jim@meyering.net>
9508
9509         * lib/fprintftime.c, lib/fprintftime.h: New files.
9510
9511 2005-12-15  Simon Josefsson  <jas@extundo.com>
9512
9513         * modules/socklen (configure.ac): Fix M4 macro name, to align with
9514         new m4/socklen.m4.
9515
9516 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
9517
9518         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
9519         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
9520
9521 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
9522
9523         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
9524         * lib/argp-help.c (fill_in_uparams): Check if the constructed
9525         struct uparams is valid. Fall back to the default values if it is
9526         not.
9527
9528 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
9529
9530         * modules/argp (Files): Add argp-pin.c
9531         (Depends-on): dirname
9532         (lib_SOURCES): Add argp-pin.c
9533
9534 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
9535
9536         * m4/argp.m4:  Check if program_invocation_name and
9537         program_invocation_short_name are declared and define appropriate
9538         macros if they are not.
9539
9540 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
9541
9542         * lib/argp-help.c (__argp_base_name): New function
9543         (__argp_short_program_name): Rewrite using __argp_base_name
9544         * lib/argp-namefrob.h: Define program_invocation_name and
9545         program_invocation_short_name if requested
9546         (__argp_base_name): Add prototype
9547         * lib/argp-parse.c (argp_def): Use gettext wrappers
9548         (argp_default_parser): Use __argp_base_name
9549         * lib/argp-pin.c: New file. Defines program_invocation_name and
9550         program_invocation_short_name on systems that lack them.
9551
9552 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
9553
9554         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
9555         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
9556         porting problem reported by Georg Schwarz in
9557         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
9558
9559 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
9560
9561         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
9562         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
9563         porting problem reported by Georg Schwarz in
9564         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
9565
9566 2005-12-05  Bruno Haible  <bruno@clisp.org>
9567
9568         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
9569         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
9570         Reported by Mark Junker <mjscod@gmx.de>.
9571
9572 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
9573
9574         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
9575         Use implementation from Albert Chin, with some
9576         comments/corrections by Stepan Kasal and myself.
9577
9578 2005-12-02  Bruno Haible  <bruno@clisp.org>
9579
9580         * gnulib-tool (func_import): Accept GPLed build tool modules when
9581         --lgpl is given.
9582         * modules/csharpcomp-script: New file.
9583         * modules/csharpcomp: Depend on it.
9584         * modules/javacomp-script: New file.
9585         * modules/javacomp: Depend on it.
9586         Suggested by Simon Josefsson.
9587
9588 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
9589
9590         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
9591         statement, to work around an HP-UX 10.20 compiler bug reported by
9592         Peter O'Gorman.
9593
9594 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
9595
9596         * modules/savedir (Depends-on): Add openat.
9597
9598 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
9599
9600         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
9601         (uintmax_t) [defined uintmax_t]: Do not declare.
9602         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
9603         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
9604         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
9605         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
9606         sake of portability to weird hosts that C allows (though we don't
9607         know of any practical examples).
9608
9609         * lib/savedir.h (fdsavedir): New decl.
9610         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
9611         contains most of the former guts of savedir.
9612         (savedir): Use savedirstream.
9613         Include "openat.h".
9614
9615 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
9616
9617         * modules/obstack (Files): Add m4/ulonglong.m4.
9618         Problem reported by Davide Angelocola.
9619
9620 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
9621
9622         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
9623         coreutils no longer futzes with rounding modes.
9624
9625 2005-11-14  Jim Meyering  <jim@meyering.net>
9626
9627         * lib/mkstemp-safer.c: Include <config.h>, required for possible
9628         replacement of mkstemp.
9629
9630 2005-11-10  Simon Josefsson  <jas@extundo.com>
9631
9632         * lib/readline.c: Remove EOL.
9633
9634 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
9635
9636         * modules/gethrxtime (Depends-on): Add gettime.
9637
9638 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
9639
9640         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
9641         or gettimeofday; no longer needed.
9642
9643 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
9644
9645         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
9646         time business.
9647         (gethrxtime) [! (HAVE_NANOUPTIME
9648         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
9649         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
9650         our own approximation.
9651
9652 2005-11-08  Eric Blake  <ebb9@byu.net>
9653
9654         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
9655
9656 2005-11-08  Eric Blake  <ebb9@byu.net>
9657
9658         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
9659
9660 2005-11-04  Bruno Haible  <bruno@clisp.org>
9661
9662         * gnulib-tool: Implement --update mode.
9663
9664 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
9665
9666         Fix porting problem reported by Theodoros V. Kalamatianos.
9667         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
9668         Don't assume that futimes failing means we must fail.
9669
9670 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
9671
9672         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
9673         variables to suggest the intended function of the PATH_MAX check.
9674
9675 2005-10-30  Kean Johnston  <jkj@sco.com>
9676
9677         Trivial changes to support SCO systems.
9678         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
9679         as PATH_MAX.
9680         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
9681         where __ptr is null when no I/O is pending.
9682
9683 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
9684
9685         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
9686         leave errno alone.  Problem reported by Dmitry V. Levin.
9687
9688 2005-10-28  Simon Josefsson  <jas@extundo.com>
9689
9690         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
9691         Test more.
9692
9693         * tests/test-gc-md2.c, tests/test-md2.c: New files.
9694
9695         * modules/md2, modules/md2-tests: New files.
9696
9697 2005-10-28  Simon Josefsson  <jas@extundo.com>
9698
9699         * m4/inet_ntop.m4: More tests.
9700
9701         * m4/gc-md2.m4, md2.m4: New file.
9702
9703 2005-10-28  Simon Josefsson  <jas@extundo.com>
9704
9705         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
9706         "restrict" keywords, as per POSIX.  Protect the function
9707         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
9708         Don't use K&R prototypes.  Check the sprintf return values.
9709         Re-define EAFNOSUPPORT if not present.  Indent.
9710
9711         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
9712         suggested by Bruno Haible <bruno@clisp.org>.
9713
9714         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
9715
9716         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
9717
9718         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
9719         libgcrypt).
9720
9721         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
9722
9723         * lib/md2.h, lib/md2.c: New files.
9724
9725 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
9726
9727         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
9728         errno alone.  Problem reported by Frederic Jolliton.
9729
9730 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
9731
9732         * modules/verify (License): Change from GPL to LGPL.  This is a
9733         tiny module and there are apparently near-equivalents that are
9734         under the BSD license.
9735
9736 2005-10-24  Simon Josefsson  <jas@extundo.com>
9737
9738         * modules/sha1: Relicense to LGPL.
9739
9740 2005-10-24  Simon Josefsson  <jas@extundo.com>
9741
9742         * lib/md4.h: Shrink buffer size, now that we changed the type.
9743
9744 2005-10-23  Simon Josefsson  <jas@extundo.com>
9745
9746         * gnulib-tool (func_import): Fix --tests-base.
9747
9748 2005-10-22  Simon Josefsson  <jas@extundo.com>
9749
9750         * modules/arcfour (Depends-on): Need stdint.
9751
9752 2005-10-22  Simon Josefsson  <jas@extundo.com>
9753
9754         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
9755         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
9756
9757 2005-10-22  Simon Josefsson  <jas@extundo.com>
9758
9759         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
9760         suggested by Bruno Haible <bruno@clisp.org>.
9761
9762 2005-10-22  Simon Josefsson  <jas@extundo.com>
9763
9764         * lib/crc.h: Include stddef.h, for size_t.
9765
9766 2005-10-22  Simon Josefsson  <jas@extundo.com>
9767
9768         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
9769         arcfour_context struct (simplify test vector testing in GNU
9770         Shishi).
9771
9772 2005-10-21  Simon Josefsson  <jas@extundo.com>
9773
9774         * modules/des, modules/des-tests: New files.
9775
9776         * modules/gc-des, modules/gc-des-tests: New files.
9777
9778         * tests/test-des.c, tests/test-gc-des.c: New file.
9779
9780 2005-10-21  Simon Josefsson  <jas@extundo.com>
9781
9782         * modules/arctwo, modules/arctwo-tests: New files.
9783
9784         * tests/test-arctwo.c: New file.
9785
9786         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
9787
9788         * tests/test-gc-arctwo.c: New file.
9789
9790 2005-10-21  Simon Josefsson  <jas@extundo.com>
9791
9792         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
9793         Bruno Haible <bruno@clisp.org>.
9794
9795         * m4/gc-des.m4: New file.
9796
9797 2005-10-21  Simon Josefsson  <jas@extundo.com>
9798
9799         * m4/arctwo.m4: New file.
9800
9801         * m4/gc-arctwo.m4: New file.
9802
9803 2005-10-21  Simon Josefsson  <jas@extundo.com>
9804
9805         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
9806         block.
9807
9808 2005-10-21  Simon Josefsson  <jas@extundo.com>
9809
9810         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
9811         <bruno@clisp.org>.
9812
9813         * lib/hmac-sha1.c (hmac_sha1): Likewise.
9814
9815         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
9816         Bruno Haible <bruno@clisp.org>.
9817
9818         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
9819         <bruno@clisp.org>.
9820
9821 2005-10-21  Simon Josefsson  <jas@extundo.com>
9822
9823         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
9824
9825 2005-10-21  Simon Josefsson  <jas@extundo.com>
9826
9827         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
9828
9829 2005-10-21  Simon Josefsson  <jas@extundo.com>
9830
9831         * lib/des.h, lib/des.c: New files.
9832
9833         * lib/gc-gnulib.c: Support DES.c
9834
9835 2005-10-21  Simon Josefsson  <jas@extundo.com>
9836
9837         * lib/arctwo.h, lib/arctwo.c: New files.
9838
9839         * lib/gc-gnulib.c: Support ARCTWO.
9840
9841 2005-10-21  Simon Josefsson  <jas@extundo.com>
9842
9843         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
9844         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9845
9846 2005-10-21  Simon Josefsson  <jas@extundo.com>
9847
9848         * gnulib-tool (func_import, func_create_testdir): Define automake
9849         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
9850         Makefile.am snippet),
9851         suggested by Bruno Haible <bruno@clisp.org>.
9852
9853         * modules/gc (Makefile.am): Use it.
9854
9855 2005-10-21  Bruno Haible  <bruno@clisp.org>
9856
9857         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
9858         patch.
9859
9860 2005-10-19  Simon Josefsson  <jas@extundo.com>
9861
9862         * tests/test-gc-rijndael.c: New file.
9863
9864         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
9865
9866 2005-10-19  Simon Josefsson  <jas@extundo.com>
9867
9868         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
9869         interface too.
9870
9871 2005-10-19  Simon Josefsson  <jas@extundo.com>
9872
9873         * tests/test-gc-arcfour.c: New file.
9874
9875         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
9876
9877 2005-10-19  Simon Josefsson  <jas@extundo.com>
9878
9879         * modules/gc-md4, modules/gc-md4-tests: New file.
9880
9881         * tests/test-gc-md4.c: New file.
9882
9883 2005-10-19  Simon Josefsson  <jas@extundo.com>
9884
9885         * m4/gc-md4.m4: New file.
9886
9887 2005-10-19  Simon Josefsson  <jas@extundo.com>
9888
9889         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
9890         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
9891         <kasal@ucw.cz>.
9892
9893 2005-10-19  Simon Josefsson  <jas@extundo.com>
9894
9895         * m4/gc-arcfour.m4: New file.
9896
9897         * m4/gc-rijndael.m4: New file.
9898
9899 2005-10-19  Simon Josefsson  <jas@extundo.com>
9900
9901         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
9902
9903 2005-10-19  Simon Josefsson  <jas@extundo.com>
9904
9905         * lib/gc-gnulib.c: Support ARCFOUR.
9906
9907 2005-10-19  Simon Josefsson  <jas@extundo.com>
9908
9909         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
9910         support.
9911
9912         * lib/gc.h: Add ECB enum type.
9913
9914         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
9915
9916 2005-10-18  Simon Josefsson  <jas@extundo.com>
9917
9918         * tests/test-md5.c: New file.
9919
9920         * modules/md5-tests: New file.
9921
9922 2005-10-18  Simon Josefsson  <jas@extundo.com>
9923
9924         * tests/test-md4.c: New file.
9925
9926         * modules/md4, modules/md4-tests: New files.
9927
9928 2005-10-18  Simon Josefsson  <jas@extundo.com>
9929
9930         * m4/md4.m4: New file.
9931
9932 2005-10-18  Simon Josefsson  <jas@extundo.com>
9933
9934         * lib/md4.h, lib/md4.c: New files, based on md5.?.
9935
9936 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
9937
9938         * gnulib-tool (func_create_testdir): Omit the second check whether
9939         BUILT_SOURCES in nonempty.
9940
9941 2005-10-17  Simon Josefsson  <jas@extundo.com>
9942
9943         * tests/test-rijndael.c: New file.
9944
9945 2005-10-17  Simon Josefsson  <jas@extundo.com>
9946
9947         * modules/sha1: Depend on stdint instead of md5.
9948
9949         * modules/md5: Depend on stdint, remove uint32_t.
9950
9951 2005-10-17  Simon Josefsson  <jas@extundo.com>
9952
9953         * modules/gc-sha1-tests: New file.
9954
9955         * tests/test-gc-sha1.c: New file.
9956
9957 2005-10-17  Simon Josefsson  <jas@extundo.com>
9958
9959         * m4/md5.m4: Remove call to uint32_t.m4.
9960
9961 2005-10-17  Simon Josefsson  <jas@extundo.com>
9962
9963         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
9964
9965         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
9966         md5.h.
9967
9968         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
9969
9970         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
9971
9972 2005-10-17  Simon Josefsson  <jas@extundo.com>
9973
9974         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
9975
9976 2005-10-17  Simon Josefsson  <jas@extundo.com>
9977
9978         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
9979
9980 2005-10-17  Simon Josefsson  <jas@extundo.com>
9981
9982         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
9983
9984         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
9985
9986 2005-10-17  Bruno Haible  <bruno@clisp.org>
9987
9988         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
9989         that it can also be used in a test.
9990
9991 2005-10-16  Bruno Haible  <bruno@clisp.org>
9992
9993         * gnulib-tool (func_emit_tests_Makefile_am): Also define
9994         TESTS_ENVIRONMENT, so that individual tests can augment it.
9995
9996         * gnulib-tool (func_create_testdir): Use an intermediate target for
9997         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
9998         macros, like $(ALLOCA_H), which cannot be passed through the command
9999         line.
10000
10001 2005-10-15  Simon Josefsson  <jas@extundo.com>
10002
10003         * modules/rijndael-tests: New file.
10004
10005         * modules/rijndael: New file.
10006
10007 2005-10-15  Simon Josefsson  <jas@extundo.com>
10008
10009         * m4/rijndael.m4: New file.
10010
10011 2005-10-15  Simon Josefsson  <jas@extundo.com>
10012
10013         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
10014
10015         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
10016
10017 2005-10-14  Simon Josefsson  <jas@extundo.com>
10018
10019         * tests/test-arcfour.c: New file.
10020
10021         * modules/arcfour, modules/arcfour-tests: New files.
10022
10023 2005-10-14  Simon Josefsson  <jas@extundo.com>
10024
10025         * m4/arcfour.m4: New file.
10026
10027 2005-10-14  Simon Josefsson  <jas@extundo.com>
10028
10029         * lib/arcfour.h, lib/arcfour.c: New files.
10030
10031 2005-10-14  Roland McGrath  <roland@redhat.com>
10032
10033         Import from libc.  [BZ #1331]
10034         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
10035         macro argument.
10036         Reported by Matej Vela <vela@debian.org>.
10037
10038 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
10039
10040         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
10041         include <wchar.h>; no longer needed.
10042
10043 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
10044
10045         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
10046
10047 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
10048         and  Ulrich Drepper  <drepper@redhat.com>
10049
10050         Import from libc.
10051         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
10052         instead of inline stream orientation test and two separate
10053         function calls.  Pay no attention to USE_IN_LIBIO.
10054
10055 2005-10-13  Simon Josefsson  <jas@extundo.com>
10056
10057         * modules/gc-hmac-md5-tests: New file.
10058
10059         * tests/test-gc-hmac-sha1.c: New file.
10060
10061         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
10062
10063         * modules/gc-hmac-md5-tests: New file.
10064
10065         * tests/test-gc-md5.c: New file.
10066
10067         * modules/gc-md5-tests: New file.
10068
10069 2005-10-13  Simon Josefsson  <jas@extundo.com>
10070
10071         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
10072         Move memory allocation outside of loop.
10073
10074 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
10075
10076         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
10077         intermediate directory is in a read-only file system.  Problem
10078         reported by Eric Blake.
10079
10080 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
10081
10082         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
10083
10084 2005-10-12  Simon Josefsson  <jas@extundo.com>
10085
10086         * tests/test-hmac-sha1.c: New file.
10087
10088         * modules/hmac-sha1-tests: New file.
10089
10090         * modules/hmac-sha1: New file.
10091
10092 2005-10-12  Simon Josefsson  <jas@extundo.com>
10093
10094         * modules/gc-sha1: New file.
10095
10096 2005-10-12  Simon Josefsson  <jas@extundo.com>
10097
10098         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
10099
10100         * tests/test-gc-pbkdf2-sha1.c: New file.
10101
10102 2005-10-12  Simon Josefsson  <jas@extundo.com>
10103
10104         * modules/gc-md5, modules/gc-hmac-md5: New files.
10105
10106         * modules/gc (Files): Remove md5, memxor and hmac files.
10107
10108 2005-10-12  Simon Josefsson  <jas@extundo.com>
10109
10110         * m4/gc-pbkdf2-sha1.m4: New file.
10111
10112         * m4/gc-hmac-sha1.m4: New file.
10113
10114         * m4/gc-sha1: New file.
10115
10116         * m4/hmac-sha1.m4: New file.
10117
10118 2005-10-12  Simon Josefsson  <jas@extundo.com>
10119
10120         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
10121
10122         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
10123
10124 2005-10-12  Simon Josefsson  <jas@extundo.com>
10125
10126         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
10127         suggested by Bruno Haible <bruno@clisp.org>.
10128
10129 2005-10-12  Simon Josefsson  <jas@extundo.com>
10130
10131         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
10132
10133 2005-10-12  Simon Josefsson  <jas@extundo.com>
10134
10135         * lib/gc-pbkdf2-sha1.c: New file.
10136
10137         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
10138
10139 2005-10-12  Simon Josefsson  <jas@extundo.com>
10140
10141         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
10142
10143         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
10144
10145 2005-10-12  Simon Josefsson  <jas@extundo.com>
10146
10147         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
10148         GC_USE_HMAC_MD5, respectively.
10149
10150         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
10151         (gc_md5): Fix typo.
10152
10153         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
10154
10155         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
10156
10157         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
10158
10159 2005-10-12  Bruno Haible  <bruno@clisp.org>
10160
10161         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
10162         Reported by Stepan Kasal <kasal@ucw.cz>.
10163
10164 2005-10-11  Simon Josefsson  <jas@extundo.com>
10165
10166         * tests/test-crc.c: New file.
10167
10168         * modules/crc, modules/crc-tests: New files.
10169
10170 2005-10-11  Simon Josefsson  <jas@extundo.com>
10171
10172         * m4/crc.m4: New file.
10173
10174 2005-10-11  Simon Josefsson  <jas@extundo.com>
10175
10176         * lib/gc.h: Add gc_hash and gc_hash_buffer.
10177
10178         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
10179
10180         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
10181
10182 2005-10-11  Simon Josefsson  <jas@extundo.com>
10183
10184         * lib/crc.h, lib/crc.c: New files.
10185
10186         * lib/gc.h (gc_hash_buffer): Add doc.
10187
10188 2005-10-11  Bruno Haible  <bruno@clisp.org>
10189
10190         * modules/c-strcasestr: New file.
10191         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
10192
10193 2005-10-11  Bruno Haible  <bruno@clisp.org>
10194
10195         * modules/c-strcase: New file.
10196         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
10197
10198 2005-10-11  Bruno Haible  <bruno@clisp.org>
10199
10200         * lib/strcasecmp.c: Include limits.h.
10201         (strcasecmp): Avoid integer overflow on exotic platforms.
10202         * lib/strncasecmp.c: Include limits.h.
10203         (strncasecmp): Avoid integer overflow on exotic platforms.
10204         Reported by Paul Eggert.
10205
10206 2005-10-11  Bruno Haible  <bruno@clisp.org>
10207
10208         * lib/c-strcasestr.h: New file, from GNU gettext.
10209         * lib/c-strcasestr.c: New file, from GNU gettext.
10210
10211 2005-10-11  Bruno Haible  <bruno@clisp.org>
10212
10213         * lib/c-strcase.h: New file, from GNU gettext.
10214         * lib/c-strcasecmp.c: New file, from GNU gettext.
10215         * lib/c-strncasecmp.c: New file, from GNU gettext.
10216
10217 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
10218
10219         * modules/mempcpy (License): GPL -> LGPL.
10220         * modules/strchrnul (License): Likewise.
10221         * modules/sysexits (License): Likewise.
10222
10223 2005-10-08  Simon Josefsson  <jas@extundo.com>
10224
10225         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
10226
10227 2005-10-07  Simon Josefsson  <jas@extundo.com>
10228
10229         * m4/memxor.m4: Remove gl_C_RESTRICT call.
10230
10231 2005-10-06  Simon Josefsson  <jas@extundo.com>
10232
10233         * tests/test-hmac-md5.c: New file.
10234
10235         * modules/hmac-md5-tests: New file.
10236
10237         * modules/hmac-md5: New file.
10238
10239 2005-10-06  Simon Josefsson  <jas@extundo.com>
10240
10241         * m4/hmac-md5.m4: New file.
10242
10243         * m4/memxor.m4: Require gl_C_RESTRICT.
10244
10245 2005-10-06  Simon Josefsson  <jas@extundo.com>
10246
10247         * lib/memxor.c (memxor): Avoid casts and warnings.
10248
10249 2005-10-06  Simon Josefsson  <jas@extundo.com>
10250
10251         * lib/hmac-md5.c: New file.
10252
10253         * lib/hmac.h: New file.
10254
10255 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
10256
10257         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
10258         promotes to int, not unsigned int, to catch the AIX 5.3
10259         compiler bug.
10260
10261 2005-10-05  Simon Josefsson  <jas@extundo.com>
10262
10263         * modules/memxor: New file.
10264
10265         * modules/iconv (Files): Move config.rpath to havelib, it is used
10266         there.
10267
10268         * modules/havelib (Files): Add config.rpath.
10269
10270 2005-10-05  Simon Josefsson  <jas@extundo.com>
10271
10272         * m4/memxor.m4: New file.
10273
10274 2005-10-05  Simon Josefsson  <jas@extundo.com>
10275
10276         * lib/memxor.c (memxor): Fix compiler error.
10277
10278         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
10279         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
10280
10281         * lib/memxor.h, lib/memxor.c: New files.
10282
10283         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
10284         we assume all systems have it, suggested by Jim Meyering
10285         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
10286         any systems lack sys/socket.h; mingw32 is known to lack it, but we
10287         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
10288         same reasons.
10289
10290 2005-10-05  Simon Josefsson  <jas@extundo.com>
10291
10292         * config/srclist.txt: Add glibc bug 1423 for md5.h.
10293
10294 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
10295
10296         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
10297         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
10298         needed, since the source code now assumes these .h files.
10299
10300 2005-10-05  Derek Price  <derek@ximbiot.com>
10301
10302         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
10303
10304 2005-10-05  Bruno Haible  <bruno@clisp.org>
10305
10306         * modules/stdint (License): Change to LGPL.
10307
10308 2005-10-04  Simon Josefsson  <jas@extundo.com>
10309
10310         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
10311         D. Baushke" <mdb@gnu.org>.
10312
10313 2005-10-04  Bruno Haible  <bruno@clisp.org>
10314
10315         * lib/verify.h (verify_true): Provide alternative definition for C++.
10316
10317 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
10318
10319         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
10320         (SSIZE_MAX): New macro, if not already defined.
10321         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
10322         than 2 GiB.
10323
10324 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
10325
10326         Sync from coreutils.
10327         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
10328         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
10329         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
10330         ULLONG_MAX doesn't work with 2.7.2.1.
10331
10332 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
10333
10334         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
10335         From Ben Pfaff.
10336
10337         * modules/exclude (Depends-on): Depend on verify.
10338         * modules/strtoimax (Depends-on): Likewise.
10339         * modules/utimecmp (Depends-on): Likewise.
10340
10341 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
10342
10343         * lib/exclude.c: Include verify.h.
10344         (verify): Remove.  All callers changed to use verify.h's version.
10345         * lib/strtoimax.c: Likewise.
10346         * lib/utimecmp.c: Likewis.e
10347
10348         Sync from coreutils.
10349         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
10350         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
10351         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
10352         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
10353         bother returning ENOSYS if settimeofday or stime fails; just let
10354         them return whatever errno they want to return.
10355         * lib/utimens.c: Include unistd.h, for dup2.
10356         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
10357         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
10358
10359 2005-10-02  Jim Meyering  <jim@meyering.net>
10360
10361         Sync from coreutils.
10362         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
10363         from glibc-2.2.5 that fails for read-only files.
10364
10365 2005-10-02  Jim Meyering  <jim@meyering.net>
10366
10367         Sync from coreutils.
10368         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
10369         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
10370         `#if HAVE_CONFIG_H'.
10371         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
10372         Remove AT_FDCWD test.
10373         Do not consume the fd unless successful.
10374         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
10375         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
10376         block, so that we don't even try to compile it if settimeofday is
10377         available.  This works around a compilation failure on OSF1 V5.1,
10378         due to stime requiring a `long int*' while tv_sec is `int'.
10379
10380 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
10381
10382         Sync from coreutils.
10383         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
10384         against `yes', rather than just testing for nonempty.
10385
10386 2005-10-01  Simon Josefsson  <jas@extundo.com>
10387
10388         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
10389         and Darwin.
10390
10391         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
10392         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
10393         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
10394         freeaddrinfo and gai_strerror are declared by the POSIX headers.
10395         Check if struct addrinfo is declared.
10396
10397 2005-10-01  Simon Josefsson  <jas@extundo.com>
10398
10399         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
10400         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
10401         AI_* and EAI_* definitions.  Protect function declarations.
10402
10403 2005-10-01  Jim Meyering  <jim@meyering.net>
10404
10405         Sync from coreutils.
10406
10407         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
10408         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
10409         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
10410         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
10411         in the inet and nsl libraries.  Required on Solaris 5.7.
10412
10413 2005-10-01  Jim Meyering  <jim@meyering.net>
10414
10415         Sync from coreutils.
10416         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
10417         in the inet and nsl libraries.  Required on Solaris 5.7.
10418
10419 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
10420
10421         * lib/getdelim.c (getdelim): Remove unused variables.
10422
10423 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
10424
10425         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
10426         so that the code works even with ancient cpp.  Portability problem
10427         with GCC 2.7.2.1 reported by Thomas M.Ott.
10428
10429 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
10430
10431         * modules/regex (Depends-on): Add strcase.
10432
10433         * modules/gethostname (Licence): Change from GPL to LGPL, since
10434         gethostname.c is a trivial implementation of a standard library
10435         function.
10436         * modules/poll (License): Change from GPL to LGPL, since it's
10437         derived from LGPL code.
10438
10439 2005-09-27  Jim Meyering  <jim@meyering.net>
10440
10441         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
10442         HAVE_CONFIG_H.
10443
10444         * lib/intprops.h (signed_type_or_expr__): Define.
10445         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
10446         for unsigned types.
10447
10448 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
10449
10450         * lib/verify.h (verify_expr): Remove, replacing with:
10451         (verify_true): New macro that returns true instead of void.
10452         (verify_type__): Remove.
10453         (verify): Use verify_true rather than verify_type__.
10454
10455 2005-09-26  Bruno Haible  <bruno@clisp.org>
10456
10457         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
10458         is necessary.
10459         (lib_SOURCES): Remove mbchar.c.
10460         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
10461         (Files): Add m4/mbrtowc.m4.
10462         * modules/mbiter: Likewise.
10463         * modules/mbuiter: Likewise.
10464
10465 2005-09-26  Bruno Haible  <bruno@clisp.org>
10466
10467         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
10468         compile mbchar.c if they are not both present.
10469         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
10470         * m4/mbiter.m4 (gl_MBITER): Likewise.
10471         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
10472         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
10473         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
10474
10475 2005-09-25  Jim Meyering  <jim@meyering.net>
10476
10477         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
10478         also uses socklen_t.
10479
10480 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
10481
10482         * lib/utimens.c (ENOSYS): Define if not already defined.
10483         (futimens): Support having a null PATH if the file descriptor
10484         is nonnegative.
10485
10486         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
10487         Remove.
10488         (__attribute): Define to empty unless GCC 3.1 or later.
10489         This works around a core dump on OpenBSD 3.4, which has GCC
10490         2.95.3, which dumps core when given __attribute__(()).  It also
10491         simplifies other tests, since we really don't want to bother with
10492         worrying about which ancient version of GCC supported what.
10493         Original problem reported by Yoann Vandoorselaere, with part of
10494         the fix suggested by Derek Price.
10495
10496 2005-09-24  Jim Meyering  <jim@meyering.net>
10497
10498         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
10499         so we can once again use a positive bitfield width of 1 -- now we
10500         don't have to explain why we were using a bitfield width of 2.
10501
10502 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
10503
10504         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
10505         and similarly for the other external symbols.  Problem reported
10506         by James Gallager.
10507
10508         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
10509         bug reported by Jim Meyering.
10510
10511         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
10512         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
10513         not needed, since socklen is a prerequisite module.
10514
10515 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
10516
10517         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
10518         Problem reported by Eric Blake.
10519         (getaddrinfo): Initialize se so that it's not garbage.
10520         Redo internal storage allocation so that it doesn't make unportable
10521         assumptions about alignment.
10522         Fix a memory leak.
10523
10524         * lib/utimens.c (futimens): Use futimesat if available.
10525         Prefer it to futimes since it doesn't have the futimes bug.
10526
10527         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
10528         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
10529         Instead, declare a function that returns a pointer to an array,
10530         and use verify_type__ to declare the size of the array.
10531         Problem and germ of a solution reported by Bruno Haible.
10532         (verify_type__): Use 2, not 1, for bitfield size, to avoid
10533         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
10534
10535 2005-09-23  Jim Meyering  <jim@meyering.net>
10536
10537         Sync from coreutils.
10538         Correct build failure (socklen_t not defined) on at least
10539         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
10540         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
10541
10542 2005-09-23  Jim Meyering  <jim@meyering.net>
10543
10544         * modules/getaddrinfo (Depends-on): Add socklen.
10545
10546 2005-09-23  Bruno Haible  <bruno@clisp.org>
10547
10548         * tests/test-verify.c: New file.
10549
10550 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
10551
10552         Sync from coreutils.
10553
10554         * modules/argmatch (Depends-on): Add verify.
10555         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
10556         unistd-safer.
10557         * modules/save-cwd (Depends-on): Likewise.
10558
10559         * modules/openat (Files): Add lib/openat-die.c.
10560         (Depends-on): Remove error, exitfail.
10561         Add dirname.
10562
10563         * modules/verify: New file.
10564         * MODULES.html.sh (Diagnostics <assert.h>): New section,
10565         with "verify" module.
10566
10567 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
10568
10569         Sync from coreutils.
10570
10571         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
10572         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
10573         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
10574         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
10575         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
10576         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
10577         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
10578         Don't bother checking for string.h, stdlib.h, unistd.h.
10579         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
10580         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
10581         module's job.
10582         * m4/jm-macros.m4 (gl_MACROS): Likewise.
10583         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
10584
10585         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
10586         (gl_GETDATE): Use it.
10587
10588         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
10589
10590 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
10591
10592         Sync from coreutils.
10593
10594         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
10595         stat-time.h.
10596         * lib/argmatch.h: Include verify.h
10597         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
10598         (ARGMATCH_ASSERT): Remove; unused.
10599         * lib/canonicalize.c: Assume STDC_HEADERS.
10600         * lib/exclude.c: Include "strcase.h".
10601         * lib/regex_internal.h [!defined _LIBC]: Likewise.
10602         * lib/getusershell.c: Include stdio--.h rather than stdio.h
10603         and stdio-safer.h.
10604         (getusershell): Call fopen, not fopen_safer.
10605         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
10606         Do not include unistd-safer.h.
10607         (save_cwd): Don't call fd_safer; no longer needed
10608         now that we include fcntl--.h.
10609
10610         * lib/getdate.y (relative_time): New type.
10611         (RELATIVE_TIME_0): New constant.
10612         (parser_control): Use relative_time instead of doing it ourselves.
10613         (%union): Add new relative_time rel member.
10614         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
10615         Now typeless.
10616         (relunit, relunit_snumber): Now of type rel.
10617         (zone, rel, relunit, get_date): Adjust to above changes.
10618
10619         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
10620         Do not include unistd-safer.h.
10621         (getloadavg): Don't call fd_safer; no longer needed
10622         now that we include fcntl--.h.
10623
10624         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
10625         (make_dir_parents): Treat ENOSYS like EEXIST.
10626
10627         Improve quality of diagnostics on restore_cwd failure.
10628         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
10629         (make_dir_parents): Last arg is now int * (for errno), not bool *.
10630         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
10631         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
10632         each time through the loop.  Do not diagnose restore_cwd failure;
10633         that is the caller's job (and perhaps the caller does not care).
10634
10635         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
10636         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
10637         If the file already exists but is not a directory, don't bother
10638         to try to make its parents.
10639         Close potential file descriptor leak if we can't chdir("/") (!).
10640         Don't always return true if chdir($PWD) fails; return true only
10641         if the requested action was done successfully (except for the
10642         chdir($PWD)).
10643         Don't log final directory unless we actually made it.
10644         Refactor to avoid duplicate code to fix up permissions.
10645         Don't attempt to fix up parent permissions if chdir($PWD) fails.
10646
10647         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
10648         to make it a bit faster and (I hope) clearer.
10649         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
10650         Fix bug in formats like %2N.
10651
10652         * lib/verify.h: New file.
10653
10654 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
10655
10656         Sync from coreutils.
10657         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
10658
10659 2005-09-22  Jim Meyering  <jim@meyering.net>
10660
10661         Sync from coreutils.
10662
10663         * m4/lstat.m4 (gl_FUNC_LSTAT):
10664         Use AC_LIBSOURCES to require lstat.c and lstat.h.
10665         Remove obsolete comment.
10666         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
10667         * m4/xstrtod.m4: Likewise.
10668
10669         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
10670
10671 2005-09-22  Jim Meyering  <jim@meyering.net>
10672
10673         Sync from coreutils.
10674
10675         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
10676
10677         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
10678         the .tm_year member, since otherwise gcc-4.0 would now warn about
10679         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
10680
10681         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
10682         order to avoid an unsuppressible warning from gcc on 64-bit systems.
10683
10684         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
10685         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
10686         when run in a time zone for which daylight savings time is in effect
10687         for the starting date.
10688
10689         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
10690         stop us from restricting permissions of just-created absolute-named
10691         directories.
10692         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
10693         to restore initial working directory.
10694         * lib/mkdir-p.c (make_dir_parents): New parameter:
10695         different_working_dir, to tell caller if/when we change the working
10696         directory and are unable to return to the initial one.
10697         * lib/mkdir-p.h (make_dir_parents): Update prototype.
10698         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
10699         `return false'.  This fixes a bug introduced on 2004-07-30.
10700
10701         * lib/openat.c (fdopendir): Be sure to close the supplied
10702         file descriptor before returning.  This makes our replacement
10703         implementation a little closer to Solaris's, where fdopendir
10704         ties the file descriptor to the returned DIR* pointer.
10705         * lib/openat.c (unlinkat): New function.
10706         * lib/openat.h (unlinkat): Add prototype.
10707         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
10708         (openat_restore_fail): Rename from openat_restore_die.
10709         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
10710
10711         Provide an alternative to exiting immediately upon save_cwd or
10712         restore_cwd failure.  Now, an application can arrange e.g.,
10713         to perform a longjump in that case.
10714         * lib/openat.c: Include dirname.h.
10715         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
10716         (rpl_openat, fdopendir, fstatat): Call openat_save_die
10717         and openat_restore_die rather than calling error directly.
10718         Don't include "error.h" or "exitfail.h"; they're no longer needed.
10719
10720         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
10721         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
10722         define.
10723
10724         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
10725         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
10726                             int utc, int nanoseconds);
10727         Background:
10728         date should not have to allocate a megabyte of virtual memory to
10729         handle a format argument like +%1048575T.  When implemented with
10730         strftime, it must allocate such a buffer, use strftime to fill it
10731         in, print it, then free it.
10732         With fprintftime, it simply prints everything and exits.
10733         With no need for memory allocation, that's one fewer way to fail.
10734         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
10735         optional field width, not before, so we accept %9:z, not %:9z.
10736         (my_strftime): Be sure to use L_('x') for literals.
10737
10738         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
10739         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
10740         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
10741         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
10742         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
10743         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
10744         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
10745         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
10746         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
10747         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
10748         * lib/xgethostname.c, lib/xreadlink.c:
10749         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
10750
10751         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
10752         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
10753         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
10754         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
10755         and don't include <sys/file.h>).
10756
10757 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
10758
10759         Sync from coreutils.
10760
10761         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
10762         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
10763         [!LDAV_DONE]: Avoid unused variable warning.
10764
10765 2005-09-21  Bruno Haible  <bruno@clisp.org>
10766
10767         * lib/unicodeio.h (unicode_to_mb): New declaration.
10768
10769 2005-09-20  Derek Price  <derek@ximbiot.com>
10770
10771         * lib/getaddrinfo.c: Don't include <netdb.h> included from
10772         getaddrinfo.h.
10773
10774 2005-09-20  Bruno Haible  <bruno@clisp.org>
10775
10776         * gnulib-tool: Remove trailing slashes from the values specified for
10777         --source-base, --m4-base, --tests-base, --aux-dir.
10778         Suggested by Simon Josefsson <jas@extundo.com>.
10779
10780 2005-09-20  Bruno Haible  <bruno@clisp.org>
10781
10782         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
10783         func_modules_to_filelist, func_import, func_create_testdir): Make all
10784         sorting results locale-independent, so that gnulib-cache.m4 doesn't
10785         change when gnulib-tool is invoked in a different locale.
10786
10787 2005-09-19  Simon Josefsson  <jas@extundo.com>
10788
10789         * m4/socklen.m4: Fix typo.
10790
10791 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10792
10793         Use a consistent style for including <config.h>.
10794         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
10795         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
10796         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
10797         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
10798         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
10799         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
10800         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
10801         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
10802         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
10803         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
10804         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
10805         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
10806         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
10807         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
10808         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
10809         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
10810         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
10811         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
10812         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
10813         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
10814         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
10815         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
10816         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
10817         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
10818         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
10819         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
10820         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
10821         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
10822         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
10823         lib/xstrtoumax.c, lib/yesno.c:
10824         Standardize inclusion of config.h.
10825         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
10826         lib/inttostr.h:  Removed inclusion of config.h from header files.
10827         * lib/inttostr.c:  Adjusted in-tree users.
10828         * lib/timespec.h: Remove superfluous warning to include config.h.
10829         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
10830         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
10831         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
10832         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
10833         config.h with HAVE_CONFIG_H.
10834
10835 2005-09-19  Jim Meyering  <jim@meyering.net>
10836
10837         * modules/pathmax (License): Change to LGPL.
10838
10839 2005-09-19  Derek Price  <derek@ximbiot.com>
10840
10841         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
10842
10843 2005-09-19  Bruno Haible  <bruno@clisp.org>
10844
10845         * gnulib-tool (import): Provide default for --tests-base.
10846
10847 2005-09-19  Bruno Haible  <bruno@clisp.org>
10848
10849         * doc/quote.texi: New file, extracted from gnulib.texi.
10850         * doc/ctime.texi: New file, extracted from gnulib.texi.
10851         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
10852         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
10853         * doc/gnulib.texi: Include them.
10854
10855 2005-09-18  Bruno Haible  <bruno@clisp.org>
10856
10857         Portability fix.
10858         * gnulib-tool (func_readlink): New function.
10859         (func_ln_if_changed): Use it.
10860
10861 2005-09-18  Bruno Haible  <bruno@clisp.org>
10862
10863         * gnulib-tool: Support --with-tests also with --import.
10864         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
10865         (func_import): Use variables $testsbase and $inctests. Emit a
10866         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
10867         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
10868         SUBDIRS += $testsdir.
10869         (func_create_testdir): Update.
10870
10871 2005-09-18  Bruno Haible  <bruno@clisp.org>
10872
10873         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
10874         instead of $dry_run.
10875         (func_cp_if_changed, func_mv_if_changed): Remove functions.
10876         (func_ln_if_changed): Don't handle dry-run here.
10877         (func_import): In dry-run mode, detect more precisely which actions
10878         would be performed, and don't use "...ing" verbs.
10879
10880 2005-09-18  Bruno Haible  <bruno@clisp.org>
10881
10882         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
10883         (func_import): Use join on two temporary files instead of three nested
10884         loops, in order to determine which files are new or old.
10885
10886 2005-09-18  Bruno Haible  <bruno@clisp.org>
10887
10888         * gnulib-tool (func_import): Comment out code that spits out the
10889         new files with --dry-run.
10890
10891 2005-09-18  Bruno Haible  <bruno@clisp.org>
10892
10893         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
10894
10895 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
10896
10897         * lib/stat-time.h: New file.
10898         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
10899         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
10900         in a different way.
10901         (timespec_cmp): New function.
10902         * lib/utimecmp.c: Include stat-time.h.
10903         (SYSCALL_RESOLUTION): Depend on whether various struct stat
10904         members exist, not on the obsolescent ST_MTIM_NSEC.
10905         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
10906
10907 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
10908
10909         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
10910
10911 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
10912
10913         * MODULES.html.sh (File system functions): Add stat-time.
10914         * modules/stat-time: New file.
10915         * modules/timespec (Files): Remove m4/st_mtim.m4; this
10916         is now done in a different way, by the stat-time module.
10917         * modules/utimecmp (Depends-on): Add stat-time.
10918
10919 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
10920
10921         * m4/st_mtim.m4: Remove.  Superseded by...
10922         * m4/stat-time.m4: New file.
10923         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
10924         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
10925
10926 2005-09-15  Derek Price  <derek@ximbiot.com>
10927
10928         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
10929
10930 2005-09-15  Derek Price  <derek@ximbiot.com>
10931
10932         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
10933         * lib/regex_internal.c: Ditto, using this...
10934         (__GNUC_PREREQ): ...new macro.
10935         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
10936         using...
10937         (__GNUC_PREREQ): ...this new macro.
10938
10939         * lib/strstr.h: Include string.h. Define strstr as a macro here.
10940
10941 2005-09-15  Derek Price  <derek@ximbiot.com>
10942             Paul Eggert  <eggert@cs.ucla.edu>
10943
10944         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
10945         changes, consolidating in...
10946         * lib/regex_internal.h: ...this file.
10947
10948 2005-09-13  Jim Meyering  <jim@meyering.net>
10949
10950         * lib/canon-host.c: Filter through gnu indent and reword comments
10951         slightly.
10952         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
10953
10954 2005-09-13  Derek Price  <derek@ximbiot.com>
10955
10956         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
10957         failure.
10958         Reported by Jim Meyering  <jim@meyering.net>.
10959
10960 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
10961
10962         * lib/base64.c: Typo.
10963         (base64_encode): Put b64str in initialized data section.
10964
10965 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
10966
10967         Merge glibc and coreutils changes into gnulib, plus a few
10968         extra fixes.
10969         * lib/md5.c: Use #error rather than a string.
10970         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
10971         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
10972         (__attribute__): Define to empty for non recent-GCC.
10973         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
10974         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
10975         Renamed from their non-__ counterparts, with new macros replacing
10976         them if not _LIBC.  Add __THROW attribute.
10977         (rol): Remove.
10978         (struct md5_ctx): Align buffer if using GCC.
10979         * lib/sha1.h (struct sha1_ctx): Likewise.
10980         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
10981         The old name was backwards.
10982         (NOTSWAP): Remove; not used.
10983         (rol): New macro, moved here from md5.h.
10984         (sha1_process_block): Remove a FIXME that doesn't make sense.
10985
10986 2005-09-12  Derek Price  <derek@ximbiot.com>
10987
10988         Return usable errors from canon-host.
10989         * lib/canon-host.h: New file.
10990         * lib/canon-host.c (canon_host): Wrap...
10991         (canon_host_r): ...this new function, which now relies exclusively on
10992         getaddrinfo.
10993         (ch_strerror): New function.
10994         (last_cherror): New global.
10995         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
10996         interface.
10997         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
10998         void *.
10999         (freeaddrinfo): Free ai->ai_canonname when set.
11000
11001 2005-09-12  Derek Price  <derek@ximbiot.com>
11002
11003         Make canon-host require getaddrinfo.
11004         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
11005         AC_LIBSOURCE canon-host.h.  Call...
11006         (gl_PREREQ_CANON_HOST): ...this new function, which requires
11007         gl_GETADDRINFO.
11008         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
11009
11010 2005-09-12  Derek Price  <derek@ximbiot.com>
11011
11012         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
11013         LGPL.
11014         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
11015
11016 2005-09-12  Derek Price  <derek@ximbiot.com>
11017
11018         * lib/gai_strerror.c: Include config.h when available.  Include
11019         getaddrinfo.h before other headers to test interface.
11020         Reported by Larry Jones <lawrence.jones@ugs.com>.
11021
11022 2005-09-12  Derek Price  <derek@ximbiot.com>
11023             Paul Eggert  <eggert@cs.ucla.edu>
11024
11025         * modules/glob (Files): Add glob-libc.h.
11026
11027 2005-09-12  Derek Price  <derek@ximbiot.com>
11028             Paul Eggert  <eggert@cs.ucla.edu>
11029
11030         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
11031         glob_.h, glob-libc.h.
11032         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
11033
11034 2005-09-12  Derek Price  <derek@ximbiot.com>
11035             Paul Eggert  <eggert@cs.ucla.edu>
11036
11037         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
11038         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
11039         protecting things that should be done only in gnulib contexts.
11040         * lib/glob_.h: New file, containing only the glob things needed for
11041         gnulib.
11042         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
11043         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
11044         (glob, globfree, glob_pattern_p): Now defined simply in terms of
11045         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
11046         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
11047         and to respect the namespace rules better.
11048
11049 2005-09-08  Simon Josefsson  <jas@extundo.com>
11050
11051         * modules/socklen: New file.
11052
11053 2005-09-08  Simon Josefsson  <jas@extundo.com>
11054
11055         * m4/socklen.m4: New file.
11056
11057 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
11058
11059         * modules/utimens (Files): Add m4/utimbuf.m4, since
11060         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
11061         Reported by Sergey Poznyakoff.
11062
11063 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
11064
11065         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
11066         definitions, since that's the preferred style in glibc.
11067         Fix a minor spacing issue, and update copyright notice to match
11068         glibc's.
11069
11070 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
11071
11072         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
11073
11074 2005-09-06  Simon Josefsson  <jas@extundo.com>
11075
11076         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
11077         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
11078
11079 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
11080
11081         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
11082         warning.
11083
11084 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
11085
11086         * config/srclist.txt: Add glibc bug 1302.
11087
11088 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
11089
11090         Change bitset word type from unsigned int to unsigned long int,
11091         as this has better performance on typical 64-bit hosts.
11092         Port bitset code to hosts with unusual word sizes.
11093         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
11094         (build_collating_symbol):
11095         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
11096         argument is a bitset.  This is merely a style issue, but it makes
11097         it clearer that an entire array is expected.
11098         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
11099         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
11100         Port to the case where bitset_word is not the same as unsigned int.
11101         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
11102         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
11103         Likewise.
11104         * lib/regexec.c (check_dst_limits_calc_pos_1,
11105         check_subexp_matching_top):
11106         (build_trtable, group_nodes_into_DFAstates):
11107         Likewise.
11108         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
11109         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
11110         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
11111         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
11112         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
11113         * lib/regcomp.c (optimize_subexps, lower_subexp):
11114         Work even if bitset_word has holes in its bitwise representation.
11115         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
11116         * lib/regexec.c (check_dst_limits_calc_pos_1,
11117         check_subexp_matching_top):
11118         Likewise.
11119         * lib/regex_internal.c (re_string_reconstruct):
11120         Don't assume UCHAR_MAX == 255.
11121         * lib/regex_internal.h (bitset_set_all): Likewise.
11122         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
11123         All uses changed.
11124         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
11125         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
11126         All uses changed.
11127         (BITSET_WORD_MAX): New macro.
11128         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
11129         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
11130         (bitset_empty, bitset_copy):
11131         Prefer sizeof (bitset) to multiplying it out ourselves.
11132         (bitset_not_merge): Remove; unused.
11133         (bitset_contain): Return bool, not unsigned int with one bit on.
11134         All callers changed.
11135         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
11136         alignment than re_node_set; do this by defining a new internal
11137         type struct dests_alloc and using it to allocate memory.
11138
11139 2005-09-05  Bruno Haible  <bruno@clisp.org>
11140
11141         * gnulib-tool (func_import): Fix comparison in handling of symbolic
11142         links.
11143
11144 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
11145
11146         * modules/size_max (Makefile.am): Add size_max.h
11147
11148 2005-09-04  Derek Price  <derek@ximbiot.com>
11149
11150         * gnulib-tool (func_import): Fix reversed $symbolic logic.
11151
11152 2005-09-03  Simon Josefsson  <jas@extundo.com>
11153
11154         * gnulib-tool: Fix typo.
11155
11156 2005-09-03  Simon Josefsson  <jas@extundo.com>
11157
11158         * config/srclist.txt: Add glibc bug 1293.
11159
11160 2005-09-03  Derek Price  <derek@ximbiot.com>
11161
11162         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
11163         From Larry Jones <lawrence.jones@ugs.com>.
11164
11165 2005-09-02  Simon Josefsson  <jas@extundo.com>
11166
11167         * modules/socklen: New file.
11168
11169 2005-09-02  Simon Josefsson  <jas@extundo.com>
11170
11171         * modules/havelib: New module.
11172
11173         * modules/gettext, modules/iconv, modules/lock, modules/readline:
11174         Use havelib.
11175
11176 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
11177
11178         Check for arithmetic overflow when calculating sizes, to prevent
11179         some buffer-overflow issues.  These patches are conservative, in the
11180         sense that when I couldn't determine whether an overflow was possible,
11181         I inserted a run-time check.
11182         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
11183         macros.
11184         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
11185         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
11186         (re_xnrealloc, re_x2nrealloc): New inline functions.
11187         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
11188         parse_bracket_exp):
11189         (build_equiv_class, build_charclass): Check for arithmetic overflow
11190         in size expression calculations.
11191         * lib/regex_internal.c (re_string_realloc_buffers):
11192         (build_wcs_upper_buffer, re_node_set_add_intersect):
11193         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
11194         (re_dfa_add_node, register_state): Likewise.
11195         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
11196         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
11197         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
11198         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
11199
11200 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
11201
11202         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
11203         m4/ulonglong.m4.  Problem reported by Martin Lambers.
11204
11205 2005-09-02  Bruno Haible  <bruno@clisp.org>
11206
11207         Support for lib vs. lib64 distinction on biarch platforms.
11208         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
11209         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
11210         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
11211
11212 2005-09-02  Bruno Haible  <bruno@clisp.org>
11213
11214         * gnulib-tool (import): In the other first-use case, provide defaults
11215         as well.
11216
11217 2005-09-02  Bruno Haible  <bruno@clisp.org>
11218
11219         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
11220         patches not yet found in the latest gettext release.
11221
11222 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
11223
11224         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
11225         to avoid a collision with bits/local_lim.h in glibc.
11226         All uses changed.  Problem reported by Dmitry V. Levin in
11227         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
11228
11229         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
11230         bugs in int versus size_t comparisons.
11231         (re_string_context_at): Fix bug where the code assumed that
11232         Idx is signed.
11233
11234         Use bool where appropriate.
11235         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
11236         All callers changed.
11237         (calc_eclosure_iter): Likewise, for ROOT arg.
11238         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
11239         (build_charclass_op): Likewise, for NON_MATCH arg.
11240         * lib/regex_internal.c (re_string_allocate, re_string_construct):
11241         (re_string_construct_common): Likewise, for ICASE arg.
11242         * lib/regexec.c (re_search_2_stub, re_search_stub):
11243         Likewise, for RET_LEN arg.
11244         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
11245         (set_regs): Likewise, for FL_BACKTRACK arg.
11246         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
11247         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
11248         (calc_eclosure_iter, parse_bracket_exp):
11249         Use bool for internal variables that are booleans.
11250         * lib/regexec.c (re_search_internal, check_matching,
11251         proceed_next_node):
11252         (set_regs, build_sifted_states, sift_states_bkref):
11253         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
11254         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
11255         (find_collation_sequence_value):
11256         Likewise.
11257         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
11258         (re_node_set_compare):
11259         Return bool, not int. All callers changed.
11260         * lib/regexec.c (check_halt_node_context, check_dst_limits):
11261         (build_trtable, check_node_accept): Likewise.
11262         * lib/regex_internal.h: Include stdbool.h.
11263
11264         Fix bugs uncovered when converting to bool.
11265         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
11266         failure instead of charging ahead blindly.
11267         * lib/regex_internal.c (register_state): Likewise.
11268         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
11269         for freeing internal storage.
11270         (group_nodes_into_DFA_states): Use unsigned int, not int, for
11271         bitset pieces used as boolean, to avoid undefined behavior
11272         on hosts that do int overflow checking.
11273
11274 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
11275
11276         * config/srclist.txt: Add glibc bugs 1285-1287.
11277
11278 2005-09-01  Jim Meyering  <jim@meyering.net>
11279
11280         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
11281         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
11282         Require gl_STAT_MACROS, too.
11283
11284 2005-09-01  Bruno Haible  <bruno@clisp.org>
11285
11286         * gnulib-tool (import): In the first-use case, provide defaults.
11287
11288 2005-09-01  Bruno Haible  <bruno@clisp.org>
11289
11290         * gnulib-tool (func_import): Remove the .tmp files.
11291
11292 2005-09-01  Bruno Haible  <bruno@clisp.org>
11293
11294         * gnulib-tool (func_import): Fix handling of symbolic links.
11295
11296 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
11297
11298         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
11299         old glibc regex code mishandles strings longer than 2**31 bytes.
11300         This patch fixes this when the regex code is used in gnulib
11301         (i.e., outside glibc).
11302
11303         This patch should not affect the use of the regex code inside
11304         glibc.  No doubt this problem also needs to be handled for glibc
11305         as well, but the result will be an incompatible change to the
11306         glibc ABI, and the old ABI will have to be supported too.  That
11307         can be the the subject for another patch.
11308
11309         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
11310         governing whether the rest of this patch is active.  By default,
11311         the macro is disabled and the patch has no effect.
11312         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
11313         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
11314         (struct re_pattern_buffer, re_search, re_search_2, re_match):
11315         (re_match_2, re_set_registers): Use the new types.
11316         * lib/regex_internal.h (Idx, re_hashval_t): New types.
11317         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
11318         New macros.
11319         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
11320         (re_string_context_at, bin_tree_t, re_dfastate_t):
11321         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
11322         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
11323         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
11324         (re_string_char_size_at, re_string_wchar_at):
11325         (re_string_elem_size_at):
11326         Use the new types and macros to port to 64-bit hosts.
11327         Use unsigned types for internal values, so that the code
11328         mostly works even for arrays larger than SSIZE_MAX.
11329         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
11330         (search_duplicated_node, calc_eclosure_iter, fetch_number):
11331         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
11332         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
11333         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
11334         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
11335         (calc_inveclosure, parse_dup_op, build_range_exp):
11336         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
11337         (fetch_number, create_token_tree, mark_opt_subexp):
11338         Likewise.
11339         * lib/regex_internal.c (re_string_construct_common,
11340         create_ci_newstate):
11341         (create_cd_newstate, re_string_allocate, re_string_construct):
11342         (re_string_realloc_buffers, build_wcs_upper_buffer):
11343         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
11344         (re_string_reconstruct, re_string_peek_byte_case):
11345         (re_string_fetch_byte_case, re_string_context_at):
11346         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
11347         (re_node_set_init_copy, re_node_set_add_intersect):
11348         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
11349         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
11350         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
11351         (re_acquire_state, re_acquire_state_context, register_state):
11352         Likewise.
11353         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
11354         search_cur_bkref_entry):
11355         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
11356         (re_search_internal, re_search_2_stub, re_search_stub)
11357         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
11358         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
11359         (update_cur_sifted_state, check_dst_limits):
11360         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
11361         (check_subexp_limits, sift_states_bkref, merge_state_array):
11362         (check_subexp_matching_top, get_subexp, get_subexp_sub):
11363         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
11364         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
11365         (expand_bkref_cache, check_node_accept_bytes):
11366         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
11367         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
11368         (acquire_init_state_context, check_halt_node_context):
11369         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
11370         (sift_states_backward, clean_state_log_if_needed):
11371         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
11372         (find_recover_state, transit_state_sb, transit_state_mb):
11373         (transit_state_bkref, build_trtable, match_ctx_clean):
11374         Likewise.
11375         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
11376         to work around an assumption that REG_MISSING is negative.
11377
11378         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
11379         (seek_collating_symbol_entry) [defined _LIBC]:
11380         (lookup_collation_sequence_value) [defined _LIBC]:
11381         (build_range_exp, build_collating_symbol) [defined _LIBC]:
11382         Use prototypes rather than old-style function definitions.
11383         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
11384         (transit_state_sb) [0]:
11385         (find_collation_sequence_value) [defined _LIBC]: Likewise.
11386
11387         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
11388         rm_eo.
11389
11390         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
11391         (optimize_subexps, lower_subexp):
11392         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
11393         since the signed shift might overflow.  Use 1u<<31 instead.
11394         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
11395         Likewise.
11396         * lib/regexec.c (check_dst_limits_calc_pos_1,
11397         check_subexp_matching_top): Likewise.
11398
11399         * lib/regcomp.c (optimize_subexps, lower_subexp):
11400         Use CHAR_BIT rather than 8, for clarity.
11401         * lib/regexec.c (check_dst_limits_calc_pos_1):
11402         (check_subexp_matching_top): Likewise.
11403         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
11404         have to worry about portability issues when shifting it left.
11405         Remove no-longer-needed test for table_size > 0.
11406         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
11407         in a word, as the resulting behavior is undefined.
11408         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
11409         in one case, a <= should have been an <, and in another case the
11410         whole test was missing.
11411         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
11412         the standard name CHAR_BIT.
11413         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
11414         this is not true on one's complement and signed-magnitude hosts.
11415
11416         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
11417         next_last_offset.
11418         (struct re_dfa_t): Remove unused member states_alloc.
11419         * lib/regcomp.c (init_dfa): Don't initialize unused members.
11420
11421 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
11422
11423         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
11424         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
11425         and large-file glibc and in 32-bit large-file Solaris.
11426
11427 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
11428
11429         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
11430         lengths fit in regoff_t; this isn't true if regoff_t is the same
11431         width as size_t.
11432         * lib/regex.c (re_search_internal): 5th arg is LAST_START
11433         (= START + RANGE) instead of RANGE.  This avoids overflow
11434         problems when regoff_t is the same width as size_t.
11435         All callers changed.
11436         (re_search_2_stub): Check for overflow when adding the
11437         sizes of the two strings.
11438         (re_search_stub): Check for overflow when adding START
11439         to RANGE; if it occurs, substitute the extreme value.
11440
11441 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
11442
11443         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
11444
11445 2005-08-31  Jim Meyering  <jim@meyering.net>
11446
11447         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
11448         a pointer-to-const.
11449         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
11450         (register_state): Likewise.
11451         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
11452         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
11453         (group_nodes_into_DFAstates): Likewise.
11454
11455 2005-08-31  Jim Meyering  <jim@meyering.net>
11456
11457         * check-module: Add a FIXME comment.
11458
11459 2005-08-31  Eric Blake  <ebb9@byu.net>
11460
11461         * modules/unistd-safer (Files): Add unistd--.h.
11462         * modules/stdio-safer (Files): Add stdio--.h.
11463
11464 2005-08-31  Derek Price  <derek@ximbiot.com>
11465
11466         * lib/getdelim.c (getdelim): Return EOF on EOF.
11467         Reported by Larry Jones <lawrence.jones@ugs.com>.
11468
11469 2005-08-31  Bruno Haible  <bruno@clisp.org>
11470
11471         Avoid unnecessary diffs in the generated lib/Makefile.am.
11472         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
11473         the generated files.
11474         (func_import): Don't set cmd.
11475
11476 2005-08-31  Bruno Haible  <bruno@clisp.org>
11477
11478         * lib/strstr.c: Include <stddef.h>, for NULL.
11479         * lib/strcasestr.c: Likewise.
11480         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
11481
11482 2005-08-31  Bruno Haible  <bruno@clisp.org>
11483
11484         * gnulib-tool: New option --macro-prefix.
11485         (func_import): Use macro_prefix.
11486         (import): Handle option --macro-prefix.
11487
11488 2005-08-31  Bruno Haible  <bruno@clisp.org>
11489
11490         * gnulib-tool (import): Rename most ac_* variables to cached_*.
11491         Also use new variables cached_lgpl, cached_libtool.
11492
11493 2005-08-31  Bruno Haible  <bruno@clisp.org>
11494
11495         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
11496         always instantiating them.
11497
11498 2005-08-31  Bruno Haible  <bruno@clisp.org>
11499
11500         * gnulib-tool (func_import): Read the previous cached settings
11501         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
11502         earlier added by gnulib but are now dropped. Warn when a gnulib file
11503         overwrites a non-gnulib file.
11504
11505 2005-08-31  Bruno Haible  <bruno@clisp.org>
11506
11507         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
11508         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
11509         projects that don't keep autogenerated files in CVS. Put into
11510         actioncmd only the specified modules, not the transitive closure.
11511
11512 2005-08-31  Bruno Haible  <bruno@clisp.org>
11513
11514         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
11515         Create directories that shall be filled.
11516         (import): Don't look for gl_* macros in configure.ac. Recurse across
11517         all directories containing a gnulib-cache.m4 files, if meaningful.
11518
11519 2005-08-31  Bruno Haible  <bruno@clisp.org>
11520
11521         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
11522         (import): Set seen_libtool when we see gl_LIBTOOL.
11523
11524 2005-08-31  Bruno Haible  <bruno@clisp.org>
11525
11526         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
11527         declaration macro definitions from generated gnulib.m4.
11528
11529 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
11530
11531         * lib/iconvme.h: Add prototype for iconv_alloc.
11532
11533 2005-08-29  Simon Josefsson  <jas@extundo.com>
11534
11535         * lib/iconvme.c: Fix errno.
11536
11537 2005-08-29  Bruno Haible  <bruno@clisp.org>
11538
11539         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
11540         that it works when the directory contains spaces.
11541
11542 2005-08-29  Bruno Haible  <bruno@clisp.org>
11543
11544         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
11545
11546 2005-08-29  Bruno Haible  <bruno@clisp.org>
11547
11548         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
11549         Emit more advice.
11550
11551 2005-08-29  Bruno Haible  <bruno@clisp.org>
11552         and Stepan Kasal  <kasal@ucw.cz>
11553
11554         * check-module: If more parameters are given, check each of them
11555         separately; add more exceptions, as noted by Jim Meyering.
11556         (check_module): New procedure.
11557         (%exempt_header): Now contains all exceptions.
11558
11559 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
11560
11561         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
11562
11563 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
11564
11565         * lib/iconvme.c: Split iconv_string into iconv_alloc.
11566
11567 2005-08-28  Bruno Haible  <bruno@clisp.org>
11568
11569         * m4/gnulib-tool.m4: New file.
11570
11571 2005-08-27  Jim Meyering  <jim@meyering.net>
11572
11573         * modules/unistd-safer (Files): Add pipe-safer.c.
11574         * modules/fcntl-safer (Files): Add creat-safer.c.
11575
11576 2005-08-27  Jim Meyering  <jim@meyering.net>
11577
11578         * m4/stdlib-safer.m4: New file.  From coreutils.
11579         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
11580         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
11581         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
11582         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
11583         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
11584
11585 2005-08-27  Jim Meyering  <jim@meyering.net>
11586
11587         * lib/fopen-safer.c: Merge minor changes from coreutils.
11588         * lib/dup-safer.c: Likewise.
11589         * lib/fd-safer.c: Likewise.
11590
11591         Merge from coreutils.
11592         * lib/stdio--.h: New file.
11593         * lib/stdlib--.h: New file.
11594         * lib/mkstemp-safer.c: New file.
11595
11596         GNU tar needs these.
11597         * lib/pipe-safer.c: New file.
11598         * lib/creat-safer.c: New file.
11599         * lib/fcntl--.h (creat): Define to creat_safer.
11600         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
11601         * lib/unistd--.h (pipe): Define to pipe_safer.
11602         * lib/unistd-safer.h: Declare pipe_safer.
11603
11604 2005-08-26  Simon Josefsson  <jas@extundo.com>
11605
11606         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
11607         Haible <bruno@clisp.org>.
11608
11609 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
11610
11611         * lib/regex_internal.h: Remove all references to
11612         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
11613         or better.
11614         (bitset_not, bitset_merge, bitset_not_merge):
11615         (bitset_mask, re_string_allocate, re_string_construct):
11616         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
11617         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
11618         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
11619         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
11620         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
11621         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
11622         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
11623         (re_acquire_state_context):
11624         Remove unnecessary forward decls.
11625         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
11626         Put __attribute at function definition,
11627         now that the function decl has been removed.
11628         * lib/regex_internal.c (re_string_peek_byte_case):
11629         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
11630         Likewise.
11631
11632 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
11633
11634         * m4/regex.m4: Add AC_PREREQ(2.50).
11635         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
11636
11637 2005-08-25  Simon Josefsson  <jas@extundo.com>
11638
11639         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
11640         __fsetlocking.
11641
11642 2005-08-25  Simon Josefsson  <jas@extundo.com>
11643
11644         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
11645         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
11646         GLIBC specific code.
11647
11648 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
11649
11650         Make regex safe for g++.  This fixes one real bug (an "err"
11651         that should have been "*err").  g++ problem reported by
11652         Sam Steingold.
11653         * lib/regex_internal.h (re_calloc): New macro, consistent with
11654         re_malloc etc.  All callers of calloc changed to use re_calloc.
11655         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
11656         not int.  All callers changed.
11657         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
11658         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
11659         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
11660         (find_recover_state): Change "err" to "*err"; this fixes what
11661         appears to be a real bug.
11662         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
11663         versus int.
11664
11665 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
11666
11667         * modules/regex (Depends-on): Add malloc, since the code
11668         assumes that !malloc(0) means failure.
11669
11670 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
11671
11672         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
11673
11674         alloca modernization/simplification for regex.
11675         * lib/regex.c: Remove portability cruft for alloca.  This no longer
11676         needs to be at the start of the file, and can be moved into
11677         regex_internal.h and simplified.
11678         * lib/regex_internal.h: Include <alloca.h>.
11679         (__libc_use_alloca) [!defined _LIBC]: New macro.
11680         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
11681         now works outside glibc.
11682
11683 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
11684
11685         * config/srclist.txt: Add glibc bugs 1241, 1245.
11686
11687 2005-08-25  Jim Meyering  <jim@meyering.net>
11688
11689         * lib/open-safer.c: Include <config.h>.
11690         Otherwise, we'd lose LARGEFILE support in any file using
11691         e.g. "fcntl--.h"
11692
11693 2005-08-25  Bruno Haible  <bruno@clisp.org>
11694
11695         * m4/minmax.m4: Require autoconf 2.52.
11696         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
11697         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
11698         alternatives of translit over the alphabet.
11699         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
11700
11701 2005-08-24  Simon Josefsson  <jas@extundo.com>
11702
11703         * tests/test-getpass.c: New file.
11704
11705 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
11706
11707         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
11708         for GNU regex features.
11709
11710 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
11711
11712         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
11713         * lib/regex.h (regerror): Likewise.
11714
11715         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
11716         requires this.  (The code never needed it.)
11717
11718         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
11719         All uses of recently-renamed identifiers changed to use the new,
11720         POSIX-compliant names.  The code will build and run just fine
11721         without these changes, but it's better to eat our own dog food
11722         and use the standard-conforming names.
11723
11724         * lib/regex.h: Fix a multitude of POSIX name space violations.
11725         These changes have an effect only for programs that define
11726         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
11727         do not change anything for programs compiled in the normal way.
11728         Also, there is no effect on the ABI.
11729
11730         (_REGEX_SOURCE): New macro.
11731         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
11732         defined and _GNU_SOURCE is not; this fixes a name space violation.
11733
11734         Rename the following macros to obey POSIX requirements.
11735         The old names are still visible as macros if _REGEX_SOURCE is defined.
11736         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
11737         RE_BACKSLASH_ESCAPE_IN_LISTS.
11738         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
11739         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
11740         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
11741         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
11742         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
11743         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
11744         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
11745         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
11746         (REG_INTERVALS): renamed from RE_INTERVALS.
11747         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
11748         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
11749         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
11750         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
11751         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
11752         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
11753         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
11754         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
11755         RE_UNMATCHED_RIGHT_PAREN_ORD.
11756         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
11757         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
11758         (REG_DEBUG): renamed from RE_DEBUG.
11759         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
11760         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
11761         unusual, since we can't clash with the POSIX REG_ICASE.
11762         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
11763         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
11764         (REG_NO_SUB): renamed from RE_NO_SUB.
11765         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
11766         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
11767         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
11768         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
11769         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
11770         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
11771         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
11772         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
11773         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
11774         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
11775         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
11776         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
11777         RE_SYNTAX_POSIX_MINIMAL_BASIC.
11778         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
11779         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
11780         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
11781         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
11782         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
11783         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
11784         (REG_FIXED): Renamed from REGS_FIXED.
11785         (REG_NREGS): Renamed from RE_NREGS.
11786
11787         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
11788         of other REG_* macros, since POSIX says the user is allowed to
11789         #undef these macros selectively.
11790
11791         (reg_errcode_t): Update comment stating what other tables need
11792         to be consistent.
11793
11794         Rename the following enum values to obey POSIX requirements.
11795         The old names are still visible as macros.
11796         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
11797         is not defined, since GNU is supposed to be a superset of POSIX as
11798         much as possible, and since we want reg_errcode_t to be a signed
11799         type for implementation consistency.
11800         (_REG_NOERROR): Renamed from REG_NOERROR.
11801         (_REG_NOMATCH): Renamed from REG_NOMATCH.
11802         (_REG_BADPAT): Renamed from REG_BADPAT.
11803         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
11804         (_REG_ECTYPE): Renamed from REG_ECTYPE.
11805         (_REG_EESCAPE): Renamed from REG_EESCAPE.
11806         (_REG_ESUBREG): Renamed from REG_ESUBREG.
11807         (_REG_EBRACK): Renamed from REG_EBRACK.
11808         (_REG_EPAREN): Renamed from REG_EPAREN.
11809         (_REG_EBRACE): Renamed from REG_EBRACE.
11810         (_REG_BADBR): Renamed from REG_BADBR.
11811         (_REG_ERANGE): Renamed from REG_ERANGE.
11812         (_REG_ESPACE): Renamed from REG_ESPACE.
11813         (_REG_BADRPT): Renamed from REG_BADRPT.
11814         (_REG_EEND): Renamed from REG_EEND.
11815         (_REG_ESIZE): Renamed from REG_ESIZE.
11816         (_REG_ERPAREN): Renamed from REG_ERPAREN.
11817         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
11818         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
11819         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
11820         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
11821
11822         (_REG_RE_NAME, _REG_RM_NAME): New macros.
11823         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
11824         changed.  But support the old name if the new one is not defined
11825         and if _REGEX_SOURCE.
11826
11827         Change the following member names in struct re_pattern_buffer.
11828         The old names are still supported if !_REGEX_SOURCE.
11829         The new names are always supported, regardless of _REGEX_SOURCE.
11830         (re_buffer): Renamed from buffer.
11831         (re_allocated): Renamed from allocated.
11832         (re_used): Renamed from used.
11833         (re_syntax): Renamed from syntax.
11834         (re_fastmap): Renamed from fastmap.
11835         (re_translate): Renamed from translate.
11836         (re_can_be_null): Renamed from can_be_null.
11837         (re_regs_allocated): Renamed from regs_allocated.
11838         (re_fastmap_accurate): Renamed from fastmap_accurate.
11839         (re_no_sub): Renamed from no_sub.
11840         (re_not_bol): Renamed from not_bol.
11841         (re_not_eol): Renamed from not_eol.
11842         (re_newline_anchor): Renamed from newline_anchor.
11843
11844         Change the following member names in struct re_registers.
11845         The old names are still supported if !_REGEX_SOURCE.
11846         The new names are always supported, regardless of _REGEX_SOURCE.
11847         (rm_num_regs): Renamed from num_regs.
11848         (rm_start): Renamed from start.
11849         (rm_end): Renamed from end.
11850
11851         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
11852         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
11853         Prepend __ to parameter names.
11854
11855         Undo yesterday's changes.
11856
11857 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
11858
11859         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
11860         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
11861         lib/regex.c.
11862
11863 2005-08-24  Jim Meyering  <jim@meyering.net>
11864
11865         Sync from coreutils.
11866         * m4/fcntl-safer.m4: New file.
11867
11868         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
11869         and object files for this module.
11870
11871 2005-08-24  Jim Meyering  <jim@meyering.net>
11872
11873         Sync from coreutils.
11874         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
11875
11876 2005-08-24  Jim Meyering  <jim@meyering.net>
11877
11878         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
11879         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
11880
11881 2005-08-24  Jim Meyering  <jim@meyering.net>
11882
11883         * modules/fcntl-safer: New module.
11884         * modules/fts (Depends-on): Add fcntl-safer.
11885         * MODULES.html.sh (File descriptor based Input/Output):
11886         Add fcntl-safer.
11887
11888 2005-08-24  Bruno Haible  <bruno@clisp.org>
11889
11890         Support for unit test modules.
11891         * modules/README: Mention tests modules.
11892         * modules/TEMPLATE-TESTS: New file.
11893         * gnulib-tool: New options --extract-tests-module, --with-tests and
11894         --tests-base (unused for the moment).
11895         (testsbase, inctests): New variables.
11896         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
11897         (func_verify_module): Exclude TEMPLATE-TESTS.
11898         (func_verify_nontests_module, func_verify_tests_module): New functions.
11899         (func_get_dependencies): Add implicit dependency for tests modules.
11900         (func_get_tests_module): New function.
11901         (func_modules_transitive_closure): When --with-tests was specified,
11902         include the unit tests as well, unless explicitly avoided.
11903         (func_emit_lib_Makefile_am): Ignore the tests modules here.
11904         (func_emit_tests_Makefile_am): New function.
11905         (func_create_testdir): When --with-tests was specified, emit a
11906         tests/ directory.
11907         * MODULES.html.sh (Future developments): Update.
11908
11909 2005-08-24  Bruno Haible  <bruno@clisp.org>
11910
11911         * modules/tls-tests: New file.
11912         * tests/test-tls.c: New file, from GNU gettext.
11913
11914 2005-08-24  Bruno Haible  <bruno@clisp.org>
11915
11916         * modules/lock-tests: New file.
11917         * tests/test-lock.c: New file, from GNU gettext.
11918
11919 2005-08-24  Bruno Haible  <bruno@clisp.org>
11920
11921         * lib/lock.h: Add multiple inclusion guard.
11922         * lib/tls.h: Add multiple inclusion guard.
11923
11924 2005-08-24  Bruno Haible  <bruno@clisp.org>
11925
11926         * gnulib-tool: Add support for the --aux-dir option to
11927         --create-testdir, --create-megatestdir, --test, --megatest.
11928         (func_create_testdir, func_create_megatestdir): Optionally emit a
11929         AC_CONFIG_AUX_DIR directive.
11930         (create-testdir, create-megatestdir, test, megatest): Provide a
11931         default value for $auxdir.
11932
11933 2005-08-24  Bruno Haible  <bruno@clisp.org>
11934
11935         * gnulib-tool (import): Use compound statement instead of subshell
11936         where possible.
11937
11938 2005-08-24  Bruno Haible  <bruno@clisp.org>
11939
11940         * gnulib-tool (import): Change --aux-dir default to "build-aux".
11941
11942 2005-08-24  Bruno Haible  <bruno@clisp.org>
11943
11944         * gnulib-tool (func_version): Update.
11945
11946 2005-08-24  Bruno Haible  <bruno@clisp.org>
11947
11948         * gnulib-tool (func_import, func_create_testdir,
11949         func_create_megatestdir): Quote all autoconf macro arguments.
11950
11951 2005-08-24  Bruno Haible  <bruno@clisp.org>
11952
11953         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
11954         option --force, because --force causes the aclocal.m4 of each
11955         subdirectory to be newer than the corresponding config.h.in.
11956
11957 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
11958
11959         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
11960         All contents moved to gl_REGEX.
11961         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
11962         assume that it does.
11963
11964 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
11965
11966         * lib/regex.h (REG_NOSYS)
11967         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
11968         Define, since POSIX requires it as of 2001.
11969         (_REG_ENOSYS)
11970         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
11971         New private symbol, used to keep the enum signed in all cases.
11972         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
11973         Youngman in
11974         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
11975
11976         * lib/regex_internal.c (re_string_skip_chars, register_state):
11977         (calc_state_hash):
11978         Remove forward decls; no longer needed now that we use prototypes.
11979         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
11980         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
11981         (clean_state_log_if_needed): Likewise.
11982
11983 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
11984
11985         * config/srclist.txt: Add glibc bugs 1231-1233.
11986
11987 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
11988
11989         Fix problems reported by Sam Steingold in
11990         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
11991         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
11992         assumed that reg_errcode_t is a signed type, which is not
11993         necessarily true if _XOPEN_SOURCE is not defined.
11994         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
11995         since some compilers warn about it otherwise.
11996
11997 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
11998
11999         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
12000         (init_word_char, create_initial_state, duplicate_node_closure):
12001         (fetch_token, peek_token_bracket, build_range_exp):
12002         (build_collating_symbol): Remove forward decls; no longer needed
12003         now that we use prototypes.
12004
12005         * lib/regcomp.c:
12006         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
12007         (re_compile_fastmap_iter, regcomp, regerror, regfree):
12008         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
12009         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
12010         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
12011         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
12012         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
12013         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
12014         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
12015         (build_range_exp, build_collating_symbol, parse_bracket_exp):
12016         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
12017         (build_charclass, build_charclass_op, fetch_number, create_tree):
12018         (create_token_tree, mark_opt_subexp, duplicate_tree):
12019         Use prototypes rather than old-style definitions.
12020
12021         * lib/regex_internal.c:
12022         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
12023         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
12024         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
12025         (re_string_reconstruct, re_string_peek_byte_case):
12026         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
12027         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
12028         (re_node_set_init_copy, re_node_set_add_intersect):
12029         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
12030         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
12031         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
12032         (re_acquire_state, re_acquire_state_context, register_state):
12033         (create_ci_newstate, create_cd_newstate, free_state):
12034         Likewise.
12035         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
12036         re_search_2):
12037         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
12038         (re_search_internal, prune_impossible_nodes):
12039         (acquire_init_state_context, check_matching, static):
12040         (check_halt_node_context, check_halt_state_context, proceed_next_node):
12041         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
12042         (update_regs, sift_states_backward, build_sifted_states):
12043         (clean_state_log_if_needed, merge_state_array):
12044         (update_cur_sifted_state, add_epsilon_src_nodes):
12045         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
12046         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
12047         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
12048         (find_recover_state, check_subexp_matching_top, transit_state_mb):
12049         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
12050         (check_arrival, check_arrival_add_next_nodes):
12051         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
12052         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
12053         (check_node_accept_bytes, check_node_accept, extend_buffers):
12054         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
12055         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
12056         (sift_ctx_init):
12057         Likewise.
12058
12059         * lib/regex_internal.h:
12060         (re_string_allocate, re_string_construct, re_string_reconstruct):
12061         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
12062         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
12063         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
12064         (re_string_context_at, re_string_peek_byte_case):
12065         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
12066         is defined, since we now use prototypes always.
12067
12068         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
12069         C89 or better.  All uses removed.
12070
12071 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
12072
12073         * config/srclist.txt: Add glibc bugs 1220-1227.
12074
12075 2005-08-20  Jim Meyering  <jim@meyering.net>
12076
12077         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
12078         of unused local, dfa.
12079
12080 2005-08-20  Bruno Haible  <bruno@clisp.org>
12081
12082         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
12083
12084 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
12085
12086         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
12087         (re_node_set_insert_last, re_dfa_add_node):
12088         Rename local variables to avoid GCC shadowing warnings.
12089
12090 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
12091
12092         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
12093         [defined lint]: Suppress bogus uninitialized-variable warnings.
12094
12095         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
12096         and let the caller return REG_ESPACE if out of space.  This
12097         removes an uninitialied-variable warning with GCC 4.0.1, and also
12098         avoids taking the address of a local variable.  All callers
12099         changed.
12100
12101 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
12102
12103         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
12104         $LIBCSRC/posix/regexec.c.
12105         Add glibc bug 1217 for regcomp.c.
12106
12107 2005-08-19  Jim Meyering  <jim@meyering.net>
12108
12109         * lib/regexec.c (proceed_next_node): Redo local variables to
12110         avoid GCC shadowing warnings.
12111
12112 2005-08-18  Bruno Haible  <bruno@clisp.org>
12113
12114         * lib/strstr.c (strstr): Fix return value in multibyte case.
12115         * lib/strcasestr.c (strcasestr): Likewise.
12116
12117 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
12118
12119         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
12120
12121 2005-08-17  Jim Meyering  <jim@meyering.net>
12122
12123         Make the %s format (seconds since the epoch) work for a negative
12124         number and when used with a zero-padded field width, e.g. %015s.
12125
12126         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
12127         label so that it precedes the code to set `digits'.  Otherwise,
12128         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
12129         print `00-22'.  Now, it prints `-0022', as it should.
12130
12131 2005-08-17  Bruno Haible  <bruno@clisp.org>
12132
12133         * modules/strstr (Files): Add m4/mbrtowc.m4.
12134         (Depends-on): Add mbuiter.
12135
12136 2005-08-17  Bruno Haible  <bruno@clisp.org>
12137
12138         * modules/strcasestr: New file.
12139         * MODULES.html.sh (String handling, based on ANSI C 89): Add
12140         strcasestr.
12141
12142 2005-08-17  Bruno Haible  <bruno@clisp.org>
12143
12144         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
12145
12146 2005-08-17  Bruno Haible  <bruno@clisp.org>
12147
12148         * modules/mbuiter: New file.
12149         * MODULES.html.sh (Extended multibyte and wide character utilities):
12150         Add mbuiter.
12151
12152 2005-08-17  Bruno Haible  <bruno@clisp.org>
12153
12154         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
12155         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
12156
12157 2005-08-17  Bruno Haible  <bruno@clisp.org>
12158
12159         * m4/strcasestr.m4: New file.
12160
12161 2005-08-17  Bruno Haible  <bruno@clisp.org>
12162
12163         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
12164         * lib/strstr.c: Completely rewritten, with multibyte locale support.
12165
12166 2005-08-17  Bruno Haible  <bruno@clisp.org>
12167
12168         * lib/strcasestr.h: New file.
12169         * lib/strcasestr.c: New file.
12170
12171 2005-08-17  Bruno Haible  <bruno@clisp.org>
12172
12173         * lib/strcasecmp.c: Use mbuiter.h.
12174
12175 2005-08-17  Bruno Haible  <bruno@clisp.org>
12176
12177         * lib/mbuiter.h: New file.
12178
12179 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
12180
12181         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
12182         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
12183         and gl_GETOPT are both invoked via different paths (as happens
12184         with GNU tar CVS because it uses both argp and getopt), the former
12185         wins.
12186
12187 2005-08-16  Bruno Haible  <bruno@clisp.org>
12188
12189         * modules/tls: New file.
12190         * MODULES.html.sh (Multithreading): Add tls.
12191
12192 2005-08-16  Bruno Haible  <bruno@clisp.org>
12193
12194         * modules/strnlen1: New file.
12195         * MODULES.html.sh (String handling): Add strnlen1.
12196
12197 2005-08-16  Bruno Haible  <bruno@clisp.org>
12198
12199         * modules/strcase (Files): Add m4/mbrtowc.m4.
12200         (Depends-on): Add strnlen1, mbchar.
12201
12202 2005-08-16  Bruno Haible  <bruno@clisp.org>
12203
12204         * modules/mbiter: New file.
12205         * MODULES.html.sh (Extended multibyte and wide character utilities):
12206         Add mbiter.
12207
12208 2005-08-16  Bruno Haible  <bruno@clisp.org>
12209
12210         * modules/mbfile: New file.
12211         * MODULES.html.sh (Extended multibyte and wide character utilities):
12212         Add mbfile.
12213
12214 2005-08-16  Bruno Haible  <bruno@clisp.org>
12215
12216         * modules/mbchar: New file.
12217         * MODULES.html.sh (Extended multibyte and wide character utilities):
12218         New section.
12219
12220 2005-08-16  Bruno Haible  <bruno@clisp.org>
12221
12222         * m4/tls.m4: New file, from GNU gettext.
12223
12224 2005-08-16  Bruno Haible  <bruno@clisp.org>
12225
12226         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
12227         always.
12228         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
12229
12230 2005-08-16  Bruno Haible  <bruno@clisp.org>
12231
12232         * m4/mbiter.m4: New file.
12233
12234 2005-08-16  Bruno Haible  <bruno@clisp.org>
12235
12236         * m4/mbfile.m4: New file.
12237
12238 2005-08-16  Bruno Haible  <bruno@clisp.org>
12239
12240         * m4/mbchar.m4: New file.
12241
12242 2005-08-16  Bruno Haible  <bruno@clisp.org>
12243
12244         * lib/tls.h: New file, from GNU gettext.
12245         * lib/tls.c: New file, from GNU gettext.
12246
12247 2005-08-16  Bruno Haible  <bruno@clisp.org>
12248
12249         * lib/strnlen1.h: New file.
12250         * lib/strnlen1.c: New file.
12251
12252 2005-08-16  Bruno Haible  <bruno@clisp.org>
12253
12254         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
12255         (mbi_init): Update.
12256         (mbi_avail, mbi_advance): Let the iteration end before the terminating
12257         NUL byte, not after it.
12258
12259 2005-08-16  Bruno Haible  <bruno@clisp.org>
12260
12261         * lib/strcase.h (strcasecmp): Add note in comments.
12262         * lib/strncasecmp.c: Use code from strcasecmp.c.
12263         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
12264         (strcasecmp): Work correctly in multibyte locales.
12265
12266 2005-08-16  Bruno Haible  <bruno@clisp.org>
12267
12268         * lib/mbiter.h: New file.
12269
12270 2005-08-16  Bruno Haible  <bruno@clisp.org>
12271
12272         * lib/mbfile.h: New file.
12273
12274 2005-08-16  Bruno Haible  <bruno@clisp.org>
12275
12276         * lib/mbchar.h: New file.
12277         * lib/mbchar.c: New file.
12278
12279 2005-08-16  Bruno Haible  <bruno@clisp.org>
12280
12281         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
12282         the valid ones. Makes the comparison operations transitive:
12283         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
12284         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
12285
12286 2005-08-15  Simon Josefsson  <jas@extundo.com>
12287
12288         * modules/ssize_t (License): Change to 'unlimited'.
12289
12290         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
12291
12292 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
12293
12294         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
12295         Add comments for each pending glibc patch.
12296
12297 2005-08-15  Bruno Haible  <bruno@clisp.org>
12298
12299         * lib/regex.h (__restrict_arr): Don't define to __restrict if
12300         __cplusplus is defined.
12301
12302 2005-08-14  Jim Meyering  <jim@meyering.net>
12303
12304         Sync from coreutils.
12305
12306         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
12307         Use the hash-table-based cycle-detection code not just when
12308         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
12309         Reported by James Youngman in
12310         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
12311         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
12312         FTS_TIGHT_CYCLE_CHECK.
12313         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
12314         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
12315         once again.
12316         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
12317         * lib/fts.c (fd_safer): Remove decl.
12318         Include fcntl--.h rather than unistd-safer.h
12319         (fts_safe_changedir): Don't call fd_safer; no longer needed
12320         now that we include fcntl--.h.
12321
12322 2005-08-12  Simon Josefsson  <jas@extundo.com>
12323
12324         * modules/getndelim2: Use ssize_t module.
12325         * modules/getnline: Likewise.
12326         * modules/safe-read: Likewise.
12327         * modules/xreadlink: Likewise.
12328
12329         * modules/ssize_t: New file.
12330
12331 2005-08-12  Simon Josefsson  <jas@extundo.com>
12332
12333         * m4/readline.m4: Look for termcap, curses or ncurses if required.
12334
12335 2005-08-12  Simon Josefsson  <jas@extundo.com>
12336
12337         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
12338         ssize_t.
12339
12340 2005-08-12  Simon Josefsson  <jas@extundo.com>
12341
12342         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
12343         readline, getdelim and check_version.
12344         (Support for systems lacking ISO C 99: Sizes of integer types):
12345         Add size_max.
12346
12347 2005-08-12  Bruno Haible  <bruno@clisp.org>
12348
12349         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
12350
12351 2005-08-11  Simon Josefsson  <jas@extundo.com>
12352
12353         * modules/readline: New file.
12354
12355         * modules/strnlen (Files): Add strnlen.h.
12356
12357 2005-08-11  Simon Josefsson  <jas@extundo.com>
12358
12359         * m4/readline.m4: New file.
12360
12361 2005-08-11  Simon Josefsson  <jas@extundo.com>
12362
12363         * lib/readline.h, readline.c: New file.
12364
12365 2005-08-11  Simon Josefsson  <jas@extundo.com>
12366
12367         * doc/gnulib.texi (Initial import, Finishing touches): Mention
12368         gl_AVOID.
12369
12370 2005-08-11  Bruno Haible  <bruno@clisp.org>
12371
12372         * lib/strnlen.h (strnlen): Change parameter name to match comment.
12373
12374 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
12375
12376         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
12377
12378 2005-08-10  Simon Josefsson  <jas@extundo.com>
12379
12380         * tests/test-iconvme.c: New file.
12381
12382 2005-08-10  Simon Josefsson  <jas@extundo.com>
12383
12384         * m4/strnlen.m4: New file.
12385
12386         * m4/strndup.m4: Don't check for strnlen declaration, done in
12387         strnlen.m4.
12388
12389 2005-08-10  Simon Josefsson  <jas@extundo.com>
12390
12391         * lib/strndup.c: Use strnlen.h.
12392
12393         * lib/strnlen.h: New file.
12394
12395 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
12396
12397         * README: Typos.
12398
12399 2005-08-02  Simon Josefsson  <jas@extundo.com>
12400
12401         * modules/readline: New file.
12402
12403 2005-08-02  Simon Josefsson  <jas@extundo.com>
12404
12405         * modules/getdelim: New file.
12406
12407         * modules/getline: Rewrite, don't use getndelim2.
12408
12409 2005-08-02  Simon Josefsson  <jas@extundo.com>
12410
12411         * m4/getline.m4: Separate out getdelim stuff into separate module.
12412
12413         * m4/getdelim.m4: New file.
12414
12415 2005-08-02  Simon Josefsson  <jas@extundo.com>
12416
12417         * lib/getline.h, getline.c: Rewrite.
12418
12419         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
12420
12421 2005-07-31  Bruno Haible  <bruno@clisp.org>
12422
12423         * lib/lock.h (gl_lock_initializer): New macro.
12424         (gl_lock_define_initialized): Use it.
12425         (gl_rwlock_initializer): New macro.
12426         (gl_rwlock_define_initialized): Use it.
12427         (gl_recursive_lock_initializer): New macro.
12428         (gl_recursive_lock_define_initialized): Use it.
12429
12430 2005-07-30  Karl Berry  <karl@gnu.org>
12431
12432         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
12433         Report from Ben Pfaff, regarding getopt.
12434
12435 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
12436
12437         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
12438         normal way.
12439         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
12440         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
12441         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
12442         (gl_GETOPT): Use the new macros.  Most of the implementation
12443         is moved to the new macros.  This is for programs like Emacs
12444         that don't want all the functionality of gl_GETOPT.
12445
12446 2005-07-26  Bruno Haible  <bruno@clisp.org>
12447
12448         * m4/lock.m4: Update from GNU gettext.
12449
12450 2005-07-26  Bruno Haible  <bruno@clisp.org>
12451
12452         * lib/lock.h: Update from GNU gettext.
12453         * lib/lock.c: Update from GNU gettext.
12454
12455 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
12456
12457         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
12458         obsolescent AC_TRY_RUN.  Include the default includes files, for
12459         'exit'.
12460
12461 2005-07-24  Bruno Haible  <bruno@clisp.org>
12462
12463         * modules/visibility: New file.
12464         * MODULES.html.sh (Misc): Add visibility.
12465
12466 2005-07-24  Bruno Haible  <bruno@clisp.org>
12467
12468         * m4/visibility.m4: New file.
12469
12470 2005-07-24  Bruno Haible  <bruno@clisp.org>
12471
12472         * doc/visibility.texi: New file.
12473
12474 2005-07-22  Bruno Haible  <bruno@clisp.org>
12475
12476         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
12477         $(ALLOCA_H), redundant through BUILT_SOURCES.
12478         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
12479         redundant through BUILT_SOURCES.
12480         * modules/byteswap (Makefile.am): Remove explicit dependency on
12481         $(BYTESWAP_H), redundant through BUILT_SOURCES.
12482         * modules/fnmatch (Makefile.am): Remove explicit dependency on
12483         $(FNMATCH_H), redundant through BUILT_SOURCES.
12484         * modules/getopt (Makefile.am): Remove explicit dependency on
12485         $(GETOPT_H), redundant through BUILT_SOURCES.
12486         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
12487         redundant through BUILT_SOURCES.
12488         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
12489         redundant through BUILT_SOURCES.
12490         * modules/stdbool (Makefile.am): Remove explicit dependency on
12491         $(STDBOOL_H), redundant through BUILT_SOURCES.
12492         * modules/stdint (Makefile.am): Remove explicit dependency on
12493         $(STDINT_H), redundant through BUILT_SOURCES.
12494         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
12495         Remove explicit dependency on $(SYSEXITS_H).
12496         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
12497
12498 2005-07-18  Simon Josefsson  <jas@extundo.com>
12499
12500         * lib/check-version.c (check_version): Accept identical versions too.
12501
12502 2005-07-18  Bruno Haible  <bruno@clisp.org>
12503
12504         * modules/lock: New file.
12505         * MODULES.html.sh (Multithreading): New section.
12506
12507 2005-07-18  Bruno Haible  <bruno@clisp.org>
12508
12509         * m4/lock.m4: New file, from GNU gettext.
12510
12511 2005-07-18  Bruno Haible  <bruno@clisp.org>
12512
12513         * lib/lock.h: New file, from GNU gettext.
12514         * lib/lock.c: New file, from GNU gettext.
12515
12516 2005-07-18  Bruno Haible  <bruno@clisp.org>
12517
12518         * lib/lock.h (gl_once_t): New type.
12519         (gl_once_define, gl_once): New macros.
12520         * lib/lock.c (fresh_once): New variable.
12521         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
12522         functions.
12523
12524 2005-07-16  Simon Josefsson  <jas@extundo.com>
12525
12526         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
12527         workaround, suggested by Bruno.
12528
12529 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
12530
12531         * modules/xalloc (Depends-on): Add xalloc-die.
12532         * modules/xvasprintf (Depends-on): Add xalloc-die.
12533
12534 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
12535
12536         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
12537         with a minor change.
12538
12539 2005-07-15  Bruno Haible  <bruno@clisp.org>
12540
12541         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
12542         When using lib/poll.c, define poll as rpl_poll.
12543
12544 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
12545
12546         * modules/argp (Depends-on): Remove unlocked-io.
12547
12548 2005-07-14  Derek Price  <derek@ximbiot.com>
12549
12550         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
12551         for glob symlink bug.
12552
12553 2005-07-14  Bruno Haible  <bruno@clisp.org>
12554
12555         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
12556         Instead, test for *_unlocked function declarations directly.
12557
12558 2005-07-11  Simon Josefsson  <jas@extundo.com>
12559
12560         * modules/size_max: New file.
12561
12562         * modules/xsize: Depend on size_max module for size_max.m4.
12563
12564 2005-07-11  Simon Josefsson  <jas@extundo.com>
12565
12566         * lib/size_max.h: New file.
12567
12568 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
12569
12570         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
12571         copyright symbol and the year.
12572         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
12573         (version_etc_va): Use parameterized copyright notice.
12574         Reword to conform to the current GNU coding standards.
12575
12576 2005-07-11  Karl Berry  <karl@gnu.org>
12577
12578         * doc/gnulib.texi (Quoting): new node.
12579         (Initial import): more info, from Patrice.
12580
12581 2005-07-11  Bruno Haible  <bruno@clisp.org>
12582
12583         * gnulib-tool (func_usage): Document option --avoid.
12584         (Command line options): Handle --avoid.
12585         (func_acceptable): New function.
12586         (func_modules_transitive_closure): Use it.
12587
12588 2005-07-11  Bruno Haible  <bruno@clisp.org>
12589
12590         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
12591         Reported by Jim Meyering.
12592
12593 2005-07-10  Bruno Haible  <bruno@clisp.org>
12594
12595         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
12596         Needed when size_t is smaller than 'unsigned int'.
12597         Reported by Paul Eggert.
12598
12599 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
12600
12601         * modules/argp (Depends-on): Add unlocked-io
12602
12603 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
12604
12605         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
12606         block of defines.
12607
12608 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
12609
12610         * config/srclist.txt: Comment out regcomp.c, since we have a porting
12611         fix now.
12612
12613 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
12614         and Paul Eggert  <eggert@cs.ucla.edu>
12615
12616         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
12617         in wint_t, not wchar_t.  Remove now-unnecessary cast.
12618
12619 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
12620
12621         * modules/regex (Files): Add lib/regex_internal.c,
12622         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
12623         (Depends-on): Add extensions.
12624         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
12625
12626 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
12627
12628         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
12629         pathconf.
12630         * m4/same.m4 (gl_SAME): Likewise.
12631         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
12632
12633         * m4/regex.m4: Adjust to new libc regex implementation.
12634         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
12635         all the .c and .h parts of (the new) regex.
12636         Quote the m4 stuff better.
12637         Check for RE_ICASE bug of old gnulib.
12638         Check for REG_STARTEND of recent libc.
12639         Rename local variables from jm_* to gl_*.
12640         Quote operand of "test -f".
12641         Say "recent enough" version of libc, not "version 2".
12642         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
12643         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
12644         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
12645         Remove check for btowc, isascii.
12646         Require AM_LANGINFO_CODESET.
12647
12648 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
12649
12650         * lib/regex.c, regex.h: Sync from libc.
12651         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
12652         * lib/regexec.c:
12653         New files, synced from libc, except that regex_internal.h
12654         currently has a small porting fix.
12655
12656 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
12657
12658         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
12659         regex_internal.c, regexec.c.
12660         Add regex_internal.h too, but as a comment, since the libc version
12661         is currently broken in gnulib mode.
12662
12663 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
12664
12665         Support programs like Emacs that use gnulib but not gettext.
12666         * MODULES.html.sh (Internationalization functions): Add gettext-h.
12667         * modules/gettext-h: New file.
12668         * modules/gettext (Files): Remove lib/gettext.h.
12669         (Depends-on): Add gettext-h.
12670         (Makefile.am): Remove lib_SOURCES.
12671         * modules/argmatch, modules/c-stack, modules/closeout:
12672         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
12673         * modules/execute, modules/file-type, modules/getaddrinfo:
12674         * modules/getopt, modules/human, modules/javacomp:
12675         * modules/javaexec, modules/mkdir-p, modules/obstack:
12676         * modules/openat, modules/pagealign_alloc, modules/pipe:
12677         * modules/quotearg, modules/regex, modules/rpmatch:
12678         * modules/unicodeio, modules/userspec, modules/version-etc:
12679         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
12680         * modules/xsetenv:
12681         Depend on gettext-h, not gettext.
12682
12683 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
12684
12685         * gnulib-tool (func_import): Add support for 'public domain' license.
12686         * modules/alloca, modules/atexit, modules/memmove:
12687         Now public domain, not GPL.
12688         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
12689         * modules/realloc, modules/strerror, modules/strtod:
12690         Now LGPL, not GPL.
12691
12692 2005-07-05  Bruno Haible  <bruno@clisp.org>
12693
12694         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
12695         autoconf CVS. Needed for mingw.
12696
12697 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
12698
12699         Remove the dependency of the strftime module on the tzset module.
12700         * modules/strftime (Depends-on): Remove dependency on tzset.
12701
12702 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
12703
12704         Remove the dependency of the strftime module on the tzset module.
12705         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
12706         gl_FUNC_TZSET_CLOBBER.
12707
12708 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
12709
12710         Remove the dependency of the strftime module on the tzset module.
12711         * lib/strftime.c (my_strftime)
12712         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
12713         Copy the input structure, to work around some of the bug with
12714         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
12715         Solaris releases, you should also use the tzset module, but we won't
12716         require it as a dependency any more since we don't want LGPLed code
12717         to depend on GPLed code.
12718
12719 2005-07-02  Jim Meyering  <jim@meyering.net>
12720
12721         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
12722         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
12723         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
12724         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
12725
12726 2005-07-02  Jim Meyering  <jim@meyering.net>
12727
12728         * lib/backupfile.c (backup_args): Change a `0' to NULL.
12729
12730 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
12731
12732         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
12733         declares only 'struct timespec;' (!).
12734
12735 2005-07-01  Jim Meyering  <jim@meyering.net>
12736
12737         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
12738         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
12739         * lib/save-cwd.c, tempname.c:
12740         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
12741         and don't include <sys/file.h>).
12742
12743 2005-06-29  Jim Meyering  <jim@meyering.net>
12744
12745         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
12746         type name.  Use the variable name instead.
12747         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
12748         Likewise.
12749
12750 2005-06-28  Simon Josefsson  <jas@extundo.com>
12751
12752         * modules/check-version (Files): Add check-version.m4.
12753
12754 2005-06-28  Simon Josefsson  <jas@extundo.com>
12755
12756         * m4/check-version.m4: New file, suggested by Jim Meyering
12757         <jim@meyering.net>.
12758
12759 2005-06-28  Simon Josefsson  <jas@extundo.com>
12760
12761         * lib/check-version.h, lib/check-version.c: New files.
12762
12763 2005-06-28  Simon Josefsson  <jas@extundo.com>
12764
12765         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
12766         collision with global variable.  Better indentation.  Don't
12767         increment buffer pointer beyond buffer end.  Based on comments
12768         from Paul Eggert <eggert@cs.ucla.edu>.
12769
12770         * lib/base64.h: Indent.
12771
12772 2005-06-28  Simon Josefsson  <jas@extundo.com>
12773
12774         * doc/gnulib.texi (Library version handling): New section.
12775
12776 2005-06-28  Jim Meyering  <jim@meyering.net>
12777
12778         * check-module (find_included_lib_files): Hard-code another
12779         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
12780         but modules/fts-lgpl (correctly) does not list those files.
12781
12782         * modules/canonicalize (Files): Add lib/pathmax.h.
12783
12784 2005-06-25  Simon Josefsson  <jas@extundo.com>
12785
12786         * modules/check-version: New file.
12787
12788 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
12789
12790         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
12791         initializer of struct addrinfo, as an indication that we don't
12792         care how many members the structure has.
12793
12794 2005-06-24  Derek Price  <derek@ximbiot.com>
12795         and Bruno Haible  <bruno@clisp.org>
12796
12797         Remove stat module & update lstat.
12798         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
12799         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
12800         * m4/stat.m4: Remove this file.
12801
12802 2005-06-24  Derek Price  <derek@ximbiot.com>
12803         and Bruno Haible  <bruno@clisp.org>
12804
12805         Remove stat module & update lstat.
12806         * lib/stat.c: Remove this file...
12807         (slash_aware_lstat): ...moving this content and its support...
12808         * lib/lstat.c (rpl_lstat): ...into here.
12809         * lib/lstat.h: New file.
12810
12811 2005-06-24  Derek Price  <derek@ximbiot.com>
12812         and Bruno Haible  <bruno@clisp.org>
12813
12814         Remove stat module & update lstat.
12815         * config/srclist.txt (libc sources): Remove stat.
12816
12817 2005-06-24  Derek Price  <derek@ximbiot.com>
12818         and Bruno Haible  <bruno@clisp.org>
12819
12820         Remove stat module & update lstat.
12821         * MODULES.html.sh (stat): Remove.
12822         * MODULES.html: Regenerated.
12823         * modules/lstat (Description): Correct function name.
12824         (Files): Add "lstat.h".
12825         (Depends-on): Remove stat, add xalloc, stat-macros.
12826         * modules/stat: Remove this file.
12827         (Include): Add "lstat.h", remove <sys/stat.h>.
12828
12829 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
12830
12831         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
12832         (ranged_convert): Don't save conversion in a temporary struct.
12833         This causes a warning with GCC 4.0.0, and anyway in the typical
12834         case it's not worth the extra 100 bytes or so of code.
12835         (ranged_convert, __mktime_internal): When calling a function via a
12836         pointer P, use P () rather than (*P) (), as we now assume C89 or
12837         better.
12838
12839 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
12840
12841         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
12842         "who -r" failed to give output.  Problem reported by Tim Waugh.
12843
12844         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
12845         (xcalloc): Use it to avoid needless tests.
12846         Problem reported by Jim Meyering.
12847
12848 2005-06-20  Derek Price  <derek@ximbiot.com>
12849
12850         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
12851         unnecessary for Autoconfs > 2.59c.
12852
12853 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
12854
12855         * lib/argp.h (__option_is_short): Check upper limit of
12856         __key. Isprint() requires its argument to have the value
12857         of an unsigned char or EOF.
12858
12859 2005-06-16  Jim Meyering  <jim@meyering.net>
12860
12861         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
12862         when either N or S is zero.
12863
12864 2005-06-16  Derek Price  <derek@ximbiot.com>
12865
12866         * m4/bison.m4: Declare YACC & YFLAGS precious.
12867
12868 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
12869
12870         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
12871         multibyte string or pattern, fall back on unibyte matching.
12872         Problem reported by James Youngman.
12873
12874 2005-06-08  Bruno Haible  <bruno@clisp.org>
12875
12876         * modules/csharpcomp: New file.
12877         * MODULES.html.sh (C#): Add csharpcomp.
12878
12879 2005-06-08  Bruno Haible  <bruno@clisp.org>
12880
12881         * m4/csharpcomp.m4: New file, from GNU gettext.
12882
12883 2005-06-08  Bruno Haible  <bruno@clisp.org>
12884
12885         * lib/csharpcomp.h: New file, from GNU gettext.
12886         * lib/csharpcomp.c: New file, from GNU gettext.
12887         * lib/csharpcomp.sh.in: New file, from GNU gettext.
12888
12889 2005-06-08  Bruno Haible  <bruno@clisp.org>
12890
12891         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
12892         warning on mingw.
12893
12894 2005-06-07  Derek Price  <derek@ximbiot.com>
12895
12896         Sync from CVS.
12897         * lib/glob_.h: Indent nested #ifdef.
12898
12899 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
12900
12901         Sync from coreutils.
12902         Use "file name" when talking about file names, instead of "filename"
12903         or "path", as per the GNU coding standards.
12904         * lib/mkdir-p.c: Renamed from makepath.c.
12905         (make_dir_parents): Renamed from make_path.  All callers changed.
12906         * lib/mkdir-p.h: Likewise.  All includers changed.
12907         * lib/filenamecat.c: Renamed from path-concat.c.
12908         (file_name_concat): Renamed from path_concat.  All callers changed.
12909         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
12910         * lib/filenamecat.h: Likewise.  All includers changed.
12911         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
12912         in comments or local variable names.
12913         * lib/basename.c: Likewise.
12914         * lib/canonicalize.c, canonicalize.h: Likewise.
12915         * lib/dirname.c, dirname.h: Likewise.
12916         * lib/euidaccess.c: Likewise.
12917         * lib/exclude.c: Likewise
12918         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
12919         * lib/fsusage.c, fsuage.h: Likewise.
12920         * lib/fts.c, fts_.h: Likewise.
12921         * lib/getcwd.c: Likewise.
12922         * lib/getloadavg.c: Likewise.
12923         * lib/mkstemp.c: Likewise.
12924         * lib/mountlist.c, mountlist.h: Likewise.
12925         * lib/openat.c, openat.h: Likewise.
12926         * lib/readlink-stub.c: Likewise.
12927         * lib/readutmp.c, readutmp.h: Likewise.
12928         * lib/rename.c: Likewise.
12929         * lib/rmdir.c: Likewise.
12930         * lib/same.c: Likewise.
12931         * lib/savedir.c: Likewise.
12932         * lib/stripslash.c: Likewise.
12933         * lib/tempname.c: Likewise.
12934         * lib/xreadlink.c: Likewise.
12935         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
12936         All uses changed.
12937         * lib/exclude.h: Likewise.
12938
12939         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
12940         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
12941         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
12942         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
12943         * lib/pathmax.h: Include <limits.h> unconditionally, since other
12944         files have been getting away with it for years (MORE/BSD 4.3
12945         is extinct now).
12946         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
12947         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
12948
12949         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
12950         Define to 256, not 255, as per modern POSIX.
12951
12952 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
12953
12954         Sync from coreutils.
12955         Use "file name" when talking about file names, instead of "filename"
12956         or "path", as per the GNU coding standards.
12957         * MODULES.html.sh: mkdir-p renamed from makepath.
12958         filenamecat renamed from path-concat.
12959         * modules/filenamecat: Renamed from modules/path-concat.
12960         (Files): filenamecat.h and filenamecat.c renamed from
12961         path-concat.h and path-concat.c.
12962         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
12963         (Include): filenamecat.h, not path-concat.h.
12964         * modules/mkdir-p: Renamed from modules/makepath.
12965         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
12966         makepath.c.
12967         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
12968         (Include): mkdir-p.h, not makepath.h.
12969
12970 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
12971
12972         Sync from coreutils.
12973         * m4/mkdir-p.m4: Renamed from makepath.m4.
12974         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
12975         Rename files from makepath.c to mkdir-p.c, and from
12976         makepath.h to mkdir-p.h.
12977         * m4/filenamecat.m4: Renamed from path-concat.m4.
12978         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
12979         Rename files from path-concat.c to filenamecat.c,
12980         and from path-concat.h to filenamecat.h.
12981         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
12982         "file name" in local variables or comments.
12983         * m4/rename.m4: Likewise.
12984
12985 2005-06-01  Bruno Haible  <bruno@clisp.org>
12986
12987         * modules/csharpexec: New file.
12988         * MODULES.html.sh (C#): New section.
12989
12990 2005-06-01  Bruno Haible  <bruno@clisp.org>
12991
12992         * m4/csharp.m4: New file, from GNU gettext.
12993         * m4/csharpexec.m4: New file, from GNU gettext.
12994
12995 2005-06-01  Bruno Haible  <bruno@clisp.org>
12996
12997         * lib/csharpexec.h: New file, from GNU gettext.
12998         * lib/csharpexec.c: New file, from GNU gettext.
12999         * lib/csharpexec.sh.in: New file, from GNU gettext.
13000
13001 2005-05-31  Derek Price  <derek@ximbiot.com>
13002             Paul Eggert  <eggert@cs.ucla.edu>
13003
13004         Sync from cvs.
13005         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
13006
13007 2005-05-31  Derek Price  <derek@ximbiot.com>
13008             Paul Eggert  <eggert@cs.ucla.edu>
13009
13010         Sync from cvs.
13011         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
13012
13013 2005-05-29  Derek Price  <derek@ximbiot.com>
13014
13015         * config/srclist.txt (glob_.h, glob.c): Add these files.
13016
13017 2005-05-29  Derek Price  <derek@ximbiot.com>
13018
13019         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
13020         * modules/glob: New file.
13021         * modules/getlogin_r: Add link to POSIX spec in description.
13022
13023 2005-05-29  Derek Price  <derek@ximbiot.com>
13024             Paul Eggert  <eggert@cs.ucla.edu>
13025
13026         * m4/glob.m4: New file.
13027
13028 2005-05-29  Derek Price  <derek@ximbiot.com>
13029             Paul Eggert  <eggert@cs.ucla.edu>
13030
13031         * lib/glob_.h, lib/glob.c: New files.
13032
13033 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
13034
13035         * modules/fts (Files): Remove m4/inttypes-pri.m4.
13036         * modules/fts-lgpl (Depends-on): Remove gettext.
13037
13038 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
13039
13040         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
13041         and don't require gt_INTTYPES_PRI.
13042
13043 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
13044
13045         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
13046
13047         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
13048         the configuration hassle isn't worth it.
13049         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
13050         (LONGEST_MODIFIER, PRIuMAX): Remove.
13051
13052 2005-05-27  Bruno Haible  <bruno@clisp.org>
13053
13054         * lib/getlogin_r.h: Remove second include of <stddef.h>.
13055
13056 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
13057
13058         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
13059         _POSIX_PTHREAD_SEMANTICS for Solaris.
13060
13061 2005-05-25  Derek Price  <derek@ximbiot.com>
13062
13063         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
13064
13065 2005-05-25  Derek Price  <derek@ximbiot.com>
13066             Paul Eggert  <eggert@cs.ucla.edu>
13067
13068         * modules/getlogin_r, m4/getlogin_r.m4: New files.
13069         * lib/getlogin_r.c, getlogin_r.h: New files.
13070
13071 2005-05-25  Bruno Haible  <bruno@clisp.org>
13072             Derek Price  <derek@ximbiot.com>
13073
13074         * lib/getlogin_r.h: Simplify API documentation.
13075
13076 2005-05-23  Derek Price  <derek@ximbiot.com>
13077
13078         * modules/minmax (Files): Add m4/minmax.m4.
13079         (configure.ac): Add gl_MINMAX.
13080
13081 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
13082
13083         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
13084         so that unistd-safer.h (GPL'ed code) need not be included.
13085
13086 2005-05-22  Bruno Haible  <bruno@clisp.org>
13087
13088         * m4/minmax.m4: New file.
13089         Based on a patch by Derek Price <derek@ximbiot.com>.
13090
13091 2005-05-22  Bruno Haible  <bruno@clisp.org>
13092
13093         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
13094         (INT64_MIN): Fix definition.
13095         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
13096
13097         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
13098         NEED_SIGNED_INT_TYPES.
13099
13100         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
13101         HAVE_SYSTEM_INTTYPES.
13102
13103 2005-05-22  Bruno Haible  <bruno@clisp.org>
13104
13105         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
13106         Also include <sys/param.h> if it defines MIN, MAX.
13107         Based on a patch by Derek Price <derek@ximbiot.com>.
13108
13109 2005-05-21  Jim Meyering  <jim@meyering.net>
13110
13111         * modules/fts (Files): Add m4/inttypes-pri.m4.
13112         (Depends-on): Add lstat and remove gettext.  Alphabetize.
13113
13114 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
13115
13116         New fts module.
13117         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
13118         (setup_dir, free_dir): New functions.
13119         (enter_dir, leave_dir): Define trivial
13120         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
13121         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
13122         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
13123         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
13124         Move to fts-cycle.c.
13125         (fts_open): Use setup_dir.
13126         (fts_close): Use free_dir.
13127         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
13128         This adds a label and some gotos, but the alternatives were messier.
13129         Check for memory allocation failure when entering a dir.
13130         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
13131         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
13132         (FTS): New member fts_cycle, that is a union that contains the
13133         old active_dir_ht and cycle_state.  All uses changed to mention
13134         fts_cycle.ht and fts_cycle.state.
13135         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
13136         fts.c, with the following changes:
13137         (setup_dir, free_dir): New functions.
13138         (enter_dir): Now returns bool.  Return true if successful, false
13139         if memory exhausted.  All callers changed.
13140         Do not bother partly cleaning up on
13141         memory allocation failure; that is free_dir's job.
13142         However, free ad if hash_insert fails, to avoid memory leak.
13143         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
13144         fts->fts_options to see which union member to use.
13145
13146 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
13147
13148         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
13149         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
13150
13151 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
13152
13153         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
13154
13155 2005-05-20  Jim Meyering  <jim@meyering.net>
13156
13157         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
13158         Now a macro, to pacify GCC.
13159
13160 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
13161
13162         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
13163         of -1.
13164
13165 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
13166
13167         * lib/chown.c (rpl_chown): Return -1 on failure.
13168
13169 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
13170
13171         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
13172         Don't check for stddef.h.
13173         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
13174         don't use its results.
13175         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
13176         since we include them unconditionally.  Don't require
13177         AM_STDBOOL_H, since stdbool is a prerequisite.
13178         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
13179         since we assume C89 or better.
13180         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
13181         as we don't use their results.
13182         Don't check for fchdir, memmove, memset, strrchr, as we use
13183         them unconditionally.
13184         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
13185         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
13186
13187 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
13188
13189         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
13190         Include <stddef.h> unconditionally, since we assume C89 now.
13191         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
13192         * lib/fts.c: Include fts_.h first, to check interface.
13193         Do not include intprops.h; no longer needed.
13194         Include cycle-check.h and hash.h, since fts_.h no longer does.
13195         Remove unnecessary casts of closedir to void.
13196         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
13197         decide whether to decrement nlinks.
13198         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
13199         (FTS): Use struct hash_table * instead of Hash_table, so that
13200         we no longer need to include hash.h here.
13201
13202 2005-05-18  Jim Meyering  <jim@meyering.net>
13203
13204         * modules/dirfd (License): Change to LGPL.  Most of the code
13205         is already in the public domain.
13206
13207 2005-05-18  Jim Meyering  <jim@meyering.net>
13208
13209         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
13210         Reported by Yoann Vandoorselaere.
13211
13212 2005-05-17  Jim Meyering  <jim@meyering.net>
13213
13214         * m4/fts.m4: New file, from coreutils.
13215
13216 2005-05-17  Jim Meyering  <jim@meyering.net>
13217
13218         * lib/fts.c, lib/fts_.h: New files, from coreutils.
13219
13220 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
13221
13222         Sync from coreutils.
13223         * m4/unlinkdir.m4: New file.
13224
13225 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
13226
13227         Sync from coreutils.
13228         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
13229         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
13230         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
13231         White space changes only.
13232         * lib/makepath.c (make_path): Port to hosts where leading "//" is
13233         special.
13234         * lib/yesno.c: Include getline.h, not ctype.h.
13235         (yesno): Don't remove leading white space; POSIX doesn't allow it.
13236         Use getline to remove arbitrary restriction on response length.
13237
13238 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
13239
13240         * config/srclist-update: Spell out "Street" in FSF postal
13241         mail address; this is the style the FSF seems to prefer.
13242
13243         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
13244         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
13245         this updates FSF postal mail address.
13246
13247         Sync from coreutils.
13248         * modules/unlinkdir: New file.
13249         * modules/yesno (Depends-on): Add getline.
13250         * MODULES.html.sh (File system functions): Add unlinkdir.
13251
13252 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
13253
13254         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
13255         lib/strsep.h:
13256         Change the initial comment to refer to GPL, not LGPL.
13257         gnulib-tool will change it to LGPL as needed.
13258
13259         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
13260         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
13261         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
13262         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
13263         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
13264         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
13265         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
13266         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
13267         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
13268         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
13269         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
13270         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
13271         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
13272         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
13273         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
13274         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
13275         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
13276         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
13277         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
13278         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
13279         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
13280         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
13281         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
13282         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
13283         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
13284         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
13285         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
13286         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
13287         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
13288         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
13289         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
13290         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
13291         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
13292         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
13293         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
13294         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
13295         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
13296         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
13297         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
13298         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
13299         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
13300         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
13301         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
13302         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
13303         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
13304         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
13305         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
13306         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
13307         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
13308         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
13309         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
13310         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
13311         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
13312         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
13313         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
13314         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
13315         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
13316         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
13317         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
13318         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
13319         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
13320         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
13321         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
13322         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
13323         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
13324         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
13325         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
13326         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
13327         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
13328         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
13329         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
13330         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
13331         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
13332         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
13333         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
13334         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
13335         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
13336         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
13337         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
13338         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
13339         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
13340         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
13341         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
13342         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
13343         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
13344         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
13345         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
13346         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
13347         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
13348         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
13349         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
13350         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
13351         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
13352         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
13353         lib/yesno.c, lib/yesno.h:
13354         Update FSF postal mail address.
13355
13356 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
13357
13358         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
13359         tests/test-memmem.c, tests/test-stpncpy.c:
13360         Update FSF postal mail address.
13361
13362 2005-05-13  Bruno Haible  <bruno@clisp.org>
13363
13364         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
13365         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
13366         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
13367         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
13368         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
13369         Add support for 64-bit integers in the MSVC compiler.
13370
13371 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
13372
13373         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
13374
13375 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
13376
13377         * gnulib-tool (func_import): Sort and uniquify recommended includes.
13378
13379 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
13380
13381         * doc/getdate.texi (General date syntax): Don't say that date
13382         date --iso-8601=ns generates acceptable dates; it doesn't yet.
13383         Problem reported by Nic Ferrier.
13384
13385 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
13386
13387         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
13388         specified in ai_socktype. Fix invalid ai_protocol
13389         check. ai_protocol is usually set to 0 or depending on
13390         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
13391         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
13392         ai_socktype / ai_protocol in the returned addrinfo structure.
13393
13394 2005-05-10  Simon Josefsson  <jas@extundo.com>
13395
13396         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
13397         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
13398
13399 2005-05-10  Karl Berry  <karl@gnu.org>
13400
13401         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
13402         (from http://www.gnu.org/licenses).
13403         * doc/COPYING.LIB: also rename to COPYING.LESSER.
13404         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
13405         fdl.texi suffices.
13406
13407 2005-05-10  Karl Berry  <karl@gnu.org>
13408
13409         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
13410         (COPYING.DOC): remove.
13411
13412         * config/srclist-update: new FSF address.
13413
13414 2005-05-10  Derek Price  <derek@ximbiot.com>
13415
13416         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
13417         possible.
13418
13419 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
13420             Bruno Haible  <bruno@clisp.org>
13421
13422         * modules/inet_ntop: New file.
13423         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
13424         inet_ntop.
13425
13426 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
13427             Bruno Haible  <bruno@clisp.org>
13428
13429         * m4/inet_ntop.m4: New file.
13430
13431 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
13432             Bruno Haible  <bruno@clisp.org>
13433
13434         * lib/inet_ntop.h: New file.
13435         * lib/inet_ntop.c: New file, from glibc with modifications.
13436
13437 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
13438
13439         * modules/time_r (License): Change to LGPL.
13440         * modules/extensions (License): Change to LGPL.  Actually,
13441         the license is more permissive than that, but currently gnulib-tool
13442         doesn't know how to handle more-permissive licenses.
13443
13444         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
13445         Problem reported by Dave Love.
13446
13447 2005-05-08  Jim Meyering  <jim@meyering.net>
13448
13449         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
13450         blank.
13451
13452 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
13453
13454         * modules/argmatch (Depends-on): Add stdbool.
13455         * modules/backupfile (Depends-on): Likewise.
13456         * modules/chdir-long (Depends-on): Likewise.
13457         * modules/closeout (Depends-on): Likewise.
13458         * modules/cycle-check (Depends-on): Likewise.
13459         * modules/dirname (Depends-on): Likewise.
13460         * modules/fnmatch (Depends-on): Likewise.
13461         * modules/fsusage (Depends-on): Likewise.
13462         * modules/fwriteerror (Depends-on): Likewise.
13463         * modules/getcwd (Depends-on): Likewise.
13464         * modules/getloadavg (Depends-on): Likewise.
13465         * modules/hard-locale (Depends-on): Likewise.
13466         * modules/makepath (Depends-on): Likewise.
13467         * modules/mountlist (Depends-on): Likewise.
13468         * modules/nanosleep (Depends-on): Likewise.
13469         * modules/posixtm (Depends-on): Likewise.
13470         * modules/quotearg (Depends-on): Likewise.
13471         * modules/readtokens (Depends-on): Likewise.
13472         * modules/readtokens0 (Depends-on): Likewise.
13473         * modules/readutmp (Depends-on): Likewise.
13474         * modules/save-cwd (Depends-on): Likewise.
13475         * modules/strftime (Depends-on): Likewise.
13476         * modules/userspec (Depends-on): Likewise.
13477         * modules/utimecmp (Depends-on): Likewise.
13478         * modules/xgetcwd (Depends-on): Likewise.
13479         * modules/xnanosleep (Depends-on): Likewise.
13480         * modules/xstrtod (Depends-on): Likewise.
13481         * modules/yesno (Depends-on): Likewise.
13482
13483 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
13484
13485         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
13486         needless checks.
13487
13488 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
13489
13490         Merge from coreutils.  Among other things,
13491         add bulletproofing for cases where stdin, stdout, or stderr are closed.
13492         * lib/fd-safer.c: New file.
13493         * lib/fcntl-safer.h, open-safer.c: Remove.
13494         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
13495         * lib/dup-safer.c: Include unistd-safer.h first.
13496         Don't include errno.h.
13497         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
13498         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
13499         * lib/file-type.c: Rely on file-type.h change.
13500         * lib/getloadavg.c: Include unistd-safer.h.
13501         (getloadavg): Use safer open.
13502         * lib/getusershell.c: Include "stdio-safer.h".
13503         (getusershell): Use safer fopen.
13504         * lib/long-options.c (long_options): Use NULL rather than 0.
13505         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
13506         'free'.
13507         * lib/modechange.c: Likewise.
13508         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
13509         (MODE_DONE): New constant.
13510         (struct mode_change): Remove 'next' member.
13511         (make_node_op_equals): New function; like the old one of the
13512         same name, except it allocates an array.
13513         (mode_compile, mode_create_from_ref): Use it.
13514         (mode_compile): Allocate result as an array, not a linked list.
13515         Parse octal string ourself, so that we catch mistakes like "+0".
13516         (mode_adjust): Arg is an array, not a linked list.
13517         * lib/modechange.c: Include stat-macros.h, xalloc.h.
13518         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
13519         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
13520         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
13521         Remove.  This is now stat-macros.h's job.
13522         (talloc): Remove.  All callers replaced by xalloc, so that
13523         our invokers don't have to worry about reporting memory failures.
13524         (make_node_op_equals): Remove.
13525         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
13526         New constants.
13527         (struct mode_change): Moved here from modechange.h.
13528         (mode_append_entry): Remove.
13529         (mode_compile): Remove MASKED_OPS arg, since it encouraged
13530         apps to have incorrect behavior.  Use simpler algorithm for head
13531         and tail.  Don't futz with umask; that's now the job of mode_adjust.
13532         Detect more invalid usages rather than having somewhat-random behavior.
13533         Don't insert an "a=" action, as that leads to incorrect behavior.
13534         (mode_compile, mode_create_from_ref): Return NULL on error instead
13535         of an enum, since now there's only one way to have an error.  All
13536         callers changed.
13537         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
13538         at the correct time.  Simplify calculation of "+u" and its ilk.
13539         Don't mishandle "+X".
13540         (mode_free): Remove "register" and localize decls.
13541         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
13542         (struct mode_change): Move to modechange.c; callers don't
13543         need to see this stuff.
13544         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
13545         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
13546         (mode_change, mode_adjust): Reflect the new signatures noted above.
13547         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
13548         that might redefine system include files.
13549         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
13550         (my_usleep): Use NULL rather than (void *) 0.
13551         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
13552         Use siginterrupt to specify that system calls should be interrupted.
13553         (rpl_nanosleep): Move initialization of suspended closer to call of
13554         my_usleep.
13555         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
13556         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
13557         (desirable_utmp_entry): New function.
13558         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
13559         using x2nrealloc, to simplify logic.
13560         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
13561         size calculation.  Do not assume utmp file is a regular file.
13562         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
13563         (READ_UTMP_CHECK_PIDS): New constant.
13564         * lib/save-cwd.c: Include unistd-safer.h.
13565         (save_cwd): Use fd_safer.
13566         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
13567         [!_LIBC] Include "stat-macros.h" instead.
13568         * lib/unistd-safer.h (fd_safer): New decl.
13569
13570 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
13571
13572         * modules/getloadavg (Depends-on): Add unistd-safer.
13573         * modules/getusershell (Depends-on): Add stdio-safer.
13574         * modules/lstat (Depends-on): Remove xalloc.
13575         * modules/mkstemp (Depends-on): Add stat-macros.
13576         * modules/modechange (Depends-on): Remove xstrtol.
13577         Add stat-macros, xalloc.
13578         * modules/save-cwd (Depends-on): Add unistd-safer.
13579         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
13580         * modules/unistd-safer (Files): Add lib/fd-safer.c
13581         (Makefile.am): Remove lib_SOURCES.
13582
13583         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
13584         Remove fcntl-safer; unistd-safer supersedes it.
13585
13586 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
13587
13588         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
13589         AC_HEADER_STAT.
13590         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
13591         (gl_PREREQ_CHOWN): Remove.
13592         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
13593         it.  Don't require AC_HEADER_STAT.
13594         (gl_PREREQ_LSTAT): Remove.
13595         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
13596         Don't require AC_HEADER_STAT.
13597         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
13598         (gl_PREREQ_RMDIR): Remove.
13599         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
13600         mention stat-macros.h or AC_HEADER_STAT, since we'll make
13601         the stat-macros module a prerequisite.
13602         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
13603         * m4/filemode.m4 (gl_FILEMODE): Likewise.
13604         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
13605         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
13606         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
13607         variable names.
13608         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
13609         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
13610         variable prefixes.
13611         * m4/fcntl-safer.m4: Remove.
13612         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
13613         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
13614         Invoke gl_PREREQ_FD_SAFER.
13615         (gl_PREREQ_FD_SAFER): New macro.
13616         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
13617         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
13618         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
13619         Remove duplicate call to AC_LIBOBJ(readutmp).
13620         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
13621
13622         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
13623         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
13624
13625 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
13626
13627         * MODULES.html.sh (Misc): Add byteswap.
13628
13629 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
13630
13631         * modules/getcwd (Depends-on): Add extensions.
13632         * modules/openat (Depends-on): Likewise.
13633
13634 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
13635
13636         * modules/byteswap: New file.
13637
13638 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
13639
13640         * m4/byteswap.m4: New file.
13641
13642 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
13643
13644         * lib/byteswap_.h: New file.
13645
13646 2005-04-25  Karl Berry  <karl@gnu.org>
13647
13648         * m4/gettext.m4: Update from GNU gettext 0.14.4.
13649
13650 2005-04-25  Albert Chin  <china@thewrittenword.com>
13651
13652         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
13653         Toolkit C bug.
13654
13655 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
13656
13657         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
13658         (func_ln_if_changed) Remove forcibly for no error message
13659         in case file does not exist.
13660
13661 2005-04-19  Simon Josefsson  <jas@extundo.com>
13662
13663         * gnulib-tool (Options): Make --symlink mean --symbolic.
13664
13665 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
13666
13667         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
13668
13669 2005-04-16  Simon Josefsson  <jas@extundo.com>
13670
13671         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
13672
13673 2005-04-15  Simon Josefsson  <jas@extundo.com>
13674
13675         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
13676
13677 2005-04-15  Simon Josefsson  <jas@extundo.com>
13678
13679         * gnulib-tool: Rename --symlink to --symbolic.
13680
13681 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
13682
13683         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
13684         symbolic links to files instead of copying/moving.  Add --aux-dir,
13685         specifying directory relative --dir where auxiliary build tools
13686         are placed.
13687
13688 2005-04-14  Bruno Haible  <bruno@clisp.org>
13689
13690         * modules/allocsa (License): Change to LGPL.
13691         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
13692
13693 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
13694
13695         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
13696         that "UTC +1 second" continues to work.  Problem reported
13697         by Dmitry V. Levin.
13698         (relunit_snumber): New rule.
13699         (relunit): Use it.
13700
13701 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
13702
13703         * lib/getdate.y (universal_time_zone_table): New constant.
13704         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
13705         universal_time_zone_table.
13706         (lookup_zone): Prefer universal_time_zone_table to
13707         local_time_zone_table, so that "GMT" time stamps are allowed in
13708         London during the summer.  Problem reported by Ian Abbott.
13709
13710 2005-04-12  Jim Meyering  <jim@meyering.net>
13711
13712         * lib/human.c (humblock): Set *options even when returning due to
13713         xstrtoumax conversion failure.  Thanks to a used-uninitialized
13714         warning from gcc-4.
13715
13716 2005-04-09  Jim Meyering  <jim@meyering.net>
13717
13718         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
13719         -Wuninitialized: initialize tm0.tm_year.
13720
13721 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
13722
13723         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
13724         count, since there's no maximum.  All uses changed.
13725         Add member dsts_seen.
13726         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
13727         not being INT_MAX.
13728         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
13729         Use pc_rels_seen to decide whther a date is absolute.
13730
13731         * lib/getdate.y (number): Don't overwrite year.
13732         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
13733         check.
13734
13735 2005-04-02  Simon Josefsson  <jas@extundo.com>
13736
13737         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
13738         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
13739
13740 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
13741
13742         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
13743         where no absolute path name can be longer than PATH_MAX.
13744
13745 2005-03-27  Jim Meyering  <jim@meyering.net>
13746
13747         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
13748
13749 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
13750
13751         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
13752         "one's complement" -> "ones' complement" in comment, as per Knuth.
13753         "value of type" -> "type or expression" in comment.
13754         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
13755
13756 2005-03-26  Jim Meyering  <jim@meyering.net>
13757
13758         Comment nits.
13759         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
13760         Correct typos: s/or/of/.
13761
13762 2005-03-26  Jim Meyering  <jim@meyering.net>
13763
13764         * modules/check-include-files: Move to ../ and rename to...
13765         * check-module: ...this.
13766
13767 2005-03-25  Jim Meyering  <jim@meyering.net>
13768
13769         * modules/xvasprintf (Files): Add xalloc.h.
13770
13771 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
13772
13773         * modules/gettext (Files): config/config.rpath ->
13774         build-aux/config.rpath
13775         * modules/iconv (Files): Likewise.
13776         Problem reported by Oskar Liljeblad.
13777
13778 2005-03-23  Jim Meyering  <jim@meyering.net>
13779
13780         * modules/check-include-files: New script to check for
13781         missing dependencies, multiple includes, etc.
13782
13783         * modules/c-strtold (Depends-on): Add xalloc.
13784         * modules/c-strtod (Depends-on): Add xalloc.
13785         * modules/hash (Depends-on): Add xalloc.
13786         (Files): Remove lib/xalloc.h.
13787
13788         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
13789         * modules/userspec (Files): Add lib/inttostr.h.
13790
13791 2005-03-23  Jim Meyering  <jim@meyering.net>
13792
13793         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
13794
13795 2005-03-22  Jim Meyering  <jim@meyering.net>
13796
13797         * modules/stat-macros: New module.
13798         * modules/canonicalize, modules/euidaccess, modules/file-type,
13799         * modules/filemode, modules/lchown, modules/makepath,
13800         * modules/rmdir, modules/stat: Depend on new stat-macros module
13801         rather than listing lib/stat-macros.h manually.
13802         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
13803
13804 2005-03-22  Jim Meyering  <jim@meyering.net>
13805
13806         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
13807
13808 2005-03-22  Bruno Haible  <bruno@clisp.org>
13809
13810         * config/srclist.txt: Replace target directory 'config' with
13811         'build-aux'.
13812         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
13813         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
13814         ../build-aux/.
13815
13816 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
13817
13818         * modules/chdir-long (Depends-on): Add mempcpy.
13819
13820         * modules/acl, modules/backupfile, modules/c-strtod,
13821         modules/c-strtold, modules/canon-host, modules/canonicalize,
13822         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
13823         modules/exclude, modules/exitfail, modules/file-type,
13824         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
13825         modules/getdate, modules/getline, modules/getpagesize,
13826         modules/getpass, modules/getugroups, modules/group-member,
13827         modules/hard-locale, modules/hash, modules/human, modules/idcache,
13828         modules/inttostr, modules/long-options, modules/makepath,
13829         modules/md5, modules/memcasecmp, modules/memcoll,
13830         modules/modechange, modules/mountlist, modules/path-concat,
13831         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
13832         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
13833         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
13834         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
13835         modules/strftime, modules/strndup, modules/strverscmp,
13836         modules/timespec, modules/unlocked-io, modules/userspec,
13837         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
13838         modules/yesno:
13839         Remove lib_SOURCES line from Makefile.am section, as this is now
13840         done automatically by the corresponding Autoconf macro.
13841
13842 2005-03-21  Jim Meyering  <jim@meyering.net>
13843
13844         Changes imported from coreutils.
13845
13846         * lib/cycle-check.c: Don't include xalloc.h.
13847
13848         * lib/path-concat.c: Don't include assert.h.
13849         (path_concat): Remove assertion that would have triggered
13850         for ABASE starting with more than one slash.
13851         Reported by Andreas Schwab.
13852
13853         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
13854         properly when ABASE is an absolute file name.
13855         Correct the description of this function.
13856         Include <assert.h>.
13857         Add an assertion and a test driver.
13858         This fixes a bug introduced on 2004-07-02.
13859         Andreas Schwab reported the resulting failure of cp --parents:
13860         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
13861
13862 2005-03-21  Jim Meyering  <jim@meyering.net>
13863
13864         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
13865         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
13866
13867 2005-03-21  Jim Meyering  <jim@meyering.net>
13868         and  Paul Eggert  <eggert@cs.ucla.edu>
13869
13870         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
13871         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
13872         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
13873         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
13874         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
13875         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
13876         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
13877         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
13878         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
13879         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
13880         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
13881         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
13882         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
13883         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
13884         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
13885         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
13886         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
13887         for these modules.
13888
13889 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
13890
13891         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
13892         (which shouldn't happen), generate nothing instead of returning 0
13893         immediately, so that nstrftime (NULL, ...) doesn't return 0.
13894
13895 2005-03-16  Bruno Haible  <bruno@clisp.org>
13896
13897         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
13898         HAVE_LONGLONG_64BIT.
13899
13900 2005-03-16  Bruno Haible  <bruno@clisp.org>
13901
13902         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
13903         HAVE_LONGLONG_64BIT.
13904
13905 2005-03-16  Bruno Haible  <bruno@clisp.org>
13906
13907         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
13908         HAVE_LONGLONG_64BIT.
13909
13910 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
13911
13912         * lib/strftime.c (my_strftime): Prepend space to format so that we can
13913         reliably distinguish strftime failure from empty output on POSIX
13914         hosts.
13915
13916 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
13917
13918         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
13919         (iconv_string): Don't guess a size-zero buffer, as that might cause
13920         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
13921         result would be 'too large', where 'too large' is (heuristically)
13922         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
13923         overflow concerns.  This will prevent some unwanted malloc failures
13924         when the inputs are very large.
13925
13926 2005-03-15  Karl Berry  <karl@gnu.org>
13927
13928         * config/srclist.txt (config.rpath): from gettext.
13929         * config/config.rpath: update.
13930
13931 2005-03-15  Bruno Haible  <bruno@clisp.org>
13932
13933         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
13934         to 'negate'.
13935
13936         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
13937         variable.
13938
13939         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
13940         results.
13941
13942 2005-03-14  Simon Josefsson  <jas@extundo.com>
13943
13944         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
13945         <fx@gnu.org>.
13946
13947 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
13948
13949         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
13950         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
13951         intprops.h.
13952         * lib/strtol.c: Likewise.
13953
13954 2005-03-14  Jim Meyering  <jim@meyering.net>
13955
13956         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
13957         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
13958         to be nonzero so that we (and caller) can detect the difference
13959         between a valid zero-length expansion and an error return, even
13960         when the underlying strftime fails before writing anything into
13961         that location.
13962
13963 2005-03-14  Bruno Haible  <bruno@clisp.org>
13964
13965         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
13966         Update from GNU gettext 0.14.3.
13967
13968 2005-03-10  Jim Meyering  <jim@meyering.net>
13969
13970         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
13971
13972 2005-03-10  Jim Meyering  <jim@meyering.net>
13973
13974         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
13975         so that this module works on systems without fchdir.
13976
13977 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
13978
13979         Factor int-properties macros into a single file, except for
13980         glibc-related files.
13981         * lib/intprops.h: New file.
13982         * lib/getloadavg.c: Include it instead of limits.h.
13983         (INT_STRLEN_BOUND): Remove.
13984         * lib/human.c: Include intprops.h.
13985         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
13986         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
13987         302/1000.
13988         * lib/inttostr.h: Include intprops.h instead of limits.h.
13989         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
13990         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
13991         for consistency with intprops.h.
13992         (time_t_is_integer, twos_complement_arithmetic): Use them.
13993         * lib/sig2str.h: Include <signal.h>, intprops.h.
13994         (INT_STRLEN_BOUND): Remove.
13995         * lib/strftime.c (TYPE_SIGNED): Remove.
13996         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
13997         * lib/strtol.c: Adjust comments to match intprops.h.
13998         * lib/userspec.c: Include intprops.h.
13999         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
14000         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
14001         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
14002         instead of rolling our own expressions.
14003         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
14004
14005         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
14006         instead of int.
14007         (my_strftime): Do not mishandle years close to INT_MAX, by doing
14008         the right thing even if adding 1900 would overflow.  Similarly
14009         for tm_mon + 1 and tm_yday + 1.
14010         Make %Y always equivalent to %C%y, and similarly for %G and %g.
14011         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
14012         (DO_SIGNED_NUMBER): New macro.
14013         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
14014
14015 2005-03-07  Bruno Haible  <bruno@clisp.org>
14016
14017         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
14018
14019 2005-03-07  Bruno Haible  <bruno@clisp.org>
14020
14021         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
14022
14023 2005-03-04  Derek R. Price  <derek@ximbiot.com>
14024
14025         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
14026         (func_import): Only replace files via --import when they have actually
14027         changed.
14028
14029 2005-03-03  Derek R. Price  <derek@ximbiot.com>
14030
14031         * m4/mmap-anon.m4: New file.
14032         * m4/pagealign_alloc.m4: New file.
14033
14034 2005-03-03  Derek R. Price  <derek@ximbiot.com>
14035             Bruno Haible  <bruno@clisp.org>
14036
14037         * modules/pagealign_alloc: New file.
14038         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
14039
14040 2005-03-03  Derek R. Price  <derek@ximbiot.com>
14041             Bruno Haible  <bruno@clisp.org>
14042
14043         * lib/pagealign_alloc.h: New file.
14044         * lib/pagealign_alloc.c: New file.
14045
14046 2005-03-03  Bruno Haible  <bruno@clisp.org>
14047
14048         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
14049         Use an all-permissive copyright notice, recommended by RMS.
14050
14051 2005-03-02  Bruno Haible  <bruno@clisp.org>
14052
14053         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
14054         of AIX, the replacement has to be done only after <string.h> is
14055         included, therefore not in config.h. stpncpy.h does the replacement,
14056         and stpncpy.c uses it.
14057
14058 2005-03-02  Bruno Haible  <bruno@clisp.org>
14059
14060         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
14061         stpncpy.c uses it.
14062
14063 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
14064
14065         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
14066         The workaround isn't strictly needed for POSIX conformance, and
14067         it's too much of a pain to configure and maintain.  We'll ask
14068         people to fix their kernels instead.
14069         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
14070         (NANOSLEEP_BUG_WORKAROUND): Remove.
14071         (xnanosleep): Remove the workaround.
14072
14073 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
14074
14075         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
14076         Reported by Derek Price.
14077         (Include): Add "timespec.h".
14078
14079         * modules/xnanosleep (Depends-on): Remove gethrxtime.
14080
14081 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
14082
14083         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
14084         to detect nanosleep bug.
14085
14086 2005-03-01  Bruno Haible  <bruno@clisp.org>
14087
14088         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
14089
14090 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
14091
14092         * modules/gethrxtime: New file.
14093         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
14094         (Depends-on): Add gethrxtime.
14095         (configure.ac): Add gl_XNANOSLEEP.
14096         (Makefile.am): Remove lib_SOURCES line.
14097
14098 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
14099
14100         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
14101         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
14102
14103 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
14104
14105         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
14106         * lib/timespec.h (gettime): Return void, since it always
14107         succeeds now.  All uses changed.
14108         * lib/gettime.c (gettime) Likewise.
14109         [HAVE_NANOTIME]: Prefer nanotime.
14110         Assume gettimeofday succeeds, as POSIX requires.
14111         Assime time () succeeds, since other code already does.
14112         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
14113         (timespec_subtract): Remove.
14114         (NANOSLEEP_BUG_WORKAROUND): New constant.
14115         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
14116         things considerably.  Use it only on GNU/Linux hosts, since the
14117         workaround shouldn't be needed elsewhere.
14118
14119 2005-02-24  Bruno Haible  <bruno@clisp.org>
14120
14121         * modules/gettext (Files): Add m4/glibc2.m4.
14122
14123 2005-02-24  Bruno Haible  <bruno@clisp.org>
14124
14125         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
14126         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
14127         * m4/progtest.m4:
14128         Update from GNU gettext 0.14.2.
14129         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
14130
14131 2005-02-24  Bruno Haible  <bruno@clisp.org>
14132
14133         * lib/localcharset.c: Update from GNU gettext 0.14.2.
14134         * lib/config.charset: Update from GNU gettext 0.14.2.
14135
14136 2005-02-24  Bruno Haible  <bruno@clisp.org>
14137
14138         * lib/gettext.h: Update from GNU gettext 0.14.2.
14139
14140 2005-02-23  Simon Josefsson  <jas@extundo.com>
14141
14142         * m4/iconvme.m4: New file.
14143
14144 2005-02-23  Jim Meyering  <jim@meyering.net>
14145
14146         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
14147         change.
14148         Thanks to Bruno Haible for catching it.
14149
14150 2005-02-22  Simon Josefsson  <jas@extundo.com>
14151
14152         * modules/iconvme: New file.
14153
14154         * MODULES.html.sh: Add iconvme.
14155
14156 2005-02-22  Simon Josefsson  <jas@extundo.com>
14157
14158         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
14159
14160 2005-02-22  Simon Josefsson  <jas@extundo.com>
14161
14162         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
14163
14164 2005-02-22  Jim Meyering  <jim@meyering.net>
14165
14166         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
14167         s/ifndef/ifdef/.
14168
14169 2005-02-20  Neil Conway  <neilc@samurai.com>
14170
14171         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
14172         returned by OSX/Darwin if the specified buffer is not large
14173         enough for the hostname.
14174
14175 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
14176
14177         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
14178         pass it to _help, otherwise the latter coredumps trying to
14179         dereference state.root_argp.
14180
14181 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
14182
14183         * modules/chdir-long (Depends-on): Add memrchr.
14184         * modules/memrchr (Files): Add lib/memrchr.h.
14185         (Include): "memrchr.h".
14186
14187 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
14188
14189         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
14190
14191 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
14192
14193         * lib/memrchr.h: New file.
14194         * lib/chdir-long.c: Include it.
14195         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
14196         Don't bother including stddef.h.
14197
14198 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
14199
14200         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
14201         inclusion.
14202         Include <sys/types.h>, for dev_t.
14203         (ME_DUMMY, ME_REMOTE): Move from here....
14204         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
14205         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
14206         Dmitry V. Levin.
14207         Include mountlist.h first, to test the interface.
14208
14209 2005-01-29  Bruno Haible  <bruno@clisp.org>
14210
14211         * lib/progname.c (program_name): Initialize.
14212         Needed when linking statically on MacOS X.
14213
14214 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
14215
14216         Sync from coreutils.
14217         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
14218         (Depends-on): Add c-strtod.
14219         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
14220
14221 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
14222
14223         Sync from coreutils.
14224         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
14225
14226         Remove files that are specific to coreutils.
14227         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
14228
14229 2005-01-28  Bruno Haible  <bruno@clisp.org>
14230
14231         * modules/javacomp: New file.
14232         * MODULES.html.sh (Java): Add javacomp.
14233
14234 2005-01-28  Bruno Haible  <bruno@clisp.org>
14235
14236         * m4/javacomp.m4: New file, from GNU gettext.
14237
14238 2005-01-28  Bruno Haible  <bruno@clisp.org>
14239
14240         * lib/javacomp.sh.in: New file, from GNU gettext.
14241         * lib/javacomp.h: New file, from GNU gettext.
14242         * lib/javacomp.c: New file, from GNU gettext.
14243
14244 2005-01-26  Simon Josefsson  <jas@extundo.com>
14245
14246         * lib/gai_strerror.c: Use GPL in header.
14247
14248 2005-01-26  Bruno Haible  <bruno@clisp.org>
14249
14250         * modules/javaexec: New file.
14251         * MODULES.html.sh (Java): Add javaexec.
14252
14253 2005-01-26  Bruno Haible  <bruno@clisp.org>
14254
14255         * m4/javaexec.m4: New file, from GNU gettext.
14256
14257 2005-01-26  Bruno Haible  <bruno@clisp.org>
14258
14259         * lib/javaexec.sh.in: New file, from GNU gettext.
14260         * lib/javaexec.h: New file, from GNU gettext.
14261         * lib/javaexec.c: New file, from GNU gettext.
14262
14263 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
14264
14265         * modules/lchown (Depends-on): Remove lchown.h
14266
14267 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
14268
14269         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
14270         must be defined if the header file was not found, in order
14271         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
14272
14273 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
14274
14275         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
14276         initializers for struct pentry_state.
14277         (__argp_error): Check return value of __asprintf
14278         (__argp_failure): Translate error message
14279
14280         * lib/argp-parse.c: Removed braces around the expansion of N_()
14281
14282 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
14283
14284         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
14285         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
14286         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
14287         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
14288         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
14289         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
14290         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
14291         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
14292         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
14293         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
14294         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
14295         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
14296         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
14297         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
14298         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
14299         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
14300         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
14301         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
14302         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
14303         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
14304         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
14305         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
14306         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
14307         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
14308         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
14309         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
14310         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
14311         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
14312         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
14313         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
14314         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
14315         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
14316         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
14317         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
14318         xstrtol.m4, xstrtoumax.m4, yesno.m4:
14319         Use an all-permissive copyright notice, recommended by RMS.
14320
14321 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
14322
14323         * modules/chdir-long (Depends-on): Remove mempcpy.
14324
14325 2005-01-21  Jim Meyering  <jim@meyering.net>
14326
14327         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
14328         same value as for Solaris 9.
14329
14330         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
14331         component length.  This included changing the parameter to be
14332         of type `char *' rather than `char const *'.
14333         * lib/chdir-long.h (chdir_long): Update prototype.
14334
14335         * lib/openat.c (fdopendir, fstatat): New functions.
14336         * lib/openat.h: Include headers required for use of DIR and struct
14337         stat.
14338         [AT_SYMLINK_NOFOLLOW]: Define.
14339         (fdopendir, fstatat): Add prototypes.
14340
14341 2005-01-21  Bruno Haible  <bruno@clisp.org>
14342
14343         * modules/classpath: New file.
14344         * MODULES.html.sh (Java): Add classpath.
14345
14346 2005-01-21  Bruno Haible  <bruno@clisp.org>
14347
14348         * lib/classpath.h: New file, from GNU gettext.
14349         * lib/classpath.c: New file, from GNU gettext.
14350
14351 2005-01-20  Simon Josefsson  <jas@extundo.com>
14352
14353         * modules/version-etc-fsf: New file.
14354
14355 2005-01-20  Simon Josefsson  <jas@extundo.com>
14356
14357         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
14358         * lib/version-etc.c: Remove version_etc_copyright.
14359         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
14360         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
14361
14362 2005-01-20  Simon Josefsson  <jas@extundo.com>
14363
14364         * lib/base64.h (isbase64): Add.
14365
14366         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
14367         using a unsigned prototype, don't inline.
14368         (base64_decode): Use it.
14369
14370 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
14371
14372         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
14373         it.
14374
14375 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
14376
14377         * lib/save-cwd.c (save_cwd): Remove code to support the case
14378         where fchdir is missing or flaky.
14379
14380 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
14381
14382         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
14383
14384 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
14385
14386         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
14387         AC_LIBSOURCES now does this.
14388         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
14389         with new ullong_max module.
14390
14391 2005-01-19  Bruno Haible  <bruno@clisp.org>
14392
14393         * modules/sh-quote: New file.
14394         * MODULES.html.sh (Executing programs): Add sh-quote.
14395
14396 2005-01-19  Bruno Haible  <bruno@clisp.org>
14397
14398         * lib/sh-quote.h: New file, from GNU gettext.
14399         * lib/sh-quote.c: New file, from GNU gettext.
14400
14401 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
14402
14403         Merge from coreutils.
14404         * m4/ullong_max.m4: New file.
14405         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
14406         (gl_MACROS): Assume localeconv exists.
14407
14408 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
14409
14410         Merge changes from coreutils, as described below in several
14411         changelogs dated today.
14412
14413         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
14414         (O_DIRECTORY): Remove; not needed here, since "." must be
14415         a directory.  All uses removed.
14416         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
14417         universal on Suns, and we also need to test for IRIX.
14418         Revamp code to use 'if' rather than '#if'.
14419         Avoid unnecessary comparison of cwd->desc to 0.
14420
14421         * lib/utimens.c (futimens): Robustify the previous patch, by checking
14422         for known valid error numbers rather than observed invalid ones.
14423
14424 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
14425
14426         * modules/ullong_max: New file.
14427
14428         * modules/chdir-long, modules/openat: New files.
14429         * modules/save-cwd (Depends-on): Depend on chdir-long.
14430         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
14431
14432 2005-01-18  Jim Meyering  <jim@meyering.net>
14433
14434         Merge from coreutils.
14435         * m4/chdir-long.m4, m4/openat.m4: New files.
14436         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
14437         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
14438         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
14439         is sane and DOES follow symlinks.  Besides, testing 20 different
14440         systems found no broken chown implementations.
14441         Prompted by a change in rsync's copy of this macro.
14442         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
14443
14444         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
14445
14446         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
14447         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
14448         NULL-means-set-to-current-time semantics.
14449         Remove temporary file immediately, rather than waiting
14450         for configure's at-exit trap code to do it.
14451
14452 2005-01-18  Jim Meyering  <jim@meyering.net>
14453
14454         * lib/version-etc.c (version_etc_copyright): Update copyright date.
14455
14456         * lib/utimens.c (futimens): Account for the fact that futimes
14457         can also fail with errno == ENOSYS or errno == ENOENT.
14458         Patch from Dmitry V. Levin.
14459
14460         Change the name of the robust chdir function from chdir to chdir_long.
14461         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
14462         (restore_cwd): Use chdir_long, not chdir.
14463         * lib/chdir-long.c: Renamed from chdir.c.
14464         * lib/chdir-long.h: Renamed from chdir.h.
14465         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
14466         Hurd.
14467
14468 2005-01-18  Bruno Haible  <bruno@clisp.org>
14469
14470         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
14471         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
14472         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
14473         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
14474         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
14475         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
14476         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
14477         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
14478         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
14479         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
14480         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
14481         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
14482         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
14483         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
14484         Use an all-permissive copyright notice, recommended by RMS.
14485
14486 2005-01-18  Bob Proulx  <bob@proulx.com>
14487
14488         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
14489         simplify offsetof() macro construct to avoid compile failure with
14490         native HP-UX 11.0 ANSI C compiler.
14491
14492 2005-01-17  Bruno Haible  <bruno@clisp.org>
14493
14494         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
14495         redundant because stpncpy.m4 takes care of it.
14496
14497 2005-01-17  Bruno Haible  <bruno@clisp.org>
14498
14499         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
14500
14501 2005-01-17  Bruno Haible  <bruno@clisp.org>
14502
14503         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
14504         used.
14505
14506 2005-01-17  Bruno Haible  <bruno@clisp.org>
14507
14508         * lib/fwriteerror.h (fwriteerror): Change specification to include
14509         fclose.
14510         * lib/fwriteerror.c: Include <stdbool.h>.
14511         (fwriteerror): At the end, close the file stream. Record whether
14512         stdout was already closed.
14513
14514 2005-01-17  Bruno Haible  <bruno@clisp.org>
14515
14516         * lib/execute.c (environ): Declare if needed.
14517         * lib/pipe.c (environ): Likewise.
14518         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
14519
14520 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
14521
14522         * modules/argp: Depend on vsnprintf
14523
14524 2005-01-10  Jim Meyering  <jim@meyering.net>
14525
14526         * modules/closeout (Depends-on): Add atexit.
14527
14528 2005-01-06  Bruno Haible  <bruno@clisp.org>
14529
14530         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
14531
14532 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
14533
14534         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
14535         definitions to be after all include files, to avoid collisions.
14536         Problem reported by Bob Proulx.
14537
14538 2005-01-04  Jim Meyering  <jim@meyering.net>
14539
14540         Changes imported from coreutils.
14541         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
14542         as the mkstemp template, use a temporary directory and an
14543         8.3-friendly template to avoid trouble on systems like DJGPP.
14544         Reported by Juan M. Guerrero via Stepan Kasal.
14545         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
14546         close. Remove the temporary directory right away, rather than waiting
14547         for configure's at-exit trap code to do it.
14548         Suggestion from Stepan Kasal.
14549
14550 2005-01-01  Simon Josefsson  <jas@extundo.com>
14551
14552         * gnulib-tool: Print #include directives when --import'ing.
14553
14554 2004-12-28  Simon Josefsson  <jas@extundo.com>
14555
14556         * tests/test-base64.c: Include required header files.  Remove
14557         unused variables.
14558
14559 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
14560
14561         * modules/error (Depends-on): Remove gettext.
14562
14563 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
14564
14565         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
14566         not needed.  This removes a dependency on the gettext module.
14567         [defined _LIBC]: Do not include <libintl.h>; not needed.
14568
14569 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
14570
14571         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
14572         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
14573
14574 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
14575
14576         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
14577         HAVE_DECL_STRTOLD.
14578
14579 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
14580
14581         * modules/getdate (Depends-on): Remove alloca-opt.
14582
14583 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
14584
14585         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
14586
14587 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
14588
14589         * lib/argp-parse.c: Include <stddef.h>.
14590         (alignof, alignto): New macros.
14591         (parser_init): Don't assume that void * is aligned sufficiently
14592         for struct option.
14593
14594         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
14595         need to extend the stack.
14596         (YYINITDEPTH): New macro, so that the initial stack isn't overly
14597         large.
14598
14599 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
14600
14601         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
14602
14603 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
14604
14605         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
14606         (2004-10-24) change.  Apparently this was a false alarm.
14607
14608         * modules/getdate: Depend on alloca-opt, not alloca.
14609
14610 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
14611
14612         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
14613         Remove now-obsolete comment about AIX.
14614         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
14615         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
14616         (YYMAXDEPTH): New macro.
14617
14618 2004-12-18  Simon Josefsson  <jas@extundo.com>
14619
14620         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
14621
14622 2004-12-18  Bruno Haible  <bruno@clisp.org>
14623
14624         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
14625
14626 2004-12-18  Bruno Haible  <bruno@clisp.org>
14627
14628         * lib/fatal-signal.c (fatal_signals): Make non-const.
14629         (init_fatal_signals): New function.
14630         (uninstall_handlers, install_handlers): Ignore signals that were set to
14631         SIG_IGN.
14632         (at_fatal_signal): Call init_fatal_signals.
14633         (init_fatal_signal_set): Likewise. Ignore signals that were set to
14634         SIG_IGN.
14635         Reported by Paul Eggert.
14636
14637 2004-12-18  Bruno Haible  <bruno@clisp.org>
14638
14639         * doc/alloca.texi: New file.
14640         * doc/alloca-opt.texi: New file.
14641
14642 2004-12-17  Jim Meyering  <jim@meyering.net>
14643
14644         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
14645         Otherwise, install-sh could exit with improper exit status when
14646         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
14647
14648 2004-12-16  Simon Josefsson  <jas@extundo.com>
14649
14650         * tests/test-base64.c: Add license.
14651
14652 2004-12-15  Stepan Kasal  <address@hidden>
14653
14654         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
14655
14656 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
14657
14658         * modules/getcwd (Files): Add m4/d-ino.m4.
14659         Suggested by Mark D. Baushke.
14660
14661 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
14662
14663         * lib/getdate.y (textint): New member "negative".
14664         (time_zone_hhmm): New function.
14665         Expect 14 shift-reduce conflicts, not 13.
14666         (o_colon_minutes): New rule.
14667         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
14668         (yylex): Set the "negative" member of signed numbers.
14669
14670 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
14671
14672         * doc/getdate.texi (Time of day items, Time zone items):
14673         Describe new formats +00:00, UTC+00:00.
14674
14675 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
14676
14677         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
14678         spurious "-l"s.  Problem reported by Stepan Kasal.
14679
14680 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
14681
14682         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
14683         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
14684
14685 2004-12-04  Simon Josefsson  <jas@extundo.com>
14686
14687         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
14688         Vandoorselaere <yoann@prelude-ids.org>.
14689
14690 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
14691
14692         Changes imported from coreutils.
14693         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
14694         exist.
14695         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
14696
14697 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
14698
14699         Changes imported from coreutils.
14700         * lib/hard-locale.c: Assume <locale.h> exists.
14701         Include "strdup.h".
14702         (GLIBC_VERSION): New macro.
14703         (hard_locale): Assume setlocale exists.
14704         Rewrite to avoid #ifdef.
14705         Use strdup rather than malloc + strcpy.
14706         * lib/human.c: Assume <locale.h> exists.
14707         (human_readable): Assume localeconv exists.
14708
14709 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
14710
14711         * modules/hard-locale (Depends-on): Add strdup.
14712
14713 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
14714
14715         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
14716         convert T2, not T.  (Imported from libc.)
14717
14718 2004-11-30  Simon Josefsson  <jas@extundo.com>
14719
14720         * modules/restrict (License): Change to LGPL.
14721
14722 2004-11-30  Simon Josefsson  <jas@extundo.com>
14723
14724         * m4/restrict.m4: Add copyright and copying conditions.
14725
14726 2004-11-30  Simon Josefsson  <jas@extundo.com>
14727
14728         * m4/base64.m4: New file.
14729
14730 2004-11-30  Simon Josefsson  <jas@extundo.com>
14731
14732         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
14733         base64.
14734
14735         * tests/test-base64.c: New file.
14736
14737         * modules/base64: New file.
14738
14739 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
14740
14741         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
14742         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
14743
14744         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
14745
14746 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
14747
14748         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
14749         (__getcwd.c): Don't restore errno; glibc doesn't.
14750         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
14751         first, falling back to our code only if its results look suspicious.
14752         Ensure that the resulting buffer is only as large as necessary.
14753
14754         * lib/readutmp.c: Include readutmp.h first.
14755         Include <errno.h>, since readutmp.h no longer does that.
14756         * lib/readutmp.h: Don't include <errno.h>,
14757         <sys/param.h>, <time.h>; not needed to establish interface.
14758         (errno): Remove decl.
14759         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
14760         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
14761         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
14762
14763 2004-11-28  Simon Josefsson  <jas@extundo.com>
14764
14765         * lib/base64.h, base64.c: New file.
14766
14767 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
14768
14769         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
14770
14771 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
14772
14773         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
14774         (Depends-on): Remove pathmax, same.  Add mempcpy.
14775         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
14776         (Makefile.am): Append getcwd.h to lib_SOURCES.
14777         (Include): Add getcwd.h.
14778         (Maintainer): Change from Jim Meyering to "all, glibc",
14779         since getdate now uses intended-for-glibc code.
14780         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
14781         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
14782
14783 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
14784
14785         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
14786         HP's ANSI C compiler.
14787         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
14788         Declaring int functions causes warnings on some modern systems and
14789         shouldn't be needed to compile on ancient ones.
14790         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
14791         defined.
14792
14793         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
14794         with the following changes.
14795         (__set_errno): Parenthesize properly.
14796         Include <stdbool.h>.
14797         (MIN, MAX, MATCHING_INO): New macros.
14798         (__getcwd): Define with prototype, not K&R form.
14799         Use heuristics to allocate default buffer on stack if possible.
14800         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
14801         behavior, and to avoid the PATH_MAX limit when computing
14802         ../../../../...
14803         Use MATCHING_INO to compare inode number to file.
14804         Check for arithmetic overflow in size calculations.
14805         Fix bug in reallocation of dot array that caused getcwd to fail
14806         on directories nested deeper than 75.
14807         Be more careful about saving errno on error.
14808         Do not use realloc; use only free+malloc, as this is a bit
14809         more flexible and avoids a needless copy operation.
14810         Do not inspect st_dev and st_ino for symbolic links; POSIX
14811         doesn't specify the latter.
14812         Check for closedir errors.
14813         Avoid needless casts.
14814         Use "#ifdef weak_alias" around weak_alias, to be like other
14815         glibc code.
14816         The following changes to getcwd.c have effect only when used in
14817         gnulib; they have no effect inside glibc proper.
14818         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
14819         as alloca isn't used.
14820         (alloca, __alloca): Likewise.
14821         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
14822         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
14823         unconditionally, as gnulib assumes C89 or better.
14824         Do not include <sys/param.h>.
14825         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
14826         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
14827         better.
14828         (NULL) [!defined NULL]: Remove; we assume C89 or better.
14829         Include <dirent.h> in a way that is compatible with modern Autoconf.
14830         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
14831         New macros, if not already defined.
14832         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
14833         Use "_LIBC", not "defined _LIBC", for consistency.
14834         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
14835         a mempcpy module.
14836         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
14837         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
14838         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
14839         credit only to Jim Meyering and adjust the copyright dates.
14840         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
14841         <stdlib.h>, <unistd.h>, "pathmax.h".
14842         Instead, include "xgetcwd.h" (first) and "getcwd.h".
14843         (INITIAL_BUFFER_SIZE): Remove.
14844         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
14845
14846 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
14847
14848         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
14849         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
14850         Use the _ONCE methods, for efficiency.
14851         Check for fcntl.h.  In test program, include <errno.h>
14852         and <fcntl.h> if available.  Remove old K&R cruft from
14853         test program.  Check for common errors in GNU/Linux,
14854         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
14855         don't do AC_LIBOBJ, as that's getcwd.m4's job.
14856         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
14857         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
14858         name accordingly.
14859         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
14860         accommodate new getcwd.c.
14861         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
14862         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
14863         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
14864         that's all we need now.
14865
14866 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
14867
14868         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
14869         argp-parse.c depends on getopt internals, that means we should
14870         always use our getopt, to be on the safe side.
14871         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
14872         order not to spoil the result of an eventual previous invocation
14873         of gl_GETOPT_SUBSTITUTE.
14874
14875 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
14876
14877         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
14878         redefinition warnings. To avoid them, include the defines
14879         in `#if !defined __need_getopt ... #endif'. The only place
14880         where __getopt_argv_const is used is in definitions
14881         of getopt_long and getopt_long_only below, which are as well
14882         protected by `#ifndef __need_getopt'.
14883         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
14884         __need_getopt after including <stdio.h> and <unistd.h> These
14885         headers might have defined it.
14886
14887 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
14888
14889         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
14890
14891 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
14892
14893         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
14894         (futimens): New function, which uses futimes if available.
14895         (futimens, utimens): Support timespec==NULL, with same semantics
14896         as utime and utimens.
14897         * lib/utimens.h (futimens): New decl.
14898
14899 2004-11-23  Jim Meyering  <jim@meyering.net>
14900
14901         * lib/getopt_.h: Remove trailing blanks.
14902
14903 2004-11-23  Jim Meyering  <jim@meyering.net>
14904
14905         * lib/__fpending.c: Add comment.
14906
14907 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
14908
14909         * modules/canonicalize (Depends-on): Add xreadlink.
14910         Problem reported by James Youngman.
14911
14912 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
14913
14914         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
14915         New macros.
14916         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
14917         optopt): Use them instead of invoking ## directly; otherwise, the
14918         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
14919
14920 2004-11-19  Bruno Haible  <bruno@clisp.org>
14921
14922         * lib/strtok_r.c: Move comments from here...
14923         * lib/strtok_r.h: ... to here.
14924
14925 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
14926
14927         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
14928         implementations that mishandle size_t overflow.
14929
14930 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
14931
14932         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
14933         might fail.  Problem reported by Yoann Vandoorselaere.
14934         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
14935         implementations that mishandle size_t overflow.
14936
14937 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
14938
14939         * modules/canon-host (Depends-on): Add strdup.
14940
14941 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
14942
14943         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
14944
14945 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
14946
14947         * lib/canon-host.c: Include "strdup.h".
14948         (canon_host): Use getaddrinfo if available, so that IPv6 works.
14949         Use strdup instead of malloc/strcpy to duplicate strings.
14950
14951         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
14952         (human_space_before_unit): New constant.
14953         * lib/human.c (human_readable): Support it.
14954
14955         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
14956         (xgetcwd): Set errno correctly when failing.
14957         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
14958         the failure is actually due to a PATH_MAX problem.
14959
14960         Further getopt changes to make it more likely that glibc will
14961         buy the changes back.
14962         * lib/getopt.c (POSIXLY_CORRECT): New constant.
14963         (getopt): Use it, so to preserve glibc semantic
14964         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
14965         when compiling for libc.
14966         * lib/getopt_.h (__getopt_argv_const): Bring it back.
14967         (getopt_long, getopt_long_only): Use it.
14968
14969         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
14970         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
14971         (getopt): Argv is now char * const *, as per standard.
14972         (_getopt_internal_r, _getopt_internal): Argv is now char **,
14973         not char *__getopt_argv_const *.
14974         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
14975         _getopt_long_only_r): Likewise.
14976         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
14977         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
14978         _getopt_long_r, _getopt_long_only_r): Likewise.
14979         * lib/getopt_.h (__getopt_argv_const): Remove.
14980         (getopt): Argv is now char * const *, as per standard.
14981
14982         * lib/getdate.y (tORDINAL): New token.
14983         (day, relunit): Allow it for relative times.
14984         (relative_time_table): Use tORDINAL for ordinals.
14985
14986 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
14987
14988         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
14989         Document that "second" isn't allowed as an ordinal number.
14990
14991 2004-11-16  Jim Meyering  <jim@meyering.net>
14992
14993         * modules/closeout (Depends-on): Add fpending.
14994
14995 2004-11-15  Jim Meyering  <jim@meyering.net>
14996
14997         * lib/closeout.c: Include "__fpending.h" once again.
14998         Include <stdbool.h>.
14999         (close_stdout): Don't fail just because stdout was closed initially,
15000         since some programs don't write to stdout in the normal course of
15001         operation (other than --version and --help), and we don't want this
15002         function to make e.g. `touch file >&-' fail.
15003         But do fail if it was closed and someone has tried to write to it.
15004         E.g., `printf foo >&-' must fail.
15005
15006 2004-11-13  Jim Meyering  <jim@meyering.net>
15007
15008         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
15009
15010 2004-11-12  Simon Josefsson  <jas@extundo.com>
15011
15012         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
15013         small doc fix is still pending.
15014
15015 2004-11-11  Simon Josefsson  <jas@extundo.com>
15016
15017         * modules/strtok_r: New file.
15018
15019         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
15020         strtok_r.
15021
15022 2004-11-11  Simon Josefsson  <jas@extundo.com>
15023
15024         * m4/strtok_r.m4: New file.
15025
15026         * m4/getopt.m4: Replace opterr.
15027
15028 2004-11-11  Simon Josefsson  <jas@extundo.com>
15029
15030         * lib/strtok_r.h, strtok_r.c: New file.
15031
15032 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
15033
15034         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
15035         of replacing opterr, getopt, etc.  This should handle the
15036         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
15037
15038 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
15039
15040         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
15041         we can stop lying to compilers about the constness of argv when we
15042         are compiled outside glibc.
15043         (getopt, getopt_long, getopt_long_only): Use it.
15044         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
15045         _getopt_internal, getopt): Likewise.
15046         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
15047         _getopt_long_only_r): Likewise.
15048         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
15049         _getopt_long_r, _getopt_long_only_r): Likewise.
15050
15051         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
15052         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
15053         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
15054         the other external symbols.
15055         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
15056         declaration, since the above renaming now works around collisions.
15057
15058 2004-11-11  Jim Meyering  <jim@meyering.net>
15059
15060         * lib/linebreak.c: Remove trailing blanks.
15061         * lib/alloca_.h: Likewise.
15062         * lib/acosl.c: Likewise.
15063         * lib/euidaccess.c: Likewise.
15064         * lib/allocsa.h: Likewise.
15065
15066 2004-11-10  Simon Josefsson  <jas@extundo.com>
15067
15068         * m4/getaddrinfo.m4: New file.
15069
15070 2004-11-10  Simon Josefsson  <jas@extundo.com>
15071
15072         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
15073
15074 2004-11-10  Simon Josefsson  <jas@extundo.com>
15075
15076         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
15077         getaddrinfo.
15078
15079         * modules/getaddrinfo: New file.
15080
15081 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
15082
15083         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
15084
15085 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
15086
15087         * lib/mktime.c (SHR): New macro, which is a portable
15088         substitute for >> that should work even on Crays.
15089         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
15090         Problem reported by Mark D. Baushke in
15091         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
15092         * lib/getdate.y (SHR): Likewise.
15093         (tm_diff): Use it.
15094         * lib/strftime.c (SHR): Likewise.
15095         (tm_diff): Use it.
15096         * lib/quotearg.c (struct quoting_options): Use unsigned int for
15097         quote_these_too, so that right shifts are well defined.  All uses
15098         changed.
15099
15100 2004-11-10  Jim Meyering  <jim@meyering.net>
15101
15102         Ensure that no close failure goes unreported.
15103         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
15104         return early when it seems there's nothing to flush.
15105         Don't include __fpending.h.
15106
15107 2004-11-10  Jim Meyering  <jim@meyering.net>
15108
15109         * modules/closeout (Depends-on): Remove fpending.
15110
15111 2004-11-10  Jim Meyering  <jim@meyering.net>
15112
15113         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
15114
15115 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
15116
15117         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
15118         gl_FUNC_STRFTIME.
15119         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
15120         and AC_REQUIRE when possible, to avoid duplicate checks.
15121         Check for <wchar.h>.
15122
15123 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
15124
15125         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
15126
15127 2004-11-09  Bruno Haible  <bruno@clisp.org>
15128
15129         * m4/sockpfaf.m4: New file.
15130
15131 2004-11-05  Bruno Haible  <bruno@clisp.org>
15132
15133         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
15134         Reported by Mark D. Baushke <mdb@cvshome.org>.
15135
15136 2004-11-04  Bruno Haible  <bruno@clisp.org>
15137
15138         2004-09-11  Bruno Haible  <bruno@clisp.org>
15139                 * allocsa.valgrind: New file.
15140         2004-02-06  Bruno Haible  <bruno@clisp.org>
15141                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
15142                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
15143                 Reported by Christopher Seip <chris.seip@hp.com>.
15144
15145 2004-11-04  Bruno Haible  <bruno@clisp.org>
15146
15147         * modules/allocsa (Files): Add lib/allocsa.valgrind.
15148         (Makefile.am): Distribute it.
15149
15150 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
15151
15152         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
15153         with errno == ERANGE if the buffer is too small.
15154         Problem reported by Mark D. Baushke.
15155
15156 2004-11-03  Albert Chin  <china@thewrittenword.com>
15157             Paul Eggert  <eggert@cs.ucla.edu>
15158
15159         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
15160         equivalent, substitute $ac_type for equivalent type rather than
15161         blindly using uint32_t *always* which won't work if uint32_t is not
15162         available.  Define _UINT32_T to work around typedef of uint32_t if
15163         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
15164         2.5.1.
15165
15166 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
15167
15168         * m4/jm-macros.m4: Sync from coreutils.
15169         (gl_MACROS): Check for mbrlen, for pathchk.
15170         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
15171
15172 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
15173
15174         * lib/xreadlink.c (MAXSIZE): New macro.
15175         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
15176         size does not exceed MAXSIZE.  Avoid cast.
15177         As suggested by Mark D. Baushke in
15178         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
15179         if readlink fails with buffer size just under MAXSIZE, try again
15180         with MAXSIZE.
15181
15182 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
15183
15184         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
15185
15186 2004-11-02  Derek R. Price  <derek@ximbiot.com>
15187         and  Paul Eggert  <eggert@cs.ucla.edu>
15188
15189         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
15190         (get_date): Overparenthesize to avoid GCC warning.
15191
15192 2004-11-02  Bruno Haible  <bruno@clisp.org>
15193
15194         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
15195         returns void.
15196
15197 2004-11-02  Bruno Haible  <bruno@clisp.org>
15198
15199         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
15200         function returns void.
15201
15202 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
15203
15204         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
15205         fflush_unlocked, flockfile, funlockfile, funlockfile,
15206         fputs_unlocked, putc_unlocked.
15207
15208 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
15209
15210         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
15211         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
15212         already declared.
15213
15214 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
15215
15216         * modules/getdate (Files): Add doc/getdate.texi.
15217         (Depends-on): Add setenv, xalloc.
15218
15219 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
15220
15221         * lib/getdate.y: Add support for TZ="foo" within a date string.
15222         Fix some bugs near time_t boundaries.  Reject dates with
15223         out-of-range components, e.g., "Sept 31".
15224         Include <stdlib.h>, "setenv.h", "xalloc.h".
15225         (ISDIGIT_LOCALE): Remove; unused.
15226         Note that the TZ and time functions used here are not reentrant.
15227         (mktime_ok, get_tz): New functions.
15228         (TZBUFSIZE): New constant.
15229         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
15230         This requires that we sometimes generate our own TZ="XXX..." setting.
15231
15232 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
15233
15234         * doc/getdate.texi: New file, from coreutils with modifications for
15235         the new TZ parsing.
15236
15237 2004-10-27  Derek R. Price  <derek@ximbiot.com>
15238
15239         * lib/mktime.c (not_equal_tm): Remove redundant check.
15240
15241 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
15242
15243         * modules/regex (lib_SOURCES): Add regex.c.
15244         Reported by James Youngman in
15245         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
15246
15247 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
15248
15249         * lib/getdate.y: Use Bison 1.875 features, and some minor
15250         code cleanups.  This change does not affect semantics.
15251         Don't include <stdlib.h>; no longer needed.
15252         Don't include unlocked-io.h; only the "#if TEST" code uses
15253         stdio, and performance isn't crucial there.
15254         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
15255         Bison 1.875 features as described below.
15256         All uses of "PC." replaced by "pc->".
15257         (YYSTYPE): Add a forward declaration.
15258         (yylex, yyerror): Use full prototypes in forward decls.
15259         Use "%pure-parser" rather than obsolescent "%pure_parser".
15260         Use %parse-param and %lex-param instead of obsolescent
15261         YYPARSE_PARAM and YYLEX_PARAM.
15262         (meridian_table, month_and_day_table, time_units_table,
15263         relative_time_table, time_zone_table, military_table,
15264         lookup_zone, lookup_word, get_date):
15265         Use NULL instead of 0 where appropriate.
15266         (to_hour): Avoid abort (), to avoid a dependency on
15267         stdlib.h.
15268         (yyerror, yylex): Now accepts parser_control * arg.
15269         (main) [TEST]: Use '\0' rather than 0 for char.
15270
15271 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
15272
15273         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
15274
15275 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
15276
15277         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
15278         It's now the caller's responsibility to handle the case where
15279         !HAVE_GETPAGESIZE && !defined getpagesize.
15280
15281         * lib/mktime.c (leapyear): Arg is long int, not int.
15282
15283 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
15284
15285         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
15286
15287 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
15288
15289         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
15290         missing.  Problem reported by James Youngman.
15291
15292 2004-10-16  Simon Josefsson  <jas@extundo.com>
15293
15294         * gnulib-tool: Fix comments.  Fix parse problem.
15295         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
15296
15297 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
15298
15299         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
15300         implementation of getopt_long.  Problem reported by Alexander Taler in:
15301         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
15302
15303 2004-10-15  Bruno Haible  <bruno@clisp.org>
15304
15305         * gnulib-tool: Untabify. Initialize supplied_libname.
15306         (func_usage): More homogenous output.
15307         (func_modules_transitive_closure, func_modules_to_filelist,
15308         func_emit_lib_Makefile_am): New functions.
15309         (func_import): New function, extracted from big case statement. Use
15310         func_get_license, func_modules_transitive_closure,
15311         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
15312         opt_lgpl. Don't use test -a, as it's not portable.
15313         (func_create_testdir): Use func_modules_transitive_closure,
15314         func_modules_to_filelist, func_emit_lib_Makefile_am.
15315
15316 2004-10-15  Bruno Haible  <bruno@clisp.org>
15317
15318         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
15319
15320 2004-10-15  Bruno Haible  <bruno@clisp.org>
15321
15322         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
15323         the portions belonging to each module.
15324         Suggested by Derek Robert Price <derek@ximbiot.com>.
15325
15326 2004-10-12  Simon Josefsson  <jas@extundo.com>
15327
15328         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
15329         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
15330         to real functions.
15331
15332 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
15333
15334         * modules/vsnprintf: New file.
15335
15336 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
15337
15338         * m4/vsnprintf.m4: New file.
15339
15340 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
15341
15342         * lib/vsnprintf.h: New file.
15343         * lib/vsnprintf.c: New file.
15344
15345 2004-10-11  Bruno Haible  <bruno@clisp.org>
15346
15347         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
15348         vsnprintf.
15349
15350 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
15351
15352         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
15353
15354 2004-10-07  Bruno Haible  <bruno@clisp.org>
15355
15356         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
15357         fits into the provided buffer.
15358
15359 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
15360
15361         * lib/diacrit.c, diacrit.h: Add GPL notice.
15362
15363         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
15364         notice.
15365         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
15366         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
15367         This avoids a potential constant-folding bug.
15368
15369 2004-10-05  Bruno Haible  <bruno@clisp.org>
15370
15371         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
15372         for the declaration of strsep.
15373
15374 2004-10-05  Bruno Haible  <bruno@clisp.org>
15375
15376         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
15377
15378 2004-10-04  Simon Josefsson  <jas@extundo.com>
15379
15380         * modules/memmem: New file.
15381         * tests/test-memmem.c: New file.
15382         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
15383
15384 2004-10-04  Simon Josefsson  <jas@extundo.com>
15385
15386         * m4/memmem.m4: New file.
15387
15388 2004-10-04  Simon Josefsson  <jas@extundo.com>
15389
15390         * lib/memmem.h: New file.
15391         * lib/memmem.c: New file, taken from glibc.
15392
15393 2004-10-04  Simon Josefsson  <jas@extundo.com>
15394
15395         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
15396         '#ifdef USE_UNLOCKED_IO'.
15397
15398 2004-10-04  Simon Josefsson  <jas@extundo.com>
15399
15400         * config/srclist.txt: Add memmem from glibc.
15401
15402 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
15403
15404         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
15405
15406         * modules/argmatch, modules/argp, modules/closeout, modules/error,
15407         modules/exclude, modules/getdate, modules/getline,
15408         modules/getndelim2, modules/getpass, modules/getpass-gnu,
15409         modules/getusershell, modules/linebuffer, modules/md5,
15410         modules/mountlist, modules/posixtm, modules/readtokens,
15411         modules/readutmp, modules/regex, modules/sha1,
15412         modules/version-etc, modules/yesno:
15413         Remove dependency on unlocked-io.
15414
15415 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
15416
15417         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
15418
15419         * m4/unlocked-io.m4: Add copyright notice.
15420         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
15421
15422 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
15423
15424         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
15425         * lib/xmalloc.c (xmemdup): Likewise.
15426         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
15427         XFREE): Remove these long-obsolescent macros.
15428         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
15429         * lib/xstrdup.c: Remove.
15430
15431         * lib/regex.c (re_comp): Cast gettext return value to char *,
15432         Problem reported by Martin Neitzel via Mark D. Baushke.
15433
15434 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
15435
15436         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
15437         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
15438         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
15439         regex.c, sha1.c, version-etc.c, yesno.c:
15440         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
15441         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
15442         the includer's responsibility.
15443
15444         Sync from coreutils.
15445
15446         * lib/modechange.c (mode_compile): Don't decrement a pointer that
15447         points to the start of a string, as the C Standard says the
15448         resulting behavior is undefined.
15449
15450         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
15451         simple -> simple_backups, numbered_existing ->
15452         numbered_existing_backups, numbered -> numbered_backups
15453         to avoid shadowing problems.  All uses changed.
15454         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
15455         * lib/backupfile.c (check_extension, numbered_backup):
15456         Rename locals to avoid shadowing 'basename'.
15457         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
15458         once.
15459
15460         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
15461         * lib/.cvsignore: Add getopt.h.
15462
15463 2004-10-04  Bruno Haible  <bruno@clisp.org>
15464
15465         * modules/README: New file.
15466         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
15467         not a module.
15468
15469 2004-10-02  Jim Meyering  <jim@meyering.net>
15470
15471         * lib/dirfd.h, getpagesize.h: Add copyright notice.
15472
15473 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
15474
15475         * modules/strsep: New file.
15476
15477 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
15478
15479         * m4/strsep.m4: New file.
15480
15481 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
15482
15483         * lib/strsep.h: New file.
15484         * lib/strsep.c: New file.
15485
15486 2004-10-01  Simon Josefsson  <jas@extundo.com>
15487
15488         * lib/snprintf.c (snprintf): Handle size==0.
15489
15490 2004-10-01  Simon Josefsson  <jas@extundo.com>
15491             Bruno Haible  <bruno@clisp.org>
15492
15493         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
15494         (snprintf): Declare 'args'.
15495
15496 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
15497
15498         * lib/snprintf.c: Remove comments as to why each header is needed.
15499
15500 2004-10-01  Bruno Haible  <bruno@clisp.org>
15501
15502         * MODULES.html.sh: Add strsep.
15503
15504 2004-09-30  Simon Josefsson  <jas@extundo.com>
15505
15506         * modules/snprintf: New file.
15507
15508 2004-09-30  Simon Josefsson  <jas@extundo.com>
15509
15510         * m4/snprintf.m4: New file.
15511
15512 2004-09-30  Simon Josefsson  <jas@extundo.com>
15513
15514         * lib/snprintf.h, lib/snprintf.c: New files.
15515
15516 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
15517
15518         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
15519         (hol_entry_help): Never translate an empty string.
15520         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
15521         * lib/argp.h (OPTION_NO_TRANS): New option.
15522
15523 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
15524
15525         * modules/argp (Maintainer): Replace Simon Josefsson
15526         by Sergey Poznyakoff.
15527
15528 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
15529
15530         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
15531         changes merged back into glibc.
15532
15533 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
15534
15535         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
15536
15537 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
15538
15539         * lib/xvasprintf.c: Include xalloc.h.
15540         (xvasprintf): Use xalloc_die, not xmalloc_die.
15541
15542 2004-09-29  Bruno Haible  <bruno@clisp.org>
15543
15544         * modules/alloca-opt: New file, derived from modules/alloca.
15545         * modules/allocsa: Depend on alloca-opt instead of alloca.
15546         * modules/setenv: Likewise.
15547         * modules/vasnprintf: Likewise.
15548         * MODULES.html.sh: Add alloca-opt.
15549
15550 2004-09-28  Simon Josefsson  <jas@extundo.com>
15551
15552         * gnulib-tool: New parameter --lgpl, to asseert that modules are
15553         LGPL, and to replace license template from GPL to LGPL.
15554
15555 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
15556
15557         * modules/dummy: Change license to LGPL.
15558
15559 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
15560
15561         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
15562
15563 2004-09-24  Simon Josefsson  <jas@extundo.com>
15564
15565         * modules/minmax (License): Change from GPL to LGPL.
15566
15567 2004-09-23  Simon Josefsson  <jas@extundo.com>
15568
15569         * gnulib-tool (--import): Typo.
15570
15571 2004-09-23  Simon Josefsson  <jas@extundo.com>
15572
15573         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
15574
15575 2004-09-22  Bruno Haible  <bruno@clisp.org>
15576
15577         * modules/*: Add 'License' field.
15578         * gnulib-tool: Accept --extract-license option.
15579         (func_get_license): New function.
15580
15581 2004-09-21  Bruno Haible  <bruno@clisp.org>
15582
15583         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
15584         Reported by Simon Josefsson.
15585
15586 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
15587
15588         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
15589         gl_AC_TYPE_LONG_LONG.
15590
15591 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
15592
15593         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
15594
15595 2004-09-18  Simon Josefsson  <jas@extundo.com>
15596         and  Paul Eggert  <eggert@cs.ucla.edu>
15597
15598         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
15599         calls with autoreconf.  Define GL_LIB.
15600
15601 2004-09-14  Karl Berry  <karl@gnu.org>
15602
15603         * config/srclist.txt: unsync setenv.c, sigh.
15604
15605 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
15606
15607         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
15608         Problem reported by Bruno Haible in:
15609         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
15610
15611 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
15612
15613         * config/srclist.txt: Comment out argp-pvh.c.
15614
15615 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
15616
15617         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
15618         in case some system header has #define'd it.  Problem reported by
15619         Soeren D. Schulze in
15620         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
15621
15622 2004-09-09  Karl Berry  <karl@gnu.org>
15623
15624         * regex.[ch]: delete from the root.  These were supposed to be
15625                 synced with emacs cvs, but this has not happened for about
15626                 a year, and anyway nothing else uses emacs regex.[ch].
15627                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
15628                 lib/regex[.ch] is untouched.
15629
15630 2004-09-09  Bruno Haible  <bruno@clisp.org>
15631
15632         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
15633
15634 2004-09-09  Bruno Haible  <bruno@clisp.org>
15635
15636         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
15637         modifications.
15638         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
15639
15640 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
15641
15642         * modules/xvasprintf: New file.
15643         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
15644
15645 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
15646
15647         * lib/xvasprintf.h: New file.
15648         * lib/xvasprintf.c: New file.
15649         * lib/xasprintf.c: New file.
15650
15651 2004-09-08  Bruno Haible  <bruno@clisp.org>
15652
15653         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
15654
15655 2004-09-08  Bruno Haible  <bruno@clisp.org>
15656
15657         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
15658         length is > INT_MAX.
15659         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
15660         more.
15661
15662 2004-09-08  Bruno Haible  <bruno@clisp.org>
15663
15664         * lib/stdint_.h: New file, taken from GNU clisp.
15665
15666 2004-09-08  Bruno Haible  <bruno@clisp.org>
15667             Oskar Liljeblad  <oskar@osk.mine.nu>
15668
15669         * modules/stdint: New file.
15670         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
15671
15672 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
15673
15674         Import from coreutils.
15675         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
15676         strings on unbounded length.  alloca's performance benefits aren't
15677         that important here.
15678         (V_STRDUP): Remove.
15679         (parse_with_separator): New function, with most of the internals
15680         of the old parse_user_spec.  Allow user to omit both user and group,
15681         for compatibility with FreeBSD.
15682         Clone only the user name, not the entire spec.
15683         Do not set *uid, *gid unless entirely successful.
15684         Avoid memory leak in some failing cases.
15685         Fix regression for USER.GROUP reported by Dmitry V. Levin in
15686         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
15687         (parse_user_spec): Rewrite to use parse_with_separator.
15688
15689 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
15690
15691         * modules/userspec: Don't depend on alloca.
15692
15693 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
15694
15695         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
15696
15697 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
15698
15699         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
15700         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
15701         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
15702
15703 2004-08-16  Simon Josefsson  <jas@extundo.com>
15704
15705         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
15706         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
15707         Add --dry-run for --import.
15708         Let user provided command line parameters override configure.ac
15709         settings.
15710
15711 2004-08-12  Simon Josefsson  <jas@extundo.com>
15712
15713         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
15714         as discussed with Paul Eggert in threads rooted at
15715         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
15716         and
15717         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
15718         Before, the test was empty, and relied on ELIDE_CODE in source
15719         code.)
15720         (gl_PREREQ_GETOPT): New macro.
15721         (gl_GETOPT): Use them.
15722
15723 2004-08-12  Simon Josefsson  <jas@extundo.com>
15724
15725         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
15726         * lib/getopt_.h: Renamed from getopt.h.
15727
15728 2004-08-12  Simon Josefsson  <jas@extundo.com>
15729
15730         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
15731         Change default library name from libfoo to libgnu.
15732         Now, if you have a configure.ac that says:
15733                 gl_SOURCE_BASE(gl)
15734                 gl_M4_BASE(gl/m4)
15735                 gl_MODULES(error getopt etcetera)
15736                 gl_INIT
15737         you can import all you need by running:
15738                 ../gnulib/gnulib-tool --import
15739
15740         * modules/getopt (Files): Rename getopt.h to getopt_.h.
15741         (Makefile.am): Rewrite, use logic from argz.
15742         (Include): Use <getopt.h> instead of "getopt.h".
15743
15744 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
15745
15746         * modules/argp (Files): Add m4/unlocked-io.m4.
15747         (Depends-on): Add extensions.
15748
15749 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
15750
15751         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
15752         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
15753         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
15754         Check for program_invocation_name, program_invocation_short_name,
15755         flockfile, funlockfile, features.h, _getopt_long_only_r.
15756
15757 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
15758
15759         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
15760         its complicated substitute.
15761         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
15762         and program_invocation_name.
15763         (__argp_basename) [!_LIBC]: Remove; the only use was
15764         replaced by its body.
15765         (__argp_short_program_name): Change condition from
15766         !defined __argp_short_program_name to
15767         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
15768         to match argp-namefrob.h.
15769         (__argp_failure): Don't assume strerror_r returns char *.
15770         * lib/argp-parse.c (N_): Define unconditionally.
15771         (argp_default_options): Fill out initializers with 0 to avoid
15772         gcc warnings.
15773
15774 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
15775
15776         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
15777         getopt1.c.
15778
15779 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
15780
15781         Merge from coreutils.
15782
15783         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
15784
15785         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
15786         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
15787
15788 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
15789
15790         Merge from coreutils.
15791
15792         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
15793         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
15794         for Reliant Unix 5.43.
15795
15796         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
15797         (union fooround): Use uintmax_t, not long int.
15798         The rest is a merge from libc:
15799         [defined _LIBC]: Include <shlib-compat.h>.
15800         (_obstack) [defined _LIBC]: Remove after 2.3.4.
15801
15802         * lib/settime.c (settime): Recode to avoid warning with
15803         Sun Forte C 6U2.
15804
15805         * lib/strverscmp.c: Convert to UTF-8.
15806
15807 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
15808
15809         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
15810         m4/uintmax_t.m4.
15811
15812 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
15813
15814         * modules/xalloc-die: New file.
15815         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
15816
15817         * modules/md5 (Files): Add m4/uint32_t.m4.
15818         * modules/sha1: Renamed from modules/sha.
15819         (Files):
15820         Rename lib/sha.h to lib/sha1.h.
15821         Rename lib/sha.c to lib/sha1.c.
15822         Rename m4/sha.m4 to m4/sha1.m4.
15823         (lib_SOURCES): Likewise.
15824         (configure.ac): Rename gl_SHA to gl_SHA1.
15825         (Include): sha.h -> sha1.h.
15826
15827 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
15828
15829         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
15830         * m4/sha1.m4: Renamed from sha.m4.
15831         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
15832
15833 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
15834
15835         * lib/obstack.h (obstack_empty_p):
15836         Don't assume that chunk->contents is suitably aligned.
15837         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
15838         Likewise. Problem reported by Benno in
15839         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
15840
15841         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
15842         readable.  This could be improved further but it'd take some work.
15843
15844 2004-08-08  Simon Josefsson  <jas@extundo.com>
15845
15846         * modules/xgethostname (Depends-on): Remove exit and error (not
15847         used).
15848
15849         * modules/getpass-gnu: Add getpass.h.
15850         (Depends-on): Add stdbool.
15851         * modules/getpass: Add getpass.h.
15852
15853 2004-08-08  Simon Josefsson  <jas@extundo.com>
15854
15855         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
15856         Check getpass declaration.
15857
15858 2004-08-08  Simon Josefsson  <jas@extundo.com>
15859
15860         * lib/xgethostname.c: Don't include error.h (not used).
15861
15862         * lib/getpass.h: Add.
15863         * lib/getpass.c: Include getpass.h first.
15864
15865 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
15866
15867         * lib/xalloc-die.c: New file.
15868         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
15869         All uses removed.
15870         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
15871         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
15872         xalloc-die.c.
15873         (_, N_, xalloc_die): Move to xalloc-die.c.
15874         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
15875         so that we needn't mess with xalloc_msg_memory_exhausted.
15876
15877         * lib/sha1.h: Renamed from sha.h.
15878         (SHA1_H): Renamed from _SHA_H.
15879         (sha1_ctx): Renamed from sha_ctx.
15880         (sha1_init_ctx): Renamed from sha_init_ctx.
15881         (sha1_process_block): Renamed from sha_process_block.
15882         (sha1_process_bytes): Renamed from sha_process_bytes.
15883         (sha1_finish_ctx): Renamed from sha_finish_ctx.
15884         (sha1_read_ctx): Renamed from sha_read_ctx.
15885         (sha1_stream): Renamed from sha_stream.
15886         (sha1_buffer): Renamed from sha_buffer.
15887         * lib/sha1.c: Likewise; renamed from sha.c.
15888         Do not include <sys/types.h>.
15889         Include <stddef.h> rather than <stdlib.h>.
15890
15891 2004-08-08  Bruno Haible  <bruno@clisp.org>
15892
15893         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
15894         FILESYSTEM_PREFIX_LEN.
15895         * lib/progreloc.c: Likewise.
15896         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
15897
15898 2004-08-06  Simon Josefsson  <jas@extundo.com>
15899
15900         * modules/progname (Depends-on): Don't depend on stdbool.
15901
15902 2004-08-06  Simon Josefsson  <jas@extundo.com>
15903
15904         * modules/getsubopt: New file.
15905         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
15906         getsubopt.
15907
15908 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
15909
15910         More merge from coreutils.
15911
15912         * m4/utimens.m4, m4/utimecmp.m4: New files.
15913         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
15914         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
15915         prereq.m4, sha.m4: Import changes from coreutils.
15916
15917 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
15918
15919         More merge from coreutils.
15920         * modules/raise, modules/readtokens0, modules/utimens:
15921         * modules/utimecmp, module/xnanosleep: New files.
15922         * modules/strftime: Add lib/strftime.h.
15923         Change include from <time.h> to "strftime.h".
15924         * modules/yesno: Add lib/yesno.h.
15925         * modules/backupfile: Remove lib/addext.c.
15926         * modules/euidaccess: Add stat-macros.h.
15927         * modules/canonicalize, modules/euidaccess,
15928         modules/filemode, modules/lchown, modules/makepath,
15929         modules/rmdir, modules/stat: Likewise.
15930
15931 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
15932
15933         Merge from tar.
15934         * lib/argp-help.c (make_hol, hol_append): Don't assume that
15935         SIZE_MAX is a valid preprocessor constant.
15936         (__argp_basename): Change from "#ifndef _LIBC"
15937         to "#ifndef __argp_short_program_name", so that
15938         we don't compile these functions for tar.
15939
15940         More merges from coreutils.
15941         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
15942         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
15943         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
15944         * lib/addext.c: Remove; no longer needed.
15945         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
15946         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
15947         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
15948         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
15949         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
15950         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
15951         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
15952         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
15953         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
15954         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
15955         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
15956         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
15957         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
15958         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
15959         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
15960         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
15961         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
15962         Import changes from coreutils.
15963
15964 2004-08-05  Simon Josefsson  <jas@extundo.com>
15965
15966         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
15967
15968 2004-08-05  Simon Josefsson  <jas@extundo.com>
15969
15970         * m4/getsubopt.m4: New file.
15971
15972 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
15973
15974         Merge from coreutils.
15975
15976         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
15977         * m4/getcwd-path-max.m4: New files.
15978
15979         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
15980         FILESYSTEM_PREFIX_LEN ->
15981         FILE_SYSTEM_PREFIX_LEN.
15982         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
15983         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
15984         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
15985         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
15986
15987         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
15988         prerequisite modules now handle the DOS stuff.
15989         Don't check for unistd.h.
15990
15991 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
15992
15993         Merge from coreutils.
15994
15995         * lib/.gdb-history: Remove; this doesn't belong here.
15996
15997         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
15998         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
15999         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
16000         * lib/getcwd.c: New files.
16001
16002         * lib/dirname.h: Include <stdbool.h>.
16003         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
16004         for consistency with POSIX terminology.  All uses changed.
16005         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
16006         (strip_trailing_slashes): Use bool for booleans.
16007         * lib/stripslash.c (strip_trailing_slashes): Likewise.
16008
16009         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
16010         sometimes returns a positive errno value even when it succeeds.
16011         (print_errno_message) [!LIBC]: Fall back on strerror if
16012         __strerror_r fails.
16013
16014         * lib/path-concat.c (mempcpy): Don't define if a system header defines
16015         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
16016         (longest_relative_suffix): New function.
16017         (path_concat): Use it.  Assume first argument is not NULL.
16018         Port to DOS.  Omit redundant separators.
16019         Report an error instead of returning NULL.
16020         Use mempcpy instead of memcpy.
16021         (xpath_concat): Remove: not declared or used.
16022
16023         * lib/same.h: Include <stdbool.h>
16024         (same_name): Return bool, not int.
16025         * lib/same.c (same_name): Likewise.
16026         (errno): Don't declare; we assume C89 or better now.
16027
16028         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
16029         if not already defined.
16030
16031         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
16032         * lib/dup-safer.c (errno): Likewise.
16033
16034 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
16035
16036         Merge from coreutils.
16037         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
16038         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
16039         * modules/path-concat: Don't depend on strdup.
16040
16041 2004-08-03  Simon Josefsson  <jas@extundo.com>
16042
16043         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
16044         * lib/progname.h: Don't include stdbool.h.
16045
16046 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
16047
16048         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
16049         * MODULES.html.sh (func_all_modules): Remove fatal.
16050
16051 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
16052
16053         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
16054
16055 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
16056
16057         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
16058         working.
16059
16060 2004-08-02  Simon Josefsson  <jas@extundo.com>
16061
16062         * lib/getsubopt.h: New file, with comments from Bruno Haible.
16063         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
16064         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
16065
16066 2004-08-01  Simon Josefsson  <jas@extundo.com>
16067
16068         * lib/xgetdomainname.c: Include stdlib.h, for free().
16069
16070 2004-07-19  Bruno Haible  <bruno@clisp.org>
16071
16072         * MODULES.html.sh (func_all_modules): Add dummy.
16073
16074 2004-07-16  Simon Josefsson  <jas@extundo.com>
16075
16076         * modules/dummy: New file.
16077
16078 2004-07-16  Simon Josefsson  <jas@extundo.com>
16079
16080         * lib/dummy.c: New file.
16081
16082 2004-07-16  Bruno Haible  <bruno@clisp.org>
16083
16084         * lib/backupfile.h: Add extern "C" for C++.
16085         * lib/closeout.h: Likewise.
16086         * lib/copy-file.h: Likewise.
16087         * lib/findprog.h: Likewise.
16088         * lib/full-write.h: Likewise.
16089         * lib/pathname.h: Likewise.
16090         * lib/progname.h: Likewise.
16091         * lib/stpcpy.h: Likewise.
16092         * lib/stpncpy.h: Likewise.
16093         * lib/strcase.h: Likewise.
16094         * lib/strstr.h: Likewise.
16095         * lib/xalloc.h: Likewise.
16096
16097         * lib/mbswidth.h: Add extern "C" for C++.
16098         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
16099
16100 2004-07-13  Robert Millan  <robertmh@gnu.org>
16101
16102         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
16103
16104 2004-07-09  Simon Josefsson  <jas@extundo.com>
16105
16106         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
16107         failed without this.)
16108
16109 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
16110
16111         * modules/chown (Files): Add lib/fchown-stub.c, since
16112         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
16113
16114 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
16115
16116         * lib/fchown-stub.c: New file.
16117
16118 2004-06-24  Jim Meyering  <jim@meyering.net>
16119
16120         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
16121
16122 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
16123
16124         * modules/argz: Omit "#include".
16125
16126         * MODULES.html.sh (func_all_modules): Add calloc, to match
16127         2004-06-01 addition of calloc module.
16128
16129 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
16130
16131         * m4/argz.m4: New file, which is autoupdated from libtool.
16132
16133 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
16134
16135         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
16136         libtool.
16137
16138 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
16139
16140         * config/srclist-update: Don't insist on "USA." before the
16141         close-comment, as libtool omits the period and puts the */ on a
16142         separate line.
16143         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
16144         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
16145
16146 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
16147
16148         * modules/argz: New file.
16149         * MODULES.html.sh (func_all_modules): Add argz.
16150
16151 2004-06-12  Jim Meyering  <jim@meyering.net>
16152         and  Paul Eggert  <eggert@cs.ucla.edu>
16153
16154         * modules/hash (Files): Add lib/xalloc.h.
16155         * modules/pipe (Depends-on): Add wait-process.
16156         * modules/stat (Depends-on): Add xalloc.
16157         * modules/userspec (Files): Add lib/userspec.h.
16158         * modules/xstrto
16159
16160         Upgrade from gettext-0.13.
16161         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
16162         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
16163         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
16164
16165 2004-06-10  Jim Meyering  <jim@meyering.net>
16166
16167         * lib/calloc.c: New file.
16168
16169 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
16170
16171         * lib/getdate.y (yylex): Allow space between sign and number.
16172         Problem reported by Dan Jacobson.
16173
16174 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
16175
16176         Merge from coreutils CVS.
16177
16178         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
16179         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
16180         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
16181         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
16182         xstrtol.m4: Fix copyright date and/or serial number.
16183
16184         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
16185         See if we need an fchown replacement.
16186         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
16187         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
16188         and use the replacement function if we detect either defect.
16189
16190         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
16191         gl_UTIMECMP.
16192
16193 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
16194         and  Jim Meyering  <jim@meyering.net>
16195
16196         Merge from coreutils CVS.
16197
16198         * lib/stat-macros.h: New file, with contents from file-type.h
16199         and coreutils' system.h.
16200         * lib/file-type.c: Include "stat-macros.h".
16201         * lib/file-type.h (file_type): Move all macro definitions to new file,
16202         stat-macros.h.
16203
16204         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
16205         Wrap old code with this conditional.
16206         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
16207         function that does not dereference symlinks.
16208         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
16209
16210         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
16211         dependency problems.
16212         (xreadlink): Accept new arg SIZE, for efficiency.
16213         All decls and uses changed.
16214         * lib/xreadlink.h: Include <stddef.h>, for size_t.
16215
16216         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
16217         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
16218
16219         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
16220         sysexits.h.
16221
16222 2004-06-01  Jim Meyering  <jim@meyering.net>
16223
16224         * m4/calloc.m4: New file.
16225
16226 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
16227
16228         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
16229         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
16230         Also, fix a typo in a diagnostic.
16231
16232 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
16233
16234         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
16235         or AC_FUNC_REALLOC.
16236
16237 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
16238
16239         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
16240         macros to be defined.
16241         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
16242         the allocator returns NULL because the requested size is zero.
16243
16244 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
16245
16246         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
16247         var.  Add comment explaining why libc still defines it.  This
16248         merges the following patch from glibc:
16249         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
16250
16251 2004-05-20  Andreas Schwab  <schwab@suse.de>
16252
16253         * m4/free.m4: Replace free if it not known to work, not the other
16254         way round.
16255
16256 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
16257
16258         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
16259         present in glibc since revision 1.1 of this file.
16260         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
16261         obstack_alignment_mask, obstack_alloc, obstack_base,
16262         obstack_blank, obstack_blank_fast, obstack_chunk_size,
16263         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
16264         obstack_grow0, obstack_init, obstack_int_grow,
16265         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
16266         obstack_next_free, obstack_object_size, obstack_ptr_grow,
16267         obstack_ptr_grow_fast, obstack_room): Remove declarations of
16268         nonexistent functions.
16269
16270 2004-05-18  Karl Berry  <karl@gnu.org>
16271
16272         * config/srclist.txt: break link for vasnprintf.c.
16273
16274 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
16275
16276         Port obstack to the AS/400, where pointers are 16 bytes wide and
16277         you cannot cast an integer to a valid pointer.  This patch is
16278         currently waiting to be integrated into glibc; see
16279         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
16280
16281         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
16282         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
16283         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
16284         (struct obstack): temp member is now a union of a pointer and
16285         an integer, instead of an integer.  All integer uses changed.
16286         This does not affect the physical layout of struct obstack,
16287         except on hosts (like the AS/400) where the size or alignment of
16288         void * is greater than that of ptrdiff_t.
16289         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
16290         __STDC__)]: Store temporary in pointer member of union, not
16291         integer member.
16292         * lib/obstack.c: Include <stddef.h>, for offsetof.
16293         (struct fooalign): Remove; it doesn't need a name.
16294         (union fooround): Change double to long double, and add void *.
16295         (DEFAULT_ALIGNMENT): Use offsetof to compute.
16296         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
16297         not a macro.  Hence the values are always int; so remove all
16298         casts-to-int in uses.
16299
16300 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
16301
16302         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
16303         we can get this patch merged into glibc.
16304
16305 2004-05-17  Derek R. Price  <derek@ximbiot.com>
16306             Paul Eggert  <eggert@cs.ucla.edu>
16307
16308         * m4/argp: Depend on alloca.
16309
16310 2004-05-17  Derek R. Price  <derek@ximbiot.com>
16311             Paul Eggert  <eggert@cs.ucla.edu>
16312
16313         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
16314         freecoding.
16315
16316 2004-05-17  Bruno Haible  <bruno@clisp.org>
16317
16318         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
16319         precision that consists of a '.' followed by an empty digit string.
16320         Patch by Tor Lillqvist <tml@iki.fi>.
16321
16322 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
16323
16324         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
16325         for backward compatibility with older code.  We need our own
16326         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
16327         it under some other name, and our alloca.h will define it.
16328
16329 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
16330             Derek Price  <derek@ximbiot.com>
16331
16332         * lib/alloca.c: Include <alloca.h>, to get our interface.
16333         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
16334         include <alloca.h> first.  Use C89 prototype for alloca; this
16335         requires including <stddef.h> for size_t.  Use extern "C" if C++.
16336         Use #elif for simplicity, since we can assume C89 now.
16337         Don't try to source the system alloca.h since it will not be found
16338         and to prevent recursively including its replacement.
16339         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
16340         * lib/regex.c: Likewise.
16341
16342 2004-05-16  Derek Price  <derek@ximbiot.com>
16343             Paul Eggert  <eggert@cs.ucla.edu>
16344
16345         getline cleanup.  This changes the getndelim2 API: both order of
16346         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
16347         no delimiter).
16348
16349         * lib/getline.c: Don't include stddef.h or stdio.h, since our
16350         interface does that.
16351         (getline): Always use getdelim, so that we don't have two
16352         copies of this code.
16353         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
16354         if available.
16355         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
16356         (GETNDELIM2_MAXIMUM): New macro.
16357         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
16358         instead of the old practice of delim2==0.  All callers changed.
16359         Return -1 on overflow, instead of returning junk.
16360         Do not set *linesize unless allocation succeeds.
16361         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
16362         that we include sys/types.h.
16363         * lib/getnline.h: Likewise.
16364         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
16365         (getndelim2): Reorder arguments.
16366         * lib/getnline.c (getnline, getndelim):
16367         Don't discard the NMAX argument.
16368         (getnline): Invoke getndelim, to avoid code duplication.
16369         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
16370         of (size_t) -1 by callers of the getnline family.
16371
16372 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
16373
16374         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
16375         Check for gettimeofday.
16376         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
16377         Check for settimeofday, stime.
16378
16379 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
16380
16381         * lib/nanosleep.c (suspended): Change its type from int to
16382         sig_atomic_t volatile.
16383         (first_call): Make it private to rpl_nanosleep, and have it
16384         be zero initially as that's a bit faster.
16385         (my_usleep): Round up fractional times instead of truncating them,
16386         as this is the usual meaning for 'sleep'.
16387
16388         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
16389         doesn't work.
16390         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
16391         (ENOSYS): Define if not defined.
16392         (settime): Fall back on stime if it exists and settimeofday fails.
16393         But don't bother with fallbacks if a method fails with errno == EPERM.
16394
16395 2004-05-11  Jim Meyering  <jim@meyering.net>
16396
16397         Prior to this change, the save_cwd caller required read access to the
16398         current directory on most systems (ones with the fchdir function).
16399
16400         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
16401         fails, try write-only, and finally, resort to using xgetcwd.
16402
16403 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
16404
16405         * lib/obstack.c, obstack.h: Import changes from libc.
16406
16407 2004-04-28  Bruno Haible  <bruno@clisp.org>
16408
16409         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
16410         also implicitly appends .exe to executables.
16411         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
16412         accepts Windows pathnames.
16413         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
16414         Treat Cygwin like Windows, since it now accepts Windows pathnames.
16415         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
16416         Treat Cygwin like Windows, since it now accepts Windows pathnames.
16417         Reported by Derek Robert Price <derek@ximbiot.com>.
16418
16419 2004-04-21  Karl Berry  <karl@gnu.org>
16420
16421         * config/srclist.txt (localcharset.c): break sync.
16422
16423 2004-04-20  Paul Eggert  <eggert@twinsun.com>
16424
16425         * m4/host-os.m4: Add a copyright notice.
16426
16427 2004-04-20  Jim Meyering  <jim@meyering.net>
16428
16429         Change UTILS_ to gl_ in AC_DEFINE'd names.
16430         Change utils_- and jm_-prefixed variables, too.
16431         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
16432         UTILS_FUNC_MKDIR_TRAILING_SLASH.
16433         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
16434
16435         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
16436         Don't emit trailing blanks.
16437         Also rename jm_-prefixed variables to have gl_ prefix.
16438
16439         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
16440         Also rename jm_-prefixed variables to have gl_ prefix.
16441
16442         * m4/jm-macros.m4: Reflect the renamings.
16443         * m4/prereq.m4: Likewise.
16444
16445 2004-04-20  Jim Meyering  <jim@meyering.net>
16446
16447         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
16448         memory.
16449
16450 2004-04-20  Jim Meyering  <jim@meyering.net>
16451             Bruno Haible  <bruno@clisp.org>
16452
16453         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
16454         memory when realloc fails.
16455
16456 2004-04-19  Jim Meyering  <jim@meyering.net>
16457
16458         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
16459         now that readutmp.c may call `free (0)'.
16460
16461 2004-04-19  Bruno Haible  <bruno@clisp.org>
16462
16463         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
16464         * m4/inttypes_h.m4: Likewise.
16465         * m4/stdint_h.m4: Likewise.
16466         * m4/intmax_t.m4: Likewise.
16467         * m4/uintmax_t.m4: Likewise.
16468
16469 2004-04-18  Jim Meyering  <jim@meyering.net>
16470
16471         * m4/prereq.m4: Don't forbid jm_ prefix.
16472
16473         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
16474         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
16475         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
16476         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
16477         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
16478         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
16479         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
16480         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
16481         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
16482         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
16483         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
16484         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
16485         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
16486         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
16487         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
16488         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
16489         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
16490         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
16491         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
16492
16493 2004-04-18  Jim Meyering  <jim@meyering.net>
16494
16495         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
16496         failure, don't leak memory and do call END_UTMP_ENT.
16497
16498 2004-04-16  Jim Meyering  <jim@meyering.net>
16499
16500         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
16501         coreutils' stat program.
16502         (gl_PREREQ): Don't require jm_PREREQ_STAT.
16503
16504 2004-04-11  Paul Eggert  <eggert@twinsun.com>
16505
16506         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
16507         C89.
16508         (CHAR_BIT): Remove, since we assume C89.
16509         Include <stdint.h> if available, as per current Autoconf CVS advice.
16510
16511 2004-03-31  Jim Meyering  <jim@meyering.net>
16512
16513         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
16514         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
16515         * m4/xalloc.m4: Likewise.
16516
16517 2004-03-30  Paul Eggert  <eggert@twinsun.com>
16518
16519         Merge from coreutils.
16520
16521         * m4/inttostr.m4: New file.
16522         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
16523         Require AM_STDBOOL_H and gl_TIMESPEC instead.
16524         Require gl_CLOCK_TIME.
16525         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
16526
16527 2004-03-30  Paul Eggert  <eggert@twinsun.com>
16528
16529         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
16530         not bool, to be more consistent with Unix conventions.
16531         Suggested by Bruno Haible.
16532
16533         Merge from coreutils.
16534
16535         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
16536         * lib/umaxtostr.c: New files.
16537
16538         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
16539         the usual <time.h> dance.
16540         (get_date): Change signature to support fractional time stamps.
16541         All callers changed.
16542         * lib/getdate.y: Include "getdate.h" first, as we can now
16543         assume C89 and don't need to worry about 'const'.
16544         Similarly, include "unlocked-io.h" near start, not in middle.
16545         Include <limits.h>.
16546         (textint.value): Use long int rather than int.
16547         (textint.digits): Use size_t rather than int.
16548         (BILLION, LOG10_BILLION): New constants.
16549         (parser_control): New member rel_ns.  Members day_ordinal,
16550         time_zone, month, day, hour, minutes, rel_year, rel_month,
16551         rel_day, rel_hour, rel_minutes, rel_seconds
16552         are now long int, not int.  Member seconds is now struct timespec,
16553         not int.  New member timespec_seen.  Members dates_seen, days_seen,
16554         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
16555         not int.
16556         (%union.intval): Now long int, not int.
16557         New member timespec.
16558         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
16559         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
16560         (spec): Now is a timespec or an item list.
16561         (timespec, items): New nonterminals.
16562         (time, rel, relunit, number, get_date):
16563         Add support for fractional seconds.
16564         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
16565         (gmtime, localtime, mktime): Remove decls; not needed with C89.
16566         (to_hour): First arg is now long int, not int.
16567         (to_year): Returns long int, not int.
16568         Don't treat year -70 like 70.
16569         (tm_diff): Returns long int, not int.
16570         (lookup_word): Use bool instead of int when appropriate.
16571         (yylex): Use size_t for count, not int.
16572         Detect overflow when parsing large integer constants.
16573         Add support for fractions.
16574         (get_date): Make pointers 'const' if possible.
16575         Use more-portable code to detect integer overflow.
16576         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
16577         Don't use ctime; it's not reliable if the year has >4 digits.
16578
16579         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
16580         This is for compatibility with BSD.
16581
16582         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
16583         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
16584         From coreutils' system.h.
16585
16586         * lib/userspec.c: Don't include "posixver.h".
16587         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
16588         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
16589         compatible extension.  Simplify code by removing a boolean int
16590         that was always nonzero if a string was nonnull.
16591
16592 2004-03-30  Jim Meyering  <jim@meyering.net>
16593
16594         Merge from coreutils.
16595
16596         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
16597         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
16598         on some systems one must include <grp.h> before it.
16599         Reported by Christian Krackowizer.
16600
16601 2004-03-30  Jim Meyering  <jim@meyering.net>
16602
16603         Merge from coreutils.
16604
16605         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
16606
16607         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
16608         an empty input stream.
16609
16610         * lib/readtokens.c: Include <stdbool.h>.
16611         (readtoken): Use `size_t' rather than int/long.
16612         All callers adjusted.
16613         Use `bool' rather than `int' where appropriate.
16614         Use memset rather than an explicit loop.
16615         Use x2nrealloc rather than xrealloc.
16616         Allow the use of `\0' as a delimiter.
16617         (readtokens): Likewise.
16618         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
16619
16620 2004-03-30  Jim Meyering  <jim@meyering.net>
16621
16622         * m4/realloc.m4: Remove file, since now it does no more than
16623         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
16624         the `configure.ac' section of module/realloc.
16625         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
16626
16627 2004-03-30  Bruno Haible  <bruno@clisp.org>
16628
16629         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
16630         nonnull.
16631
16632 2004-03-29  Paul Eggert  <eggert@twinsun.com>
16633
16634         Merge changes to getloadavg.c from coreutils and Emacs.
16635
16636         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
16637         Define to an expression, not to the empty string.
16638         Include cloexec.h and xalloc.h.
16639         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
16640         Use set_cloexec_flag rather than rolling our own.
16641         * lib/cloexec.c, lib/cloexec.h: New files.
16642
16643 2004-03-29  Paul Eggert  <eggert@twinsun.com>
16644
16645         * m4/cloexec.m4: New file.
16646
16647 2004-03-18  Paul Eggert  <eggert@twinsun.com>
16648
16649         * lib/getopt.h: Sync with libc CVS.
16650
16651 2004-03-18  Paul Eggert  <eggert@twinsun.com>
16652             Bruno Haible  <bruno@clisp.org>
16653
16654         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
16655         mbswidth.
16656
16657 2004-03-18  Paul Eggert  <eggert@twinsun.com>
16658             Bruno Haible  <bruno@clisp.org>
16659
16660         * lib/mbswidth.h: Include <wchar.h> only if
16661         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
16662         <wchar.h>.
16663         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
16664
16665 2004-03-09  Paul Eggert  <eggert@twinsun.com>
16666
16667         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
16668         Sync with libc CVS.
16669         * lib/getopt_int.h: New file, also synced from libc.
16670
16671 2004-03-09  Paul Eggert  <eggert@twinsun.com>
16672
16673         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
16674         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
16675         Bring back getopt.c, getopt.h, getopt1.c.
16676
16677 2004-03-07  Paul Eggert  <eggert@twinsun.com>
16678
16679         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
16680         All uses changed.  Check for sa_sigaction member; this fixes
16681         a bug first reported by Jason Andrade in
16682         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
16683
16684 2004-03-07  Paul Eggert  <eggert@twinsun.com>
16685
16686         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
16687         '#if' expressions.  Unlike the code it replaces, it does not
16688         depend on (defined _SC_PAGESIZE).  However, it does depend on
16689         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
16690         first reported by Jason Andrade in
16691         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
16692
16693 2004-02-25  Simon Josefsson  <jas@extundo.com>
16694
16695         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
16696
16697 2004-02-25  Simon Josefsson  <jas@extundo.com>
16698
16699         * lib/strdup.h: New file.
16700         * lib/strdup.c: Include it.
16701         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
16702         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
16703
16704 2004-02-23  Karl Berry  <karl@gnu.org>
16705
16706         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
16707         (from fencepost.gnu.org:/gd/gnuorg).
16708
16709 2004-02-23  Karl Berry  <karl@gnu.org>
16710
16711         * config/srclistvars.sh (GNUORG) [karl]: redefine.
16712         * config/srclist.txt: add maintain/standards documents.
16713
16714 2004-02-18  Bruno Haible  <bruno@clisp.org>
16715
16716         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
16717         Reported by Derek Robert Price <derek@ximbiot.com>.
16718
16719 2004-02-16  Karl Berry  <karl@gnu.org>
16720
16721         * config/mkinstalldirs, install-sh: update from automake.
16722
16723 2004-02-06  Karl Berry  <karl@gnu.org>
16724
16725         * m4/po.m4: update from gettext 0.14.1.
16726
16727 2004-02-06  Karl Berry  <karl@gnu.org>
16728
16729         * lib/config.charset: update from gettext 0.14.1.
16730
16731 2004-02-05  Paul Eggert  <eggert@twinsun.com>
16732
16733         Add comments and code, prompted by suggestions from Bruno Haible
16734         for sh-quote.
16735         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
16736         describing the enum quoting_style values.
16737         * lib/quotearg.c (quotearg_alloc): New function.
16738         (quotearg_buffer_restyled): Treat lone { and } as special.
16739         Treat = as special.  Work around bug with older shells
16740         that "see" a '\' that is really the 2nd byte of a multibyte char.
16741         Quote empty string with shell_quoting_style.
16742
16743 2004-02-03  Bruno Haible  <bruno@clisp.org>
16744
16745         * m4/pipe.m4: New file, from GNU gettext.
16746
16747 2004-02-03  Bruno Haible  <bruno@clisp.org>
16748
16749         * lib/pipe.h: New file, from GNU gettext.
16750         * lib/pipe.c: New file, from GNU gettext.
16751
16752 2004-01-27  Bruno Haible  <bruno@clisp.org>
16753
16754         * m4/execute.m4: New file, from GNU gettext.
16755
16756 2004-01-27  Bruno Haible  <bruno@clisp.org>
16757
16758         * lib/execute.h: New file, from GNU gettext.
16759         * lib/execute.c: New file, from GNU gettext.
16760         * lib/w32spawn.h: New file, from GNU gettext.
16761
16762 2004-01-24  Paul Eggert  <eggert@twinsun.com>
16763
16764         Merge from diffutils.
16765
16766         * lib/file-type.c (file_type): Add typed memory objects.
16767         * lib/file-type.h (S_TYPEISTMO): New macro.
16768
16769         * lib/c-stack.h (c_stack_action): Remove argv argument.
16770         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
16771         (die): Don't calculate message unless segv_action returns.
16772         (get_stack_location, min_address_from_argv, max_address_from_argv,
16773         volatile stack_base, volatile_stack_size): Remove.
16774         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
16775         that every segmentation violation is a stack overflow.  (Ouch!)
16776         See Debian bug 136249 (still outstanding) for more info about why
16777         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
16778
16779 2004-01-24  Paul Eggert  <eggert@twinsun.com>
16780
16781         Exit-status fix from coreutils.
16782
16783         Use exit_failure consistently in place of EXIT_FAILURE,
16784         so that program exit statuses are consistent on failure.
16785
16786         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
16787         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
16788         * lib/argmatch.h: Comment fix to match the above.
16789         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
16790         Now a macro referring to exit_failure, instead of a separate
16791         variable.  Include "exitfail.h" to get it.
16792         * lib/xstrtol.h: Include "exitfail.h".
16793         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
16794
16795         * lib/long-options.c (parse_long_options): Use prototype
16796         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
16797         for clarity.
16798
16799 2004-01-21  Jim Meyering  <jim@meyering.net>
16800
16801         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
16802         so as not to conflict with a different-sized __mktime_internal
16803         function in GNU libc.
16804         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
16805         Problem building statically-linked `ls' reported by Michael Brunnbauer.
16806
16807 2004-01-20  Karl Berry  <karl@gnu.org>
16808
16809         * config/config.guess: update from config.
16810
16811         * config/srclistvars.sh: GNUWWWLICENSES for karl.
16812
16813 2004-01-20  Bruno Haible  <bruno@clisp.org>
16814
16815         Safer stack allocation.
16816         * lib/setenv.c: Include allocsa.h.
16817         (alloca): Remove fallback definition.
16818         (freea): Remove macro.
16819         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
16820         instead of freea.
16821
16822 2004-01-20  Bruno Haible  <bruno@clisp.org>
16823
16824         * m4/eealloc.m4: New file, from GNU gettext.
16825
16826 2004-01-20  Bruno Haible  <bruno@clisp.org>
16827
16828         * m4/allocsa.m4: New file, from GNU gettext.
16829
16830 2004-01-20  Bruno Haible  <bruno@clisp.org>
16831
16832         * lib/xallocsa.h: New file, from GNU gettext.
16833         * lib/xallocsa.c: New file, from GNU gettext.
16834
16835 2004-01-20  Bruno Haible  <bruno@clisp.org>
16836
16837         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
16838
16839 2004-01-20  Bruno Haible  <bruno@clisp.org>
16840
16841         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
16842         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
16843         specially.
16844
16845 2004-01-20  Bruno Haible  <bruno@clisp.org>
16846
16847         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
16848         patch.
16849
16850 2004-01-20  Bruno Haible  <bruno@clisp.org>
16851
16852         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
16853
16854 2004-01-20  Bruno Haible  <bruno@clisp.org>
16855
16856         * lib/eealloc.h: New file.
16857
16858 2004-01-20  Bruno Haible  <bruno@clisp.org>
16859
16860         * lib/binary-io.h: Avoid warnings on Cygwin.
16861
16862 2004-01-20  Bruno Haible  <bruno@clisp.org>
16863
16864         * lib/allocsa.h: New file, from GNU gettext.
16865         * lib/allocsa.c: New file, from GNU gettext.
16866
16867 2004-01-18  Karl Berry  <karl@gnu.org>
16868
16869         * doc/gpl.texi, doc/lgpl.texi: new files.
16870
16871 2004-01-18  Karl Berry  <karl@gnu.org>
16872
16873         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
16874         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
16875
16876 2004-01-15  Paul Eggert  <eggert@twinsun.com>
16877
16878         Merge from coreutils.
16879
16880         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
16881         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
16882         (gl_DEFAULT_POSIX2_VERSION): Move
16883         the documentation from 'configure' into 'config.hin',
16884         so that 'configure --help' isn't burdened by it and
16885         we don't have to worry about its formatting there.
16886         Reword the documentation so that it's more succinct
16887         and can be run together into a single paragraph.
16888         * m4/same.m4 (gl_SAME): Check for pathconf.
16889
16890 2004-01-15  Paul Eggert  <eggert@twinsun.com>
16891
16892         Merge from coreutils.
16893
16894         * lib/posixver.c: Include posixver.h.
16895
16896         * lib/same.c: Include <stdbool.h>, <limits.h>.
16897         (_POSIX_NAME_MAX): Define if not defined.
16898         (MIN): New macro.
16899         (same_name): If file names are silently truncated, report
16900         that the file names are the same if they are the same after
16901         the silent truncation.
16902
16903         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
16904         conversion function.
16905         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
16906         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
16907         longer needed.
16908
16909 2004-01-15  Jim Meyering  <jim@meyering.net>
16910
16911         Merge from coreutils.
16912
16913         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
16914         if no library is required.
16915         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
16916         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
16917         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
16918         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
16919         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
16920         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
16921         value, $ac_cv_search_crypt, if it's "none required".
16922         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
16923         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
16924         not gl_FUNC_GETLOADAVG.
16925         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
16926         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
16927
16928 2004-01-15  Jim Meyering  <jim@meyering.net>
16929
16930         Merge from coreutils.
16931
16932         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
16933         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
16934         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
16935
16936         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
16937         optional configure-time default.
16938
16939         * lib/version-etc.c (version_etc_copyright): Update copyright date.
16940
16941         * lib/xreadlink.c (xreadlink): Correct outdated comment.
16942
16943 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
16944
16945         Merge from coreutils.
16946
16947         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
16948         value, $ac_cv_search_nanosleep, if it's "none required".
16949
16950 2004-01-14  Paul Eggert  <eggert@twinsun.com>
16951
16952         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
16953         with like-named macro in fnmatch.c.
16954         (EXT): Use an internal constant instead.
16955
16956         Merge fnmatch patches from glibc.
16957         * lib/fnmatch.c (mbsinit): Remove define.
16958         Add libc_hidden_ver (__fnmatch, fnmatch).
16959         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
16960         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
16961
16962 2004-01-14  Karl Berry  <karl@gnu.org>
16963
16964         * config/install-sh: update from automake.
16965
16966 2004-01-13  Karl Berry  <karl@gnu.org>
16967
16968         * config/install-sh: update from automake.
16969
16970 2004-01-09  Karl Berry  <karl@gnu.org>
16971
16972         * config/install-sh: update from automake.
16973
16974 2004-01-05  Karl Berry  <karl@gnu.org>
16975
16976         * config/config.{sub,guess}: update from config.
16977
16978 2003-12-31  Karl Berry  <karl@gnu.org>
16979
16980         * config/depcomp: update from automake.
16981
16982 2003-12-14  Karl Berry  <karl@gnu.org>
16983
16984         * lib/config.charset: update from gettext-runtime.
16985
16986 2003-12-03  Paul Eggert  <eggert@twinsun.com>
16987
16988         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
16989         Bug reported by Alfred M. Szmidt.
16990
16991 2003-12-03  Bruno Haible  <bruno@clisp.org>
16992
16993         * m4/gettext.m4: Upgrade from gettext-0.13.
16994         * m4/po.m4: Upgrade from gettext-0.13.
16995         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
16996         * m4/intmax.m4: New file, from gettext-0.13.
16997         * m4/printf-posix.m4: New file, from gettext-0.13.
16998
16999 2003-11-29  Karl Berry  <karl@gnu.org>
17000
17001         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
17002
17003 2003-11-25  Paul Eggert  <eggert@twinsun.com>
17004             Bruno Haible  <bruno@clisp.org>
17005
17006         * lib/printf-parse.h: Don't include sys/types.h.
17007         (ARG_NONE): New macro.
17008         (char_directive): Change type of *arg_index fields to size_t.
17009         * lib/printf-parse.c: Don't include sys/types.h.
17010         (SSIZE_MAX): Remove macro.
17011         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
17012         Remove unnecessary overflow check.
17013         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
17014         fields.
17015
17016 2003-11-25  Bruno Haible  <bruno@clisp.org>
17017
17018         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
17019
17020 2003-11-25  Bruno Haible  <bruno@clisp.org>
17021
17022         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
17023         gt_TYPE_SSIZE_T.
17024
17025 2003-11-24  Paul Eggert  <eggert@twinsun.com>
17026
17027         * modules/alloca: Remove dependency on xalloc.
17028
17029 2003-11-24  Paul Eggert  <eggert@twinsun.com>
17030
17031         * lib/alloca.c: Remove dependency on xalloc module.
17032         (xalloc_die): Remove.
17033         (memory_full) [!defined emacs]: New macro.
17034         [!defined emacs]: Don't include xalloc.h.
17035         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
17036         address arithmetic overflows.  Change datatypes a bit to avoid
17037         unnecessary casts.
17038
17039 2003-11-22  Jim Meyering  <jim@meyering.net>
17040
17041         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
17042         s/size/size_t/.
17043
17044 2003-11-21  Karl Berry  <karl@gnu.org>
17045
17046         * config/config.{sub,guess}: update from config.
17047
17048 2003-11-18  Karl Berry  <karl@gnu.org>
17049
17050         * config/config.{sub,guess}: update from config.
17051
17052         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
17053
17054 2003-11-17  Paul Eggert  <eggert@twinsun.com>
17055
17056         * README: Mention that S+T cannot overflow if S is the size of
17057         an existing object and T is sufficiently small.
17058
17059 2003-11-17  Jim Meyering  <jim@meyering.net>
17060
17061         On systems without utime and without a utimes function capable of
17062         dealing with a NULL struct utimbuf* argument, this utime replacement
17063         could -- in unusual circumstances -- leak a file descriptor.
17064         * lib/utime.c: Include <unistd.h> and <errno.h>.
17065         (utime_null): Be sure to close `fd' and to preserve errno.
17066         Reported by Geoff Collyer via Arnold Robbins.
17067
17068 2003-11-17  Bruno Haible  <bruno@clisp.org>
17069
17070         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
17071         (Depends-on): Add xsize.
17072
17073 2003-11-17  Bruno Haible  <bruno@clisp.org>
17074
17075         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
17076
17077 2003-11-17  Bruno Haible  <bruno@clisp.org>
17078
17079         * lib/vasnprintf.c (alloca): Remove fallback definition.
17080         (freea): Remove definition.
17081         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
17082         Reported by Paul Eggert.
17083
17084 2003-11-16  Paul Eggert  <eggert@twinsun.com>
17085             Bruno Haible  <bruno@clisp.org>
17086
17087         Protect against address arithmetic overflow.
17088         * lib/printf-args.h: Include stddef.h.
17089         (arguments): Change type of field 'count' to size_t.
17090         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
17091         'unsigned int' where appropriate.
17092         * lib/printf-parse.h: Include sys/types.h.
17093         (char_directive): Change type of *arg_index fields to ssize_t.
17094         (char_directives): Change type of fields 'count', max_*_length to
17095         size_t.
17096         * lib/printf-parse.c: Include sys/types.h and xsize.h.
17097         (SSIZE_MAX): Define fallback value.
17098         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
17099         instead of 'int' where appropriate. Check a_allocated, d_allocated
17100         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
17101         * lib/vasnprintf.c: Include xsize.h.
17102         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
17103         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
17104         overflow. Avoid wraparound when converting a width or precision from
17105         decimal to binary.
17106
17107 2003-11-16  Bruno Haible  <bruno@clisp.org>
17108
17109         Update from GNU gettext.
17110         * lib/printf-parse.c: Generalize to it can be compiled for wide
17111         strings.
17112         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
17113         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
17114         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
17115         SNPRINTF): New macros.
17116         Don't include <alloca.h> if the file is used inside libintl.
17117         (local_wcslen): New function, for Solaris 2.5.1.
17118         (VASNPRINTF): Use it instead of wcslen.
17119
17120 2003-11-16  Bruno Haible  <bruno@clisp.org>
17121
17122         * lib/xsize.h (xmax): New function.
17123         (xsum, xsum3, xsum4): Declare as "pure" functions.
17124
17125 2003-11-12  Paul Eggert  <eggert@twinsun.com>
17126
17127         * modules/xalloc (Files): Undo latest change, since xalloc.h
17128         no longer needs SIZE_MAX or PTRDIFF_MAX.
17129
17130 2003-11-12  Paul Eggert  <eggert@twinsun.com>
17131
17132         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
17133         gl_PTRDIFF_MAX.
17134
17135 2003-11-12  Paul Eggert  <eggert@twinsun.com>
17136
17137         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
17138         "return", to pacify some unknown compiler.  Problem reported
17139         by Joerg Schilling.
17140
17141 2003-11-12  Paul Eggert  <eggert@twinsun.com>
17142
17143         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
17144         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
17145         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
17146         heuristic is just as accurate as far as we know, and it removes a
17147         dependency on size_max.m4 and ptrdiff_max.m4.
17148
17149 2003-11-11  Bruno Haible  <bruno@clisp.org>
17150
17151         * modules/xsize (Files): Add m4/size_max.m4.
17152         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
17153
17154 2003-11-11  Bruno Haible  <bruno@clisp.org>
17155
17156         * m4/size_max.m4: New file.
17157         * m4/ptrdiff_max.m4: New file.
17158         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
17159         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
17160         (gl_XALLOC): Invoke it.
17161
17162 2003-11-11  Bruno Haible  <bruno@clisp.org>
17163
17164         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
17165         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
17166         defined.
17167
17168 2003-11-10  Paul Eggert  <eggert@twinsun.com>
17169
17170         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
17171         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
17172         rejected some allocations of exactly SIZE_MAX - 2 bytes.
17173         From Bruno Haible.
17174         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
17175         not (size_t) -1, since it's defined here.
17176
17177 2003-11-09  Karl Berry  <karl@gnu.org>
17178
17179         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
17180
17181 2003-11-06  Paul Eggert  <eggert@twinsun.com>
17182
17183         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
17184         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
17185         Reject sizes of exactly SIZE_MAX bytes.
17186         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
17187         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
17188
17189 2003-11-05  Bruno Haible  <bruno@clisp.org>
17190
17191         * lib/xsize.h: Include limits.h, to avoid a possible collision with
17192         SIZE_MAX defined in <limits.h> on Solaris.
17193
17194 2003-11-04  Jim Meyering  <jim@meyering.net>
17195
17196         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
17197         variable names, rather than @VAR@.
17198         * modules/poll: Likewise.
17199
17200 2003-11-04  Bruno Haible  <bruno@clisp.org>
17201
17202         * modules/xsize: New file.
17203         * modules/linebreak: Depend on xsize.
17204         * MODULES.html.sh (func_all_modules): Add xsize.
17205
17206 2003-11-04  Bruno Haible  <bruno@clisp.org>
17207
17208         * m4/xsize.m4: New file.
17209
17210 2003-11-04  Bruno Haible  <bruno@clisp.org>
17211
17212         * lib/xsize.h: New file.
17213         * lib/linebreak.c: Include xsize.h.
17214         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
17215         argument for overflow.
17216         Suggested by Paul Eggert.
17217
17218 2003-11-03  Karl Berry  <karl@gnu.org>
17219
17220         * config/config.{guess,sub}: update from config.
17221
17222 2003-11-03  Jim Meyering  <jim@meyering.net>
17223
17224         * modules/userspec (lib_SOURCES): Add userspec.h.
17225         (Include): Add "userspec.h".
17226         Improve description.
17227
17228 2003-11-03  Jim Meyering  <jim@meyering.net>
17229
17230         * lib/userspec.c: Include "userspec.h".
17231         * lib/userspec.h: New file.
17232
17233 2003-11-03  Bruno Haible  <bruno@clisp.org>
17234
17235         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
17236
17237 2003-11-03  Bruno Haible  <bruno@clisp.org>
17238
17239         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
17240         available, to avoid (extremely rare) race condition.
17241         Suggested by Paul Eggert.
17242
17243 2003-11-02  Karl Berry  <karl@gnu.org>
17244
17245         * config/srclist.txt (vasprintf.c): sync broken, sigh.
17246
17247 2003-10-31  Paul Eggert  <eggert@twinsun.com>
17248
17249         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
17250         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
17251         (read_filesystem_list): Set and use me_type_malloced.
17252         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
17253         whatever the type happens to be), for brevity and consistency.
17254         Check for size calculation overflow on Alphas running OSF/1.
17255
17256 2003-10-31  Jim Meyering  <jim@meyering.net>
17257
17258         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
17259
17260         * lib/linebuffer.c: Include <string.h> for declaration of memset.
17261
17262 2003-10-30  Paul Eggert  <eggert@twinsun.com>
17263             Bruno Haible  <bruno@clisp.org>
17264
17265         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
17266         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
17267
17268 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
17269
17270         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
17271         netbsd*-gnu*.  Suggested by Robert Millan.
17272
17273 2003-10-29  Paul Eggert  <eggert@twinsun.com>
17274
17275         * modules/group-member: Depend on stdbool.
17276
17277 2003-10-29  Paul Eggert  <eggert@twinsun.com>
17278
17279         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
17280
17281 2003-10-29  Paul Eggert  <eggert@twinsun.com>
17282
17283         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
17284         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
17285         after the 'gnu' in these cases.  This fixes some bugs in the
17286         previous change, and is based on suggestions by Robert Millan.
17287
17288 2003-10-29  Paul Eggert  <eggert@twinsun.com>
17289
17290         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
17291         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
17292         no longer needed.
17293         * lib/quotearg.c (quotearg_n_options): Use it.
17294         * lib/group-member.c: Include <stdbool.h>.
17295         (free_group_info): Arg is now const *; don't free arg.
17296         (get_group_info): Now returns bool and accepts struct group_info *,
17297         rather than returning a malloc'ed struct group_info *.
17298         All uses changed.  Check for overflow in internal size calculation.
17299
17300         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
17301         rather than xmalloc/xrealloc.
17302         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
17303         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
17304         conformance bug: the old code used a pointer after freeing the
17305         storage that it addressed.
17306         * lib/hash.c (hash_initialize): Simplify the code by using
17307         xalloc_oversized rather than doing it by hand.
17308         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
17309         the buffer preserved.  Use free and xmalloc instead.
17310         * lib/quotearg.c (quotearg_n_options): Likewise.
17311         Use a simpler test for size overflow.  Don't use xalloc_oversized
17312         because unsigned int might be wider than size_t (!); this suggests
17313         that we should switch from unsigned int to size_t for slot numbers.
17314
17315 2003-10-28  Paul Eggert  <eggert@twinsun.com>
17316
17317         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
17318         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
17319         NetBSD kernels.  Requested by Richard Stallman.
17320
17321 2003-10-27  Paul Eggert  <eggert@twinsun.com>
17322
17323         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
17324         to allocate the returned structure.  Do not allocate a subarray,
17325         as x2nrealloc will do that.
17326         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
17327         instead of xnrealloc.
17328         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
17329
17330 2003-10-27  Bruno Haible  <bruno@clisp.org>
17331
17332         * lib/stdbool_.h: Better support for BeOS.
17333
17334 2003-10-26  Paul Eggert  <eggert@twinsun.com>
17335
17336         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
17337         now uses inline.
17338
17339 2003-10-26  Paul Eggert  <eggert@twinsun.com>
17340
17341         * lib/xalloc.h (xalloc_oversized): New static inline function, for
17342         callers that want to do their own size-overflow checking.  Include
17343         <stdbool.h>, since xalloc_oversized returns bool.
17344         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
17345         to use xalloc_oversized.
17346
17347         Add two functions x2realloc, x2nrealloc, for programs that grow
17348         arrays dynamically by doubling their sizes.
17349         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
17350         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
17351         New functions.
17352
17353         Port to C99 semantics for 'inline' of external functions.
17354         Bug reported by Bruno Haible.
17355         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
17356         with the old contents of xnmalloc.
17357         (xnmalloc, xmalloc): Use it.
17358         (xnrealloc_inline): New static inline function,
17359         with the old contents of xnrealloc.
17360         (xnrealloc, xrealloc): Use it.
17361
17362         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
17363         that.
17364
17365 2003-10-26  Karl Berry  <karl@gnu.org>
17366
17367         * config/srclist.txt (COPYING.DOC): no longer available from
17368         /gd/gnuorg; don't know where the ultimate source is.
17369
17370 2003-10-25  Paul Eggert  <eggert@twinsun.com>
17371
17372         Fix several address-calculation bugs in the hash modules,
17373         plus some minor code cleanup.
17374
17375         * lib/hash.h: Include <stdbool.h>, for bool.
17376         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
17377         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
17378         hash_get_n_entries, hash_get_max_bucket_length,
17379         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
17380         hash_rehash): Use size_t rather than unsigned.
17381         * lib/hash.c (struct hash_table, hash_get_n_buckets,
17382         hash_get_n_buckets_used, hash_get_n_entries,
17383         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
17384         hash_get_entries, hash_do_for_each, hash_string, is_prime,
17385         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
17386         Likewise.
17387         (SIZE_MAX): Define if not defined.
17388         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
17389         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
17390         hash_print):
17391         Use const * when possible.
17392         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
17393         (check_tuning): Fix bug: if tuning parameters were very close to
17394         0 or 1, rounding errors could have caused subscript violations.
17395         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
17396         (hash_initialize): Add 'fail:' label
17397         to free table and return NULL, and use it to simplify code.
17398         Use calloc rather than clearing the storage ourself.
17399         (hash_initialize, hash_rehash): Check for arithmetic overflow in
17400         buffer size calculations.
17401         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
17402         Include <stddef.h>, for size_t.
17403         * lib/hash-pjw.c (hash_pjw): Likewise.
17404         Switch to method described by Bruno Haible.
17405         Include <limits.h>, for CHAR_BIT.
17406         (SIZE_BITS): New macro.
17407
17408 2003-10-23  Paul Eggert  <eggert@twinsun.com>
17409
17410         * m4/getline.m4 (AM_FUNC_GETLINE):
17411         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
17412         hosts.  Problem reported by Derek Robert Price in
17413         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
17414         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
17415         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
17416
17417 2003-10-21  Paul Eggert  <eggert@twinsun.com>
17418
17419         * lib/getndelim2.c (getndelim2): When size calculation overflows,
17420         ceiling the allocation at NMAX bytes rather than silently
17421         discarding input bytes before NMAX is reached.  This makes
17422         a difference only if NMAX exceeds SIZE_MAX / 2.
17423
17424         * lib/obstack.c: Merge from glibc.
17425         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
17426         Add libc_hidden_def (_obstack_newchunk).
17427         (_obstack_free) [! defined _LIBC]: Remove.
17428         [defined _LIBC]: Make a strong alias from obstack_free, rather than
17429         a clone of the function body.
17430         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
17431         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
17432
17433         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
17434         glibc.
17435         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
17436         arg to memcpy.
17437
17438         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
17439         (obstack_ptr_grow_fast, obstack_int_grow_fast):
17440         Don't use lvalue casts, as GCC plans to remove support for them
17441         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
17442         was also present in the non-GCC version, indicating that this
17443         code had always been buggy and had never been widely used.
17444         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
17445         Use the fast variant of each macro, rather than copying the
17446         definiens of the fast variant; that way, we'll be more likely to
17447         catch future bugs in the fast variants.
17448
17449 2003-10-20  Bruno Haible  <bruno@clisp.org>
17450
17451         * modules/wait-process: New file.
17452         * MODULES.html.sh (func_all_modules): Add wait-process.
17453
17454 2003-10-20  Bruno Haible  <bruno@clisp.org>
17455
17456         * m4/wait-process.m4: New file.
17457
17458 2003-10-20  Bruno Haible  <bruno@clisp.org>
17459
17460         * lib/wait-process.h: New file, from GNU gettext.
17461         * lib/wait-process.c: New file, from GNU gettext.
17462
17463 2003-10-19  Jim Meyering  <jim@meyering.net>
17464
17465         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
17466         HPUX 10.20.
17467
17468 2003-10-18  Karl Berry  <karl@gnu.org>
17469
17470         * config/config.guess: update from config.
17471
17472 2003-10-16  Paul Eggert  <eggert@twinsun.com>
17473
17474         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
17475         (getgroups): First arg is int, not size_t.
17476         Don't let 'free' mangle errno.
17477
17478 2003-10-16  Paul Eggert  <eggert@twinsun.com>
17479
17480         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
17481
17482 2003-10-16  Karl Berry  <karl@gnu.org>
17483
17484         * config/config.{guess,sub}: update from config.
17485
17486 2003-10-16  Jim Meyering  <jim@meyering.net>
17487
17488         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
17489         memcpy.
17490
17491 2003-10-15  Paul Eggert  <eggert@twinsun.com>
17492
17493         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
17494         (SIZE_MAX): Remove.
17495         (new_exclude, add_exclude_file): Initial size no longer needs to
17496         be a power of 2.
17497         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
17498         our own address arithmetic overflow checking.
17499
17500         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
17501         (fnmatch): Do not alloca more than 2000 wide characters;
17502         instead, use malloc for large buffers.
17503         Check for address arithmetic overflow, and return -1
17504         with errno set to ENOMEM in that case.
17505         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
17506         (NEW_PATTERN): Do not alloca more than 8000 bytes;
17507         instead, return -1.  Check for address arithmetic overflow.
17508
17509 2003-10-14  Paul Eggert  <eggert@twinsun.com>
17510
17511         Handle invalid suffixes and overflow independently, so that
17512         callers can treat them independently as needed.  Fix some bugs in
17513         suffix handling, e.g., "100k@" was not diagnosed as an invalid
17514         suffix for a human-readable blocksize.  The major caller-visible
17515         change is the addition of a new
17516         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
17517         that both overflow and suffix chars were found.
17518
17519         * lib/human.c (humblock): Don't check separately for invalid suffix
17520         char; that is xstrtoumax's job (now that its bug is fixed).
17521         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
17522         INTMAX_MAX]: New macros.
17523         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
17524         TYPE_MAXIMUM): New macros.
17525         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
17526         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
17527         if overflow occurs, as it's what __strtol does and it's more useful
17528         in practice.
17529         (__xstrtol): If __strtol reports some error other than ERANGE,
17530         reflect it to the caller as LONGINT_INVALID.  If it reports
17531         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
17532         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
17533         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
17534         value.
17535         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
17536         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
17537         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
17538         [defined UINTMAX_MAX]: New macros.
17539
17540 2003-10-14  Bruno Haible  <bruno@clisp.org>
17541
17542         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
17543
17544 2003-10-14  Bruno Haible  <bruno@clisp.org>
17545
17546         * m4/sig_atomic_t: New file, from GNU gettext.
17547         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
17548
17549 2003-10-14  Bruno Haible  <bruno@clisp.org>
17550
17551         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
17552         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
17553         Also use volatile where needed.
17554
17555 2003-10-12  Paul Eggert  <eggert@twinsun.com>
17556
17557         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
17558         Change maintainer from Bruno Haible to 'all'.
17559
17560 2003-10-12  Paul Eggert  <eggert@twinsun.com>
17561
17562         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
17563
17564 2003-10-12  Paul Eggert  <eggert@twinsun.com>
17565
17566         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
17567         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
17568         and define in terms of the other primitives.
17569         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
17570         (SIZE_MAX): Define if not already defined.
17571         (array_size_overflow): New function.
17572         (xalloc_die): Abort instead of exiting if 'error' returns.
17573         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
17574         (xmalloc, xrealloc): Use them.
17575         (xcalloc): Check for address arithmetic overflow.
17576         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
17577         a bit faster than strcpy.
17578
17579 2003-10-10  Simon Josefsson  <jas@extundo.com>
17580
17581         * modules/argp (Depends-on): Add restrict and strcase.
17582
17583 2003-10-10  Simon Josefsson  <jas@extundo.com>
17584
17585         * m4/argp.m4: Add AC_C_INLINE.
17586
17587 2003-10-08  Paul Eggert  <eggert@twinsun.com>
17588
17589         Merge getpass from libc, plus a few fixes.
17590
17591         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
17592         Include <stdbool.h>.
17593         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
17594         __fsetlocking to empty.
17595         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
17596         do include <bits/libc-lock.h>.
17597         Do not include <fcntl.h>; not needed.
17598         [_LIBC]: Include <wchar.h>.
17599         (NOTCANCEL_MODE): New macro.
17600         (flockfile, funlockfile) [_LIBC]: New macros.
17601         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
17602         [!_LIBC]: New macros.
17603         (call_fclose): New function.
17604         (getpass): Use it.  Save tty stream separately; this simplifies the
17605         code and makes it more reliable if stdin happens to equal stdout.
17606         Invoke __fsetlocking on tty.
17607         Handle thread cancellation if needed.
17608         Namespace cleanup (use __tcgetattr, __getline).
17609         Use bool for Booleans.
17610         [USE_IN_LIBIO]: Handle wide streams.
17611         [!_LIBC]: Unconditionally do the fseek, since we don't know what
17612         stream might go where.
17613
17614         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
17615         doesn't have to include <stdio.h> before us.
17616         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
17617         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
17618         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
17619         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
17620         if not declared, so that we can use getpass.c code from libc without
17621         rewriting it.
17622         (flockfile, ftrylockfile, funlockfile): New macros.
17623
17624 2003-10-08  Paul Eggert  <eggert@twinsun.com>
17625
17626         * modules/getpass: Depend on stdbool.
17627
17628 2003-10-08  Paul Eggert  <eggert@twinsun.com>
17629
17630         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
17631
17632 2003-10-07  Karl Berry  <karl@gnu.org>
17633
17634         * config/config.{guess,sub}: update from config.
17635
17636 2003-10-06  Jim Meyering  <jim@meyering.net>
17637             Bruno Haible  <bruno@clisp.org>
17638
17639         This lets translators provide better translations for the
17640         "Written by ..." part of --version output.
17641         * lib/version-etc.h: Include stdarg.h.
17642         (version_etc_copyright): Declare as readonly.
17643         (version_etc): Make this function variadic with a NULL-terminated list
17644         of author name strings.
17645         (version_etc_va): New declaration.
17646         * lib/version-etc.c: Include stdarg.h, stdlib.h.
17647         (version_etc_copyright): Declare as readonly.
17648         (version_etc_va): New function. Provide a different translatable string
17649         for each possible number of authors < 10. Abbreviate when there are 10
17650         authors or more.
17651         (version_etc): Make this function variadic. Call version_etc_va.
17652         Suggestion from Gary V. Vaughan.
17653
17654         * lib/long-options.h (parse_long_options): Change prototype: the
17655         authors string is moved to the end and becomes variadic.
17656         * lib/long-options.c: Include stdarg.h.
17657         (parse_long_options): Make this function variadic, too.
17658         Call version_etc_va, not version_etc.
17659
17660 2003-10-06  Bruno Haible  <bruno@clisp.org>
17661
17662         * modules/version-etc-2: Remove file.
17663         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
17664
17665 2003-10-06  Bruno Haible  <bruno@clisp.org>
17666
17667         * modules/fatal-signal: New file.
17668         * MODULES.html.sh (func_all_modules): Add fatal-signal.
17669
17670 2003-10-06  Bruno Haible  <bruno@clisp.org>
17671
17672         * m4/fatal-signal.m4: New file.
17673         * m4/signalblocking.m4: New file, from GNU gettext.
17674
17675 2003-10-06  Bruno Haible  <bruno@clisp.org>
17676
17677         * lib/version-etc-2.h: Remove file.
17678         * lib/version-etc-2.c: Remove file.
17679
17680 2003-10-06  Bruno Haible  <bruno@clisp.org>
17681
17682         * lib/fatal-signal.h: New file, from GNU gettext.
17683         * lib/fatal-signal.c: New file, from GNU gettext.
17684
17685 2003-10-05  Paul Eggert  <eggert@twinsun.com>
17686
17687         * README: Rework advice for preventing empty .o files.
17688         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
17689         not <sys/types.h>.
17690
17691 2003-10-04  Karl Berry  <karl@gnu.org>
17692
17693         * lib/argp*: update from libc.
17694
17695 2003-10-04  Karl Berry  <karl@gnu.org>
17696
17697         * config/config.{guess,sub}: update from config.
17698
17699 2003-10-02  Bruno Haible  <bruno@clisp.org>
17700
17701         * modules/lchown (Include): Add lchown.h.
17702         * modules/time_r (Include): Use "..." syntax.
17703         * modules/xgetdomainname (Include): Add xgetdomainname.h.
17704
17705 2003-10-01  Simon Josefsson  <jas@extundo.com>
17706
17707         * MODULES.html.sh (func_all_modules): Move gethostname from section
17708         'based on' to section 'lacking' POSIX:2001.
17709
17710 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
17711
17712         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
17713         to output mode on the same stream.
17714
17715 2003-09-29  Paul Eggert  <eggert@twinsun.com>
17716
17717         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
17718         Fix arg typo in previous patch.
17719
17720 2003-09-28  Jim Meyering  <jim@meyering.net>
17721
17722         * lib/error.c: Correct cpp indentation.
17723
17724 2003-09-27  Paul Eggert  <eggert@twinsun.com>
17725
17726         * modules/free: New file.
17727
17728 2003-09-27  Paul Eggert  <eggert@twinsun.com>
17729
17730         * m4/free.m4: New file.
17731
17732 2003-09-27  Paul Eggert  <eggert@twinsun.com>
17733
17734         * lib/minmax.h (MIN, MAX)
17735         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
17736         Omit the special code that used __typeof__, since we worry that
17737         it could be more trouble than it's worth.  See:
17738         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
17739         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
17740
17741         * lib/free.c: New file.
17742
17743 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
17744
17745         Trivial fixes to Makefile.am parts of module listings.
17746         * modules/strstr: Append strstr.h to lib_SOURCES.
17747         * modules/strcase: Likewise, for strcase.h.
17748
17749 2003-09-27  Karl Berry  <karl@gnu.org>
17750
17751         * config/mkinstalldirs: update from automake.
17752
17753 2003-09-26  Paul Eggert  <eggert@twinsun.com>
17754
17755         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
17756         (error_tail): Do not loop, reallocating temporary buffer, since
17757         the output cannot contain more wide characters than the input
17758         contains bytes, the size must be big enough already.  This avoids
17759         one potential size overflow calculation.  Check for size overflow
17760         when calculating temporary buffer size.  Free temporary buffer
17761         when done, if it was allocated with malloc; this plugs a memory
17762         leak.  Remove casts from void * to pointers, that are no longer
17763         needed now that we're assuming C89 or better.
17764
17765         Merge error changes from glibc.
17766
17767         * lib/error.c, error.h: Update copyright notice header to match glibc.
17768         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
17769         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
17770         Disable cancellation while printing error.
17771         * lib/error.h: Prepend __ to parameter names.
17772
17773 2003-09-26  Jim Meyering  <jim@meyering.net>
17774
17775         * lib/error.c (error_tail): Move some declarations
17776         into inner scope where the local variables are used.
17777
17778 2003-09-26  Bruno Haible  <bruno@clisp.org>
17779
17780         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
17781         stpncpy().
17782         Don't define stpncpy through config.h; it's now done through stpncpy.h.
17783
17784 2003-09-26  Bruno Haible  <bruno@clisp.org>
17785
17786         * lib/stpncpy.h (gnu_stpncpy): New declaration.
17787         (stpncpy): Define as alias for gnu_stpncpy.
17788         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
17789
17790 2003-09-25  Simon Josefsson  <jas@extundo.com>
17791
17792         * lib/xgetdomainname.h: New file.
17793         * lib/xgetdomainname.c: New file.
17794
17795 2003-09-25  Simon Josefsson  <jas@extundo.com>
17796             Bruno Haible  <bruno@clisp.org>
17797
17798         * modules/getdomainname: New file.
17799         * modules/xgetdomainname: New file.
17800         * MODULES.html.sh (func_all_modules): Add getdomainname,
17801         xgetdomainname.
17802
17803 2003-09-25  Simon Josefsson  <jas@extundo.com>
17804             Bruno Haible  <bruno@clisp.org>
17805
17806         * m4/getdomainname.m4: New file.
17807
17808 2003-09-25  Simon Josefsson  <jas@extundo.com>
17809             Bruno Haible  <bruno@clisp.org>
17810
17811         * lib/getdomainname.h: New file.
17812         * lib/getdomainname.c: New file.
17813
17814 2003-09-25  Karl Berry  <karl@gnu.org>
17815
17816         * lib/argp-fmtstream.c, argp-help.c: update from libc.
17817
17818 2003-09-25  Karl Berry  <karl@gnu.org>
17819
17820         * config/install-sh: update from automake.
17821
17822 2003-09-25  Bruno Haible  <bruno@clisp.org>
17823
17824         * modules/version-etc-2: New file, from modules/version-etc with
17825         modifications.
17826         * MODULES.html.sh (func_all_modules): Add version-etc-2.
17827
17828 2003-09-25  Bruno Haible  <bruno@clisp.org>
17829
17830         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
17831         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
17832
17833 2003-09-24  Simon Josefsson  <jas@extundo.com>
17834
17835         * modules/xgethostname: Add xgethostname.h.
17836
17837 2003-09-24  Paul Eggert  <eggert@twinsun.com>
17838
17839         * lib/linebuffer.c (freebuffer): Don't free the argument, just
17840         the buffer associated with the argument.  Bug reported by
17841         Simon Josefsson.
17842
17843 2003-09-24  Paul Eggert  <eggert@twinsun.com>
17844
17845         * README: Document assumptions that 'int' is at least 32 bits
17846         wide, that integer arithmetic is 2's complement without overflow,
17847         that there are no holes in integer values, that adding sizes of
17848         two nonoverlapping objects can't overflow, and that all-bits-zero
17849         yields scalar zero.  Fix spelling and capitalization typos.
17850
17851 2003-09-19  Karl Berry  <karl@gnu.org>
17852
17853         * lib/argp.h: update from libc.
17854
17855 2003-09-17  Paul Eggert  <eggert@twinsun.com>
17856
17857         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
17858         to avoid spurious warnings like "AC_RUN_IFELSE was called before
17859         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
17860
17861 2003-09-17  Paul Eggert  <eggert@twinsun.com>
17862
17863         * gnulib-tool: Use "test -h", not "test -L", for portability
17864         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
17865         (tags_regexp): Remove, since \| doesn't conform to POSIX.
17866         (sed_extract_prog): Issue s commands one-by-one, rather than
17867         using \| in one s command.
17868
17869 2003-09-16  Paul Eggert  <eggert@twinsun.com>
17870
17871         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
17872         input error, instead of returning NULL the next time we are called
17873         (and therefore losing track of errno).
17874
17875 2003-09-16  Bruno Haible  <bruno@clisp.org>
17876
17877         * gnulib-tool (func_create_testdir): Warn about duplicated
17878         dependencies.
17879
17880 2003-09-15  Paul Eggert  <eggert@twinsun.com>
17881
17882         * modules/argmatch, modules/fatal, modules/obstack,
17883         modules/xalloc, modules/xgethostname: Sort dependencies by
17884         importance, not alphabetically.
17885
17886 2003-09-15  Paul Eggert  <eggert@twinsun.com>
17887
17888         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
17889         fails, so that the caller gets the proper errno.
17890
17891         * lib/readutmp.c (read_utmp): Likewise.
17892         Check for fstat error.  Close stream and free storage
17893         when failing.
17894
17895 2003-09-14  Karl Berry  <karl@gnu.org>
17896
17897         * config/srclist.txt (strdup.c): disable for c89 changes.
17898
17899 2003-09-14  Jim Meyering  <jim@meyering.net>
17900
17901         * lib/getloadavg.c: Correct cpp indentation.
17902         * lib/strdup.c: Likewise.
17903         * lib/vasnprintf.c: Likewise.
17904
17905 2003-09-14  Bruno Haible  <bruno@clisp.org>
17906
17907         * modules/fwriteerror: New file.
17908         * MODULES.html.sh (func_all_modules): Add fwriteerror.
17909
17910 2003-09-14  Bruno Haible  <bruno@clisp.org>
17911
17912         * lib/fwriteerror.h: New file.
17913         * lib/fwriteerror.c: New file.
17914
17915 2003-09-12  Paul Eggert  <eggert@twinsun.com>
17916
17917         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
17918         modules/xgethostname, modules/xalloc: Depend on exit.
17919
17920 2003-09-12  Paul Eggert  <eggert@twinsun.com>
17921
17922         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
17923
17924         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
17925         and AC_MINIX, too, so that their extensions are available.
17926
17927         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
17928         This macro has been superseded by gl_BACKUPFILE.
17929
17930         More patches to assume C89 or better.
17931
17932         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
17933
17934         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
17935         unconditionally.
17936         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
17937         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
17938         Include <string.h>, <stdlib.h> unconditionally.
17939         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
17940         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
17941         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
17942         headers or for string.h.
17943         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
17944         or strtoul.
17945
17946         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
17947         headers.
17948         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
17949         * m4/userspec.m4 (gl_USERSPEC): Likewise.
17950         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
17951         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
17952         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
17953         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
17954         memcpy, memset.
17955         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
17956         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
17957         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
17958         strtol.
17959         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
17960         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
17961         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
17962         strtoul.
17963
17964 2003-09-12  Paul Eggert  <eggert@twinsun.com>
17965
17966         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
17967         * lib/obstack.c [!defined _LIBC]: Likewise.
17968         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
17969         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
17970         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
17971
17972         More changes to assume C89 or better.
17973
17974         * lib/error.c (error_tail): Assume vprintf.
17975
17976         * lib/argmatch.c (getenv): Remove decl.
17977         * lib/progreloc.c (get_full_program_name): Define via prototype.
17978         * lib/setenv.c (clearenv): Likewise.
17979         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
17980         needed.
17981         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
17982         (malloc, memcpy): Remove decls.
17983         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
17984         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
17985         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
17986         (memcpy): Remove macro.
17987         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
17988         (__P): Remove.  All uses removed.
17989         (PTR): Remove.  All uses changed to void *.
17990         (CHAR_BIT, NULL): Remove.
17991         (spaces, zeros, memset_space, memset_zero)
17992         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
17993         Remove.
17994         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
17995         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
17996         Define with prototype.
17997         Remove now-unnecessary prototype decl.
17998         (extra_args_spec): Assume ANSI C.  All uses changed.
17999         (extra_args_spec_iso): Remove.
18000         (my_strftime, emacs_strftimeu): Define via prototype.
18001         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
18002         unconditionally.
18003         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
18004         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
18005         (strtoul, strtol): Remove decls.
18006         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
18007         LONG_MAX): Remove.
18008         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
18009         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
18010         (LOCALE_PARAM_PROTO): New macro.
18011         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
18012         (INTERNAL (strtol), strtol): Define with a prototype.
18013         (PARAMS): Remove.  All uses removed.
18014         * lib/tempname.c: Include <string.h> unconditionally.
18015         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
18016         * lib/xgethostname.c (main): Define with a prototype.
18017         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
18018         Include <stdlib.h> unconditionally.
18019         (calloc, malloc, realloc, free): Remove decls.
18020         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
18021         Include <stdlib.h> unconditionally.  Sort include file names.
18022         (strtod): Remove.
18023         (xstrtod): Define with a prototype.
18024         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
18025         (strtol, strtoul): Remove decls.
18026
18027 2003-09-11  Paul Eggert  <eggert@twinsun.com>
18028
18029         More patches to assume C89 or better.
18030         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
18031         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
18032         string.h, memchr, STDC_HEADERS.
18033
18034 2003-09-11  Paul Eggert  <eggert@twinsun.com>
18035
18036         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
18037         Include <stdlib.h>, <string.h> unconditionally.
18038         Remove now-unnecessary cast to char *.
18039         * lib/strnlen.c: Include <string.h> unconditionally.
18040         * lib/yesno.c (yesno): Define with a prototype.
18041
18042 2003-09-11  Bruno Haible  <bruno@clisp.org>
18043
18044         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
18045
18046 2003-09-10  Jim Meyering  <jim@meyering.net>
18047
18048         * lib/error.c: Correct indentation of cpp directives.
18049
18050 2003-09-10  Bruno Haible  <bruno@clisp.org>
18051
18052         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
18053         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
18054         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
18055         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
18056         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
18057         <stdlib.h> and <string.h> checks.
18058         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
18059         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
18060
18061 2003-09-10  Bruno Haible  <bruno@clisp.org>
18062
18063         * lib/strcspn.c: Include <string.h> unconditionally.
18064         * lib/strpbrk.c: Include <string.h> unconditionally.
18065         * lib/strstr.c: Include <string.h> unconditionally.
18066         * lib/unicodeio.c: Include <string.h> unconditionally.
18067         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
18068         * lib/unsetenv.c: Likewise.
18069         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
18070         * lib/yesno.c: Include <stdlib.h> unconditionally.
18071         (rpmatch): Add prototype.
18072
18073 2003-09-09  Paul Eggert  <eggert@twinsun.com>
18074
18075         More patches to assume C89 or better.
18076         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
18077         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
18078         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
18079         or for string.h.
18080         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
18081         stdlib.h.
18082         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
18083         C headers.
18084         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
18085         string.h.
18086         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
18087         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
18088         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
18089         or for string.h.
18090         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
18091         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
18092         C headers.
18093         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
18094         memcpy.
18095         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
18096         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
18097         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
18098         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
18099         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
18100         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
18101         string.h, free.
18102         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
18103         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
18104         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
18105         C headers, or for string.h.
18106         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
18107         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
18108         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
18109         headers, memory.h, stdlib.h, string.h, strings.h.
18110         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
18111         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
18112         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
18113         strchr.
18114         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
18115         headers, memory.h, string.h.
18116         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
18117         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
18118         free.
18119         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
18120         headers.
18121         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
18122         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
18123         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
18124         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
18125         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
18126
18127 2003-09-09  Paul Eggert  <eggert@twinsun.com>
18128
18129         More K&R removal.
18130
18131         * lib/acosl.c (main): Use a prototype.
18132         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
18133         tanl.c: Likewise.
18134
18135         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
18136
18137         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
18138         (getopt, etopt_long, getopt_long_only, _getopt_internal)
18139         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
18140         with a prototype.
18141         * lib/getopt.c (const): Remove macro.
18142         Include <string.h> unconditionally.
18143         (my_index): Remove; all uses changed to strchr.
18144         (strlen): Remove decl.
18145         (exchange): Remove forward decl; no longer needed.
18146         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
18147         Define with prototype.
18148         * lib/getopt1.c (const): Remove macro.
18149         (getopt_long, getopt_long_only, main): Define with prototype.
18150
18151         * lib/getugroups.c: Include <string.h> unconditionally.
18152
18153         * lib/getusershell.c: Include <stdlib.h> unconditionally.
18154         (getusershell, setusershell, endusershell, readname, main):
18155         Define with prototypes.
18156
18157         * lib/group-member.c: Include group-member.h first.
18158         Include <stdlib.h> unconditionally.
18159
18160         * lib/hard-locale.c: Include hard-locale.h first.
18161         Include <stdlib.h>, <string.h> unconditionally.
18162
18163         * lib/hash.c (free, malloc): Remove decls.
18164         Include <stdlib.h> unconditionally.
18165
18166         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
18167         (getenv): Do not declare.
18168
18169         * lib/idcache.c: Include <string.h> unconditionally.
18170
18171         * lib/long-options.c: Include long-options.h first, to test interface.
18172         Include <stdlib.h> unconditionally.
18173
18174         * lib/makepath.c: Include makepath.h first, to test interface.
18175         Include <stdlib.h> and <string.h> unconditionally.
18176
18177         * lib/linebuffer.c: Include <stdlib.h>.
18178         (free): Remove decl.
18179
18180         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
18181         stddef.h. rpl_malloc returns void *, not char *.
18182         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
18183         prototype.
18184
18185         * lib/md5.h: Include <limits.h> unconditionally.
18186         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
18187         (__P): Remove; all uses removed.
18188         * lib/md5.c: Include "md5.h" first.
18189         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
18190         md5_buffer, md5_process_bytes, md5_process_block):
18191         Define with prototypes.
18192         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
18193         * lib/sha.c: Include "sha.h" first.
18194         Include <stdlib.h>, <string.h> unconditionally.
18195
18196         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
18197         * lib/memcmp.c (__ptr_t): Likewise.
18198         * lib/memrchr.c (__ptr_t): Likewise.
18199         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
18200         Include <string.h> unconditionally.
18201         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
18202         * lib/memchr.c: Include <stdlib.h> unconditionally.
18203         * lib/memchr.c (LONG_MAX): Remove.
18204         * lib/memrchr.c (LONG_MAX): Likewise.
18205         * lib/memchr.c (__memchr): Define via a prototype.
18206         * lib/memrchr.c (__memrchr): Likewise.
18207         * lib/memcmp.c (__P): Remove, and remove all uses.
18208         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
18209         Remove forward decls; no longer needed.
18210         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
18211         Use types required by C89 in prototype.
18212
18213         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
18214         * lib/savedir.c: Likewise.
18215         * lib/mkdir.c (free): Remove decl.
18216         * lib/rmdir.c (rmdir): Define with a prototype.
18217         * lib/savedir.c: Include savedir.h first, to test interface.
18218
18219         * lib/mktime.c (STDC_HEADERS): Remove.
18220         Include <stdlib.h>, <string.h> unconditionally.
18221
18222         * lib/modechange.c: Include <stdlib.h> unconditionally.
18223         (malloc): Remove decl.
18224
18225         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
18226         (free): Remove decl.
18227
18228         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
18229         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
18230         (This type really should be intptr_t, but that's a C99ism.)
18231         (_obstack_memcpy): Remove: all uses changed to memcpy.
18232         Include <string.h> unconditionally.
18233         (struct obstack): Assume __STDC__ for types of members
18234         chunkfun, freefun, extra_arg.
18235         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
18236         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
18237         obstack_begin, obstack_specify_allocation,
18238         obstack_specify_allocation_with_arg, obstack_chunkfun,
18239         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
18240         Remove unprototyped decls and the macros that use them.
18241         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
18242         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
18243         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
18244         (defined __STDC__ && __STDC__)]:
18245         Remove nonprototyped code.
18246         Include <stdlib.h> unconditionally.
18247         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
18248         _obstack_allocated_p, _obstack_free, obstack_free,
18249         _obstack_memory_used, print_and_abort):
18250         Define using prototypes.
18251         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
18252         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
18253         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
18254         obstack_next_free, obstack_object_size, obstack_room) [0]:
18255         Remove unused, unprototyped code.
18256
18257         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
18258
18259         * lib/physmem.c (physmem_total, physmem_available, main): Define
18260         with prototypes.
18261
18262         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
18263         (main): Define with a prototype.
18264
18265         * lib/posixver.c (getenv): Remove decl.
18266
18267         * lib/putenv.c (malloc): Returns void *, not char *.
18268         Include <string.h> unconditionally.
18269         (strchr, memcpy, NULL): Do not define.
18270
18271         * lib/readtokens.c: Include readtokens.h first, to test interface.
18272         Include <stdlib.h>, <string.h> unconditionally.
18273         (init_tokenbuffer): Define with a prototype.
18274
18275         * lib/regex.c (PARAMS): Remove.  All uses removed.
18276         All uses of _RE_ARGS removed, too.
18277         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
18278         unconditionally.
18279         (bzero): Assume memset exists.
18280         (memcmp, memcpy, NULL): Remove.
18281         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
18282         char, or assignments to local vars of type signed char.
18283         (init_syntax_once, PREFIX(extract_number_and_incr),
18284         PREFIX(print_partial_compiled_pattern),
18285         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
18286         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
18287         PREFIX(regex_grow_registers), PREFIX(regex_compile),
18288         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
18289         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
18290         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
18291         wcs_compile_range, byte_compile_range, truncate_wchar,
18292         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
18293         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
18294         count_mbs_length, wcs_re_match_2_internal,
18295         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
18296         PREFIX(alt_match_null_string_p),
18297         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
18298         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
18299         regfree, PREFIX(extract_number)): Define with prototype.  Remove
18300         now-unnecessary declaration, if any.
18301         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
18302         regcomp, regexec):
18303         Remove now-unnecessary casts among pointer types.
18304         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
18305
18306         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
18307         (free): Remove decl.
18308
18309         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
18310
18311         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
18312         (free): Remove decl.
18313
18314         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
18315         * lib/xgetcwd.c: Likewise.
18316
18317         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
18318         (free): Remove decl.
18319
18320         * lib/strchrnul.c (strchrnul): Define with a prototype.
18321         Fix bug: c_in was not converted to char before searching.
18322
18323         The following changes are not K&R related:
18324
18325         * lib/group-member.h: Include <sys/types.h>, so that this file is
18326         self-contained.
18327         * lib/makepath.h: Likewise.
18328
18329         * lib/getusershell.c (readname, default_index, line_size, readname):
18330         Use size_t, not int, for sizes.
18331         (readname): If the size overflows, report an error instead of
18332         looping forever.
18333
18334 2003-09-09  Paul Eggert  <eggert@twinsun.com>
18335
18336         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
18337         libc.
18338
18339 2003-09-09  Paul Eggert  <eggert@twinsun.com>
18340
18341         * README: New section: portability guidelines.
18342
18343 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
18344
18345         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
18346         C89 spec.
18347
18348 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
18349
18350         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
18351
18352 2003-09-08  Paul Eggert  <eggert@twinsun.com>
18353
18354         Assume C89 or better; remove K&R cruft.
18355         A few of these changes were first proposed by Derek Robert Price
18356         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
18357
18358         * lib/addext.c: Include <string.h> unconditionally.
18359         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
18360         Don't declare getenv or malloc.
18361
18362         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
18363         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
18364         (NULL): Remove.
18365         (find_stack_direction, alloca): Use prototypes.
18366
18367         * lib/atexit.c (atexit): Define using a prototype.
18368
18369         * lib/basename.c, dirname.c, stripslash.c:
18370         Include <string.h> unconditionally.
18371
18372         * lib/bcopy.c: Include <stddef.h>.
18373         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
18374
18375         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
18376
18377         * lib/error.h (error, error_at_line, error_print_progname)
18378         [! (defined (__STDC__) && __STDC__)]: Remove decls.
18379         * lib/error.c: Include error.h first, to check interface.
18380         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
18381         (VA_START): Remove; all uses changeed to va_start.
18382         (exit, strerror): Remove decls.
18383         (error_print_progname): Prototype uncondionally.
18384         Don't include <errno.h>; no longer needed.
18385         (private_strerror): Remove.
18386         (error_tail): Always define.
18387         (error, error_at_line): Assume C89 or better; always use prototypes.
18388         * lib/fatal.c: Include "fatal.h" first, to test interface.
18389         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
18390         (VA_START): Remove; all uses changed to va_start.
18391         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
18392         this case.
18393         (exit): Remove decl.
18394         (fatal): Prototype unconditionally.  Assume va_start works.
18395         Abort at end, to pacify gcc.
18396
18397         * lib/euidaccess.c (main): Define with a prototype.
18398
18399         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
18400
18401         * lib/exitfail.c: Include <stdlib.h> unconditionally.
18402
18403         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
18404         prototypes.
18405         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
18406         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
18407         (getenv): Remove decl.
18408         (fnmatch): Define using a prototype.
18409         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
18410         (FCT): Define using a prototype.
18411
18412         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
18413
18414         * lib/gethostname.c: Include <stddef.h>.
18415         (gethostname): Define with prototype.  Length is size_t, not int.
18416
18417 2003-09-08  Paul Eggert  <eggert@twinsun.com>
18418
18419         Assume C89 or better; remove K&R cruft.
18420         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
18421         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
18422         string.h, getenv, malloc.
18423         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
18424         headers.
18425         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
18426         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
18427         do not check for strerror.
18428         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
18429         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
18430         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
18431         do not check for doprnt or vprintf.
18432         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
18433         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
18434
18435 2003-09-08  Paul Eggert  <eggert@twinsun.com>
18436
18437         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
18438         getversion.c should have been removed then, but was accidentally
18439         preserved.
18440
18441         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
18442         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
18443
18444 2003-09-08  Karl Berry  <karl@gnu.org>
18445
18446         * config/config.sub, config.guess, srclistvars.sh: update from savannah
18447                 config, forget about prep.
18448
18449         * config/depcomp, missing: update from automake.
18450
18451 2003-09-07  Paul Eggert  <eggert@twinsun.com>
18452
18453         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
18454         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
18455
18456 2003-09-07  Paul Eggert  <eggert@twinsun.com>
18457
18458         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
18459         copy_tm_result.  Bug reported by Simon Josefsson in
18460         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
18461
18462 2003-09-06  Paul Eggert  <eggert@twinsun.com>
18463
18464         * m4/time_r.m4: New file.
18465         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
18466         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
18467         is. Check for timegm declaration.
18468         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
18469         Do not check for gmtime_r.
18470         Replace mktime if __mktime_internal does not exist and if mktime
18471         hasn't been replaced already.
18472
18473 2003-09-06  Paul Eggert  <eggert@twinsun.com>
18474
18475         * lib/time_r.c, lib/time_r.h: New files.
18476
18477         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
18478         __localtime_r.
18479         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
18480         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
18481
18482         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
18483         __gmtime_r.
18484         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
18485         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
18486         Include <time_r.h>.
18487
18488         * lib/timegm.c: Switch to glibc implementation, with the following
18489         changes:
18490         [defined HAVE_CONFIG_H]: Include <config.h>.
18491         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
18492         (__mktime_internal) [!defined _LIBC]: New decl.
18493         (__gmtime_r) [!defined _LIBC]: New macro and function.
18494         (timegm): Use a prototype, since gnulib assumes C89.
18495         Do not bother declaring tmp to be const, as it's not really usefu.
18496         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
18497         (timegm): Declare only if HAVE_DECL_TIMEGM.
18498
18499 2003-09-06  Paul Eggert  <eggert@twinsun.com>
18500
18501         * MODULES.html.sh (func_all_modules): Add time_r.
18502         * modules/time_r: New file.
18503         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
18504         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
18505
18506 2003-09-03  Paul Eggert  <eggert@twinsun.com>
18507
18508         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
18509         Bug reported by Lute Kamstra in
18510         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
18511
18512         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
18513         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
18514         course with correspondingly smaller numbers for tomorrow and
18515         yesterday.  From Tadayoshi Funaba.  Originally installed into
18516         sh-utils on 1999-08-07, but the patch got lost (I guess during the
18517         coreutils merge?).
18518
18519 2003-08-31  Simon Josefsson  <jas@extundo.com>
18520
18521         * modules/timegm: New file.
18522         * MODULES.html.sh (func_all_modules): Add timegm.
18523
18524 2003-08-31  Simon Josefsson  <jas@extundo.com>
18525
18526         * m4/timegm.m4: New file.
18527
18528 2003-08-31  Simon Josefsson  <jas@extundo.com>
18529
18530         * lib/timegm.h: New file.
18531         * lib/timegm.c: New file.  Based on
18532         wget-1.8.2/src/http.c:mktime_from_utc.
18533
18534 2003-08-31  Karl Berry  <karl@gnu.org>
18535
18536         * lib/argp.h: update from libc.
18537
18538 2003-08-28  Bruno Haible  <bruno@clisp.org>
18539
18540         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
18541         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
18542         followed by '#define fnmatch fnmatch_posix' gives an error.
18543
18544 2003-08-28  Bruno Haible  <bruno@clisp.org>
18545
18546         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
18547         warning on QNX, which defines O_BINARY to 000000.
18548
18549 2003-08-27  Jim Meyering  <jim@meyering.net>
18550
18551         * m4/mkstemp.m4: Require that the system mkstemp be able to create
18552         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
18553         would fail after 32.  Reported by Danny Levinson.  Details here:
18554         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
18555
18556 2003-08-24  Bruno Haible  <bruno@clisp.org>
18557
18558         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
18559         MSVC7 <stdio.h> is included later.
18560
18561 2003-08-22  Simon Josefsson  <jas@extundo.com>
18562
18563         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
18564
18565 2003-08-20  Karl Berry  <karl@gnu.org>
18566
18567         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
18568
18569 2003-08-20  Bruno Haible  <bruno@clisp.org>
18570
18571         * modules/progname: New file.
18572         * MODULES.html.sh (func_all_modules): Add progname.
18573
18574 2003-08-20  Bruno Haible  <bruno@clisp.org>
18575
18576         * lib/progname.h: New file, from GNU gettext.
18577         * lib/progname.c: New file, from GNU gettext.
18578         * lib/progreloc.c: New file, from GNU gettext.
18579
18580 2003-08-19  Jim Meyering  <jim@meyering.net>
18581
18582         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
18583         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
18584
18585 2003-08-19  Bruno Haible  <bruno@clisp.org>
18586
18587         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
18588         more.
18589
18590 2003-08-19  Bruno Haible  <bruno@clisp.org>
18591
18592         * lib/xstrdup.c: Assume <string.h> exists.
18593
18594 2003-08-18  Paul Eggert  <eggert@twinsun.com>
18595
18596         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
18597         in makefile rules.
18598
18599 2003-08-18  Jim Meyering  <jim@meyering.net>
18600
18601         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
18602         * m4/lib-ld.m4: Likewise.
18603
18604 2003-08-18  Jim Meyering  <jim@meyering.net>
18605
18606         * lib/setenv.h: Indent nested cpp directive.
18607         * lib/vasnprintf.c: Remove trailing blanks.
18608
18609 2003-08-17  Simon Josefsson  <jas@extundo.com>
18610
18611         * modules/xstrndup: New file.
18612         * MODULES.html.sh (func_all_modules): Add xstrndup.
18613
18614 2003-08-17  Simon Josefsson  <jas@extundo.com>
18615
18616         * modules/argp: Fix autoconf macro name. Add more dependencies.
18617
18618 2003-08-17  Simon Josefsson  <jas@extundo.com>
18619
18620         * m4/xstrndup.m4: New file.
18621
18622 2003-08-17  Simon Josefsson  <jas@extundo.com>
18623
18624         * m4/argp.m4: New file.
18625
18626 2003-08-17  Simon Josefsson  <jas@extundo.com>
18627             Bruno Haible  <bruno@clisp.org>
18628
18629         * lib/xstrndup.h: New file.
18630         * lib/xstrndup.c: New file.
18631
18632 2003-08-17  Bruno Haible  <bruno@clisp.org>
18633
18634         * modules/strndup (Files, Include): Add lib/strndup.h.
18635
18636 2003-08-17  Bruno Haible  <bruno@clisp.org>
18637
18638         * modules/euidaccess (Files): Add lib/euidaccess.h.
18639
18640 2003-08-17  Bruno Haible  <bruno@clisp.org>
18641
18642         * lib/strndup.h: New file.
18643
18644 2003-08-17  Bruno Haible  <bruno@clisp.org>
18645
18646         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
18647         like AC_GNU_SOURCE.
18648         * modules/extensions (configure.ac): Comment out the invocation of
18649         gl_USE_SYSTEM_EXTENSIONS.
18650
18651 2003-08-16  Paul Eggert  <eggert@twinsun.com>
18652
18653         Merges from coreutils, etc.
18654         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
18655         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
18656         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
18657         fixing a typo.
18658         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
18659         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
18660
18661 2003-08-16  Paul Eggert  <eggert@twinsun.com>
18662
18663         Document merge from coreutils.
18664         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
18665         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
18666         * modules/utime: Add m4/utimes-null.m4.
18667
18668 2003-08-16  Paul Eggert  <eggert@twinsun.com>
18669
18670         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
18671         space, undoing this 2003-08-12 change:
18672         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
18673
18674 2003-08-16  Paul Eggert  <eggert@twinsun.com>
18675
18676         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
18677         strtoul.c from libc, undoing this 2003-08-12 change:
18678         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
18679
18680 2003-08-16  Jim Meyering  <jim@meyering.net>
18681
18682         Merges from coreutils.
18683         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
18684         prefix.  Adjust cache variables similarly.  Create 500 rather than
18685         just 300 files, to exercise bug on Darwin6.5, too.
18686         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
18687         $missing_dir.
18688         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
18689         AM_SYS_POSIX_TERMIOS.
18690         Reported by mkc@mathdogs.com.
18691         Also change use of $am_cv_sys_posix_termios
18692         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
18693         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
18694         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
18695         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
18696         in /proc/mounts until it finds one with matching device number.  This
18697         is unnecessary when the FILE argument *is* a mount point.  No stat call
18698         is necessary in that case.  So, disable the statvfs-testing code on
18699         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
18700         as RedHat bug# 84846.
18701         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
18702         to 1MB, so as not to render systems with no stack size limit (e.g.,
18703         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
18704         Include <unistd.h>.  On some systems,
18705         it is required for the definition of _SC_PAGESIZE.
18706
18707 2003-08-16  Jim Meyering  <jim@meyering.net>
18708
18709         Merge from coreutils.
18710         * lib/xstrtoimax.c: #else #if -> #elif.
18711         * lib/xstrtoumax.c: Likewise.
18712
18713 2003-08-16  Jim Meyering  <jim@meyering.net>
18714
18715         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
18716         * m4/utimes.m4: Removed.
18717         * m4/utimes-null.m4: Renamed from utimes.m4.
18718
18719         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
18720         to 1MB, so as not to render systems with no stack size limit (e.g.,
18721         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
18722         Include <unistd.h>.  On some systems,
18723         it is required for the definition of _SC_PAGESIZE.
18724
18725 2003-08-16  Jim Meyering  <jim@meyering.net>
18726         and Paul Eggert  <eggert@cs.ucla.edu>
18727
18728         Merges from coreutils, etc.
18729
18730         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
18731         using the latest version from cvs.  This avoids problems with #line
18732         directives using a vendor (Sun) compiler.
18733         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
18734         Don't set GETGROUPS_LIB here; now it's
18735         done via getgroups.m4's wrapper function.
18736         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
18737         rather than just in sh-util/configure.in, so that the
18738         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
18739         same.
18740         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
18741         AC_FUNC_GETLOADAVG where to find getloadavg.c.
18742         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
18743         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
18744         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
18745         Remove code that is now done by the newly-required macros.
18746         Append $(EXEEXT) to DF_PROG.
18747         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
18748         Do not invoke or require the following here,
18749         since prereq.m4 or some gnulib .m4 now does this for us:
18750         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
18751         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
18752         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
18753         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
18754         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
18755         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
18756         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
18757         AC_FUNC_OBSTACK.
18758         Do not replace the following functions, as this is now the job
18759         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
18760         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
18761         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
18762         atexit getpass, strdup, getpagesize.
18763         Replace 'raise'.
18764         Do not check for the following functions, as this is now the job
18765         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
18766         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
18767         setregid.
18768         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
18769         Check for sys/sysctl.h.
18770         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
18771         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
18772         of checking for ssize_t ourselves.
18773
18774         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
18775         Require every macro that gnulib/modules/* suggests for us.
18776         (jm_PREREQ_ADDEXT): New macro.
18777         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
18778         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
18779
18780         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
18781         (gl_PHYSMEM): Use it.
18782         Also check for `table' function.
18783         Check for new headers and functions.
18784         Add check for sys/sysmp.h.
18785         With suggestions from Kaveh Ghazi.
18786         Ignore headers that are present but cannot be compiled.  This
18787         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
18788         C 5.4.
18789
18790 2003-08-15  Paul Eggert  <eggert@twinsun.com>
18791
18792         Document merge from coreutils.
18793         * modules/userspec: Depend on posixver.
18794         * modules/strftime: Depend on tzset.
18795
18796 2003-08-15  Paul Eggert  <eggert@twinsun.com>
18797
18798         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
18799         rather than tab, after '#' in shell-script copyright notices.
18800         Suggested by Bruno Haible.
18801
18802 2003-08-15  Paul Eggert  <eggert@twinsun.com>
18803
18804         * config/srclist-update: Use three spaces, rather than tab, after '#'
18805         in shell-script copyright notices.  Suggested by Bruno Haible.
18806         Remove unnecessary parenthesization in regular expression.
18807
18808 2003-08-15  Jim Meyering  <jim@meyering.net>
18809
18810         Merge from coreutils.
18811         * lib/xgethostname.c: Include <stdlib.h>.
18812         (xghostname): Don't exit for anything other than memory-related
18813         failure; just return NULL.
18814         * lib/userspec.c: Include "posixver.h".
18815         (parse_user_spec): Accept `.' as a separator only
18816         in pre-POSIX-200112 mode.
18817         * lib/strtoimax.c: Use #elif rather than #else #if.
18818         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
18819         Remove function, now that we can rely on a working tzset function.
18820         [!_LIBC]: Ensure that the required autoconf test has been run.
18821         [!defined _NL_CURRENT && HAVE_STRFTIME]:
18822         Use underlying_strftime for %r.
18823         * lib/sha.c: Merge in some clean-up and optimization changes from
18824         glibc.
18825         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
18826         Ensure that it is a multiple of 64.
18827         Rearrange loop exit tests so as to avoid performing an
18828         additional fread after encountering an error or EOF.
18829         * lib/realloc.c: Update copyright date.
18830
18831 2003-08-15  Jim Meyering  <jim@meyering.net>
18832         and Paul Eggert  <eggert@twinsun.com>
18833
18834         Merge from coreutils.
18835         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
18836         member but strut utmpx does not.  Needed for AIX 4.3.3.
18837         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
18838
18839 2003-08-15  Jim Meyering  <jim@meyering.net>
18840         and Paul Eggert  <eggert@cs.ucla.edu>
18841
18842         Merges from coreutils, etc.
18843         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
18844         Require gl_FUNC_TZSET_CLOBBER.
18845         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
18846         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
18847         members.
18848
18849 2003-08-14  Paul Eggert  <eggert@twinsun.com>
18850
18851         Help the merge from coreutils.
18852         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
18853         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
18854         * m4/tzset.m4: Use it too.
18855
18856 2003-08-14  Paul Eggert  <eggert@twinsun.com>
18857
18858         * modules/tzset: New file.
18859
18860 2003-08-14  Jim Meyering  <jim@meyering.net>
18861
18862         Merges from coreutils.
18863         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
18864         variable names, rather than @FNMATCH_H@.
18865         * modules/alloca: Likewise for $(ALLOCA_H).
18866
18867         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
18868         the three copies of the literal target, `fnmatch.h'.
18869         * modules/alloca (alloca.h): Likewise.
18870
18871 2003-08-14  Jim Meyering  <jim@meyering.net>
18872
18873         Merge from coreutils.
18874         * m4/tzset.m4: New file.
18875         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
18876         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
18877         otherwise, AIX 5.1 systems would end up using the latter.
18878         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
18879         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
18880         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
18881         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
18882
18883 2003-08-14  Jim Meyering  <jim@meyering.net>
18884
18885         Merge from coreutils.
18886         * lib/obstack.h: Whitespace changes.
18887         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
18888         and xcalloc return values.
18889         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
18890         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
18891         hang on OSF/1 5.1 for DIR on both local and remote file systems.
18892         Reported by (and fix confirmed by) Nelson H. F. Beebe.
18893         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
18894         error from mntctl.
18895         Use mntctl's return value to drive the entry-processing loop, since
18896         we can't rely on the value of the vmt_length member in the last
18897         entry.  On some systems doing so could result in exhausting
18898         virtual memory.  Based in part on a patch from Mike Jetzer.
18899
18900 2003-08-14  Jim Meyering  <jim@meyering.net>
18901         and Paul Eggert  <eggert@twinsun.com>
18902
18903         Merges from coreutils, plus other fixes.
18904         * lib/physmem.c: Merge in portability changes from gcc/libiberty
18905         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
18906         for credits and details.  Thanks to Kaveh Ghazi for helping
18907         to keep these files in sync.
18908         (ARRAY_SIZE): Define it.
18909         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
18910         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
18911         (memcasecmp): Don't assume size_t fits in unsigned int.
18912         Remove casts and duplicate code.
18913         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
18914         (memcpy): Remove definition.
18915         Merge in some clean-up and optimization changes from glibc.
18916         [BLOCKSIZE]: Move definition to top of file.
18917         Ensure that it is a multiple of 64.
18918         Rearrange loop exit tests so as to avoid performing an
18919         additional fread after encountering an error or EOF.
18920         * lib/md5.h (md5_uintptr): Define.
18921         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
18922         return to the initial working directory.  Preserve errno
18923         for caller.
18924         * lib/idcache.c: Include "xalloc.h".
18925         (xmalloc, xrealloc): Remove decls.
18926         (getuser): Remove casts no longer required in C89.
18927         * lib/human.c: Include stdio.h, for sprintf.
18928         * lib/group-member.c: Include "xalloc.h".
18929         (xmalloc, xrealloc): Remove decls.
18930         (get_group_info): Remove casts no longer required in C89.
18931         * lib/getusershell.c (readname): Remove casts no longer required in
18932         C89.
18933         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
18934         * lib/getline.c: Whitespace fix, from coreutils.
18935
18936 2003-08-13  Paul Eggert  <eggert@twinsun.com>
18937
18938         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
18939         Check for isascii.
18940
18941         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
18942         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
18943         Undo previous (whitespace-only) change.
18944
18945 2003-08-13  Paul Eggert  <eggert@twinsun.com>
18946
18947         * lib/exclude.c: Include <ctype.h>
18948         (IN_CTYPE_DOMAIN): New macro.
18949         (is_space): New fn.
18950         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
18951         and empty lines.
18952
18953         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
18954         Undo previous (whitespace-only) change.
18955
18956 2003-08-13  Paul Eggert  <eggert@twinsun.com>
18957
18958         * config/srclist-update: Change update back to the old behavior,
18959         leaving whitespace alone.  Use one 'sed' command rather than a
18960         pipeline.
18961         (fixlicense): Now a variable, not a function.
18962         (remove_trailing_blanks): Remove.
18963         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
18964         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
18965         Undo previous (whitespace-only) change.
18966
18967 2003-08-12  Paul Eggert  <eggert@twinsun.com>
18968
18969         Merge from coreutils.
18970         * modules/euidaccess: Add lib_SOURCES, include for new
18971         file euidaccess.h
18972
18973 2003-08-12  Paul Eggert  <eggert@twinsun.com>
18974
18975         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
18976         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
18977         Normalize leading white space and remove trailing white space.
18978
18979         Merge from coreutils
18980         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
18981
18982         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
18983         0.12.1.  These files are now being upgraded automatically by
18984         ../config/srclist-update.
18985
18986 2003-08-12  Paul Eggert  <eggert@twinsun.com>
18987
18988         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
18989         Normalize leading white space and remove trailing white space.
18990         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
18991         notice, as per ../config/srclist-update.
18992
18993         Merge from coreutils.
18994         * lib/euidaccess.h: New file.
18995         * lib/euidaccess.c: Include it.
18996         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
18997         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
18998         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
18999
19000 2003-08-12  Paul Eggert  <eggert@twinsun.com>
19001
19002         * config/srclist-update: Add copyright notice.
19003         (remove_id_lines, remove_trailing_blanks): New constants.
19004         (fixfile): Use them to normalize spacing a bit in copied files.
19005         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
19006         Normalize leading white space and remove trailing white space.
19007
19008         * config/texinfo.tex: Sync with texinfo.
19009
19010         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
19011         strtoul.c from libc, to merge coreutils whitespace changes.
19012
19013         * config/srclist.txt: Get the following m4 files from gettext:
19014         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
19015         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
19016         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
19017         wint_t.m4.
19018
19019 2003-08-12  Karl Berry  <karl@gnu.org>
19020
19021         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
19022         been made.
19023
19024 2003-08-11  Paul Eggert  <eggert@twinsun.com>
19025
19026         * modules/gnu-source, m4/gnu-source.m4:
19027         Remove; we're assuming Autoconf 2.54 or later now.
19028         Suggested by Bruno Haible.
19029         * MODULES.html.sh (func_all_modules): Remove gnu-source.
19030
19031 2003-08-11  Bruno Haible  <bruno@clisp.org>
19032
19033         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
19034
19035 2003-08-11  Bruno Haible  <bruno@clisp.org>
19036
19037         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
19038         (vasnprintf): Use it instead of wcslen.
19039
19040 2003-08-11  Bruno Haible  <bruno@clisp.org>
19041
19042         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
19043         value to ensure that _Bool promotes to int. Use #define for _Bool when
19044         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
19045
19046 2003-08-10  Karl Berry  <karl@gnu.org>
19047
19048         * lib/regex.h: update from libc (whitespace fix).
19049
19050 2003-08-09  Paul Eggert  <eggert@twinsun.com>
19051
19052         Merge some files from coreutils.  These changes were
19053         originally made by Jim Meyering.
19054         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
19055         many older Unixes require this.
19056         * lib/alloca.c (alloca): Remove cast to argument of free;
19057         no longer needed in C89.
19058         * lib/alloca_.h, regex.h: Fix white space to match
19059         what GNU indent does.
19060
19061 2003-08-09  Paul Eggert  <eggert@twinsun.com>
19062
19063         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
19064         apparently Emacs's Unicode mode got confused before my 2003-08-05
19065         checkin.
19066
19067 2003-08-08  Paul Eggert  <eggert@twinsun.com>
19068
19069         * m4/extensions.m4: New file.
19070         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
19071         Require gl_USE_SYSTEM_EXTENSIONS.
19072         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
19073         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
19074
19075 2003-08-08  Paul Eggert  <eggert@twinsun.com>
19076
19077         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
19078         * modules/extensions, modules/gnu-source: New files.
19079         * modules/timespec, modules/unlocked-io: Depend on extensions.
19080
19081 2003-08-07  Paul Eggert  <eggert@twinsun.com>
19082
19083         * modules/restrict: New file.
19084         * MODULES.html.sh (func_all_modules): Add restrict.
19085         * modules/regex: Depend on restrict.
19086
19087 2003-08-07  Paul Eggert  <eggert@twinsun.com>
19088
19089         * m4/restrict.m4: New file.
19090         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
19091
19092 2003-08-07  Bruno Haible  <bruno@clisp.org>
19093
19094         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
19095         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
19096
19097 2003-08-07  Bruno Haible  <bruno@clisp.org>
19098
19099         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
19100         makes the module 'getndelim2' compatible with the module 'getline'.
19101
19102 2003-08-05  Paul Eggert  <eggert@twinsun.com>
19103
19104         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
19105         byte with "\201" to avoid glitches when editing that source file
19106         with multi-gnome-terminal.
19107
19108 2003-08-05  Paul Eggert  <eggert@twinsun.com>
19109
19110         * lib/bumpalloc.h: Remove.
19111
19112 2003-08-05  Paul Eggert  <eggert@twinsun.com>
19113
19114         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
19115         * modules/bumpalloc: Remove.
19116
19117 2003-08-04  Paul Eggert  <eggert@twinsun.com>
19118
19119         * lib/getloadavg.c: Change copyright notice and spacing to conform to
19120         GNU coding style.
19121
19122         Merge from coreutils.
19123         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
19124         1. From glibc.
19125         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
19126         from Karl Berry, implemented by Jim Meyering.
19127         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
19128         from Dmitry V. Levin.
19129         Remove anachronistic cast of xrealloc.
19130         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
19131         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
19132         type. Otherwise, it wouldn't compile with at least /bin/cc on
19133         ymp-cray-unicos9.0.2.X.
19134         Combine two mostly-identical uses of alloca into one.
19135         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
19136
19137 2003-08-04  Dave Love  <d.love@dl.ac.uk>
19138
19139         [From Emacs.]
19140
19141         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
19142         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
19143         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
19144         obsolete NLIST_NAME_UNION.
19145         [__GNU__]: Undef BSD and FSCALE.
19146         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
19147
19148 2003-08-03  Paul Eggert  <eggert@twinsun.com>
19149
19150         * lib/stdbool_.h (_Bool): Make it signed char, instead of
19151         an enum type, so that it's guaranteed to promote to int.  See:
19152         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
19153
19154 2003-08-03  Karl Berry  <karl@gnu.org>
19155
19156         * config/depcomp: update from automake.
19157
19158 2003-07-31  Paul Eggert  <eggert@twinsun.com>
19159
19160         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
19161         (strerror): Don't assume that a printable int fits in 14 bytes.
19162
19163 2003-07-31  Bruno Haible  <bruno@clisp.org>
19164
19165         * modules/getpass-gnu: New file.
19166         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
19167
19168 2003-07-31  Bruno Haible  <bruno@clisp.org>
19169
19170         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
19171
19172 2003-07-24  Karl Berry  <karl@gnu.org>
19173
19174         * config/missing: update from automake.
19175
19176 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
19177             Bruno Haible  <bruno@clisp.org>
19178
19179         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
19180         * lib/getline.c (getline, getdelim): Likewise.
19181         Remove _GNU_SOURCE define; now it's defined in config.h through
19182         m4/getline.m4.
19183
19184 2003-07-23  Karl Berry  <karl@gnu.org>
19185
19186         * config/config.sub: update from prep.
19187
19188 2003-07-22  Paul Eggert  <eggert@twinsun.com>
19189
19190         * modules/xalloc (Depends-on): Add exitfail.
19191         * modules/xmemcoll: Likewise.
19192
19193 2003-07-22  Paul Eggert  <eggert@twinsun.com>
19194
19195         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
19196         over-parenthesization in macros.
19197
19198         Sync with coreutils.
19199
19200         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
19201         required by C99.
19202
19203         Use `exit_failure' for xalloc and xmemcoll instead of their own
19204         private exit-failure variables.
19205         * lib/xalloc.h (xalloc_exit_failure): Remove.
19206         * lib/xmalloc.c: Likewise.  Include exitfail.h.
19207         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
19208         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
19209         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
19210         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
19211
19212 2003-07-20  Jim Meyering  <jim@meyering.net>
19213
19214         * modules/closeout (Depends-on): Add exitfail.
19215         Suggestion from Bruno Haible.
19216
19217 2003-07-19  Karl Berry  <karl@gnu.org>
19218
19219         * config/config.sub: update from prep.
19220
19221 2003-07-18  Paul Eggert  <eggert@twinsun.com>
19222
19223         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
19224         Remove.
19225         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
19226         to test that it can stand by itself.  Include "exitfail.h".
19227         Clients should set exit_failure instead.
19228         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
19229
19230 2003-07-18  Bruno Haible  <bruno@clisp.org>
19231
19232         * modules/getndelim2: New file.
19233         * modules/getline: Share files with module getndelim2.
19234         * modules/getnline: Depend on getndelim2 instead of sharing files with
19235         it. Add getnline.c to lib_SOURCES.
19236         * MODULES.html.sh (func_all_modules): Add getndelim2.
19237
19238 2003-07-18  Bruno Haible  <bruno@clisp.org>
19239
19240         * m4/getndelim2.m4: New file.
19241         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
19242         invoke gl_PREREQ_GETNDELIM2.
19243         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
19244         gl_PREREQ_GETNDELIM2.
19245         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
19246         gl_GETNDELIM2.
19247
19248 2003-07-18  Bruno Haible  <bruno@clisp.org>
19249
19250         * lib/getndelim2.h: New file.
19251         * lib/getndelim2.c: Make into a module of its own. Include config.h,
19252         getndelim2.h.
19253         (getndelim2): Make non-static. Change return type to ssize_t.
19254         * lib/getline.h: Change argument names.
19255         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
19256         * lib/getnline.c: Include getndelim2.h.
19257
19258 2003-07-18  Andreas Schwab  <schwab@suse.de>
19259
19260         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
19261
19262 2003-07-17  Karl Berry  <karl@gnu.org>
19263
19264         * config/config.sub: update from prep.
19265
19266 2003-07-17  Bruno Haible  <bruno@clisp.org>
19267
19268         * modules/getnline: New file.
19269         * modules/getline: Add lib/getndelim2.c to source file list.
19270         * MODULES.html.sh (func_all_modules): Add getnline.
19271
19272 2003-07-17  Bruno Haible  <bruno@clisp.org>
19273
19274         * m4/getnline.m4: New file.
19275
19276 2003-07-17  Bruno Haible  <bruno@clisp.org>
19277
19278         * m4/Makefile.am.in: Remove file.
19279         * m4/Makefile.am: Remove file.
19280         * m4/Makefile.in: Remove file.
19281
19282 2003-07-17  Bruno Haible  <bruno@clisp.org>
19283
19284         * lib/getnline.h: New file.
19285         * lib/getnline.c: New file.
19286         * lib/getndelim2.c: New file, extracted from getline.c.
19287         (getndelim2): Renamed from getdelim2, with added nmax argument.
19288         * lib/getline.c: Include getndelim2.c.
19289         (getdelim2): Moved out to getndelim2.c.
19290         (getline, getdelim): Update.
19291
19292 2003-07-17  Bruno Haible  <bruno@clisp.org>
19293
19294         * lib/Makefile.am: Remove file.
19295         * lib/Makefile.in: Remove file.
19296
19297 2003-07-17  Bruno Haible  <bruno@clisp.org>
19298
19299         * configure.in: Remove file.
19300         * Makefile.in: Remove file.
19301
19302 2003-07-17  Bruno Haible  <bruno@clisp.org>
19303
19304         * MODULES.html.sh: Put the </BODY> right before </HTML>.
19305
19306 2003-07-16  Karl Berry  <karl@gnu.org>
19307
19308         * config/srclist-update: was running fixlicense twice, which caused
19309                 texinfo.tex to be nullified for some reason.  Simplify,
19310                 $gplsrc is no longer needed as far as I can see?
19311
19312 2003-07-16  Jim Meyering  <jim@meyering.net>
19313
19314         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
19315
19316 2003-07-15  Paul Eggert  <eggert@twinsun.com>
19317
19318         * config/srclist.txt: Get the following files from gettext-runtime/intl
19319         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
19320         ref-del.sin.  From Bruno Haible.
19321         * config/srclist-update (fixfile): Change grep pattern again, since the
19322         previous fix didn't work (there was another trailing $).  Use
19323         '[$]' to escape the $s.
19324
19325 2003-07-15  Karl Berry  <karl@gnu.org>
19326
19327         * lib/vasnprintf.c: update from gettext.
19328
19329 2003-07-15  Karl Berry  <karl@gnu.org>
19330
19331         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
19332         gets expanded when surrounded by '$'.
19333
19334 2003-07-15  Jim Meyering  <jim@meyering.net>
19335
19336         * modules/save-cwd: Don't depend on error.  From Derek Price.
19337
19338 2003-07-15  Jim Meyering  <jim@meyering.net>
19339
19340         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
19341
19342 2003-07-14  Simon Josefsson  <jas@extundo.com>
19343
19344         * modules/mempcpy: New file.
19345         * MODULES.html.sh (func_all_modules): Add mempcpy.
19346
19347 2003-07-14  Simon Josefsson  <jas@extundo.com>
19348
19349         * m4/mempcpy.m4: New file.
19350
19351 2003-07-14  Simon Josefsson  <jas@extundo.com>
19352
19353         * lib/mempcpy.h: New file.
19354         * lib/mempcpy.c: New file.
19355
19356 2003-07-14  Paul Eggert  <eggert@twinsun.com>
19357
19358         * modules/getdate, modules/posixtm: Depend on mktime.
19359
19360 2003-07-14  Paul Eggert  <eggert@twinsun.com>
19361
19362         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
19363         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
19364         unicodeio.c, unicodeio.h, unlocked-io.h:
19365         Switch from LGPL to GPL.
19366
19367 2003-07-14  Paul Eggert  <eggert@twinsun.com>
19368
19369         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
19370         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
19371         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
19372         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
19373         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
19374         updated automatically by ../config/srclist-update.  This changes
19375         their license from LPGL to GPL.
19376
19377 2003-07-14  Paul Eggert  <eggert@twinsun.com>
19378
19379         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
19380         assumed to refer to the root of the most recent stable gettext version.
19381         * config/srclistvars.sh: Add defaults for eggert.
19382         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
19383         Match "This program" as well as "The program".  This is needed
19384         for gettext.
19385
19386 2003-07-14  Jim Meyering  <jim@meyering.net>
19387
19388         Don't emit diagnostics.  Let callers do that.
19389         * lib/save-cwd.c: Don't include "error.h".
19390         (save_cwd): Don't call error.  Ensure that errno is valid
19391         when returning nonzero.
19392
19393         * lib/save-cwd.h (restore_cwd): Update prototype.
19394         * lib/save-cwd.c (restore_cwd): Remove two parameters.
19395         Simplify.  Don't call error upon failure.  Let callers do that.
19396         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
19397         when auditing is enabled.  But don't bother updating the #if.
19398
19399 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
19400
19401         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
19402         it breaks C++ compilation.
19403         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
19404
19405 2003-07-10  Simon Josefsson  <jas@extundo.com>
19406
19407         * modules/strchrnul (Makefile.am): Add strchrnul.h.
19408
19409 2003-07-10  Jim Meyering  <jim@meyering.net>
19410
19411         * m4/clock_time.m4: Remove trailing blank.
19412         * m4/intmax_t.m4: Likewise.
19413
19414 2003-07-10  Jim Meyering  <jim@meyering.net>
19415
19416         * lib/vasnprintf.c: Remove trailing blanks.
19417         Make cpp indentation consistent.
19418
19419 2003-07-09  Paul Eggert  <eggert@twinsun.com>
19420
19421         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
19422         posixver.c, strftime.c, strnlen.c, strverscmp.c:
19423         Switch from LGPL to GPL.
19424
19425 2003-07-09  Paul Eggert  <eggert@twinsun.com>
19426
19427         * config/srclist.txt: Sort sublists.  Add
19428         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
19429         that differ from gnulib for one reason or another; we'd like this list
19430         to be smaller but for now let's document what we have.
19431
19432 2003-07-08  Paul Eggert  <eggert@twinsun.com>
19433
19434         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
19435         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
19436         and sweeter "eval x=$x".
19437         * config/srclist.txt: Get lib/argp* from glibc.
19438
19439 2003-07-07  Paul Eggert  <eggert@twinsun.com>
19440
19441         * lib/mktime.c: Fix some boundary cases and remove need for floating
19442         point.
19443
19444         Issue a compile-time diagnostic if time_t is floating point, or if
19445         two's complement arithmetic is not in effect, or if arithmetic
19446         right shift does not propagate the sign.  These assumptions were
19447         all in the original code but they weren't checked.
19448
19449         (TIME_T_MIDPOINT, verify): New macros.
19450         (__isleap): Remove; it has integer overflow problems.
19451         (leapyear): New function, without those problems.
19452         (ydhms_tm_diff): Remove; splitting into two parts.
19453         (ydhms_diff): New function, containing the arithmetic part of
19454         the old ydhms_tm_diff function.  Issue a compile-time
19455         diagnostic if we are not using C99 integer division.
19456         Avoid casts when possible.
19457         (guess_time_tm): New function, containing the checking part of
19458         the old ydhms_tm_diff function.  Return the new value, rather than
19459         the difference between it and the old.  Accept a new argument T
19460         so that *T specifies the old value.  Check for overflow in the result.
19461
19462         (__mktime_internal): Use a time_t offset, not a long int offset.
19463         This undoes the 2003-06-04 change, which is no longer needed now
19464         that we have better overflow checking.
19465         (localtime_offset): Likewise.
19466
19467         (__mktime_internal): Avoid harmful overflow on hosts where time_t
19468         and long are 64-bit but int is only 32-bit.
19469         (ydhms_diff): Use long int to store year1 and yday1.
19470         Issue a compile-time diagnostic if long int is not wide enough.
19471
19472         (__mktime_internal): Use long int to store adjusted year and yday.
19473         Use plain C rather than preprocessor commands, if that doesn't
19474         affect efficiency.
19475         Check for overflow (and try to repair) after each probe
19476         rather than checking only at the very end.  This avoids some bugs
19477         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
19478         does not equal GMT offset at maximum time).
19479         Use integer to check for overflow rather than floating point; this
19480         is more portable to non-IEEE hosts, and is a tad faster.
19481         When we detect that we are oscillating between two values,
19482         don't check whether tm_isdst has the requested value, since
19483         we already know the answer.  When tm_isdst has the wrong value,
19484         use a different heuristic to find the right one, based on the
19485         extreme values actually observed in practice in tz2003a,
19486         rather than the (overly optimistic) "previous 3 calendar quarters".
19487
19488         (not_equal_tm, print_tm, check_result): Use "const T" rather than
19489         "T const" to accommodate glibc style.
19490         (check_result): Use less-confusing report format.  "long" -> "long int.
19491         (main): Likewise.
19492         Don't loop if the iteration overflows time_t.
19493         Allow a negative step in the iteration.
19494
19495 2003-07-06  Karl Berry  <karl@gnu.org>
19496
19497         * config/depcomp: update from automake.
19498         * config/config.sub: update from prep.
19499
19500 2003-07-03  Karl Berry  <karl@gnu.org>
19501
19502         * config/config.guess: update from prep.
19503
19504 2003-07-01  Paul Eggert  <eggert@twinsun.com>
19505
19506         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
19507         xreadlink.c now includes it unconditionally.
19508
19509 2003-07-01  Paul Eggert  <eggert@twinsun.com>
19510
19511         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
19512         having it depend on HAVE_SYS_TYPES_H.
19513
19514 2003-07-01  Bruno Haible  <bruno@clisp.org>
19515
19516         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
19517         <sys/types.h> should be sufficient.
19518         Reported by Paul Eggert.
19519
19520 2003-06-26  Karl Berry  <karl@gnu.org>
19521
19522         * config/depcomp: update from automake.
19523
19524 2003-06-26  Bruno Haible  <bruno@clisp.org>
19525
19526         * modules/human: Depend on module stdbool.
19527
19528 2003-06-25  Bruno Haible  <bruno@clisp.org>
19529
19530         * modules/readlink: New file.
19531         * modules/xreadlink: Depend on it.
19532         * MODULES.html.sh (func_all_modules): Add readlink.
19533
19534 2003-06-25  Bruno Haible  <bruno@clisp.org>
19535
19536         * m4/readlink.m4: New file.
19537
19538 2003-06-25  Bruno Haible  <bruno@clisp.org>
19539
19540         * lib/readlink.c: New file.
19541
19542 2003-06-22  Karl Berry  <karl@gnu.org>
19543
19544         * config/srclist.txt: update mkinstalldirs from automake.
19545         * config/mkinstalldirs: update.
19546
19547 2003-06-22  Bruno Haible  <bruno@clisp.org>
19548
19549         Portability to mingw32.
19550         * m4/ssize_t.m4: New file, from GNU gettext.
19551         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
19552         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
19553
19554 2003-06-22  Bruno Haible  <bruno@clisp.org>
19555
19556         * modules/safe-read: Add m4/ssize_t.m4.
19557         * modules/xreadlink: Add m4/ssize_t.m4.
19558
19559 2003-06-20  Bruno Haible  <bruno@clisp.org>
19560
19561         Assume C89, so PARAMS isn't needed.
19562         * lib/unicodeio.h (PARAMS): Remove.
19563         * lib/unicodeio.c: Don't use PARAMS.
19564
19565 2003-06-18  Karl Berry  <karl@gnu.org>
19566
19567         * config/config.{guess,sub}: update from prep.
19568
19569 2003-06-18  Jim Meyering  <jim@meyering.net>
19570
19571         Merge changes from coreutils.
19572         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
19573         Remove explicit declarations of xmalloc and realloc.
19574         Include xalloc.h.
19575         (read_utmp): Remove anachronistic cast of xmalloc.
19576
19577 2003-06-17  Paul Eggert  <eggert@twinsun.com>
19578
19579         Assume C89, so PARAMS isn't needed.
19580         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
19581         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
19582         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
19583         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
19584         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
19585         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
19586         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
19587         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
19588         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
19589         lib/xstrtod.h, lib/xstrtol.h: Likewise.
19590         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
19591         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
19592         no longer needed. Anyway, config.h should always be included before any
19593         other file.
19594
19595 2003-06-11  Simon Josefsson  <jas@extundo.com>
19596
19597         * modules/sysexits: New file.
19598         * MODULES.html.sh (func_all_modules): Add sysexits.
19599
19600 2003-06-11  Simon Josefsson  <jas@extundo.com>
19601
19602         * lib/sysexit_.h: New file.
19603
19604 2003-06-11  Derek Price  <derek@ximbiot.com>
19605
19606         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
19607         necessary.
19608
19609 2003-06-11  Bruno Haible  <bruno@clisp.org>
19610
19611         * m4/sysexits.m4: New file.
19612
19613 2003-06-10  Simon Josefsson  <jas@extundo.com>
19614
19615         * lib/argp.h: New file, from glibc.
19616         * lib/argp-ba.c: New file, from glibc.
19617         * lib/argp-eexst.c: New file, from glibc.
19618         * lib/argp-fmtstream.c: New file, from glibc.
19619         * lib/argp-fmtstream.h: New file, from glibc.
19620         * lib/argp-fs-xinl.c: New file, from glibc.
19621         * lib/argp-help.c: New file, from glibc.
19622         * lib/argp-namefrob.h: New file, from glibc.
19623         * lib/argp-parse.c: New file, from glibc.
19624         * lib/argp-pv.c: New file, from glibc.
19625         * lib/argp-pvh.c: New file, from glibc.
19626         * lib/argp-xinl.c: New file, from glibc.
19627
19628 2003-06-10  Simon Josefsson  <jas@extundo.com>
19629
19630         * modules/strchrnul: New file.
19631
19632 2003-06-10  Simon Josefsson  <jas@extundo.com>
19633
19634         * modules/argp: New file.
19635
19636 2003-06-10  Simon Josefsson  <jas@extundo.com>
19637
19638         * m4/strchrnul.m4: New file.
19639
19640 2003-06-10  Simon Josefsson  <jas@extundo.com>
19641
19642         * lib/strchrnul.h: New file.
19643         * lib/strchrnul.c: New file.
19644
19645 2003-06-10  Bruno Haible  <bruno@clisp.org>
19646
19647         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
19648
19649 2003-06-07  Karl Berry  <karl@gnu.org>
19650
19651         * config/config.{guess,sub}: update from prep.
19652
19653 2003-06-07  Jim Meyering  <jim@meyering.net>
19654
19655         * modules/strtod: Use $(...) notation, not @...@ for
19656         AC_REPLACE'd variables.
19657         * modules/localcharset: Likewise.
19658
19659 2003-06-07  Jim Meyering  <jim@meyering.net>
19660
19661         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
19662         in place of my name in the copyright comment.
19663         Remove definition and uses of __P.
19664
19665         From coreutils.
19666         * lib/stat.c: Don't declare xmalloc explicitly.
19667         Instead, include "xalloc.h".
19668         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
19669         xrealloc, and xcalloc return values.
19670         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
19671         Improve comment.
19672         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
19673
19674 2003-06-07  Bruno Haible  <bruno@clisp.org>
19675
19676         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
19677         avoid AC_CONFIG_LINKS.
19678         * modules/fnmatch (Makefile.am): Use explicit creation rule for
19679         fnmatch.h, to avoid AC_CONFIG_LINKS.
19680         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
19681
19682 2003-06-07  Bruno Haible  <bruno@clisp.org>
19683
19684         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
19685         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
19686         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
19687         directory.
19688         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
19689         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
19690         directory.
19691
19692 2003-06-06  Jim Meyering  <jim@meyering.net>
19693
19694         Merge from coreutils.
19695         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
19696         Consolidate declarations and initializations of *_base* locals.
19697
19698         Merge from coreutils.
19699         This avoids a core dump on systems without GNU putenv,
19700         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
19701         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
19702         (unsetenv): New static function, from GNU libc.
19703         (rpl_putenv): Use it.
19704
19705         * lib/modechange.c: Remove trailing blanks.
19706
19707         Merge from coreutils.
19708         * lib/fsusage.c: Remove declaration of statfs.
19709         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
19710
19711         * lib/posixtm.c: Include <stdbool.h> unconditionally.
19712
19713 2003-06-06  Jim Meyering  <jim@meyering.net>
19714
19715         * lib/stdbool_.h: Renamed from stdbool.h.in.
19716
19717 2003-06-06  Jim Meyering  <jim@meyering.net>
19718             Bruno Haible  <bruno@clisp.org>
19719
19720         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
19721         Adjust Makefile.am snippet not to redirect directly to target.
19722         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
19723
19724 2003-06-05  Paul Eggert  <eggert@twinsun.com>
19725
19726         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
19727         mismatch, look in future quarters as well as past.  This fixes a
19728         bug when processing fall-backwards gaps immediately after a long
19729         period of daylight-saving time.
19730
19731         * lib/mktime.c: Assume freestanding C89 or better.
19732         (HAVE_LIMITS_H): Remove.  Assume it's 1.
19733         (__P): Remove; not used.
19734         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
19735         (mktime, not_equal_tm, print_tm, check_result,
19736         main): Use prototypes.  Use const * where appropriate.
19737         (main): Fix typo in testing code that uncovered by above changes.
19738         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
19739
19740 2003-06-04  Paul Eggert  <eggert@twinsun.com>
19741
19742         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
19743         locale.h, localeconv.  This merges changes from coreutils.
19744
19745         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
19746         It can be removed after the next Autoconf is released.
19747         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
19748         needed.
19749
19750 2003-06-04  Paul Eggert  <eggert@twinsun.com>
19751
19752         * lib/mktime.c: Fix Debian bug 177940
19753         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
19754         (localtime_offset): Now long int, not time_t, because we want it
19755         to be guaranteed to be signed.  All uses changed.
19756         (__mktime_internal): If overflow would occur when adding offset,
19757         don't add it.
19758
19759         Merge 'human' changes from coreutils.  Rewrite to support
19760         locale-specific notations like thousands separators.
19761         * lib/human.c: Simplify authorship notice.
19762         Include human.h immediately after config.h.
19763         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
19764         <limits.h>: Do not include, since human.h does.
19765         (SIZE_MAX, UINTMAX_MAX): New macros.
19766         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
19767         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
19768         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
19769         (power_letter): Renamed from suffixes.
19770         (generate_suffix_backwards): Remove.
19771         (adjust_value): Now takes int style (because of human.h changes)
19772         and long double value (for greater precision on some platforms).
19773         (group_number): New function.
19774         (human_readable): Use it.  Use integer options, not enum.
19775         Put the options before the sizes in the arg list.
19776         Support all the new options.
19777         The old human_readable function has been removed;
19778         use inttostr.h instead.
19779         (human_readable, default_block_size, humblock):
19780         Use uintmax_t, not int, for block sizes.
19781         (human_readable_inexact, block_size_types): Remove.
19782         (block_size_opts): New constant.
19783         (human_options): Renamed from human_block_size, with new signature
19784         that allows block sizes up to UINTMAX_MAX.  All callers changed.
19785         * lib/human.h: Add copyright and authorship notice.
19786         Include <limits.h> and <stdbool.h> unconditionally.
19787         (PARAMS): Remove.  All uses removed.
19788         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
19789         (enum human_inexact_style): Remove tag; now a nameless enum.
19790         (human_floor, human_ceiling, human_round_to_even): Now have
19791         values 2, 0, 1 rather than -1, 1, 0.
19792         (human_group_digits, human_suppress_point_zero, human_autoscale,
19793         human_base_1024, human_SI, human_B): New constants.
19794         (human_readable_inexact, human_block_size): Remove.
19795         (human_readable): Size args are now uintmax_t, not int.
19796         (human_options): New decl.
19797
19798         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
19799         unnecessary now that we assume C89 or better.  This change
19800         imported from coreutils.
19801
19802         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
19803         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
19804         in the 2003-05-30 sync from glibc.
19805
19806         .h files should stand alone, but we shouldn't include <sys/types.h>
19807         if we can get away with just <stddef.h>.
19808
19809         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
19810         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
19811         rather than <sys/types.h>, as we merely need size_t.
19812         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
19813         to get size_t.
19814         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
19815         Include <stdio.h>, to get FILE.
19816         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
19817         memcasecmp.h has included <stddef.h> and all we need is size_t.
19818         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
19819         our interface, instead of including <sys/types.h>
19820
19821 2003-06-04  Paul Eggert  <eggert@twinsun.com>
19822
19823         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
19824         now, as glibc mktime is buggy on non-glibc systems.
19825
19826 2003-06-03  Karl Berry  <karl@gnu.org>
19827
19828         * config/config.sub: update from prep.
19829
19830 2003-06-02  Paul Eggert  <eggert@twinsun.com>
19831
19832         [from coreutils]
19833         Fix some minor time-related bugs with POSIX time arguments.
19834         Some valid time stamps were being rejected (notably -1, and
19835         time stamps before 1900 on 64-bit hosts).  And some invalid
19836         time stamps were being accepted, e.g. September 31.
19837
19838         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
19839         that we can return (time_t) -1 successfully.
19840         * lib/posixtm.c: Likewise.
19841         [HAVE_STDBOOL_H]: Include <stdbool.h>.
19842         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
19843         (t): Remove static var.
19844         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
19845         of static var.  All uses changed.
19846         (year): Do not reject years before 1900; they can occur with
19847         64-bit time_t.
19848         (posix_time_parse): Do not check for out-of-range components;
19849         that is now the caller's responsibility, since our checks were
19850         only approximations.
19851         (posixtime): Use mktime to check for out-of-range components,
19852         since it knows them exactly.
19853         If mktime returns (time_t) -1, check whether an error actually occurred
19854         by invoking localtime on -1.
19855         (main) [TEST_POSIXTIME]: Check for input data errors, and report
19856         posixtime failures better.
19857         Improve the test data (in comments only).
19858
19859 2003-06-02  Karl Berry  <karl@gnu.org>
19860
19861         * config/mkinstalldirs (version): new variable.
19862         (--version): new option.
19863         (usage): improve message.
19864
19865 2003-05-30  Karl Berry  <karl@gnu.org>
19866
19867         * lib/mktime.c: update from libc.
19868
19869 2003-05-30  Bruno Haible  <bruno@clisp.org>
19870
19871         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
19872         * config/config.rpath: Upgrade to gettext-0.12.1.
19873
19874 2003-05-30  Bruno Haible  <bruno@clisp.org>
19875
19876         * m4/gettext.m4: Upgrade to gettext-0.12.1.
19877         * m4/nls.m4: New file, from gettext-0.12.1.
19878         * m4/po.m4: New file, from gettext-0.12.1.
19879         * m4/progtest.m4: Upgrade to gettext-0.12.1.
19880
19881 2003-05-30  Bruno Haible  <bruno@clisp.org>
19882
19883         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
19884         * lib/localcharset.h: Likewise.
19885         * lib/localcharset.c: Likewise.
19886
19887 2003-05-29  Karl Berry  <karl@gnu.org>
19888
19889         * config/config.rpath: update from gettext.
19890
19891 2003-05-28  Paul Eggert  <eggert@twinsun.com>
19892
19893         Assume the headers required for C89 freestanding compilers.
19894         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
19895         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
19896         * m4/human.m4 (gl_HUMAN): Likewise.
19897         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
19898         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
19899         * m4/userspec.m4 (gl_USERSPEC): Likewise.
19900         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
19901         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
19902         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
19903
19904 2003-05-28  Paul Eggert  <eggert@twinsun.com>
19905
19906         Assume the headers required for C89 freestanding compilers.
19907         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
19908         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
19909         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
19910         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
19911         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
19912         define, since <limits.h> is guaranteed to do that.
19913         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
19914         * lib/exclude.c: Include <stdbool.h> unconditionally.
19915         * lib/tempname.c: Include <stddef.h> unconditionally.
19916         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
19917         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
19918         <stddef.h> does that.
19919         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
19920         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
19921         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
19922         needed.
19923         * lib/xstrtol.c: Likewise.
19924         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
19925         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
19926
19927         * lib/addext.c (addext): Use assignment rather than cast, to avoid
19928         warnings on some platforms.
19929
19930         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
19931         arbitrarily.
19932
19933 2003-05-26  Jim Meyering  <jim@meyering.net>
19934
19935         Merge in a change from coreutils:
19936         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
19937         that is guaranteed to be `no'.  Use `no_such_member' to indicate
19938         that condition, rather than `-1' which is slightly misleading.
19939         Change the name of the cache variable to have the gl_ prefix.
19940         Prompted by a patch from Richard Dawe for DJGPP.
19941
19942 2003-05-24  Karl Berry  <karl@gnu.org>
19943
19944         * config/config.guess: update from prep.
19945
19946 2003-05-22  Karl Berry  <karl@gnu.org>
19947
19948         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
19949
19950 2003-05-20  Karl Berry  <karl@gnu.org>
19951
19952         * config/config.guess: update from prep.
19953
19954 2003-05-18  Karl Berry  <karl@gnu.org>
19955
19956         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
19957         might actually be set by the user.
19958
19959         * config/depcomp, install-sh, mdate-sh: update from automake.
19960
19961 2003-05-17  Bruno Haible  <bruno@clisp.org>
19962
19963         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
19964         invalid expansion for AC_EGREP_CPP.
19965         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
19966         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
19967         Suggested by Akim Demaille <akim@epita.fr> in
19968         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
19969
19970 2003-05-12  Jim Meyering  <jim@meyering.net>
19971
19972         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
19973         the space-padded-by-default conversion specifiers, %e, %k, %l.
19974
19975 2003-05-12  Bruno Haible  <bruno@clisp.org>
19976
19977         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
19978         the string is longer than 4 KB.
19979
19980 2003-05-11  Karl Berry  <karl@gnu.org>
19981
19982         * config/config.{guess,sub}: update from prep.
19983
19984 2003-05-09  Bruno Haible  <bruno@clisp.org>
19985
19986         * modules/error: Add m4/strerror_r.m4 to file list.
19987
19988 2003-05-03  Bruno Haible  <bruno@clisp.org>
19989
19990         Upgrade to Unicode-4.0.
19991         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
19992         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
19993         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
19994         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
19995         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
19996         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
19997         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
19998         Change width of U+E0100..U+E01EF from 1 to 0.
19999
20000 2003-04-25  Jim Meyering  <jim@meyering.net>
20001
20002         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
20003         of type size_t, not int.
20004
20005 2003-04-25  Bruno Haible  <bruno@clisp.org>
20006
20007         * lib/copy-file.c: Include <stddef.h>, for size_t.
20008
20009 2003-04-21  Paul Eggert  <eggert@twinsun.com>
20010
20011         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
20012         code which expansion is under static control.  Patch imported from
20013         Akim Demaille's patch to Bison; see
20014         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
20015
20016 2003-04-14  Bruno Haible  <bruno@clisp.org>
20017
20018         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
20019
20020 2003-04-11  Jim Meyering  <jim@meyering.net>
20021
20022         Merge changes from Coreutils.
20023
20024         2003-03-22  Jim Meyering  <jim@meyering.net>
20025
20026         * lib/strftime.c (widen): Cast alloca return value to proper type.
20027
20028         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
20029
20030         From GNU libc.
20031         * lib/strftime.c (my_strftime): Handle very large width
20032         specifications for numeric values correctly.  Improve checks for
20033         overflow.
20034
20035         2003-01-19  Jim Meyering  <jim@meyering.net>
20036
20037         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
20038         definitions.
20039         (nl_get_alt_digit) [! defined my_strftime]: Define.
20040         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
20041         _nl_get_alt_digit and _nl_get_walt_digit.
20042
20043         * lib/strftime.c (my_strftime): Merge in locale-related changes from
20044         libc. These changes have no effect outside of _LIBC.
20045
20046 2003-04-10  Bruno Haible  <bruno@clisp.org>
20047
20048         * modules/findprog: New file.
20049         * MODULES.html.sh (func_all_modules): Add it.
20050
20051 2003-04-10  Bruno Haible  <bruno@clisp.org>
20052
20053         * m4/findprog.m4: New file.
20054         * m4/eaccess.m4: New file.
20055
20056 2003-04-10  Bruno Haible  <bruno@clisp.org>
20057
20058         * lib/findprog.h: New file, from GNU gettext.
20059         * lib/findprog.c: New file, from GNU gettext.
20060
20061 2003-04-05  Jim Meyering  <jim@meyering.net>
20062
20063         Merge changes from Coreutils.
20064
20065         * lib/exclude.h (PARAMS): Remove definition and uses.
20066         * lib/exclude.c: Remove uses of `PARAMS'.
20067
20068         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
20069         Add test-cases for DOS filenames. Declare program_name.
20070         (main): Set up program_name.  Patch by Rich Dawe.
20071
20072         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
20073         error from mntctl.
20074         Use mntctl's return value to drive the entry-processing loop, since
20075         we can't rely on the value of the vmt_length member in the last
20076         entry.  On some systems doing so could result in exhausting
20077         virtual memory.  Based in part on a patch from Mike Jetzer.
20078
20079 2003-04-04  Bruno Haible  <bruno@clisp.org>
20080
20081         * modules/linebreak: New file.
20082         * MODULES.html.sh (func_all_modules): Add it.
20083
20084 2003-04-04  Bruno Haible  <bruno@clisp.org>
20085
20086         * m4/linebreak.m4: New file.
20087
20088 2003-04-04  Bruno Haible  <bruno@clisp.org>
20089
20090         * lib/linebreak.h: New file, from GNU gettext.
20091         * lib/linebreak.c: New file, from GNU gettext with slight
20092         modifications.
20093         * lib/lbrkprop.h: New file, from GNU gettext.
20094
20095 2003-04-03  Bruno Haible  <bruno@clisp.org>
20096
20097         * modules/utf8-ucs4: New file.
20098         * modules/utf16-ucs4: New file.
20099         * modules/ucs4-utf8: New file.
20100         * modules/ucs4-utf16: New file.
20101         * MODULES.html.sh (func_all_modules): Add them.
20102
20103 2003-04-03  Bruno Haible  <bruno@clisp.org>
20104
20105         * m4/utf-ucs4.m4: New file.
20106         * m4/ucs4-utf.m4: New file.
20107
20108 2003-04-03  Bruno Haible  <bruno@clisp.org>
20109
20110         * lib/utf8-ucs4.h: New file, from GNU gettext.
20111         * lib/utf16-ucs4.h: New file, from GNU gettext.
20112         * lib/ucs4-utf8.h: New file, from GNU gettext.
20113         * lib/ucs4-utf16.h: New file, from GNU gettext.
20114
20115 2003-04-02  Bruno Haible  <bruno@clisp.org>
20116
20117         * modules/binary-io: New file.
20118         * MODULES.html.sh (func_all_modules): Add it.
20119
20120 2003-04-02  Bruno Haible  <bruno@clisp.org>
20121
20122         * lib/binary-io.h: New file, from GNU gettext.
20123
20124 2003-04-01  Bruno Haible  <bruno@clisp.org>
20125
20126         * modules/pathname: New file.
20127         * MODULES.html.sh (func_all_modules): Add it.
20128
20129 2003-04-01  Bruno Haible  <bruno@clisp.org>
20130
20131         * lib/pathname.h: New file, from GNU gettext.
20132         * lib/concatpath.c: New file, from GNU gettext.
20133
20134 2003-03-30  Bruno Haible  <bruno@clisp.org>
20135
20136         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
20137
20138 2003-03-30  Bruno Haible  <bruno@clisp.org>
20139
20140         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
20141         function chown() doesn't exist.
20142
20143 2003-03-28  Bruno Haible  <bruno@clisp.org>
20144
20145         * modules/copy-file: New file.
20146         * MODULES.html.sh (func_all_modules): Add it.
20147
20148 2003-03-28  Bruno Haible  <bruno@clisp.org>
20149
20150         * m4/copy-file.m4: New file.
20151
20152 2003-03-28  Bruno Haible  <bruno@clisp.org>
20153
20154         * lib/copy-file.h: New file, from GNU gettext.
20155         * lib/copy-file.c: New file, from GNU gettext.
20156
20157 2003-03-18  Jim Meyering  <jim@meyering.net>
20158
20159         * lib/quote.c (quote_n): Fix typo in comment.
20160
20161 2003-03-18  Bruno Haible  <bruno@clisp.org>
20162
20163         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
20164         checking.
20165         * m4/onceonly_2_57.m4: Likewise.
20166
20167 2003-03-17  Bruno Haible  <bruno@clisp.org>
20168
20169         * m4/onceonly.m4: Require autoconf 2.54 or newer.
20170         (m4_quote): Remove macro.
20171         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
20172
20173 2003-03-14  Jim Meyering  <jim@meyering.net>
20174
20175         Merge changes from Coreutils.
20176         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
20177         to be const, in order to avoid warnings.
20178         (obstack_room): Likewise.
20179         (obstack_empty_p): Likewise.
20180
20181 2003-03-14  Bruno Haible  <bruno@clisp.org>
20182
20183         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
20184         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
20185
20186 2003-03-13  Paul Eggert  <eggert@twinsun.com>
20187
20188         Merge changes from Bison.
20189         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
20190         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
20191         when compiling Bison 1.875's `bitset bset = obstack_alloc
20192         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
20193         * lib/hash.c: Include <stdbool.h> unconditionally.
20194
20195 2003-03-13  Paul Eggert  <eggert@twinsun.com>
20196
20197         * m4/onceonly.m4 (m4_quote): New macro.
20198         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
20199         Quote AC_FOREACH variable-expansions properly.
20200
20201 2003-03-13  Paul Eggert  <eggert@twinsun.com>
20202
20203         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
20204
20205 2003-03-09  Paul Eggert  <eggert@twinsun.com>
20206
20207         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
20208         Reported by Bruce Becker; see:
20209         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
20210
20211 2003-03-03  Paul Eggert  <eggert@twinsun.com>
20212             Bruno Haible  <bruno@clisp.org>
20213
20214         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
20215         Reported by John Hughes, see
20216         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
20217
20218 2003-02-20  Bruno Haible  <bruno@clisp.org>
20219
20220         * MODULES.html.sh (func_all_modules): Add poll.
20221
20222 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
20223
20224         * modules/poll: New file.
20225
20226 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
20227
20228         * lib/poll_.h: New file.
20229         * lib/poll.c: New file.
20230
20231 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
20232
20233         * m4/poll.m4: New file.
20234
20235 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
20236
20237         * modules/mathl: New file.
20238
20239 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
20240
20241         * lib/mathl.h: New file.
20242         * lib/acosl.c: New file.
20243         * lib/asinl.c: New file.
20244         * lib/atanl.c: New file.
20245         * lib/ceill.c: New file.
20246         * lib/cosl.c: New file.
20247         * lib/expl.c: New file.
20248         * lib/floorl.c: New file.
20249         * lib/frexpl.c: New file.
20250         * lib/ldexpl.c: New file.
20251         * lib/logl.c: New file.
20252         * lib/sincosl.c: New file.
20253         * lib/sinl.c: New file.
20254         * lib/sqrtl.c: New file.
20255         * lib/tanl.c: New file.
20256         * lib/trigl.c: New file.
20257         * lib/trigl.h: New file.
20258
20259 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
20260
20261         * m4/mathl.m4: New file.
20262
20263 2003-02-18  Bruno Haible  <bruno@clisp.org>
20264
20265         * MODULES.html.sh (func_all_modules): Add mathl.
20266
20267 2003-02-17  Bruno Haible  <bruno@clisp.org>
20268
20269         * modules/mkdtemp: New module.
20270         * MODULES.html.sh (func_all_modules): Add it.
20271
20272 2003-02-17  Bruno Haible  <bruno@clisp.org>
20273
20274         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
20275
20276 2003-02-17  Bruno Haible  <bruno@clisp.org>
20277
20278         * lib/mkdtemp.h: New file, from GNU gettext.
20279         * lib/mkdtemp.c: New file, from GNU gettext.
20280
20281 2003-02-02  Jim Meyering  <jim@meyering.net>
20282
20283         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
20284         e.g. glibc-2.2.93.
20285
20286 2003-01-31  Bruno Haible  <bruno@clisp.org>
20287
20288         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
20289         'rpl_rename'.
20290         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
20291         'rpl_strnlen'.
20292         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
20293         'rpl_strtod'.
20294         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
20295         'rpl_utime'.
20296
20297 2003-01-31  Bruno Haible  <bruno@clisp.org>
20298
20299         * lib/rename.c: #undef rename before defining rpl_rename.
20300         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
20301
20302 2003-01-30  Bruno Haible  <bruno@clisp.org>
20303
20304         * modules/vasnprintf, modules/vasprintf: New modules.
20305         * MODULES.html.sh (func_all_modules): Add them.
20306
20307 2003-01-30  Bruno Haible  <bruno@clisp.org>
20308
20309         * m4/signed.m4: New file, from GNU gettext.
20310         * m4/longdouble.m4: New file, from GNU gettext.
20311         * m4/wchar_t.m4: New file, from GNU gettext.
20312         * m4/wint_t.m4: New file, from GNU gettext.
20313         * m4/vasnprintf.m4: New file.
20314         * m4/vasprintf.m4: New file.
20315
20316 2003-01-30  Bruno Haible  <bruno@clisp.org>
20317
20318         * lib/printf-args.h: New file, from GNU gettext.
20319         * lib/printf-args.c: New file, from GNU gettext.
20320         * lib/printf-parse.h: New file, from GNU gettext.
20321         * lib/printf-parse.c: New file, from GNU gettext.
20322         * lib/vasnprintf.h: New file, from GNU gettext.
20323         * lib/vasnprintf.c: New file, from GNU gettext.
20324         * lib/asnprintf.c: New file, from GNU gettext.
20325         * lib/vasprintf.h: New file, from GNU gettext with modifications.
20326         * lib/vasprintf.c: New file, from GNU gettext.
20327         * lib/asprintf.c: New file, from GNU gettext.
20328
20329 2003-01-29  Bruno Haible  <bruno@clisp.org>
20330
20331         * modules/stpncpy: New module.
20332         * MODULES.html.sh (func_all_modules): Add it.
20333
20334 2003-01-29  Bruno Haible  <bruno@clisp.org>
20335
20336         * m4/stpncpy.m4: New file.
20337
20338 2003-01-29  Bruno Haible  <bruno@clisp.org>
20339
20340         * lib/stpncpy.h: New file, from GNU gettext with modifications.
20341         * lib/stpncpy.c: New file, from GNU gettext with modifications.
20342
20343 2003-01-28  Bruno Haible  <bruno@clisp.org>
20344
20345         * modules/c-ctype: New module.
20346         * MODULES.html.sh (func_all_modules): Add it.
20347
20348 2003-01-28  Bruno Haible  <bruno@clisp.org>
20349
20350         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
20351         Paul Eggert.
20352         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
20353         Paul Eggert.
20354
20355 2003-01-27  Bruno Haible  <bruno@clisp.org>
20356
20357         * modules/xsetenv: New module.
20358         * MODULES.html.sh (func_all_modules): Add it.
20359
20360 2003-01-27  Bruno Haible  <bruno@clisp.org>
20361
20362         * lib/xsetenv.h: New file, from GNU gettext.
20363         * lib/xsetenv.c: New file, from GNU gettext.
20364
20365 2003-01-23  Jim Meyering  <jim@meyering.net>
20366
20367         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
20368         from working on systems without dirfd (at least Irix and OSF1/Tru64).
20369
20370 2003-01-23  Bruno Haible  <bruno@clisp.org>
20371
20372         * modules/minmax: New module.
20373         * MODULES.html.sh (func_all_modules): Add it.
20374
20375 2003-01-23  Bruno Haible  <bruno@clisp.org>
20376
20377         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
20378         Eggert.
20379
20380 2003-01-22  Bruno Haible  <bruno@clisp.org>
20381
20382         * modules/exit: New module.
20383         * MODULES.html.sh (func_all_modules): Add it.
20384
20385 2003-01-22  Bruno Haible  <bruno@clisp.org>
20386
20387         * lib/exit.h: New file, from GNU gettext.
20388
20389 2003-01-19  Bruno Haible  <bruno@clisp.org>
20390
20391         * gnulib-tool: Recognize option --extract-maintainer.
20392         (func_get_maintainer): New function.
20393         * modules/*: Add Maintainer entry.
20394
20395 2003-01-16  Jim Meyering  <jim@meyering.net>
20396
20397         * m4/regex.m4: The `regex' struct is both input and output.
20398         Initialize it before each use.  Patch by Tim Waugh.
20399
20400 2003-01-16  Bruno Haible  <bruno@clisp.org>
20401
20402         * MODULES.html.sh: Add a table of contents. Add the module name as
20403         leftmost column. Add hyperlinks.
20404
20405 2003-01-15  Bruno Haible  <bruno@clisp.org>
20406
20407         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
20408
20409 2003-01-15  Bruno Haible  <bruno@clisp.org>
20410
20411         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
20412         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
20413         suffix.
20414
20415 2003-01-15  Bruno Haible  <bruno@clisp.org>
20416
20417         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
20418
20419 2003-01-15  Bruno Haible  <bruno@clisp.org>
20420
20421         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
20422         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
20423
20424 2003-01-14  Jim Meyering  <jim@meyering.net>
20425
20426         * lib/same.c (same_name): Tweak a comment.
20427
20428 2003-01-14  Bruno Haible  <bruno@clisp.org>
20429
20430         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
20431         when a string comparison is sufficient.
20432
20433 2003-01-14  Bruno Haible  <bruno@clisp.org>
20434
20435         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
20436         'unsigned int'.
20437
20438 2003-01-14  Bruno Haible  <bruno@clisp.org>
20439
20440         * lib/hash-pjw.c: Add comment about low quality of this function.
20441
20442 2003-01-13  Bruno Haible  <bruno@clisp.org>
20443
20444         * modules/stpcpy: Distribute lib/stpcpy.h.
20445         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
20446
20447 2003-01-13  Bruno Haible  <bruno@clisp.org>
20448
20449         * modules/*: Add a description.
20450         * modules/strpbrk: Fix Makefile.am snippet.
20451         * modules/strtoimax: Fix dependencies.
20452         * modules/strtoumax: Likewise.
20453
20454 2003-01-13  Bruno Haible  <bruno@clisp.org>
20455
20456         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
20457         * modules/alloca (Makefile.am): All object files depend on alloca.h.
20458         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
20459
20460 2003-01-13  Bruno Haible  <bruno@clisp.org>
20461
20462         * gnulib-tool (func_create_testdir): Store config/* files in the main
20463         directory.
20464         * config.rpath: Move to ...
20465         * config/config.rpath: ... here.
20466         * modules/gettext: Contains config/config.rpath, not config.rpath.
20467         * modules/iconv: Likewise.
20468
20469 2003-01-12  Paul Eggert  <eggert@twinsun.com>
20470
20471         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
20472         to avoid collisions with libcurses and libreadline.
20473
20474         * m4/getstr.m4: Remove.
20475         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
20476
20477 2003-01-12  Paul Eggert  <eggert@twinsun.com>
20478
20479         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
20480         to avoid collisions with libcurses and libreadline.
20481
20482         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
20483         * lib/getstr.h, getstr.c: Remove.
20484         * lib/getline.c: Include "getline.h", to check interface.
20485         Move body of old getstr.c here: this defines MIN_CHUNK and
20486         declares getdelim2, which is renamed from getstr.
20487         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
20488
20489         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
20490         All uses changed.
20491         * lib/linebuffer.h: Likewise.
20492         (readline): Remove backward-compatibility macro.
20493
20494 2003-01-12  Paul Eggert  <eggert@twinsun.com>
20495
20496         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
20497         to avoid collisions with libcurses and libreadline.
20498         * getstr: Remove.
20499         * MODULES.html.sh: Remove getstr.
20500         * modules/getline: Depend on unlocked-io, not getstr.
20501
20502 2003-01-12  Jim Meyering  <jim@meyering.net>
20503
20504         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
20505
20506 2003-01-10  Bruno Haible  <bruno@clisp.org>
20507
20508         * modules/alloca: Change Makefile.am requirements. Simplify Include
20509         requirements. Add lib/alloca_.h to file list.
20510
20511 2003-01-10  Bruno Haible  <bruno@clisp.org>
20512
20513         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
20514
20515 2003-01-10  Bruno Haible  <bruno@clisp.org>
20516
20517         * lib/alloca_.h: New file.
20518         * lib/getdate.y: Unconditionally include alloca.h.
20519         * lib/makepath.c: Likewise.
20520         * lib/setenv.c: Likewise.
20521         * lib/userspec.c: Likewise.
20522
20523 2003-01-09  Karl Berry  <karl@gnu.org>
20524
20525         * MODULES.html.sh: include `dirname $0` in PATH, to find
20526         gnulib-tool.
20527
20528 2003-01-09  Bruno Haible  <bruno@clisp.org>
20529
20530         * modules/stdbool: Change configure.ac, Makefile.am requirements.
20531         Simplify Include requirements. Add lib/stdbool.h.in to file list.
20532
20533 2003-01-09  Bruno Haible  <bruno@clisp.org>
20534
20535         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
20536
20537 2003-01-09  Bruno Haible  <bruno@clisp.org>
20538
20539         * lib/stdbool.h.in: New file.
20540
20541 2003-01-09  Bruno Haible  <bruno@clisp.org>
20542
20543         * gnulib-tool (func_all_modules): Ignore files ending in ~.
20544         * MODULES.html.sh: Likewise.
20545
20546 2003-01-08  Jim Meyering  <jim@meyering.net>
20547
20548         * lib/full-write.c: Undefine and define-away `const' after inclusion
20549         of errno.h, not before.  Suggestion from Bruno Haible.
20550
20551 2003-01-08  Bruno Haible  <bruno@clisp.org>
20552
20553         * modules/full-read: Depend on full-write.
20554
20555 2003-01-08  Bruno Haible  <bruno@clisp.org>
20556
20557         * lib/safe-read.c: Include specification header first, to ensure its
20558         selfcontainedness.
20559         * lib/full-write.c: Likewise.
20560
20561 2003-01-07  Jim Meyering  <jim@meyering.net>
20562
20563         * lib/full-write.c: Rework so that it may serve to define full_read,
20564         too.
20565         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
20566
20567 2003-01-07  Bruno Haible  <bruno@clisp.org>
20568
20569         * lib/strtoimax.c: Include <stdint.h> as an alternative to
20570         <inttypes.h>.
20571         * lib/xstrtol.h: Likewise.
20572         * lib/xstrtoimax.c: Likewise.
20573         * lib/xstrtoumax.c: Likewise.
20574         * lib/human.h: Likewise.
20575
20576         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
20577         on systems that have <inttypes.h> but not <stdint.h>.
20578
20579 2003-01-07  Bruno Haible  <bruno@clisp.org>
20580
20581         * MODULES.html.sh: Add copyright notice.
20582         (missed_files): Omit CVS directory entries.
20583         (func_module): Make it work with sed-3.02.
20584         * MODULES.txt: Remove file.
20585
20586 2003-01-06  Jim Meyering  <jim@meyering.net>
20587
20588         * lib/version-etc.c: Update year in translatable copyright string.
20589
20590 2003-01-03  Karl Berry  <karl@gnu.org>
20591
20592         * config/config.{guess,sub}: update from prep.
20593
20594 2003-01-02  Karl Berry  <karl@gnu.org>
20595
20596         * doc/COPYING.DOC: belatedly updated to 1.2.
20597
20598 2003-01-01  Karl Berry  <karl@gnu.org>
20599
20600         * gnulib-tool (func_verify_module): report module name $module in
20601         error message, not $1.
20602         * gnulib-tool (create-testdir): don't complain if destdir couldn't
20603         be created, only if it doesn't exist.
20604         * gnulib-tool (last_checkin_date): don't expand the $Date here.
20605
20606 2002-12-31  Paul Eggert  <eggert@twinsun.com>
20607
20608         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
20609
20610 2002-12-31  Paul Eggert  <eggert@twinsun.com>
20611
20612         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
20613         memcmp if strcoll doesn't work.
20614
20615 2002-12-31  Bruno Haible  <bruno@clisp.org>
20616
20617         * lib/utime.c (utime_null): No need to call ftruncate if the file was
20618         nonempty.
20619
20620 2002-12-31  Bruno Haible  <bruno@clisp.org>
20621
20622         * lib/memcoll.c (STRCOLL): New macro.
20623         (memcoll): Use it.
20624
20625 2002-12-31  Bruno Haible  <bruno@clisp.org>
20626
20627         * lib/localcharset.h: New file.
20628         * lib/localcharset.c: Include it.
20629         * lib/unicodeio.c: Likewise.
20630
20631 2002-12-31  Bruno Haible  <bruno@clisp.org>
20632
20633         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
20634         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
20635
20636 2002-12-31  Bruno Haible  <bruno@clisp.org>
20637
20638         * lib/getline.h: Include <stddef.h>, for size_t.
20639
20640         * lib/unicodeio.h: Include <stddef.h>, for size_t.
20641         * lib/unicodeio.c: Don't include <stddef.h>.
20642
20643 2002-12-31  Bruno Haible  <bruno@clisp.org>
20644
20645         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
20646         HAVE_TM_ZONE.
20647
20648 2002-12-24  Karl Berry  <karl@gnu.org>
20649
20650         * config/config.guess: update from prep.
20651
20652 2002-12-24  Bruno Haible  <bruno@clisp.org>
20653
20654         General infrasructure.
20655         * m4/README: Rewritten.
20656         * m4/onceonly.m4: New file.
20657         * m4/onceonly_2_57.m4: New file.
20658
20659         Module atexit.
20660         * m4/atexit.m4: New file.
20661
20662         Module strtod.
20663         * m4/strtod.m4: New file.
20664
20665         Module strtol.
20666         * m4/strtol.m4: New file.
20667
20668         Module strtoul.
20669         * m4/strtoul.m4: New file.
20670
20671         Module memchr.
20672         * m4/memchr.m4: New file.
20673
20674         Module memcmp.
20675         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
20676         (jm_FUNC_MEMCMP): Invoke it.
20677
20678         Module memcpy.
20679         * m4/memcpy.m4: New file.
20680
20681         Module memmove.
20682         * m4/memmove.m4: New file.
20683
20684         Module memset.
20685         * m4/memset.m4: New file.
20686
20687         Module strcspn.
20688         * m4/strcspn.m4: New file.
20689
20690         Module strpbrk.
20691         * m4/strpbrk.m4: New file.
20692
20693         Module strstr.
20694         * m4/strstr.m4: New file.
20695
20696         Module strerror.
20697         * m4/strerror.m4: New file.
20698
20699         Module mktime.
20700         * m4/mktime.m4: Renamed from jm-mktime.m4.
20701         (gl_PREREQ_MKTIME): New macro.
20702         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
20703
20704         Module malloc.
20705         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
20706         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
20707         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
20708
20709         Module realloc.
20710         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
20711         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
20712         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
20713
20714         Module strftime.
20715         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
20716         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
20717         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
20718         gl_TM_GMTOFF.
20719         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
20720
20721         Module xalloc.
20722         * m4/xalloc.m4: New file.
20723
20724         Module alloca.
20725         * m4/alloca.m4: New file.
20726
20727         Module putenv.
20728         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
20729         (jm_FUNC_PUTENV): Invoke it.
20730
20731         Module setenv.
20732         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
20733         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
20734         when invoked twice.
20735         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
20736         gt_FUNC_SETENV.
20737
20738         Module memrchr.
20739         * m4/memrchr.m4: New file.
20740
20741         Module stpcpy.
20742         * m4/stpcpy.m4: New file.
20743
20744         Module strcase.
20745         * m4/strcase.m4: New file.
20746
20747         Module strdup.
20748         * m4/strdup.m4: New file.
20749
20750         Module strnlen.
20751         * m4/strnlen.m4: New file.
20752
20753         Module strndup.
20754         * m4/strndup.m4: New file.
20755
20756         Module xstrtod.
20757         * m4/xstrtod.m4: New file.
20758
20759         Module xstrtol.
20760         * m4/xstrtol.m4: New file.
20761
20762         Module getdate.
20763         * m4/getdate.m4: New file.
20764
20765         Module unlocked-io.
20766         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
20767         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
20768         * m4/jm-glibc-io.m4n: Remove file.
20769
20770         Module long-options.
20771         * m4/long-options.m4: New file.
20772
20773         Module md5.
20774         * m4/md5.m4: New file.
20775
20776         Module sha.
20777         * m4/sha.m4: New file.
20778
20779         Module getstr.
20780         * m4/getstr.m4: New file.
20781
20782         Module getline.
20783         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
20784         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
20785         <sys/types.h>, for size_t. Use the function name gnu_getline, not
20786         simply getline. Infoke gl_PREREQ_GETLINE.
20787
20788         Module obstack.
20789         * m4/obstack.m4: New file.
20790
20791         Module hash.
20792         * m4/hash.m4: New file.
20793
20794         Module readtokens.
20795         * m4/readtokens.m4: New file.
20796
20797         Module strverscmp.
20798         * m4/strverscmp.m4: New file.
20799
20800         Module stdbool.
20801         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
20802         OSF/1.
20803
20804         Module strtoll.
20805         * m4/strtoll.m4: New file.
20806
20807         Module strtoull.
20808         * m4/strtoull.m4: New file.
20809
20810         Module strtoimax.
20811         * m4/strtoimax.m4: New file.
20812
20813         Module strtoumax.
20814         * m4/strtoumax.m4: New file.
20815
20816         Module xstrtoimax.
20817         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
20818         jm_AC_PREREQ_XSTRTOIMAX.
20819         Moved the strtol prerequisites to strtol.m4.
20820         Moved the strtoll prerequisites to strtoll.m4.
20821         Moved the strtoimax prerequisites to strtoimax.m4.
20822
20823         Module xstrtoumax.
20824         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
20825         jm_AC_PREREQ_XSTRTOUMAX.
20826         Moved the strtoul prerequisites to strtoul.m4.
20827         Moved the strtoull prerequisites to strtoull.m4.
20828         Moved the strtoumax prerequisites to strtoumax.m4.
20829
20830         Module chown.
20831         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
20832         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
20833
20834         Module dup2.
20835         * m4/dup2.m4: New file.
20836
20837         Module ftruncate.
20838         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
20839         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
20840
20841         Module getgroups.
20842         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
20843         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
20844
20845         Module gettimeofday.
20846         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
20847         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
20848         gl_PREREQ_GETTIMEOFDAY.
20849
20850         Module mkdir.
20851         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
20852         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
20853
20854         Module mkstemp.
20855         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
20856         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
20857         jm_AC_TYPE_UINTMAX_T.
20858         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
20859
20860         Module stat.
20861         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
20862         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
20863
20864         Module lstat.
20865         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
20866         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
20867
20868         Module timespec.
20869         * m4/timespec.m4 (gl_TIMESPEC): New macro.
20870         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
20871         * m4/st_mtim.m4: Indentation.
20872
20873         Module nanosleep.
20874         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
20875         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
20876         gl_PREREQ_NANOSLEEP.
20877
20878         Module regex.
20879         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
20880         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
20881         (gl_REGEX): New macro.
20882
20883         Module rename.
20884         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
20885         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
20886
20887         Module rmdir.
20888         * m4/rmdir.m4: New file.
20889
20890         Module utime.
20891         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
20892         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
20893         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
20894
20895         Module dirname.
20896         * m4/dirname.m4: New file.
20897
20898         Module getopt.
20899         * m4/getopt.m4: New file.
20900
20901         Module unistd-safer.
20902         * m4/unistd-safer.m4: New file.
20903
20904         Module fnmatch.
20905         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
20906         declaration.
20907         (gl_PREREQ_FNMATCH_EXTRA): New macro.
20908         (gl_FUNC_FNMATCH_POSIX): New macro.
20909         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
20910         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
20911         simply fnmatch.
20912
20913         Module exclude.
20914         * m4/exclude.m4: New file.
20915
20916         Module human.
20917         * m4/human.m4: New file.
20918
20919         Module acl.
20920         * m4/acl.m4: Nop.
20921
20922         Module backupfile.
20923         * m4/backupfile.m4: New file.
20924         * m4/d-ino.m4: Indentation.
20925
20926         Module fsusage.
20927         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
20928         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
20929         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
20930
20931         Module dirfd.
20932         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
20933         requirements.
20934
20935         Module euidaccess.
20936         * m4/euidaccess.m4: New file.
20937
20938         Module file-type.
20939         * m4/file-type.m4: New file.
20940
20941         Module fileblocks.
20942         * m4/fileblocks.m4: New file.
20943
20944         Module filemode.
20945         * m4/filemode.m4: New file.
20946
20947         Module isdir.
20948         * m4/isdir.m4: New file.
20949
20950         Module lchown.
20951         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
20952         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
20953
20954         Module makepath.
20955         * m4/makepath.m4: New file.
20956
20957         Module modechange.
20958         * m4/modechange.m4: New file.
20959
20960         Module mountlist.
20961         * m4/mountlist.m4: New file.
20962         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
20963         Indentation.
20964
20965         Module path-concat.
20966         * m4/path-concat.m4: New file.
20967
20968         Module pathmax.
20969         * m4/pathmax.m4: New file.
20970
20971         Module same.
20972         * m4/same.m4: New file.
20973
20974         Module save-cwd.
20975         * m4/save-cwd.m4: New file.
20976
20977         Module savedir.
20978         * m4/savedir.m4: New file.
20979
20980         Module xgetcwd.
20981         * m4/xgetcwd.m4: New file.
20982         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
20983
20984         Module xreadlink.
20985         * m4/xreadlink.m4: New file.
20986
20987         Module safe-read.
20988         * m4/safe-read.m4: New file.
20989
20990         Module safe-write.
20991         * m4/safe-write.m4: New file.
20992
20993         Module closeout.
20994         * m4/closeout.m4: New file.
20995
20996         Module stdio-safer.
20997         * m4/stdio-safer.m4: New file.
20998
20999         Module getpass.
21000         * m4/getpass.m4: New file.
21001
21002         Module getugroups.
21003         * m4/getugroups.m4: New file.
21004
21005         Module group-member.
21006         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
21007         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
21008
21009         Module idcache.
21010         * m4/idcache.m4: New file.
21011
21012         Module userspec.
21013         * m4/userspec.m4: New file.
21014
21015         Module gettime.
21016         * m4/clock_time.m4: New file.
21017         * m4/gettime.m4: New file.
21018
21019         Module settime.
21020         * m4/settime.m4: New file.
21021
21022         Module posixtm.
21023         * m4/posixtm.m4: New file.
21024
21025         Module gethostname.
21026         * m4/gethostname.m4: New file.
21027
21028         Module canon-host.
21029         * m4/canon-host.m4: New file.
21030
21031         Module gettext.
21032         * m4/codeset.m4: New file, from gettext-0.11.5.
21033         * m4/gettext.m4: New file, from gettext-0.11.5.
21034         * m4/glibc21.m4: New file, from gettext-0.11.5.
21035         * m4/iconv.m4: New file, from gettext-0.11.5.
21036         * m4/intdiv0.m4: New file, from gettext-0.11.5.
21037         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
21038         * m4/inttypes.m4: New file, from gettext-0.11.5.
21039         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
21040         * m4/isc-posix.m4: New file, from gettext-0.11.5.
21041         * m4/lcmessage.m4: New file, from gettext-0.11.5.
21042         * m4/lib-ld.m4: New file, from gettext-0.11.5.
21043         * m4/lib-link.m4: New file, from gettext-0.11.5.
21044         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
21045         * m4/progtest.m4: New file, from gettext-0.11.5.
21046         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
21047         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
21048         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
21049
21050         Module localcharset.
21051         * m4/localcharset.m4: New file.
21052
21053         Module hard-locale.
21054         * m4/hard-locale.m4: New file.
21055
21056         Module mbswidth.
21057         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
21058         onceonly macros.
21059         * m4/mbrtowc.m4: Add comment.
21060
21061         Module memcasecmp.
21062         * m4/memcasecmp.m4: New file.
21063
21064         Module memcoll.
21065         * m4/memcoll.m4: New file.
21066
21067         Module unicodeio.
21068         * m4/unicodeio.m4: New file.
21069
21070         Module rpmatch.
21071         * m4/rpmatch.m4: New file.
21072
21073         Module yesno.
21074         * m4/yesno.m4: New file.
21075
21076         Module exitfail.
21077         * m4/exitfail.m4: New file.
21078
21079         Module c-stack.
21080         * m4/c-stack.m4 (gl_C_STACK): New macro.
21081         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
21082
21083         Module error.
21084         * m4/error.m4 (gl_ERROR): New macro.
21085         (jm_PREREQ_ERROR): Use onceonly macros.
21086
21087         Module fatal.
21088         * m4/fatal.m4: New file.
21089
21090         Module getloadavg.
21091         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
21092         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
21093
21094         Module getpagesize.
21095         * m4/getpagesize.m4: New file.
21096
21097         Module getusershell.
21098         * m4/getusershell.m4: New file.
21099
21100         Module physmem.
21101         * m4/physmem.m4: New file.
21102
21103         Module posixver.
21104         * m4/posixver.m4: New file.
21105
21106         Module quotearg.
21107         * m4/quotearg.m4: New file.
21108
21109         Module quote.
21110         * m4/quote.m4: New file.
21111
21112         Module readutmp.
21113         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
21114
21115         Module sig2str.
21116         * m4/sig2str.m4: New file.
21117
21118         Other.
21119         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
21120         ulonglong.m4.
21121         * m4/intmax_t.m4: New file.
21122         * m4/d-type.m4: Indentation.
21123         * m4/jm-macros.m4: Update.
21124         * m4/prereq.m4 (jm_PREREQ): Update.
21125         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
21126         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
21127         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
21128         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
21129         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
21130         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
21131         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
21132         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
21133         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
21134         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
21135         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
21136         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
21137         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
21138         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
21139         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
21140         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
21141         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
21142         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
21143         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
21144
21145 2002-12-24  Bruno Haible  <bruno@clisp.org>
21146
21147         * MODULES.txt: Update according to m4/ changes.
21148
21149         Module gettext.
21150         * config.rpath: New file, from gettext-0.11.5.
21151
21152         * modules/*: New module descriptions.
21153         * gnulib-tool: New file.
21154         * MODULES.html.sh: New file.
21155
21156 2002-12-21  Karl Berry  <karl@gnu.org>
21157
21158         * doc/fdl.texi: update to version 1.2.
21159
21160 2002-12-19  Karl Berry  <karl@gnu.org>
21161
21162         * config/config.guess: update from prep.
21163
21164 2002-12-18  Bruno Haible  <bruno@clisp.org>
21165
21166         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
21167         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
21168
21169 2002-12-17  Bruno Haible  <bruno@clisp.org>
21170
21171         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
21172         stdlib.h, string.h.
21173
21174 2002-12-17  Bruno Haible  <bruno@clisp.org>
21175
21176         * lib/canon-host.c (strdup): Remove unused declaration.
21177
21178         * lib/fsusage.c: Include full_read.h.
21179         (get_fs_usage): Use full_read instead of safe_read.
21180
21181         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
21182
21183 2002-12-12  Karl Berry  <karl@gnu.org>
21184
21185         * config/config.guess: update from prep.
21186
21187 2002-12-11  Bruno Haible  <bruno@clisp.org>
21188
21189         * m4/setenv.m4: New file, from gettext-0.11.5.
21190
21191 2002-12-11  Bruno Haible  <bruno@clisp.org>
21192
21193         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
21194         not unsetenv().
21195         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
21196         modifications:
21197
21198         2002-12-11  Bruno Haible  <bruno@clisp.org>
21199
21200                 * setenv.c (alloca): Fall back to malloc.
21201                 (freea): New macro.
21202                 (setenv): Use freea() to free memory allocated with alloca().
21203
21204         2002-11-13  Bruno Haible  <bruno@clisp.org>
21205
21206                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
21207                 function declarations.
21208                 * unsetenv.c (unsetenv): Likewise.
21209
21210         2002-03-04  Bruno Haible  <bruno@clisp.org>
21211
21212                 Portability to AIX 4.3.3.
21213                 * unsetenv.c: New file, extracted from setenv.c.
21214                 * setenv.c: Move the unsetenv() function to unsetenv.c.
21215
21216         2001-12-20  Bruno Haible  <bruno@clisp.org>
21217
21218                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
21219                 use malloc instead. For SunOS 4.
21220
21221         2001-12-11  Bruno Haible  <bruno@clisp.org>
21222
21223                 * setenv.c: Declare alloca.
21224                 (compar_fn_t): New typedef.
21225                 (KNOWN_VALUE, STORE_VALUE): Use it.
21226
21227         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
21228         setenv.h.
21229
21230 2002-12-10  Paul Eggert  <eggert@twinsun.com>
21231
21232         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
21233         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
21234         Choose values that are less likely to collide with system fnmatch
21235         options.
21236         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
21237         defined (e.g., a pure POSIX system).
21238         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
21239         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
21240
21241 2002-12-06  Paul Eggert  <eggert@twinsun.com>
21242
21243         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
21244         a pain in practice to deal with generated m4 files.  This change
21245         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
21246
21247         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
21248         and jm-glibc-io.m4, as they are no longer a special case.
21249         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
21250         kludge and the auto-generation stuff.  Check only whether the
21251         functions are declared, not whether they exist, since older hosts
21252         that don't declare the functions can't use the optimization anyway.
21253
21254 2002-12-06  Jim Meyering  <jim@meyering.net>
21255
21256         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
21257
21258         Merge in changes from libc's misc/error.c, in preparation
21259         for the merge of gnulib's changes back into libc.
21260
21261         * lib/error.c (_): Define only if not already defined.
21262         Move definition to follow all #include directives.
21263         Include unlocked-io.h only if !_LIBC.
21264         [_LIBC]: Include <libio/libioP.h>.
21265         [USE_IN_LIBIO]: Include <libio/iolibio.h>
21266         (fflush): Tweak definition to use INTUSE.
21267         (putc): Define.
21268
21269 2002-12-05  Paul Eggert  <eggert@twinsun.com>
21270
21271         * lib/alloca.c [defined emacs]: Include "lisp.h".
21272         (xalloc_die) [defined emacs]: New macro.
21273         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
21274         [! defined emacs]: Include <xalloc.h>.
21275         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
21276         (pointer): Typedef to POINTER_TYPE *.
21277         (malloc): Remove decl; we now always use xmalloc.
21278         (alloca): Use old-style definition, since Emacs needs this.
21279         Check for arithmetic overflow when computing combined size.
21280
21281 2002-12-04  Paul Eggert  <eggert@twinsun.com>
21282
21283         Do not generate unlocked-io.h automatically, since it's easier to
21284         maintain it by hand.
21285
21286         * lib/unlocked-io.h: New file, from GNU diffutils,
21287         but with proper copyright notice and attribution.
21288         * lib/gen-uio: Remove.
21289         * lib/Makefile.am: Add copyright notice.
21290         (libfetish_a_SOURCES): Add unlocked-io.h.
21291         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
21292         (DISTCLEANFILES, io_functions): Remove macros.
21293         (EXTRA_DIST): Remove gen_uio.
21294         (unlocked-io.h): Remove rule.
21295
21296 2002-12-04  Jim Meyering  <jim@meyering.net>
21297
21298         Reflect the fact that stat.c and lstat.c are no longer generated.
21299         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
21300         (DISTCLEANFILES): Likewise.
21301         (EXTRA_DIST): Likewise.
21302         (all_local): Don't depend on stat.c or lstat.c.
21303         (stat.c, lstat.c): Remove rules.
21304         (EXTRA_DIST): Remove xstat.in.
21305
21306         * lib/xstat.in: Remove file.  Contents moved into stat.c.
21307         * lib/stat.c: New file.  Contents mostly from xstat.in.
21308         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
21309         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
21310
21311         * lib/safe-read.c: Rework so that it may serve to define safe_write,
21312         too.
21313         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
21314
21315 2002-12-03  Jim Meyering  <jim@meyering.net>
21316
21317         * lib/safe-read.c, safe-write.c: Change variable names and comments,
21318         but not semantics, to minimize the differences between these two files.
21319         (safe_read): Change comment to mention SAFE_READ_ERROR.
21320
21321         * lib/safe-read.c (IS_EINTR): Define.
21322         (safe_read): Use IS_EINTR in place of in-function cpp directives.
21323
21324 2002-12-02  Jim Meyering  <jim@meyering.net>
21325
21326         * lib/safe-read.c (EINTR): Define.
21327         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
21328         (INT_MAX): Provide fallback.
21329         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
21330
21331         * lib/safe-read.h (SAFE_READ_ERROR): Define.
21332
21333 2002-12-02  Bruno Haible  <bruno@clisp.org>
21334
21335         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
21336         Define, taken from safe-read.c.
21337         (INT_MAX): Provide fallback.
21338         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
21339         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
21340
21341         * lib/safe-read.c (EINTR): Remove definition.
21342         (safe_read): Don't use EINTR if it is absent.
21343
21344 2002-12-01  Jim Meyering  <jim@meyering.net>
21345
21346         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
21347         zero.
21348         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
21349
21350 2002-11-27  Paul Eggert  <eggert@twinsun.com>
21351
21352         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
21353         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
21354         with `if (! (value < limit)) abort ();', for readability.
21355
21356 2002-11-26  Karl Berry  <karl@gnu.org>
21357
21358         * lib/strdup.c: copy from libc again, with jim's ok.
21359         * lib/.cppi-disable: re-add strdup.c
21360
21361 2002-11-25  Karl Berry  <karl@gnu.org>
21362
21363         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
21364         instead of "strtol.c".
21365
21366 2002-11-25  Karl Berry  <karl@gnu.org>
21367
21368         * config/install-sh: update from automake for variable quoting, $0 in
21369         error msgs, etc.
21370
21371         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
21372         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
21373         entry.
21374
21375 2002-11-25  Jim Meyering  <jim@meyering.net>
21376
21377         * lib/mktime.c: Sync from libc, now that it has the latest fix.
21378
21379 2002-11-24  Karl Berry  <karl@gnu.org>
21380
21381         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
21382         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
21383
21384 2002-11-24  Jim Meyering  <jim@meyering.net>
21385
21386         Update from coreutils:
21387
21388         * lib/mktime.c: Merge in changes from libc.
21389
21390         Avoid a link-time failure on some Linux systems.
21391         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
21392         (otherwise).
21393         (__mon_yday): Declare with the STATIC attribute.
21394         (__mktime_internal): Likewise.
21395         Based on a report from Greg Schafer.
21396
21397 2002-11-23  Jim Meyering  <jim@meyering.net>
21398
21399         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
21400         Use `unsigned', not `int', as type of index.
21401
21402         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
21403
21404         * lib/fsusage.c: Remove unneeded parentheses around operands of
21405         `defined'.
21406
21407 2002-11-22  Paul Eggert  <eggert@twinsun.com>
21408
21409         * lib/quotearg.h: Allow multiple inclusion by surrounding with
21410         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
21411         so that we can be included first.
21412         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
21413         * lib/quotearg.c: Include quotearg.h immediately after config.h.
21414         No need to include stddef.h or sys/types.h any more.
21415         Surround local include files with "", not "<>".
21416         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
21417         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
21418         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
21419         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
21420         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
21421         (ISPRINT): Remove; no longer needed now that we assume C89.
21422
21423         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
21424         Preserve errno.
21425
21426         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
21427         quotearg_char): Use SIZE_MAX rather than
21428         (size_t) -1 when we are talking about "infinity".
21429
21430         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
21431
21432 2002-11-22  Paul Eggert  <eggert@twinsun.com>
21433
21434         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
21435         hint that one should use `if (! x) abort ();' rather than `assert
21436         (x);', and anyway it's one less thing to worry about configuring.
21437         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
21438         hash_rehash, hash_insert): Use abort rather than assert.
21439
21440 2002-11-22  Bruno Haible  <bruno@clisp.org>
21441
21442         * lib/safe-read.h: Assume C89. Add comments.
21443         (safe_read): Change return type to size_t.
21444         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
21445         byte counts > SSIZE_MAX correctly.
21446         * lib/safe-write.h: New file.
21447         * lib/safe-write.c: New file.
21448         * lib/full-read.h: New file.
21449         * lib/full-read.c: New file.
21450         * lib/full-write.h: Assume C89. Add comments.
21451         * lib/full-write.c: Include safe-write.h.
21452         (full_write): Rewritten to use safe_write.
21453         Suggested by Jim Meyering and Paul Eggert.
21454
21455 2002-11-21  Jim Meyering  <jim@meyering.net>
21456
21457         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
21458
21459         Merge in changes from the coreutils.
21460
21461         2002-09-25  Paul Eggert  <eggert@twinsun.com>
21462         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
21463         <stdint.h>.
21464         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
21465         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
21466         int.  Work more efficiently if X is the same width as uintmax_t.
21467         Do not compare X to -1, to avoid bogus compiler warning.
21468         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
21469         Don't assume that f_frsize and f_bsize are the same type.
21470
21471         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
21472         warning on FreeBSD.
21473
21474         * lib/makepath.c (make_path): Restore umask *before* creating the final
21475         component.
21476         (make_path): Minor reformatting.
21477
21478         * lib/xmalloc.c: Adjust to work with new autoconf macros,
21479         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
21480         HAVE_MALLOC/HAVE_REALLOC.
21481
21482         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
21483         dummy ones.  At least on GNU/Linux systems, `auto' means something
21484         else.
21485         From Michael Stone.
21486
21487 2002-11-21  Bruno Haible  <bruno@clisp.org>
21488
21489         Remove case insensitive option matching.
21490         * lib/argmatch.h (argcasematch): Remove declaration.
21491         (ARGCASEMATCH): Remove macro.
21492         (__xargmatch_internal): Remove case_sensitive argument.
21493         (XARGMATCH): Update.
21494         (XARGCASEMATCH): Remove macro.
21495         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
21496         case_sensitive argument.
21497         (argcasematch): Remove function.
21498         (__xargmatch_internal): Remove case_sensitive argument.
21499         (main): Use XARGMATCH instead of XARGCASEMATCH.
21500
21501         * lib/xmalloc.c: Change compile-time error message. Add comment about
21502         required autoconf version.
21503
21504 2002-11-20  Paul Eggert  <eggert@twinsun.com>
21505
21506         Merge argmatch cleanups from Bison.  Assume C89.
21507
21508         * lib/argmatch.c: Include config.h here, not in argmatch.h.
21509         Include stdlib.h, for EXIT_FAILURE.
21510         Always include <string.h>, since we assume C89.
21511         (EXIT_FAILURE): Remove pre-C89 bug workaround.
21512         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
21513         Include <stddef.h> instead, since it's all we need for size_t.
21514         (PARAMS): Remove.  All uses removed.
21515         (ARRAY_CARDINALITY): Do not bother to #undef.
21516         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
21517         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
21518         Remove unnecessary parentheses.
21519         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
21520         Insert necessary parentheses.
21521         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
21522         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
21523
21524 2002-11-19  Bruno Haible  <bruno@clisp.org>
21525
21526         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
21527         * lib/mbswidth.h: Include <stddef.h>, for size_t.
21528
21529         * lib/mbswidth.h (PARAMS): Remove macro.
21530         (mbswidth, mbsnwidth): Use ANSI C function declarations.
21531         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
21532
21533         * lib/gcd.h (PARAMS): Remove macro.
21534         (gcd): Use ANSI C function declarations.
21535         * lib/gcd.c (gcd): Likewise.
21536
21537 2002-11-15  Bruno Haible  <bruno@clisp.org>
21538
21539         * lib/strcspn.c: Include <stddef.h>.
21540         (strcspn): Use ANSI C function declaration. Change return type to
21541         size_t. Use NULL.
21542         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
21543         (strpbrk): Use NULL.
21544         * lib/strpbrk.h (PARAMS): Remove macro.
21545         (strpbrk): Use ANSI C function declaration.
21546         * lib/strstr.c: Don't include <sys/types.h>.
21547         * lib/strstr.h (PARAMS): Remove macro.
21548         (strstr): Use ANSI C function declarations.
21549
21550 2002-11-14  Karl Berry  <karl@gnu.org>
21551
21552         * config/mkinstalldirs: `do' on separate line, instead of
21553         `for var; do'.
21554
21555 2002-11-06  Bruno Haible  <bruno@clisp.org>
21556
21557         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
21558         * lib/gcd.c (gcd): Likewise.
21559
21560 2002-11-05  Bruno Haible  <bruno@clisp.org>
21561
21562         * lib/gcd.h: New file, from gettext-0.11.5.
21563         * lib/gcd.c: New file, from gettext-0.11.5.
21564
21565 2002-11-05  Bruno Haible  <bruno@clisp.org>
21566
21567         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
21568         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
21569         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
21570         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
21571
21572         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
21573         <libintl.h>.
21574         * lib/makepath.c: Include gettext.h instead of <locale.h> and
21575         <libintl.h>.
21576
21577         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
21578         * lib/human.c: Include gettext.h instead of <libintl.h>.
21579         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
21580         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
21581         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
21582         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
21583         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
21584         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
21585         (textdomain): Remove definition.
21586         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
21587
21588         * lib/long-options.c: Remove include of <libintl.h> and definition of
21589         _.
21590         * lib/same.c: Remove include of <libintl.h> and definition of _.
21591
21592 2002-11-04  Owen Taylor  <otaylor@redhat.com>
21593
21594         * lib/config.charset: A few additions for Solaris.
21595
21596 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
21597
21598         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
21599         * lib/localcharset.c (locale_charset): Declare as extern "C".
21600
21601 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
21602
21603         * lib/config.charset: msdos in uk_UA uses CP1125.
21604
21605 2002-11-04  Bruno Haible  <bruno@clisp.org>
21606
21607         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
21608         * lib/strcase.h: New file, from GNU gettext-0.11.5.
21609         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
21610         * lib/strstr.h: New file, from GNU gettext-0.11.5.
21611         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
21612
21613 2002-11-04  Bruno Haible  <bruno@clisp.org>
21614
21615         * lib/localcharset.c (locale_charset): Don't return an empty string.
21616
21617 2002-11-04  Bruno Haible  <bruno@clisp.org>
21618
21619         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
21620         aliases.
21621
21622 2002-11-04  Bruno Haible  <bruno@clisp.org>
21623
21624         * lib/config.charset: Update for newest glibc. Add canonical names
21625         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
21626
21627 2002-11-04  Bruno Haible  <bruno@clisp.org>
21628
21629         * lib/config.charset: Add support for NetBSD.
21630
21631 2002-11-04  Bruno Haible  <bruno@clisp.org>
21632
21633         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
21634
21635 2002-11-01  Bruno Haible  <bruno@clisp.org>
21636
21637         * configure.in: Add AC_CONFIG_AUX_DIR call.
21638         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
21639         test/Makefile.
21640         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
21641
21642 2002-09-28  Karl Berry  <karl@gnu.org>
21643
21644         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
21645         installed automake until the next release, since changes have been
21646         made.
21647
21648 2002-09-25  Karl Berry  <karl@gnu.org>
21649
21650         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
21651         * lib/getopt*: copy from libc/posix.
21652         * lib/gettext.h: copy from gettext.
21653         * lib/.cppi-disable: add strdup.c, gettext.h.
21654
21655 2002-09-25  Karl Berry  <karl@gnu.org>
21656
21657         * config/srclist.txt: enable gettext.h check.
21658         * config/config.{guess,sub}: update from prep.
21659         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
21660                 from automake 1.6.3.
21661         See srclist*.
21662
21663 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
21664
21665         * regex.c (PATFETCH): Remove the translating fetch.
21666         (PATFETCH_RAW): Rename to PATFETCH.
21667         (set_image_of_range): New fun.
21668         (SET_RANGE_TABLE_WORK_AREA): Use it.
21669         (regex_compile): Don't translate the pattern chars so eagerly.
21670         Only do it when inserting an `exactn' bytecode or when handling
21671         a char-range.
21672         (mutually_exclusive_p): Avoid empty statement.
21673
21674 2002-07-06  Jim Meyering  <meyering@lucent.com>
21675
21676         * m4/README: Don't mention Makefile.am.in.
21677         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
21678
21679 2002-07-01  Jim Meyering  <meyering@lucent.com>
21680
21681         * lib/c-stack.c: Include sys/time.h.
21682         From Volker Borchert.
21683
21684 2002-06-26  Paul Eggert  <eggert@twinsun.com>
21685
21686         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
21687
21688 2002-06-26  Paul Eggert  <eggert@twinsun.com>
21689
21690         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
21691         New macro.  Use it uniformly instead of
21692         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
21693         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
21694         reported by Vin Shelton.
21695
21696 2002-06-22  Paul Eggert  <eggert@twinsun.com>
21697
21698         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
21699         Do not assume SA_SIGINFO behavior.
21700         Bug reported by Jim Meyering on NetBSD 1.5.2.
21701
21702 2002-06-22  Jim Meyering  <meyering@lucent.com>
21703
21704         * m4/c-stack.m4: New file, from diffutils-2.8.2.
21705         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
21706
21707         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
21708         now that configure.ac uses AC_GNU_SOURCE.
21709         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
21710         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
21711
21712         Update to latest tools.  Suggestions from Paul Eggert.
21713         * m4/stdbool.m4: New file, from diffutils-2.8.2.
21714         * m4/gnu-source.m4: Update from diffutils-2.8.2.
21715         * m4/fnmatch.m4: Likewise.
21716         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
21717         to AC_HEADER_STDBOOL
21718
21719 2002-06-22  Jim Meyering  <meyering@lucent.com>
21720
21721         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
21722         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
21723
21724 2002-06-22  Jim Meyering  <meyering@lucent.com>
21725
21726         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
21727
21728         * lib/exitfail.c, exitfail.h: Likewise.
21729         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
21730
21731         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
21732         of fnmatch.h.
21733         (EXTRA_DIST): Add fnmatch_loop.c.
21734         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
21735
21736         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
21737         * lib/fnmatch.c: Update from diffutils-2.8.2.
21738         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
21739         * lib/fnmatch.h: Remove file.
21740
21741 2002-06-21  Jim Meyering  <meyering@lucent.com>
21742
21743         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
21744         * m4/mbrtowc.m4: Likewise.
21745
21746         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
21747         * m4/mbswidth.m4: Reflect name change:
21748         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
21749         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
21750
21751         * m4/lib-link.m4: Update from gettext-0.11.2.
21752         * m4/gettext.m4: Likewise.
21753
21754         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
21755         From Alfred M. Szmidt.
21756
21757 2002-06-18  Paul Eggert  <eggert@twinsun.com>
21758
21759         * lib/file-type.h: Report an error if neither S_ISREG nor
21760         S_IFREG is defined, instead of using a test specific to glibc
21761         2.2.  This should be safe, since POSIX requires S_ISREG and
21762         Unix Version 7 had S_IFREG.  We don't need to check for
21763         <sys/types.h> since we don't use any symbols that it defines.
21764
21765 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
21766
21767         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
21768         $@-t, so that each temporary file name is unique and valid in the first
21769         8 characters, for operation under DOS.
21770
21771 2002-06-15  Paul Eggert  <eggert@twinsun.com>
21772
21773         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
21774
21775 2002-06-15  Jim Meyering  <meyering@lucent.com>
21776
21777         Work even with DJGPP 2.03, which lacks support for symlinks.
21778         From Richard Dawe.
21779         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
21780         is defined.
21781         * lib/lchown.c (S_ISLNK): Likewise.
21782
21783 2002-06-15  Jim Meyering  <meyering@lucent.com>
21784
21785         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
21786         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
21787         have been included before this file.
21788
21789 2002-06-14  Jim Meyering  <meyering@lucent.com>
21790
21791         * lib/file-type.h: Use the version from diffutils-2.8.2.
21792         * lib/file-type.c: Likewise.
21793
21794 2002-06-07  Jim Meyering  <meyering@lucent.com>
21795
21796         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
21797         They're needed at least for NetBSD 1.5.2.
21798         ($statxfs_includes): Include those same headers.
21799         ($statxfs_includes): Include sys/vfs.h if available.
21800         ($statxfs_includes): Likewise for sys/statvfs.h.
21801         Check for the following members in both structs statfs and statvfs:
21802         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
21803
21804 2002-06-01  Jim Meyering  <meyering@lucent.com>
21805
21806         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
21807         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
21808
21809 2002-05-28  Jim Meyering  <meyering@lucent.com>
21810
21811         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
21812         Reported by Volker Borchert.
21813
21814 2002-05-27  Jim Meyering  <meyering@lucent.com>
21815
21816         Fix a problem seen only on nonconforming systems whereby ls.c's
21817         use of localtime, and then of gettimeofday would cause trouble:
21818         the localtime call used to initialize rpl_gettimeofday's save
21819         mechanism would clobber ls's current local time information so
21820         that in any long listing the first file would always be listed
21821         with date 1970-01-01.  Analysis by Volker Borchert.
21822
21823         * lib/gettimeofday.c (localtime): Undefine.
21824         (rpl_localtime): New function.
21825
21826 2002-05-27  Jim Meyering  <meyering@lucent.com>
21827
21828         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
21829         localtime.
21830
21831         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
21832         use the replacement function; it wouldn't resolve at link time.
21833         Reported by Volker Borchert.
21834
21835 2002-05-22  Jim Meyering  <meyering@lucent.com>
21836
21837         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
21838         file-type.h.
21839         * lib/file-type.h: New file.
21840         * lib/file-type.c (file_type): New file/function.  Extracted from
21841         diffutils.
21842
21843 2002-04-30  Jim Meyering  <meyering@lucent.com>
21844
21845         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
21846
21847 2002-04-29  Paul Eggert  <eggert@twinsun.com>
21848
21849         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
21850
21851 2002-04-29  Paul Eggert  <eggert@twinsun.com>
21852
21853         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
21854         Do not check for alloca.h (no longer used) or stdbool.h (was never
21855         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
21856
21857 2002-04-29  Paul Eggert  <eggert@twinsun.com>
21858
21859         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
21860
21861 2002-04-29  Jim Meyering  <meyering@lucent.com>
21862
21863         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
21864         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
21865         Use AC_FUNC_STRNLEN here instead.
21866
21867         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
21868         With autoconf-2.53a, it's part of AC_PROG_CC.
21869
21870 2002-04-28  Paul Eggert  <eggert@twinsun.com>
21871
21872         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
21873         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
21874
21875 2002-04-28  Paul Eggert  <eggert@twinsun.com>
21876
21877         * lib/sig2str.h, lib/sig2str.c: New files.
21878         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
21879
21880 2002-04-28  Paul Eggert  <eggert@twinsun.com>
21881
21882         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
21883         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
21884         of 127, since 64 is the largest conceivable number for ancient
21885         nonstandard hosts.
21886         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
21887
21888 2002-04-28  Jim Meyering  <meyering@lucent.com>
21889
21890         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
21891
21892 2002-04-24  Jim Meyering  <meyering@lucent.com>
21893
21894         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
21895         (jm_PREREQ): Use it.
21896
21897         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
21898         mach/mach.h fcntl.h.
21899         Check for this function: setlocale.
21900
21901 2002-04-24  Jim Meyering  <meyering@lucent.com>
21902
21903         * lib/gettext.h: New file, from Gettext.
21904         * lib/Makefile.am (INCLUDES): Remove -I../intl.
21905         (libfetish_a_SOURCES): Add gettext.h.
21906
21907 2002-04-16  Jim Meyering  <meyering@lucent.com>
21908
21909         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
21910         ut_pid, ut_id, ut_exit.
21911
21912 2002-04-16  Jim Meyering  <meyering@lucent.com>
21913
21914         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
21915         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
21916         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
21917
21918 2002-04-12  Jim Meyering  <meyering@lucent.com>
21919
21920         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
21921         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
21922         existence of the getmntinfo function.  Needed for Darwin 5.3.
21923
21924         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
21925         This is necessary at least on Darwin 5.3.
21926
21927         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
21928         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
21929         strnlen.o in the library, and that makes some versions of ranlib
21930         object.
21931
21932 2002-04-12  Jim Meyering  <meyering@lucent.com>
21933
21934         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
21935
21936 2002-04-09  Jim Meyering  <meyering@lucent.com>
21937
21938         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
21939         to be more precise.  Rather than saying we're checking whether the
21940         function `works', say what we're testing.
21941         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
21942         Reported by Bruno Haible.
21943
21944 2002-03-10  Jim Meyering  <meyering@lucent.com>
21945
21946         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
21947         Suggestion from Santiago Vila.
21948
21949 2002-03-08  Jim Meyering  <meyering@lucent.com>
21950
21951         * lib/rename.c: Mention that this wrapper is needed also on
21952         mips-dec-ultrix4.4 systems.
21953
21954 2002-03-02  Jim Meyering  <meyering@lucent.com>
21955
21956         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
21957         not HAVE_CLOCK_SETTIME.
21958
21959 2002-02-27  Paul Eggert  <eggert@twinsun.com>
21960
21961         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
21962         Check for clock_settime.
21963
21964 2002-02-27  Paul Eggert  <eggert@twinsun.com>
21965
21966         * lib/nanosleep.h: Rename to....
21967         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
21968
21969         * lib/gettime.c: New file.
21970         * lib/settime.c: New file.
21971         * lib/stime.c: Remove.
21972
21973         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
21974         timespec.h.  Remove nanosleep.h.
21975
21976 2002-02-25  Paul Eggert  <eggert@twinsun.com>
21977
21978         * m4/acl.m4: New file.
21979         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
21980         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
21981
21982 2002-02-25  Paul Eggert  <eggert@twinsun.com>
21983
21984         * lib/acl.c, lib/acl.h: New files.
21985         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
21986
21987 2002-02-24  Jim Meyering  <meyering@lucent.com>
21988
21989         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
21990         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
21991         cause trouble.  Reported by Nelson Beebe.
21992
21993 2002-02-23  Paul Eggert  <eggert@twinsun.com>
21994
21995         * lib/path-concat.c (xpath_concat): Reorder code to pacify
21996         compilers that don't know that xalloc_die never returns.
21997
21998 2002-02-20  Jim Meyering  <meyering@lucent.com>
21999
22000         * lib/getdate.c: Regenerate using bison-1.33.
22001
22002 2002-02-17  Jim Meyering  <meyering@lucent.com>
22003
22004         * config/config.guess (main): Don't use `head -1'; it's no longer
22005         portable. Use `sed 1q' instead.
22006
22007 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
22008
22009         * m4/codeset.m4: Upgrade to gettext-0.11.
22010         * m4/gettext.m4: Upgrade to gettext-0.11.
22011         * m4/glibc21.m4: Upgrade to gettext-0.11.
22012         * m4/iconv.m4: Upgrade to gettext-0.11.
22013         * m4/isc-posix.m4: Upgrade to gettext-0.11.
22014         * m4/lcmessage.m4: Upgrade to gettext-0.11.
22015         * m4/lib-ld.m4: New file, from gettext-0.11.
22016         * m4/lib-link.m4: New file, from gettext-0.11.
22017         * m4/lib-prefix.m4: New file, from gettext-0.11.
22018         * m4/progtest.m4: Upgrade to gettext-0.11.
22019
22020 2002-02-15  Paul Eggert  <eggert@twinsun.com>
22021
22022         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
22023         (jm_PREREQ): Use it.
22024
22025 2002-02-15  Paul Eggert  <eggert@twinsun.com>
22026
22027         * lib/posixver.c, lib/posixver.h: New files.
22028         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
22029
22030 2002-02-02  Paul Eggert  <eggert@twinsun.com>
22031             Bruno Haible  <bruno@clisp.org>
22032
22033         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
22034         (fwrite_success_callback): New declaration.
22035         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
22036         print_unicode_char. Call failure callback instead of error.
22037         (fwrite_success_callback): New function.
22038         (exit_failure_callback): New function.
22039         (fallback_failure_callback): New function.
22040         (print_unicode_char): Call unicode_to_mb.
22041
22042 2002-01-26  Jim Meyering  <meyering@lucent.com>
22043
22044         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
22045         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
22046
22047 2002-01-26  Jim Meyering  <meyering@lucent.com>
22048
22049         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
22050
22051 2002-01-22  Paul Eggert  <eggert@twinsun.com>
22052
22053         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
22054
22055 2002-01-22  Jim Meyering  <meyering@lucent.com>
22056
22057         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
22058         Otherwise, some versions of automake would omit the rule that makes
22059         Makefile from Makefile.in.
22060
22061 2002-01-21  Paul Eggert  <eggert@twinsun.com>
22062
22063         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
22064         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
22065         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
22066         (memcoll): Set errno to zero if there is no error.
22067
22068         * lib/quotearg.c (quotearg_buffer_restyled):
22069         Fix bug with quoting buffers containing NUL when backslashing escapes.
22070         This bug was exposed by the other changes in this patch.
22071         (quotearg_n_options): New arg ARGSIZE.
22072         All callers changed.
22073         (quoting_options_from_style): New function.
22074         (quotearg_n_style): Use it.
22075         (quotearg_n_style_mem): New function.
22076
22077         * lib/quotearg.h (quotearg_n_style_mem): New function.
22078
22079 2002-01-19  Jim Meyering  <meyering@lucent.com>
22080
22081         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
22082         Remove useless quotes: DF_PROG="df".
22083         * m4/strnlen.m4: New file.
22084
22085 2002-01-16  Paul Eggert  <eggert@twinsun.com>
22086
22087         * lib/backupfile.c (ISDIGIT): Comment fix.
22088         * lib/getdate.y (ISDIGIT): Likewise.
22089         * lib/posixtm.c (ISDIGIT, year): Likewise.
22090         * lib/strverscmp.c (ISDIGIT): Likewise.
22091         * lib/userspec.c (ISDIGIT): Likewise.
22092
22093 2002-01-16  Jim Meyering  <meyering@lucent.com>
22094
22095         * lib/getdate.y: Add three semicolons, each just before a closing
22096         brace. Bison (as of version 1.31) no longer papers over that mistake.
22097
22098 2002-01-05  Jim Meyering  <meyering@lucent.com>
22099
22100         * lib/version-etc.c (version_etc_copyright): Update copyright year.
22101
22102 2001-12-19  Paul Eggert  <eggert@twinsun.com>
22103
22104         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
22105         not silently exit merely because the output buffer happens to
22106         have nothing pending.
22107
22108 2001-12-18  Paul Eggert  <eggert@twinsun.com>
22109
22110         See the big note in ../ChangeLog.
22111         * lib/human.c (suffixes): Prefer K to k for 1024.
22112         (generate_suffix_backwards): New function.
22113         (human_readable_inexact): Use it.
22114         * lib/xstrtol.c (__xstrtol): If there is no number but there
22115         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
22116         Accept 'K' as well as 'k'.
22117
22118 2001-12-15  Jim Meyering  <meyering@lucent.com>
22119
22120         * lib/regex.h (__restrict_arr): Update from libc.
22121
22122         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
22123         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
22124         (STREQ): Define.
22125
22126 2001-12-14  Jim Meyering  <meyering@lucent.com>
22127
22128         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
22129         Suggestion from Bruno Haible.
22130
22131 2001-12-10  Jim Meyering  <meyering@lucent.com>
22132
22133         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
22134         xrealloc, Instead, include "xalloc.h".
22135         (initbuffer): Don't cast xmalloc return value to char*.
22136         (readline): Reword comment.
22137         Don't cast xrealloc return value to char*
22138         Return NULL, not 0.
22139
22140 2001-12-09  Jim Meyering  <meyering@lucent.com>
22141
22142         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
22143         about `signed and unsigned type in conditional expression'.
22144         * lib/posixtm.c (posix_time_parse): Likewise.
22145
22146         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
22147
22148         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
22149         to avoid a pedantic warning.
22150
22151         * lib/getstr.c: Don't include assert.h.
22152         (getstr): Remove warning-evoking assertions.
22153         Return -1 if offset parameter is out of bounds.
22154         Change the type of a local from int to size_t.
22155
22156         * lib/strftime.c (my_strftime_localtime_r): Include this function
22157         definition in the `#if ! HAVE_TM_GMTOFF' block.
22158
22159         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
22160         Include xalloc.h instead.
22161
22162 2001-12-02  Jim Meyering  <meyering@lucent.com>
22163
22164         * lib/tempname.c: Don't declare getenv, thus reverting the change of
22165         2001-11-18.  It's no longer necessary, now that stdlib.h is always
22166         included.
22167
22168         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
22169         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
22170
22171 2001-11-30  Akim Demaille  <akim@epita.fr>
22172
22173         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
22174         before being defined.
22175
22176 2001-11-27  Paul Eggert  <eggert@twinsun.com>
22177
22178         * lib/quotearg.h (quotearg_n, quotearg_n_style):
22179         First arg is int, not unsigned.
22180         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
22181         (SIZE_MAX, UINT_MAX): New macros.
22182         (quotearg_n_options): Abort if N is negative.
22183         Avoid overflow check on hosts where size_t is 64 bits and int
22184         is 32 bits, as overflow is impossible there.
22185         Fix off-by-one typo that caused unnecessary reallocation.
22186
22187 2001-11-27  Jim Meyering  <meyering@lucent.com>
22188
22189         * lib/tempname.c: Merge with version from libc.
22190         * lib/regex.c: Likewise.
22191
22192         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
22193         systems for which STDC_HEADERS is 0, it was not included, resulting in
22194         a warning about an integer-to-pointer conversion problem with getenv.
22195         Reported by Volker Borchert.
22196
22197 2001-11-26  Jim Meyering  <meyering@lucent.com>
22198
22199         * lib/gtod.h: Remove file.
22200         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
22201         * lib/gettimeofday.c: Don't include gtod.h.
22202         (GTOD_init): Remove function.
22203         (rpl_gettimeofday): Do its job here instead, rather than aborting.
22204         Suggestion from Volker Borchert.
22205
22206 2001-11-23  Jim Meyering  <meyering@lucent.com>
22207
22208         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
22209         it.
22210         * lib/hash.c (struct hash_table): Define it here instead.
22211
22212 2001-11-22  Jim Meyering  <meyering@lucent.com>
22213
22214         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
22215
22216 2001-11-20  Jim Meyering  <meyering@lucent.com>
22217
22218         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
22219         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
22220
22221 2001-11-19  Jim Meyering  <meyering@lucent.com>
22222
22223         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
22224         directory.  Use "conftestXXXXXX" as the template.
22225         Suggestion from Paul Eggert.
22226
22227         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
22228         immediately, so the test doesn't mistakenly hit the max-open-files
22229         limit.
22230
22231 2001-11-18  Paul Eggert  <eggert@twinsun.com>
22232
22233         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
22234         (TEMPORARIES): New macro.
22235         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
22236         removes an artificial limitation (e.g. HP-UX 10.20, where
22237         TMP_MAX is 17576).
22238
22239 2001-11-18  Jim Meyering  <meyering@lucent.com>
22240
22241         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
22242
22243 2001-11-18  Jim Meyering  <meyering@lucent.com>
22244
22245         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
22246         on SunOS 4.
22247
22248         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
22249         files will be created before anything else.
22250
22251 2001-11-17  Paul Eggert  <eggert@twinsun.com>
22252
22253         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
22254         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
22255
22256 2001-11-17  Jim Meyering  <meyering@lucent.com>
22257
22258         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
22259         Prompted by a report from Bob Proulx.
22260
22261         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
22262         Instead, require UTILS_FUNC_MKSTEMP.
22263
22264 2001-11-17  Jim Meyering  <meyering@lucent.com>
22265
22266         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
22267         Now, that's done as part of AC_FUNC_STRTOD.
22268
22269 2001-11-17  Jim Meyering  <meyering@lucent.com>
22270
22271         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
22272         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
22273         rather than group writable.  Patch by Juan F. Codagnone.
22274
22275         * lib/readtokens.c: Remove explicit declarations of xmalloc and
22276         xrealloc, Instead, include "xalloc.h".
22277
22278         * lib/mountlist.c: Include unlocked-io.h after all system headers.
22279         Remove explicit declarations of xmalloc, xrealloc,
22280         and xstrdup.  Instead, include "xalloc.h".
22281
22282         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
22283         unlocked-io.h.
22284         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
22285         Likewise.
22286         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
22287
22288         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
22289         Reported by Padraig Brady.
22290
22291         * lib/mkstemp.c: #undef mkstemp.
22292         Include config.h.
22293         (rpl_mkstemp): Rename from mkstemp.
22294         Protoize.
22295
22296 2001-11-16  Jim Meyering  <meyering@lucent.com>
22297
22298         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
22299         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
22300         determine the amount of total physical memory, use pstat_getstatic.
22301         HPUX-11 doesn't define _SC_PHYS_PAGES.
22302         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
22303         If sysconf couldn't be used to determine the amount of available
22304         physical memory, use both pstat_getstatic and pstat_getdynamic.
22305         Based on a patch from Bob Proulx.
22306
22307 2001-11-10  Jim Meyering  <meyering@lucent.com>
22308
22309         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
22310         (jm_PREREQ): Use it.
22311
22312 2001-11-09  Jim Meyering  <meyering@lucent.com>
22313
22314         * m4/jm-macros.m4: Require autoconf-2.52f.
22315         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
22316         Use these AC_-prefixed names, not the AM_-prefixed ones.
22317
22318         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
22319
22320 2001-11-05  Jim Meyering  <meyering@lucent.com>
22321
22322         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
22323
22324 2001-11-04  Jim Meyering  <meyering@lucent.com>
22325
22326         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
22327         $DEFS.
22328
22329 2001-11-03  Jim Meyering  <meyering@lucent.com>
22330
22331         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
22332         of AC_DEFUN.
22333
22334         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
22335         know the name of the variable in the macro definition.
22336
22337 2001-11-03  Jim Meyering  <meyering@lucent.com>
22338
22339         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
22340         in argmatch_to_argument call.
22341
22342         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
22343         argument.
22344
22345         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
22346         e.g., a fault due to an attempt to free a NULL pointer.
22347
22348 2001-11-01  Jim Meyering  <meyering@lucent.com>
22349
22350         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
22351         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
22352
22353 2001-11-01  Jim Meyering  <meyering@lucent.com>
22354
22355         * lib/dirfd.c, lib/dirfd.h: New files.
22356         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
22357
22358         * lib/hash.c (hash_print) [TESTING]: Clean up.
22359
22360 2001-10-22  Paul Eggert  <eggert@twinsun.com>
22361
22362         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
22363         to avoid a warning if -Wall.
22364
22365 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
22366
22367         * README: New file
22368         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
22369         (per RMS's instructions, this is now the canonical source)
22370         * lgpl/, gpl/: New directories.
22371
22372 2001-10-21  Paul Eggert  <eggert@twinsun.com>
22373
22374         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
22375
22376 2001-10-21  Jim Meyering  <meyering@lucent.com>
22377
22378         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
22379         this code would end up calling gettext even in packages built
22380         with --disable-nls.
22381         * lib/getopt.c (_): Likewise.
22382         * lib/regex.c (_): Likewise.
22383
22384 2001-10-20  Paul Eggert  <eggert@twinsun.com>
22385
22386         * m4/error.m4 (jm_PREREQ_ERROR):
22387         Do not invoke AC_CHECK_FUNCS with strerror_r, as
22388         AC_FUNC_STRERROR_R does that.
22389         Check for strerror declaration.
22390
22391         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
22392         are supposed to have them these days.
22393         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
22394         Merge changes from latest Autoconf CVS.
22395         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
22396         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
22397         POSIX decided to standardize on the int flavor of strerror_r.
22398
22399 2001-10-20  Paul Eggert  <eggert@twinsun.com>
22400
22401         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
22402         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
22403         Use strerror_r that is only a macro, even if it is not a function.
22404         (strerror): Check for HAVE_DECL_STRERROR before declaring.
22405         (private_strerror): Use prototypes, not old-style function definition.
22406         (print_errno_message): New function.
22407         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
22408         char*-flavored one.
22409         (error_tail, error, error_at_line): Use it.
22410
22411 2001-10-11  Jim Meyering  <meyering@lucent.com>
22412
22413         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
22414         and quote_n (1, ... to avoid clobbering a buffer.
22415
22416 2001-10-05  Jim Meyering  <meyering@lucent.com>
22417
22418         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
22419         hash-pjw.h.
22420         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
22421         * lib/hash-pjw.h: New file.
22422
22423 2001-09-30  Jim Meyering  <meyering@lucent.com>
22424
22425         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
22426         `struct fsstat' has the `f_fstypename' member.
22427         Use that to define FS_TYPE, which is now used to make
22428         the getfsstat link test tighter.
22429
22430 2001-09-30  Jim Meyering  <meyering@lucent.com>
22431
22432         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
22433         Include <sys/ucred.h>, for Apple Darwin.
22434         Include sys/mount.h and sys/fs_types.h only if available.
22435         (FS_TYPE): Define.
22436         (read_filesystem_list): Use FS_TYPE.
22437
22438 2001-09-29  Paul Eggert  <eggert@twinsun.com>
22439
22440         * lib/exclude.c (excluded_filename): 0 -> false, since it's
22441         a boolean context.
22442
22443 2001-09-29  Jim Meyering  <meyering@lucent.com>
22444
22445         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
22446         [one-argument getmntent function]): Include stdio.h before mntent.h.
22447         SunOS 4.1.x needs it for the declaration of `FILE'.
22448         Patch by Volker Borchert.
22449
22450         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
22451         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
22452         sys/fs_types.h, and make the link-test for getfsstat guard #include
22453         directives with appropriate #if HAVE_*_H tests so that we can
22454         detect getfsstat on Apple Darwin1.3.7 systems.
22455         Reported by Nelson Beebe.
22456         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
22457
22458 2001-09-28  Paul Eggert  <eggert@twinsun.com>
22459
22460         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
22461         #defines strtoimax.  Also treat the other strto* functions
22462         like strtoimax.
22463
22464         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
22465         Check for strtoul and strtoumax,
22466         as those declarations are made even in the signed case.
22467         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
22468         Likewise, for strtol and strtoimax.
22469
22470 2001-09-28  Paul Eggert  <eggert@twinsun.com>
22471
22472         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
22473         #defines strtoimax.  Also treat the other strto* functions
22474         like strtoimax.
22475
22476         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
22477         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
22478         (strtoimax, strtoumax): Do not declare if already defined as a macro.
22479
22480 2001-09-26  Jim Meyering  <meyering@lucent.com>
22481
22482         Most macros in unlocked-io.h had the wrong number of arguments.
22483         * lib/gen-uio: New script.
22484         (USE_UNLOCKED_IO): Define to 1 if not already defined.
22485         * lib/unlocked-io.hin: Remove file.
22486         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
22487         rather than trying to embed it here.
22488         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
22489         Reported by Padraig Brady.
22490
22491 2001-09-25  Volker Borchert  <bt@teknon.de>
22492
22493         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
22494         `result'.
22495
22496 2001-09-24  Jim Meyering  <meyering@lucent.com>
22497
22498         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
22499
22500 2001-09-23  Jim Meyering  <meyering@lucent.com>
22501
22502         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
22503         instead of the mere test for existence of mntent.h.  The latter
22504         would get a false-positive on AIX 3.4 systems.
22505         In the outer getmntent if-block, don't die if neither of the getmntent
22506         tests succeeds.  Instead, just fall through and continue with the
22507         remaining tests.
22508
22509 2001-09-23  Jim Meyering  <meyering@lucent.com>
22510
22511         * lib/mountlist.c: Remove useless parentheses in #if directives.
22512         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
22513         the deprecated MOUNTED symbol is no longer defined in mntent.h.
22514
22515 2001-09-22  Jim Meyering  <meyering@lucent.com>
22516
22517         * m4/gettext.m4: New file.  From gettext.
22518         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
22519         * m4/progtest.m4: Likewise
22520         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
22521         * m4/glibc21.m4: Likewise.
22522
22523         * m4/libintl.m4: Remove.  No longer used.
22524
22525 2001-09-22  Jim Meyering  <meyering@lucent.com>
22526
22527         * lib/localcharset.c: Update from latest gettext.
22528         * lib/config.charset: Likewise.
22529
22530 2001-09-20  Jim Meyering  <meyering@lucent.com>
22531
22532         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
22533         strtoimax.
22534         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
22535         strtoumax.
22536
22537 2001-09-20  Jim Meyering  <meyering@lucent.com>
22538
22539         * lib/xstrtol.c (strtoimax): Guard declaration with
22540         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
22541         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
22542         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
22543         (strtoumax): Likewise, for completeness (it wasn't necessary).
22544
22545 2001-09-17  Paul Eggert  <eggert@twinsun.com>
22546
22547         * lib/strtoimax.c (HAVE_LONG_LONG):
22548         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
22549         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
22550         to work around bug in IBM C compiler.
22551
22552 2001-09-17  Jim Meyering  <meyering@lucent.com>
22553
22554         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
22555         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
22556         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
22557         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
22558         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
22559         whenever the right hand side need not be expanded by the shell.
22560
22561 2001-09-16  Paul Eggert  <eggert@twinsun.com>
22562
22563         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
22564         library.  It's not correct, as some older glibcs are buggy.
22565         fnmatch wasn't fixed until glibc 2.2.
22566
22567         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
22568         special shell magic here.
22569
22570 2001-09-16  Jim Meyering  <meyering@lucent.com>
22571
22572         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
22573         * m4/jm-macros.m4: Require it.
22574
22575 2001-09-16  Jim Meyering  <meyering@lucent.com>
22576
22577         * lib/mkdir.c: New file.
22578
22579 2001-09-15  Jim Meyering  <meyering@lucent.com>
22580
22581         * m4/jm-macros.m4: Check for help2man.
22582
22583 2001-09-11  Jim Meyering  <meyering@lucent.com>
22584
22585         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
22586         The body, by Paul Eggert, was moved here from configure.in.
22587         * m4/jm-macros.m4: Require UTILS_HOST_OS.
22588
22589 2001-09-04  Paul Eggert  <eggert@twinsun.com>
22590
22591         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
22592         (jm_PREREQ): Use it.
22593
22594 2001-09-04  Paul Eggert  <eggert@twinsun.com>
22595
22596         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
22597         Use ssize_t, not int, to store result of readlink.
22598         Check for ssize_t overflow as well as size_t overflow,
22599         as POSIX says the result of readlink is implementation-defined
22600         when ssize_t overflows.
22601         Remove unnecessary cast to char*.
22602         Use free+malloc instead of realloc, as the storage doesn't need
22603         to be preserved and it's clearer and can be more efficient that way.
22604         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
22605         * lib/xreadlink.h (xreadlink): Update prototype.
22606
22607 2001-09-04  Paul Eggert  <eggert@twinsun.com>
22608
22609         * lib/xgetcwd.c: Revert some of the previous change; intead,
22610         fix the HAVE_GETCWD_NULL code to behave more like the
22611         !HAVE_GETCWD_NULL code used to.
22612
22613         Include "xalloc.h".
22614         (xgetcwd): Do not return NULL when memory is exhausted; instead,
22615         invoke xalloc_die.
22616
22617 2001-09-03  Paul Eggert  <eggert@twinsun.com>
22618
22619         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
22620         sys/param.h, as pathmax.h includes them.
22621
22622 2001-09-03  Paul Eggert  <eggert@twinsun.com>
22623
22624         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
22625         (jm_PREREQ_XGETCWD): New macro.
22626
22627         * m4/getcwd.m4: New file.
22628
22629 2001-09-03  Paul Eggert  <eggert@twinsun.com>
22630
22631         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
22632         like the HAVE_GETCWD_NULL code.
22633         Include pathmax.h if not HAVE_GETCWD.
22634         Do not include xalloc.h.
22635         (INITIAL_BUFFER_SIZE): New symbol.
22636         Do not use xmalloc / xrealloc, since the caller is responsible for
22637         handling errors.  Preserve errno around `free' during failure.
22638         Do not overrun buffer when using getwd.
22639
22640 2001-09-03  Paul Eggert  <eggert@twinsun.com>
22641
22642         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
22643         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
22644         getcwd (NULL, 0).
22645
22646 2001-09-03  Paul Eggert  <eggert@twinsun.com>
22647
22648         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
22649         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
22650         spotted by Jim Meyering.
22651
22652 2001-09-03  Jim Meyering  <meyering@lucent.com>
22653
22654         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
22655         failure.
22656
22657 2001-09-02  Jim Meyering  <meyering@lucent.com>
22658
22659         * lib/error.c: Update from GNU libc.
22660
22661 2001-09-01  Jim Meyering  <meyering@lucent.com>
22662
22663         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
22664         Used by df.
22665
22666 2001-09-01  Jim Meyering  <meyering@lucent.com>
22667
22668         * lib/xreadlink.c: New file.
22669         * lib/xreadlink.h: New file.
22670         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
22671         xreadlink.h.
22672
22673         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
22674         doesn't conflict with sparc Solaris 7's definition in
22675         /usr/include/sys/int_types.h.
22676
22677         * lib/exclude.c: Use `""', not `<>' to #include non-system header
22678         files.
22679         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
22680         and strncasecmp as r-values.  Unixware didn't have declarations.
22681
22682 2001-08-31  Paul Eggert  <eggert@twinsun.com>
22683
22684         * lib/xstrtol.h: Add copyright notice.
22685         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
22686         LONGINT_INVALID_SUFFIX_CHAR.
22687
22688 2001-08-31  Paul Eggert  <eggert@twinsun.com>
22689
22690         * lib/xstrtol.c (strtoimax): New decl.
22691
22692 2001-08-31  Paul Eggert  <eggert@twinsun.com>
22693
22694         * lib/xgetcwd.c: Don't include pathmax.h.
22695         Include stdlib.h and unistd.h if available.
22696         Include xalloc.h.
22697         (xmalloc, xstrdup, free): Remove decls.
22698         (xgetcwd): Don't assume sizes fit in unsigned.
22699         Check for overflow when computing sizes.
22700         Simplify reallocation code.
22701
22702 2001-08-31  Paul Eggert  <eggert@twinsun.com>
22703
22704         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
22705         a directory's st_size can have an arbitrary value, so the old
22706         usage could waste an arbitrary amount of memory.  All uses
22707         changed.
22708         * lib/savedir.h: Update prototype.
22709
22710 2001-08-31  Paul Eggert  <eggert@twinsun.com>
22711
22712         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
22713
22714         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
22715         old strtoimax.c.
22716
22717         Also, make the following further changes to make this file's
22718         configuration more similar to that of strtol.c:
22719         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
22720         (strtoumax, uintmax_t, strtoull, strtol): Remove.
22721         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
22722         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
22723         changed to signed values.
22724
22725         And make the following changes as well:
22726         Fix copyright notice, as 1999 was missing.
22727         (verify): New macro.
22728         (strtoimax): Check sizes at compile-time, not run-time.
22729         Prefer strtol to strtoll if both work.
22730         (main): Remove; it was not that useful and was a pain to maintain.
22731
22732         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
22733
22734 2001-08-31  Jim Meyering  <meyering@lucent.com>
22735
22736         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
22737         Use an initial, malloc'd, buffer of length 128 rather than
22738         a statically allocated one of length 1024.
22739
22740 2001-08-30  Paul Eggert  <eggert@twinsun.com>
22741
22742         Simplify code, partly by assuming autoconf 2.52 semantics.
22743
22744         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
22745
22746         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
22747         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
22748         All uses removed.
22749         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
22750         Move AC_REQUIRE to next-to-top level, to avoid confusion.
22751         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
22752         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
22753         jm_AC_HEADER_INTTYPES_H.
22754         * m4/jm-macros.m4 (jm_MACROS): Likewise.
22755
22756         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
22757
22758         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
22759         Quote first arg of AC_DEFUN.
22760         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
22761         since they are needed to parse the include file even if we need
22762         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
22763         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
22764         but with opposite signedness.
22765
22766 2001-08-30  Paul Eggert  <eggert@twinsun.com>
22767
22768         Merge 'exclude' changes from tar 1.13.22.
22769         This fixes one or two unlikely storage allocation overflow bugs,
22770         but doesn't change user-visible behavior otherwise.
22771
22772 2001-08-30  Paul Eggert  <eggert@twinsun.com>
22773
22774         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
22775         (jm_PREREQ_EXCLUDE): New macro.
22776
22777 2001-08-30  Paul Eggert  <eggert@twinsun.com>
22778
22779         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
22780         tm to be declared.
22781
22782 2001-08-30  Paul Eggert  <eggert@twinsun.com>
22783
22784         * lib/hash.c: Remove '2001' from copyright notice.
22785
22786 2001-08-30  Paul Eggert  <eggert@twinsun.com>
22787
22788         * lib/full-write.h: New file.
22789         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
22790         * lib/full-write.c: Correct credits, as cccp.c no longer
22791         exists and anyway it was so heavily changed from the old cccp
22792         code as to be unrecognizable.  Include full-write.h.
22793         (full_write) Return size_t, with short writes meaning failure.
22794         All callers changed.  This fixes a bug with large buffers
22795         on 64-bit hosts.
22796         * lib/utime.c: Include full-write.h.
22797
22798 2001-08-30  Paul Eggert  <eggert@twinsun.com>
22799
22800         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
22801         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
22802         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
22803         Include if available.
22804         (<xalloc.h>): Include
22805         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
22806         (verify): New macro.  Use it to verify that EXCLUDE macros do not
22807         collide with FNM macros.
22808         (struct patopts): New struct.
22809         (struct exclude): Use it, as exclude patterns now come with options.
22810         (new_exclude): Support above changes.
22811         (new_exclude, add_exclude_file):
22812         Initial size must now be a power of two to simplify overflow checking.
22813         (free_exclude, fnmatch_no_wildcards): New function.
22814         (excluded_filename): No longer requires options arg, as the options
22815         are determined by add_exclude.  Now returns bool, not int.
22816         (excluded_filename, add_exclude):
22817         Add support for the fancy new exclusion options.
22818         (add_exclude, add_exclude_file): Now takes int options arg.
22819         Check for arithmetic overflow when computing sizes.
22820         (add_exclude_file): xrealloc might modify errno, so don't
22821         realloc until after errno might be used.
22822
22823         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
22824         New macros.
22825         (free_exclude): New decl.
22826         (add_exclude, add_exclude_file): Now takes int options arg.
22827         (excluded_filename): No longer requires options arg, as the options
22828         are determined by add_exclude.  Now returns bool, not int.
22829
22830 2001-08-30  Paul Eggert  <eggert@twinsun.com>
22831
22832         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
22833
22834 2001-08-27  Jim Meyering  <meyering@lucent.com>
22835
22836         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
22837
22838         * lib/version-etc.c (N_): Remove definition.
22839         Revert most of last change.
22840         Instead, simply don't mark the `Copyright...' string for translation.
22841         Based on advice from Paul Eggert.
22842
22843         * lib/strtoxmax.c: Tweak comment.
22844
22845 2001-08-26  Jim Meyering  <meyering@lucent.com>
22846
22847         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
22848
22849         * m4/xstrtoimax.m4: New file.
22850         * m4/xstrtoumax.m4: Add comments explaining why we
22851         AC_REPLACE_FUNCS(strtol).
22852
22853 2001-08-26  Jim Meyering  <meyering@lucent.com>
22854
22855         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
22856         of copyright with `%s' so translators don't get an untranslated
22857         message in 2002.
22858         (COPYRIGHT_YEAR): Define.
22859         (version_etc): Use fprintf rather than fputs.
22860         Suggestion from Ulrich Drepper.
22861
22862         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
22863
22864         * lib/strtoll.c: New file, from GNU libc.
22865         * lib/xstrtoimax.c: New file.
22866
22867         * lib/xstrtol.h: Add xstrtoimax.
22868         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
22869         * lib/strtoimax.c: New file.  Likewise, but first define
22870         STRTOUXMAX_SIGNED.
22871
22872         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
22873         ...
22874         * lib/strtoxmax.c: ... then renamed to this.
22875
22876 2001-08-18  Paul Eggert  <eggert@twinsun.com>
22877
22878         * m4/inttypes.m4: Add AC_PREREQ(2.13).
22879         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
22880         (jm_AC_TYPE_INTMAX_T): New macro.
22881         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
22882
22883         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
22884
22885         * m4/longlong.m4: Renamed from ulonglong.m4.
22886         * m4/inttypes.m4: Renamed from inttypes_h.m4.
22887         * m4/uintmax_t.m4: Removed.
22888
22889 2001-08-13  Paul Eggert  <eggert@twinsun.com>
22890
22891         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
22892         Port to Solaris 8, where 'sed' requires a space after the 'r'
22893         command, and where sh dislikes "$/".  Clean up the spacing a bit.
22894         Redirect output to $tmp just once.
22895
22896 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
22897
22898         * lib/addext.c (<errno.h>): Include.
22899         (errno): Declare if not defined.
22900         (addext): Work correctly when pathconf returns -1 and leaves
22901         errno alone because there is no limit.  Also, work even if
22902         pathconf returns a value greater than SIZE_MAX.
22903
22904 2001-08-12  Jim Meyering  <meyering@lucent.com>
22905
22906         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
22907         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
22908         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
22909         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
22910         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
22911         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
22912         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
22913         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
22914         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
22915         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
22916         utime.m4, utimes.m4, xstrtoumax.m4:
22917         Quote the first argument in each use of AC_DEFUN.
22918
22919 2001-08-12  Jim Meyering  <meyering@lucent.com>
22920
22921         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
22922         Simply `return getcwd (NULL, 0);'.
22923         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
22924         Use 1300 as initial value for length, not PATH_MAX.
22925
22926         * lib/pathmax.h: Clean up cpp syntax.
22927
22928 2001-08-12  Jim Meyering  <meyering@lucent.com>
22929
22930         * lib/gettimeofday.c: New file.
22931         * lib/gtod.h: New file.
22932         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
22933
22934 2001-08-05  Jim Meyering  <meyering@lucent.com>
22935
22936         * m4/jm-macros.m4: Require autoconf-2.52.
22937
22938 2001-08-04  Jim Meyering  <meyering@lucent.com>
22939
22940         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
22941         stmt, to get in sync with glibc.
22942
22943 2001-08-03  Paul Eggert  <eggert@twinsun.com>
22944
22945         The following changes are from gettext 0.10.39 as maintained by
22946         Bruno Haible.
22947
22948         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
22949         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
22950         with inverted sense.  All uses changed.
22951
22952         * lib/mbswidth.c: Don't include <limits.h>.
22953         Include <stdlib.h> and <string.h> unconditionally.
22954         (iswcntrl, mbsinit, ISCNTRL): New macros.
22955         (mbsnwidth): Use K&R style function declarations.
22956         Don't bother checking for MB_LEN_MAX == 1, since the compiler
22957         can optimize it when MB_CUR_MAX == 1.
22958         The width of control characters is zero, not 1.
22959
22960 2001-08-03  Paul Eggert  <eggert@twinsun.com>
22961
22962         The following changes are from gettext 0.10.39 as maintained by
22963         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
22964
22965         * m4/codeset.m4: Upgrade to serial AM1.
22966         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
22967         all uses changed.  Quote first arg of AC_DEFUN.
22968         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
22969
22970         * m4/iconv.m4: Upgrade to serial AM2.
22971         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
22972         Add --with-libconv-prefix.
22973         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
22974         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
22975         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
22976         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
22977         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
22978
22979         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
22980         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
22981         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
22982         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
22983         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
22984         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
22985         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
22986         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
22987         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
22988
22989         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
22990         string.h any more.
22991
22992         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
22993         not the default value.
22994
22995         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
22996         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
22997         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
22998         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
22999         Also check for iswcntrl, used for wcwidth fallback.
23000         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
23001         to Autoconf 2.13.
23002
23003 2001-08-03  Jim Meyering  <meyering@lucent.com>
23004
23005         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
23006         as it was in the original.  Reported by Paul Eggert.
23007
23008 2001-07-16  Jim Meyering  <meyering@lucent.com>
23009
23010         * m4/gettimeofday.m4: New file.
23011         Prompted by a report from Bernhard Baehr.
23012
23013 2001-07-15  Jim Meyering  <meyering@lucent.com>
23014
23015         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
23016         stuff. Now it's in ../Makefile.cfg.
23017
23018 2001-07-15  Jim Meyering  <meyering@lucent.com>
23019
23020         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
23021         (BUILT_SOURCES): Add unlocked-io.h.
23022         (io_functions): Define.
23023         (unlocked-io.h): New rule.
23024         (DISTCLEANFILES): Add unlocked-io.h.
23025         (all-local): Depend on unlocked-io.h, to ensure it is created.
23026
23027         * lib/unlocked-io.hin: New file
23028
23029         * lib/regex.c: Update from glibc.
23030
23031 2001-07-05  Jim Meyering  <meyering@lucent.com>
23032
23033         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
23034         recommendation.
23035         (libfetish_a_SOURCES): Put all .h files here instead.
23036         Remove a thus-exposed (better checks in automake) duplicate and
23037         two unnecessary .h files.
23038
23039 2001-07-04  Jim Meyering  <meyering@lucent.com>
23040
23041         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
23042         that generates jm-glibc-io.m4 so that it doesn't trigger any make
23043         distcheck failure.
23044
23045 2001-07-02  Jim Meyering  <meyering@lucent.com>
23046
23047         The following changes were prompted by suggestions from Bruno Haible.
23048
23049         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
23050         is now generated.
23051         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
23052         definition of EXTRA_DIST.
23053         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
23054         ensure that the generated file is created/updated whenever the list
23055         of $(unlocked_functions) is changed.
23056         (jm-glibc-io.m4): New rule.
23057         (unlocked-io.h): New rule -- currently unused.
23058
23059 2001-06-24  Jim Meyering  <meyering@lucent.com>
23060
23061         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
23062         unmatched right bracket, rather than kludging it with an extra,
23063         falsely-matching quote in a comment.  Patch by Akim Demaille.
23064
23065 2001-06-11  Jim Meyering  <meyering@lucent.com>
23066
23067         * lib/regex.c: Update from GNU libc.
23068
23069 2001-05-27  Jim Meyering  <meyering@lucent.com>
23070
23071         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
23072         Check for ut_type in struct utmp.
23073
23074 2001-05-27  Jim Meyering  <meyering@lucent.com>
23075
23076         * lib/readutmp.h (UT_TYPE): Define.
23077
23078 2001-05-24  Jim Meyering  <meyering@lucent.com>
23079
23080         * lib/argmatch.c: Include "quote.h".
23081         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
23082         quote function.  Reported by Göran Uddeborg.
23083
23084 2001-05-22  Jim Meyering  <meyering@lucent.com>
23085
23086         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
23087         now that we use the package-supplied version unconditionally.
23088         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
23089
23090 2001-05-21  Jim Meyering  <meyering@lucent.com>
23091
23092         * m4/regex.m4: Change a couple backticks to single quotes to avoid
23093         shell syntax errors.
23094
23095 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
23096
23097         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
23098
23099 2001-05-20  Paul Eggert  <eggert@twinsun.com>
23100
23101         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
23102         Don't bother to check library strftime, since
23103         we'll be using our own my_strftime function anyway.
23104         Define my_strftime instead of strftime.
23105
23106 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
23107
23108         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
23109         which is not yet declared.
23110
23111 2001-05-15  Jim Meyering  <meyering@lucent.com>
23112
23113         * m4/regex.m4: Use proper quoting so brackets appear in the test
23114         program.
23115         Reported by, and with help from, Bruno Haible.
23116
23117 2001-05-13  Jim Meyering  <meyering@lucent.com>
23118
23119         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
23120         undefined.
23121
23122 2001-05-11  Paul Eggert  <eggert@twinsun.com>
23123
23124         dirname code cleanup.  base_name now behaves more compatibly
23125         with POSIX basename when given file names that have trailing
23126         slashes, and similarly for dir_name.  Add new primitives
23127         base_len and dir_len.  Put the directory-name-related decls
23128         into dirname.h.
23129
23130         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
23131         * lib/backupfile.c (base_name): Likewise.
23132         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
23133         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
23134         * lib/makepath.c (strip_trailing_slashes): Likewise.
23135         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
23136         ISSLASH): Likewise.
23137         * lib/rename.c (strip_trailing_slashes): Likewise.
23138         * lib/same.c (base_name): Likewise.
23139         * lib/stripslash.c (ISSLASH): Likewise.
23140
23141         * lib/addext.c: Include <dirname.h> after size_t is defined.
23142         * lib/backupfile.c: Likewise.
23143
23144         * lib/addext.c (addext): Use base_len to trim redundant
23145         trailing slashes instead of doing it ourselves.
23146         But do not trim the last slash if it is not redundant.
23147
23148         * lib/backupfile.c (find_backup_file_name,
23149         max_backup_version): Use base_len instead of rolling it ourselves.
23150         Handle the case of "" and (on DOS) "C:" correctly.
23151
23152         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
23153         needed. Include <string.h>, <dirname.h>.
23154         (base_name): Allow file names ending in slashes, other than names
23155         that are all slashes.  In this case, return the basename followed
23156         by the slashes.  This is more general, and can be used in places
23157         where the original base_name purposely had an assertion failure.
23158         (base_len): New function.
23159
23160         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
23161         Do not include <assert.h>; no longer needed.
23162         Include xalloc.h.
23163         (memrchr): Remove decl.
23164         (dir_name_r): Remove.
23165         (dir_len): Renamed from dirlen.  All callers changed.
23166         Rewrite in terms of base_name, for simplicity and consistency.
23167         (dir_name): Never return NULL.  All callers changed.
23168         Do not include <stdlib.h> in test program; no longer needed.
23169         return 0; is fine for test program.
23170
23171         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
23172         New macros.
23173         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
23174
23175         * lib/path-concat.c (path_concat): Use base_len to compute
23176         base length, not strlen; this means we cannot rely on memcpy
23177         to null-terminate.
23178
23179         * lib/same.c (STREQ): Remove.
23180         (same_name): Handle the case where the basename ends in trailing '/'.
23181
23182         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
23183         a slash was stripped.  Do not strip the last slash after a
23184         file system prefix.
23185
23186 2001-05-11  Paul Eggert  <eggert@twinsun.com>
23187
23188         * lib/Makefile.am (libfetish_a_SOURCES):
23189         Add strftime.c, since we now compile it on all hosts.
23190
23191         * lib/strftime.c (my_strftime):
23192         Define to nstrftime if emacs, but only if my_strftime is not defined.
23193         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
23194         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
23195         Add one more extra argument: a nanoseconds value.
23196         All uses changed.
23197         (ns): New macro.
23198         (my_strftime function): Add %N format.
23199         (emacs_strftimeu): Renamed from emacs_strftime,
23200         with extra ut argument.
23201
23202 2001-05-09  Paul Eggert  <eggert@twinsun.com>
23203
23204         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
23205
23206 2001-04-21  Jim Meyering  <meyering@lucent.com>
23207
23208         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
23209         doesn't interfere.
23210
23211 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
23212
23213         * m4/ftruncate.m4: Check for chsize.
23214         Link with ftruncate.o unconditionally if ftruncate is missing.
23215         This was required when cross-compiling to i586-mingw32msvc.
23216
23217 2001-04-08  Jim Meyering  <meyering@lucent.com>
23218
23219         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
23220         recomputed; that's necessary when the offset spans a DST transition.
23221         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
23222
23223 2001-04-02  Jim Meyering  <meyering@lucent.com>
23224
23225         * lib/regex.h, regex.c: Update from GNU libc.
23226
23227 2001-03-24  Jim Meyering  <meyering@lucent.com>
23228
23229         * m4/jm-macros.m4: Require autoconf-2.49d.
23230
23231 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
23232
23233         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
23234
23235 2001-03-19  Paul Eggert  <eggert@twinsun.com>
23236
23237         * lib/version-etc.c (version_etc_copyright): Update to 2001.
23238
23239 2001-03-17  Jim Meyering  <meyering@lucent.com>
23240
23241         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
23242         now that the version in autoconf is equivalent.
23243         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
23244
23245         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
23246         Suggestion from Akim Demaille.
23247
23248         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
23249         (jm_PREREQ_TEMPNAME): New function.
23250
23251 2001-03-16  Paul Eggert  <eggert@twinsun.com>
23252
23253         * lib/tempname.c (uint64_t): Define to uintmax_t if
23254         not defined, and if UINT64_MAX is not defined.
23255         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
23256         Reported by John David Anglin.
23257
23258 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
23259
23260         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
23261         resolve alias if codeset is empty.
23262         * lib/config.charset (BeOS): Use wildcard syntax.
23263
23264 2001-03-13  Jim Meyering  <meyering@lucent.com>
23265
23266         * lib/path-concat.c (path_concat)
23267         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
23268         concatenating e.g., `C:' and `foo'.
23269         From Bruno Haible.
23270
23271 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
23272
23273         * lib/localcharset.c (locale_charset): Don't use
23274         setlocale(LC_CTYPE,NULL). Don't return NULL.
23275         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
23276
23277 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
23278
23279         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
23280         support for DOS/DJGPP.
23281
23282 2001-03-01  Paul Eggert  <eggert@twinsun.com>
23283
23284         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
23285         lacks mkstemp.  Compile our own tempname.c if we compile our own
23286         mkstemp.c, as mkstemp relies on tempname.
23287
23288 2001-03-01  Jim Meyering  <meyering@lucent.com>
23289
23290         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
23291         AH_VERBATIM really does output its argument verbatim.
23292
23293 2001-02-28  Paul Eggert  <eggert@twinsun.com>
23294
23295         * lib/Makefile.am (libfetish_a_SOURCES):
23296         Add dup-safer.c, fopen-safer.c.
23297         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
23298
23299         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
23300         * lib/unistd-safer.h: New files.
23301
23302 2001-02-25  Paul Eggert  <eggert@twinsun.com>
23303
23304         The mkstemp replacement is taken from glibc 2.2.2, with some
23305         portability fixes for use outside glibc, as follows:
23306
23307         * lib/tempname.c (struct_stat64): New macro.
23308         (direxists, __gen_tempname): Use it.
23309         This avoids a portability problem with Solaris 8.
23310
23311         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
23312         (<stddef.h>, <stdint.h>, <string.h>):
23313         Include only if STDC_HEADERS || _LIBC.
23314         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
23315         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
23316         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
23317         (__set_errno): Define this macro if <errno.h> doesn't.
23318         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
23319         Define these macros if <stdio.h> doesn't.
23320         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
23321         Define these macros if <sys/stat.h>
23322         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
23323         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
23324         __xstat64): Define if not _LIBC.
23325         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
23326         (__gen_tempname): Invoke gettimeofday only if
23327         HAVE_GETTIMEOFDAY || _LIBC;
23328         otherwise, fall back on plain "time".
23329         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
23330
23331         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
23332
23333         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
23334
23335 2001-02-18  Paul Eggert  <eggert@twinsun.com>
23336
23337         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
23338
23339 2001-02-17  Paul Eggert  <eggert@twinsun.com>
23340
23341         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
23342         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
23343         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
23344         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
23345
23346 2001-02-17  Paul Eggert  <eggert@twinsun.com>
23347
23348         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
23349         Remove workaround macros for hosts that have mbrtowc but not
23350         mbstate_t, as we now insist on proper declarations for both
23351         before using mbrtowc.
23352
23353 2001-02-17  Jim Meyering  <meyering@lucent.com>
23354
23355         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
23356         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
23357         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
23358         UnixWare 7.1.1.
23359
23360         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
23361         rather than AC_CACHE_VAL.
23362
23363 2001-02-17  Jim Meyering  <meyering@lucent.com>
23364
23365         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
23366         around included file name.
23367
23368         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
23369
23370         * lib/strftime.c: Update from GNU libc (the only changes were to
23371         comments).
23372
23373 2001-02-17  Jim Meyering  <meyering@lucent.com>
23374
23375         * lib/regex.c: Update from libc.
23376
23377 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
23378
23379         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
23380         clash.
23381
23382 2001-02-16  Paul Eggert  <eggert@twinsun.com>
23383
23384         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
23385         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
23386         Reported by Mark Hounschell via Paul Eggert.
23387
23388 2001-02-07  Jim Meyering  <meyering@lucent.com>
23389
23390         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
23391
23392 2001-02-05  Jim Meyering  <meyering@lucent.com>
23393
23394         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
23395         it includes the patch required for `large file' support with at least
23396         HP-UX's 10.20 /bin/cc.
23397
23398 2001-02-03  Jim Meyering  <meyering@lucent.com>
23399
23400         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
23401         AS_IF, now that it works once again (mysteriously).
23402         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
23403
23404 2001-01-30  Jim Meyering  <meyering@lucent.com>
23405
23406         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
23407         * m4/chown.m4: Rename conftestchown to conftest.chown.
23408         * m4/rename.m4: s/conftestdir/conftest.d1/ and
23409         s/conftestdir2/conftest.d2/.
23410         * m4/utimes.m4: s/conftestdata/conftest.data/
23411         Inspired by Pavel Roskin's change in autoconf.
23412
23413 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
23414
23415         * lib/config.charset: Update for FreeBSD 4.2.
23416
23417 2001-01-27  Jim Meyering  <meyering@lucent.com>
23418
23419         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
23420         a use of AS_IF.
23421         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
23422
23423 2001-01-26  Jim Meyering  <meyering@lucent.com>
23424
23425         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
23426         quotearg.c includes it.
23427
23428 2001-01-26  Jim Meyering  <meyering@lucent.com>
23429
23430         * lib/quotearg.c: Include stddef.h.
23431         * lib/quote.c: Include stddef.h.
23432         Reported by Axel Kittenberger.
23433
23434         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
23435         line in double quotes so that it evokes a better diagnostic.
23436         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
23437         Reported by Axel Kittenberger.
23438
23439 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
23440
23441         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
23442         as if it was a `charset'.
23443
23444 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
23445
23446         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
23447         has const.
23448
23449 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
23450
23451         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
23452         to avoid a warning.  Add back 'const' to inptr.
23453
23454 2001-01-20  Jim Meyering  <meyering@lucent.com>
23455
23456         Be sure that headers are checked before used in code compiled
23457         for the type checks.
23458         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
23459         In place of that, invoke jm_CHECK_ALL_TYPES.
23460         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
23461         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
23462         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
23463         The check for ssize_t was mistakenly run before the test for unistd.h.
23464
23465         The configure-time check for stdbool.h was missing.
23466         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
23467         (jm_PREREQ_HASH): New function.
23468
23469 2001-01-17  Jim Meyering  <meyering@lucent.com>
23470
23471         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
23472         for autoconf-2.49c.
23473         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
23474
23475 2001-01-16  Jim Meyering  <meyering@lucent.com>
23476
23477         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
23478         From Bruno Haible.
23479
23480 2001-01-14  Jim Meyering  <meyering@lucent.com>
23481
23482         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
23483         foo and bar.  Create conftestdir/ in the script, not in the C code.
23484         Remove directories in the script, not in the C code.
23485         Remove conftestdir{,2} before trying to create the directory.
23486         Make the entire configure script fail if the mkdir fails.
23487
23488 2001-01-14  Jim Meyering  <meyering@lucent.com>
23489
23490         * lib/rename.c: New file.  From Volker Borchert.
23491         Include stdlib.h, string.h or strings.h, and xalloc.h.
23492         Use strip_trailing_slashes rather than open-coding it.
23493
23494 2001-01-03  Paul Eggert  <eggert@twinsun.com>
23495
23496         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
23497
23498 2001-01-03  Jim Meyering  <meyering@lucent.com>
23499
23500         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
23501         of local `inptr' to avoid warning with some system declarations of
23502         iconv.
23503
23504 2001-01-02  Volker Borchert  <bt@teknon.de>
23505
23506         * m4/rename.m4: New file.
23507         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
23508
23509 2001-01-01  Jim Meyering  <meyering@lucent.com>
23510
23511         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
23512         even on systems with utmpx.h.  It's necessary for the declaration of
23513         utmp's ut_user member.  Reported by Andreas Jaeger.
23514
23515         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
23516         available. They are required for the declarations of getgrgid and
23517         getpwuid resp.
23518         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
23519         Reported by Andreas Jaeger.
23520
23521 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
23522
23523         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
23524         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
23525         so `make install' also works in VPATH builds.
23526
23527 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
23528
23529         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
23530         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
23531         can be used in subdirectories.
23532
23533 2000-12-29  Paul Eggert  <eggert@twinsun.com>
23534
23535         * lib/modechange.c: Do not assume that mode_t uses the
23536         traditional octal encoding.  E.g. "chmod 1 FOO" should set
23537         the other-execute bit of FOO even if S_IXOTH != 1.
23538
23539         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
23540         WOTH, XOTH, ALLM): New macros.
23541         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
23542          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
23543         Use them.
23544         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
23545         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
23546         (mode_compile):
23547         No need to use uintmax_t; unsigned long is long enough.
23548         Don't bother to get suffix since we don't use it.
23549
23550 2000-12-26  Jim Meyering  <meyering@lucent.com>
23551
23552         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
23553         better with autoheader.
23554
23555 2000-12-24  Jim Meyering  <meyering@lucent.com>
23556
23557         * lib/hash.c (is_prime): Return explicit boolean values.
23558         (hash_get_first): Return NULL to appease Irix5.6's 89.
23559         Reported by Nelson Beebe.
23560
23561 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
23562
23563         * lib/localcharset.c (locale_charset): Add support for Win32.
23564
23565 2000-12-18  Paul Eggert  <eggert@twinsun.com>
23566
23567         * lib/physmem.h, lib/physmem.c: New files.
23568
23569         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
23570         (noinst_HEADERS): Add physmem.h.
23571
23572         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
23573         't' for compatibility with Solaris 8 sort.
23574
23575 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
23576
23577         * lib/config.charset: Add support for BeOS.
23578
23579 2000-12-17  Jim Meyering  <meyering@lucent.com>
23580
23581         * m4/dos.m4 (jm_AC_DOS): New file and macro.
23582         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
23583
23584 2000-12-16  Jim Meyering  <meyering@lucent.com>
23585
23586         This bug had a serious impact on chown: `chown N:M FILE' (for integer
23587         N and M) would have treated it like `chown N:N FILE'.
23588
23589         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
23590
23591 2000-12-16  Jim Meyering  <meyering@lucent.com>
23592
23593         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
23594         SHELLS_FILE to a file name that's useful on djgpp systems.
23595         Include stdlib.h.
23596         (ADDITIONAL_DEFAULT_SHELLS): Define.
23597         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
23598         Based mostly on a patch from Prashant TR.
23599
23600 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
23601
23602         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
23603         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
23604         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
23605
23606 2000-12-08  Andreas Schwab  <schwab@suse.de>
23607
23608         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
23609         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
23610
23611 2000-12-07  Jim Meyering  <meyering@lucent.com>
23612
23613         * lib/stripslash.c (ISSLASH): Define.
23614         (strip_trailing_slashes): Use ISSLASH rather than comparing against
23615         `/'.
23616         From Prashant TR.
23617
23618         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
23619         (dir_name_r): Declare this function as static.
23620         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
23621         manifest itself on a name containing a mix of slashes and
23622         backslashes.
23623         Make this function work with names starting with a DOS-style
23624         drive letter and colon prefix.
23625         (dir_name): Append `.' if necessary.
23626         Based mostly on patches from Prashant TR and Eli Zaretskii.
23627
23628         * lib/dirname.h (dir_name_r): Remove prototype.
23629
23630 2000-12-06  Paul Eggert  <eggert@twinsun.com>
23631
23632         * m4/off_t-format.m4: Remove this file.
23633         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
23634
23635 2000-12-06  Jim Meyering  <meyering@lucent.com>
23636
23637         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
23638         replacement strtoull, we may well need the replacement strtoul, too.
23639         Check for declarations of strtoul and strtoull.
23640         Check for strtol.  Mainly as a cue to cause automake to include
23641         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
23642         Check for limits.h -- strtol.c needs it.
23643
23644 2000-12-05  Jim Meyering  <meyering@lucent.com>
23645
23646         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
23647
23648 2000-12-04  Jim Meyering  <meyering@lucent.com>
23649
23650         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
23651         Also include memory.h, stdlib.h, unistd.h if appropriate.
23652         Reported by Andreas Jaeger (conflicting declaration of malloc).
23653
23654 2000-12-02  Jim Meyering  <meyering@lucent.com>
23655
23656         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
23657         * m4/jm-macros.m4 (jm_MACROS): require it.
23658
23659 2000-12-02  Jim Meyering  <meyering@lucent.com>
23660
23661         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
23662
23663 2000-12-01  Paul Eggert  <eggert@twinsun.com>
23664
23665         * lib/memrchr.c: Include <config.h> before any system include file.
23666
23667 2000-11-30  Jim Meyering  <meyering@lucent.com>
23668
23669         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
23670
23671 2000-11-30  Jim Meyering  <meyering@lucent.com>
23672
23673         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
23674
23675 2000-11-29  Paul Eggert  <eggert@twinsun.com>
23676
23677         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
23678
23679 2000-11-26  Jim Meyering  <meyering@lucent.com>
23680
23681         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
23682
23683 2000-11-22  Paul Eggert  <eggert@twinsun.com>
23684
23685         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
23686         size of (size_t) -1; it's not portable.
23687
23688 2000-11-17  Jim Meyering  <meyering@lucent.com>
23689
23690         * lib/strstr.c: Update from GNU libc.
23691
23692 2000-11-17  Akim Demaille  <akim@epita.fr>
23693
23694         * lib/obstack.h: Formatting changes.
23695         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
23696         prevent type checking.
23697         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
23698         cast the value to (void *): assigning a `foo *' to a `void *'
23699         variable is valid.
23700         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
23701
23702 2000-11-16  Jim Meyering  <meyering@lucent.com>
23703
23704         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
23705
23706 2000-11-11  Jim Meyering  <meyering@lucent.com>
23707
23708         * lib/error.c: Add a couple #includes, merging from GNU libc version.
23709
23710 2000-11-10  Jim Meyering  <meyering@lucent.com>
23711
23712         * lib/obstack.h: Update from GNU libc.
23713         * lib/obstack.c: Likewise.
23714
23715 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
23716
23717         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
23718
23719 2000-11-06  Paul Eggert  <eggert@twinsun.com>
23720
23721         * lib/getusershell.c (setusershell): Use rewind rather than
23722         fseek/fseeko, to avoid configuration hassles with fseeko.
23723         Don't bother opening SHELLS_FILE if shellstream is NULL;
23724         it's not necessary.
23725
23726 2000-11-05  Jim Meyering  <meyering@lucent.com>
23727
23728         * lib/makepath.h (make_dir): Declare.
23729         * lib/makepath.c (make_dir): Remove `static' attribute.
23730         Tweak a comment.
23731
23732 2000-11-04  Jim Meyering  <meyering@lucent.com>
23733
23734         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
23735
23736 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
23737
23738         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
23739         last one in a bucket, advance to the next bucket.
23740
23741 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
23742
23743         * lib/fnmatch.c: Do not comment out all the code if we are using
23744         the GNU C library, because in some cases we are replacing buggy
23745         code in the GNU C library itself.
23746
23747 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
23748
23749         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
23750         (regex_compile): Catch bogus \(\1\).
23751
23752 2000-10-30  Paul Eggert  <eggert@twinsun.com>
23753
23754         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
23755         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
23756         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
23757
23758 2000-10-30  Paul Eggert  <eggert@twinsun.com>
23759
23760         * lib/error.h, getline.h, modechange.h:
23761         Remove "2000" from Copyright line, as the file hasn't been
23762         changed this year other than in the copyright notice.
23763
23764         * lib/xalloc.h: Add "2000" to Copyright line, as this file
23765         was changed this year.
23766
23767 2000-10-29  Jim Meyering  <meyering@lucent.com>
23768
23769         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
23770         renaming.
23771         * m4/ls-mntd-fs.m4: Likewise
23772
23773 2000-10-29  Jim Meyering  <meyering@lucent.com>
23774
23775         * lib/xstat.in: Fix grammar in comment.
23776
23777 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
23778
23779         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
23780         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
23781         doesn't define __restrict_arr.
23782
23783 2000-10-28  Jim Meyering  <meyering@lucent.com>
23784
23785         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
23786         (jm_PREREQ_MEMCHR): New function.
23787
23788 2000-10-28  Jim Meyering  <meyering@lucent.com>
23789
23790         * lib/memchr.c: Update from libc.
23791         Adjust for portability:
23792         [HAVE_STDLIB_H]: Include stdlib.h.
23793         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
23794         Undef __memchr, too.
23795         [!weak_alias]: Define __memchr to memchr.
23796
23797         * lib/regex.c: Update from libc.
23798         * lib/regex.h: Likewise.
23799         * lib/getopt1.c: Likewise.
23800         * lib/memcmp.c: Likewise.
23801
23802         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
23803         Avoid using fseek, when possible -- it's broken by design.
23804         Patch by Ulrich Drepper.
23805
23806 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
23807
23808         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
23809         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
23810         Giving in to popular pressure to shut up the compiler with casts.
23811
23812 2000-10-26  Jim Meyering  <meyering@lucent.com>
23813
23814         * lib/strftime.c: Update from libc.
23815
23816 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
23817
23818         * regex.c: More `unsigned char' -> `re_char' changes.
23819         Also change several `int' into `re_wchar_t'.
23820         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
23821         (PUSH_FAILURE_POINTER): Don't cast any more.
23822         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
23823         We want GCC to complain, since this piece of code makes
23824         re_match non-reentrant, which *should* be fixed.
23825         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
23826         (EXTEND_BUFFER): Use RETALLOC.
23827         (SET_LIST_BIT): Don't cast.
23828         (re_wchar_t): New type.
23829         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
23830         that those two functions will always properly return.
23831         (IMMEDIATE_QUIT_CHECK): Cast to void.
23832         (analyse_first): Use recursion rather than an explicit stack.
23833         (re_compile_fastmap): Can't fail anymore.
23834         (re_search_2): Don't check re_compile_fastmap for failure.
23835         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
23836         Now also sets the new value (passed in a new argument).
23837         (re_match_2_internal): Use it.
23838         Also, use a new var `reg' of type size_t when looping through regs
23839         rather than reuse the inappropriate `mcnt'.
23840
23841 2000-10-25  Jim Meyering  <meyering@lucent.com>
23842
23843         * lib/obstack.c: Update from libc.
23844
23845 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
23846
23847         * regex.c (regex_compile): Change the way of handling a range from
23848         a char less than 256 to a char not less than 256.
23849
23850 2000-10-24  Andrew Innes  <andrewi@gnu.org>
23851
23852         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
23853         NT-Emacs only.
23854         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
23855         so that re_search functions only quit when callers expect them to.
23856
23857 2000-10-23  Jim Meyering  <meyering@lucent.com>
23858
23859         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
23860         wrong.  That set_locale call must not have any side effects.
23861         From Paul Eggert.
23862
23863 2000-10-22  Jim Meyering  <meyering@lucent.com>
23864
23865         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
23866         [CYCLIC]: Remove now-unused definition.
23867
23868         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
23869         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
23870         Suggestion from Ulrich Drepper.
23871
23872 2000-10-21  Jim Meyering  <meyering@lucent.com>
23873
23874         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
23875         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
23876         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
23877
23878 2000-10-21  Jim Meyering  <meyering@lucent.com>
23879
23880         * lib/dirname.c (memrchr): Declare if necessary.
23881         (dir_name): Remove the restriction that there be no
23882         trailing slashes.  Now, this code skips past them, effectively
23883         ignoring them.
23884         [TEST_DIRNAME] (main): New unit tests.
23885
23886         * lib/memrchr.c: New file from GNU libc.
23887         Undef __memrchr, too.
23888         [!weak_alias]: Define __memrchr to memrchr.
23889         Guard weak_alias use with `#ifdef weak_alias'.
23890
23891 2000-10-21  Jim Meyering  <meyering@lucent.com>
23892
23893         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
23894         (dir_name): Use dir_name_r.
23895         * lib/dirname.h (dir_name_r): Declare it.
23896
23897 2000-10-17  Jim Meyering  <meyering@lucent.com>
23898
23899         * lib/quote.h (PARAMS): Define and use.
23900         Reported by Akim Demaille.
23901
23902         * lib/getopt.c: Update from libc.
23903
23904 2000-10-16  Jim Meyering  <meyering@lucent.com>
23905
23906         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
23907         setlocale.
23908         From Jan Fedak.
23909
23910 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
23911
23912         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
23913
23914 2000-09-25  Jim Meyering  <meyering@lucent.com>
23915
23916         * lib/md5.h (rol): Define (from GnuPG).
23917
23918         * lib/sha.c: Give credit (GnuPG) where due.
23919         (M): Use rol rather than open-coding it.
23920         Add a FIXME comment.
23921
23922 2000-09-21  Jim Meyering  <meyering@lucent.com>
23923
23924         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
23925         Reported by Michael Stone.
23926
23927 2000-09-20  Jim Meyering  <meyering@lucent.com>
23928
23929         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
23930         (noinst_HEADERS): Add sha.h.
23931         Based on code from Scott G. Miller and from GnuPG.
23932
23933 2000-09-18  Jim Meyering  <meyering@lucent.com>
23934
23935         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
23936         LIBS. Otherwise, everyone ends up linking with -lelf for some
23937         configurations.
23938         Reported by Mike Stone.
23939
23940 2000-09-15  Jim Meyering  <meyering@lucent.com>
23941
23942         * lib/regex.c: Update from libc.
23943
23944 2000-09-10  Jim Meyering  <meyering@lucent.com>
23945
23946         * lib/getopt.c (_getopt_internal): Update from glibc.
23947
23948 2000-09-09  Jim Meyering  <meyering@lucent.com>
23949
23950         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
23951         think it should be used as a general replacement for isascii.
23952         * lib/fnmatch.c: Likewise.
23953         * lib/mbswidth.c: Likewise
23954         * lib/regex.c: Likewise.
23955
23956         Don't use atoi.
23957         * lib/userspec.c: Include sys/param.h and limits.h.
23958         Include xstrtol.h.
23959         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
23960         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
23961         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
23962         UID, GID.  Check range.
23963
23964 2000-09-06  Jim Meyering  <meyering@lucent.com>
23965
23966         * lib/getopt.c (_getopt_internal): Update from glibc.
23967
23968 2000-08-30  Jim Meyering  <meyering@lucent.com>
23969
23970         * lib/strftime.c: Merge in changes from GNU libc.
23971
23972 2000-08-26  Jim Meyering  <meyering@lucent.com>
23973
23974         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
23975         * m4/fpending.m4: New file.
23976
23977 2000-08-26  Jim Meyering  <meyering@lucent.com>
23978
23979         * lib/closeout.c: Include "__fpending.h".
23980         (close_stdout_status): Return right away if there's nothing to flush.
23981
23982         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
23983         * lib/__fpending.c: New file.
23984         * lib/__fpending.h: New file.
23985
23986 2000-08-20  Jim Meyering  <meyering@lucent.com>
23987
23988         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
23989         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
23990         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
23991
23992 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
23993
23994         Improve fileutils installation on systems where running
23995         programs (like install) can't be unlinked.
23996         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
23997         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
23998
23999 2000-08-07  Paul Eggert  <eggert@twinsun.com>
24000
24001         Standardize on "memory exhausted" instead of "Memory exhausted"
24002         or "virtual memory exhausted".
24003         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
24004         "virtual memory exhausted".
24005         * lib/same.c (same_name): Invoke xalloc_die instead of printing
24006         our own message.
24007         * lib/userspec.c (parse_user_spec): Likewise.
24008         * lib/bumpalloc.h: comment fix
24009         * lib/same.c, userspec.c: Include xalloc.h.
24010
24011         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
24012         not char *const and pointing to a constant array.
24013         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
24014         (xrealloc): Comment fix.
24015
24016         * lib/userspec.c (parse_user_spec):
24017         Don't translate a message until just before returning,
24018         to avoid unnecessary translation.
24019
24020 2000-08-07  Jim Meyering  <meyering@lucent.com>
24021
24022         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
24023         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
24024         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
24025         getgroups.c, gethostname.c, getopt.h, group-member.c,
24026         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
24027         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
24028         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
24029         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
24030         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
24031         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
24032         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
24033         yesno.c: Back out Copyright date changes for each file with no change
24034         this year.  This eases coordination with other programs using the same
24035         source code modules.  From Paul Eggert.
24036
24037 2000-08-06  Paul Eggert  <eggert@twinsun.com>
24038
24039         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
24040         not char, for compatibility with glibc 2.1.3 strftime.c.
24041
24042 2000-08-03  Greg McGary  <greg@mcgary.org>
24043
24044         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
24045         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
24046         (EXTEND_BUFFER): Use them.
24047
24048 2000-08-01  Jim Meyering  <meyering@lucent.com>
24049
24050         * lib/dirname.c (ISSLASH): Define.
24051         (BACKSLASH_IS_PATH_SEPARATOR): Define.
24052         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
24053         both `\' and `/' may be use as path separators.
24054         Based on a patch from Prashant TR.
24055
24056 2000-07-31  Paul Eggert  <eggert@twinsun.com>
24057
24058         * lib/quotearg.c (quotearg_n_options): Don't make the initial
24059         slot vector a constant, since it might get modified.
24060
24061 2000-07-31  Jim Meyering  <meyering@lucent.com>
24062
24063         * lib/xmalloc.c: Use `virtual memory exhausted', not
24064         `Memory exhausted'.
24065         * lib/obstack.c (print_and_abort): Likewise.
24066
24067 2000-07-30  Paul Eggert  <eggert@twinsun.com>
24068
24069         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
24070         buffer, so that the caller can always quote one small
24071         component of a "memory exhausted" message in slot 0.
24072         From a suggestion by Jim Meyering.
24073
24074 2000-07-30  Jim Meyering  <meyering@lucent.com>
24075
24076         * lib/makepath.c (make_path): Quote the other instance, too.
24077
24078         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
24079         (STATIC_BUF_SIZE): Define.
24080         (quotearg_n_options): Use only statically allocated storage when
24081         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
24082         than STATIC_BUF_SIZE.
24083
24084 2000-07-29  Jim Meyering  <meyering@lucent.com>
24085
24086         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
24087         * lib/dirname.c (dir_name): Likewise.
24088
24089         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
24090         `/'.
24091
24092         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
24093         (dir_name): Assert that there are no trailing slashes.
24094
24095 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
24096
24097         * lib/mbswidth.h (mbswidth): Add a flags argument.
24098         (mbswidth): New declaration.
24099         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
24100         * lib/mbswidth.c (mbswidth): Add a flags argument.
24101         (mbsnwidth): New function.
24102
24103 2000-07-24  Jim Meyering  <meyering@lucent.com>
24104
24105         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
24106
24107 2000-07-23  Paul Eggert  <eggert@twinsun.com>
24108
24109         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
24110
24111 2000-07-23  Paul Eggert  <eggert@twinsun.com>
24112
24113         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
24114         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
24115         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
24116         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
24117         invoke multibyte primitives.
24118
24119 2000-07-23  Paul Eggert  <eggert@twinsun.com>
24120
24121         * lib/quotearg.c:
24122         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
24123         so that mbstate_t is always defined.
24124
24125         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
24126         be 1 in at least one GCC installation, and this configuration
24127         error is likely to be common.  Ignoring MB_LEN_MAX hurts
24128         performance on hosts that have mbrtowc but have only unibyte
24129         locales, but I assume these hosts are rare.
24130
24131 2000-07-23  Paul Eggert  <eggert@twinsun.com>
24132
24133         * lib/mbswidth.c (_XOPEN_SOURCE):
24134         Don't define; this causes problems on Solaris 7.
24135         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
24136
24137 2000-07-23  Jim Meyering  <meyering@lucent.com>
24138
24139         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
24140         too: getgrgid, getpwuid, getuid.
24141
24142 2000-07-23  Jim Meyering  <meyering@lucent.com>
24143
24144         * lib/basename.c (base_name): Add an assertion.
24145
24146 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
24147
24148         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
24149         shadow its mbsinit function.
24150
24151 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
24152
24153         * lib/mbswidth.h: New file.
24154         * lib/mbswidth.c: New file.
24155         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
24156         (noinst_HEADERS): Add mbswidth.h.
24157
24158 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
24159
24160         * lib/config.charset: Add support for FreeBSD. Improve support for
24161         HP-UX and IRIX 6.
24162
24163 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
24164
24165         * m4/mbswidth.m4: New file.
24166         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
24167
24168 2000-07-15  Jim Meyering  <meyering@lucent.com>
24169
24170         * lib/makepath.c: Include quote.h.
24171         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
24172         corresponding argument in a `quote (...)' call.
24173         Give better diagnostics.
24174
24175         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
24176         (noinst_HEADERS): Add quote.h.
24177
24178         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
24179         from tar's src/misc.c.
24180         * lib/quote.h: New file.  Prototypes for same.
24181
24182 2000-07-14  Paul Eggert  <eggert@twinsun.com>
24183
24184         From a suggestion by Bruno Haible.
24185         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
24186         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
24187         to decide whether to define the BeOS workaround macro;
24188         this adjusts to the change to AC_MBSTATE_T.
24189
24190 2000-07-14  Jim Meyering  <meyering@lucent.com>
24191
24192         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
24193         jm_AC_TYPE_UINTMAX_T.
24194
24195 2000-07-13  Paul Eggert  <eggert@twinsun.com>
24196
24197         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
24198
24199         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
24200         quotearg_buffer_restyled): Add support for
24201         clocale_quoting_style.  Undo previous change to
24202         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
24203         and "{RIGHT QUOTATION MARK}" msgids.
24204
24205 2000-07-10  Paul Eggert  <eggert@twinsun.com>
24206
24207         From a suggestion by Bruno Haible.
24208         * m4/mbstate_t.m4 (AC_MBSTATE_T):
24209         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
24210         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
24211         and mbstate_t, to a single-part test that simply defines mbstate_t.
24212         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
24213         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
24214
24215 2000-07-10  Jim Meyering  <meyering@lucent.com>
24216
24217         * m4/strerror_r.m4: Mirror the correction made in autoconf.
24218
24219         * m4/gnu-source.m4: Output to confdefs.h directly.
24220         Suggestion from Akim Demaille.
24221
24222 2000-07-09  Paul Eggert  <eggert@twinsun.com>
24223
24224         The old behavior of quoting `like this' doesn't look good with
24225         newer, ISO-style fonts.  See:
24226         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
24227
24228         Instead, quote "like this" by default.  Let the translator
24229         tailor the locale-specific quoting behavior by providing
24230         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
24231
24232         * lib/quotearg.c (N_): New macro.
24233         (gettext_default): New function.
24234         (quotearg_buffer_restyled): Use
24235         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
24236         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
24237
24238 2000-07-09  Jim Meyering  <meyering@lucent.com>
24239
24240         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
24241         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
24242
24243         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
24244         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
24245
24246 2000-07-09  Jim Meyering  <meyering@lucent.com>
24247
24248         * lib/Most files: Update copyright dates to include 2000.
24249
24250 2000-07-08  Jim Meyering  <meyering@lucent.com>
24251
24252         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
24253         if not defined.
24254         (xgethostname): Remove now-unnecessary #ifdef.
24255         Move declaration of `err' into loop where it's used.
24256
24257 2000-07-05  Paul Eggert  <eggert@twinsun.com>
24258         and Bruno Haible  <haible@clisp.cons.org>
24259
24260         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
24261         only if the test for an object-type mbstate_t fails.  This
24262         prevents us from mistakenly reporting that mbstate_t is a
24263         system object type after we "#define mbstate_t int" to work
24264         around its lack.
24265
24266 2000-07-05  Paul Eggert  <eggert@twinsun.com>
24267         and Bruno Haible  <haible@clisp.cons.org>
24268
24269         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
24270
24271 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
24272
24273         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
24274         to strerror_r.
24275         Include <ctype.h> for use of isalpha.
24276
24277 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
24278
24279         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
24280         by allocating a larger buffer. Test the gethostname return value for
24281         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
24282         returns an error and ENAMETOOLONG isn't defined.
24283
24284 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
24285
24286         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
24287         dimension.
24288
24289 2000-07-04  Jim Meyering  <meyering@lucent.com>
24290
24291         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
24292         of the deprecated AC_CHECKING.
24293
24294 2000-07-04  Jim Meyering  <meyering@lucent.com>
24295
24296         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
24297         Reported by Bruno Haible.
24298
24299 2000-07-04  Jim Meyering  <meyering@lucent.com>
24300
24301         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
24302         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
24303         lacks mbrtowc.
24304
24305 2000-07-03  Paul Eggert  <eggert@twinsun.com>
24306
24307         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
24308         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
24309
24310 2000-07-03  Paul Eggert  <eggert@twinsun.com>
24311         and Bruno Haible  <haible@clisp.cons.org>
24312
24313         * lib/quotearg.c (mbrtowc):
24314         Assign to *pwc, and return 1 only if result is nonzero.
24315         (iswprint): Use ISPRINT when substituting our own mbrtowc.
24316
24317 2000-07-03  Jim Meyering  <meyering@lucent.com>
24318
24319         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
24320
24321 2000-07-03  Jim Meyering  <meyering@lucent.com>
24322
24323         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
24324         This is necessary to get a definition of e.g., UTMP_FILE on
24325         HP-UX 10.20.
24326         From Bob Proulx.
24327
24328 2000-07-02  Jim Meyering  <meyering@lucent.com>
24329
24330         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
24331
24332         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
24333         AC_LIBOBJ(function_name).
24334         * m4/chown.m4: Likewise.
24335         * m4/fnmatch.m4: Likewise.
24336         * m4/ftruncate.m4: Likewise.
24337         * m4/getgroups.m4: Likewise.
24338         * m4/getline.m4: Likewise.
24339         * m4/group-member.m4: Likewise.
24340         * m4/jm-macros.m4: Likewise.
24341         * m4/lstat.m4: Likewise.
24342         * m4/malloc.m4: Likewise.
24343         * m4/memcmp.m4: Likewise.
24344         * m4/nanosleep.m4: Likewise.
24345         * m4/putenv.m4: Likewise.
24346         * m4/realloc.m4: Likewise.
24347         * m4/regex.m4: Likewise.
24348         * m4/stat.m4: Likewise.
24349         * m4/strftime.m4: Likewise.
24350
24351 2000-07-02  Jim Meyering  <meyering@lucent.com>
24352
24353         * lib/quotearg.c (mbstate_t): Don't define here.
24354
24355 2000-07-02  Jim Meyering  <meyering@lucent.com>
24356
24357         * lib/nanosleep.c (SIGCONT): Define if not already defined.
24358
24359 2000-07-01  Jim Meyering  <meyering@lucent.com>
24360
24361         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
24362
24363 2000-07-01  Jim Meyering  <meyering@lucent.com>
24364
24365         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
24366         problem.
24367
24368 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
24369
24370         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
24371         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
24372
24373 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
24374
24375         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
24376         per change in ../m4/ls-mntd-fs.m4.
24377         (read_filesystem_list): Ignore symbolic links.
24378
24379 2000-06-29  Jim Meyering  <meyering@lucent.com>
24380
24381         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
24382         for declaration of strcmp.
24383
24384         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
24385
24386         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
24387         Avoid warning by casting result to `char *' to remove `const'.
24388
24389 2000-06-28  Jim Meyering  <meyering@lucent.com>
24390
24391         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
24392         included by quotearg.c, for which we perform this test.  From
24393         Bruno Haible.
24394
24395 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
24396
24397         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
24398         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
24399         <utmpx.h> exists, put readutmp.o into LIBOBJS.
24400
24401 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
24402
24403         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
24404
24405 2000-06-26  Paul Eggert  <eggert@twinsun.com>
24406
24407         savedir now sets errno on failure and invokes xmalloc to get memory.
24408         Fix a couple of other minor bugs while we're at it.
24409
24410         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
24411         (NAMLEN): Remove macro.
24412         (malloc, realloc): Remove decls.
24413         (stpcpy): Likewise.
24414         ("xalloc.h"): Include.
24415         (NAME_SIZE_DEFAULT): New macro.
24416         (savedir): Use xmalloc / xrealloc to allocate memory.
24417         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
24418         Skip "" directory entries.
24419         Use strlen to calculate directory entry length, since the old method
24420         is rarely used these days and isn't worth supporting.
24421         Don't use a pointer after freeing it.
24422         Check for integer overflow when calculating allocation size.
24423         Use memcpy to copy entries, instead of stpcpy.
24424         Set errno properly when returning NULL.
24425         Check for readdir error.
24426
24427 2000-06-26  Jim Meyering  <meyering@lucent.com>
24428
24429         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
24430
24431 2000-06-25  Jim Meyering  <meyering@lucent.com>
24432
24433         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
24434         Linux header bug when _XOPEN_SOURCE is defined to 500.
24435
24436 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
24437
24438         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
24439         deficiency.
24440
24441 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
24442
24443         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
24444         Include xalloc.h.
24445         Don't include <stdlib.h>.  Don't declare malloc, realloc.
24446
24447 2000-06-24  Jim Meyering  <meyering@lucent.com>
24448
24449         * m4/strerror_r.m4: Revive this file -- to try out an experimental
24450         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
24451         for which strerror does return char*, but which lacks a conveniently
24452         accessible declaration of the function.  If the compile-test says
24453         strerror_r doesn't work, then resort to a `run'-test that works on
24454         BeOS and segfaults on DEC Unix.
24455
24456 2000-06-24  Jim Meyering  <meyering@lucent.com>
24457
24458         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
24459
24460 2000-06-23  Paul Eggert  <eggert@twinsun.com>
24461
24462         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
24463         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
24464
24465 2000-06-23  Paul Eggert  <eggert@twinsun.com>
24466
24467         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
24468         (mbrtowc, mbstate_t): Define substitutes if
24469         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
24470         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
24471         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
24472
24473 2000-06-23  Jim Meyering  <meyering@lucent.com>
24474
24475         * m4/afs.m4: Add missing AC_MSG_RESULT.
24476         Reported by Bruno Haible.
24477
24478         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
24479         Suggestion from Bruno Haible.
24480
24481 2000-06-23  Jim Meyering  <meyering@lucent.com>
24482
24483         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
24484
24485 2000-06-21  Jim Meyering  <meyering@lucent.com>
24486
24487         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
24488
24489 2000-06-21  Jim Meyering  <meyering@lucent.com>
24490
24491         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
24492         (noinst_HEADERS): Add getstr.h.
24493
24494         * lib/getline.c (getstr): Move into a separate file.
24495         * lib/getstr.c (getstr): New file, extracted from getline.c, with
24496         the following changes: new parameter, delim2; both delim[12]
24497         parameters have type `int', not `char'.  The latter would lose
24498         with 8-bit delimiters.
24499         * lib/getstr.h: New file.
24500
24501 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
24502
24503         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
24504         than 1024, return a memory chunk of least possible size, instead
24505         of size PATH_MAX + 2. In the loop, increment the size proportionally.
24506         Use free/xmalloc instead of xrealloc to avoid copying for very long
24507         paths.
24508
24509 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
24510
24511         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
24512         the empty string.
24513
24514 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
24515
24516         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
24517         address, not strdup.  Include <stdlib.h> and don't declare free().
24518
24519 2000-06-19  Jim Meyering  <meyering@lucent.com>
24520
24521         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
24522
24523 2000-06-18  Jim Meyering  <meyering@lucent.com>
24524
24525         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
24526
24527         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
24528         `checking whether...' message to be consistent with that of the
24529         lstat test.
24530
24531 2000-06-18  Jim Meyering  <meyering@lucent.com>
24532
24533         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
24534         Besides, these days every porting target provides a mkdir function.
24535
24536         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
24537         needed. (this snippet comes from src/system.h).
24538
24539 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
24540
24541         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
24542
24543 2000-06-15  Paul Eggert  <eggert@twinsun.com>
24544
24545         * lib/human.c (adjust_value): New function.
24546         (human_readable_inexact): Apply rounding style even when
24547         printing approximate values.
24548
24549 2000-06-14  Paul Eggert  <eggert@twinsun.com>
24550
24551         * lib/human.c (human_readable_inexact): Allow an input block
24552         size that is not a multiple of the output block size, and vice versa.
24553         Reported by Piergiorgio Sartor.
24554
24555 2000-06-14  Paul Eggert  <eggert@twinsun.com>
24556
24557         * lib/getdate.y (get_date): Apply relative times after time
24558         zone indicator, not before.  Reported by Todd A. Jacobs.
24559
24560 2000-06-13  Jim Meyering  <meyering@lucent.com>
24561
24562         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
24563
24564         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
24565
24566 2000-06-12  Paul Eggert  <eggert@twinsun.com>
24567
24568         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
24569
24570 2000-06-12  Jim Meyering  <meyering@lucent.com>
24571
24572         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
24573         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
24574         optional argument.
24575         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
24576         the optional argument, `lib'.
24577
24578 2000-06-08  Jim Meyering  <meyering@lucent.com>
24579
24580         * m4/largefile.m4: Remove file (now that it's part of autoconf).
24581
24582 2000-06-04  Paul Eggert  <eggert@twinsun.com>
24583
24584         Rewrite largefile configuration so that we don't need to run
24585         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
24586         AC_CANONICAL_HOST in configure.in -- jmm]
24587
24588         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
24589         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
24590         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
24591         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
24592         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
24593         All uses changed.
24594         Instead of inspecting the output of getconf, try to compile the
24595         test program without and with the macro definition.
24596         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
24597         for getconf.  Instead, check for the needed flags by compiling
24598         test programs.
24599
24600 2000-06-04  Paul Eggert  <eggert@twinsun.com>
24601
24602         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
24603
24604 2000-06-04  Jim Meyering  <meyering@lucent.com>
24605
24606         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
24607         SunOS 4.1.4 for which gid_t is an unsigned type.
24608
24609 2000-06-03  Jim Meyering  <meyering@lucent.com>
24610
24611         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
24612         now that autoconf requires that.
24613
24614         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
24615         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
24616         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
24617
24618 2000-06-03  Jim Meyering  <meyering@lucent.com>
24619
24620         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
24621
24622 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
24623
24624         * m4/glibc21.m4: New file.
24625         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
24626
24627 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
24628
24629         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
24630         newer, don't install charset.alias.
24631         * lib/config.charset: Change the Linux/glibc rules so they become empty
24632         on glibc-2.1 or newer.
24633
24634 2000-06-02  Jim Meyering  <meyering@lucent.com>
24635
24636         * lib/mountlist.c: Back out last change.  Instead, do this...
24637         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
24638         me_dummy member using the same `ignore'-testing code.
24639         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
24640         fs_type strings.
24641         From Mark D. Roth.
24642
24643 2000-05-29  Jim Meyering  <meyering@lucent.com>
24644
24645         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
24646         mounts with the `ignore' attribute.  Based on a patch from
24647         Mark D. Roth.
24648
24649 2000-05-28  Jim Meyering  <meyering@lucent.com>
24650
24651         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
24652         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
24653         * m4/stat.m4: Likewise.
24654         * m4/lstat.m4: Likewise.
24655         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
24656
24657         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
24658         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
24659
24660 2000-05-26  Jim Meyering  <meyering@lucent.com>
24661
24662         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
24663
24664 2000-05-24  Jim Meyering  <meyering@lucent.com>
24665
24666         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
24667         autoconf requires that.
24668         * m4/lib-check.m4: Likewise.
24669         * m4/jm-macros.m4: Likewise.
24670         * m4/strftime.m4: Likewise.
24671
24672         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
24673         AC_CHECK_DECLS, now that autoconf requires that.
24674
24675 2000-05-22  Jim Meyering  <meyering@lucent.com>
24676
24677         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
24678         * m4/lstat.m4: Likewise.
24679
24680 2000-05-22  Jim Meyering  <meyering@lucent.com>
24681
24682         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
24683
24684 2000-05-20  Jim Meyering  <meyering@lucent.com>
24685
24686         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
24687         (jm_PREREQ): Use it.
24688
24689 2000-05-18  Jim Meyering  <meyering@lucent.com>
24690
24691         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
24692         back, too, since it may have been modified by allocate_entry.
24693         (hash_delete): Rewrite to use neither the assignment operator
24694         nor the comma operator in an if-expression.
24695
24696 2000-05-15  Paul Eggert  <eggert@twinsun.com>
24697
24698         * lib/closeout.c:
24699         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
24700         Remove; no longer needed.
24701         "quotearg.h": Add include.
24702         (file_name): Do not bother to explicitly initialize to NULL; it's less
24703         efficient on some hosts.
24704         (close_stdout_status): Remove test as to whether stdout was already
24705         closed; it breaks for the case "echo x | sort >&-".
24706         Quote file name colons.
24707         Do not assume that _("write error") lacks format strings.
24708
24709 2000-05-15  Jim Meyering  <meyering@lucent.com>
24710
24711         * lib/version-etc.c (version_etc_copyright): Update the copyright
24712         string used in all --version output.
24713
24714 2000-05-14  Jim Meyering  <meyering@lucent.com>
24715
24716         * lib/closeout.c (close_stdout_set_file_name): New function.
24717         (close_stdout_status): Use new file-scoped global.
24718         Return right away if fstat says the stdout file descriptor is invalid.
24719         * lib/closeout.h (close_stdout_set_file_name): Declare.
24720
24721 2000-05-10  Jim Meyering  <meyering@lucent.com>
24722
24723         * lib/closeout.c [default_exit_status]: New file-scoped variable.
24724         (close_stdout_set_status): New function.
24725         * lib/closeout.h (close_stdout_set_status): Declare.
24726
24727 2000-05-09  Jim Meyering  <meyering@lucent.com>
24728
24729         * m4/gettext.m4: Rename this...
24730         * m4/libintl.m4: ...to this.
24731
24732 2000-05-08  Jim Meyering  <meyering@lucent.com>
24733
24734         * lib/long-options.c: Don't include closeout.h.
24735         (parse_long_options): Don't call close_stdout for --version.
24736
24737 2000-05-06  Paul Eggert  <eggert@twinsun.com>
24738
24739         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
24740         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
24741         2.1.3 bug.  This avoids a clash when files like regex.c define
24742         _GNU_SOURCE.
24743
24744 2000-05-06  Jim Meyering  <meyering@lucent.com>
24745
24746         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
24747         (AC_REPLACE_FUNCS): Add strnlen.
24748
24749         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
24750         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
24751
24752         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
24753         AC_SEARCH_LIBS call for nanosleep.
24754         (LIB_NANOSLEEP): Set and AC_SUBST.
24755
24756 2000-05-06  Jim Meyering  <meyering@lucent.com>
24757
24758         * lib/strnlen.c: Undefine __strnlen and strnlen.
24759         [!weak_alias]: Define __strnlen to strnlen.
24760
24761         * lib/atexit.c: New file, from libiberty.
24762
24763 2000-05-06  Jim Meyering  <meyering@lucent.com>
24764
24765         * lib/closeout.c (close_stdout_status): Also check for errors on the
24766         stderr stream.
24767
24768 2000-05-05  Jim Meyering  <meyering@lucent.com>
24769
24770         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
24771         AC_SEARCH_LIBS call for clock_gettime.
24772         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
24773
24774         * m4/search-libs.m4: Update from autoconf.
24775
24776         su doesn't work on Solaris 2.6.
24777         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
24778         <shadow.h>.  Reported by Dragos Harabor.
24779
24780 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
24781
24782         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
24783         memcpy instead of xmalloc, xrealloc, path_concat.
24784         (locale_charset): Treat empty environment variables as absent.
24785         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
24786
24787 2000-05-04  Jim Meyering  <meyering@lucent.com>
24788
24789         * lib/getopt.c: Update from glibc.
24790         * lib/obstack.c: Likewise.
24791         * lib/obstack.h: Likewise.
24792         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
24793         file
24794
24795         * lib/regex.h: Likewise.
24796         * lib/strndup.c: Likewise.
24797         * lib/strnlen.c: New file, from glibc.
24798
24799 2000-05-03  Jim Meyering  <meyering@lucent.com>
24800
24801         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
24802
24803 2000-05-02  Paul Eggert  <eggert@twinsun.com>
24804
24805         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
24806         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
24807         compile-time test, rather than inspecting host and OS, to
24808         decide whether to define _LARGEFILE_SOURCE.
24809
24810 2000-05-01  Jim Meyering  <meyering@lucent.com>
24811
24812         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
24813
24814         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
24815         Based on a patch from Bruno Haible.
24816
24817 2000-05-01  Jim Meyering  <meyering@lucent.com>
24818
24819         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
24820
24821 2000-04-29  Jim Meyering  <meyering@lucent.com>
24822
24823         * lib/path-concat.c: Declare strdup only if it's not defined.
24824         * lib/canon-host.c: Likewise.
24825
24826 2000-04-28  Jim Meyering  <meyering@lucent.com>
24827
24828         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
24829         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
24830         is included first, then limits.h is included by locale.h by libintl.h.
24831         From John David Anglin.
24832
24833 2000-04-25  Jim Meyering  <meyering@lucent.com>
24834
24835         * lib/makepath.c (S_IRWXUGO): Define.
24836         (make_path): Always perform explicit chmod if MODE specifies any
24837         of the `special' permission bits.  Prompted by a bug report against
24838         install from Mate Wierdl and Joost van Baal.
24839
24840 2000-04-18  Jim Meyering  <meyering@lucent.com>
24841
24842         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
24843         (jm_PREREQ): Use it.
24844
24845 2000-04-18  Jim Meyering  <meyering@lucent.com>
24846
24847         * lib/README: New file.
24848
24849         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
24850         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
24851
24852 2000-04-17  Jim Meyering  <meyering@lucent.com>
24853
24854         Get it right :-)
24855         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
24856         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
24857         Suggestion from Akim Demaille.
24858
24859 2000-04-17  Jim Meyering  <meyering@lucent.com>
24860
24861         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
24862         the definition of it to rpl_strftime also defined-away the system's
24863         declaration.
24864
24865 2000-04-15  Jim Meyering  <meyering@lucent.com>
24866
24867         Use `C' to denote so-called `contiguous' files, the same way
24868         that tar does.
24869         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
24870         (ftypelet): Use S_ISCTG.
24871         From Michael Deutschmann.
24872
24873 2000-04-14  Jim Meyering  <meyering@lucent.com>
24874
24875         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
24876         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
24877         clobbered.
24878
24879 2000-04-14  Jim Meyering  <meyering@lucent.com>
24880
24881         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
24882
24883 2000-04-13  Jim Meyering  <meyering@lucent.com>
24884
24885         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
24886         AH_VERBATIM to insert required #ifndef into config.h.in.
24887         Suggestion from Akim Demaille.
24888
24889 2000-04-12  Jim Meyering  <meyering@lucent.com>
24890
24891         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
24892         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
24893         Christian Krackowizer.
24894
24895         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
24896         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
24897         (AC_SYS_LARGEFILE): Require.
24898         (AM_C_PROTOTYPES): Require.
24899
24900 2000-04-08  Jim Meyering  <meyering@lucent.com>
24901
24902         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
24903         names don't conflict.  Reported by Eli Zaretskii.
24904
24905 2000-04-07  Jim Meyering  <meyering@lucent.com>
24906
24907         * lib/putenv.c: Move inclusion of errno.h so it follows that of
24908         sys/types.h, to work around system header problems on AIX 3.2.5.
24909         From Bruno Haible.
24910
24911 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
24912
24913         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
24914         bug.  Deal with the different error behavior of Irix iconv.
24915
24916 2000-04-05  Paul Eggert  <eggert@twinsun.com>
24917
24918         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
24919         IRIX if the installer said otherwise.
24920
24921 2000-04-05  Jim Meyering  <meyering@lucent.com>
24922
24923         Portability tweaks required for ultrix4.3.
24924         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
24925         (jm_CHECK_DECLS): Add getutent to the list of functions.
24926         (_jm_DECL_HEADERS): Add utmpx.h.
24927         From John David Anglin.
24928
24929         * m4/strftime.m4: Back out the 2000-04-02 change.
24930         Instead of that change, simply undefine putenv in the test program.
24931
24932 2000-04-05  Jim Meyering  <meyering@lucent.com>
24933
24934         Portability tweaks required for ultrix4.3.
24935         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
24936         getutent.
24937         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
24938         * lib/canon-host.c: Declare strdup.
24939         * lib/path-concat.c: Likewise.
24940         From John David Anglin.
24941
24942 2000-04-04  Jim Meyering  <meyering@lucent.com>
24943
24944         Be more DOS 8.3-friendly.
24945         * lib/ref-add.sin: Renamed from ref-add.sed.in.
24946         * lib/ref-del.sin: Renamed from ref-del.sed.in.
24947         * lib/Makefile.am: Reflect renaming.
24948         Reported by Eli Zaretskii.
24949
24950         Use a temporary file name that won't clash with `charset.alias'
24951         in the DOS 8.3 name space.
24952         * lib/Makefile.am (charset_tmp): Define.
24953         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
24954         (uninstall-local): Likewise.
24955         Reported by Eli Zaretskii.
24956
24957 2000-04-03  Jim Meyering  <meyering@lucent.com>
24958
24959         * m4/gettext.m4: Fix typo in comment.
24960
24961         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
24962         textutils/configure.in).  Suggestion from Paul Eggert.
24963         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
24964
24965 2000-04-02  Paul Eggert  <eggert@twinsun.com>
24966
24967         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
24968         variable in the shell rather than using putenv, which isn't
24969         portable.  This avoids the configure-time inter-test dependency
24970         on the potentially-renamed putenv function.
24971
24972 2000-03-30  Paul Eggert  <eggert@twinsun.com>
24973
24974         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
24975         before checking struct stat.st_blksize, so that
24976         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
24977
24978 2000-03-29  Paul Eggert  <eggert@twinsun.com>
24979
24980         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
24981         since strftime.c uses HAVE_STRFTIME to decide whether to use
24982         the underlying strftime.
24983
24984 2000-03-29  Paul Eggert  <eggert@twinsun.com>
24985
24986         * lib/time/strftime.c (my_strftime): Make sure we call the system
24987         strftime, not ourselves, when invoking the underlying strftime.
24988
24989 2000-03-24  Jim Meyering  <meyering@lucent.com>
24990
24991         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
24992         (charset_alias): Define.
24993         (install-exec-local): Factor out common code.
24994         (uninstall-local): Split lines longer than 80.
24995         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
24996         (SUFFIXES): Define.
24997         (.sed.in.sed): New rule.  Don't redirect directly to $@.
24998         (CLEANFILES): Add ref-add.sed and ref-del.sed.
24999
25000 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
25001
25002         * lib/config.charset: Output a line containing "Packages using this
25003         file".
25004         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
25005         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
25006         ref-del.sed): New rules.
25007
25008 2000-03-17  Jim Meyering  <meyering@lucent.com>
25009
25010         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
25011         Otherwise, include <strings.h>
25012
25013 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
25014
25015         * lib/unicodeio.c (utf8_wctomb): New function.
25016         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
25017         format instead of in UCS-4 with platform dependent endianness.
25018
25019 2000-03-10  Jim Meyering  <meyering@lucent.com>
25020
25021         * m4/lib-check.m4: Look for getspnam in -lgen, too.
25022         From Marco Franzen.
25023
25024 2000-03-07  Paul Eggert  <eggert@twinsun.com>
25025
25026         * lib/savedir.c (savedir): Work even if directory size is
25027         negative; this can happen with some screwy NFS configurations.
25028
25029 2000-03-06  Jim Meyering  <meyering@lucent.com>
25030
25031         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
25032         if it's NULL (because we ran out of memory).  From Bruno Haible.
25033
25034 2000-03-05  Jim Meyering  <meyering@lucent.com>
25035
25036         * lib/localcharset.c ("path-concat.h"): Include.
25037         (get_charset_aliases): Use path_concat instead of ANSI string
25038         concatenation.
25039
25040         * lib/unicodeio.h (PARAMS): Define.
25041         Use it to guard prototype.
25042
25043 2000-03-04  Jim Meyering  <meyering@lucent.com>
25044
25045         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
25046         for lib/localcharset.c.
25047
25048 2000-03-04  Jim Meyering  <meyering@lucent.com>
25049
25050         * lib/Makefile.am (install-exec-local): Create $(libdir) before
25051         installing into it.
25052         (uninstall-local): Uncomment this rule so `make distcheck' works
25053         once again.
25054
25055         * lib/unicodeio.c (<errno.h>): Include it.
25056         (errno): Declare if not defined.
25057
25058         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
25059
25060         * lib/config.charset: New version, incorporating remarks from a linux
25061         i18n mailing list.  From Bruno Haible.
25062
25063 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
25064
25065         * m4/codeset.m4: New file.
25066         * m4/iconv.m4: New file.
25067         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
25068
25069 2000-03-03  Jim Meyering  <meyering@lucent.com>
25070
25071         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
25072
25073 2000-03-02  Jim Meyering  <meyering@lucent.com>
25074
25075         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
25076         the messages come out on separate lines.
25077
25078         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
25079         rather than jm_CHECK_DECLARATIONS.
25080         * m4/decl.m4: Remove now-unused file.
25081
25082         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
25083         geteuid.
25084
25085 2000-03-02  Jim Meyering  <meyering@lucent.com>
25086
25087         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
25088
25089 2000-03-01  Jim Meyering  <meyering@lucent.com>
25090
25091         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
25092         * lib/unicodeio.c: Likewise.
25093
25094 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
25095
25096         * lib/config.charset: New file.
25097         * lib/localcharset.c: New file.
25098         * lib/unicodeio.h, lib/unicodeio.c: New files.
25099         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
25100         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
25101         (noinst_HEADERS): Add unicodeio.h.
25102         (all-local, install-exec-local, charset.alias): New targets.
25103
25104 2000-02-28  Paul Eggert  <eggert@twinsun.com>
25105
25106         * lib/quotearg.c (ALERT_CHAR): New macro.
25107         (quotearg_buffer_restyled): Use it.
25108
25109 2000-02-27  Jim Meyering  <meyering@lucent.com>
25110
25111         * m4/check-decl.m4: Add getenv to the list.
25112
25113 2000-02-27  Jim Meyering  <meyering@lucent.com>
25114
25115         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
25116         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
25117
25118         * lib/backupfile.c: Guard inclusion of stdlib.h with
25119         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
25120         Declare malloc if needed.
25121
25122         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
25123         `#ifndef HAVE_DECL..'
25124         now that autoconf always defines the HAVE_DECL_ symbols.
25125         * lib/human.c: Likewise.
25126         * lib/same.c: Likewise.
25127         * lib/strtoumax.c: Likewise.
25128
25129         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
25130         declaration check was not run.
25131         * lib/hash.c: Likewise.
25132         * lib/human.c: Likewise.
25133         * lib/same.c: Likewise.
25134         * lib/strtoumax.c: Likewise.
25135
25136         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
25137         `.', then first look up the entire `.'-containing string as a login
25138         name.
25139
25140 2000-02-23  Jim Meyering  <meyering@lucent.com>
25141
25142         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
25143         in place of my hack.
25144
25145 2000-02-18  Paul Eggert  <eggert@twinsun.com>
25146
25147         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
25148         (textint): New typedef.
25149         (parser_control): Member year changed from int to textint.
25150         All uses changed.
25151         (YYSTYPE): Removed; replaced by %union with int and textint members.
25152         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
25153         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
25154         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
25155         (tSNUMBER, tUNUMBER): Now of type <textintval>.
25156         (date, number, to_year): Use width of number in digits, not its value,
25157         to determine whether it's a 2-digit year, or a 2-digit time.
25158         (yylex): Store number of digits of numeric tokens.
25159         Reported by John Kendall.
25160
25161         (parser_control): Changed from struct parser_control to typedef (for
25162         consistency).  All uses changed.
25163
25164         (tID): Removed; not used.
25165         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
25166
25167 2000-02-14  Paul Eggert  <eggert@twinsun.com>
25168
25169         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
25170         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
25171
25172 2000-02-12  Jim Meyering  <meyering@lucent.com>
25173
25174         * lib/userspec.c (ISDIGIT): Define it.
25175         (isdigit): Remove definition.
25176         (is_number): Use ISDIGIT, not isdigit.
25177         <libintl.h>: Include.
25178         (_ and N_): Define.
25179         (parse_user_spec): Mark translatable strings.
25180
25181 2000-02-10  Jim Meyering  <meyering@lucent.com>
25182
25183         With these changes, nanosleep.[ch] are finally enough like the other
25184         lib/* replacement files to compile on a few more losing systems.
25185
25186         * lib/nanosleep.h: Don't include config.h.
25187         Remove prototype from declaration of nanosleep.
25188         (PARAMS): Remove now-unneeded definition.
25189         * lib/nanosleep.c: #undef nanosleep.
25190         (rpl_nanosleep): Rename from nanosleep.
25191
25192 2000-02-10  Jim Meyering  <meyering@lucent.com>
25193
25194         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
25195         gnu_nanosleep to rpl_nanosleep.
25196
25197 2000-02-09  Jim Meyering  <meyering@lucent.com>
25198
25199         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
25200         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
25201
25202 2000-02-08  Akim Demaille  <akim@epita.fr>
25203
25204         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
25205         `[' and `]' and remove uses of `changequote'.
25206         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
25207         (AC_SYS_LARGEFILE): Likewise.
25208         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
25209         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
25210         of changequote.
25211         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
25212         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
25213         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
25214         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
25215
25216 2000-02-05  Jim Meyering  <meyering@lucent.com>
25217
25218         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
25219         Remove explicit use of AC_HEADER_TIME.  It is required by
25220         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
25221         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
25222         in autoconf whereby the expansion of the latter ended up preceding
25223         the expansion of its prerequisite, AC_HEADER_TIME.
25224         Reported by Volker Borchert.
25225
25226 2000-02-03  Jim Meyering  <meyering@lucent.com>
25227
25228         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
25229
25230 2000-02-03  Jim Meyering  <meyering@lucent.com>
25231
25232         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
25233         rather than with `#if HAVE_UTMPNAME'.
25234
25235 2000-02-02  Jim Meyering  <meyering@lucent.com>
25236
25237         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
25238         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
25239         Reported by Eli Zaretskii.
25240
25241 2000-02-01  Jim Meyering  <meyering@lucent.com>
25242
25243         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
25244
25245 2000-01-31  Jim Meyering  <meyering@lucent.com>
25246
25247         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
25248         functions.  Add the time.h and sys/time.h headers along with the
25249         AC_REQUIRE'ment of AC_HEADER_TIME.
25250
25251 2000-01-31  Jim Meyering  <meyering@lucent.com>
25252
25253         * lib/nanosleep.h (nanosleep): Guard declaration with
25254         `#if ! HAVE_DECL_NANOSLEEP'.
25255         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
25256         the declaration in that vendor's sys/timers.h.
25257         Reported by Christian Krackowizer.
25258
25259         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
25260         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
25261         (ISPRINT): Likewise.
25262         Reported by Tom Tromey.
25263
25264 2000-01-30  Jim Meyering  <meyering@lucent.com>
25265
25266         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
25267
25268         * m4/prereq.m4 (utmp_includes): Define.
25269         Check for ut_user and ut_name members in both struct utmpx
25270         and struct utmp.
25271
25272 2000-01-30  Jim Meyering  <meyering@lucent.com>
25273
25274         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
25275         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
25276         header files where only utmpx.ut_user is declared.
25277
25278         * lib/readutmp.h (UT_USER): Define.
25279
25280 2000-01-29  Jim Meyering  <meyering@lucent.com>
25281
25282         * m4/lib-check.m4: New file containing library-related checks from
25283         fileutils and sh-utils (textutils had none).
25284
25285 2000-01-28  Jim Meyering  <meyering@lucent.com>
25286
25287         * m4/perl.m4: Change format of warning message to look more like that
25288         from the missing script.  Suggestion from François Pinard.
25289
25290 2000-01-25  Jim Meyering  <meyering@lucent.com>
25291
25292         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
25293         well as time.h in the compile check.
25294         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
25295         Fix typo in cross-compiling case: s/yes/no/.
25296
25297 2000-01-23  Jim Meyering  <meyering@lucent.com>
25298
25299         * m4/jm-macros.m4: Move df-related tests here from
25300         fileutils/configure.in
25301
25302         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
25303         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
25304
25305         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
25306         s/space/ac_fsusage_space/.
25307         (jm_FILE_SYSTEM_USAGE): Take two parameters.
25308
25309         * m4/ftruncate.m4: New file (derived from part of
25310         fileutils/configure.in).
25311         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
25312         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
25313
25314         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
25315         AC_SUBST these here, rather than just in sh-util/configure.in, so
25316         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
25317         all the same.
25318         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
25319         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
25320         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
25321         (AC_SUBST(POW_LIBM)): Likewise.
25322         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
25323
25324 2000-01-23  Jim Meyering  <meyering@lucent.com>
25325
25326         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
25327         obstack.c.
25328
25329 2000-01-22  Jim Meyering  <meyering@lucent.com>
25330
25331         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
25332
25333         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
25334
25335         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
25336         configure.in
25337         (AC_CHECK_HEADERS): Likewise for sh-utils.
25338         (AC_CHECK_HEADERS): Likewise for textutils.
25339         Merge the three lists of headers.
25340
25341         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
25342         from fileutils' configure.in.
25343
25344         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
25345         code. Moved tests into their own function (_jm_DECL_HEADERS) in
25346         check-decl.m4.
25347
25348         * m4/check-decl.m4: Use #if rather than #ifdef.
25349         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
25350         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
25351         (_jm_DECL_HEADERS): Define new function.
25352         (jm_CHECK_DECLARATIONS): Require it.
25353
25354 2000-01-22  Jim Meyering  <meyering@lucent.com>
25355
25356         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
25357         [! HAVE_DECL_STRTOULL]: Declare strtoull.
25358         Required for some AIX systems.  Reported by Christian Krackowizer.
25359         [TESTING] (main): New function.
25360
25361         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
25362         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
25363         letters.
25364
25365         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
25366         iswprint.
25367
25368         * lib/strverscmp.c (ISDIGIT): Define.
25369         (strverscmp): Use ISDIGIT, not isdigit.
25370
25371 2000-01-19  Jim Meyering  <meyering@lucent.com>
25372
25373         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
25374         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
25375         defines `struct timespec' in <sys/time.h>
25376
25377         * m4/c-bs-a.m4: Remove uses of changequote altogether.
25378         Thanks to Akim for explaining.
25379
25380 2000-01-17  Paul Eggert  <eggert@twinsun.com>
25381
25382         * lib/nanosleep.c (nanosleep):
25383         Don't use SA_INTERRUPT to decide whether to call sigaction, as
25384         POSIX.1 doesn't require SA_INTERRUPT and some systems
25385         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
25386         it's been part of POSIX.1 since day 1 (in 1988).
25387
25388 2000-01-17  Jim Meyering  <meyering@lucent.com>
25389
25390         * lib/interlock: Remove unused file.  Reported by François Pinard.
25391
25392 2000-01-16  Paul Eggert  <eggert@twinsun.com>
25393
25394         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
25395         alert, backslash, formfeed, and vertical tab unnecessarily in
25396         shell quoting style.
25397
25398 2000-01-16  Jim Meyering  <meyering@lucent.com>
25399
25400         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
25401         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
25402         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
25403         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
25404
25405 2000-01-16  Jim Meyering  <meyering@lucent.com>
25406
25407         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
25408         because the latter didn't work.
25409
25410 2000-01-15  Jim Meyering  <meyering@lucent.com>
25411
25412         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
25413         (AC_REPLACE_FUNCS): Add memcpy and memset.
25414         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
25415         Add strpbrk.
25416         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
25417
25418 2000-01-12  Jim Meyering  <meyering@lucent.com>
25419
25420         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
25421         (jm_PREREQ): Use it.
25422         (jm_PREREQ_READUTMP): New macro.
25423         (jm_PREREQ): Use it.
25424
25425 2000-01-11  Paul Eggert  <eggert@twinsun.com>
25426
25427         Quote multibyte characters correctly.
25428         * m4/c-bs-a.m4: New file.
25429         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
25430         (jm_PREREQ): Use it.
25431
25432 2000-01-11  Paul Eggert  <eggert@twinsun.com>
25433
25434         * m4/uintmax_t.m4: Port to autoconf 2.13.
25435
25436 2000-01-08  Jim Meyering  <meyering@ascend.com>
25437
25438         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
25439         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
25440
25441 2000-01-04  Jim Meyering  <meyering@ascend.com>
25442
25443         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
25444         jm_STRUCT_DIRENT_D_TYPE.
25445         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
25446         jm_STRUCT_DIRENT_D_INO.
25447         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
25448         jm_STRUCT_UTIMBUF.
25449         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
25450         renamings.
25451         * m4/utime.m4: Likewise.
25452
25453         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
25454         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
25455
25456 2000-01-03  Paul Eggert  <eggert@twinsun.com>
25457
25458         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
25459         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
25460
25461 2000-01-02  Jim Meyering  <meyering@ascend.com>
25462
25463         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
25464         remember if this is necessary.
25465
25466 1999-12-26  Jim Meyering  <meyering@ascend.com>
25467
25468         * m4/jm-macros.m4: Use it here.
25469         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
25470
25471 1999-12-23  Jim Meyering  <meyering@ascend.com>
25472
25473         * m4/jm-macros.m4: Check for clock_gettime (moved from
25474         fileutils/configure.in)
25475         Check for gettimeofday.
25476
25477 1999-12-20  Jim Meyering  <meyering@ascend.com>
25478
25479         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
25480         autoconf-2.14a-1999-12-20.
25481
25482 1999-12-19  Jim Meyering  <meyering@ascend.com>
25483
25484         * m4/lstat-slash.m4: New file.
25485         * m4/jm-macros.m4: Use the new macro:
25486         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
25487
25488 1999-12-07  Jim Meyering  <meyering@ascend.com>
25489
25490         * m4/perl.m4: Require that File::Compare be available, too.
25491         Too many systems seem to lack it.
25492
25493         * m4/strftime.m4: Add checks for most of the cpp macros tested in
25494         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
25495
25496 1999-11-18  Paul Eggert  <eggert@twinsun.com>
25497
25498         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
25499         problem with the QNX 4.25 shell, which doesn't propagate exit
25500         status of failed commands inside shell assignments.
25501
25502 1999-11-17  Jim Meyering  <meyering@ascend.com>
25503
25504         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
25505
25506 1999-11-07  Jim Meyering  <meyering@ascend.com>
25507
25508         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
25509
25510 1999-11-06  Jim Meyering  <meyering@ascend.com>
25511
25512         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
25513         * m4/jm-macros.m4 (jm_MACROS): Use it here.
25514
25515 1999-11-05  Jim Meyering  <meyering@ascend.com>
25516
25517         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
25518         configure.in of textutils, fileutils, and sh-utils into this one
25519         (shared between those packages) file.
25520         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
25521         AC_STRUCT_ST_BLKSIZE.
25522
25523 1999-11-03  Jim Meyering  <meyering@ascend.com>
25524
25525         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
25526         of AC_CHECK_TYPE checks includes unistd.h.
25527         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
25528         Suggestion from Akim Demaille.
25529
25530 1999-10-30  Jim Meyering  <meyering@ascend.com>
25531
25532         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
25533         m4-quoted string.
25534         * m4/ls-mntd-fs.m4: Likewise.
25535         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
25536         * m4/jm-winsz1.m4: Likewise.
25537
25538         * m4/const.m4: Remove file, since the fix made it into the experimental
25539         version of autoconf.
25540         * m4/mktime.m4: Likewise.
25541
25542         * m4/check-type.m4: Remove file, now that the latest version of
25543         AC_CHECK_TYPE takes a third arg to specify additional #includes.
25544
25545         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
25546         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
25547         AC_CHECK_TYPE.
25548
25549 1999-10-04  Jim Meyering  <meyering@ascend.com>
25550
25551         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
25552
25553 1999-09-22  Paul Eggert  <eggert@twinsun.com>
25554
25555         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
25556         2.95.1 bug with HP-UX 10.20.
25557
25558 1999-09-17  Jim Meyering  <meyering@ascend.com>
25559
25560         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
25561         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
25562         due to missing strdup (against sh-utils-2.0).
25563
25564 1999-08-29  Jim Meyering  <meyering@ascend.com>
25565
25566         * m4/jm-macros.m4: Require jm_BISON.
25567         * m4/bison.m4: New file.
25568
25569 1999-08-17  Paul Eggert  <eggert@twinsun.com>
25570
25571         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
25572         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
25573
25574 1999-08-05  Jim Meyering  <meyering@ascend.com>
25575
25576         * m4/getline.m4: Rename test file from conftestdata to conftest.data
25577         to avoid conflicts with `conftest' on 8+3 filesystems.
25578         Suggestion from Eli Zaretskii.
25579
25580 1999-08-04  Jim Meyering  <meyering@ascend.com>
25581
25582         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
25583         fileutils and sh-utils (textutils's getline test was inadequate).
25584         (AM_FUNC_GETLINE): Run this test.
25585         (AC_CHECK_FUNCS): Check for getdelim.
25586         Reported by Bob Proulx.
25587
25588 1999-08-02  Jim Meyering  <meyering@ascend.com>
25589
25590         * m4/jm-macros.m4: Add a comment.
25591
25592 1999-08-01  Paul Eggert  <eggert@twinsun.com>
25593
25594         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
25595         <inttypes.h> defines strtoumax as a macro (and not as a
25596         function).
25597
25598 1999-08-01  Paul Eggert  <eggert@twinsun.com>
25599
25600         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
25601         that we can shift, multiply and divide unsigned long long
25602         values; Ultrix cc can't do it.
25603
25604 1999-08-01  Paul Eggert  <eggert@twinsun.com>
25605
25606         * m4/mktime.m4: New file, which is a preview of what should appear
25607         in the next public autoconf release.
25608
25609 1999-08-01  Paul Eggert  <eggert@twinsun.com>
25610
25611         * m4/lfs.m4: Remove this file.
25612         * m4/largefile.m4: New file.  It contains the old contents of
25613         lfs.m4, except that all names with prefix AC_LFS have been
25614         changed to use the prefix AC_SYS_LARGEFILE instead, to be
25615         compatible with future autoconf versions.  Also, some minor m4
25616         quoting problems have been fixed.
25617
25618 1999-08-01  Paul Eggert  <eggert@twinsun.com>
25619
25620         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
25621         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
25622         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
25623         and simplify the shell code.
25624
25625 1999-08-01  Jim Meyering  <meyering@ascend.com>
25626
25627         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
25628         m4.
25629
25630 1999-07-20  Jim Meyering  <meyering@ascend.com>
25631
25632         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
25633
25634 1999-07-15  Jim Meyering  <meyering@ascend.com>
25635
25636         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
25637
25638 1999-05-22  Jim Meyering  <meyering@ascend.com>
25639
25640         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
25641
25642 1999-05-20  Jim Meyering  <meyering@ascend.com>
25643
25644         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
25645         Add a colon after each `then' in case $4 is empty.
25646
25647 1999-05-16  Jim Meyering  <meyering@ascend.com>
25648
25649         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
25650
25651 1999-05-10  Jim Meyering  <meyering@ascend.com>
25652
25653         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
25654
25655         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
25656         AC_FUNC_MKTIME.
25657
25658 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
25659
25660         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
25661
25662 1999-05-04  Paul Eggert  <eggert@twinsun.com>
25663
25664         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
25665         not CPPFLAGS, so that linking works correctly in IRIX.
25666
25667 1999-04-30  Paul Eggert  <eggert@twinsun.com>
25668
25669         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
25670
25671 1999-04-20  Paul Eggert  <eggert@twinsun.com>
25672
25673         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
25674         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
25675         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
25676         jm_AC_TYPE_UNSIGNED_LONG_LONG.
25677         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
25678
25679         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
25680
25681 1999-04-20  Jim Meyering  <meyering@ascend.com>
25682
25683         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
25684         AC_REPLACE xstroull if necessary.  From Paul Eggert.
25685         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
25686
25687 1999-04-18  Jim Meyering  <meyering@ascend.com>
25688
25689         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
25690         * m4/jm-macros.m4: Use it.
25691
25692 1999-04-06  Jim Meyering  <meyering@ascend.com>
25693
25694         * m4/strftime.m4: Remove test for %f.
25695
25696 1999-03-29  Jim Meyering  <meyering@ascend.com>
25697
25698         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
25699         superset of the AC_TYPE_* checks in the textutils, fileutils,
25700         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
25701         AC_TYPE_PID_T.
25702
25703 1999-03-28  Jim Meyering  <meyering@ascend.com>
25704
25705         * m4/jm-macros.m4: Define GNU_PACKAGE here.
25706         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
25707         replaced e.g., in the *.sh files of the sh-utils.
25708
25709 1999-03-20  Jim Meyering  <meyering@ascend.com>
25710
25711         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
25712         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
25713         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
25714
25715 1999-03-19  Jim Meyering  <meyering@ascend.com>
25716
25717         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
25718
25719 1999-03-12  Jim Meyering  <meyering@ascend.com>
25720
25721         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
25722
25723 1999-03-07  Jim Meyering  <meyering@ascend.com>
25724
25725         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
25726         declared.
25727
25728 1999-02-17  Jim Meyering  <meyering@ascend.com>
25729
25730         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
25731         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
25732
25733 1999-02-07  Jim Meyering  <meyering@ascend.com>
25734
25735         * m4/group-member.m4: New file -- extracted from sh-utils'
25736         configure.in.
25737
25738         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
25739         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
25740
25741 1999-02-06  Jim Meyering  <meyering@ascend.com>
25742
25743         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
25744         * m4/fnmatch.m4: Likewise.
25745         * m4/getgroups.m4: Likewise.
25746         * m4/lstat.m4: Likewise.
25747         * m4/malloc.m4: Likewise.
25748         * m4/putenv.m4: Likewise.
25749         * m4/realloc.m4: Likewise.
25750         * m4/regex.m4: Likewise.
25751         * m4/stat.m4: Likewise.
25752         * m4/strftime.m4: Likewise.
25753         Suggestion from Alain Magloire.
25754
25755         * m4/chown.m4: Use `.$ac_objext', not `.o'.
25756         * m4/fnmatch.m4: Likewise.
25757         * m4/getgroups.m4: Likewise.
25758         * m4/getline.m4: Likewise.
25759         * m4/lstat.m4: Likewise.
25760         * m4/malloc.m4: Likewise.
25761         * m4/memcmp.m4: Likewise.
25762         * m4/putenv.m4: Likewise.
25763         * m4/realloc.m4: Likewise.
25764         * m4/regex.m4: Likewise.
25765         * m4/stat.m4: Likewise.
25766         * m4/strftime.m4: Likewise.
25767         Suggestion from Alain Magloire.
25768
25769         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
25770         an argument.
25771
25772         * m4/regex.m4: Add a run-time Test for proper operation of
25773         re_compile_pattern.
25774
25775 1999-01-31  Jim Meyering  <meyering@ascend.com>
25776
25777         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
25778
25779 1999-01-30  Jim Meyering  <meyering@ascend.com>
25780
25781         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
25782
25783         * m4/jm-mktime.m4: Make this a wrapper around the official
25784         AM_FUNC_MKTIME rather than my private copy, now that the official one
25785         is up to date.
25786         * m4/mktime.m4: Remove file.
25787
25788         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
25789         * m4/uptime.m4: Likewise.
25790         * m4/uintmax_t.m4: Likewise.
25791
25792 1999-01-28  Jim Meyering  <meyering@ascend.com>
25793
25794         * m4/jm-macros.m4: Use jm_AFS.
25795         * m4/afs.m4: New file (from fileutils' configure.in).
25796
25797         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
25798         * m4/chown.m4: Likewise.
25799         * m4/d-ino.m4: Likewise.
25800         * m4/d-type.m4: Likewise.
25801         * m4/fnmatch.m4: Likewise.
25802         * m4/getgroups.m4: Likewise.
25803         * m4/gettext.m4: Likewise.
25804         * m4/jm-mktime.m4: Likewise.
25805         * m4/jm-winsz2.m4: Likewise.
25806         * m4/lcmessage.m4: Likewise.
25807         * m4/ls-mntd-fs.m4: Likewise.
25808         * m4/malloc.m4: Likewise.
25809         * m4/memcmp.m4: Likewise.
25810         * m4/putenv.m4: Likewise.
25811         * m4/realloc.m4: Likewise.
25812         * m4/st_mtim.m4: Likewise.
25813         * m4/strftime.m4: Likewise.
25814
25815 1999-01-16  Jim Meyering  <meyering@ascend.com>
25816
25817         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
25818         (ARGMATCH_DIE_DECL): Define.
25819
25820 1999-01-12  Jim Meyering  <meyering@ascend.com>
25821
25822         * m4/Makefile.am.in: Rewrite to avoid using fmt.
25823         Reported by Lars Hecking.
25824
25825 1999-01-10  Jim Meyering  <meyering@ascend.com>
25826
25827         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
25828         gross kludge.
25829         * m4/inttypes_h.m4: Likewise.
25830         * m4/lstat.m4: Likewise.
25831         * m4/malloc.m4: Likewise.
25832         * m4/readdir.m4: Likewise.
25833         * m4/realloc.m4: Likewise.
25834         * m4/st_dm_mode.m4: Likewise.
25835         * m4/stat.m4: Likewise.
25836         * m4/utimbuf.m4: Likewise.
25837         * m4/utimes.m4: Likewise.
25838
25839         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
25840         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
25841         comments in config.h.in are meaningful.
25842
25843         * m4/jm-macros.m4: Require autoconf-2.13 here.
25844
25845         * m4/regex.m4: By default, don't use the included regex.c on systems
25846         with glibc 2.  Suggestion from Uli Drepper.
25847
25848 1999-01-02  Jim Meyering  <meyering@ascend.com>
25849
25850         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
25851
25852 1998-12-18  Jim Meyering  <meyering@ascend.com>
25853
25854         * m4/Makefile.am.in (Makefile.am): Simplify rule.
25855         Based on a suggestion from Lars Hecking.
25856
25857 1998-11-16  Paul Eggert  <eggert@twinsun.com>
25858
25859         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
25860
25861 1998-11-16  Jim Meyering  <meyering@ascend.com>
25862
25863         * m4/lfs.m4: Double-quote the `uname...` expression.
25864
25865 1998-11-14  Jim Meyering  <meyering@ascend.com>
25866
25867         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
25868         * m4/stat.m4: Likewise.
25869
25870 1998-11-03  Jim Meyering  <meyering@ascend.com>
25871
25872         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
25873         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
25874
25875 1998-10-18  Jim Meyering  <meyering@ascend.com>
25876
25877         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
25878
25879 1998-10-17  Jim Meyering  <meyering@ascend.com>
25880
25881         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
25882         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
25883         calls for those previously hard-coded headers.  Instead, take a new
25884         parameter.
25885         (jm_CHECK_DECLARATIONS): Reflect interface change.
25886         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
25887         (jm_CHECK_DECL_LOCALTIME_R): New macro.
25888
25889         * m4/mktime.m4: Test for spring-forward gap before long-running test.
25890
25891 1998-10-14  Jim Meyering  <meyering@ascend.com>
25892
25893         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
25894         instead of "TZ=America/Vancouver".  From Paul Eggert.
25895
25896 1998-10-11  Jim Meyering  <meyering@ascend.com>
25897
25898         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
25899         This adds a test for a recently added compatibility fix for mktime.c.
25900         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
25901
25902 1998-09-27  Jim Meyering  <meyering@ascend.com>
25903
25904         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
25905
25906         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
25907         ../configure.in, including a change from Gordon Matzigkeit to allow
25908         cross-compiling for the Hurd.
25909
25910         * m4/glibc.m4: New file/macro to test for the GNU C Library
25911         versions 1 and 2.  From Gordon Matzigkeit.
25912         Indent.
25913
25914 1998-09-21  Jim Meyering  <meyering@ascend.com>
25915
25916         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
25917
25918 1998-08-18  Paul Eggert  <eggert@twinsun.com>
25919
25920         Port nanosecond-resolution times to UnixWare 2.1.2 and
25921         pedantic Solaris 2.6.
25922
25923         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
25924         AC_STRUCT_ST_MTIM.
25925         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
25926         Generate name of ns member, instead of just 1 or undef.
25927         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
25928
25929 1998-08-15  Jim Meyering  <meyering@ascend.com>
25930
25931         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
25932         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
25933         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
25934         instead of jm_TYPE_SSIZE_T.
25935
25936 1998-08-12  Jim Meyering  <meyering@ascend.com>
25937
25938         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
25939
25940 1998-08-02  Jim Meyering  <meyering@ascend.com>
25941
25942         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
25943         in acconfig.h manually.
25944
25945 1998-07-31  Paul Eggert  <eggert@twinsun.com>
25946
25947         * m4/st_mtim.m4: New file.
25948
25949 1998-07-28  Jim Meyering  <meyering@ascend.com>
25950
25951         * m4/utimes.m4: Undef stat.
25952
25953 1998-07-25  Jim Meyering  <meyering@ascend.com>
25954
25955         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
25956         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
25957
25958 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
25959
25960         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
25961         uid and gid actually remain unchanged.
25962
25963 1998-07-07  Jim Meyering  <meyering@ascend.com>
25964
25965         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
25966
25967 1998-07-04  Jim Meyering  <meyering@ascend.com>
25968
25969         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
25970         to prove that this macro can be used in packages without regex.c.
25971
25972 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
25973
25974         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
25975         is to be used.
25976
25977 1998-07-03  Jim Meyering  <meyering@ascend.com>
25978
25979         * m4/gettext.m4: Add -lintl if it's found to be necessary.
25980
25981         * m4/gettext.m4: New file -- from gettext-0.10.35.
25982         * m4/lcmessage.m4: Likewise.
25983         * m4/progtest.m4: Likewise.
25984
25985         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
25986         * m4/jm-macros.m4: Require the new macro.
25987
25988 1998-06-29  Jim Meyering  <meyering@ascend.com>
25989
25990         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
25991         for the definition of NGROUPS (used in a system header included
25992         by sys/mount.h).
25993
25994 1998-06-28  Jim Meyering  <meyering@ascend.com>
25995
25996         * m4/ls-mntd-fs.m4: New file.
25997         * m4/fstypename.m4: New file.
25998
25999         * m4/jm-macros.m4: Require the new macro.
26000         * m4/jm-glibc-io.m4: New file.
26001
26002 1998-05-19  Jim Meyering  <meyering@ascend.com>
26003
26004         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
26005         * m4/lchown.m4: New file.
26006
26007         * m4/Makefile.am.in: New file.
26008         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
26009
26010 1998-05-14  Jim Meyering  <meyering@ascend.com>
26011
26012         * m4/Makefile.am (EXTRA_DIST): Add them.
26013         * m4/jm-macros.m4: New file.
26014         * m4/utimbuf.m4: New file.
26015
26016 1998-05-12  Jim Meyering  <meyering@ascend.com>
26017
26018         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
26019
26020 1998-05-11  Jim Meyering  <meyering@ascend.com>
26021
26022         * m4/isc-posix.m4: New file.
26023
26024 1998-05-10  Jim Meyering  <meyering@ascend.com>
26025
26026         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
26027
26028 1998-05-09  Jim Meyering  <meyering@ascend.com>
26029
26030         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
26031         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
26032         with automake.
26033
26034         * m4/ssize_t.m4: New file.
26035         * m4/mktime.m4: Remove file -- the new automake has this now.
26036
26037 1998-04-26  Jim Meyering  <meyering@ascend.com>
26038
26039         * m4/assert.m4: New file.
26040         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
26041
26042 1998-04-05  Jim Meyering  <meyering@ascend.com>
26043
26044         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
26045         (jm_PREREQ): Use it here.
26046
26047 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
26048
26049         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
26050         in acconfig.h.
26051
26052 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
26053
26054         * m4/prereq.m4: New file.
26055         * m4/error.m4: New file.
26056         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
26057
26058 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
26059
26060         * m4/getline.m4: Don't set am_cv_func_working_getline before the
26061         cache-check for the same variable -- that defeated the purpose of
26062         the test; the test program was never run.  This was a problem only
26063         on systems with losing getline functions -- HP-UX 10.20 is one.
26064         Reported by Bjorn Helgaas.
26065
26066 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
26067
26068         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
26069
26070 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
26071
26072         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
26073
26074         * m4/const.m4: New file.  Use an initializer in this declaration
26075         typedef int charset[2]; const charset x;
26076         Reported by Bob Glickstein.
26077
26078 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
26079
26080         * m4/chown.m4: Fix reversed types on -1 args to chown.
26081         From Kaveh Ghazi.
26082
26083 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
26084
26085         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
26086         Add lseek and memchr.
26087
26088         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
26089         T.E.Dickey <dickey@clark.net> said that some older preprocessors
26090         have a 20-character limit on names.
26091
26092 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
26093
26094         * m4/inttypes_h.m4: New file.
26095         * m4/uintmax_t.m4: New file.
26096         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
26097
26098 Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
26099   Free Software Foundation, Inc.
26100 Copying and distribution of this file, with or without modification,
26101 are permitted provided the copyright notice and this notice are preserved.